dzetsaka icon indicating copy to clipboard operation
dzetsaka copied to clipboard

Which are the default parameters on KNN and Random Forest?

Open MGF574 opened this issue 4 years ago • 0 comments

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

MGF574 avatar Dec 01 '20 22:12 MGF574