- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 from sklearn.tree import plot_tree 报错 cannot import name ‘plot_tree‘ from ‘sklearn.tree‘
import 报错如下解决pip install --upgrade scikit-learn -i http://pypi.douban.com/simple/ # 使用国内源更新sklearn原因sklearn版本低,需≥0.21\geq 0.21≥0.21( plot_tree 函数是在 scikit-learn 的 0.21 版本加入的)查看sklearn版本方法import sklearnprint(sklearn.__version__)补充:激活指定工作环境,更新skle
2020-07-17 20:31:09
7544
原创 np.newaxis
np.newaxisprint(np.arange(0, 5, 0.01).shape)print(np.arange(0, 5, 0.01)[:, np.newaxis].shape) # 增加一个维度# 输出(500,)(500, 1)
2020-07-17 19:25:23
160
原创 结合torch tutorial图解LSTM
结合torch tutorial图解LSTMtutorial链接:https://pytorch.org/docs/stable/nn.html?highlight=lstm#torch.nn.LSTM
2020-07-15 14:08:21
259
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅