Examples of FLVQPSO


Examples of mit.nn.flvqpso.FLVQPSO

//    int layer = 1;
//    int feature = 11;
//    int numTargetClass = 2;
//    int fuzzygroup = 3;
   
    FLVQPSO pso = new FLVQPSO(layer, numTargetClass, feature, fuzzygroup);
   
    pso.init(inputData, targetClass);
   
    //pso.printVectorReference();
   
    int epoch = 100;
   
    System.out.println("Sebelum training");
    pso.testing(inputData, targetClass);
    //pso.printVectorReference();
   
    pso.training(epoch, inputData, targetClass);
   
    System.out.println("Sesudah training");
    pso.testing(inputData, targetClass);
    //pso.printVectorReference();
   
    System.out.println(pso.doClassification(inputData.get(0)));
    System.out.println(pso.doClassification(inputData.get(1)));
   
    List<double[]> ref = pso.getVectorReference();
    printToFile(ref);
   
    List<String> list = readFile();
    pso.setVectorReference(list);
    pso.testing(inputData, targetClass);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.