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

Adding support for DecisionTree.jl models. #108

Merged
merged 5 commits into from
Nov 13, 2023

Conversation

john-waczak
Copy link
Contributor

This pull request adds support for models from DecisionTree.jl. Specifically, I have tested:

  • DecisionTreeRegressor
  • RandomForestRegressor
  • DecisionTreeClassifier
  • RandomForestClassifier
    To get this to work, I had to move the calls to MMI.reformat(conf_model.model, ...) to inside the fit and predict methods. Calling MMI.reformat() on data before passing to fit and predict causes these models to fail, perhaps due to this issue.

@pat-alt
Copy link
Member

pat-alt commented Nov 13, 2023

Hi @john-waczak, thanks very much for this! Reformatting has been a bit of a pain point, so if this see resolves the issue should also have better compatibility with other models from MLJ. Will just wait for tests and then merge, thanks a lot!

@john-waczak
Copy link
Contributor Author

Awesome, I've really enjoyed using the package so far. Thank you for the hard work!

@pat-alt pat-alt merged commit c4ef89a into JuliaTrustworthyAI:main Nov 13, 2023
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

Successfully merging this pull request may close these issues.

2 participants