nkarasiak / dzetsaka

dzetsaka : classification plugin for Qgis
GNU General Public License v3.0
81 stars 20 forks source link

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

Open MGF574 opened 3 years ago

MGF574 commented 3 years ago

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