You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 3 tutorial examples in Encog 3.3: Quick Start Guide (IrisClassification, AutoMPGRegression, SunSpotTimeseries) have a comment that method MLMethodFactor.TYPE_PNN (i.e. Probabilistic Neural Network) can be used. However, changing the source code to this method results in an exception:
java.lang.NullPointerException
at org.encog.neural.pnn.BasicPNN.setSamples(BasicPNN.java:236)
at org.encog.neural.networks.training.pnn.TrainBasicPNN.iteration(TrainBasicPNN.java:599)
at org.encog.ml.model.EncogModel.fitFold(EncogModel.java:218)
at org.encog.ml.model.EncogModel.crossvalidate(EncogModel.java:285)
at org.encog.examples.guide.classification.IrisClassification.run(IrisClassification.java:118)
at org.encog.examples.guide.classification.IrisClassification.main(IrisClassification.java:176)
This exception refers to the MLData ideal that is still null for each (MLDataPair) pair
.Please, can this problem be fixed?
The text was updated successfully, but these errors were encountered:
Hi,
I am still getting this error. When I use the PNN type, on the SunSpotTimeseries example, I get a System.NullReferenceException on line 121 of BasicPNN.cs; I am using the latest 3.3 .NET release.
The 3 tutorial examples in Encog 3.3: Quick Start Guide (IrisClassification, AutoMPGRegression, SunSpotTimeseries) have a comment that method MLMethodFactor.TYPE_PNN (i.e. Probabilistic Neural Network) can be used. However, changing the source code to this method results in an exception:
java.lang.NullPointerException
at org.encog.neural.pnn.BasicPNN.setSamples(BasicPNN.java:236)
at org.encog.neural.networks.training.pnn.TrainBasicPNN.iteration(TrainBasicPNN.java:599)
at org.encog.ml.model.EncogModel.fitFold(EncogModel.java:218)
at org.encog.ml.model.EncogModel.crossvalidate(EncogModel.java:285)
at org.encog.examples.guide.classification.IrisClassification.run(IrisClassification.java:118)
at org.encog.examples.guide.classification.IrisClassification.main(IrisClassification.java:176)
This exception refers to the MLData ideal that is still null for each (MLDataPair) pair
.Please, can this problem be fixed?
The text was updated successfully, but these errors were encountered: