iRoCS Toolbox
1.1.0
|
#include <GridAxis.hh>
Public Member Functions | |
GridAxis () | |
GridAxis (const std::string ¶ms) | |
bool | changesKernel () const |
see setChangesKernel() for Details More... | |
const std::string & | keyName () const |
Name of key belonging to this axis. More... | |
size_t | nValues () const |
number of values that belong to this axis More... | |
void | parseString (const std::string ¶ms) |
parse specification for grid axis from string. More... | |
void | setChangesKernel (bool f) |
specify, wether kernel is affected from this key or not. More... | |
double | value (size_t index) const |
value[index] More... | |
Definition at line 60 of file GridAxis.hh.
|
inline |
Definition at line 63 of file GridAxis.hh.
|
inline |
Definition at line 67 of file GridAxis.hh.
void svt::GridAxis::parseString | ( | const std::string & | params | ) |
parse specification for grid axis from string.
Syntax is <keyname>:<changesKernel>:<valuespec>
with <keyname> the name of the key, e.g. "cost" <changesKernel> flag, wether this parametrer changes the kernel, e.g. "t" or "f" <valuespec> specificaion of values, which can be
linear, e.g., "1,add1,5" –> values: 1,2,3,4,5 exponential, e.g., "1,mul2,16" –> values: 1,2,4,8,16 list, e.g., "-2,5,42,3" –> values: -2,5,42,3
params | string containing grid axis specification |
ParseError | params-string has incorrect format |
Referenced by GridAxis().
|
inline |
|
inline |
number of values that belong to this axis
Definition at line 114 of file GridAxis.hh.
|
inline |
|
inline |
specify, wether kernel is affected from this key or not.
This info is required in Grid-search, to decide wether to recalculate the kernel matrix or not. E.g. changing "gamma" affects the kernel matrix, while changing "cost" does only affect the training algorithm
f | new value for flag |
Definition at line 143 of file GridAxis.hh.
|
inline |
see setChangesKernel() for Details
Definition at line 155 of file GridAxis.hh.