<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[u013587021的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/u013587021</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; u013587021]]></copyright><item><title><![CDATA[keras安装失败，scipy无法安装]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/70670173</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/70670173</guid><author>u013587021</author><pubDate>Tue, 25 Apr 2017 09:10:16 +0800</pubDate><description><![CDATA[在装keras的时候，提示scipy无法建立，解决方法如下： 
1.卸载已有的scipy：pip uninstall scipy 
2.从官方网站下载whl文件，重新安装：pip install *.whl 
3.重新安装keras：pip install keras -U –pre切换keras后端：theano or tensorflow 
找到keras的配置文件，我的路径是C:\Users\]]></description><category></category></item><item><title><![CDATA[最长回文子串——Manacher算法]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/56847908</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/56847908</guid><author>u013587021</author><pubDate>Fri, 24 Feb 2017 18:36:07 +0800</pubDate><description><![CDATA[1.对于最长回文字串问题，最简洁暴力的方式就是：找到所有的子串，判断是否为回文子串，记录回文子串长度，选最长的。但是这种解法的时间复杂度是O(n3)O(n3)O(n^3)。 
2.Manacher算法 
对于所有的回文子串，都有同样的性质，那就是对称，长度为奇数的回文子串，以中间字符为对称轴左右对称，长度为偶数的回文子串，对称轴是中间俩字符的空隙。Manacher算法之所以能提高效率，最主要的原因就]]></description><category></category></item><item><title><![CDATA[协同过滤算法]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/56481749</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/56481749</guid><author>u013587021</author><pubDate>Wed, 22 Feb 2017 11:26:28 +0800</pubDate><description><![CDATA[转自:http://www.cnblogs.com/gufeiyang      


        一个人想看电影的时候常常会思考要看什么电影呢。这个时候他可能会问周围爱好的人求推荐。现在社会每天都会产生海量的信息。面对这么多信息好多人都不知道什么信息是自己需要的。推荐系统正是起了这么一个作用。推荐系统的应用随处可见。网络购物是一个典型的例子，电子商务的运营商往往会根据用户在网站的行为推]]></description><category></category></item><item><title><![CDATA[leetcode_reverse Integer]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/54744179</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/54744179</guid><author>u013587021</author><pubDate>Thu, 26 Jan 2017 15:04:24 +0800</pubDate><description><![CDATA[leetcode第七题，做了很长世间才想起来没写这个。难度easy。 
示例如下：
Example1: x = 123, return 321
Example2: x = -123, return -321
题目有个陷阱就是需要考虑到翻转之后越界的问题，因此这个判断是不可避免的。在很多与整数有关的题目中，需要考虑到越界问题，如果跟指针有关，还需要考虑空指针的问题，如果跟字符串有关，则需要考虑到空字符]]></description><category></category></item><item><title><![CDATA[cannot open TrueType font file for reading错误解决方法［ubuntu］]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/52904765</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/52904765</guid><author>u013587021</author><pubDate>Sun, 23 Oct 2016 21:36:17 +0800</pubDate><description><![CDATA[由于ubuntu在安装了latex过程中缺乏中文字体，我们还需要手动配置中文字体，具体配置方法如下．1.下载gbkfonts程序，将它复制(移动)到/usr/bin下，并改权限为可执行。sudo cp gbkfonts /usr/bincd /usr/bin/
sudo chmod 777 gbkfonts或者下载gbkfonts的压缩包，解压后执行gbkfonts的执行文件．在装完gbkfonts]]></description><category></category></item><item><title><![CDATA[Windows中为Latex添加.sty文件和.cls文件]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/52903785</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/52903785</guid><author>u013587021</author><pubDate>Sun, 23 Oct 2016 19:21:42 +0800</pubDate><description><![CDATA[1、下载.sty文件/.cls文件2、找到Ctex安装路径中存放.sty文件/.cls文件的地方 
一般是在CTEX\MiKTeX\tex\latex文件夹中，每一个.sty文件/.cls文件都存放在与其同名的文件夹中。所以我们要先新建同名文件夹，然后将第一步存放的.sty文件/.cls文件置于该同名文件夹下。3、在Ctex中更新数据包 
选择miktex options，如下图所示 
 
然后选择]]></description><category></category></item><item><title><![CDATA[机器学习/数据挖掘——kNN分类器]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/52881936</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/52881936</guid><author>u013587021</author><pubDate>Fri, 21 Oct 2016 11:57:25 +0800</pubDate><description><![CDATA[以kaggle练习赛digit recognizer为例1.kNN算法步骤输入：训练数据集
$T={(x_{1},label_{1}),(x_{2},label_{2}),(x_{3},label_{3}),...,(x_{n},label_{n})}$
其中，$x_{i}$为实例的特征向量，$label_{i}$为实例的类别
输出：实例$x$的类别label]]></description><category></category></item><item><title><![CDATA[Python标准库——collections模块的Counter类]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/52869235</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/52869235</guid><author>u013587021</author><pubDate>Thu, 20 Oct 2016 09:52:59 +0800</pubDate><description><![CDATA[1.collections模块collections模块自Python 2.4版本开始被引入，包含了dict、set、list、tuple以外的一些特殊的容器类型，分别是：OrderedDict类：排序字典，是字典的子类。引入自2.7。 
namedtuple()函数：命名元组，是一个工厂函数。引入自2.6。 
Counter类：为hashable对象计数，是字典的子类。引入自2.7。 
deque]]></description><category></category></item><item><title><![CDATA[ubuntu下安装ipython notebook]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/52850143</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/52850143</guid><author>u013587021</author><pubDate>Tue, 18 Oct 2016 16:34:00 +0800</pubDate><description><![CDATA[1.安装pipsudo apt-get install python-pip2.安装ipythonsudo apt-get install ipython3.安装ipython  notebooksudo apt-get install ipython-notebook4.启动ipython notebookipython notebook]]></description><category></category></item><item><title><![CDATA[leetcode_Longest Substring Without Repeating Characters]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/52736039</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/52736039</guid><author>u013587021</author><pubDate>Tue, 04 Oct 2016 23:16:04 +0800</pubDate><description><![CDATA[这道题是leetcode第三题，leetcode把它分到了medium的难度，题目如下： 
Given a string, find the length of the longest substring without repeating characters.Examples: 
Given “abcabcbb”, the answer is “abc”, which the length is]]></description><category></category></item><item><title><![CDATA[leetcode_add two nums]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/52717770</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/52717770</guid><author>u013587021</author><pubDate>Sat, 01 Oct 2016 16:07:17 +0800</pubDate><description><![CDATA[这是leetcode第二题，属于medium难度，题目如下：You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two nu]]></description><category></category></item><item><title><![CDATA[leetcode_two sum]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/52704474</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/52704474</guid><author>u013587021</author><pubDate>Thu, 29 Sep 2016 19:19:19 +0800</pubDate><description><![CDATA[这是leetcode第一道题目，属于easy类型。题目的实例内容是：Given nums = [2,7,11,15], target = 9,
Beacause nums[0]+nums[1] = 9
return [0,1]这道题用到的主要算法步骤如下： 1. 将数组按照从小到大的顺序排序
 2. 同时从数组num两端开始扫描（序号分别为i，j）
 3. 判断num[i]+num[j]是否等于ta]]></description><category></category></item><item><title><![CDATA[MySQL使用float查询为空]]></title><link>https://blog.youkuaiyun.com/u013587021/article/details/50956292</link><guid>https://blog.youkuaiyun.com/u013587021/article/details/50956292</guid><author>u013587021</author><pubDate>Tue, 22 Mar 2016 16:34:45 +0800</pubDate><description><![CDATA[1.问题 
表A某字段类型为float类型，当根据该字段的值进行精确查询时，按照SQL惯用语句查询如下：select * from abalone  
where sex = 2 and length = 0.27
我们会发现，虽然数据库中存在此值，但是查询结果为空。2.解决办法 
根据网上查到的办法：使用like进行查询select * from abalone 
where sex = 2 an]]></description><category></category></item></channel></rss>