AlexMili / torch-dataframe

Utility class to manipulate dataset from CSV file
MIT License
67 stars 8 forks source link

The `as_categorical` needs a morer stable number to label connection #23

Closed gforge closed 8 years ago

gforge commented 8 years ago

The as_categorical needs options for deciding the numerical order of the parameters. If a dataset changes and a user adds/removes a class the numbers may drastically change.

The parameters should also be sorted in alphabetical order. Currently a category may receives a number depending on the Lua table hash function that may be unpredictable.