yandex-research / rtdl

Research on Tabular Deep Learning: Papers & Packages
Apache License 2.0
888 stars 98 forks source link

Is it possible to provide a scikit-learn interface? #4

Closed hengzhe-zhang closed 3 years ago

hengzhe-zhang commented 3 years ago

This project is interesting and I want to use it as the baseline algorithm for my paper. However, it seems that I need to take several steps in order to make a prediction. Consequently, is it possible to provide a scikit-learn interface for making a convenient comparison between different algorithms?

Yura52 commented 3 years ago

UPD

There are several approaches to training and prediction:

hengzhe-zhang commented 3 years ago

Do you mean that I only need to wrap the FTTransformer using skorch?

Yura52 commented 3 years ago

NOTE: I have updated the previous answer, please, read it first.

Do you mean that I only need to wrap the FTTransformer using skorch?

In theory, yes. Note that rtdl.FTTransformer expects two arguments (numerical and categorical features), so you will need to read this section.

Yura52 commented 3 years ago

Feel free to reopen the issue if you have more questions on the topic.

hengzhe-zhang commented 3 years ago

@Yura52 I implement a scikit-learn compatible interface for algorithms in this library and already open sourced it on GitHub. (https://github.com/zhenlingcn/scikit-rtdl)