/** * Instantiates this multi-class learner using the specified algorithm to learn each class * separately as a binary classifier. * * @param n The name of the classifier. * @param ltu The linear threshold unit used to learn binary classifiers. **/ public SparseNetworkLearner(String n, LinearThresholdUnit ltu) { super(n); Parameters p = new Parameters(); p.baseLTU = ltu; setParameters(p); network = new OVector(); }
/** * Retrieves the parameters that are set in this learner. * * @return An object containing all the values of the parameters that control the behavior of * this learning algorithm. **/ public Learner.Parameters getParameters() { Parameters p = new Parameters(super.getParameters()); p.baseLTU = baseLTU; return p; }
/** * Instantiates this multi-class learner with the default learning algorithm: * {@link #defaultBaseLTU}. * * @param n The name of the classifier. **/ public SparseNetworkLearner(String n) { this(n, new Parameters()); }