linfa icon indicating copy to clipboard operation
linfa copied to clipboard

enhancement preprocessing

Open franklucky001 opened this issue 3 years ago • 2 comments

support OnehotEncoder, LabelEncoder, OrdinalEncoder like sklearn.

franklucky001 avatar Oct 14 '21 02:10 franklucky001

I just tried to implement this feature, but the dataset seems to be bound to the float property, which makes it impossible to create datasets (as input) with non-numeric values. Due to the structure of the fit trait, I am unfortunately bound to the input of a dataset. Any help would be appreciated.

mauricekraus avatar Oct 29 '21 11:10 mauricekraus

What Dataset methods are you trying to call that are bound by Float? You can access the records and targets of a Dataset via the records() and targets() methods respectively, even if the data type isn't Float. Typically those methods are all you need to implement Fit.

YuhanLiin avatar Oct 30 '21 02:10 YuhanLiin