-
-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors Building Linfa Clustering and Linfa Reduction #63
Comments
Hey,
we had some problems uploading the new version to crates.io because of move of ownership from the original author. We will try to fix that as soon as possible.
27.11.2020 17:03:15 Zicklag <notifications@github.com>:
… Hey there, interesting project! I was just getting it installed and found that I couldn't compile the docs for linfa-clustering or linfa-reduction without turning off default-features because of this error:
Updating crates.io index
error: failed to select a version for `linfa-reduction`.
... required by package `nasa-gallery v0.1.0 (/home/zicklag/git/zicklag/nasa-gallery)`
versions that meet the requirements `*` are: 0.2.0
the package `nasa-gallery` depends on `linfa-reduction`, with features: `openblas-src` but `linfa-reduction` does not have these features.
failed to select a version for `linfa-reduction` which could resolve this conflict
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub[#63], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAHRRKPPWWPZW6VV4MQKLFDSR7ETPANCNFSM4UFCHKNQ].
[data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAnSURBVHic7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAAAAAAAAAPBjRFIAASHKmKkAAAAASUVORK5CYII=###24x24:true###][Tracking-Bild][https://github.com/notifications/beacon/AAHRRKMW4ORA6XVLC4H36NLSR7ETPA5CNFSM4UFCHKN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LGX4PUA.gif]
|
No problem, I was just messing around and probably won't end up actually using |
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 |
everything except 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.rsuse 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);
} |
Hey there, interesting project! I was just getting it installed and found that I couldn't compile the docs for
linfa-clustering
orlinfa-reduction
without turning offdefault-features
because of this error:The text was updated successfully, but these errors were encountered: