Skip to content

Commit

Permalink
increase skopt runs 10 -> 25
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasplagwitz committed Sep 7, 2020
1 parent 3d2686c commit cd5ddb3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ or you can read a prolonged introduction on [Arxiv](https://arxiv.org/abs/2002.0

---
## Getting Started
In order to use PHOTON you only need to have your favourite Python IDE ready.
In order to use PHOTONAI you only need to have your favourite Python IDE ready.
Then install the latest stable version simply via pip
```
pip install photonai
Expand All @@ -52,7 +52,7 @@ from photonai.optimization import FloatRange, Categorical, IntegerRange
my_pipe = Hyperpipe('basic_svm_pipe', # the name of your pipeline
# which optimizer PHOTON shall use
optimizer='sk_opt',
optimizer_params={'n_configurations': 10},
optimizer_params={'n_configurations': 25},
# the performance metrics of your interest
metrics=['accuracy', 'precision', 'recall', 'balanced_accuracy'],
# after hyperparameter optimization, this metric declares the winner config
Expand Down
1 change: 0 additions & 1 deletion examples/advanced/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def my_monitor(X, y=None, **kwargs):
debug = True


# WE USE THE BREAST CANCER SET FROM SKLEARN
X, y = load_boston(return_X_y=True)

# DESIGN YOUR PIPELINE
Expand Down
2 changes: 0 additions & 2 deletions examples/advanced/feature_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from photonai.base import Hyperpipe, PipelineElement, OutputSettings, Switch
from photonai.optimization import IntegerRange


# WE USE THE BREAST CANCER SET FROM SKLEARN
X, y = load_boston(return_X_y=True)

# DESIGN YOUR PIPELINE
Expand Down
1 change: 0 additions & 1 deletion examples/advanced/regression_with_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from photonai.base import Hyperpipe, PipelineElement, OutputSettings
from photonai.optimization import MinimumPerformance, IntegerRange

# WE USE THE BREAST CANCER SET FROM SKLEARN
X, y = load_boston(return_X_y=True)

# DESIGN YOUR PIPELINE
Expand Down
4 changes: 2 additions & 2 deletions examples/basic/jmlr_example.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import KFold

from photonai.base import Hyperpipe, PipelineElement, Stack, OutputSettings
from photonai.optimization import FloatRange, IntegerRange, Categorical
from photonai.base import Hyperpipe, PipelineElement, Stack
from photonai.optimization import FloatRange, IntegerRange

X, y = load_breast_cancer(return_X_y=True)

Expand Down
4 changes: 2 additions & 2 deletions examples/basic/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

my_pipe = Hyperpipe('basic_stack_pipe',
optimizer='sk_opt',
optimizer_params={'n_configurations': 5},
optimizer_params={'n_configurations': 25},
metrics=['accuracy', 'precision', 'recall'],
best_config_metric='accuracy',
outer_cv=KFold(n_splits=3),
Expand All @@ -21,7 +21,7 @@

tree = PipelineElement('DecisionTreeClassifier',
hyperparameters={'criterion': ['gini'],
'min_samples_split': IntegerRange(2, 4)})
'min_samples_split': IntegerRange(2, 4)})

svc = PipelineElement('LinearSVC',
hyperparameters={'C': FloatRange(0.5, 25)})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# DESIGN YOUR PIPELINE
my_pipe = Hyperpipe('basic_svm_pipe',
optimizer='sk_opt',
optimizer_params={'n_configurations': 10},
optimizer_params={'n_configurations': 25},
metrics=['accuracy', 'precision', 'recall', 'balanced_accuracy'],
best_config_metric='accuracy',
outer_cv=KFold(n_splits=3),
Expand Down

0 comments on commit cd5ddb3

Please sign in to comment.