diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2018-01-08 20:15:35 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2018-01-08 20:15:35 +0100 |
| commit | 2329c5ea501fe71260ac8e4d0e9c7e8c733c6cff (patch) | |
| tree | 6915318679662e229ab7c710b0bc697f2291269a | |
| parent | update documentation and fix autodocs (diff) | |
| download | pygensvm-2329c5ea501fe71260ac8e4d0e9c7e8c733c6cff.tar.gz pygensvm-2329c5ea501fe71260ac8e4d0e9c7e8c733c6cff.zip | |
add autofunctions to git
| -rw-r--r-- | docs/auto_functions.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/auto_functions.rst b/docs/auto_functions.rst new file mode 100644 index 0000000..3ba1fff --- /dev/null +++ b/docs/auto_functions.rst @@ -0,0 +1,28 @@ + +.. py:function:: load_default_grid() + :noindex: + :module: gensvm.gridsearch + + Load the default parameter grid for GenSVM + + This is the parameter grid used in the GenSVM paper to run the grid search + experiments. It uses a large grid for the ``lmd`` regularization parameter + and converges with a stopping criterion of ``1e-8``. This is a relatively + small stopping criterion and in practice good classification results can be + obtained by using a larger stopping criterion. + + The function returns the following grid:: + + pg = { + 'lmd': [pow(2, x) for x in range(-18, 19, 2)], + 'kappa': [-0.9, 0.5, 5.0], + 'p': [1.0, 1.5, 2.0], + 'weights': ['unit', 'group'], + 'epsilon': [1e-8], + 'kernel': ['linear'] + } + + :returns: **pg** -- Mapping from parameters to lists of values for those parameters. To be + used as input for the :class:`.GenSVMGridSearchCV` class. + :rtype: dict + |
