自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 【温故而知新】PCA

给定数据集:,其中 , 样本均值和样本方差的矩阵表达 样本均值: , 这里记 样本方差: ...

2020-02-10 01:22:00 392

原创 【温故而知新】高斯判别分析(Gaussian Discriminant Analysis)

给定数据集; 概率判别模型是直接去求,如下: 高斯判别分析是一种概率生成模型,这里我们需要最大化后验概率估计,对于二分类,高斯判别分析并不是直接去求和的值,而是去比较与的大小关系,而是对联合概率进行建模;由贝叶斯公式可知, 此处,与无关,所以正比于,其中,是posterior,是likehood,是piror。 GDA假...

2020-02-05 22:41:42 736

原创 【温故而知新】线性判别分析(Linear Discriminant Analysis)

线性判别分析(Linear Discriminant Analysis, LDA)是一种经典的线性分类方法。 LDA的基本思想:给定训练数据集,设法将样本投影到一条直线上,使得同类样本的投影点尽可能的接近,不同类样本的投影点尽可能远离;在对新来样本进行分类时,首先将其投影到直线上,再根据投影点的位置来判断样本所属的类别。即:类内小,类间大("高内聚,松耦合") 给定数据集,在这里我们将记为...

2020-02-04 21:33:37 846

原创 【温故而知新】线性回归(Linear Regression)

本文主要以下几个角度来讲解线性回归: 最小二乘法LSE(矩阵表达,几何意义) 概率角度:最小二乘法LSE——noise为Gaussian MLE 正则化: L1——Lasso L2——Ridge 正则化的几何解释 最小二乘法 定义为:通过给定样本数据集, , ,试图学习到这样的一个模型,使得对于任意的输入特征向量,模型的预测输出能够表示为输入特征向量的线性函数,即满足: ...

2020-02-04 00:13:41 934

原创 [LeetCode 解题报告]155. Min Stack

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. top() -- Ge...

2020-02-01 17:00:24 180

原创 [LeetCode 解题报告]154. Find Minimum in Rotated Sorted Array II

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7]might become [4,5,6,7,0,1,2]). Find the minimum element. The array may contai...

2020-02-01 16:53:29 156

原创 [LeetCode 解题报告]153. Find Minimum in Rotated Sorted Array

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7]might become [4,5,6,7,0,1,2]). Find the minimum element. You may assume no du...

2020-02-01 16:28:34 149

原创 [LeetCode 解题报告]152. Maximum Product Subarray

Given an integer arraynums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: Input: [2,3,-2,4] Output: 6 Explanation:[2,3] ...

2020-02-01 16:09:35 133

原创 [LeetCode 解题报告]151. Reverse Words in a String

Given an input string, reverse the string word by word. Example 1: Input: "the sky is blue" Output:"blue is sky the" Example 2: Input: " hello world! " Output:"world! hello" Explanation: ...

2020-02-01 14:28:56 148

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除