com.alpine.model.pack.preprocess
Applies One-hot encoding for a single feature. e.g. if hotValues = Seq["apple", "raspberry"] baseValue = "orange"
apply("apple") = [1,0] apply("raspberry") = [0,1] apply("orange") = [0,0]
apply("banana") throws exception "banana is an unrecognised value".
case class wrapping hot values and base values.
Applies One-hot encoding for a single feature. e.g. if hotValues = Seq["apple", "raspberry"] baseValue = "orange"
apply("apple") = [1,0] apply("raspberry") = [0,1] apply("orange") = [0,0]
apply("banana") throws exception "banana is an unrecognised value".
case class wrapping hot values and base values.