自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 python搭建卷积神经网络

吴恩达卷积神经网络编程题一导入模块import numpy as npimport h5pyimport matplotlib.pyplot as plt%matplotlib inlineplt.rcParams['figure.figsize'] = (5.0, 4.0) # set default size of plotsplt.rcParams['image.interpol...

2018-02-28 20:10:24 2449

原创 深层网络实现图像识别

导入模块import timeimport numpy as npimport h5pyimport matplotlib.pyplot as pltimport scipyfrom PIL import Imagefrom scipy import ndimagefrom dnn_app_utils_v3 import *%matplotlib inlineplt.rcPar...

2018-02-28 16:08:05 366

原创 python构建深层神经网络

吴恩达深度学习第四周编程作业导入模块和一些初始化设置import numpy as npimport h5pyimport matplotlib.pyplot as pltfrom testCases_v3 import *from dnn_utils_v2 import sigmoid, sigmoid_backward, relu, relu_backward%matplotlib...

2018-02-27 23:58:43 370

原创 python实现浅层神经网络预测猫狗

吴恩达深度学习第三周编程题导入模块# Package importsimport numpy as npimport matplotlib.pyplot as pltfrom testCases_v2 import *import sklearnimport sklearn.datasetsimport sklearn.linear_modelfrom planar_utils im...

2018-02-27 23:26:31 1754

原创 python实现逻辑回归识别猫的图片

吴恩达深度学习第一周编程作业导入模块- numpy is the fundamental package for scientific computing with Python. - h5py is a common package to interact with a dataset that is stored on an H5 file. - matplotlib is a famous ...

2018-02-20 23:56:20 3115

原创 pygame开发飞机大战外星人游戏

主函数import pygamefrom settings import Settingsfrom ship import Shipimport game_function as gffrom pygame.sprite import Groupfrom alien import Alienfrom game_stats import GameStatsfrom button imp...

2018-02-20 17:11:42 1958 1

原创 C++面向对象类初步实现屏幕类与矩形类

#include<iostream>#include<cstdlib>class Screen{ private: int width; int height; public: int setWidth(int width_); int setHeight(int height_); int getWidth(); ...

2018-02-14 00:20:09 324

原创 机器学习正则化线性回归(调参技巧(matlab))

主函数%% Machine Learning Online Class% Exercise 5 | Regularized Linear Regression and Bias-Variance%% Instructions% ------------% % This file contains code that helps you get started on the% ...

2018-02-12 22:44:58 2700

原创 c语言字符串压缩

总时间限制: 1000ms内存限制: 65536kB描述在数据压缩中,一个常用的途径是行程长度压缩。对于一个待压缩的字符串而言,我们可以依次记录每个字符及重复的次数。这种压缩,对于相邻数据重复较多的情况比较有效。 例如,如果待压缩串为"AAABBBBCBB",则压缩的结果是(A,3)(B,4)(C,1)(B,2)。当然,如果相邻字符重复情况较少,则压缩效率就较低。现要求根据输入的字符串,得到大小写...

2018-02-11 20:42:01 5094

原创 C语言大数加法

C语言实现大数加法,为了简单,开了两个字符串,两个数组,将字符串逆序存入数组,思路简单直接#include<stdio.h>#include<string.h>#define MAX 200using namespace std;int a1[MAX+1];int a2[MAX+1];char s1[MAX+1];char s2[MAX+1];int mai...

2018-02-11 19:45:35 636

原创 一道利用递归实现的集合枚举算法题

有一个集合M是这样生成的: (1) 已知 k 是集合 M 的元素; (2) 如果 y 是 M 的元素,那么, 2y+1 和 3y+1 都是 M 的元素; (3) 除了上述二种情况外,没有别的数能够成为 M 的一个元素。问题:任意给定 k 和 x,请判断 x 是否是 M 的元素。这里的 k是无符号整数,x 不大于 100000, 如果是,则输出YES,否则,输出 NO输入输入整数 k 和 x, 逗号...

2018-02-11 18:14:41 1716

原创 机器学习手写数字识别(神经网络BP算法)

主函数输入400个像素点,10000张图片,三层神经网络,中间25个单元,输出有10个单元%% Machine Learning Online Class - Exercise 4 Neural Network Learning% Instructions% ------------% % This file contains code that helps you get sta...

2018-02-10 13:41:17 356

原创 机器学习逻辑回归神经网络手写数字识别(matlab)

主函数%% Machine Learning Online Class - Exercise 3 | Part 1: One-vs-all% Instructions% ------------%% This file contains code that helps you get started on the% linear exercise. You will need ...

2018-02-09 21:12:48 1432 3

原创 机器学习逻辑回归(matlab)

主函数线性逻辑回归%% Machine Learning Online Class - Exercise 2: Logistic Regression%% Instructions% ------------% % This file contains code that helps you get started on the logistic% regression exe...

2018-02-07 23:46:28 974 1

原创 机器学习线性回归(matlab)

单变量线性回归主函数%% Machine Learning Online Class - Exercise 1: Linear Regression%  Instructions%  ------------%%  This file contains code that helps you get started on the%  linear exercis

2018-02-07 21:51:46 797

原创 Python爬去百度图片表情包

关键是对网页格式的分析import requestsfor m in range(1,3): url='https://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&ct=201326592&is=&fp=result&queryWord=%E8%A1%A8%E6%83%85%E5%8C%85&cl=2&lm=-1&ie=

2018-02-04 20:42:34 657

空空如也

空空如也

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

TA关注的人

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