![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
文章平均质量分 78
机器学习
辰阳星宇
这个作者很懒,什么都没留下…
展开
-
【机器学习面试】百面机器学习笔记和问题总结+扩展面试题
第1章 特征工程1、为什么需要对数值类型的特征做归一化?(1)消除量纲,将所有特征统一到一个大致相同的区间范围,使不同指标之间具由可比性;(2)可以加快梯度下降收敛的速度,归一化后让等高线的分布更加均匀,类似于一个圆,减少求解过程中参数寻优的震荡,更加笔直的找到最优解。常用的归一化方式有两种:(1)线性函数归一化(min-max scaling):xnom=X−XminXmax−Xminx_{nom} = \frac{X-X_{min}}{X_{max}-X_{min}}xnom=Xmax原创 2023-03-04 18:56:32 · 3267 阅读 · 0 评论 -
【吴恩达机器学习】Week8 编程作业ex7——K-means聚类和PCA
K-means Clustering1.1 Implementing K-means1.1.1 Finding closest centroidsfindClosestCentroids.mfunction idx = findClosestCentroids(X, centroids)%FINDCLOSESTCENTROIDS computes the centroid memberships for every example% idx = FINDCLOSESTCENTROIDS原创 2022-03-07 11:20:44 · 686 阅读 · 0 评论 -
【吴恩达机器学习】第八周课程精简笔记——无监督学习和降维
Unsupervised Learning1. Clustering(1)Unsupervised learning introduction无监督学习是针对一组无标签数据集,用算法找到一些隐含在数据中的结构。图中显示出,我们可以用算法找出两簇数据。这些簇的算法也称为聚类算法。(2)K-means algorithm在聚类算法中,我们会给定一组未加标签的数据集。同时,我们也希望能够自动地将这些数据分成有紧密关系的子集或簇。(1)先确定要将数据分为几个类别,也就是K的大小,图中示例是将数据分成原创 2022-03-03 13:10:49 · 1033 阅读 · 0 评论 -
【吴恩达机器学习】Week7 编程作业ex6——支持向量机SVM
Support Vector Machines1. Example Dataset1%% Machine Learning Online Class% Exercise 6 | Support Vector Machines%% Instructions% ------------% % This file contains code that helps you get started on the% exercise. You will need to complete th原创 2022-02-27 13:49:25 · 1435 阅读 · 0 评论 -
【吴恩达机器学习】第七周课程精简笔记——支持向量机SVM
Support Vector Machines1. Large Margin Classification(1)Optimization Objective(优化目标)SVM相比于Logistic Regression 有着计算上的优势,并使接下来的优化问题变的更加简单、更容易解决。在SVM中,我们不再用λ\lambdaλ去控制B,而是用参数CCC来控制A,使 CA+BCA+BCA+B 整体达到最小。支持向量机并不会输出一个概率,而是通过一个优化函数得到一个参数,然后使用这个参数来直接预测原创 2022-02-22 23:07:41 · 1159 阅读 · 0 评论 -
【吴恩达机器学习】Week6 编程作业ex5——正则化线性回归与偏差和方差的对比
Regularized Linear Regression and Bias v.s. Variance1. Regularized Linear Regression(1)Visualizing the datasetex5.m%% Machine Learning Online Class% Exercise 5 | Regularized Linear Regression and Bias-Variance%% Instructions% ------------% %原创 2022-02-17 17:38:32 · 829 阅读 · 0 评论 -
【吴恩达机器学习】第六周课程精简笔记——模型评估和机器学习系统设计
Evaluating a Hypothesis1. Evaluating a Learning Algorithm(1) Evaluating a HypothesisOnce we have done some trouble shooting for errors in our predictions by:Getting more training examplesTrying smaller sets of featuresTrying additional featur原创 2022-02-18 10:58:37 · 1286 阅读 · 0 评论 -
【吴恩达机器学习】第五周课程精简笔记——代价函数和反向传播
Cost Function and Backpropagation(代价函数和反向传播)1. Cost FunctionLet’s first define a few variables that we will need to use:L = total number of layers in the networksl = number of units (not counting bias unit) in layer lK = number of output units/classe原创 2022-02-10 19:12:12 · 900 阅读 · 0 评论 -
【吴恩达机器学习】Week4 编程作业ex3——多分类任务和神经网络
Multi-class Classification1. 数据预处理和可视化dispalyData.mfunction [h, display_array] = displayData(X, example_width)%DISPLAYDATA Display 2D data in a nice grid% [h, display_array] = DISPLAYDATA(X, example_width) displays 2D data% stored in X in a nice原创 2022-02-06 19:14:41 · 1488 阅读 · 0 评论 -
【吴恩达机器学习】Week5 编程作业ex4——神经网络学习
Neural Network1. Visualizing the datadisplayData.mfunction [h, display_array] = displayData(X, example_width)%DISPLAYDATA Display 2D data in a nice grid% [h, display_array] = DISPLAYDATA(X, example_width) displays 2D data% stored in X in a nice g原创 2022-02-13 20:00:36 · 1536 阅读 · 0 评论 -
【吴恩达机器学习】第四周课程精简笔记——神经网络
Neural Networks1. Model Representation ILet’s examine how we will represent a hypothesis function using neural networks. At a very simple level, neurons are basically computational units that take inputs (dendrites) as electrical inputs (called “spikes”原创 2022-02-05 11:31:24 · 1834 阅读 · 3 评论 -
【吴恩达机器学习】Week3 编程作业ex2——对数几率回归和正则化
1. 可视化数据plot.mfunction plotData(X, y)%PLOTDATA Plots the data points X and y into a new figure % PLOTDATA(x,y) plots the data points with + for the positive examples% and o for the negative examples. X is assumed to be a Mx2 matrix.% Create New原创 2022-01-27 23:29:14 · 1431 阅读 · 0 评论 -
【吴恩达机器学习】第三周课程精简笔记——对数几率回归和正则化
Logistic Regression(对数几率回归/逻辑回归)Classification and Representation(分类和表示)1. ClassificationTo attempt classification, one method is to use linear regression and map all predictions greater than 0.5 as a 1 and all less than 0.5 as a 0. However, this method原创 2022-01-22 14:24:19 · 1651 阅读 · 0 评论 -
【吴恩达机器学习】Week2 编程作业ex1——线性回归、特征放缩和正规方程
一、初始化%% Initializationclear ; close all; clc二、生成单位矩阵%% ==================== Part 1: Basic Function ====================% Complete warmUpExercise.mfprintf('Running warmUpExercise ... \n');fprintf('5x5 Identity Matrix: \n');warmUpExercise()fprintf原创 2022-01-18 21:06:23 · 701 阅读 · 0 评论 -
【吴恩达机器学习】第二周课程精简笔记——多元线性回归和计算参数分析
Multivariate Linear Regerssion(多元线性回归)(1)Multiple FeatureWe now introduce notation for equations where we can have any number of input variables.xj(i)x^{(i)}_jxj(i):value of feature j in the ith training example.x(i)x^{(i)}x(i):the input(features) of原创 2022-01-16 11:07:31 · 1033 阅读 · 0 评论 -
【吴恩达机器学习】第一周课程精简笔记——基础知识和一元线性回归
Introduction1. What is Machine Learning?(什么是机器学习)Tom Mitchell provides a more modern definition: “A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as原创 2022-01-10 19:35:29 · 912 阅读 · 0 评论 -
【学习资源】西瓜书+南瓜书、李宏毅深度学习、数据可视化
1、吃瓜教程——西瓜书+南瓜熟2、李宏毅深度学习3、数据可视化Matplotlib第33期 Datawhale 组队学习资源转载 2022-01-14 21:28:25 · 446 阅读 · 0 评论