![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
无限未来16
忆往事,宛如过眼云烟。
展开
-
吴恩达机器学习作业TensorFlow实现(ex3,Mnist分类问题)
1、使用逻辑回归解决Mnist分类# -*- coding: utf-8 -*-"""Created on Thu Jun 13 18:13:08 2019@author: 无限未来"""import tensorflow as tfimport numpy as npimport scipy.io as scioimport random import matplot...原创 2019-06-13 22:14:06 · 368 阅读 · 0 评论 -
吴恩达机器学习作业TensorFlow实现(ex1,线性回归)
# -*- coding: utf-8 -*-import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltplotdata = { "batchsize":[], "loss":[] }def moving_average(a, w=10): if len(a) < w: ...原创 2019-06-10 19:37:00 · 222 阅读 · 0 评论 -
吴恩达机器学习作业TensorFlow实现(ex2,逻辑回归)
1、逻辑回归tips:源数据需要进行归一化(我这里直接/100,因为原始数据范围为0-100) 更换了优化方法,需要一定的训练次数,不然一定几率出现欠拟合# -*- coding: utf-8 -*-"""Created on Mon Jun 10 20:04:03 2019@author: 无限未来"""import tensorflow as tfimport n...原创 2019-06-10 23:23:16 · 319 阅读 · 0 评论 -
吴恩达机器学习作业TensorFlow实现(ex6,Mnist分类问题)
1、线性SVM,检查C对分界线的影响# -*- coding: utf-8 -*-"""Created on Fri Jun 21 16:05:25 2019@author: 无限未来"""import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltfrom scipy.io import...原创 2019-06-21 20:00:55 · 337 阅读 · 0 评论 -
吴恩达机器学习作业python实现(ex7,kmean,PCA)
1、简单kmeanimport numpy as npimport matplotlib.pyplot as pltfrom scipy.io import loadmatfrom ex71_find import findClosestCentroidsfrom ex71_compute import computeClosestCentroidsdata = loadmat...原创 2019-07-06 11:17:16 · 1056 阅读 · 0 评论