- 博客(5)
- 收藏
- 关注
原创 BGD+交叉熵实现二分类,数据和题目来自CS229监督学习的课后题
#coding=utf-8#CS229 BGD+LRimport numpy as npimport pandas as pdimport mathdef sigmoid(x): return 1.0/(1+np.exp(-x))def CrossEntropy(w0,x,y): predict_error=np.sum(w0 * x.T,axis=1) y...
2019-11-28 21:27:58
179
原创 Linux openssl降版本排坑
Linux openssl修改版本,一定不要相信网上说的rm -f /etc/ssl,这样直接搞掉了所有证书,虚拟机彻底崩盘,我一直不明白那些转载博客说亲测的是一种什么心态。。。...
2019-11-26 10:42:16
2985
1
原创 解决ValueError: Cannot feed value of shape (1,) for Tensor 'Placeholder_1:0', which has shape '(?, 1)'
我的问题出现在如下代码段:feed_dict = {model.user_input: user_input[i], model.item_input_pos: item_input_pos[i], model.item_input_neg: item_input_neg[i]}if output_adv: loss, outpu...
2019-04-02 10:49:20
15235
3
原创 Python3在函数中调用pool.map函数global变量无法完成修改
Python3在函数中调用pool.map函数global变量无法完成修改,如图,用python3运行APR算法出现的问题,py2.7没问题:
2019-03-21 09:04:28
1449
7
转载 (转载链接)小白学习马尔科夫链
https://blog.csdn.net/bitcarmanlee/article/details/82819860
2019-02-25 14:57:04
180
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人