Giter VIP home page Giter VIP logo

bulgarian-constitutional-court-decisions's People

Contributors

dependabot[bot] avatar paulj1989 avatar schapa094 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

schapa094

bulgarian-constitutional-court-decisions's Issues

ROC curve not running for SVC

Describe the bug
I used the AUC-ROC curves from the yellowbrick package for testing model performance for both the logistic regression and the naive Bayes classifier, however, the same code doesn't work for the support vector classifier.

Instead, it produces the following error:

ValueError: Found input variables with inconsistent numbers of samples: [298, 149]

The code that produces the error:

roc_auc(svc, X_train, y_train, X_test=X_test, y_test=y_test, classes=[0, 1])

To Reproduce
Steps to reproduce the behavior:

  1. Open baseline_models.ipynb
  2. Run all cells in the baseline notebook
  3. Scroll down to the SVC section of the notebook
  4. Replace plot_roc_curve() with roc_auc(), using either the code from the previous model in the notebook, or the code above
  5. Scroll down to see error

Expected behavior
The same AUC-ROC curve as shown under the first two models should be plotted.

Additional context
The plot_roc_curve() code, from sklearn, works as expected. However, it is less detailed than the yellowbrick plot (plus consistency would be preferred).

Add visualizations to baseline models

Is your feature request related to a problem? Please describe.
Model performance could be easier to find in the notebook, and easier to understand.

Describe the solution you'd like
Adding model performance and training visualizations would help illustrate the process.

Describe alternatives you've considered
N/A

Additional context
Some ideas for visualizing model performance can be found here and here.

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.