LBJ2.learn
Class Learner.Parameters

java.lang.Object
  extended by LBJ2.learn.Learner.Parameters
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AdaBoost.Parameters, LinearThresholdUnit.Parameters, MuxLearner.Parameters, NaiveBayes.Parameters, SparseMIRA.Parameters, SparseNetworkLearner.Parameters, StochasticGradientDescent.Parameters, SupportVectorMachine.Parameters, WekaWrapper.Parameters
Enclosing class:
Learner

public static class Learner.Parameters
extends java.lang.Object
implements java.io.Serializable

Parameters classes are used to hold values for learning algorithm parameters, and all learning algorithm implementations must provide a constructor that takes such an object as input. All algorithm specific Parameters classes extend this class.

See Also:
Serialized Form

Field Summary
 int rounds
          The number of rounds of training; but wait; this parameter doesn't actually affect the behavior of any learners as the number of training rounds is specified via other mechanisms.
 
Constructor Summary
Learner.Parameters()
          Sets all the default values.
Learner.Parameters(Learner.Parameters p)
          Copy constructor.
 
Method Summary
 java.lang.String nonDefaultString()
          Creates a string representation of these parameters in which only those parameters that differ from their default values are mentioned.
 void setParameters(Learner l)
          Calls the appropriate Learner.setParameters(Parameters) method for this Parameters object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rounds

public int rounds
The number of rounds of training; but wait; this parameter doesn't actually affect the behavior of any learners as the number of training rounds is specified via other mechanisms. Nonetheless, it comes in handy to have it here as a communication vehicle when tuning parameters.

Constructor Detail

Learner.Parameters

public Learner.Parameters()
Sets all the default values.


Learner.Parameters

public Learner.Parameters(Learner.Parameters p)
Copy constructor.

Method Detail

setParameters

public void setParameters(Learner l)
Calls the appropriate Learner.setParameters(Parameters) method for this Parameters object.

Parameters:
l - The learner whose parameters will be set.

nonDefaultString

public java.lang.String nonDefaultString()
Creates a string representation of these parameters in which only those parameters that differ from their default values are mentioned.