- 博客(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 hdef load_data(filename): f=open(filename,'r') data=[];label=[
2017-08-10 10:49:43
261
原创 <machine learning traning> KNN
func: open().readline.strip().split('\t');zeros,index+=1#func:add_subplot,scatterfunc: min(0),tilefrom numpy import *import operatordef createDataSet(): group=array([[1.0,1.1],[1.0,1.
2017-07-21 11:11:47
278
原创 整型数组(一)
Remove ElementGiven an array and a value, remove all occurrencesof that value in placeand return thenew length.The order of elements can be changed, and the elements after thenew length do
2017-07-14 21:05:37
2034
原创 leetcode traning_string(2)
Reverse Words in a StringGiven 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
226
原创 leetcode training_string(1)
STR1. problem description:For a given source string and a target string, you should output thefirst index(from 0) of target string in source string. If target does not exist in source, just return
2017-07-13 08:33:37
240
原创 linux common commands
#创建一个名为文件,touch是一个命令touch file #进入一个目录,cd是一个命令cd /etc/#查看当前所在目录pwd1) 重要快捷键:[Tab] 使用Tab键来进行命令补全2)学会使用通配符touch adsfasd.txt wergjlkas.txtls *.txtShell 常用通配符:字符含义*匹配 0 或多个字符?匹配任意一个字符[
2017-07-12 10:06:30
607
原创 time read out
====continue updatingHere 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 pandas2.read tim
2017-07-12 09:06:15
357
原创 ubuntu Windows
1、Ubuntu 16.04 的 ISO文件2、UltraISO3、U盘一个(至少2G)1.磁盘分区【win+r】——【diskmgmt.msc】——选择一个剩余空间足够大的磁盘,右键->压缩卷磁盘压缩完成之后就可以看到D盘后面出现了一块黑色的30G的未分配空间,这样,磁盘分区工作就完成了。2.BI
2017-07-11 11:55:36
195
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人