#metrics #categorical #data-science #presently #gini #impurity

parsnip

Data science metrics (presently categorical only) for Rust

8 releases

Uses old Rust 2015

0.3.0 Sep 28, 2018
0.2.2 Sep 14, 2018
0.1.3 Sep 14, 2018

#671 in Science

Download history 33/week @ 2024-03-11 34/week @ 2024-03-18 18/week @ 2024-03-25 58/week @ 2024-04-01 34/week @ 2024-04-08 33/week @ 2024-04-15 26/week @ 2024-04-22 24/week @ 2024-04-29 63/week @ 2024-05-06 27/week @ 2024-05-13 30/week @ 2024-05-20 39/week @ 2024-05-27 30/week @ 2024-06-03 28/week @ 2024-06-10 29/week @ 2024-06-17 27/week @ 2024-06-24

118 downloads per month
Used in 4 crates (3 directly)

MIT license

18KB
328 lines

parsnip

Coverage Status Docs

Data science metrics for Rust (categorical at the moment, but under active development).

Goals

Parsnip aims to supply a wide variety of useful metrics for data science. Generally, I draw inspiration from SciKit Learn's metrics in terms of what to include. However, I'll add other features as contributors suggest or as I come across them (for example, Gini Impurity).

Ultimately, Parsnip should support a wide variety of linear algebra packages, including some with GPU support. Wherever possible, I will also endeavour to make Parsnip as performant as possible to avoid slowing down training.

Contributing

Pull requests are always welcome! I ask that you keep with the convention of the package fn something(pred: &[type], actual: &[type], ...). Performance PRs are always tremendously appreciated.

Why the name parsnip?

I'm not sure. I wanted something natural, and it felt right. Plus, it's relatively short to type and distinct from other packages on crates.io.

Roadmap

I'm first aiming to finish broad support for categorical data. Code quality improvements, and greater unit test coverage would also be preferred. Before getting to 1.0, support for types other than slices is desirable.

Change log

0.3.0

Support for generic types, better error handling and documentation. Substantial breaking changes in this version.

0.2.2

Mostly bug fixes, a few additions

0.2.0

Added numerous different functions for categorical accuracy, bumping to 0.2.0 as a result. I consider most of these now stable.

0.1.3

Added f1_score support

Documenation is available at docs.rs

No runtime deps