Bei's Blog 
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于
  • 笔记本
  • 友链
  • 添加友链
  •     

搭建HDFS开发环境

原料: macOS Mojave Eclipse Hadoop插件 将下载的 jar 包放到 eclipse 的 Contents/Eclipse/dropins/ 目录下, 重启 eclipse 扩展阅读Hadoop分布式集群
 2018-11-15   Hadoop    hadoop  eclipse 

DecisionTree

决策树1. 决策树原理2. 最优划分属性纯度(不纯度)常用度量指标包括: 信息增益(information gain ), 增益率(gain ratio), 基尼指数(Gini index)} 分别对应了三种决策树算法: 信息增益:ID3, 增益率:C4.5, 基尼指数:CART 信息熵学习信息增益,首先要了解什么是信息熵,假定当 前样本集合𝐷中第𝑘类样本所占的比例为 \(p_k (k = 1,2,..,|y|)\) ,则𝐷的信息熵定义为: Ent(D) = -\sum_{k=1}^{|Y|}p_klog_2p_k信息熵越小,则𝐷的纯度越高,信息熵越大,包含的 信息越大,不纯度
 2018-11-14   MachineLearning  Models    ML  LinearRegression 

LogisticRegression

逻辑回归(对数几率回归)1. 逻辑回归原理\(Cost = -ylog(h(x))-(1-y)log(1-h(x))\) 离散变量的处理 One-hot、 Label-encoding、 get_dummies One-hot: sklearn.preprocessing. OneHotEncoder Label-encoding: sklearn.preprocessing. LabelEncoder Get_dummies: pandas.get_dummies 2. 模型评价混淆矩阵 这儿FP为一类错误,FN为二类错误 3. 不平衡集问题4. 解决多分类问题1. OneVsAll/
 2018-11-14   MachineLearning  Models    ML  LinearRegression 

LinearRegression

线性回归1. 一元线性回归模型\(y = wx + b\)最小化均方误差:\(min\sum{i=0}^m(y_i-y_i^-)\)均方误差:\(MSE=\frac{1}{m}\sum{i=0}^m(yi-y_i^-)\)均方根误差:\(RMSE = \sqrt{MSE}\)回归平方和:\(SSR = \sum(y_i^--Y)^2\)(设样本平均值为Y)残差平方和:\(SSE = \sum(y_i-y_i^-)^2\)总平方和:\(SSt = \sum{i=0}^m(y_i-Y)\) 𝑅平方表示模型的解释能力,但大小受自变量个数𝑝的影响,随着自变量越多, 𝑅平方只会增加不会减少。调整后
 2018-11-14   MachineLearning  Models    ML  LinearRegression 

chapter13. SVM

SVM support vector machine1. 支持向量机的数学定义 2. Large Margin 当C较小时,SVM会适当地忽略一些噪点 3.the mathematics behind large margin classification 4. kernels1 5. kernels2Gaussian kernel在有核SVM中,测试点到每一个被当做landmark的样本点的高斯kernel特征都会当做参数,所以有多少landmark,就会有多少个 \(\theta\),故此时 m=n 。 \(\sum_j\theta_j^2 = \theta^T\theta\) 改成
 2018-11-14   MachineLearning  MLbyAndrewNg   

python函数的参数类型

函数的参数默认参数def enroll(name, gender, age=6, city='Beijing'): print('name:', name) print('gender:', gender) print('age:', age) print('city:', city) !定义默认参数要牢记一点:默认参数必须指向不变对象! def add_end(L=None): if L is None: L = [] L.append('E
 2018-11-14   Notebook  Python    python 

1.Softmax

Softmax 回归 在logistic regression 中,我们的训练集由 m 个已标记的样本构成:\(((x^{(1)},y^{(1)}),(x^{(2)},y^{(2)}…(x^{(m)},y^{(m)}))\) 输入特征 \(x^{(i)}\)其中输入特征 \(x^{(i)}\in Re^{n+i}\)\(x0 = 1\) 截距项对于二分类问题, \(y{(i)}\in (0,1)\)假设函数如下\(H\\theta(x) = \frac{1}{1+exp(-\theta^Tx)}\)我们将训练参数 \(\theta\),使其能够最小化代价函数: J(\theta = -\fra
 2018-11-13   MachineLearning  Concepts    softmax  MachineLearning 

Chapter12-MachineLearningSystemDesign

1.Priori3zing what to work on: Spam classifica3on example2.Error analysis3. Error metrics for skewed classes对于二分类问题 avtual class 1 0 predict 1 True Positive Flase positive class 0 Flase negative True negative precision(查准率)= TruePositives/#predictPositives=TruePositive/TruePositi
 2018-11-12   MachineLearning  MLbyAndrewNg   

Learn ML/DL

ML/DL 学习资料课程: 吴恩达系列 CS299-斯坦福大学公开课 :机器学习课程 -by 吴恩达(网易公开课): Stanford的公开课,网易云课堂有2008年的课件和讲义 课程主页 讲义链接 学习笔记 麻省理工学院公开课:算法导论,大名鼎鼎的MIT算法导论公开课,虽然不是ML/DL方向,但是基础算法还是要会的,毕竟算法工程师首先是工程师,课程较难,很多名校本科上过这门课,大部分没有上过,还是有必要抽空看看的 CS231N,stanford公开课之二,李飞飞的cv实验室出品,讲师是大名鼎鼎的Justin Johnson,虽然是讲CV,但对DeepLearning的基础也讲的非常详细,cs
 2018-11-11   MachineLearning  Logs    ML  tips 

tensorflow.js-01-gettingStarted

$ mkdir tfjs01 $ cd tfjs01 $ npm init -y $ npm install -g parcel-bundler $ touch index.html index.js $ npm install bootstrap //index.js import * as tf from '@tensorflow/tfjs'; import 'bootstrap/dist/css/bootstrap.css'; // Define a machine learning model for linear regression const m
 2018-11-10   MachineLearning  Tensorflow.js    tf.js 
1…10111213

搜索

Hexo Fluid
总访问量 次 总访客数 人