- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 Pytorch tried to construct a tensor from a int , but found an item of type numpy.int32
Pytorch 需要 int 类型的数据,1.astypeimport numpy as nparr = np.array([1,2,3,4,5]).astype(int)print(arr.dtype)## int32输出的int32 并不是 pytorch 需要的类型2.np.int64()import numpy as nparr = np.int64(np....
2018-07-27 17:50:23 893
原创 相关矩阵 Correlation matrix
#两个特征的相关性pd.DataFrame({"full_data": p1,"red_data": p2}).corr() 根据提供的文件分析各个特征之间的相关性 Id MSSubClass MSZoning LotFrontage LotArea Lan...
2018-07-25 16:30:50 28831 2
ABAQUS 二次开发 插件
2016-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人