public Evaluate ( Array observations ) : double | ||
observations | Array | /// A sequence of observations. /// |
리턴 | double |
public void TestErrorRateDecreasesAfterEachIteration() { var hmm = new ContinuousHiddenMarkovModel(States, Symbols); var testSequence = new double[] {YesUmbrella, YesUmbrella, NoUmbrella}; var initialError = 1 - hmm.Evaluate(testSequence); var trainedHmm = TrainHelper(new[] {testSequence}); var errorAfterTraining = 1 - trainedHmm.Evaluate(testSequence); Assert.IsTrue(errorAfterTraining <= initialError); }