jinlow / forust

A lightweight gradient boosted decision tree package.
https://jinlow.github.io/forust/
Apache License 2.0
56 stars 6 forks source link

Small rust example? #15

Closed thomasaarholt closed 1 year ago

thomasaarholt commented 1 year ago

Hiya, and thanks for creating forust! I've been learning Rust and playing with the polars library (Dataframe library in rust), with the intention of building a pure-rust ML-pipeline.

I was wondering if you could write a small Rust Titanic code example on how to use Forust, equivalent to the Python one in the Github Readme? It would be nice to have in the Readme as well.

The 44KB Titanic data is available here: https://web.stanford.edu/class/archive/cs/cs109/cs109.1166/stuff/titanic.csv

jinlow commented 1 year ago

Hi @thomasaarholt, Absolutely! This is something I have been meaning to do for a while, but haven’t gotten around to. But I should be able to add an example in the next few days!

jinlow commented 1 year ago

Apologies for the slow response on this, finally added a small self contained rust example here.
Also working on docs, where you will be able to switch between python and rust code, as all of the python methods are nearly an exact pass-through of the rust code.