You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible values are either one of "GP", "RF", "ET", "GBRT" (Details can be found in the [scikit-optimize documentation](https://scikit-optimize.github.io/)), or "an instance of a class that inherits from `RegressorMixin` (from sklearn) and where the `predict` method has an optional `return_std` argument, which returns `std(Y | x)` along with `E[Y | x]`".
174
+
Possible values are either one of "NSGAIISampler", "TPESampler", "GPSampler", "CmaEsSampler", "NSGAIIISampler", "QMCSampler" (Details can be found in the [optuna-samplers documentation](https://optuna.readthedocs.io/en/stable/reference/samplers/index.html)), or "an instance of a class that inherits from `optuna.samplers.BaseSampler`".
175
175
176
-
Some research will be necessary to find additional Regressors.
176
+
Some research will be necessary to find additional Samplers (from optunahub) for example.
177
177
178
-
Example for `ExtraTreesRegressor` ("ET") with additional parameters:
178
+
!!! Note
179
+
While custom estimators can be provided, it's up to you as User to do research on possible parameters and analyze / understand which ones should be used.
180
+
If you're unsure about this, best use one of the Defaults (`"NSGAIIISampler"` has proven to be the most versatile) without further parameters.
The `dimensions` parameter is the list of `skopt.space.Dimension` objects corresponding to the parameters to be optimized. It can be used to create isotropic kernels for the `skopt.learning.GaussianProcessRegressor` estimator. Here's an example:
192
+
``` python
193
+
# ...
194
+
from freqtrade.strategy.interface import IStrategy
Obviously the same approach will work for all other Samplers optuna supports.
210
210
211
-
!!! Note
212
-
While custom estimators can be provided, it's up to you as User to do research on possible parameters and analyze / understand which ones should be used.
213
-
If you're unsure about this, best use one of the Defaults (`"ET"` has proven to be the most versatile) without further parameters.
Copy file name to clipboardExpand all lines: docs/hyperopt.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Hyperopt
2
2
3
3
This page explains how to tune your strategy by finding the optimal
4
-
parameters, a process called hyperparameter optimization. The bot uses algorithms included in the `scikit-optimize` package to accomplish this.
4
+
parameters, a process called hyperparameter optimization. The bot uses algorithms included in the `optuna` package to accomplish this.
5
5
The search will burn all your CPU cores, make your laptop sound like a fighter jet and still take a long time.
6
6
7
-
In general, the search for best parameters starts with a few random combinations (see [below](#reproducible-results) for more details) and then uses Bayesian search with a ML regressor algorithm (currently ExtraTreesRegressor) to quickly find a combination of parameters in the search hyperspace that minimizes the value of the [loss function](#loss-functions).
7
+
In general, the search for best parameters starts with a few random combinations (see [below](#reproducible-results) for more details) and then uses one of optuna's sampler algorithms (currently NSGAIIISampler) to quickly find a combination of parameters in the search hyperspace that minimizes the value of the [loss function](#loss-functions).
8
8
9
9
Hyperopt requires historic data to be available, just as backtesting does (hyperopt runs backtesting many times with different parameters).
10
10
To learn how to get data for the pairs and exchange you're interested in, head over to the [Data Downloading](data-download.md) section of the documentation.
0 commit comments