Coder Social home page Coder Social logo

Comments (4)

bytesnake avatar bytesnake commented on July 30, 2024 1

uff this is blocked on rust-lang/cargo#7915 for stable builds. I removed the features and the linalg backend is using the system openblas library now exclusively. I will ping again when we managed to transfer ownership

from linfa.

bytesnake avatar bytesnake commented on July 30, 2024 1

everything except linfa-clustering should be published now. Here a small example for PCA:

Cargo.toml

[package]
#...

[dependencies]
ndarray = "0.13"
ndarray-rand = "0.11"
openblas-src = { version = "0.9", default-features = false, features = ["system"] }

linfa = "0.2.1"
linfa-reduction = "0.2.1"  

src/main.rs

use ndarray::Array;
use ndarray_rand::rand_distr::Uniform;
use ndarray_rand::RandomExt;

use linfa::prelude::*;
use linfa_reduction::Pca;

fn main() {
    let data = Array::random((100, 10), Uniform::new(-10., 10f64));
    let dataset = Dataset::from(data.clone());

    let proj_data = Pca::params(2)
        .fit(&dataset)
        .predict(data.view());

    dbg!(&proj_data);
}

from linfa.

bytesnake avatar bytesnake commented on July 30, 2024

from linfa.

zicklag avatar zicklag commented on July 30, 2024

No problem, I was just messing around and probably won't end up actually using linfa. Also I just discovered that I'm pretty sure the cause is the fact that the default feature depends on a dev-dependency, which doesn't work when included from an outside crate.

from linfa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.