摘要: 1、perl脚本 open IN, "<", "data.txt" or die "The file does not exist!"; $line = 0; # 文本总的行数 while(<IN>){ chomp; #print("$_\n"); push(@line_array,$_); # 将 阅读全文
posted @ 2020-02-25 21:57 笑着刻印在那一张泛黄 阅读(267) 评论(0) 推荐(0)
摘要: 参考博客:https://blog.csdn.net/ZJRN1027/article/details/80199248 1、计算cost的过程 1)对神经网络的输出(logits)进行softmax,即概率归一化; 2)结合样本的标签labels计算交叉熵cross-entropy,作为loss; 阅读全文
posted @ 2020-02-25 09:27 笑着刻印在那一张泛黄 阅读(589) 评论(0) 推荐(0)