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:
[x] Add string attribute/values to test datasets to cover test cases for string attributes
[x] Add missing/modify existing specs to check against string attributes
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.:It happens because the returned object is not a
Weka::Core::Attribute
, but aJava::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: