如何使用感知器 MATLAB 的输出绘制分隔 2 个类的线
在Matlab中运行感知器代码后,我得到以下权重:
result=
2.5799
2.8557
4.4244
-4.3156
1.6835
-4.0208
26.5955
-12.5730
11.5000
如果我从这些权重开始:
w = [ 1 1 1 1 1 1 1 1 1]';
如何绘制分隔两个类别的线。 必须求解线性系统,但如何求解呢?
Line = [result,w]
% solve the linear system, am I correct doing this?
rref(Line')
- 计算用于绘图的值的方法是否正确?
- 怎么画线?? 有什么例子吗???
after running the perceptron code in Matlab I get the following weights:
result=
2.5799
2.8557
4.4244
-4.3156
1.6835
-4.0208
26.5955
-12.5730
11.5000
If i started with these weights :
w = [ 1 1 1 1 1 1 1 1 1]';
How do I plot the line that separates the 2 classes.
Is necessary to solve a linear system, but how?
Line = [result,w]
% solve the linear system, am I correct doing this?
rref(Line')
- Is it correct the way to calculate the values, that will be use to plot?
- How to plot the line??
any example???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎适用于二维
seems to work for 2 dimension