-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Invalid parameter format for num_class expect int but value = 'NA' #55
Comments
I had exactly the same problem. Is linear regression not supported in this case? |
I also encountered the same problem! look forward to your next updates! Thanks! Error in xgb.iter.update(fd$bst, fd$dtrain, iteration - 1, obj) : |
Thanks for the great package! Any update on this issue or workarounds for running xgb_opt with reg:linear? |
I also encountered the same problem when I tried fitting a regression model. Have you figured out how to fix it? |
Still remains the same problem for reg:linear. |
You need to comment out the num_class = num_classes in the "#about classes"
So if the objective function is The Running the following should solve the issue (however I have only checked it on the iris data set):
I get the following warning message:
Which I have located to this part of the code:
I had this solved but lost the unsaved changes when I changed project in R. If I recall correctly I set the |
hello,
When I use MIBayesOpt to optimize xgboost model to solve a linear regression problem like predict house price, I choose
objectfun = "reg:linear
, this is not a classification problem means noclasses
parameter, but it seems i have to give a num_class?hope for u reply!
The text was updated successfully, but these errors were encountered: