Skip to content

Commit 83a717e

Browse files
Merge pull request #9 from brsynth/dev
v0.1.6
2 parents 21c2f3c + 50cd905 commit 83a717e

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

amn/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.5"
1+
__version__ = "0.1.6"

amn/predict.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def predict_amn(
6060
"biolog": {
6161
"cobra_file": get_default_model('biolog','build'),
6262
"metric": "r2_score"
63+
},
64+
65+
"custom": {
66+
"cobra_file": cobra_file,
67+
"metric": metric
6368
}
6469
}
6570

amn/train.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ def build_training_set(
5959

6060
"biolog": {
6161
"cobra_file": get_default_model('biolog','build')
62+
},
63+
64+
"custom": {
65+
"cobra_file": cobra_file
6266
}
6367
}
6468
#if organism not in PRESETS:
@@ -147,6 +151,17 @@ def train_gr_prediction(
147151
"xfold": 5,
148152
"niter": 0,
149153
"batch_size": 100
154+
},
155+
156+
"custom": {
157+
"trainingfile": trainingfile,
158+
"cobraname_override": cobraname_override,
159+
"n_hidden": n_hidden,
160+
"hidden_dim": hidden_dim,
161+
"epochs": epochs,
162+
"xfold": xfold,
163+
"niter": niter,
164+
"batch_size": batch_size
150165
}
151166
}
152167
#if organism not in PRESETS:

0 commit comments

Comments
 (0)