7.1.6. mclearn.classifier.grid_search_svm_rbf

mclearn.classifier.grid_search_svm_rbf(X, y, train_size=300, test_size=300, fig_path=None, C_range=<Mock name='mock.logspace()' id='140227918226992'>, gamma_range=<Mock name='mock.logspace()' id='140227918226992'>, pickle_path=None)[source]

Do a grid search on SVM wih an RBF kernel.

Parameters:
  • X (array) – The feature matrix of the data.
  • y (array) – The target column.
  • train_size (int) – The size of the training set in each iteration.
  • test_size (int) – The size of the test set in each iteration.
  • fig_path (str) – The path where the heat map plot can be saved.
  • pickle_path (str) – The path where the pickled scores can be saved.