KhiopsML / khiops-python

The Python library of the Khiops AutoML suite
https://khiops.org
BSD 3-Clause Clear License
8 stars 1 forks source link

Support floating-point targets in Khiops classifiers #74

Open popescu-v opened 1 year ago

popescu-v commented 1 year ago

Description

Reported by M.Arcadias

Currently, KhiopsClassifier's fit method accepts targets of type string, integer or categorical.

However the Scikit-learn/XGBoost Python API also accept float target types.

The pyKhiops KhiopsClassifier's API should also support this.

Questions / Ideas

clf = KhiopsClassifier()
clf.fit(X_train, y_train.astype("str"))

one should be able to just write:

clf = KhiopsClassifier()
clf.fit(X_train, y_train)

where y_train.dtype is dtype('float64') (if y_train is a pandas series).

folmos-at-orange commented 11 months ago

At the moment the train works but the predict fails.