Skip to content

Commit 171baeb

Browse files
committed
chore: Update gitignore and clean up code
This commit introduces several maintenance and cleanup changes: - Updates the `.gitignore` file to exclude artifacts related to time-series experiments and data generation. This includes the time-series experiment results directory, generated synthetic data, a saved Keras model, and a new constraints file. - Refactors `notebooks/unit_test_synthetic.ipynb` by removing redundant and unused imports. - Cleans up `tests/test_tabpfn_classifier_class.py` by removing an unused variable.
1 parent e459782 commit 171baeb

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,9 @@ percent_missing_synthetic_data_generated.pkl
113113
synthetic_data_generated.csv
114114
synthetic_data_generated.csv
115115
notebooks/tabpfn-v2.5-classifier-v2.5_default-2.ckpt
116+
notebooks/HFE_ML_experiments_ts/*
117+
ts-constraints.txt
118+
notebooks/best_model.keras
119+
notebooks/percent_missing_synthetic_ts_data_generated.pkl
120+
notebooks/percent_missing_synthetic_ts_data.pkl
121+
notebooks/synthetic_ts_data_generated.csv

notebooks/unit_test_synthetic.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
"outputs": [],
1818
"source": [
1919
"import logging\n",
20-
"import os\n",
2120
"import shutil\n",
2221
"from pathlib import Path\n",
2322
"import yaml\n",
2423
"# --- Make sure your notebook's working directory is the project root ---\n",
2524
"# (e.g., /home/samorah/_data/ml_binary_classification_gridsearch_hyperOpt/)\n",
26-
"from pathlib import Path\n",
2725
"\n",
2826
"import pandas as pd\n",
2927
"from IPython.display import display\n",
@@ -102,7 +100,6 @@
102100
"metadata": {},
103101
"outputs": [],
104102
"source": [
105-
"import yaml\n",
106103
"\n",
107104
"CONFIG_HYPEROPT_PATH = Path(\"../config_hyperopt.yml\")\n",
108105
"\n",

tests/test_tabpfn_classifier_class.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def test_fit_v2(self, mock_tabpfn_cls):
158158
@patch("ml_grid.model_classes.tabpfn_classifier_class.TabPFNClassifier")
159159
def test_predict_and_predict_proba_delegation(self, mock_tabpfn_cls):
160160
"""Test that predict and predict_proba delegate to the internal estimator."""
161-
mock_estimator_instance = mock_tabpfn_cls.return_value
162161

163162
model_wrapper = TabPFNClassifierClass()
164163

0 commit comments

Comments
 (0)