I made a train-test split on my data and fit a support vector machine to it.
xtrain, xtest, ytrain, ytest = train_test_split(df, target)
svc = svm.SVC(C=30, gamma='auto')
svc.fit(xtrain,ytrain)
svc.score(xtest,ytest)
I am fitting the SVC
model to the iris dataset and I get different results for every run of the train_test_split
(which is obvious).
is there any attribute or function of train test_test_split or any other way so that after getting the result (after executing the above code) I can find out what is the value of random_state
for which I am getting the result?