- 博客(8)
- 资源 (3)
- 收藏
- 关注
原创 <machine_learning>_Regression
from numpy import * #filename=data+label #thinking about the method on your own! #recite: pay attention to the position of h def load_data(filename): f=open(filename,'r') data=[];label=[
2017-08-10 10:49:43
311
原创 <machine learning traning> KNN
func: open().readline.strip().split('\t');zeros,index+=1 #func:add_subplot,scatter func: min(0),tile from numpy import * import operator def createDataSet(): group=array([[1.0,1.1],[1.0,1.
2017-07-21 11:11:47
323
原创 整型数组(一)
Remove Element Given an array and a value, remove all occurrences of that value in place and return the new length.The order of elements can be changed, and the elements after the new length do
2017-07-14 21:05:37
2096
原创 leetcode traning_string(2)
Reverse Words in a String Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". def reverse(s): if s is None:
2017-07-13 18:37:10
261
原创 leetcode training_string(1)
STR 1. problem description:For a given source string and a target string, you should output the first index(from 0) of target string in source string. If target does not exist in source, just return
2017-07-13 08:33:37
322
原创 linux common commands
#创建一个名为文件,touch是一个命令 touch file #进入一个目录,cd是一个命令 cd /etc/ #查看当前所在目录 pwd 1) 重要快捷键:[Tab] 使用Tab键来进行命令补全 2) 学会使用通配符 touch adsfasd.txt wergjlkas.txt ls *.txt Shell 常用通配符:字符含义*匹配 0 或多个字符?匹配任意一个字符[
2017-07-12 10:06:30
667
原创 time read out
====continue updating Here I note the error I have encountered and the solving methods. 1.IOE error permission denied:add "sudo" to the front of the code. eg. sudo pip install pandas 2.read tim
2017-07-12 09:06:15
429
原创 ubuntu Windows
1、Ubuntu 16.04 的 ISO文件 2、UltraISO 3、U盘一个(至少2G) 1.磁盘分区 【win+r】——【diskmgmt.msc】——选择一个剩余空间足够大的磁盘,右键->压缩卷 磁盘压缩完成之后就可以看到D盘后面出现了一块黑色的30G的未分配空间, 这样,磁盘分区工作就完成了。 2.BI
2017-07-11 11:55:36
237
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人