自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Britesun的博客

Walk by faith ,not by sight.

  • 博客(32)
  • 收藏
  • 关注

原创 [LeetCode] Predict the Winner 预测赢家

题目Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so on. Each time a player pic...

2018-08-30 11:18:35 294

转载 神经网络训练中的Tricks之高效BP(反向传播算法)

神经网络训练中的Tricks之高效BP(反向传播算法)         ...

2018-08-29 16:39:02 624

转载 MIT最新算法,双向传播比BP快25倍深度学习

MIT最新算法,双向传播比BP快25倍深度学习 ...

2018-08-29 15:26:33 691

原创 [LeetCode] Shopping Offers 购物优惠

题目In LeetCode Store, there are some kinds of items to sell. Each item has a price.However, there are some special offers, and a special offer consists of one or more different kinds of items with ...

2018-08-29 14:56:18 530

转载 BP算法与公式推导

BP算法与公式推导 ...

2018-08-27 17:00:15 1485

转载 深度学习笔记1(卷积神经网络)

...

2018-08-27 16:58:11 486

转载 梯度下降算法分类总结

梯度下降算法分类总结 引言  梯度下降法 (Gradient Descent Algorithm,GD) 是为目标函数J(θ),如代价函数(cost function), 求解全局最小值(Global Minimum)的一种迭代算法。为什么...

2018-08-27 15:41:23 7123 1

转载 BP神经网络模型及梯度下降法

BP神经网络模型及梯度下降法BP(Back Propagation)网络是1985年由Rumelhart和McCelland为首的科学家小组提出,是一种按误差逆传播算法训练的多层前馈网络,是目前应用最广泛的神经网络模型之一。BP网络能学习和存贮大量的输入-输出模式映射关系,而无需事...

2018-08-27 15:38:02 6726 1

原创 [LeetCode] Integer Break 整数拆分

题目Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get.For example, given n = 2, r...

2018-08-27 09:51:48 135

转载 Keras学习笔记:Chapter2-初探Keras模型

Keras学习笔记:Chapter2-初探Keras模型 Sequential模型就是简单的“线性”堆叠,一层接着一层的连接,可通过.add()方法将一个一个层添加至模型,例: network = Sequential() network.add(Den...

2018-08-26 21:42:17 438

转载 Keras学习笔记:Chapter1-Keras入门

KerasKeras是一个高层神经网络库。Keras是由Python编写而成的,后端实现是基于Tensorflow,CNTK或Theano(Keras是一个库,可以理解为一个基于多种不同机器学习库提供相同api的库)。Keras发展的要义是:将想法快速转换实验成果,(类似Python的理念:人生苦短,我用Python),正因为这样,Keras很适合做研究使用。如果你对深度学习...

2018-08-26 21:40:03 182

原创 [LeetCode] Maximum Length of Pair Chain 链对的最大长度[DP解法]

题目You are given n pairs of numbers. In every pair, the first number is always smaller than the second number.Now, we define a pair (c, d) can follow another pair (a, b) if and only if b < c. Ch...

2018-08-26 10:15:19 221

原创 [LeetCode] Minimum ASCII Delete Sum for Two Strings 两个字符串的最小ASCII删除和

题目Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal.Example 1: Input: s1 = “sea”, s2 = “eat” Output: 231 Explanation: Deleting “s” from “sea” a...

2018-08-25 11:31:40 114

转载 Keras学习| ImageDataGenerator的参数

转载自 [https://blog.csdn.net/jacke121/article/details/79245732](https://blog.csdn.net/jacke121/article/details/79245732) Keras ImageDataGenerator的参数 ...

2018-08-24 21:06:10 3090

原创 random.randint和numpy.random.randint

random.randint()的函数原型为:random.randint(a, b),用于生成一个指定范围内的整数。其中参数a是下限,参数b是上限,生成的随机数n: a <= n <= bnumpy.random.randint()的函数原型为:numpy.random.randint(low,high=None,size=None,dtype) 生成在半开半闭区间[low,hi...

2018-08-24 20:59:01 299

原创 混淆矩阵

混淆矩阵的作用:1)用于观察模型在各个类别上的表现,可以计算模型对应各个类别的准确率,召回率;2)通过混淆矩阵可以观察到类别直接哪些不容易区分,比如A类别中有多少被分到了B类别,这样可以有针对性的设计特征等,使得类别更有区分性; 简单来说就是看看有多少错判的.以上面图片为例: 上面是一个4分类的问题,类别分别为正常,色情,广告,违禁。以正常类别为例进行解释: 总的样本数目:列...

2018-08-24 19:18:50 5222

原创 Keras学习︱训练时显存out of memory的解决办法——fit_generator函数

keras默认情况下用fit方法载数据,就是全部载入。换用fit_generator方法就会以自己手写的方法用yield逐块装入 问题分析:fit()函数训练时,将全部训练集载入显存之后,才开始分批训练。显然很容易就超出了12G 解决办法:用fit_generator函数进行训练fit_generator函数将训练集分批载入显存,但需要自定义其第一个参数——generator函数,从而分批...

2018-08-24 16:59:39 3120

原创 [Leetcode Longest Palindromic Substring 最长回文子串

Palindromic Substrings 回文子串Given a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or end indexes are counted as different ...

2018-08-24 15:06:13 117

原创 [LeetCode] Sort Colors 颜色排序

题目Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the integer...

2018-08-23 10:29:51 113

原创 [LeetCode] Largest Rectangle in Histogram 直方图中最大的矩形

题目  Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. A...

2018-08-22 11:00:51 142

原创 [LeetCode] Task Scheduler 任务行程表

题目Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could be done without original order. Each task cou...

2018-08-21 11:42:24 238 2

原创 [Leetcode]Subarray Sum Equals K 子数组和为K

题目Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k.Example 1:Input:nums = [1,1,1], k = 2 Output: 2Note:The le...

2018-08-21 10:33:12 457

转载 【卷积神经网络-进化史】从LeNet到AlexNet

【卷积神经网络-进化史】从LeNet到AlexNet 本博客是【卷积神经网络-进化史】的第一部分《从LeNet到AlexNet》转载自本文链接:http://blog.csdn.net/cyh_24/article/details/51440344更多...

2018-08-19 21:54:00 245

转载 CPU与GPU的区别(转载知乎)

首先需要解释CPU和GPU这两个缩写分别代表什么。CPU即中央处理器,GPU即图形处理器。其次,要解释两者的区别,要先明白两者的相同之处:两者都有总线和外界联系,有自己的缓存体系,以及数字和逻辑运算单元。一句话,两者都为了完成计算任务而设计。两者的区别在于存在于片内的缓存体系和数字逻辑运算单元的结构差异:CPU虽然有多核,但总数没有超过两位数,每个核都有足够大的缓存和足够多的数字和逻辑运算单元...

2018-08-19 11:00:48 2588

转载 基于tensorflow的深度学习MultiGPU训练实战

基于tensorflow的深度学习MultiGPU训练实战更多深度学习在NLP方面应用的经典论文、实践经验和最新消息,欢迎关注微信公众号“深度学习与NLP” 或扫描头像二维码添加关注。进行深度学习模型训练的时候,一般使用GPU来进行加速,当训练样本只有百万级...

2018-08-19 09:20:12 492

原创 全连接层的作用

全连接层(fully connected layers,FC)在整个卷积神经网络中起到“分类器”的作用。如果说卷积层、池化层和激活函数层等操作是将原始数据映射到隐层特征空间的话,全连接层则起到将学到的“分布式特征表示”映射到样本标记空间的作用。在实际使用中,全连接层可由卷积操作实现:对前层是全连接的全连接层可以转化为卷积核为1x1的卷积;而前层是卷积层的全连接层可以转化为卷积核为hxw的全局...

2018-08-16 10:05:05 16415

转载 决策树算法及Python实现

1 什么是决策树决策树(Decision Tree)是一种基本的分类与回归方法,本文主要讨论分类决策树。决策树模型呈树形结构,在分类问题中,表示基于特征对数据进行分类的过程。它可以认为是if-then规则的集合。每个内部节点表示在属性上的一个测试,每个分支代表一个测试输出,每个叶节点代表一种类别...

2018-08-09 16:39:25 137745 24

原创 [Leetcode]First Missing Positive 首个缺失的正数

题目Given an unsorted integer array, find the smallest missing positive integer.Example 1:Input: [1,2,0] Output: 3Example 2:Input: [3,4,-1,1] Output: 2Example 3:Input: [7,8,9,11,12] Outp...

2018-08-09 09:16:34 172

原创 [Leetcode]Two sum(两数之和)系列总结

Two sum题目Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may no...

2018-08-08 14:56:34 15079 2

原创 [LeetCode] Number of Subarrays with Bounded Maximum 有界限最大值的子数组数量

题目We are given an array A of positive integers, and two positive integers L and R (L <= R).Return the number of (contiguous, non-empty) subarrays such that the value of the maximum array elemen...

2018-08-07 10:30:35 151

原创 [LeetCode] Valid Triangle Number 合法的三角形个数 (Java)

题目Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle.Exampl...

2018-08-06 14:53:04 685

原创 [leetcode] Find the duplicate number 寻找重复数

题目Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate element must exist. Assume that there is only one duplicate numbe...

2018-08-05 12:04:28 313

空空如也

空空如也

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

TA关注的人

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