Code Monkey home page Code Monkey logo

Comments (5)

Marouds avatar Marouds commented on May 29, 2024 1

Hi @joshualeond & @thomasp85,

I am having the exact same problem as Joshua with my random forest.
I don't know what to put as "labels" and "n_labels" in order to solve it?
Did you manage?

Thank you very much in advance.
Maroussia

from lime.

thomasp85 avatar thomasp85 commented on May 29, 2024

You seem to have stumbled upon a bug - I'll look into it. Thanks

from lime.

joshualeond avatar joshualeond commented on May 29, 2024

Hey @Marouds, I was able to run this example without any errors. This original bug resulted in the error:
#> Error in y[1, ]: incorrect number of dimensions

You're receiving this same error? Are you receiving this error using the example above or are you working with different data?

For a regression model you can remove the labels and n_labels arguments from the function call. Either way though, the explain() function should run without errors on this example.

from lime.

Marouds avatar Marouds commented on May 29, 2024

Hi @joshualeond, thank you very much for your quick reply!

I managed to run it in the end !! And indeed I was receiving the same error "#> Error in y[1, ]: incorrect number of dimensions". I added "drop=FALSE" when I split my data into training and testing dataset, and it worked!
(I might be using an old version of R)

Thanks!
Have a nice day

from lime.

Marouds avatar Marouds commented on May 29, 2024

I do have an issue with the visualization of the results, using plot_features().
It does not appear with colors and everything like it seems it should...
I don't know whether an addition packages was needed?
Thanks!!

from lime.

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.