Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArffDataSetReader initializes instances with null labels #71

Closed
rohanrk opened this issue Feb 22, 2019 · 0 comments · Fixed by #72
Closed

ArffDataSetReader initializes instances with null labels #71

rohanrk opened this issue Feb 22, 2019 · 0 comments · Fixed by #72

Comments

@rohanrk
Copy link
Contributor

rohanrk commented Feb 22, 2019

The ArffDataSetReader initializes all instances with null labels when reading an arff file.

The error ends up looking like this

Running Random Hill ClimbingException in thread "main" java.lang.NullPointerException
	at shared.SumOfSquaresError.value(Unknown Source)
	at opt.example.NeuralNetworkEvaluationFunction.value(Unknown Source)
	at opt.example.NeuralNetworkOptimizationProblem.value(Unknown Source)
	at opt.RandomizedHillClimbing.<init>(Unknown Source)
	at tests.OptdigitsTest.main(Unknown Source)
rohanrk added a commit to rohanrk/ABAGAIL that referenced this issue Feb 22, 2019
When this reader is used on an arff file, it generates instances with
null labels. This fixes that and initializes instances whose label is
the last attribute in their attributes list/array

Fixes pushkar#71
rohanrk added a commit to rohanrk/ABAGAIL that referenced this issue Feb 22, 2019
When this reader is used on an arff file, it generates instances with
null labels. This fixes that and initializes instances whose label is
the last attribute in their attributes list/array

Fixes pushkar#71
rohanrk added a commit to rohanrk/ABAGAIL that referenced this issue Mar 4, 2019
When this reader is used on an arff file, it generates instances with
null labels. This fixes that and initializes instances whose label is
the last attribute in their attributes list/array

Fixes pushkar#71
pushkar pushed a commit that referenced this issue Nov 12, 2019
When this reader is used on an arff file, it generates instances with
null labels. This fixes that and initializes instances whose label is
the last attribute in their attributes list/array

Fixes #71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant