Questions tagged [xgbclassifier]

112 questions
0
votes
1 answer

XGBClassifier from xgboost gives different fits for different num_class parameters

I accidently found that I get a better fit for my binary dataset if I set parameter objective of XGBClassifier to multiclass and increase the number of classes. At the same time, however, the fit takes longer and consumes twice as much…
user1488793
  • 284
  • 2
  • 14
0
votes
1 answer

Does it make sense to use a part of the dataset to train my model?

The dataset I have is a set of quotations that were presented to various customers in order to sell a commodity. Prices of commodities are sensitive and standardized on a daily basis and therefore negotiations are pretty tricky around their prices.…
0
votes
0 answers

How to optimize non parametric model in R?

I have a binary classification XGBTree model. The data frame used to train the model contains many independent variables(x) and I want to optimize one x to improve the chances that the result becomes 1. I wonder how it can be achieved? I have…
-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',…
-1
votes
1 answer

XGB Classifier model poorly generalising, but evaluation metrics improve?

I'm looking for an explanation for the following issue. I'm fitting an XGB model to a dataset of 50k rows, 26 features. I'm running a gridsearch with varying max_depths + n_estimators and the model is performing much better with deeper trees (with a…
roastbeeef
  • 1,039
  • 1
  • 12
  • 23
-1
votes
1 answer

XGBoost fails to fit data

I have two separate working models. They are identical other than one uses Random Forest and one uses XGBoost. Yesterday I made changes to the data (I added two columns) and trained the RF model. It now scores about 4% higher than before I added…
MarkS
  • 1,455
  • 2
  • 21
  • 36
-2
votes
1 answer

How to save model from best iteration in xgboost?

I am using XGBClassifier for my image classification. As i am new to machine learning and xgboost. But recently i got to know that the model i am saving by using pickle library after certain iteration is the last iteration not the best iteration.…
1 2 3 4 5 6 7
8