摘要:
通过RNNCell建立一个RNN网络,要输入的参数: 例子,使用RNNCell, 使用两层LSTM: 输出是outputs与state: outputs: The RNN output Tensor. If time_major == False (default), this will be a 阅读全文
摘要:
train loss 不断下降,test loss不断下降,说明网络仍在学习; train loss 不断下降,test loss趋于不变,说明网络过拟合; train loss 趋于不变,test loss不断下降,说明数据集100%有问题; train loss 趋于不变,test loss趋于 阅读全文
摘要:
使用一个pytorch写的模型时,报错:RuntimeError:one of the variables needed for gradient computation has been modified by an inplace operation 解决方法一:如果使用的是pytorch0.4 阅读全文
摘要:
用numpy.ndarray类型作为index操作时,报错:IndexError:arrays used as indices must be of integer (or boolean) type,解决办法: 将numpy.ndarray对象加上: 要操作的array.astype('int64 阅读全文