GitHub user fobeligi opened a pull request:
https://github.com/apache/incubator-samoa/pull/60
Fix bug in DenseInstance toString method and in TextGenerator class
- Fixed bug in DenseInstance class toString method which resulted in always
writing an arff file with class equal to zero.
- Change TextGenerator class to create SparseInstances instead of
DenseInstances.
- Change the Attribute class in order to write the values of the nominal
attributes between brackets in the attribute section of the arff file.
- Change SingleLabelInstance classAttribute method in to return the correct
attribute that represents the class value.
- Override toString in SparseInstance class in order to write sparse
formatted arff files.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fobeligi/incubator-samoa DenseInstance-bugFix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-samoa/pull/60.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #60
----
commit be264f9a94312ec4d9f3040c89ab8e57acaddf22
Author: fobeligi <[email protected]>
Date: 2017-05-20T14:24:21Z
Fix bug in DenseInstance toString method which resulted in always writing
an arff file with class equal to zero.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---