lincOptSet
Set the training options for linear classifiers
Contents
Syntax
- lincOpt=lincOptSet
- lincOpt=lincOptSet('param1',value1,'param2',value2,...)
Description
lincOpt=lincOptSet return the default options of a linear perceptron.
lincOpt=lincOptSet('param1',value1,'param2',value2,...) creates a option structure where the named parameters have the specified values. Any unspecified parameters are given the default values:
- lincOpt.learningRate=0.01;% Learning rate for the training
- lincOpt.maxIter=1000;% Max iteration count
- lincOpt.method='batchLearning';% 'batchLearning', 'sequentialLearning', 'minRegressionError'
- lincOpt.useMreOnce='no';% Use MRE (minimim regression error) only once
- lincOpt.printInterval=200;% Interval for printing messages
- lincOpt.animation='no';% Animation
Example
lincOpt=lincOptSet('animation', 'yes')
lincOpt = struct with fields: learningRate: 0.0100 maxIter: 1000 method: 'batchLearning' useMreOnce: 'no' printInterval: 200 animation: 'yes'