Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
## BUG FIXES

* Fix the component paths, build paths and `rename_keys` separator in the helper scripts, which prevented `scripts/create_datasets/test_resources.sh` and both `run_test.sh` scripts from running at all (PR #22).
*

* `cellmapper_scvi`: Fix postfix due to breaking changes in package (PR #23).

* `simple_mlp_predict`: Size the model output with `input_train_mod2.n_vars` instead of `input_test_mod1.n_vars`. The two only coincide on the test resources, so this crashed on every real dataset (PR #24).

# task_predict_modality 0.1.1

## NEW FUNCTIONALITY
Expand Down
4 changes: 2 additions & 2 deletions src/methods/simple_mlp/simple_mlp_predict/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _predict(model,dl):

print('Start predict', flush=True)
if task == 'GEX2ATAC':
y_pred = ymean*np.ones([input_test_mod1.n_obs, input_test_mod1.n_vars])
y_pred = ymean*np.ones([input_test_mod1.n_obs, input_train_mod2.n_vars])
else:
folds = [0, 1, 2]

Expand All @@ -82,7 +82,7 @@ def _predict(model,dl):
model_inf = MLP.load_from_checkpoint(
ckpt,
in_dim=X.shape[1],
out_dim=input_test_mod1.n_vars,
out_dim=input_train_mod2.n_vars,
ymean=ymean,
config=config
)
Expand Down
Loading