Parameter selection of artificial intelligence model evaluation

1. Parameter selection for model evaluation

2. Come on, show

#Model evaluation of parameter selection
#k:1-25 #traverse
all possible parameter combinations
#establish the corresponding model
#model training and prediction
#test data accuracy calculation
#View the k value corresponding to the highest accuracy rate

 

# Traverse all possible parameter combinations
#Build the corresponding model

 

#modeltraining and prediction
#Accuracy calculation of training data

 

#Test data accuracy calculation

 

3. Graphic display accuracy

 

Training accuracy graph

 

Test accuracy graph

 

4. Test the new data

I hope I can help everyone, I ask you if you want a like, will you give it, thank you all.
Copyright statement: The copyright of this article belongs to the author (@攻城狮小关) and CSDN. Welcome to reprint, but you must keep this paragraph without the author’s consent Statement, and provide the original link in an obvious place on the article page, otherwise the right to pursue legal responsibility is reserved.
It is not easy for everyone to write articles, please respect the fruits of labor~ 
Communication plus Q: 1909561302
Blog Park Address https://www.cnblogs.com/guanguan-com/

Guess you like

Origin blog.csdn.net/Mumaren6/article/details/108559709