l would like to know whether random_state in svm.SVC(random_state=42) works, because l run
accuracy=[]
for i in np.range(8):
clf=svm.SVC(random_state=42).fit(X_train,y_train)
clf_score=clf.Score(X_test,y_test)
accuracy.append(clf_score)
l get different results :
accuracy= [0.98 , 0.995, 0.91, 0.98, 0.93, 0.95, 0.98, 0.96]
Why ? l'm supposed to get the same accuracy since l fixed random_state. WHat's wrong
Aucun commentaire:
Enregistrer un commentaire