Questions tagged [hyperopt]

Hyperopt is a Python library for serial and parallel optimization over awkward search spaces, which may include real-valued, discrete, and conditional dimensions

Resources and Tutorials:

128 questions
1
vote
0 answers

Python VW Hyperopt

I am trying to find the hyperparameters of my VW model using VW Hyperopt https://github.com/VowpalWabbit/vowpal_wabbit/blob/master/utl/vw-hyperopt.py But after installing all the necessary packages i'm still getting this error : 2018-12-06…
arnab_0017
  • 41
  • 1
  • 1
  • 4
0
votes
1 answer

Hyperopt Tuning

I am trying to do hyper paramter tuning with Hyperopt on latest version of both scikit learn and hyperopt. While doing it, it is showing an error in using max_features parameter as list ['auto','sqrt','log2']. It is saying it should be int. from…
0
votes
0 answers

Hyperopt not able to reference SparkContext from a broadcasted variable

I have a problem with parallelizing hyperopt with SparkTrials. I have followed the example shown in here. This is working in the case of a Databricks notebook and simple functions, as shown below. Note that I have to load with DeltaLake and not…
deblue
  • 277
  • 4
  • 18
0
votes
1 answer

XGBoost Hyperopt hyperparameter optimization type error

I am using Hyperopt to optimize the hyperparameters of my XGBRegressor model and I am getting the error: reg_alpha = int(space['reg_alpha'],min_child_weight=space['min_child_weight'], TypeError: int() takes at most 2 arguments (3 given) from…
0
votes
0 answers

MLOps Hyperparameter tuning when the dataframe is too large to be broadcast

I am trying to do some hyperparameter optimization on Databricks using MLOps. My dataframe containing training data is extremely large (over 1G) and it can't be cut due to the nature of the model. It's also too large to be broadcast. So I tried…
user3490622
  • 939
  • 2
  • 11
  • 30
0
votes
1 answer

How to obtain the hidden layer sizes from HyperoptEstimator?

I am trying to use the hyperopt-sklearn library to get the best hyperparameters from a multilayer perceptron. The documentation is scarce and most of the answers seem hidden between layers and layers of code. Many of these lines, surpass my coding…
0
votes
0 answers

How to maximize Precision for each class in target instead of for the whole multiclass classification model using Hyperopt in Python?

I try to build multiclass classification Machine Learning model in Python. I use Hyperopt to tune my hyperparameters as below: 1. Define Parameter Space for Optimization space = { "n_estimators": hp.choice("n_estimators", [100, 200, 300,…
0
votes
0 answers

How to save models being results of hyperparameters tuning by Hyperopt to list in Python?

I try to do hyperparameters tuning for Xgboost in Python using Hyperopt. I have code like belo: LIBRARIES from sklearn.model_selection import train_test_split from xgboost import XGBClassifier import hyperopt as hp from hyperopt import…
dingaro
  • 2,156
  • 9
  • 29
0
votes
0 answers

How to make tuning of hyperparameters using Hyperopt for XGBoost in Python multiclass classification to maximize Recall?

I have one simple question: How to make tuning of hyperparameters using Hyperopt in Python Xgboost to maximize recall on test dataset for multiclass classification problem? I do not see any examples on the internet, maybe you have?
0
votes
0 answers

Getting AttributeError while calling RandomForest()

I have been trying to do hyperopt tuning using the following models but I keep getting this traceback. I have tried changing the parameters, added different code for the n_estimators but to no use. I am not able to solve it with any of the solutions…
0
votes
1 answer

Why my hyper_opt algorithm returns a bad 'best configuration' with same parameters written several times

I recently worked on a hyperparameters optimization with a search algorithm. The purpose is to train an agent in an OpenAI Gym environment. The problem is the following one : when I realize a hyperparameters optimization with a hyperOpt algorithm…
Clm28
  • 9
  • 2
0
votes
0 answers

Using predefined (self designed) validation set for parameter optimization for one class svm

I am trying to execute a oneclass svm study in Python (Jupyter Notebook). But I am not able to use my predefined validation set to optimize the parameters of OneClassSVM in sklearn.GridSearch(). There is a solution for regular svm here: Using…
AAA
  • 332
  • 1
  • 10
0
votes
0 answers

How to load trials results for hyperparameter_search

I run 100 trials for hyperparameters tuning of a transformers as following: trainer = Trainer(...) best_trial = trainer.hyperparameter_search(direction="maximize", backend='ray', …
0
votes
0 answers

xgboost classifier model performance

I've trained an xgboost classifier (on train_df) and tuned (on valid_df) and tested (on test_df). Some non-trivial observations follow. After running HyperOpt trials, I obtain the following performance with the Precision scores. Model 1: train:…
Vusal
  • 11
  • 2
0
votes
0 answers

RayTune HyperOptSearch - fitting resampling into pipeline throws error: All intermediate steps should be transformers and implement fit and transform

I'm getting started with Raytune and trying to set up a HyperOptSearch with imbalanced data. Fitting a pipeline without RandomOverSampler works fine, but when I add that in, I get the error: TypeError: All intermediate steps should be transformers…
1 2 3
8 9