paulj1989 / bulgarian-constitutional-court-decisions Goto Github PK
View Code? Open in Web Editor NEWDeveloping NLP models for text and sentence classification using legal texts from the Bulgarian constitutional court.
License: MIT License
Developing NLP models for text and sentence classification using legal texts from the Bulgarian constitutional court.
License: MIT License
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:
plot_roc_curve()
with roc_auc()
, using either the code from the previous model in the notebook, or the code aboveExpected 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).
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.