rust-ml / linfa

A Rust machine learning framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to use Polars instead of ndarray?

ritvikos opened this issue · comments

Hello!
I'm new to Linfa and ML in Rust.
Is it possible to use Polars DataFrames instead of ndarray with Linfa ?

At the moment, linfa doesn't support the direct use of Polars dataframes as an input; it's likely you'll need to roll your own conversion between the data represented by those data types and ndarray's. There's been related discussion of this in #285; I'm closing this issue in favor of that one, which also links to ndarray-related discussion around Apache Arrow compatibility, since that's what Polars uses under the hood.