文章分类 -  machine learning

AI
摘要:Goals In this lab, you will: extend the previous linear and logistic cost functions with a regularization term. rerun the previous example of over-fit 阅读全文
posted @ 2022-11-26 20:55 lycheezhang 阅读(23) 评论(0) 推荐(0) 编辑
摘要:regularize linear Regression how to certify which values are needed to be regularize? $$ simpler\ model\ less\ likely\ to\ overfit\ \ J(\vec{w},b)=\fr 阅读全文
posted @ 2022-11-26 15:25 lycheezhang 阅读(11) 评论(0) 推荐(0) 编辑
摘要:import copy, math import numpy as np %matplotlib widget import matplotlib.pyplot as plt from lab_utils_common import dlc, plot_data, plt_tumor_data, s 阅读全文
posted @ 2022-11-23 23:09 lycheezhang 阅读(18) 评论(0) 推荐(0) 编辑
摘要:training gradient descent we should know that the loss function also has the only global minimum, so we can use the same method to get the proper $\ve 阅读全文
posted @ 2022-11-23 22:01 lycheezhang 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Cost function for logistic regression how to choose w=[w1,w2,w3...wn] and b? squared error cost $J(\vec{w},b)=\frac{1}{m} \sum^{m}{i=1}\f 阅读全文
posted @ 2022-11-23 21:22 lycheezhang 阅读(38) 评论(0) 推荐(0) 编辑
摘要:classification when the y can only be one of two values:"binary classification" class = category false:0 true: 1 one example of binary classification: 阅读全文
posted @ 2022-11-23 11:15 lycheezhang 阅读(98) 评论(0) 推荐(0) 编辑
摘要:Feature scaling Feature and parameter values price^=w1x1+w2x2+b House: x1(size) range:3002000 x2:bedrooms range:05 when 阅读全文
posted @ 2022-11-20 17:13 lycheezhang 阅读(5) 评论(0) 推荐(0) 编辑
摘要:import copy, math import numpy as np import matplotlib.pyplot as plt plt.style.use('./deeplearning.mplstyle') np.set_printoptions(precision=2) # reduc 阅读全文
posted @ 2022-11-20 12:09 lycheezhang 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Multiple linear regression When the situation involve multiple features, we use $$ \begin{align*}\label{2} &x_j = j^{th} feature\ &n = number \ of\ fe 阅读全文
posted @ 2022-11-18 22:24 lycheezhang 阅读(1) 评论(0) 推荐(0) 编辑
摘要:import numpy as np # it is an unofficial standard to use np for numpy import time # NumPy routines which allocate memory and fill arrays with value a 阅读全文
posted @ 2022-11-18 17:29 lycheezhang 阅读(11) 评论(0) 推荐(0) 编辑
摘要:gradient descent import math, copy import numpy as np import matplotlib.pyplot as plt plt.style.use('./deeplearning.mplstyle') from lab_utils_uni impo 阅读全文
posted @ 2022-11-13 17:27 lycheezhang 阅读(161) 评论(0) 推荐(0) 编辑
摘要:Gradiant descent **Have some function J(w,b), want ** minimizew,bJ(w,b) Outline: Start with some w,b (set w =0, b =0) Keep ch 阅读全文
posted @ 2022-11-13 15:23 lycheezhang 阅读(5) 评论(0) 推荐(0) 编辑
摘要:python cost function import numpy as np %matplotlib widget import matplotlib.pyplot as plt from lab_utils_uni import plt_intuition, plt_stationary, pl 阅读全文
posted @ 2022-11-12 16:12 lycheezhang 阅读(166) 评论(0) 推荐(0) 编辑
摘要:Cost function example cost funtion definition: linear regression function: $$ \widehat{y}^{(i)}=f_{w,b}(x^{i})\ f_{w,b}(x^{(i)}) = wx^{(i)}+b\ Cost \ 阅读全文
posted @ 2022-11-12 15:48 lycheezhang 阅读(3) 评论(0) 推荐(0) 编辑
摘要:import numpy as np #NumPy, a popular library for scientific computing import matplotlib.pyplot as plt #Matplotlib, a popular library for plotting data 阅读全文
posted @ 2022-11-12 12:56 lycheezhang 阅读(27) 评论(0) 推荐(0) 编辑
摘要:Linear regression model regression model predicts numbers supervised learning model data has "right answers" Classification model predicts catogories 阅读全文
posted @ 2022-11-12 11:42 lycheezhang 阅读(3) 评论(0) 推荐(0) 编辑
摘要:supervised learning vs unsupervised learning supervised learing input output labelX ————————> YLearns from being given "right answers" this is the exa 阅读全文
posted @ 2022-11-11 23:16 lycheezhang 阅读(6) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示