View definition

(*BinaryConvertFilter).Transform

Defined in github.com/sjwhitworth/golearn/filters/binary.go

Description

Transform converts the given byte sequence using the old Attribute into the new byte sequence.

If the old Attribute has a categorical value of at most two items, then a zero or non-zero byte sequence is returned.

If the old Attribute has a categorical value of at most n-items, then a non-zero or zero byte sequence is returned based on the value of the new Attribute passed in.

If the old Attribute is a float, it's value's unpacked and we check for non-zeroness

If the old Attribute is a BinaryAttribute, just return the input

Transform is referenced in 0 repositories