Skip to content

Commit

Permalink
Update search_space.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBlanke committed Sep 24, 2019
1 parent 2594762 commit f4c0fbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorial/search_space.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The function receives 3 arguments:
- <b>y</b> : Training target

The function should return some kind of metric that will be <b>maximized</b> during the search.

```python
from sklearn.model_selection import cross_val_score
from sklearn.ensemble import GradientBoostingClassifier
Expand All @@ -26,6 +27,7 @@ def model(para, X, y):
```

The search_config is a dictionary, that has the <b>model-function as a key</b> and its <b>values defines the search space</b> for this model. The search space is an additional dictionary that will be used in 'para' within the model-function.

```python
search_config = {
model: {
Expand Down

0 comments on commit f4c0fbc

Please sign in to comment.