bacon VS linfa

Compare bacon vs linfa and see what are their differences.


Scientific Computing in Rust (by aftix)


A Rust machine learning framework. (by rust-ml)
Our great sponsors
  • Mergify - Tired of breaking your main and manually rebasing outdated pull requests?
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
bacon linfa
2 14
175 2,916
- 4.8%
0.0 0.0
21 days ago about 1 month ago
Rust Rust
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of bacon. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-04.


Posts with mentions or reviews of linfa. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-13.
  • Why is Rust not more popular in ML and secure edge computing?
    2 projects | /r/rust | 13 Nov 2022
  • Polars vs ndarray performance
    2 projects | /r/rust | 16 Oct 2022
    I've been playing with data analytics and ml in rust for the last couple of weeks. A typical ML job requires transforming some data to feed the ml model to the then train the model. For ML I've been using linfa ( which is surprisingly nice. I've been experimenting with ndarray and polars for data transformation (linfa uses ndarray) - from a UX standpoint. I'm pretty surprised by polars' performance (, which sits on top of arrow2, and it's definitely a great candidate for OLAP tasks. But I couldn't find any comparison between ndarray and polars, has anyone had any meaningful experience with the two or/and can point me to a benchmark comparison?
  • Ask HN: What is the job market like, for niche languages (Nim, crystal)?
    4 projects | | 23 Jul 2022
    The most comprehensive current view of the Rust machine learning ecosystem at the moment is probably at (I sometimes help maintain this site)

    Rust has a weird mix at the moment, and not one that's likely to significantly change within the next 12 months, at least. Certain tools are genuinely best-in-class, especially around simple operations on insane amounts of data. Rust kills it in that space due to its native speed and focus on concurrency.

    There's also growing projects like Linfa [1]. that while not at the level of scikit-learn, have significantly increased their coverage on common data science/classical ML problems in the past couple years, along with improved tooling. The space does have a few pure-Rust projects coming down the pipeline around autodifferentiation, GPU compute, etc. that are likely to yield some really valuable results in deep learning, but that aren't quite available and will take some time to pick up some traction even once they're released. At the same time, areas like data visualization are unlikely to reach parity with something like matplotlib/pyplot in the near future.

    Python is the de-facto standard, and will be for some time, but Rust's ability to build accessible high-level APIs on top of performant, language-native libraries is attracting some attention and I wouldn't be surprised to start seeing ingress in the certain areas over the next few years, where instead of the Python/C++ combination, it's just Rust all the way down.


  • Is RUST aiming to build an ecosystem on scientific computing?
    6 projects | /r/rust | 10 Jul 2022
    take a look at for machine learning related crates
  • What is a FOSS which is needed but doesn't exist yet/needs contributers?
    7 projects | /r/rust | 16 Feb 2022
    Check out smartcore and linfa. At work I was badly in need of an NMF function similar to MATLAB's one these days but not enough time to write one myself. If you're good at math and machine learning, this sounds like a task you could try tackling.
  • Any role that Rust could have in the Data world (Big Data, Data Science, Machine learning, etc.)?
    8 projects | /r/rust | 4 Dec 2021
  • How far along is the ML ecosystem with Rust?
    6 projects | /r/rust | 15 Sep 2021
    For other algorithms, there is not yet a single library to rule them all (linfa might become that at some point) but searching for the algorithm you need on is likely to give you some results (obligatory plug to Friedrich, my gaussian process implementation).
    6 projects | /r/rust | 15 Sep 2021
    I'm working on machine learning in Rust at Tangram. We currently only provide an implementation of linear models and gradient boosted decision trees but will move into exposing training of deep models in the future. You can check out Tangram here: You may also be interested in checking out Linfa If you're interested in the future of machine learning in Rust, check out Luca Palmieri's blog post:
  • Linfa has a website now!
    4 projects | /r/rust | 8 Mar 2021
    for a start I will implement the TryFrom for Dataset under a feature flag. But to be really useful some of the algorithms have to start using something like DatasetBase here Records are currently bounded by an associated type for the element type, we would have to relax that too. Just read your blogpost on polars 👍
    4 projects | /r/rust | 8 Mar 2021
    to here:

What are some alternatives?

When comparing bacon and linfa you can also consider the following projects:

smartcore - A comprehensive library for machine learning and numerical computing. The library provides a set of tools for linear algebra, numerical computing, optimization, and enables a generic, powerful yet still efficient approach to machine learning.

Awesome-Rust-MachineLearning - This repository is a list of machine learning libraries written in Rust. It's a compilation of GitHub repositories, blogs, books, movies, discussions, papers, etc. 🦀

rust-ndarray - ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations

Enzyme - High-performance automatic differentiation of LLVM and MLIR.

rusty-machine - Machine Learning library for Rust

tract - Tiny, no-nonsense, self-contained, Tensorflow and ONNX inference

tangram - Tangram makes it easy for programmers to train, deploy, and monitor machine learning models.

tch-rs - Rust bindings for the C++ api of PyTorch.

gbdt-rs - MesaTEE GBDT-RS : a fast and secure GBDT library, supporting TEEs such as Intel SGX and ARM TrustZone

rulinalg - A linear algebra library written in Rust

Peroxide - Rust numeric library with R, MATLAB & Python syntax

cargo-supply-chain - Gather author, contributor and publisher data on crates in your dependency graph.