Skip to content
Advertisement

What is clf and legend in ‘plot_decision_regions’?

JavaScript

What are the parameters ‘clf‘ and ‘legend‘ in plot_decision_regions?

Advertisement

Answer

clf is the classifier object being returned from neighbors.KNeighborsClassifier, which is likely coming from sklearn.

BigBen linked the documentation already for the plot_decision_regions function, which explains what they do.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement