vaaaaanquish / lightgbm-rs

LightGBM Rust binding
MIT License
73 stars 30 forks source link

add load_string and save_string apis. #37

Open leofidus opened 2 years ago

leofidus commented 2 years ago

The in-memory equivalents of load_file and save_file.

Maybe loading from a &[u8] and saving to a Vec would be better to avoid the conversions between c-strings and rust-strings. Or maybe that could be a future api (load_vec, save_vec). Thoughts?