@Test public void testInitialSanity() throws IOException { RealValueFileEventStream rvfes1 = new RealValueFileEventStream( "src/test/resources/data/opennlp/maxent/real-valued-weights-training-data.txt", StandardCharsets.UTF_8.name()); testDataIndexer.index(rvfes1); NegLogLikelihood objectFunction = new NegLogLikelihood(testDataIndexer); double[] initial = objectFunction.getInitialPoint(); for (double anInitial : initial) { Assert.assertEquals(0.0, anInitial, TOLERANCE01); } }
public double[] getInitialPoint() { return new double[dimension]; }
NegLogLikelihood implements Function { public double[] getInitialPoint() { return new double[dimension]; } }
NegLogLikelihood implements Function { public double[] getInitialPoint() { return new double[dimension]; } NegLogLikelihood(DataIndexer indexer); }
NegLogLikelihood implements Function { public double[] getInitialPoint() { return new double[dimension]; } NegLogLikelihood(DataIndexer indexer); int getDimension(); double[] getInitialPoint(); double valueAt(double[] x); double[] gradientAt(double[] x); }
NegLogLikelihood implements Function { public double[] getInitialPoint() { return new double[dimension]; } NegLogLikelihood(DataIndexer indexer); int getDimension(); double[] getInitialPoint(); double valueAt(double[] x); double[] gradientAt(double[] x);  }