Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete old results #34

Merged
merged 2 commits into from
Oct 5, 2023
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
7 changes: 6 additions & 1 deletion autogluon_zeroshot/repository/evaluation_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def __init__(
self._tabular_predictions: TabularModelPredictions = tabular_predictions
self._zeroshot_context: ZeroshotSimulatorContext = zeroshot_context
self._ground_truth: dict = ground_truth
assert all(x in self._tid_to_name for x in self._tabular_predictions.datasets)
if self._tabular_predictions is not None:
assert all(x in self._tid_to_name for x in self._tabular_predictions.datasets)

def to_zeroshot(self) -> repository.EvaluationRepositoryZeroshot:
"""
Expand Down Expand Up @@ -294,6 +295,10 @@ def _construct_single_best_config_scorer(self, **kwargs) -> SingleBestConfigScor
)
return config_scorer

@classmethod
def from_context(cls, version: str = None, lazy_format: bool = True):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not load to keep the naming consistent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

load already exists and is used in the case that you point to the directory of the artifacts (for lazy) or the pkl file (for in-memory), which is different from from_context.

return load(version=version, lazy_format=lazy_format)


def load(version: str = None, lazy_format=True) -> EvaluationRepository:
from autogluon_zeroshot.contexts import get_context
Expand Down
8,644 changes: 0 additions & 8,644 deletions data/results/all/openml_ag_2022_09_30_cat_zs_models.csv

This file was deleted.

10,347 changes: 0 additions & 10,347 deletions data/results/all/openml_ag_2022_09_30_gbm_zs_models.csv

This file was deleted.

38,612 changes: 0 additions & 38,612 deletions data/results/all/openml_ag_2022_10_02_zs_models.csv

This file was deleted.

602 changes: 0 additions & 602 deletions data/results/all/results_ranked_all.csv

This file was deleted.

56,985 changes: 0 additions & 56,985 deletions data/results/all/results_ranked_by_dataset_all.csv

This file was deleted.

46,879 changes: 0 additions & 46,879 deletions data/results/all/results_ranked_by_dataset_valid.csv

This file was deleted.

602 changes: 0 additions & 602 deletions data/results/all/results_ranked_valid.csv

This file was deleted.

Binary file not shown.
Binary file not shown.
609 changes: 0 additions & 609 deletions data/results/all_v3/results_ranked_valid.csv

This file was deleted.

6,756 changes: 0 additions & 6,756 deletions data/results/automl/results_ranked_by_dataset_valid.csv

This file was deleted.

8 changes: 0 additions & 8 deletions data/results/automl/results_ranked_valid.csv

This file was deleted.

Binary file not shown.
609 changes: 0 additions & 609 deletions data/results/bagged/all/results_ranked_valid.csv

This file was deleted.

Binary file not shown.
Binary file not shown.
159 changes: 0 additions & 159 deletions data/results/bagged/small_30/results_ranked_valid.csv

This file was deleted.

10,347 changes: 0 additions & 10,347 deletions data/results/lightgbm/openml_ag_2022_09_30_gbm_zs_models.csv

This file was deleted.

9,673 changes: 0 additions & 9,673 deletions data/results/lightgbm/results_ranked_by_dataset_valid.csv

This file was deleted.

105 changes: 0 additions & 105 deletions data/results/lightgbm/results_ranked_valid.csv

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/simulate/all_v3/run_simulate_zs_ensemble.py

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/simulate/all_v3/run_simulate_zs_single_best.py

This file was deleted.

33 changes: 0 additions & 33 deletions scripts/simulate/bagged/run_inspect_overfit.py

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/simulate/bagged/run_simulate_zs_ensemble_bagged.py

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/simulate/bagged/run_simulate_zs_single_best_bagged.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


if __name__ == '__main__':
context_name = 'BAG_D244_F10_C608_FULL' # The context you want to download
context_name = 'BAG_D244_F3_C1416_small' # The context you want to download
dry_run = True # Set False to download files
include_zs = True # Set False to only download files necessary for SingleBest (skip predict proba files)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@
from autogluon_zeroshot.simulation.sim_runner import run_zs_simulation_debug


# TODO: Refactor to use EvaluationRepository, this is old code
if __name__ == '__main__':
# context_name = 'BAG_D244_F10_C608_FULL'
context_name = 'BAG_D279_F10_C608_FULL'
context_name = 'BAG_D244_F3_C1416_small'
benchmark_context = get_context(context_name)
zsc, configs_full, zeroshot_pred_proba, zeroshot_gt = benchmark_context.load()
zsc.print_info()

# NOTE: For speed of simulation, it is recommended backend='ray'
backend = 'ray'

# configs = get_configs_small()
configs = None

datasets = zsc.get_dataset_folds()
# datasets = zsc.get_dataset_folds(problem_type=['binary', 'multiclass'])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


if __name__ == '__main__':
subcontext_name = 'BAG_D244_F10_C608_FULL'
subcontext_name = 'BAG_D244_F3_C1416_small'
results_cv, repo = run_zs_sim_end_to_end(subcontext_name=subcontext_name,
config_scorer_type='ensemble')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


if __name__ == '__main__':
subcontext_name = 'BAG_D244_F10_C608_FULL'
subcontext_name = 'BAG_D244_F3_C1416_small'
results_cv, repo = run_zs_sim_end_to_end(subcontext_name=subcontext_name,
config_scorer_type='single')

Expand Down