how to draw classification response of machine learning model ? (Ex. Logistic Regression Response)

1 回表示 (過去 30 日間)
BHVAIN MEHTA
BHVAIN MEHTA 2021 年 7 月 5 日
回答済み: Ive J 2021 年 7 月 6 日
I am working on classification learner for machine learning. I found various plots in app. But i want to see the classification response ex. Linear svm or cubic svm as a graphical form. How to visualise it ??

回答 (1 件)

Ive J
Ive J 2021 年 7 月 6 日
You can plot predicted probabilities from a logisitc regression model:
y = randi([0, 1], 1000, 1);
x = randn(1000, 1);
mdl = fitglm(x, y, 'Distribution', 'binomial', 'Link', 'logit');
xNew = randn(1000, 1);
yNew = mdl.predict(xNew);
plot(xNew, yNew, '.', 'MarkerSize', 4)
Similarly, you can apply predict to other models (SVM etc) to get the predicted response.

カテゴリ

Help Center および File ExchangeClassification Learner App についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by