Skip to content

Commit

Permalink
update notebooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangyan93 committed May 24, 2024
1 parent c10f276 commit 1e0e19d
Show file tree
Hide file tree
Showing 8 changed files with 313 additions and 568 deletions.
2 changes: 1 addition & 1 deletion mgktools/evaluators/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def eval_metric_func(y: List[float], y_pred: List[float], metric: Metric) -> flo
elif metric == 'mse':
return mean_squared_error(y, y_pred)
elif metric == 'rmse':
return np.sqrt(eval_metric_func(y, y_pred, 'mse'))
return mean_squared_error(y, y_pred, squared=False)
elif metric == 'max':
return np.max(abs(y - y_pred))
elif metric == 'spearman':
Expand Down
81 changes: 23 additions & 58 deletions notebooks/1.tutorials/1.first_introduction.ipynb

Large diffs are not rendered by default.

64 changes: 11 additions & 53 deletions notebooks/1.tutorials/2.pre-computed_kernel.ipynb

Large diffs are not rendered by default.

255 changes: 100 additions & 155 deletions notebooks/1.tutorials/3.available_models.ipynb

Large diffs are not rendered by default.

19 changes: 2 additions & 17 deletions notebooks/1.tutorials/4.evaluate_model_performance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,7 @@
"execution_count": 1,
"id": "22f0c2dc",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:root:No normalization for BCUT2D_MWHI\n",
"WARNING:root:No normalization for BCUT2D_MWLOW\n",
"WARNING:root:No normalization for BCUT2D_CHGHI\n",
"WARNING:root:No normalization for BCUT2D_CHGLO\n",
"WARNING:root:No normalization for BCUT2D_LOGPHI\n",
"WARNING:root:No normalization for BCUT2D_LOGPLOW\n",
"WARNING:root:No normalization for BCUT2D_MRHI\n",
"WARNING:root:No normalization for BCUT2D_MRLOW\n"
]
}
],
"outputs": [],
"source": [
"# Dataset.\n",
"from mgktools.data.data import Dataset\n",
Expand Down Expand Up @@ -174,7 +159,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down

Large diffs are not rendered by default.

79 changes: 13 additions & 66 deletions notebooks/3.hybrid_kernel/1.RDKit_features.ipynb

Large diffs are not rendered by default.

131 changes: 81 additions & 50 deletions notebooks/4.interpretation/interpret.ipynb

Large diffs are not rendered by default.

0 comments on commit 1e0e19d

Please sign in to comment.