python
xiaocainiao_nixi
这个作者很懒,什么都没留下…
展开
-
Knn 手写识别
开始自己的学习之旅转载 2017-06-17 05:06:17 · 231 阅读 · 0 评论 -
Maschine learning #4
import numpy as np#step 1 Collect Datax = np.array([[0,0,1], [0,1,1], [1,0,1], [1,1,1]])print(x) #x value and y valuey = n转载 2017-09-10 00:24:12 · 296 阅读 · 0 评论 -
data preprosessing
import pandas as pd#read the valuesnewdata = pd.read_csv('annotations_final.csv',sep="\t")# show the headnewdata.head(5)#show infonewdata.info()newdata.columns#concate转载 2017-09-10 04:47:47 · 276 阅读 · 0 评论 -
pca learning #5
1.import numpy as npx = np.array([[-1,-1,-1],[-2,-1,-1.5],[-3,-2,-2]])x#normalize the datax_scaled = np.array(list(map(lambda y:(y-np.mean(y))/np.std(y),x.T))).Tx_scaled#Get th转载 2017-09-11 05:22:39 · 251 阅读 · 0 评论