(t *testing.T)
| 183 | } |
| 184 | |
| 185 | func TestMinMaxNormalizedCategoricalEncoder(t *testing.T) { |
| 186 | var encoder = NewValueEncoder() |
| 187 | encoder.conf = &Config{ |
| 188 | MinMax: true, |
| 189 | NormalizeCategoricals: true, |
| 190 | } |
| 191 | |
| 192 | var res []string |
| 193 | for _, val := range categoricalTest { |
| 194 | res = append(res, encoder.String("proto", val)) |
| 195 | } |
| 196 | |
| 197 | assert.Equal(t, res, []string{"0.0000000000", "1.0000000000", "1.0000000000", "1.0000000000", "0.0000000000", "0.3333333333", "0.6666666667", "1.0000000000"}, "unexpected output") |
| 198 | } |
nothing calls this directly
no test coverage detected