-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Who could share me how to draw the gragh ? Thanks #9
Comments
Hope this link is useful to you, where there are a few examples on drawing pictures with matploylib. If you wanna the similar pictures like the above, just combine different shapes. It’s not hard. |
@xshaun Thanks for your reply. I mean how to draw the decison boundary line . I can only do it like this. 谢谢您的回复!我的意思是如何画出和那一样的边界分类图片。这个决策边界,很像Sigmoid函数。 |
The following is a simple demo that involves the code for drawing sigmoid function. Hope it can help you. Python3 |
@xshaun Thanks very much sincerely. I have finished it. But how to use the curve to make the classfication clearly. anyway, thanks again, i feel sorry to waste your time. |
Hello, One approach to draw a figure like that is to define a boundary (y=f(x)) by yourself and random a few points at the both sides of the boundary. Then, you can use logistic regression algorithm to seek a curve as close to the defined boundary as possible. This way can also verify the availability of your code. After several iterations, you will get a couple of parameters to describe the boundary, like w, b. What you need to do is like: Hope this is useful to you. |
@xshaun Thanks for your patience and guidance again. I will have a try late. Best Regards ,Sincerely. |
Hi, Everybody.
When i see the ML coursee, I find it's useful. Especial, i have interested in Day4.jpg about Logistic Regression.
But I have a question , How to draw the picture ? Could you share me the code ?
Thanks a lot !
The text was updated successfully, but these errors were encountered: