绘制简单二进制分类的决策边界线

问题描述 投票:-2回答:1

this how my axes looks with the positive(y = 1) and negative(y = 0) examples plotted

我使用以下代码找到了thetatheta0 = model.intercept_theta = model.coef _

其中model = LogisticRegression();

is there any way to draw the decision boundary line like the picture below using the theta I have found

python machine-learning plot logistic-regression
1个回答
-1
投票

为什么不遵循以下教程在分类任务中添加分隔线:http://mlpy.sourceforge.net/docs/3.5/lin_class.html

© www.soinside.com 2019 - 2024. All rights reserved.