Giter VIP home page Giter VIP logo

fbleau's People

Contributors

ehentgen avatar gchers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fbleau's Issues

Crash when calling fbleau --version

I'm getting an error while calling this command.

$ fbleau --version 
thread 'main' panicked at '[!] failed to load training data: Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }))', src/libcore/result.rs:997:5 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Installing fbleau with cargo fails

Hello,
I'm trying to install fbleau on my 16.04 Ubuntu computer which fails with the message below. I tried calling the install command on bash and zsh and both of them return this error. Can you help me with this?

Cheers,

$ cargo install fbleau                                                                                                             
    Updating registry `https://github.com/rust-lang/crates.io-index`
  Installing fbleau v0.2.1
   Compiling ucd-util v0.1.3
   Compiling libc v0.2.51
   Compiling serde v1.0.90
   Compiling ryu v0.2.7
   Compiling proc-macro2 v0.4.27
   Compiling nodrop v0.1.13
   Compiling either v1.5.2
   Compiling regex v1.1.5
   Compiling itoa v0.4.3
   Compiling lazy_static v1.3.0
   Compiling ndarray v0.11.2
   Compiling utf8-ranges v1.0.2
   Compiling arrayvec v0.4.10
   Compiling void v1.0.2
   Compiling strsim v0.9.0
   Compiling memoffset v0.2.1
error[E0046]: not all trait items implemented, missing: `description`
  --> /home/burak/.cargo/registry/src/github.com-1ecc6299db9ec823/strsim-0.9.0/src/lib.rs:26:1
   |
26 | impl Error for StrSimError {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `description` in implementation
   |
   = note: `description` from trait: `fn(&Self) -> &str`

error: aborting due to previous error

error: Could not compile `strsim`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `fbleau v0.2.1`, intermediate artifacts can be found at `/tmp/cargo-install.j1hh7kY9wkNz`

Caused by:
  build failed

Supress output in python

There should be an option (even default maybe?) to completely supress all output in the python lib.

Equality check in KNN fails

It seems that the equality check in knn.rs should be made approximate:

thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `Some(0.0000000000000004440892098500626)`,
 right: `Some(0.0000000000000002220446049250313)`', src/estimates/knn.rs:390:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
fatal runtime error: failed to initiate panic, error 5

Maturin compilation issue

maturin build --cargo-extra-args="--features python-module" fails with error:

error[E0308]: mismatched types=========> ] 83/84: fbleau   
   --> src/python_module.rs:103:13                                                                                                                                                                                
    |                                              
103 |             train_x,                                                                                                                                                                                        
    |             ^^^^^^^ expected struct `ArrayBase`, found struct `ndarray::ArrayBase`
    |                             
    = note: expected struct `ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>`
               found struct `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<f64>, ndarray::dimension::dim::Dim<[usize; 2]>>`
    = note: perhaps two different versions of crate `ndarray` are being used?
                                                                              
                                                        
error[E0308]: mismatched types=========> ] 83/84: fbleau
   --> src/python_module.rs:104:13
    |                             
104 |             train_y, 
    |             ^^^^^^^ expected struct `ArrayBase`, found struct `ndarray::ArrayBase`
    |                               
    = note: expected struct `ArrayBase<OwnedRepr<usize>, Dim<[usize; 1]>>`
               found struct `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<usize>, ndarray::dimension::dim::Dim<[usize; 1]>>`
    = note: perhaps two different versions of crate `ndarray` are being used?
                                                 
                                                  
error[E0308]: mismatched types=========> ] 83/84: fbleau                                          
   --> src/python_module.rs:105:13       
    |
105 |             test_x,
    |             ^^^^^^ expected struct `ArrayBase`, found struct `ndarray::ArrayBase`
    |                             
    = note: expected struct `ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>`
               found struct `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<f64>, ndarray::dimension::dim::Dim<[usize; 2]>>`
    = note: perhaps two different versions of crate `ndarray` are being used?

                                                        
error[E0308]: mismatched types=========> ] 83/84: fbleau
   --> src/python_module.rs:106:13
    |                                                         
106 |             test_y,                                                                                                                                                                                         
    |             ^^^^^^ expected struct `ArrayBase`, found struct `ndarray::ArrayBase`
    |
    = note: expected struct `ArrayBase<OwnedRepr<usize>, Dim<[usize; 1]>>`
               found struct `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<usize>, ndarray::dimension::dim::Dim<[usize; 1]>>`
    = note: perhaps two different versions of crate `ndarray` are being used?


error: aborting due to 4 previous errors ] 83/84: fbleau


For more information about this error, try `rustc --explain E0308`.

error: could not compile `fbleau`

Probably due to this issue: https://githubmemory.com/repo/PyO3/rust-numpy/issues/188.

Quick fix: use dependency ndarray = "0.15" in Cargo.toml.

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.