Examples of clearContext()


Examples of org.encog.neural.flat.FlatNetwork.clearContext()

      flat.getWeightIndex()[i] = weightCount;
      neuronCount += flat.getLayerCounts()[i];
    }

    flat.setLayerOutput(new double[neuronCount]);
    flat.clearContext();

    flat.setInputCount(flat.getLayerFeedCounts()[flat.getLayerCounts().length - 1]);
    flat.setOutputCount(flat.getLayerFeedCounts()[0]);
  }
View Full Code Here

Examples of org.encog.neural.flat.FlatNetwork.clearContext()

      neuronCount += flat.getLayerCounts()[i];
    }

    flat.setLayerOutput(new double[neuronCount]);
    flat.setLayerSums(new double[neuronCount]);
    flat.clearContext();

    flat.setInputCount(flat.getLayerFeedCounts()[flat.getLayerCounts().length - 1]);
    flat.setOutputCount(flat.getLayerFeedCounts()[0]);
  }
View Full Code Here

Examples of org.encog.neural.neat.NEATNetwork.clearContext()

   
    EncogUtility.trainToError(train, 0.01);

    NEATNetwork network = (NEATNetwork)train.getMethod();

    network.clearContext();
    // test the neural network
    System.out.println("Neural Network Results:");
    EncogUtility.evaluate(network, trainingSet);
  }
}
View Full Code Here

Examples of org.exist.dom.NodeProxy.clearContext()

                    while (contextNode != null) {
                        if (contextNode.getContextId() == getExpressionId())
                            {temp.add(contextNode.getNode());}
                        contextNode = contextNode.getNextDirect();
                    }
                    p.clearContext(getExpressionId());
                    // TODO : understand why we sort here...
                    temp.sortInDocumentOrder();
                    for (final SequenceIterator j = innerSeq.iterate(); j.hasNext();) {
                        final NumericValue v = (NumericValue) j.nextItem();
                        // Non integers return... nothing, not even an error !
View Full Code Here

Examples of org.exist.dom.NodeProxy.clearContext()

                                if (pos >= 0 && pos < temp.getItemCount()) {
                                    final NodeProxy t = (NodeProxy) temp.itemAt(pos);
                                    // for the current context: filter out those
                                    // context items not selected by the positional predicate
                                    ContextItem ctx = t.getContext();
                                    t.clearContext(Expression.IGNORE_CONTEXT);
                                    while (ctx != null) {
                                        if (ctx.getContextId() == outerContextId) {
                                            if (ctx.getNode().getNodeId().equals(p.getNodeId()))
                                                {t.addContextNode(outerContextId, ctx.getNode());}
                                        } else
View Full Code Here

Examples of org.jboss.soa.esb.message.Context.clearContext()

        final Set<String> keys2 = context.getContextKeys() ;
        assertNotNull("Context keys2", keys2) ;
        assertEquals("Context key count", 1, keys2.size()) ;
        assertTrue("Contains key", keys2.contains("foo")) ;
       
        context.clearContext() ;
       
        final Set<String> keys3 = context.getContextKeys() ;
        assertNotNull("Context keys3", keys3) ;
        assertEquals("Context key count", 0, keys3.size()) ;
       
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.