Upload folder using huggingface_hub
Browse files- .gitattributes +1 -1
- model.py +18 -10
- time_big_esm.py +57 -0
- train.py +59 -29
- weights/esm/config.json +1 -5
- weights/esm/model.safetensors +2 -2
- weights/esm/special_tokens_map.json +37 -0
- weights/esm/tokenizer_config.json +3 -1
- weights/members/base/{et.joblib → et_log10_kcat_ext.joblib} +2 -2
- weights/members/base/{et_km_ext.joblib → et_log10_km_ext.joblib} +2 -2
- weights/members/base/{lgb_km_ext.txt → lgb_log10_kcat_ext.txt} +2 -2
- weights/members/base/lgb_log10_km.txt +3 -3
- weights/members/base/lgb_log10_km_ext.txt +0 -0
- weights/members/esm_mean_std/lgb_log10_kcat.txt +0 -0
- weights/members/esm_mean_std/lgb_log10_km.txt +0 -0
- weights/members/similar_substrates/lgb_log10_km.txt +2 -2
- weights/meta.json +4 -2
.gitattributes
CHANGED
|
@@ -33,4 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
weights/members/base/
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
weights/members/base/lgb_log10_kcat_ext.txt filter=lfs diff=lfs merge=lfs -text
|
model.py
CHANGED
|
@@ -31,12 +31,17 @@ class Model:
|
|
| 31 |
import joblib
|
| 32 |
for mb in self.meta['members']:
|
| 33 |
d = w / 'members' / mb['name']
|
| 34 |
-
et =
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
self.team = None
|
| 41 |
if self.meta.get('team'): # teammate's kcat model, blended into kcat
|
| 42 |
d = w / 'team'
|
|
@@ -108,13 +113,16 @@ class Model:
|
|
| 108 |
extra = {'esm_std': Esd, 'enz_knn': enzyme_knn(unit_rows(E, center), Zr, yr),
|
| 109 |
'sub_knn': substrate_knn(morgan_bits(smis), smis, Br, sref, ys)}
|
| 110 |
preds = []
|
| 111 |
-
for mb, lgbs, et,
|
| 112 |
X = member_X(base, E, P, extra, mb['blocks'])
|
| 113 |
assert X.shape[1] == mb['n_features'], (mb['name'], X.shape, mb['n_features'])
|
| 114 |
Xf = np.nan_to_num(X, nan=-999).astype(np.float32)
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
| 118 |
preds.append(p)
|
| 119 |
p = np.mean(preds, axis=0)
|
| 120 |
if self.team is not None:
|
|
|
|
| 31 |
import joblib
|
| 32 |
for mb in self.meta['members']:
|
| 33 |
d = w / 'members' / mb['name']
|
| 34 |
+
et = None
|
| 35 |
+
if len(mb.get('ext', {})) < len(TARGETS):
|
| 36 |
+
et = joblib.load(d / 'et.joblib'); et.n_jobs = 2
|
| 37 |
+
ext = {} # target index -> (LightGBM, ExtraTrees) trained with external rows
|
| 38 |
+
if mb.get('km_ext'): # aura-8 file names
|
| 39 |
+
ext[1] = (lgb.Booster(model_file=str(d / 'lgb_km_ext.txt')), joblib.load(d / 'et_km_ext.joblib'))
|
| 40 |
+
for t in mb.get('ext', {}):
|
| 41 |
+
ext[TARGETS.index(t)] = (lgb.Booster(model_file=str(d / f'lgb_{t}_ext.txt')), joblib.load(d / f'et_{t}_ext.joblib'))
|
| 42 |
+
for _, e2 in ext.values():
|
| 43 |
+
e2.n_jobs = 2
|
| 44 |
+
self.members.append((mb, [lgb.Booster(model_file=str(d / f'lgb_{t}.txt')) for t in TARGETS], et, ext))
|
| 45 |
self.team = None
|
| 46 |
if self.meta.get('team'): # teammate's kcat model, blended into kcat
|
| 47 |
d = w / 'team'
|
|
|
|
| 113 |
extra = {'esm_std': Esd, 'enz_knn': enzyme_knn(unit_rows(E, center), Zr, yr),
|
| 114 |
'sub_knn': substrate_knn(morgan_bits(smis), smis, Br, sref, ys)}
|
| 115 |
preds = []
|
| 116 |
+
for mb, lgbs, et, ext in self.members:
|
| 117 |
X = member_X(base, E, P, extra, mb['blocks'])
|
| 118 |
assert X.shape[1] == mb['n_features'], (mb['name'], X.shape, mb['n_features'])
|
| 119 |
Xf = np.nan_to_num(X, nan=-999).astype(np.float32)
|
| 120 |
+
if et is None:
|
| 121 |
+
p = np.zeros((len(X), len(TARGETS)))
|
| 122 |
+
else:
|
| 123 |
+
p = 0.5 * np.column_stack([m.predict(X, num_threads=2) for m in lgbs]) + 0.5 * et.predict(Xf)
|
| 124 |
+
for i, (l2, e2) in ext.items():
|
| 125 |
+
p[:, i] = 0.5 * l2.predict(X, num_threads=2) + 0.5 * e2.predict(Xf)
|
| 126 |
preds.append(p)
|
| 127 |
p = np.mean(preds, axis=0)
|
| 128 |
if self.team is not None:
|
time_big_esm.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""CPU timing check for Experiment 12's winners on the validation enzymes, with 2 threads like the grader.
|
| 2 |
+
I = ESM-2 650M layer 22 (sequences cut to 600 residues), K = ESM C 300M final layer. Both int8-quantized."""
|
| 3 |
+
import sys, time
|
| 4 |
+
import numpy as np, pandas as pd, torch
|
| 5 |
+
|
| 6 |
+
torch.set_num_threads(2)
|
| 7 |
+
seqs = list(pd.read_parquet(sys.argv[1]).sequence.unique())
|
| 8 |
+
print(len(seqs), 'unique validation sequences')
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def run(name, embed):
|
| 12 |
+
t = time.time(); E = embed(seqs); print(f'{name}: {(time.time() - t) / 60:.1f} min', E.shape, flush=True)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
@torch.no_grad()
|
| 16 |
+
def batches(seqs, max_len, step):
|
| 17 |
+
s = [x.upper()[:max_len] for x in seqs]
|
| 18 |
+
order = np.argsort([len(x) for x in s])[::-1]
|
| 19 |
+
out = [None] * len(s); k = 0
|
| 20 |
+
while k < len(order):
|
| 21 |
+
n = max(1, 4000 // (len(s[order[k]]) + 2)); idx = order[k:k + n]; k += n
|
| 22 |
+
for i, v in zip(idx, step([s[i] for i in idx])):
|
| 23 |
+
out[i] = v
|
| 24 |
+
return np.stack(out)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def esm650(seqs):
|
| 28 |
+
from transformers import AutoTokenizer, EsmModel
|
| 29 |
+
tok = AutoTokenizer.from_pretrained('facebook/esm2_t33_650M_UR50D')
|
| 30 |
+
m = EsmModel.from_pretrained('facebook/esm2_t33_650M_UR50D', add_pooling_layer=False)
|
| 31 |
+
m.encoder.layer = m.encoder.layer[:22]; m.encoder.emb_layer_norm_after = None; m.contact_head = None
|
| 32 |
+
m = torch.ao.quantization.quantize_dynamic(m.eval(), {torch.nn.Linear}, dtype=torch.qint8)
|
| 33 |
+
|
| 34 |
+
def step(b):
|
| 35 |
+
enc = tok(b, return_tensors='pt', padding=True)
|
| 36 |
+
h = m(**enc).last_hidden_state
|
| 37 |
+
mk = enc['attention_mask'].clone(); mk[:, 0] = 0; mk[torch.arange(len(b)), enc['attention_mask'].sum(1) - 1] = 0
|
| 38 |
+
return ((h * mk.unsqueeze(-1)).sum(1) / mk.sum(1, keepdim=True)).numpy()
|
| 39 |
+
return batches(seqs, 600, step)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def esmc(seqs):
|
| 43 |
+
from esm.models.esmc import ESMC
|
| 44 |
+
m = ESMC.from_pretrained('esmc_300m').eval()
|
| 45 |
+
m = torch.ao.quantization.quantize_dynamic(m, {torch.nn.Linear}, dtype=torch.qint8)
|
| 46 |
+
pad = m.tokenizer.pad_token_id
|
| 47 |
+
|
| 48 |
+
def step(b):
|
| 49 |
+
t = m._tokenize(b); h = m(sequence_tokens=t).embeddings.float()
|
| 50 |
+
mk = (t != pad).clone(); L = mk.sum(1); mk[:, 0] = False; mk[torch.arange(len(b)), L - 1] = False
|
| 51 |
+
mk = mk.unsqueeze(-1).float()
|
| 52 |
+
return ((h * mk).sum(1) / mk.sum(1)).numpy()
|
| 53 |
+
return batches(seqs, 1022, step)
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
# run('I ESM-2 650M L22, 600 residues, int8', esm650)
|
| 57 |
+
run('K ESM C 300M final layer, int8', esmc)
|
train.py
CHANGED
|
@@ -188,29 +188,42 @@ def fit_member(Xall, Y, es_tr, es_va, out, threads):
|
|
| 188 |
return iters
|
| 189 |
|
| 190 |
|
| 191 |
-
def
|
| 192 |
-
"""
|
| 193 |
Early stopping still uses held-out clusters of our own data."""
|
| 194 |
import joblib
|
| 195 |
from sklearn.ensemble import ExtraTreesRegressor
|
| 196 |
-
Xa, ya = np.vstack([X, Xext]), np.concatenate([
|
| 197 |
tr = np.concatenate([es_tr, len(X) + np.arange(len(Xext))])
|
| 198 |
params = {**LGB_PARAMS, 'num_threads': threads}
|
| 199 |
-
m = lgb.train(params, lgb.Dataset(Xa[tr], ya[tr]), 4000, valid_sets=[lgb.Dataset(X[es_va],
|
| 200 |
callbacks=[lgb.early_stopping(150, verbose=False)])
|
| 201 |
n = int(m.best_iteration * 1.1) + 1
|
| 202 |
-
lgb.train(params, lgb.Dataset(Xa, ya), n).save_model(str(out / '
|
| 203 |
et = ExtraTreesRegressor(**ET_PARAMS, n_jobs=threads or -1).fit(np.nan_to_num(Xa, nan=-999).astype(np.float32), ya)
|
| 204 |
-
joblib.dump(et, out / '
|
| 205 |
return n
|
| 206 |
|
| 207 |
|
| 208 |
-
def
|
| 209 |
-
"""UniKP
|
| 210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
import torch
|
| 212 |
from features import esm_embed, load_esm
|
| 213 |
-
ext =
|
| 214 |
ext = ext.merge(df[['sequence', 'smiles']].drop_duplicates(), on=['sequence', 'smiles'], how='left', indicator=True)
|
| 215 |
ext = ext[ext._merge == 'left_only'].drop(columns='_merge').reset_index(drop=True)
|
| 216 |
if val_path:
|
|
@@ -219,19 +232,17 @@ def external_km(df, Y, ext_path, val_path, esm_dir, layer, useq_E):
|
|
| 219 |
A, B = kmer_matrix(xu), kmer_matrix(vseq)
|
| 220 |
near = np.concatenate([(A[i:i + 500] @ B.T).max(1).toarray().ravel() for i in range(0, A.shape[0], 500)])
|
| 221 |
ext = ext[ext.sequence.map(dict(zip(xu, near))) <= 0.3].reset_index(drop=True)
|
| 222 |
-
|
| 223 |
-
known = {s: e for s, e in useq_E.items()}
|
| 224 |
-
new = [s for s in xu if s not in known]
|
| 225 |
if new:
|
| 226 |
t = time.time(); torch.set_num_threads(max(1, os.cpu_count() or 1))
|
| 227 |
tok, model = load_esm(esm_dir, layer=layer)
|
| 228 |
-
|
|
|
|
| 229 |
print(f'ESM for {len(new)} external enzymes in {(time.time() - t) / 60:.1f} min')
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
return np.hstack([X0ext, Eext, Pext]), ext.y.to_numpy(float)
|
| 235 |
|
| 236 |
|
| 237 |
def train_team_kcat(df, Y, out, threads):
|
|
@@ -275,7 +286,7 @@ def kmer_matrix(seqs):
|
|
| 275 |
return sparse.diags(1 / nrm) @ M
|
| 276 |
|
| 277 |
|
| 278 |
-
def train_ensemble(df, base, E, P, Y, groups, es_tr, es_va, esm_pool, layer, out, threads, ext=None):
|
| 279 |
"""aura-6: four members (aura-5, + enzyme neighbour prior, + similar-substrate prior, + ESM std pooling),
|
| 280 |
averaged equally. Neighbour priors of training rows are out-of-fold by enzyme cluster, like the substrate prior."""
|
| 281 |
from ensemble import MEMBERS, enzyme_knn, group_mean, member_X, morgan_bits, substrate_knn, unit_rows
|
|
@@ -312,21 +323,35 @@ def train_ensemble(df, base, E, P, Y, groups, es_tr, es_va, esm_pool, layer, out
|
|
| 312 |
np.savez(out / 'substrate_ref.npz', bits=np.packbits(B[su].astype(np.uint8), axis=1), y=sy.astype(np.float32))
|
| 313 |
pd.DataFrame({'smiles': usmi[su]}).to_parquet(out / 'substrate_ref.parquet', index=False)
|
| 314 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 315 |
members = []
|
| 316 |
for name, blocks in MEMBERS.items():
|
| 317 |
t = time.time()
|
| 318 |
X = member_X(base, E, P, extra, blocks)
|
| 319 |
iters = fit_member(X, Y, es_tr, es_va, out / 'members' / name, threads)
|
| 320 |
info = {'name': name, 'blocks': blocks, 'n_features': int(X.shape[1]), 'trees': iters}
|
| 321 |
-
if
|
| 322 |
-
|
| 323 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
members.append(info)
|
| 325 |
print(f'member {name}: {X.shape[1]} features, trees {iters}, {time.time() - t:.0f}s')
|
| 326 |
return members
|
| 327 |
|
| 328 |
|
| 329 |
-
def main(train_path, out_dir, threads, esm_dir=None, quantize=False, nn=False, nn_epochs=60, esm_layer=None, et=False, ensemble=False, esm_pool=None, ext_km=None, val=None, team_weight=None):
|
| 330 |
assert esm_dir or not nn, '--nn needs --esm'
|
| 331 |
assert not ensemble or (esm_dir and esm_layer and esm_pool), '--ensemble needs --esm, --esm-layer and --esm-pool'
|
| 332 |
t0 = time.time()
|
|
@@ -353,12 +378,15 @@ def main(train_path, out_dir, threads, esm_dir=None, quantize=False, nn=False, n
|
|
| 353 |
es_tr, es_va = next(GroupKFold(8).split(df, groups=groups)) # held-out enzyme clusters for early stopping
|
| 354 |
out = Path(out_dir); out.mkdir(parents=True, exist_ok=True)
|
| 355 |
if ensemble:
|
| 356 |
-
ext =
|
| 357 |
-
if ext_km:
|
| 358 |
useq = pd.unique(df.sequence)
|
| 359 |
first = pd.Series(np.arange(len(df))).groupby(df.sequence.to_numpy()).first().reindex(useq).to_numpy()
|
| 360 |
-
|
| 361 |
-
|
|
|
|
|
|
|
|
|
|
| 362 |
if team_weight is not None:
|
| 363 |
train_team_kcat(df, Y, out, threads)
|
| 364 |
tab = prior_table(df.smiles.values, Y)
|
|
@@ -407,10 +435,12 @@ if __name__ == '__main__':
|
|
| 407 |
ap.add_argument('--ensemble', action='store_true', help='train the 4-member aura-6 ensemble (v6)')
|
| 408 |
ap.add_argument('--esm-pool', default=None, help='esm_pool.npz from Experiment 6 (ESM std pooling for v6)')
|
| 409 |
ap.add_argument('--ext-km', default=None, help='UniKP KM file (Km_test_11722.pkl) for the base member KM models (v8)')
|
|
|
|
|
|
|
| 410 |
ap.add_argument('--val', default=None, help='val_inputs.parquet: external enzymes similar to these are removed')
|
| 411 |
ap.add_argument('--team-kcat', type=float, default=None,
|
| 412 |
help="weight of the teammate's kcat model in the final kcat (1.0 = teammate's kcat only)")
|
| 413 |
ap.add_argument('--et-max-features', default='sqrt', help="ExtraTrees max_features: 'sqrt' (default) or a fraction like 0.4")
|
| 414 |
a = ap.parse_args()
|
| 415 |
ET_PARAMS['max_features'] = a.et_max_features if a.et_max_features == 'sqrt' else float(a.et_max_features)
|
| 416 |
-
main(a.train, a.out, a.threads, a.esm, a.quantize, a.nn, a.nn_epochs, a.esm_layer, a.et, a.ensemble, a.esm_pool, a.ext_km, a.val, a.team_kcat)
|
|
|
|
| 188 |
return iters
|
| 189 |
|
| 190 |
|
| 191 |
+
def fit_external(X, y, Xext, yext, es_tr, es_va, out, threads, target):
|
| 192 |
+
"""One member's models for one target (LightGBM + single-target ExtraTrees) trained on our rows + external rows.
|
| 193 |
Early stopping still uses held-out clusters of our own data."""
|
| 194 |
import joblib
|
| 195 |
from sklearn.ensemble import ExtraTreesRegressor
|
| 196 |
+
Xa, ya = np.vstack([X, Xext]), np.concatenate([y, yext])
|
| 197 |
tr = np.concatenate([es_tr, len(X) + np.arange(len(Xext))])
|
| 198 |
params = {**LGB_PARAMS, 'num_threads': threads}
|
| 199 |
+
m = lgb.train(params, lgb.Dataset(Xa[tr], ya[tr]), 4000, valid_sets=[lgb.Dataset(X[es_va], y[es_va])],
|
| 200 |
callbacks=[lgb.early_stopping(150, verbose=False)])
|
| 201 |
n = int(m.best_iteration * 1.1) + 1
|
| 202 |
+
lgb.train(params, lgb.Dataset(Xa, ya), n).save_model(str(out / f'lgb_{target}_ext.txt'))
|
| 203 |
et = ExtraTreesRegressor(**ET_PARAMS, n_jobs=threads or -1).fit(np.nan_to_num(Xa, nan=-999).astype(np.float32), ya)
|
| 204 |
+
joblib.dump(et, out / f'et_{target}_ext.joblib', compress=3)
|
| 205 |
return n
|
| 206 |
|
| 207 |
|
| 208 |
+
def load_external(path):
|
| 209 |
+
"""UniKP / DLKcat files -> (sequence, smiles, y). .pkl = UniKP KM (log10_KM); .json = DLKcat kcat (1/s)."""
|
| 210 |
+
if str(path).endswith('.json'):
|
| 211 |
+
d = pd.DataFrame(json.load(open(path)))
|
| 212 |
+
v = pd.to_numeric(d.Value, errors='coerce')
|
| 213 |
+
d = d.assign(y=np.log10(v.where(v > 0))).rename(columns={'Sequence': 'sequence', 'Smiles': 'smiles'})
|
| 214 |
+
else:
|
| 215 |
+
d = pd.read_pickle(path).rename(columns={'Sequence': 'sequence', 'log10_KM': 'y'})
|
| 216 |
+
d = d[['sequence', 'smiles', 'y']].dropna()
|
| 217 |
+
d = d[d.sequence.str.len() > 0].groupby(['sequence', 'smiles'], as_index=False).y.mean() # duplicates -> mean
|
| 218 |
+
return d
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
def external_rows(df, path, val_path, esm_dir, layer, useq_E, useq_S):
|
| 222 |
+
"""External rows not already in our data; with val_path, enzymes similar (3-mer cosine > 0.3) to the leaderboard
|
| 223 |
+
validation enzymes are removed, as in the cross-validation of Experiment 10. Returns rows + ESM mean / std."""
|
| 224 |
import torch
|
| 225 |
from features import esm_embed, load_esm
|
| 226 |
+
ext = load_external(path)
|
| 227 |
ext = ext.merge(df[['sequence', 'smiles']].drop_duplicates(), on=['sequence', 'smiles'], how='left', indicator=True)
|
| 228 |
ext = ext[ext._merge == 'left_only'].drop(columns='_merge').reset_index(drop=True)
|
| 229 |
if val_path:
|
|
|
|
| 232 |
A, B = kmer_matrix(xu), kmer_matrix(vseq)
|
| 233 |
near = np.concatenate([(A[i:i + 500] @ B.T).max(1).toarray().ravel() for i in range(0, A.shape[0], 500)])
|
| 234 |
ext = ext[ext.sequence.map(dict(zip(xu, near))) <= 0.3].reset_index(drop=True)
|
| 235 |
+
new = [s for s in pd.unique(ext.sequence) if s not in useq_E]
|
|
|
|
|
|
|
| 236 |
if new:
|
| 237 |
t = time.time(); torch.set_num_threads(max(1, os.cpu_count() or 1))
|
| 238 |
tok, model = load_esm(esm_dir, layer=layer)
|
| 239 |
+
mu, sd = esm_embed(new, tok, model, batch_tokens=4000, with_std=True)
|
| 240 |
+
useq_E.update(zip(new, mu)); useq_S.update(zip(new, sd))
|
| 241 |
print(f'ESM for {len(new)} external enzymes in {(time.time() - t) / 60:.1f} min')
|
| 242 |
+
E = np.stack([useq_E[s] for s in ext.sequence]).astype(np.float32)
|
| 243 |
+
S = np.stack([useq_S[s] for s in ext.sequence]).astype(np.float32)
|
| 244 |
+
print(f'external rows used from {Path(path).name}: {len(ext)}')
|
| 245 |
+
return ext, E, S
|
|
|
|
| 246 |
|
| 247 |
|
| 248 |
def train_team_kcat(df, Y, out, threads):
|
|
|
|
| 286 |
return sparse.diags(1 / nrm) @ M
|
| 287 |
|
| 288 |
|
| 289 |
+
def train_ensemble(df, base, E, P, Y, groups, es_tr, es_va, esm_pool, layer, out, threads, ext=None, ext_members=('base',)):
|
| 290 |
"""aura-6: four members (aura-5, + enzyme neighbour prior, + similar-substrate prior, + ESM std pooling),
|
| 291 |
averaged equally. Neighbour priors of training rows are out-of-fold by enzyme cluster, like the substrate prior."""
|
| 292 |
from ensemble import MEMBERS, enzyme_knn, group_mean, member_X, morgan_bits, substrate_knn, unit_rows
|
|
|
|
| 323 |
np.savez(out / 'substrate_ref.npz', bits=np.packbits(B[su].astype(np.uint8), axis=1), y=sy.astype(np.float32))
|
| 324 |
pd.DataFrame({'smiles': usmi[su]}).to_parquet(out / 'substrate_ref.parquet', index=False)
|
| 325 |
|
| 326 |
+
# external rows: features exactly as at inference (priors and neighbours from all training rows)
|
| 327 |
+
ext_X = {}
|
| 328 |
+
tab = prior_table(df.smiles.values, Y)
|
| 329 |
+
for target, (rows, Ee, Se) in (ext or {}).items():
|
| 330 |
+
sm = rows.smiles.to_numpy()
|
| 331 |
+
ex = {'esm_std': Se, 'enz_knn': enzyme_knn(unit_rows(Ee, center), Z[ru], ry),
|
| 332 |
+
'sub_knn': substrate_knn(morgan_bits(sm), sm, B[su], usmi[su], sy)}
|
| 333 |
+
ext_X[target] = (base_features(rows.sequence.to_numpy(), sm), Ee, prior_features(tab, sm, Y.mean(0)), ex,
|
| 334 |
+
rows.y.to_numpy(float))
|
| 335 |
+
|
| 336 |
members = []
|
| 337 |
for name, blocks in MEMBERS.items():
|
| 338 |
t = time.time()
|
| 339 |
X = member_X(base, E, P, extra, blocks)
|
| 340 |
iters = fit_member(X, Y, es_tr, es_va, out / 'members' / name, threads)
|
| 341 |
info = {'name': name, 'blocks': blocks, 'n_features': int(X.shape[1]), 'trees': iters}
|
| 342 |
+
if name in ext_members or 'all' in ext_members:
|
| 343 |
+
for target, (b_, e_, p_, ex, ye) in ext_X.items():
|
| 344 |
+
i = TARGETS.index(target)
|
| 345 |
+
info.setdefault('ext', {})[target] = fit_external(X, Y[:, i], member_X(b_, e_, p_, ex, blocks), ye,
|
| 346 |
+
es_tr, es_va, out / 'members' / name, threads, target)
|
| 347 |
+
if len(info.get('ext', {})) == len(TARGETS): # both targets replaced: the plain ExtraTrees is never used
|
| 348 |
+
(out / 'members' / name / 'et.joblib').unlink()
|
| 349 |
members.append(info)
|
| 350 |
print(f'member {name}: {X.shape[1]} features, trees {iters}, {time.time() - t:.0f}s')
|
| 351 |
return members
|
| 352 |
|
| 353 |
|
| 354 |
+
def main(train_path, out_dir, threads, esm_dir=None, quantize=False, nn=False, nn_epochs=60, esm_layer=None, et=False, ensemble=False, esm_pool=None, ext_km=None, val=None, team_weight=None, ext_kcat=None, ext_members=('base',)):
|
| 355 |
assert esm_dir or not nn, '--nn needs --esm'
|
| 356 |
assert not ensemble or (esm_dir and esm_layer and esm_pool), '--ensemble needs --esm, --esm-layer and --esm-pool'
|
| 357 |
t0 = time.time()
|
|
|
|
| 378 |
es_tr, es_va = next(GroupKFold(8).split(df, groups=groups)) # held-out enzyme clusters for early stopping
|
| 379 |
out = Path(out_dir); out.mkdir(parents=True, exist_ok=True)
|
| 380 |
if ensemble:
|
| 381 |
+
ext = {}
|
| 382 |
+
if ext_km or ext_kcat:
|
| 383 |
useq = pd.unique(df.sequence)
|
| 384 |
first = pd.Series(np.arange(len(df))).groupby(df.sequence.to_numpy()).first().reindex(useq).to_numpy()
|
| 385 |
+
uE, uS = dict(zip(useq, E[first])), dict(zip(useq, np.load(esm_pool)[f'std{esm_layer}']))
|
| 386 |
+
for target, path in (('log10_kcat', ext_kcat), ('log10_km', ext_km)):
|
| 387 |
+
if path:
|
| 388 |
+
ext[target] = external_rows(df, path, val, esm_dir, esm_layer, uE, uS)
|
| 389 |
+
members = train_ensemble(df, base, E, P, Y, groups, es_tr, es_va, esm_pool, esm_layer, out, threads, ext, ext_members)
|
| 390 |
if team_weight is not None:
|
| 391 |
train_team_kcat(df, Y, out, threads)
|
| 392 |
tab = prior_table(df.smiles.values, Y)
|
|
|
|
| 435 |
ap.add_argument('--ensemble', action='store_true', help='train the 4-member aura-6 ensemble (v6)')
|
| 436 |
ap.add_argument('--esm-pool', default=None, help='esm_pool.npz from Experiment 6 (ESM std pooling for v6)')
|
| 437 |
ap.add_argument('--ext-km', default=None, help='UniKP KM file (Km_test_11722.pkl) for the base member KM models (v8)')
|
| 438 |
+
ap.add_argument('--ext-kcat', default=None, help='DLKcat/UniKP kcat file (Kcat_combination_0918_wildtype_mutant.json)')
|
| 439 |
+
ap.add_argument('--ext-members', default='base', help="members trained with external rows: 'base' or 'all'")
|
| 440 |
ap.add_argument('--val', default=None, help='val_inputs.parquet: external enzymes similar to these are removed')
|
| 441 |
ap.add_argument('--team-kcat', type=float, default=None,
|
| 442 |
help="weight of the teammate's kcat model in the final kcat (1.0 = teammate's kcat only)")
|
| 443 |
ap.add_argument('--et-max-features', default='sqrt', help="ExtraTrees max_features: 'sqrt' (default) or a fraction like 0.4")
|
| 444 |
a = ap.parse_args()
|
| 445 |
ET_PARAMS['max_features'] = a.et_max_features if a.et_max_features == 'sqrt' else float(a.et_max_features)
|
| 446 |
+
main(a.train, a.out, a.threads, a.esm, a.quantize, a.nn, a.nn_epochs, a.esm_layer, a.et, a.ensemble, a.esm_pool, a.ext_km, a.val, a.team_kcat, a.ext_kcat, tuple(a.ext_members.split(',')))
|
weights/esm/config.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"add_cross_attention": false,
|
| 3 |
"architectures": [
|
| 4 |
"EsmModel"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.0,
|
| 7 |
-
"bos_token_id": null,
|
| 8 |
"classifier_dropout": null,
|
| 9 |
"dtype": "float32",
|
| 10 |
"emb_layer_norm_before": false,
|
|
@@ -15,7 +13,6 @@
|
|
| 15 |
"hidden_size": 480,
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 1920,
|
| 18 |
-
"is_decoder": false,
|
| 19 |
"is_folding_model": false,
|
| 20 |
"layer_norm_eps": 1e-05,
|
| 21 |
"mask_token_id": 32,
|
|
@@ -26,9 +23,8 @@
|
|
| 26 |
"pad_token_id": 1,
|
| 27 |
"position_embedding_type": "rotary",
|
| 28 |
"rope_theta": 10000.0,
|
| 29 |
-
"tie_word_embeddings": true,
|
| 30 |
"token_dropout": true,
|
| 31 |
-
"transformers_version": "
|
| 32 |
"use_cache": true,
|
| 33 |
"vocab_list": null,
|
| 34 |
"vocab_size": 33
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"EsmModel"
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.0,
|
|
|
|
| 6 |
"classifier_dropout": null,
|
| 7 |
"dtype": "float32",
|
| 8 |
"emb_layer_norm_before": false,
|
|
|
|
| 13 |
"hidden_size": 480,
|
| 14 |
"initializer_range": 0.02,
|
| 15 |
"intermediate_size": 1920,
|
|
|
|
| 16 |
"is_folding_model": false,
|
| 17 |
"layer_norm_eps": 1e-05,
|
| 18 |
"mask_token_id": 32,
|
|
|
|
| 23 |
"pad_token_id": 1,
|
| 24 |
"position_embedding_type": "rotary",
|
| 25 |
"rope_theta": 10000.0,
|
|
|
|
| 26 |
"token_dropout": true,
|
| 27 |
+
"transformers_version": "4.57.6",
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_list": null,
|
| 30 |
"vocab_size": 33
|
weights/esm/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:273b9d4e61bdfb66d60db8a962339eec6e81f711f657c40c89f773355c403d62
|
| 3 |
+
size 66579888
|
weights/esm/special_tokens_map.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": {
|
| 3 |
+
"content": "<cls>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<eos>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"mask_token": {
|
| 17 |
+
"content": "<mask>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"pad_token": {
|
| 24 |
+
"content": "<pad>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"unk_token": {
|
| 31 |
+
"content": "<unk>",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
}
|
| 37 |
+
}
|
weights/esm/tokenizer_config.json
CHANGED
|
@@ -42,9 +42,11 @@
|
|
| 42 |
}
|
| 43 |
},
|
| 44 |
"backend": "custom",
|
|
|
|
| 45 |
"cls_token": "<cls>",
|
| 46 |
"eos_token": "<eos>",
|
| 47 |
-
"
|
|
|
|
| 48 |
"local_files_only": false,
|
| 49 |
"mask_token": "<mask>",
|
| 50 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
|
| 42 |
}
|
| 43 |
},
|
| 44 |
"backend": "custom",
|
| 45 |
+
"clean_up_tokenization_spaces": false,
|
| 46 |
"cls_token": "<cls>",
|
| 47 |
"eos_token": "<eos>",
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"is_local": false,
|
| 50 |
"local_files_only": false,
|
| 51 |
"mask_token": "<mask>",
|
| 52 |
"model_max_length": 1000000000000000019884624838656,
|
weights/members/base/{et.joblib → et_log10_kcat_ext.joblib}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e39ce0b9346ac4d0606ef7cb345d70f47ac08f0b5007c16204190c9f8ba35953
|
| 3 |
+
size 145503197
|
weights/members/base/{et_km_ext.joblib → et_log10_km_ext.joblib}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de4265696b7847b7edb01c5f76b57cf114da3613451670ee45764244221d30b2
|
| 3 |
+
size 135010635
|
weights/members/base/{lgb_km_ext.txt → lgb_log10_kcat_ext.txt}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e70866dc2390b65d438390a46345fcb085b9e65ef95a7e7d6e4116031e100df
|
| 3 |
+
size 23571030
|
weights/members/base/lgb_log10_km.txt
CHANGED
|
@@ -303,7 +303,7 @@ threshold=8.4548082351684588 1.0000000180025095e-35 1.0000000180025095e-35 2.500
|
|
| 303 |
decision_type=2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
|
| 304 |
left_child=1 2 4 8 7 6 9 23 22 13 16 28 14 18 -11 -16 17 41 19 24 45 43 38 27 29 26 -14 59 -9 -2 -31 47 -13 42 36 -19 -10 -34 -3 40 -4 -6 -28 57 -45 -21 51 60 49 -35 -51 -29 -42 -54 -33 -7 -23 -20 -30 -1 -24 -62
|
| 305 |
right_child=5 3 39 -5 10 55 -8 11 34 12 -12 32 25 -15 15 -17 -18 35 21 20 -22 56 31 -25 -26 -27 33 46 58 30 -32 54 37 48 -36 -37 -38 -39 -40 -41 52 -43 -44 44 -46 -47 -48 -49 -50 50 -52 -53 53 -55 -56 -57 -58 -59 -60 -61 61 -63
|
| 306 |
-
leaf_value=0.040576785975599321 -0.022004960416920231 -0.014780693206963368 0.0091338776685828942 -0.028996982355046209 0.026381801562393666 -0.037389966071097423 -0.02965785113104337 0.0049736803643654227 -0.01073751533253566 0.0058204920424021443 0.0025920956801398203 0.020075096987490403 0.00080243583220526975 -0.026823668200522659 -0.0063421228699781524 -0.028557779190280488 0.011112841525832664 0.007339655904511788 -0.0061137730380172615 0.0089900183706137018 -0.0073088523235733957 -0.008033774273847152 -0.00067712779144700887 6.5244441386312239e-05 0.0042388406440643485 0.0013833327261279986 -0.015903756357523322 0.
|
| 307 |
leaf_weight=201 348 366 358 501 1313 358 535 639 1271 540 313 658 216 215 1574 226 374 340 487 1554 643 529 258 230 404 213 295 1246 255 463 241 366 1041 477 235 258 622 269 368 719 323 882 362 485 1865 247 811 243 982 531 284 828 328 869 243 209 589 720 274 208 805 496
|
| 308 |
leaf_count=201 348 366 358 501 1313 358 535 639 1271 540 313 658 216 215 1574 226 374 340 487 1554 643 529 258 230 404 213 295 1246 255 463 241 366 1041 477 235 258 622 269 368 719 323 882 362 485 1865 247 811 243 982 531 284 828 328 869 243 209 589 720 274 208 805 496
|
| 309 |
internal_value=4.64314e-05 0.00773658 0.013198 -0.0043129 0.0164425 -0.00908251 -0.00824299 0.0125518 -0.00191716 -0.0074324 0.0238313 0.00705338 -0.011673 -0.00467237 -0.00578055 -0.00927379 0.0259156 0.0278511 -0.00408638 -0.000603253 0.00315462 -0.00698459 0.00279981 0.0174111 -0.00688961 -0.0157474 -0.0169076 0.0186184 -0.00170897 -0.0111629 -0.00557041 0.00556844 0.0122362 -0.018211 -0.00886892 0.016279 -0.00693246 0.00817648 -0.00624705 0.000515205 -0.0023166 0.0309156 -0.0267454 -0.0045645 -0.00731737 0.00691006 0.0168325 0.00853077 -0.0156389 -0.0195042 -0.0250928 0.0193393 -0.00505556 -0.0077635 -0.00319315 -0.0308006 -0.0145756 0.000811354 -0.00972373 0.0305131 0.0104904 0.0126933
|
|
@@ -5243,7 +5243,7 @@ threshold=1.0000000180025095e-35 1.0000000180025095e-35 -0.01975177880376577 0.1
|
|
| 5243 |
decision_type=2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 8 2 2 2 2 2 2 2 2 2 2 2 2 10 2 2 2 2 2 2 2
|
| 5244 |
left_child=1 5 4 -4 -3 7 -5 10 9 -9 15 14 13 55 48 19 18 -18 -17 20 -1 27 23 44 42 26 -24 30 29 -27 40 32 33 -32 35 36 -29 -38 39 47 41 -22 -25 -33 45 -23 -21 -26 49 50 51 -12 -51 -53 -55 -13 -57 58 60 -60 -42 -61
|
| 5245 |
right_child=-2 2 3 6 -6 -7 -8 8 -10 -11 11 12 -14 -15 -16 16 17 -19 -20 46 21 22 25 24 38 28 -28 34 -30 -31 31 43 -34 -35 -36 -37 37 -39 -40 -41 57 -43 -44 -45 -46 -47 -48 -49 -50 52 -52 53 -54 54 -56 56 -58 -59 59 61 -62 -63
|
| 5246 |
-
leaf_value=0.003504009475163254 -0.0043398318180776106 -0.0084501225370496036 -0.
|
| 5247 |
leaf_weight=488 288 291 388 200 249 465 224 466 290 211 335 638 229 429 277 227 225 232 219 262 391 377 221 432 202 472 1763 206 870 228 279 241 475 223 349 608 281 1782 1228 280 228 250 260 228 326 401 1920 685 479 1187 458 499 346 300 357 354 297 6407 211 207 830 210
|
| 5248 |
leaf_count=488 288 291 388 200 249 465 224 466 290 211 335 638 229 429 277 227 225 232 219 262 391 377 221 432 202 472 1763 206 870 228 279 241 475 223 349 608 281 1782 1228 280 228 250 260 228 326 401 1920 685 479 1187 458 499 346 300 357 354 297 6407 211 207 830 210
|
| 5249 |
internal_value=1.42808e-05 5.27754e-05 -0.00181704 0.00049206 -0.00523506 0.00013148 0.00345738 0.000179639 0.00215412 0.000193319 0.000117189 -0.000635311 0.000775661 0.000116773 -0.00128383 0.000305617 -0.00191109 -0.00517369 0.00147212 0.000390414 0.000247769 0.00017102 0.000797674 -0.000138644 -0.00103618 0.0018991 0.0030298 -0.000191339 0.000460114 0.00256377 0.000177407 -0.00157193 -0.00297353 -0.00576976 -0.00135191 -0.000903226 -0.00161415 -0.00104239 -0.00025778 -0.00175107 0.000468493 -0.00222244 -0.00368816 0.00134894 0.00235781 0.000989485 0.00179745 -0.000510025 -0.00097978 -0.00137263 -0.0025887 -0.00359276 0.000180197 -0.0024058 -0.000552358 -0.000954077 -0.00272312 0.000684107 -0.000701756 -0.00444075 0.00153841 -0.00188692
|
|
@@ -23198,7 +23198,7 @@ threshold=1.0000000180025095e-35 0.32915379106998449 -0.26042370498180384 0.7434
|
|
| 23198 |
decision_type=2 2 2 2 2 2 2 2 2 2 2 10 2 2 2 2 2 2 8 2 2 2 2 2 8 8 2 2 2 2 2 2 2 10 8 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 8 2 2 2 2 2 2 2 2 2
|
| 23199 |
left_child=16 3 -3 4 5 11 7 8 9 -6 -11 -2 -12 14 -9 -14 17 27 20 -20 -19 -22 29 24 -24 -25 -23 -1 -29 46 31 -31 33 34 35 -32 41 -38 39 -35 43 42 -36 -37 47 -45 51 -33 -49 50 -48 52 58 57 55 56 -55 -54 -18 60 -60 -61
|
| 23200 |
right_child=1 2 -4 -5 6 -7 -8 13 -10 10 12 -13 15 -15 -16 -17 22 18 19 -21 21 26 23 25 -26 -27 -28 28 -30 30 32 44 -34 38 36 40 37 -39 -40 -41 -42 -43 -44 45 -46 -47 49 48 -50 -51 -52 -53 53 54 -56 -57 -58 -59 59 61 -62 -63
|
| 23201 |
-
leaf_value=-0.00056668090841809418 -0.0036923904985822036 0.004061724756291369 0.00089243345446309095 0.0019963901796691062 0.0030641948250344571 0.00027121862806703029 -0.0017671403180580243 -1.496605425229033e-05 0.003196705631604227 -0.0021410067563935537 0.0020108960635190263 -0.
|
| 23202 |
leaf_weight=2017 308 230 435 310 231 451 323 1917 283 203 402 211 410 365 451 242 1186 436 247 367 237 226 381 367 272 405 398 597 280 339 401 1710 293 292 258 221 306 242 207 291 241 227 379 249 228 307 291 368 214 239 571 2251 254 312 209 296 1272 223 335 370 5876 643
|
| 23203 |
leaf_count=2017 308 230 435 310 231 451 323 1917 283 203 402 211 410 365 451 242 1186 436 247 367 237 226 381 367 272 405 398 597 280 339 401 1710 293 292 258 221 306 242 207 291 241 227 379 249 228 307 291 368 214 239 571 2251 254 312 209 296 1272 223 335 370 5876 643
|
| 23204 |
internal_value=-7.12493e-05 0.000285497 0.00203251 9.22497e-05 -1.28386e-05 -0.00116345 0.000220308 0.000366435 0.00106838 0.000644963 0.000179703 -0.00239171 0.000642593 -9.06683e-05 -0.000357763 -0.000218687 -0.000159715 0.000247974 0.000900478 -0.00023626 0.0014363 0.00217545 -0.00024675 -0.00106531 -0.00203696 -0.000227902 0.00141698 -0.000184512 0.000690913 -0.000190992 0.000120943 0.000644242 -0.00026197 -7.40872e-05 0.000212086 -0.000617296 0.00104406 -0.000394879 -0.00108943 -0.000176479 0.000162487 0.00195079 0.00266827 -0.000556948 0.000359916 0.000185787 -0.000338429 0.000564708 0.00168427 0.000580851 8.03398e-05 -0.00041533 -0.000536792 -5.50251e-06 0.00043899 0.000755246 0.000280245 -0.00192118 -0.000698696 -0.000859533 -0.000679687 -0.0019448
|
|
|
|
| 303 |
decision_type=2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
|
| 304 |
left_child=1 2 4 8 7 6 9 23 22 13 16 28 14 18 -11 -16 17 41 19 24 45 43 38 27 29 26 -14 59 -9 -2 -31 47 -13 42 36 -19 -10 -34 -3 40 -4 -6 -28 57 -45 -21 51 60 49 -35 -51 -29 -42 -54 -33 -7 -23 -20 -30 -1 -24 -62
|
| 305 |
right_child=5 3 39 -5 10 55 -8 11 34 12 -12 32 25 -15 15 -17 -18 35 21 20 -22 56 31 -25 -26 -27 33 46 58 30 -32 54 37 48 -36 -37 -38 -39 -40 -41 52 -43 -44 44 -46 -47 -48 -49 -50 50 -52 -53 53 -55 -56 -57 -58 -59 -60 -61 61 -63
|
| 306 |
+
leaf_value=0.040576785975599321 -0.022004960416920231 -0.014780693206963368 0.0091338776685828942 -0.028996982355046209 0.026381801562393666 -0.037389966071097423 -0.02965785113104337 0.0049736803643654227 -0.01073751533253566 0.0058204920424021443 0.0025920956801398203 0.020075096987490403 0.00080243583220526975 -0.026823668200522659 -0.0063421228699781524 -0.028557779190280488 0.011112841525832664 0.007339655904511788 -0.0061137730380172615 0.0089900183706137018 -0.0073088523235733957 -0.008033774273847152 -0.00067712779144700887 6.5244441386312239e-05 0.0042388406440643485 0.0013833327261279986 -0.015903756357523322 0.015392860246360272 -0.018420507925298979 0.0013308020154886484 -0.018353548806920864 0.0035216869824526314 0.011476888806450827 -0.0096364006450905572 -0.023548046608058718 0.02734614275194315 0.00088968374736893264 -0.0045493131156970736 0.0024067053166661229 0.0078420895824715224 0.0049115222392746389 0.037293422625372982 -0.03491540681736003 0.0023316353864290497 -0.0098256866519420873 -0.0060165823718844567 0.010264514485344598 -0.0039594461577804113 -0.010408105209843919 -0.030609246840542989 -0.014088271636401814 0.025023384395446966 0.0023769126202120338 -0.011574453339326343 -0.013046304903328124 -0.018321569166082428 -0.020218732122752429 0.0055150171209904942 -0.0012663946208596544 0.019372877156823263 0.017107131189906661 0.0053333011686349475
|
| 307 |
leaf_weight=201 348 366 358 501 1313 358 535 639 1271 540 313 658 216 215 1574 226 374 340 487 1554 643 529 258 230 404 213 295 1246 255 463 241 366 1041 477 235 258 622 269 368 719 323 882 362 485 1865 247 811 243 982 531 284 828 328 869 243 209 589 720 274 208 805 496
|
| 308 |
leaf_count=201 348 366 358 501 1313 358 535 639 1271 540 313 658 216 215 1574 226 374 340 487 1554 643 529 258 230 404 213 295 1246 255 463 241 366 1041 477 235 258 622 269 368 719 323 882 362 485 1865 247 811 243 982 531 284 828 328 869 243 209 589 720 274 208 805 496
|
| 309 |
internal_value=4.64314e-05 0.00773658 0.013198 -0.0043129 0.0164425 -0.00908251 -0.00824299 0.0125518 -0.00191716 -0.0074324 0.0238313 0.00705338 -0.011673 -0.00467237 -0.00578055 -0.00927379 0.0259156 0.0278511 -0.00408638 -0.000603253 0.00315462 -0.00698459 0.00279981 0.0174111 -0.00688961 -0.0157474 -0.0169076 0.0186184 -0.00170897 -0.0111629 -0.00557041 0.00556844 0.0122362 -0.018211 -0.00886892 0.016279 -0.00693246 0.00817648 -0.00624705 0.000515205 -0.0023166 0.0309156 -0.0267454 -0.0045645 -0.00731737 0.00691006 0.0168325 0.00853077 -0.0156389 -0.0195042 -0.0250928 0.0193393 -0.00505556 -0.0077635 -0.00319315 -0.0308006 -0.0145756 0.000811354 -0.00972373 0.0305131 0.0104904 0.0126933
|
|
|
|
| 5243 |
decision_type=2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 8 2 2 2 2 2 2 2 2 2 2 2 2 10 2 2 2 2 2 2 2
|
| 5244 |
left_child=1 5 4 -4 -3 7 -5 10 9 -9 15 14 13 55 48 19 18 -18 -17 20 -1 27 23 44 42 26 -24 30 29 -27 40 32 33 -32 35 36 -29 -38 39 47 41 -22 -25 -33 45 -23 -21 -26 49 50 51 -12 -51 -53 -55 -13 -57 58 60 -60 -42 -61
|
| 5245 |
right_child=-2 2 3 6 -6 -7 -8 8 -10 -11 11 12 -14 -15 -16 16 17 -19 -20 46 21 22 25 24 38 28 -28 34 -30 -31 31 43 -34 -35 -36 -37 37 -39 -40 -41 57 -43 -44 -45 -46 -47 -48 -49 -50 52 -52 53 -54 54 -56 56 -58 -59 59 61 -62 -63
|
| 5246 |
+
leaf_value=0.003504009475163254 -0.0043398318180776106 -0.0084501225370496036 -0.0027538408748670972 0.00011684014288974658 -0.0012965056409117222 -0.0031041213156557399 0.0063075464871079198 -0.0016123097373770367 0.0065725525506306441 0.004073618611013222 -0.007500179418362677 0.00086518457411300547 0.0055070512210092966 0.0032827549011436989 -0.005446049523546331 -0.0023648461401816223 -0.0094730031345475543 -0.00078495266851160881 0.005378841035976481 0.0056399124691447738 0.00059609786671084965 0.0036897482276637404 0.0090823649157249879 -0.0057384967166521925 0.0035314244416955296 0.0004502503323408338 0.0022241393604454846 -0.0070267430220782344 -0.0012423836729014343 0.0067363738598349206 -0.0087229026107766682 0.0044372310589134425 3.9680018720394673e-05 -0.0018592231316342568 -0.0049224831583237786 0.001733076596992583 0.0033982459467970143 -0.0017576826329861561 0.0011640129673821976 -0.0055293715019581902 0.0056820878523163214 -0.0064840170773498426 -0.00019508440192374918 -0.0019647078373530068 0.0054966989099505424 -0.0015771740529240943 0.001246607757458108 -0.0017354734243252214 0.0018456299892095334 0.001285018636834111 0.00068689368599548161 -0.004787315935191396 -0.0035396710658292911 0.0027962538377239157 -0.0033658350648470121 -0.005051960388325144 0.00012680263572496876 0.0010493211172745557 -0.0091741349758597181 -0.0052274383950660919 0.00034604996538109843 0.0014938214566050604
|
| 5247 |
leaf_weight=488 288 291 388 200 249 465 224 466 290 211 335 638 229 429 277 227 225 232 219 262 391 377 221 432 202 472 1763 206 870 228 279 241 475 223 349 608 281 1782 1228 280 228 250 260 228 326 401 1920 685 479 1187 458 499 346 300 357 354 297 6407 211 207 830 210
|
| 5248 |
leaf_count=488 288 291 388 200 249 465 224 466 290 211 335 638 229 429 277 227 225 232 219 262 391 377 221 432 202 472 1763 206 870 228 279 241 475 223 349 608 281 1782 1228 280 228 250 260 228 326 401 1920 685 479 1187 458 499 346 300 357 354 297 6407 211 207 830 210
|
| 5249 |
internal_value=1.42808e-05 5.27754e-05 -0.00181704 0.00049206 -0.00523506 0.00013148 0.00345738 0.000179639 0.00215412 0.000193319 0.000117189 -0.000635311 0.000775661 0.000116773 -0.00128383 0.000305617 -0.00191109 -0.00517369 0.00147212 0.000390414 0.000247769 0.00017102 0.000797674 -0.000138644 -0.00103618 0.0018991 0.0030298 -0.000191339 0.000460114 0.00256377 0.000177407 -0.00157193 -0.00297353 -0.00576976 -0.00135191 -0.000903226 -0.00161415 -0.00104239 -0.00025778 -0.00175107 0.000468493 -0.00222244 -0.00368816 0.00134894 0.00235781 0.000989485 0.00179745 -0.000510025 -0.00097978 -0.00137263 -0.0025887 -0.00359276 0.000180197 -0.0024058 -0.000552358 -0.000954077 -0.00272312 0.000684107 -0.000701756 -0.00444075 0.00153841 -0.00188692
|
|
|
|
| 23198 |
decision_type=2 2 2 2 2 2 2 2 2 2 2 10 2 2 2 2 2 2 8 2 2 2 2 2 8 8 2 2 2 2 2 2 2 10 8 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 8 2 2 2 2 2 2 2 2 2
|
| 23199 |
left_child=16 3 -3 4 5 11 7 8 9 -6 -11 -2 -12 14 -9 -14 17 27 20 -20 -19 -22 29 24 -24 -25 -23 -1 -29 46 31 -31 33 34 35 -32 41 -38 39 -35 43 42 -36 -37 47 -45 51 -33 -49 50 -48 52 58 57 55 56 -55 -54 -18 60 -60 -61
|
| 23200 |
right_child=1 2 -4 -5 6 -7 -8 13 -10 10 12 -13 15 -15 -16 -17 22 18 19 -21 21 26 23 25 -26 -27 -28 28 -30 30 32 44 -34 38 36 40 37 -39 -40 -41 -42 -43 -44 45 -46 -47 49 48 -50 -51 -52 -53 53 54 -56 -57 -58 -59 59 61 -62 -63
|
| 23201 |
+
leaf_value=-0.00056668090841809418 -0.0036923904985822036 0.004061724756291369 0.00089243345446309095 0.0019963901796691062 0.0030641948250344571 0.00027121862806703029 -0.0017671403180580243 -1.496605425229033e-05 0.003196705631604227 -0.0021410067563935537 0.0020108960635190263 -0.00041192033370783803 0.00075763097396910385 0.0016054832174186595 -0.00178290595714294 -0.0018372047001529218 0.00027996761214987132 -3.9393167892254827e-05 -0.0021510593594434211 0.0010753217358344398 0.0040341940392298915 0.0030383522336921748 -0.0034696060031101038 0.0014019373091449096 2.1670837019708882e-05 -0.0017030119998885475 0.00044440272990922333 -0.00018636605506429152 0.0025033238624736411 0.002686944208027718 -0.0025526818607799558 0.00017608511244441953 -0.0025048174985020542 -0.0018559645832244875 0.00068336912442116865 -0.0023526986063210076 -0.0019947593696923822 0.0016269890259995702 -0.0035340725913137402 0.0015144495828099615 0.0024117698961594308 -9.0208996896509706e-05 0.0039671733429844569 0.0016618169164087293 -0.0016360110406149493 -0.0010260418160158954 -0.0014353471331799595 0.0028307664570387542 -0.00032562102722295095 0.002310315798070416 0.00086419244162675606 0.00017667990193277706 -0.003439951523164795 -0.001647733161963453 -0.0023103877602600373 0.0032049144830956469 0.00076230991781794477 -0.00011788592669841045 0.0012954937818196966 -0.00048480281323205223 -0.00079430430467431216 -0.0027646323491779179
|
| 23202 |
leaf_weight=2017 308 230 435 310 231 451 323 1917 283 203 402 211 410 365 451 242 1186 436 247 367 237 226 381 367 272 405 398 597 280 339 401 1710 293 292 258 221 306 242 207 291 241 227 379 249 228 307 291 368 214 239 571 2251 254 312 209 296 1272 223 335 370 5876 643
|
| 23203 |
leaf_count=2017 308 230 435 310 231 451 323 1917 283 203 402 211 410 365 451 242 1186 436 247 367 237 226 381 367 272 405 398 597 280 339 401 1710 293 292 258 221 306 242 207 291 241 227 379 249 228 307 291 368 214 239 571 2251 254 312 209 296 1272 223 335 370 5876 643
|
| 23204 |
internal_value=-7.12493e-05 0.000285497 0.00203251 9.22497e-05 -1.28386e-05 -0.00116345 0.000220308 0.000366435 0.00106838 0.000644963 0.000179703 -0.00239171 0.000642593 -9.06683e-05 -0.000357763 -0.000218687 -0.000159715 0.000247974 0.000900478 -0.00023626 0.0014363 0.00217545 -0.00024675 -0.00106531 -0.00203696 -0.000227902 0.00141698 -0.000184512 0.000690913 -0.000190992 0.000120943 0.000644242 -0.00026197 -7.40872e-05 0.000212086 -0.000617296 0.00104406 -0.000394879 -0.00108943 -0.000176479 0.000162487 0.00195079 0.00266827 -0.000556948 0.000359916 0.000185787 -0.000338429 0.000564708 0.00168427 0.000580851 8.03398e-05 -0.00041533 -0.000536792 -5.50251e-06 0.00043899 0.000755246 0.000280245 -0.00192118 -0.000698696 -0.000859533 -0.000679687 -0.0019448
|
weights/members/base/lgb_log10_km_ext.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
weights/members/esm_mean_std/lgb_log10_kcat.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
weights/members/esm_mean_std/lgb_log10_km.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
weights/members/similar_substrates/lgb_log10_km.txt
CHANGED
|
@@ -7709,11 +7709,11 @@ num_leaves=63
|
|
| 7709 |
num_cat=0
|
| 7710 |
split_feature=178 3401 3192 440 3401 3068 2716 3228 3220 2729 131 77 2936 3192 2936 2716 3375 3303 3220 3228 1660 258 3168 484 1802 3129 3058 305 264 131 3401 296 3192 440 440 3166 2716 148 3407 3280 2716 3228 3129 3228 264 264 3228 3192 3056 3354 3152 3407 456 3407 3129 3401 3000 2716 440 3276 3229 3120
|
| 7711 |
split_gain=3.23654 3.89186 5.97604 4.6006 4.16774 4.51859 4.06998 4.70718 5.10295 5.21705 4.70385 4.32012 3.69302 3.53186 3.97113 3.33237 13.7748 4.07996 4.19026 3.1044 3.08873 5.0276 6.29413 5.11983 3.64457 8.88462 3.81812 6.44545 8.58005 3.91529 4.74138 5.53836 5.37216 4.77658 5.284 5.51216 4.41534 4.2762 5.1308 5.81963 5.83783 5.0785 6.18434 4.87904 4.66406 5.92342 4.29181 4.09624 4.06881 3.94751 4.03955 3.94332 4.59493 5.84046 4.52579 7.56063 5.96981 4.29952 6.11265 4.83606 4.40951 4.15151
|
| 7712 |
-
threshold=0.007944397162646057 0.78595125984846814 0.49142280220985418 0.037399070337414748 0.63609441157110391 0.11089201271533967 -0.4965787380933761 0.074885871261358275 -3.7937194108963008 -0.13871010392904279 0.0024600282777100806 0.0029112143674865369 -0.48722177743911738 0.33817745745182043 -0.4738005250692367 -0.29122202098369593 -0.61245149374008168 -0.3257687240839004 -3.8492113351821895 0.65142032504081737 1.5000000000000002 0.0053643283899873504 1.0000000180025095e-35 0.059445491060614593 1.5000000000000002 0.19366602599620822 0.98347336053848278 0.0020682545145973568 0.0013431839761324229 0.0030888048931956296 0.65796081088702862 0.0039702244102954873 0.6801365613937379 0.05135531164705754 0.016021390445530418 0.4189304411411286 -0.39311961829662317 0.0013976247282698753 1.4842414742769676 -0.56708532571792591 -0.50425431132316578 0.47743380069732672 -0.17749967426061627 0.26749722659587866 0.0023378148907795553 0.003849859233014286 0.16153581440448764 0.25429114699363714 0.48353120684623724 -0.050975758582353585 -0.17804784327745435 2.0625779147902654 0.045558324083685882 1.4842414742769676 -0.25196261703968043 0.95328858737562128 -0.13950484991073606 -0.39917953312396998 0.022878953255712989 -0.10308043658733367 0.077737379819154753 -1.5795819759368894
|
| 7713 |
decision_type=2 2 2 2 2 2 8 2 2 8 2 2 2 2 2 10 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 10 2 8 2 10 2 2 2 2 2 2 2 2 2 2 10 2 10 2 2 2 10 2 2 2 2
|
| 7714 |
left_child=15 4 3 19 6 -6 12 -8 9 -9 -10 -11 -2 14 -12 20 -17 18 -18 -3 24 22 -22 -23 26 -26 29 -28 -29 51 31 37 33 34 47 36 -36 41 48 44 -41 42 46 -44 -40 -46 -31 -32 -39 50 -33 52 53 54 -1 56 61 58 -53 -60 -59 -56
|
| 7715 |
right_child=1 2 -4 -5 5 -7 7 8 10 11 13 -13 -14 -15 -16 16 17 -19 -20 -21 21 23 -24 -25 25 -27 27 28 -30 30 32 49 -34 -35 35 -37 -38 38 39 40 -42 -43 43 -45 45 -47 -48 -49 -50 -51 -52 57 -54 -55 55 -57 -58 60 59 -61 -62 -63
|
| 7716 |
-
leaf_value=0.0023316043030623514 -0.00059258981268705646 -0.0069618450071323992 0.0019202130613108117 -0.0011552542215784375 -0.00030964839719093687 0.004786898726962494 -0.0044076842583422914 0.0003273118837898017 -0.0015997310079355405 -0.0059486401941232338 0.0064231652542683891 -0.00080080063626484339 0.0033163910404720512 -0.0010676996207306486 0.0012942833621124991 -0.0065927562621904403 -0.00090854817432830311 -0.0023673270080036592 0.004717405925363149 -0.0024001819912645378 0.00076693637101664673 -0.00090869125912265833 -0.
|
| 7717 |
leaf_weight=325 480 298 273 632 342 277 346 406 598 385 201 239 384 258 401 326 201 239 273 266 1517 313 447 217 472 261 816 225 233 211 419 277 267 1093 1981 293 533 1448 440 226 1526 831 440 245 200 219 257 222 681 314 697 200 5197 427 1027 212 209 475 278 487 255 571
|
| 7718 |
leaf_count=325 480 298 273 632 342 277 346 406 598 385 201 239 384 258 401 326 201 239 273 266 1517 313 447 217 472 261 816 225 233 211 419 277 267 1093 1981 293 533 1448 440 226 1526 831 440 245 200 219 257 222 681 314 697 200 5197 427 1027 212 209 475 278 487 255 571
|
| 7719 |
internal_value=-5.81679e-05 -0.000703493 -0.00203175 -0.00294227 -0.000247861 0.00201088 -0.00063035 -0.00117919 -0.000714368 -0.00232014 0.000428105 -0.00402068 0.0011628 0.00184034 0.00308372 7.52779e-05 -0.00158371 0.000766055 0.00236224 -0.00488972 0.000139719 -0.000863973 -0.000158275 -0.00342769 0.000242243 -0.00182707 0.000306832 0.00189806 0.00470491 0.000215861 0.000559386 0.00100588 -0.000185196 6.20837e-05 -0.000486363 -0.00104804 -0.000584842 0.00135084 0.000858232 -3.40574e-05 -0.0010248 0.00251753 0.00379805 0.00559524 0.00197517 -0.000295691 0.00110551 0.00195158 0.00194758 -0.000791505 0.000161075 -0.000240004 -0.000519652 -0.00150387 -0.00090592 -0.00143599 -0.00206845 0.00106993 -0.000246849 0.000985927 0.00279042 -0.0026925
|
|
|
|
| 7709 |
num_cat=0
|
| 7710 |
split_feature=178 3401 3192 440 3401 3068 2716 3228 3220 2729 131 77 2936 3192 2936 2716 3375 3303 3220 3228 1660 258 3168 484 1802 3129 3058 305 264 131 3401 296 3192 440 440 3166 2716 148 3407 3280 2716 3228 3129 3228 264 264 3228 3192 3056 3354 3152 3407 456 3407 3129 3401 3000 2716 440 3276 3229 3120
|
| 7711 |
split_gain=3.23654 3.89186 5.97604 4.6006 4.16774 4.51859 4.06998 4.70718 5.10295 5.21705 4.70385 4.32012 3.69302 3.53186 3.97113 3.33237 13.7748 4.07996 4.19026 3.1044 3.08873 5.0276 6.29413 5.11983 3.64457 8.88462 3.81812 6.44545 8.58005 3.91529 4.74138 5.53836 5.37216 4.77658 5.284 5.51216 4.41534 4.2762 5.1308 5.81963 5.83783 5.0785 6.18434 4.87904 4.66406 5.92342 4.29181 4.09624 4.06881 3.94751 4.03955 3.94332 4.59493 5.84046 4.52579 7.56063 5.96981 4.29952 6.11265 4.83606 4.40951 4.15151
|
| 7712 |
+
threshold=0.007944397162646057 0.78595125984846814 0.49142280220985418 0.037399070337414748 0.63609441157110391 0.11089201271533967 -0.4965787380933761 0.074885871261358275 -3.7937194108963008 -0.13871010392904279 0.0024600282777100806 0.0029112143674865369 -0.48722177743911738 0.33817745745182043 -0.4738005250692367 -0.29122202098369593 -0.61245149374008168 -0.3257687240839004 -3.8492113351821895 0.65142032504081737 1.5000000000000002 0.0053643283899873504 -1.0000000180025095e-35 0.059445491060614593 1.5000000000000002 0.19366602599620822 0.98347336053848278 0.0020682545145973568 0.0013431839761324229 0.0030888048931956296 0.65796081088702862 0.0039702244102954873 0.6801365613937379 0.05135531164705754 0.016021390445530418 0.4189304411411286 -0.39311961829662317 0.0013976247282698753 1.4842414742769676 -0.56708532571792591 -0.50425431132316578 0.47743380069732672 -0.17749967426061627 0.26749722659587866 0.0023378148907795553 0.003849859233014286 0.16153581440448764 0.25429114699363714 0.48353120684623724 -0.050975758582353585 -0.17804784327745435 2.0625779147902654 0.045558324083685882 1.4842414742769676 -0.25196261703968043 0.95328858737562128 -0.13950484991073606 -0.39917953312396998 0.022878953255712989 -0.10308043658733367 0.077737379819154753 -1.5795819759368894
|
| 7713 |
decision_type=2 2 2 2 2 2 8 2 2 8 2 2 2 2 2 10 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 10 2 8 2 10 2 2 2 2 2 2 2 2 2 2 10 2 10 2 2 2 10 2 2 2 2
|
| 7714 |
left_child=15 4 3 19 6 -6 12 -8 9 -9 -10 -11 -2 14 -12 20 -17 18 -18 -3 24 22 -22 -23 26 -26 29 -28 -29 51 31 37 33 34 47 36 -36 41 48 44 -41 42 46 -44 -40 -46 -31 -32 -39 50 -33 52 53 54 -1 56 61 58 -53 -60 -59 -56
|
| 7715 |
right_child=1 2 -4 -5 5 -7 7 8 10 11 13 -13 -14 -15 -16 16 17 -19 -20 -21 21 23 -24 -25 25 -27 27 28 -30 30 32 49 -34 -35 35 -37 -38 38 39 40 -42 -43 43 -45 45 -47 -48 -49 -50 -51 -52 57 -54 -55 55 -57 -58 60 59 -61 -62 -63
|
| 7716 |
+
leaf_value=0.0023316043030623514 -0.00059258981268705646 -0.0069618450071323992 0.0019202130613108117 -0.0011552542215784375 -0.00030964839719093687 0.004786898726962494 -0.0044076842583422914 0.0003273118837898017 -0.0015997310079355405 -0.0059486401941232338 0.0064231652542683891 -0.00080080063626484339 0.0033163910404720512 -0.0010676996207306486 0.0012942833621124991 -0.0065927562621904403 -0.00090854817432830311 -0.0023673270080036592 0.004717405925363149 -0.0024001819912645378 0.00076693637101664673 -0.00090869125912265833 -0.003246274636105976 -0.006860998394911378 0.00064568055462451064 -0.0061576672537231678 0.0002847655931989139 0.0087505954949958047 0.00059879115311267932 0.0041800171374216906 0.00017652768765452441 -0.0028423252926883043 -0.0042412161747908171 0.0017809491254165229 7.1725712137555003e-05 -0.0048718837118882797 -0.0029814869809226207 0.0010352299499246467 0.0040961724113983411 -0.0054163102176379785 -0.00034338615981383208 0.00071680573739363903 0.0035722737820237244 0.0089457591921364987 -0.0039282573013167295 0.0030483950668331802 -0.0014807036522778503 0.0051497759996885269 0.0038444315205704203 -0.0036600966069467917 0.0013779989645297372 -0.0047846249240849695 7.0035499142870463e-06 -0.0046904303874176854 -0.0015274882212250578 0.003805205554487435 0.0026080230772750424 0.0010364836617588959 -0.0021232849146569301 0.0027678062567830283 0.0058951454107596911 -0.0047255255762042444
|
| 7717 |
leaf_weight=325 480 298 273 632 342 277 346 406 598 385 201 239 384 258 401 326 201 239 273 266 1517 313 447 217 472 261 816 225 233 211 419 277 267 1093 1981 293 533 1448 440 226 1526 831 440 245 200 219 257 222 681 314 697 200 5197 427 1027 212 209 475 278 487 255 571
|
| 7718 |
leaf_count=325 480 298 273 632 342 277 346 406 598 385 201 239 384 258 401 326 201 239 273 266 1517 313 447 217 472 261 816 225 233 211 419 277 267 1093 1981 293 533 1448 440 226 1526 831 440 245 200 219 257 222 681 314 697 200 5197 427 1027 212 209 475 278 487 255 571
|
| 7719 |
internal_value=-5.81679e-05 -0.000703493 -0.00203175 -0.00294227 -0.000247861 0.00201088 -0.00063035 -0.00117919 -0.000714368 -0.00232014 0.000428105 -0.00402068 0.0011628 0.00184034 0.00308372 7.52779e-05 -0.00158371 0.000766055 0.00236224 -0.00488972 0.000139719 -0.000863973 -0.000158275 -0.00342769 0.000242243 -0.00182707 0.000306832 0.00189806 0.00470491 0.000215861 0.000559386 0.00100588 -0.000185196 6.20837e-05 -0.000486363 -0.00104804 -0.000584842 0.00135084 0.000858232 -3.40574e-05 -0.0010248 0.00251753 0.00379805 0.00559524 0.00197517 -0.000295691 0.00110551 0.00195158 0.00194758 -0.000791505 0.000161075 -0.000240004 -0.000519652 -0.00150387 -0.00090592 -0.00143599 -0.00206845 0.00106993 -0.000246849 0.000985927 0.00279042 -0.0026925
|
weights/meta.json
CHANGED
|
@@ -25,8 +25,10 @@
|
|
| 25 |
"log10_kcat": 1131,
|
| 26 |
"log10_km": 1333
|
| 27 |
},
|
| 28 |
-
"
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
},
|
| 31 |
{
|
| 32 |
"name": "enzyme_neighbours",
|
|
|
|
| 25 |
"log10_kcat": 1131,
|
| 26 |
"log10_km": 1333
|
| 27 |
},
|
| 28 |
+
"ext": {
|
| 29 |
+
"log10_kcat": 3833,
|
| 30 |
+
"log10_km": 938
|
| 31 |
+
}
|
| 32 |
},
|
| 33 |
{
|
| 34 |
"name": "enzyme_neighbours",
|