![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习
kewlgrl
好大一只咸鱼哇
展开
-
最近复现代码出现的一些问题
假设我的文件名为s.sh 1. 报错 shell: /bin/sh^M: bad interpreter: No such file or directory 解决 vi s.sh 删除不正常显示的^M字符,然后,esc,:wq,之后在命令行输入 head -1 s.sh | od -c 这是错误的: 0000000 # ! / b i n / ...原创 2020-03-03 12:52:01 · 532 阅读 · 2 评论 -
MatalbR2018a+VS2017+Windows10+CPU 配置MatConvNet
一、安装VS 根据自己Matlab的版本查看适配什么样的VS版本,比如下图中我可以看出我能适用VS2017,所以果断卸载了VS2019…… 根据自己安装的实际情况,添加下面的(修改)路径到系统变量的path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\...原创 2019-06-03 10:01:33 · 2054 阅读 · 4 评论 -
Windows+CPU+Cygwin编译darknet运行yolo3
一、下载darknet (1)https://github.com/pjreddie/darknet 中clone&download (2)https://pjreddie.com/darknet/install/ 在命令行下: git clone https://github.com/pjreddie/darknet.git 二、安装Cygwin https://cyg...原创 2019-05-26 13:49:11 · 2957 阅读 · 9 评论 -
02改善深层神经网络-Optimization+methods-第二周编程作业1
【注意】“opt_utils.py”文件的第73行,最后部分“np.sqrt(2 / layer_dims[l-1]”要写成“np.sqrt(2.0 / layer_dims[l-1]”!!! 因为这个被坑了一晚上QAQ…… 讨论了不同的梯度下降方法:批处理下降和随机梯度下降。 讨论了三种不同的优化方法:Gradient descent、Momentum和Adam。 #...原创 2018-09-21 21:07:25 · 695 阅读 · 0 评论 -
02改善深层神经网络-Gradient+Checking-第一周编程作业3
梯度检查 用于测试反向传播时梯度下降所取到的值是否合理,使用2图的公式计算difference差值是否足够小。 What you should remember from this notebook: Gradient checking verifies closeness between the gradients from backpropagation and the numerica...原创 2018-09-21 13:57:32 · 584 阅读 · 0 评论 -
02改善深层神经网络-Regularization-第一周编程作业2
三层神经网络模型:LINEAR->RELU->LINEAR->RELU->LINEAR->SIGMOID 当网络在训练集上表现得很好,而在测试集上表现不好的时候,我们需要考虑对参数加上正则化项,来增加对权重的惩罚、减少过拟合。 What you should remember -- the implications of L2-regula...原创 2018-09-20 09:16:43 · 419 阅读 · 0 评论 -
02改善深层神经网络-Initialization-第一周编程作业1
分别使用 全零:parameters['W' + str(l)] = np.zeros((layers_dims[l], layers_dims[l-1])) 随机:parameters['W' + str(l)] = np.random.randn(layers_dims[l], layers_dims[l-1]) * 10 “he”:parameters['W' + str(l)] = ...原创 2018-09-18 21:29:08 · 461 阅读 · 0 评论 -
01神经网络和深度学习-Deep Neural Network for Image Classification: Application-第四周编程作业2
一、两层神经网络 模型:LINEAR->RELU->LINEAR->SIGMOID #coding=utf-8 import time import numpy as np import h5py import matplotlib.pyplot as plt import scipy from PIL import Image from scipy import ndim...原创 2018-09-17 20:22:47 · 500 阅读 · 0 评论 -
01神经网络和深度学习-Building your Deep Neural Network: Step by Step-第四周编程作业1
整个模型中使用的(激活)函数的结构如下: [LINEAR -> RELU] × (L-1) -> LINEAR -> SIGMOID 即: 执行L-1次使用Relu激活函数的前向传播,执行一次使用sigmoid激活函数的前向传播; 执行一次使用sigmoid激活函数的后向传播,执行L-1次使用Relu激活函数的后向传播; 使用梯度更新参数。 #coding=...原创 2018-09-17 15:06:14 · 259 阅读 · 0 评论 -
01神经网络和深度学习-Planar data classification with one hidden layer v3-第三周编程作业
分别使用逻辑回归和加了隐藏层的神经网络对花的颜色进行预测。 一、逻辑回归 #coding=utf-8 # Package imports import numpy as np import matplotlib import matplotlib.pyplot as plt from testCases import * import sklearn import sklearn.datas...原创 2018-09-16 17:29:34 · 340 阅读 · 0 评论 -
01神经网络和深度学习-Logistic-Regression-with-a-Neural-Network-mindset-第二周编程作业2
算法大概流程: 1、输入w,b并初始化; 2、反向传播,递归下降,计算dw,db;, 3、利用超参数学习率,迭代计算w,b的值; 4、预测。 import numpy as np import matplotlib.pyplot as plt import h5py import scipy from PIL import Image from scipy import n...原创 2018-08-22 21:43:51 · 409 阅读 · 0 评论 -
01神经网络和深度学习-Python-Basics-With-Numpy-第二周编程作业1
#coding=utf-8 import numpy as np import matplotlib.pyplot as plt import h5py import scipy from PIL import Image from scipy import ndimage from lr_utils import load_dataset def sigmoi...原创 2018-08-22 17:23:04 · 415 阅读 · 0 评论