Skip to content
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

Which are the default parameters on KNN and Random Forest? #30

Open
MGF574 opened this issue Dec 1, 2020 · 0 comments
Open

Which are the default parameters on KNN and Random Forest? #30

MGF574 opened this issue Dec 1, 2020 · 0 comments

Comments

@MGF574
Copy link

MGF574 commented Dec 1, 2020

How can I find out which were the parameters values used to do the classification, looking at the scripts, it seems to me that the program tests some values and choose the best suitable:

elif inClassifier == 'KNN':
from sklearn import neighbors

                **param_grid = dict(n_neighbors=np.arange(1, 20, 4))**
                if 'param_algo' in locals():
                    classifier = neighbors.KNeighborsClassifier(
                        **param_algo)
                else:
                    classifier = neighbors.KNeighborsClassifier()

How can I find out which value was used in my classification? I made it by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant