paulgoetze / weka-jruby

Machine Learning & Data Mining with JRuby
MIT License
65 stars 8 forks source link

Feature/string attributes #12

Closed paulgoetze closed 7 years ago

paulgoetze commented 8 years ago

Allow defining string attributes for an Instances object.

A still not yet solved issue is that a string attribute does not have the Attribute's methods defined if it was created with Attribute.new_string(...), e.g.:

undefined method `type' for #<Java::JavaObject:0x5b1e88f>

It happens because the returned object is not a Weka::Core::Attribute, but a Java::JavaObject.

This means,at the moment, you can't create string Attributes as separate Objects and work with them..

:point_up: solved in #13

Todo: