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

Exception when dataset is empty #295

Closed
Suganya31 opened this issue Nov 22, 2018 · 0 comments · Fixed by #297
Closed

Exception when dataset is empty #295

Suganya31 opened this issue Nov 22, 2018 · 0 comments · Fixed by #297

Comments

@Suganya31
Copy link

Description

When a dataset is empty, the ConfidenceBasedFMeasureCalculator creates an exception.

GerbilException: java.lang.ArrayIndexOutOfBoundsException: 0 (error type -106: Got an unexpected exception while running the experiment.)
	at org.aksw.gerbil.execute.ExperimentTask.runExperiment(ExperimentTask.java:598)
	at org.aksw.gerbil.execute.ExperimentTask.run(ExperimentTask.java:167)
	at org.aksw.simba.topicmodeling.concurrent.workers.WorkerImpl.run(WorkerImpl.java:44)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at org.aksw.gerbil.evaluate.impl.ConfidenceBasedFMeasureCalculator.calculateOptMicroFMeasure(ConfidenceBasedFMeasureCalculator.java:104)
	at org.aksw.gerbil.evaluate.impl.ConfidenceBasedFMeasureCalculator.calculateMicroFMeasure(ConfidenceBasedFMeasureCalculator.java:75)
	at org.aksw.gerbil.evaluate.impl.ClassConsideringFMeasureCalculator.evaluate(ClassConsideringFMeasureCalculator.java:63)
	at org.aksw.gerbil.evaluate.AbstractTypeTransformingEvaluatorDecorator.evaluate(AbstractTypeTransformingEvaluatorDecorator.java:41)
	at org.aksw.gerbil.evaluate.AbstractTypeTransformingEvaluatorDecorator.evaluate(AbstractTypeTransformingEvaluatorDecorator.java:41)
	at org.aksw.gerbil.evaluate.SubTaskEvaluator.evaluate(SubTaskEvaluator.java:46)
	at org.aksw.gerbil.execute.ExperimentTask.evaluate(ExperimentTask.java:617)
	at org.aksw.gerbil.execute.ExperimentTask.runExperiment(ExperimentTask.java:592)
	... 5 more
MichaelRoeder added a commit that referenced this issue Nov 23, 2018
… is empty. Added the handling of this issue to the ExpeirmentTask. Fixes #295.
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