Navigation

  • index
  • modules |
  • next |
  • previous |
  • mclearn 0.1.3 documentation »
  • 7. API Reference »

Table Of Contents

  • 1. Getting Started
  • 2. Photometric Data
  • 3. Data Preprocessing
  • 4. Performance Measures
  • 5. Active Learning
  • 6. Visualisations
  • 7. API Reference
    • 7.1. Classifiers
    • 7.2. Active Learner
    • 7.3. Active Learning Heuristics
    • 7.4. Performance Measures
    • 7.5. Photometric Data
    • 7.6. Data Preprocessing
    • 7.7. Visualisations

Search

Enter search terms or a module, class or function name.

7.1.5. mclearn.classifier.grid_search¶

mclearn.classifier.grid_search(X, y, classifier, param_grid, train_size=300, test_size=300, clf_name=None, report=True)[source]¶

A general grid search routine.

Parameters:
  • X (array) – The feature matrix of the data.
  • y (array) – The target column.
  • classifier (Classifier object) – A classifier object that will be used to train and test the data. It should have the same interface as scikit-learn classifiers.
  • param_grid (dict) – Dictionary containing the names of the hyperparameters and their associated values which the classifier will be trained with.
  • train_size (int) – The size of the training set in each iteration.
  • test_size (int) – The size of the test set in each iteration.
  • clf_name (str) – The name of the classifier (used for printing of the results).
  • report (boolean) – Whether the results (the best hyperparameters) will be printed out.

Navigation

  • index
  • modules |
  • next |
  • previous |
  • mclearn 0.1.3 documentation »
  • 7. API Reference »
© Copyright 2015, Alasdair Tran. Created using Sphinx 1.3.1.