zhangxiann / pytorch_practice Goto Github PK
View Code? Open in Web Editor NEW这是我学习 PyTorch 的笔记对应的代码,点击查看 PyTorch 笔记在线电子书
Home Page: http://pytorch.zhangxiann.com/
License: GNU General Public License v3.0
这是我学习 PyTorch 的笔记对应的代码,点击查看 PyTorch 笔记在线电子书
Home Page: http://pytorch.zhangxiann.com/
License: GNU General Public License v3.0
Why do I get the log as shown below:
[0/20][0/32] Loss_D: 1.8010 Loss_G: 8.0963 D(x): 0.4317 D(G(z)): 0.3617 / 0.0005
[0/20][10/32] Loss_D: 7.5290 Loss_G: 38.1183 D(x): 0.9269 D(G(z)): 0.9958 / 0.0000
[0/20][20/32] Loss_D: 0.0425 Loss_G: 58.4481 D(x): 0.9731 D(G(z)): 0.0000 / 0.0000
[0/20][30/32] Loss_D: 0.2492 Loss_G: 57.3842 D(x): 0.9787 D(G(z)): 0.0000 / 0.0000
[1/20][0/32] Loss_D: 0.0000 Loss_G: 56.7433 D(x): 1.0000 D(G(z)): 0.0000 / 0.0000
[1/20][10/32] Loss_D: 0.0000 Loss_G: 56.9849 D(x): 1.0000 D(G(z)): 0.0000 / 0.0000
[1/20][20/32] Loss_D: 0.0001 Loss_G: 56.8024 D(x): 0.9999 D(G(z)): 0.0000 / 0.0000
[1/20][30/32] Loss_D: 0.0000 Loss_G: 57.0740 D(x): 1.0000 D(G(z)): 0.0000 / 0.0000
The outputs have always been noise, I am running according to the source code, where is the problem?
plot_y = (-w0 * plot_x - plot_b) / w1
这里plot画出的是两种类别的分割线,没明白y为什么要这么取值,nn.linear的两个权重w0 w1分别有什么含义呢?
your code is very like this
如题
/PyTorch_Practice/lesson1/logistic-regression.py 83行后应该加个plt.clf() ,不然每次输出的图片会覆盖前面的图片
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.