-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
compare_model() does not print anything after finished #872
Comments
Could you send us your log.logs file? It will be present in the directory from which you ran the notebook or script. |
Thank you for directing me! I was able to identify the error in the log file. Now it works as expected!
Seems like the data type is not identifiable. |
@yixin0711 Can you try passing
|
Also, would it be possible for you to share the dataset and the part of the script where you load the data? There seems to be some sort of a type issue. |
@yixin0711 Are you still facing the issue? if not, can you please close this thread. |
I have the same problem.It was running well during the process but in the end, it does not print anything but an empty list.Could you tell me how to solve this problem? |
Please run it with |
Thanks for your help, the problem has been solved! |
I have the same issue, I can't figure out where is the problem, it's a Valeuerror. I think it is because the severe imbalance of the dataset but I was thinking that the setup() function handles thisValueError: Expected n_neighbors <= n_samples, but n_samples = 4, n_neighbors = 6 |
@DASA39 It is hard to say without looking at the code you are using. It seems that you have very few data points somwhere in the flow (only 4) but are doing KNN with neighbors = 6 which is not possible. Try reducing the number of folds to see if you can increase the number of points in each fold. |
Thanks, @ngupta23, yes the problem is because of the severe imbalance of my dataset, I solved using the oversampling method before running the setup() function. But still, I can't figure out why if setup() function already have the fix_imblance_method() this imbalance doesn't was solved when I ran it |
Imbalance is one thing, but having only 4 data points in a fold is another. How many observations do you have in your dataset and how many folds are you using? |
the original shape of my dataset is (1087, 22). The value_counts of the target is this: |
I'm using the
compare_model()
for the classification problem. It was running well during the process but in the end, it does not print anything but an empty list.I used code like this:
Is there anything I did wrong with?
The text was updated successfully, but these errors were encountered: