You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will train our baseline models which just predict the drug or tissue means or the mean drug and cell line effects.
89
+
This will download a small toy drug response dataset, train our baseline models which just predict the drug or tissue means or the mean drug and cell line effects.
84
90
It will evaluate in "LCO" which is the leave-cell-line-out splitting strategy using 7 fold cross validation.
baselines=[naive_mean], # Ablation studies and robustness tests are not run for baselines.
123
+
response_data=toyv1,
124
+
n_cv_splits=2, # the number of cross validation splits. Should be higher in practice :)
125
+
test_mode="LCO", # LCO means Leave-Cell-Line out. This means that the test and validation splits only contain unseed cell lines.
126
+
run_id="my_first_run",
127
+
path_data="data", # where the downloaded drug response and feature data is stored
128
+
path_out="results", # results are stored here :)
129
+
hyperparameter_tuning=False) # if True (default), hyperparameters of the models and baselines are tuned.
123
130
```
124
131
125
132
This will run the Random Forest and Simple Neural Network models on the CTRPv2 dataset, using the Naive Mean Effects Predictor as a baseline. The results will be stored in `results/my_second_run/CTRPv2/LCO`.
126
133
To obtain evaluation metrics, you can use:
127
134
128
135
```python
129
-
from drevalpy.visualization.utils import parse_results, prep_results, write_results
0 commit comments