- 博客(8)
- 收藏
- 关注
原创 python numpy的学习
0.引入numpyimport numpy as np1. 将list变成npa = [[1,2,3],[4,5,6]]b = np.array(a) #将list变成arraya.shape #(2,3) 2行3列a.shape[0] #2 获取行数a.shape[1] #3 获取列数...
2019-07-01 14:04:15 187
原创 Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
遇见这个提示是什么意思?背景:今天安装的tensorflow是cpu版本的 在写了一个小小的demo后 出现了一个提示: 2018-10-15 16:14:02.486398: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this Te...
2018-10-15 16:23:26 226
原创 求解和为n的连续数组范围
public class SequenceSum { public static List<int[]> findsum(int n){ List<int[]> result = new ArrayList<int[]> (); int mid = (n+1)/2; int small = 1; int big = 2; int cur...
2018-08-19 09:25:02 367
原创 mac升级pip报错There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION]
起因:安装fasttext(sudo pip install fasttext)报错:There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] 解释:证书有问题 解决:sudo curl https://bootstrap.pypa.io/get-pip.py | py...
2018-08-02 00:20:31 1698
原创 tensorflow与tflearn的安装时numpy无法更新问题
对于老司机来说,这都不是事,但对于初学者来说,在安装看到python里import tflearn,在安装tensorflow还真遇到了问题电脑:macpython版本2.7直接运行 sudo pip install tensorflow最终安装过程中,出现报错,基本意思是:你有了numpy1.8.0现在没法安装numpy1.12.x于是想到了sudo pip install ...
2017-03-01 11:56:14 6211
原创 链表中环的入口点Java
class LinkedNode{int val;LinkedNode next;}public class T56 {//找到环内任意点private LinkedNode meetNode(LinkedNodehead){if(head==null)returnnull;LinkedNode slow=head
2016-05-16 17:03:21 732
原创 mac下安装maven的步骤
Mac下安装maven的步骤:1.下载maven2.放到制定的目录3.打开终端命令行输入:vi ~/.bash_profile接下来会跳到一个编译界面,如果发现输入不进去,不要慌,按i或a键,进入编辑模式,exportMAVEN_HOME=/Users/jennyyao/documents/apache-maven-3.3.9export PATH=$PATH:$MAV
2016-05-10 10:11:16 679
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人