Questions Tagged [Scikit-Plot]
Ask Question Scikit-Plot Is a Visualization Toolkit Based on Matplotlib for Python. Use This Tag Together with `Python`-Tag (And `Scikit-Learn` If...
scikit-plot is a visualization toolkit based on matplotlib for python. Use this tag together with `python`-tag (and `scikit-learn` if appropriate).
15
questions
1
vote
0
answers
17
views
AttributeError: module 'scikitplot' has no attribute 'plot_precision_recall_curve'
With the following code, I'm getting the error AttributeError: module 'scikitplot' has no attribute 'plot_precision_recall_curve'.
rfc = RandomForestClassifier(verbose=True) #uses randomized decision ...
0
votes
0
answers
163
views
How to customize plots that were made using "scikitplot.metrics" other than the arguments show in the function?
I made some graphs with scikit-plot package, but need to customize the axes colors and sizes as well the lines width.
Here is what I already have plotted and the editable arguments of the function ...
0
votes
1
answer
2k
views
scikitplot->IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
can anyone help me with this error?
y_test['cEXT'].shape ,y_test['cEXT'].ndim # returns ((982,), 1)
Y_test_probs.shape,Y_test_probs.ndim # returns ((982,), 1)
# AOC ROC Curve
import scikitplot as ...
2
votes
0
answers
76
views
Why has subplot of matplotlib not the same size? [duplicate]
I am building a classifier in Python and would like to evaluate it.
I already built some code that is plotting a few different metrics per class. Plot_metric() is a self defined function.
gs = ...
1
vote
0
answers
626
views
`scikitplot.metrics.plot_calibration_curve`, how to change the line-colour and line-type?
I am trying to use scikitplot.metrics.plot_calibration_curve to plot calibration curves for my models and would like to change the line-type (eg. dashed, solid, dotted) in the resulting charts.
The ...
2
votes
0
answers
263
views
Why is the macro-average PR curve not implemented in Scikit-Learn?
For multiclass classification, the PR curves in the scikit-learn example (PR curve example) and the function to plot PR curves with scikit-plot (API Reference) both only implement the micro-average PR ...
1
vote
1
answer
404
views
How to make subplots consisting of 6 charts to charts from the scikitplot library
I have six models and want to evaluate them with a ROC chart
from sklearn.naive_bayes import GaussianNB
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import ...
0
votes
1
answer
2k
views
Confusion matrix predicted labels
I am using the following piece of python code to generate a normalized confusion matrix
import scikitplot as skplt
skplt.metrics.plot_confusion_matrix(y_test, y_pred, normalize=True)
and this gives ...
0
votes
1
answer
434
views
Plotting confusion matrix
I am trying to plot a confusion matrix using scikitplot.metrics.plot_confusion_matrix by following snippet code-
import scikitplot as skplt
Y_Test = [1, 0, 1, 0, 1, 1, 0, 1, 1 ,1 ,1, 1, 0, 0 ,0];
...
1
vote
3
answers
7k
views
Plot only Class 1 vs Baseline in Lift-curve and Cumulative-gains-chart in scikitplot
I am working on a problem of propensity modeling for an ad campaign. My data set consists of users who have historically clicked on the ads and those who have not clicked.
To measure the performance ...
0
votes
2
answers
193
views
scikit-plot scaling is wrong
I'm trying to plot a confusion matrix in a jupyter notebook and the plot does not display properly.
My code is:
import scikitplot
plt.close()
scikitplot.metrics.plot_confusion_matrix(y_test, ...
1
vote
1
answer
2k
views
How to merge the plots of 2 lift curves into a single graph in Python
I produced a lift curve of answers predicted through 2 models: logistic regression and decision tree. I get 2 separate plots on two separate graphs. I need a single graph depicting both the plots. How ...
-1
votes
2
answers
3k
views
Plotting Cumulative Gains Curve in Python (ModuleNotFoundError: No module named 'scikitplot')
I am quite new to data science and python. I am trying to plot the cumulative gains curve of a model I have built in Spyder (Python 3.6) using scikitplot. However, it keeps returning the error: ...
0
votes
0
answers
608
views
clf.fit(X, y) not running with small values - fit() never completes - potential sklearn bug : Data Science
This is not a fix my code question.(code works but not for the data used).
This question directly relates to the sklearn fit() function call as a technical enquiry.
Module call below.
from sklearn ...
0
votes
1
answer
1k
views
Seriously weird ROC curve
So I have a very challenging dataset to work with, but even with that in mind the ROC curves I am getting as a result seem quite bizarre and looks wrong.
Below is my code - I have used the scikitplot ...