Package org.encog.ml.svm

Examples of org.encog.ml.svm.SVM


  }
 
  public void testFactorySVM() {
    String architecture = "?->C(KERNEL=RBF,TYPE=NEW)->?";
    MLMethodFactory factory = new MLMethodFactory();
    SVM network = (SVM)factory.create(MLMethodFactory.TYPE_SVM, architecture, 4, 1);
    Assert.assertEquals(4,network.getInputCount());
    Assert.assertEquals(1,network.getOutputCount());
  }
View Full Code Here


  @Override
  public MLMethod generate() {
    if (this.outputNeurons != 1) {
      throw new PatternError("A SVM may only have one output.");
    }
    final SVM network = new SVM(this.inputNeurons, this.svmType,
        this.kernelType);
    return network;
  }
View Full Code Here

TOP

Related Classes of org.encog.ml.svm.SVM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.