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
catboost/libs/target/target_converter.cpp:64: Unknown class name: "0.6" #773
Comments
This should be already fixed in code. You can try to build from source and run the code. If it's already fixed then it'll be on pypi in the next version tomorrow. But we'll check one more time and get back to you. |
This is fixed in the latest release 0.14 |
v0.15, error persists. |
We cannot reproduce the error. It looks like you are still using the old version. |
No, it's 0.15. Also tried 0.14 - same result. Appears when I pass
validation pool with categorical columns in pandas dataset.
ср, 29 мая 2019 г., 14:22 annaveronika <notifications@github.com>:
… We cannot reproduce the error. It looks like you are still using the old
version.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#773?email_source=notifications&email_token=AI2ZXDBDY3L37NHXTLUZUWDPXZRPVA5CNFSM4HELACMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWPAMCI#issuecomment-496895497>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI2ZXDA5RFSTKVOQMJWN6T3PXZRPVANCNFSM4HELACMA>
.
|
Could you please run |
And if it reproduces, please create a new issue with the code that you are running. The code above runs correctly in 0.15 |
Can you provide a new minimal failing example? Original example in #773 (comment) works without problems in 0.15. |
Solved. eval_set contained labels that model have never seen. |
Yes, we'll update the error, thanks for the suggestion! |
I came across this error at version 0.18. |
I came across this error at version 0.24. I used the class_names parameter to prevent it happening again. |
please how did you do this |
Hi, am I understanding this issue correctly ... target category labels are being encountered in y that are not found in X, correct? @eccodolf states "cleaning valuecounts for y =1 and stratifying split by y solved this problem". Does this mean that he removed the rows that contained labels not found in train, and if possible would someone post an example of how to achieve this? I don't full understand what he is saying and would greatly appreciate a pointer in the right direction. THANKS. Mike |
ah. I think I am seeing what eccodolf is referring to. https://stackoverflow.com/questions/34842405/parameter-stratify-from-method-train-test-split-scikit-learn. It looks like we can split train/test in such a manner that we make sure all target y labels are found in both sets with a similar %. Am I on a correct path? |
the error I am experiencing is similar to the one in this post: CatBoostError: c:/program files (x86)/go agent/pipelines/buildmaster/catboost.git/catboost/private/libs/target/target_converter.cpp:228: Unknown class label: "57" |
Highly likely. |
A solution to solve this problem is to define the
|
Many thanks @raffieeey ! |
CatBoostError: catboost/cuda/cuda_lib/cuda_manager.cpp:201: Condition violated: `State == nullptr' how can i solve this error guys please help me |
for i,( train_index, test_index) in enumerate(folds.split(X, y)): Instantiate modelmodel = CatBoostClassifier(n_estimators=20000, task_type='GPU')model = CatBoostClassifier(max_depth=12, learning_rate=0.15, task_type = 'GPU', Train modelmodel.fit(X_train, y_train, ** here is my code |
Problem: The above exception is thrown for certain target values.
catboost version: 0.13.1
Operating System: Linux
How to reproduce:
Full output:
The text was updated successfully, but these errors were encountered: