Examples of load()


Examples of stallone.api.datasequence.IDataReader.load()

   
    @Before
    public void setUp() throws IOException {
        String files = "/home/marscher/md_simulation_data/trajall_500K.xtc";
        IDataReader loader = API.dataNew.reader(files);
        IDataSequence data = loader.load();
       
        IMetric metric = API.clusterNew.metric(0, 0);
       
        this.algo = API.clusterNew.kmeans(data, metric, 10, 100);
    }
View Full Code Here

Examples of stallone.datasequence.io.DcdReader.load()

//        handler.setLevel(Level.FINEST);
//        Logger.getLogger(DcdReader.class.getName()).addHandler(handler);
       
       
        DcdReader reader = new DcdReader(input);
        seq = reader.load();
        writer = new DcdWriter(output, reader.size(), 3);
    }

    @Test
    public void testWrite()
View Full Code Here

Examples of syn3d.nodes.java3d.LoaderHandlerJava3D.load()

        return new CubeNodeJava3D(parent);
     
     
      else if (node.equals(NodeResourcesManager.getResources().getString("Loader"))) {
        LoaderHandlerJava3D h = new LoaderHandlerJava3D();
        if (h.select() && h.load())
          return new LoaderNodeJava3D(parent,h);
        else
          return null;
      }
        return null;
View Full Code Here

Examples of synalp.commons.utils.ResourceBundle.load()

    System.out.println("lib: " + System.getProperty("java.library.path"));

    setOptions();

    ResourceBundle bundle = new ResourceBundle(grammarFile, synLexiconFile, testSuiteFile, morphLexiconFile);
    bundle.load();

    Utils.delete(outputDirectory);
    outputDirectory.mkdirs();

    JeniGenerator generator = lmFile == null ? new JeniGenerator(bundle) : new JeniGenerator(bundle, new NgramRanker(lmFile.getAbsolutePath(), beamSize,
View Full Code Here

Examples of tv.floe.metronome.deeplearning.dbn.DeepBeliefNetwork.load()

    // read / load the model
    FileInputStream oFileInputStream = new FileInputStream( tmpFilename );
   
   
    DeepBeliefNetwork dbn_deserialize = new DeepBeliefNetwork(1, hiddenLayerSizes, 1, hiddenLayerSizes.length, rng ); //, Matrix input, Matrix labels);
    dbn_deserialize.load(oFileInputStream);
   
   
   
   
    assertEquals( dbn.inputNeuronCount, dbn_deserialize.inputNeuronCount );
View Full Code Here

Examples of tv.floe.metronome.deeplearning.rbm.RestrictedBoltzmannMachine.load()

       
        this.preTrainingLayers = new RestrictedBoltzmannMachine[ this.numberLayers ];
        for ( int x = 0; x < this.numberLayers; x++ ) {

          RestrictedBoltzmannMachine rbm = new RestrictedBoltzmannMachine(1, 1, null);
          rbm.load(is);
          this.preTrainingLayers[ x ] = rbm;
         
        }
       
        this.randomGenerator = (RandomGenerator) ois.readObject();
View Full Code Here

Examples of uk.co.brunella.osgi.bdt.repository.BundleRepositoryPersister.load()

      if (!repositoryDirectory.exists() || !repositoryDirectory.isDirectory()) {
        throw new InitializationError("Repository " + repositoryDirectory + " does not exist or is not a directory");
      }
      BundleRepositoryPersister persister = new BundleRepositoryPersister(repositoryDirectory);
      try {
        repositories.add(persister.load());
      } catch (IOException e) {
        List<Throwable> list = new ArrayList<Throwable>(1);
        list.add(e);
        throw new InitializationError(list);
      }
View Full Code Here

Examples of unbbayes.io.BaseIO.load()

    
    File ASIA_FILE = new File("src/test/resources/testCases/cpslTest.net");
    ProbabilisticNetwork net;
    BaseIO io = new NetIO();
      try {
        net = (ProbabilisticNetwork)io.load(ASIA_FILE);
        ProbabilisticNode n = (ProbabilisticNode)net.getNode("B");
        CPSController w = new CPSController( n );
      } catch (LoadException e) {
        e.printStackTrace();
      } catch (IOException e) {
View Full Code Here

Examples of unbbayes.io.FileExtensionIODelegator.load()

    // a IO that delegates to correct I/O depending on the file extension (NET, DNE and XMLBIF by default)
    FileExtensionIODelegator ioDelegator = PluginAwareFileExtensionIODelegator.newInstance();
//    ioDelegator.getDelegators().add(UbfIO.getInstance());  // adding UBF compatibility into delegator
   
    try {
      g = ioDelegator.load(file);
    } catch (FileExtensionIODelegator.MoreThanOneCompatibleIOException e) {
      // OBS. FileExtensionIODelegator.MoreThanOneCompatibleIOException is managed
      // differently by load and save. This is because load is done by the module and the
      // save is done by IO (on load, we are not sure what module to use, but on save we
      // are sure that we should use the currently active module/window).
View Full Code Here

Examples of unbbayes.io.NetIO.load()

    
    File ASIA_FILE = new File("src/test/resources/testCases/cpslTest.net");
    ProbabilisticNetwork net;
    BaseIO io = new NetIO();
      try {
        net = (ProbabilisticNetwork)io.load(ASIA_FILE);
        ProbabilisticNode n = (ProbabilisticNode)net.getNode("B");
        CPSController w = new CPSController( n );
      } catch (LoadException e) {
        e.printStackTrace();
      } catch (IOException e) {
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.