Package tv.floe.metronome.classification.neuralnetworks.conf

Source Code of tv.floe.metronome.classification.neuralnetworks.conf.TestConfig

package tv.floe.metronome.classification.neuralnetworks.conf;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import tv.floe.metronome.classification.neuralnetworks.core.Weight;
import tv.floe.metronome.classification.neuralnetworks.input.InputFunction;

public class TestConfig {
 
  @Test
  public void testSetGetConf( ) throws InstantiationException, IllegalAccessException {
   
    Config c = new Config();
   
    c.parse(null);
   
    Class inFuncClass = (Class) c.getConfValue("inputFunction");
    InputFunction f = (InputFunction) inFuncClass.newInstance();
   
   
   
    assertEquals("tv.floe.metronome.classification.neuralnetworks.input.WeightedSum", f.getClass().getName() );
   
    System.out.println("> f: " + f.getClass().getName());
   
   
   
  }

}
TOP

Related Classes of tv.floe.metronome.classification.neuralnetworks.conf.TestConfig

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.