Kiri Blog

全てはシュタインズゲートの选択だ!
MathJax TeX Test Page

【转】Git Version Management Tool

Git

(1)ubuntu系统 可以直接使用"sudo apt-get install git"进行git的安装,非常简单方便 (2)配置git用户名和邮箱 git config --global user.name "Your Name" git config --global user.email "Your Email" (3)使用git clone url ...

【转】Ubuntu下设置Shadowsocks的非全局代理(PAC自动代理)

Shadowsocks, PAC

1、Ubuntu安装shadowsocks sudo add-apt-repository ppa:hzwhuang/ss-qt5 sudo apt-get update sudo apt-get install shadowsocks-qt5 安装好shadowsocks-qt5之后,配置搭建好的服务器的相关信息, 如图: 2、Ubuntu下设置Shadowsocks的非全局代理(P...

【转】Machine Learning from Disaster of Titanic

Random Forest, AdaBoost, Gradient Boosting, ExtraTrees, SVM, Cross Validation

Titanic: Machine Learning from Disaster RMS泰坦尼克号的沉没是历史上最臭名昭着的沉船之一。 1912年4月15日,泰坦尼亚号在首次航行中,与冰山相撞后沉没,在2224名乘客和船员中造成1502人死亡。 这场耸人听闻的悲剧震惊了国际社会,并为船舶制定了更好的安全规定。 造成这样的生命损失的原因之一是乘客和船员没有足够的救生艇。 虽然在沉船事件幸存有...

【转】Machine Learning Algorithm

Gradient Descent, Logistic Regression, Naive Bayes, SVM

1. Gradient Descent Algorithm where $x_k$ ,denotes the vector of scores for all the pixels for the class $k \in { 1, \cdots, L }$. The per-class unaries are denoted by $b_k$ , and the pairwise t...

【转】Convolutional Neural Network in MINIST Project

Convolutional Neural Network

MINIST Project - Kaggle Competition Author: Xie Zhong-zhao import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.cm as cm import tensorflow as tf ''' 设置变量的值 ''...

【转】Skills of debugging model

特征提升,模型正则化,模型检验,超参数搜索

Skills of debugging model Author: Xie Zhong-zhao 1. 特征提升 1.1 Feature Extraction from sklearn.feature_extraction import DictVectorizer ''' 举个栗子,使用DictVectorizer对特征进行抽取和向量化 ''' measurements = [{...

【转】Unsupervised Learning

Reducing Dimension

Unsupervised Learning Model-Reducing Dimension Author: Xie Zhong-zhao 1. PCA import numpy as np #初始化一个2*2的线性相关矩阵 M = np.array([[1,2],[2,4]]) #计算2*2线性相关矩阵的秩 print(np.linalg.matrix_rank(M,tol=Non...

【转】Unsupervised Learning

Dada Clustering

Unsupervised Learning Model-Dada Clustering 1. Data Clustering #导入数学运算,作图以及数据分析 import numpy as np import matplotlib.pyplot as plt import pandas as pd ''' K-means算法在手写体数字图像数据上的使用示例 ''' #使用panda...

【转】Supervised Learning Model

Classification Learning

Supervised Learning Model-Classification Learning Author: Xie Zhong-zhao 1. Logisitic Regression #导入pandas与numpy工具包 import pandas as pd import numpy as np #创建特征列表 column_names = ['sample code nu...

【转】Supervised Learning Model

Regression Prediction

Supervised Learning Model-Regression Prediction Author: Xie Zhong-zhao 1. Linear Regression #从sklearn.datasets导入波士顿房价数据读取器 from sklearn.datasets import load_boston #读取房价数据到存储变量boston中 boston = l...