-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from perib/new_search_space_def
New search space def
- Loading branch information
Showing
74 changed files
with
10,182 additions
and
5,922 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
130 changes: 69 additions & 61 deletions
130
Tutorial/4_Symbolic_Regression_and_Classification.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from ConfigSpace import ConfigurationSpace\n", | ||
"from ConfigSpace import ConfigurationSpace, Integer, Float, Categorical, Normal\n", | ||
"\n", | ||
"simple_imputer = ConfigurationSpace(\n", | ||
" space = {\n", | ||
" 'strategy' : Categorical('strategy', [['mean','median',], ['most_frequent'] ]),\n", | ||
" 'add_indicator' : Categorical('add_indicator', [True, False]), \n", | ||
" }\n", | ||
")\n", | ||
"\n", | ||
"simple_imputer.sample_configuration()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 11, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/plain": [ | ||
"Configuration(values={\n", | ||
" '2': 2,\n", | ||
" 'a': 2,\n", | ||
"})" | ||
] | ||
}, | ||
"execution_count": 11, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"from ConfigSpace import ConfigurationSpace, EqualsCondition\n", | ||
"import ConfigSpace\n", | ||
"\n", | ||
"cs = ConfigurationSpace({\n", | ||
"\n", | ||
" \"1\": [1,2,3],\n", | ||
" \"2\": ConfigSpace.Constant(\"2\", 2),\n", | ||
"\n", | ||
" \"a\": [1, 2, 3],\n", | ||
"\n", | ||
"})\n", | ||
"\n", | ||
"cond = EqualsCondition(cs['1'], cs['a'], 1)\n", | ||
"cond2 = EqualsCondition(cs['2'], cs['a'], 2)\n", | ||
"\n", | ||
"cs.add_condition(cond)\n", | ||
"cs.add_condition(cond2)\n", | ||
"\n", | ||
"cs.sample_configuration()" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "tpot2env", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.10.13" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1 @@ | ||
#TODO: make configuration dictionaries optinally based on strings? | ||
from .classifiers import make_classifier_config_dictionary | ||
from .transformers import make_transformer_config_dictionary | ||
from .regressors import make_regressor_config_dictionary | ||
from .selectors import make_selector_config_dictionary | ||
from .special_configs import make_arithmetic_transformer_config_dictionary, make_FSS_config_dictionary, make_passthrough_config_dictionary | ||
from .autoqtl_builtins import make_FeatureEncodingFrequencySelector_config_dictionary, make_genetic_encoders_config_dictionary | ||
from .hyperparametersuggestor import * | ||
|
||
try: | ||
from .classifiers_sklearnex import make_sklearnex_classifier_config_dictionary | ||
from .regressors_sklearnex import make_sklearnex_regressor_config_dictionary | ||
except ModuleNotFoundError: #if optional packages are not installed | ||
pass | ||
|
||
try: | ||
from .mdr_configs import make_skrebate_config_dictionary, make_MDR_config_dictionary, make_ContinuousMDR_config_dictionary | ||
except: #if optional packages are not installed | ||
pass | ||
|
||
from .classifiers import * | ||
from .get_configspace import get_search_space |
Oops, something went wrong.