forked from ches-001/metatune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ShiroDima/MetaTune
- Loading branch information
Showing
24 changed files
with
1,568 additions
and
177 deletions.
There are no files selected for viewing
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,4 +1,6 @@ | ||
**/__pycache__/ | ||
temp.py | ||
.gitignore | ||
.pytest_cache | ||
.pytest_cache | ||
metatune/ | ||
assets/ |
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,24 @@ | ||
from .tune_classifier import * | ||
from .tune_regressor import * | ||
from typing import Iterable | ||
|
||
|
||
__all__: Iterable[str] = [ | ||
"baseline.mixin", | ||
"tests.test_tuners", | ||
"tests.utils", | ||
"ensemble_classifier", | ||
"linear_model_classifier", | ||
"mlp_classifier", | ||
"naive_bayes_classifier", | ||
"neighbor_classifier", | ||
"svc", | ||
"tree_classifier" | ||
"ensemble_regressor", | ||
"linear_model_regressor", | ||
"mlp_regressor", | ||
"neighbor_regressor", | ||
"svr", | ||
"tree_regressor", | ||
"utils.module_utils", | ||
] |
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 +1,7 @@ | ||
from .mixin import * | ||
from baseline.mixin import * | ||
from typing import Iterable | ||
|
||
|
||
__all__: Iterable[str] = [ | ||
"SampleClassMixin" | ||
] |
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
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,53 @@ | ||
from utils.module_utils import get_entities, get_tuner_model_dict | ||
from utils.module_utils import get_tuner_entities, get_tuner_model_dict | ||
from tune_classifier.svc import * | ||
from tune_classifier.tree_classifier import * | ||
from tune_classifier.linear_model_classifier import * | ||
from tune_classifier.ensemble_classifier import * | ||
from tune_classifier.naive_bayes_classifier import * | ||
from tune_classifier.neighbor_classifier import * | ||
from typing import Iterable, Tuple, Dict, Generator, Callable | ||
from tune_classifier.mlp_classifier import * | ||
from typing import Iterable, Dict, Generator, Callable | ||
|
||
__all__: Iterable[str] = [ | ||
|
||
__modules__: Iterable[str] = [ | ||
"tune_classifier.svc", | ||
"tune_classifier.tree_classifier", | ||
"tune_classifier.linear_model_classifier", | ||
"tune_classifier.ensemble_classifier", | ||
"tune_classifier.naive_bayes_classifier", | ||
"tune_classifier.neighbor_classifier", | ||
"tune_classifier.mlp_classifier", | ||
] | ||
|
||
classifier_tuning_entities: Generator = (i for i in sum(list(map(get_entities, __all__)), [])) | ||
classifier_tuning_entities: Generator = (i for i in sum(list(map(get_tuner_entities, __modules__)), [])) | ||
|
||
classifier_tuner_model_class_dict: Dict[str, Callable] = { | ||
k:v for _dict in map(get_tuner_model_dict, __all__) for k, v in _dict.items() | ||
k:v for _dict in map(get_tuner_model_dict, __modules__) for k, v in _dict.items() | ||
} | ||
|
||
__all__: Iterable[str] = [ | ||
"classifier_tuning_entities", | ||
"classifier_tuner_model_class_dict", | ||
"SVCTuner", | ||
"LinearSVCTuner", | ||
"NuSVCTuner", | ||
"DecisionTreeClassifierTuner", | ||
"ExtraTreeClassifierTuner", | ||
"LogisticRegressionTuner", | ||
"PerceptronTuner", | ||
"PassiveAggressiveClassifierTuner", | ||
"SGDClassifierTuner", | ||
"RandomForestClassifierTuner", | ||
"ExtraTreesClassifierTuner", | ||
"AdaBoostClassifierTuner", | ||
"GradientBoostingClassifierTuner", | ||
"BaggingClassifierTuner", | ||
"HistGradientBoostingClassifierTuner", | ||
"GaussianNBTuner", | ||
"BernoulliNBTuner", | ||
"MultinomialNBTuner", | ||
"ComplementNBTuner", | ||
"CategoricalNBTuner", | ||
"KNeighborsClassifierTuner", | ||
"MLPClassifierTuner", | ||
] |
Oops, something went wrong.