theano records
来源:互联网 发布:java获取11位时间轴 编辑:程序博客网 时间:2024/06/08 15:52
- theano.tensor.nnet.nnet.binary_crossentropy(output, target)
计算如下的公式:
公式中t对应target且只能从0和1里取值,o代表output。
T.arange
-T.mean(T.log(self.p_y_given_x)[T.arange(y.shape[0]), y])
self.p_y_given_x :二维矩阵,每行代表一个样本;
y :向量
T.arange(L) 得到 [0,1…,L-1]
所以[T.arange(y.shape[0]), y]) 相当于[[0, 1…, L-1], [ y[0], y[1]…, y[L-1] ]]
阅读全文
0 0
- theano records
- Records
- Records
- theano
- Theano
- theano
- Theano
- moss records
- Audit Records
- some records
- temp records
- records.config
- Bug records
- S-Records & Intel-HEX
- USA English Words Records.
- Super PI Records
- DBA_OUTSTANDING_ALERT records alerts
- About Audit Records
- GPML toolbox -- document
- const知识点总结
- Flash与文件系统
- HDU-5980-水题-二进制转换
- hashSet判断是否是同一对象
- theano records
- RAC重启遭遇ORA-01078、ORA-01565、ORA-17503、ORA-12547错误
- windows下GitHub的SSH
- C++链表类模板
- 前台参数杂乱,后台如何接收数据
- TabActivity简介及实例使用
- 设计模式——分析与感悟
- 【怎样写代码】小技巧 -- 关于方法中修饰形参的关键词
- Composer Update或Install速度慢的解决方案