擅长:python、mysql、java
<p>有两件事帮了大忙:</p>
<ul>
<li><p>需要使用例如<a href="https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.MinMaxScaler.html" rel="nofollow noreferrer">^{<cd1>}</a>对数据进行规范化(本教程不进行规范化)</p>
</li>
<li><p>使用设计用于解决回归问题的<a href="https://neptune.ai/blog/pytorch-loss-functions" rel="nofollow noreferrer">loss function</a>:<code>torch.nn.L1Loss</code>或<code>torch.nn.MSELoss</code>(本教程考虑二元分类问题,因此使用<code>torch.nn.BCELoss</code>)</p>
</li>
</ul>