convertCategorical is a basic function that encodes a categorical variable as a slice of floats. There are no smarts involved at the moment. The encoder takes the first value of the map as the default value, encoding it as a []float{0,0,0,...}
(a string, index map[string][]int, varName string)