I am trying to perform a GridSearchCV function on OneClassSVM, but I can't seem to find right scoring method for OCSVM. From what i've gathered something like OneClassSVM.score does not exists thus is doesn't have a default scoring function needed in GridSearchCV. Unfortunately no scoring methods from the documentation doesn't work either because they are dedicated to supervised ML and OCSVM is a unsupervised method.
Is there any way to perform GridSearch (or something similar to it, letting me tune the model with right parameters) on OneClassSVM??
Here is my code for GridSearchCV
nus = [0.001, 0.01, 0.1, 1]
gammas = [0.001, 0.01, 0.1, 1]
tuned_parameters = {'kernel' : ['rbf'], 'gamma' : gammas, 'nu': nus}
grid_search = GridSearchCV(svm.OneClassSVM(), tuned_parameters,
scoring="??????????????????????", n_jobs=4)
grid_search.fit(X_train)
Yes I know .fit only takes one parameter but since it is unsupervised method i don't have any Y to put there. Thank you for the help.