Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert the Deep-Forest model to pmml format #439

Open
zilinly opened this issue Dec 31, 2024 · 6 comments
Open

Convert the Deep-Forest model to pmml format #439

zilinly opened this issue Dec 31, 2024 · 6 comments

Comments

@zilinly
Copy link

zilinly commented Dec 31, 2024

No description provided.

@vruusmann
Copy link
Member

Which Scikit-Learn library class that would be?

@zilinly
Copy link
Author

zilinly commented Dec 31, 2024

from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error

from deepforest import CascadeForestRegressor

X, y = load_boston(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=1)
model = CascadeForestRegressor(random_state=1, backend="sklearn")
model.fit(X_train, y_train)

@zilinly
Copy link
Author

zilinly commented Dec 31, 2024

Which Scikit-Learn library class that would be?

from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error

from deepforest import CascadeForestRegressor

X, y = load_boston(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=1)
model = CascadeForestRegressor(random_state=1, backend="sklearn")
model.fit(X_train, y_train)

@vruusmann
Copy link
Member

from deepforest import CascadeForestRegressor

You appear to be referring to the Deep-Forest third-party package (uses Scikit-Learn API conventions, but is "organizationally" independent of it).

Given the technical complexity of the task, seems like a good candidate for extracting into an independent JPMML converter project (similar to JPMML-LightGBM, JPMML-XGBoost, etc), which could then be integrated into the main JPMML-SkLearn "umbrella" project.

Now, to help me prioritize this feature request - is there any bounty attached (eg. for getting it implemented and released in the next 2 weeks time)?

@zilinly
Copy link
Author

zilinly commented Jan 2, 2025

Thank you so much for your response. I must say, the sklearn2pmml package has been incredibly beneficial to my work, and I'm excited to see its ongoing development. I'm particularly eager for the upcoming support for Deep-Forest. You know, it's incredibly important to many of us, and I believe it will greatly enhance the flexibility of our applications. While it may also present new challenges. I'm eagerly awaiting your future updates.

@vruusmann
Copy link
Member

@zilinly TLDR: There is not bounty available for a quick fix, you say?

This issue is currently in "Noted" status. As things stand, it goes to my generic work queue (with no ETA).

By looking around Deep-Forest documentation I get the impression that DF models can be fully converted to PMML representation - all the necessary building blocks such as "tree models", "ensembles of tree models" and "ensembles of ensemble models" are nicely available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants