View definition

(*BinaryConvertFilter).Train

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

Description

Train converts the FloatAttributesinto equivalently named BinaryAttributes, leaves BinaryAttributes unmodified and processes CategoricalAttributes as follows.

If the CategoricalAttribute has two values, one of them is designated 0 and the other 1, and a single identically-named binary Attribute is returned.

If the CategoricalAttribute has more than two (n) values, the Filter generates n BinaryAttributes and sets each of them if the value's observed.

Train is referenced in 1 repository

github.com/sjwhitworth/golearn