Questions tagged [skopt]
26 questions
1
vote
1 answer
Resume gaussian process from checkpoint in skopt
I would like to be able to resume a gaussian process from a checkpoint with the library skopt. After some research I couldn't find a way to do so.
Here is a simple code to show what I want to do:
import skopt
LOAD = False # To continue the…

Valentin Vignal
- 6,151
- 2
- 33
- 73
0
votes
0 answers
How to solve this issues "AssertionError: Must have at least 1 validation dataset for early stopping"
I am developing a propensity scorecard model in xgboost in 1.6.2 version and while running below code it gives me errors. I searched lots of relevant question on stack overflow but wasn't able to find best solution. how to change it in my code?
from…

SHESADEV SHA
- 9
- 3
0
votes
0 answers
SKOPT's gp_minimize() produces ValueError while tuning xgboost classifier
I am trying to tune the hyperparameters for a xgboost classifier using skopt package's gp_minimize(). The target is binary (0/1) and the training set is all numerical. When I am trying to run gp_minimize(), I am getting the following error: Provided…

user62198
- 1,744
- 2
- 13
- 17
0
votes
0 answers
Can I optimize my function in skopt for only 1 iteration, after having given x0 and y0?
I want to use sklearn's optimizer package (skopt) for finding the best set of hyperparameters to sample, based on my initial data; But Only Once. I have over 600 recorded entries of hyperparameters (x0) and their respective loss function value…

Marcrulo
- 11
- 1
0
votes
1 answer
Define kernel in scikit GaussianProcessRegressor using BayesSearchCV
Question: How do I define the kernel of a Gaussian Process Regressor using BayesSearchCV?
I'm trying to optimize hyperparameters in a gaussian process model using BayesSearchCV from skopt. It seems that I'm defining the kernel wrong and get a…

Christine
- 53
- 8
0
votes
1 answer
Skopt.gp_minimize: Passing args to objectiv function
I am trying to implement an optimisation using gp_minimize from skopt.
However my objective functions needs some objects to work on, similar to this:
def objective(optimisation_parameters, trees):
trees.manipulate(optimisation_parameters)
…
0
votes
1 answer
skopt: How to dynamically change bounds during optimization?
I have just started using skopt so please feel free to redirect me to any basic tutorial that I might have missed. Anyway, here it goes:
I have an optimization problem where I calculate a 2-peaks spectrum via a complex physical model and then…

Chris
- 89
- 2
- 8
0
votes
1 answer
Using @use_named_args from Scikit Optimize
I'm having a problem on using @use_named_args from Scikit Optimize. The problem is that my objective function accepts the arguments NamedTuple and I can't change this because this is the requirement in the project I'm working on. Now, I need to…

eng2019
- 953
- 10
- 26
0
votes
1 answer
BayesSearchCV error when hyperparameter tuning for XGBoost. ValueError: Not all points are within the bounds of the space
I'm trying to optimise an XGBoost model using BayesSearchCV from Scikit Optimizer, here is the code I am attempting to use:
from skopt import BayesSearchCV
import xgboost as xgb
from main import format_data_for_xgboost
x_train, x_test, y_train,…

Darcey BM
- 301
- 1
- 5
- 20
0
votes
1 answer
Optimize hyperparameters hidden_layer_size MLPClassifier with skopt
How can I optimize the number of layers and hidden layer size in a neural network using MLPClassifier from sklearn and skopt?
Usually I'd specify my space something like:
Space([Integer(name = 'alpha_2', low = 1, high = 2),
Real(10**-5,…

Marco Fumagalli
- 2,307
- 3
- 23
- 41
-1
votes
1 answer
How to solve this "AssertionError: Must have at least 1 validation dataset for early stopping." in xgboost model=1.6.2
from skopt import BayesSearchCV bayes_cv_tuner = BayesSearchCV( estimator = XGBClassifier( n_jobs = 8, objective = 'binary:logistic', eval_metric = 'auc', silent=1, tree_method='approx',…

SHESADEV SHA
- 9
- 3