-
Notifications
You must be signed in to change notification settings - Fork 8
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
add new convenient methods #17
Comments
Regarding 1.: When loading a dataset with Instances.from_arff you actually get a Ruby object with all access to the convenient methods: dataset = Weka::Core::Instances.from_arff('weather.arff')
# => #<Java::WekaCore::Instances:0x4fd05028>
dataset.attributes # which is not a method from the Java class
# => => [#<Java::WekaCore::Attribute:0x2c88a3e8>, ...] Although it says Regarding 2: Do you want to access attribute values of an Instance or all values (as a matrix/2d array) of Instances? For an Instance there is the So, if you where thinking about sth. like an |
@kcning I added an additional This will be available in the next release (v0.5.0). |
the object returned by Instances.from_arff is preferred to be Weka::Core::Instances rather than
Java::WekaCore::Instances. The Java class doesn't have the convenient methods.
we should be able to retrieve the attribute values, not just the internal floating point values from an Instance directly.
The text was updated successfully, but these errors were encountered: