Version 1.2 of
lightonml introduce API changes, requiring action on your code:
We noticed that in some situations, two successive transforms on related data can have inconsistent result, fitting the OPU on input data fixes this.
The previous methods
transform2d are still provided for compatibility, but you will get a deprecation warning on calling them. To migrate your code, do the following:
If you do several transform operations on related data (like train and test), first call
fit2don one of the data, and then
transform(notice the 1d/2d suffix is removed)
fit_transform2dto get rid of the deprecation warning.
OPUMap objects in
lightonml.projections.torch now also have a
fit method. It can be called explicitly, or it will be called automatically when the first transform is performed. The migration procedure is similar:
- If you do several transform operations on related data (like train and test), first call
fit on one of the data, and then
forward in the case of the Pytorch wrapper
- Alternatively, replace
transform calls by
fit_transform for the Scikit-learn wrapper.