自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

andersonxie的博客

https://github.com/Sheldon-Anderson

  • 博客(94)
  • 资源 (2)
  • 收藏
  • 关注

原创 如何简单地完成超强炫酷的vim配置?

如何简单地完成超强炫酷的vim配置?vim配置1. vim配置—The Ultimate vimrc:2. vim配置—超强vim配置文件:vim配置很多小伙伴都遵循大佬路线决定“罢黜ide,独尊vim”,不过原生态的vim实在简单粗暴难用,那么如何得到一个炫酷实用的vim呢?网上各式各样的教程层出不穷,当然大部分手动配置教程都是有坑的,为了让大家少走弯路少采坑,把精力用在算法研究和开发落地上...

2020-04-23 17:28:46 735

原创 人脸检测技术——深度学习算法原理

人脸检测技术——深度学习算法原理人脸检测技术——深度学习算法原理1. 通用目标检测网络1.1 faster-rcnn检测算法的基本原理1.2 faster-rcnn应用于人脸检测2. 专门应用于人脸检测的卷积神经网络2.1 专门用于人脸检测的卷积神经网络的发展现状2.2 cascadeCNN2.3 MTCNN3. 人脸检测最新进展参考文献微信公众号同步人脸检测技术——深度学习算法原理  上篇推...

2019-05-04 18:44:57 19150

原创 《权力的游戏》之人脸检测技术——概念、开源库和实战

《权力的游戏》之人脸检测技术——概念、开源库和实战人脸检测技术——概念、开源库和实战1. 人脸检测是什么?2. 人脸检测开源库3. 人脸检测代码实战微信公众号同步人脸检测技术——概念、开源库和实战  上一篇文章我们讲到,“美颜”牵涉到这些技术包括:人脸检测、人脸关键点定位、瘦脸、磨皮、美白等,人脸检测技术是“美颜”技术最开始的部分。在接下来的系列文章中,我打算分成几篇,来具体阐述“人脸检测”这...

2019-04-21 20:13:20 1525 1

原创 业界大佬揭秘美颜技术的算法原理

业界大佬揭秘美颜技术的算法原理美颜技术发展现状和应用场景1. 人脸检测2. 人脸关键点3. 瘦脸4. 磨皮5. 美白微信公众号同步美颜技术发展现状和应用场景  随着视频类APP的流行,美颜技术也变得越来越广泛,我们特此跟工业界从事美颜算法岗位的大佬进行了交流,并且打算围绕“美颜”技术展开撰写一系列文章。本篇文章将从两个方面展开:先介绍“美颜”技术在主流APP中的应用;然后讲述“美颜”所设计到的...

2019-04-14 17:19:51 15587 1

原创 机器学习、深度学习、强化学习、迁移学习和人工智能的联系和区别?

机器学习、深度学习、强化学习和人工智能的关系是什么?人工智能的学习算法大家庭1. 机器学习的定义2. 深度学习的定义3. 强化学习的定义4. 迁移学习的定义5. 人工智能的定义6. 机器学习 VS 深度学习 VS 强化学习 VS 迁移学习?微信公众号同步人工智能的学习算法大家庭人工智能 (Artificial Intelligence, AI) 浪潮正在席卷全球,在上一讲中,我们给出了人工智能...

2019-04-07 18:05:04 37317 12

原创 人工智能是什么?

人工智能是什么?欢迎大家迈入人工智能的大门1. 人工智能的定义2. 人工智能的话题3. 人工智能的四大技术分支4. 人工智能的主要应用领域5. 人工智能的三种形态5.1. 弱人工智能到强人工智能有多难?5.2. 弱人工智能的前进方式5.3. 强人工智能到超级人工智能之路5.4. 智能爆炸——强人工智能时代微信公众号同步欢迎大家迈入人工智能的大门人工智能 (Artificial Intellig...

2019-04-06 16:52:27 45611 15

原创 Tensorflow 4. 训练过程,服务器宕机了一次,服务器重启之后加载保存的model.ckpt报错?

  问题原因:根据代码中设置的tf.train.Saver(max_to_keep=?),原因是最新一次写入model.ckpt的参数没有写完,此时服务器宕机,因此在重新加载model.ckpt时会报错(保存参数不完整)。  解决方法:  假设当前的checkpoint内容为:  model_checkpoint_path: "/home/***/train/model.ckpt-64863"  ...

2018-04-17 16:05:30 2015

原创 Tensorflow 3. 训练过程,出现loss=NAN的问题?

  ① 问题可能原因:  1. 如果在迭代的100轮以内,出现NaN,一般情况下的原因是因为学习率过高,需要降低学习率。我们可以不断降低学习率直至不出现NaN为止,一般来说低于现有学习率1→10倍即可;  2. 如果当前的网络是类似于RNN的循环神经网络的话,出现NaN可能是因为梯度爆炸的原因,一个有效的方式是增加“gradient clipping”(梯度截断来解决);  3. 可能用0作为了除...

2018-04-17 15:59:05 9363 1

原创 Tensorflow 2. 训练过程,服务器显示Resource exhausted?

  我遇到的问题:Resource exhausted: OOM when allocating tensor with shape[256, 50000] Traceback (most recent call last): …  问题原因:我在seq2seq模型和attention机制的基础上,加入一个新的encoder、并且调整了attention计算公式。问题在于引入了新的变量和参数,因此...

2018-04-17 15:48:15 1401

原创 Tensorflow 1. name_scope和variable_scope有什么区别?

  我们在使用Tensorflow构建深度学习网络模型时,经常会使用name_scope和variable_scope。那么它们的区别体现在哪里呢?  ① 为了说明以上问题,我们先解释tf.get_variable和tf.Variable的区别:  1. tf.get_variable: 有同名冲突问题(reuse=True可以解决,同一个);  2. tf.Variable: 没有同名冲突问题(...

2018-04-17 15:42:28 286

原创 LeetCode 84. 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.        Above is a histogram where ...

2018-03-27 22:04:32 2560 1

原创 LeetCode 83. Remove Duplicates from Sorted List(移除单链表的重复元素Ⅰ)

题目描述:    Given a sorted linked list, delete all duplicates such that each element appear only once.    For example,        Given 1->1->2, return 1->2.        Given 1->1->2->3->3, ...

2018-03-27 21:25:40 208

原创 LeetCode 82. Remove Duplicates from Sorted List II(移除单链表的重复元素Ⅱ)

题目描述:    Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.    For example,        Given 1->2->3->3->4->4-&g...

2018-03-27 21:08:32 267

原创 LeetCode 81. Search in Rotated Sorted Array II(旋转有序数组,朝找目标值Ⅱ)

题目描述:    Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.    (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).    Write a function to determine if a given...

2018-03-27 20:32:31 163

原创 LeetCode 80. Remove Duplicates from Sorted Array II(有序数组移除重复数字Ⅱ)

题目描述:    Follow up for "Remove Duplicates": what if duplicates are allowed at most twice?    For example, given sorted array nums = [1,1,1,2,2,3].    Your function should return length = 5, with the f...

2018-03-26 20:16:11 187

原创 LeetCode 79. Word Search(单词查找)

题目描述:    Given a 2D board and a word, find if the word exists in the grid.    The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or v...

2018-03-26 19:40:12 333

原创 LeetCode 78. Subsets(子集)

题目描述:    Given a set of distinct integers, nums, return all possible subsets (the power set).    Note: The solution set must not contain duplicate subsets.    For example, if nums = [1,2,3], a solutio...

2018-03-26 19:16:00 181

原创 LeetCode 77. Combinations(N选K组合)

题目描述:    Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.    For example, If n = 4 and k = 2, a solution is:[ [2,4], [3,4], [2,3], [1,2], [1,3], [1...

2018-03-26 17:41:39 537

原创 LeetCode 76. Minimum Window Substring(最小窗口子串)

题目描述:    Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).    For example, S = "ADOBECODEBANC", T = "ABC", Minimum window is ...

2018-03-26 17:31:01 222

原创 LeetCode 75. Sort Colors(三颜色排序→K颜色排序)

题目描述:    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 ...

2018-03-26 16:29:28 3881

原创 LeetCode 74. Search a 2D Matrix(二维矩阵查找)

题目描述:    Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right.The first integer of ea...

2018-03-26 15:55:29 215

原创 LeetCode 73. Set Matrix Zeroes(矩阵置零)

题目描述:    Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.分析:    题意:给定一个 m x n 二维整型数组,如果某个元素为零,则把包含该元素的行、列所有元素都置零。返回置零之后的矩阵,空间复杂度要求为O(1)。    思路:这是一道模拟题,因为空间...

2018-03-26 15:35:43 227

原创 LeetCode 72. Edit Distance(编辑距离)

题目描述:    Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)    You have the following 3 operations permitted o...

2018-03-26 15:05:36 125

原创 LeetCode 71. Simplify Path(路径简化)

题目描述:    Given an absolute path for a file (Unix-style), simplify it.    For example,        path = "/home/", => "/home"         path = "/a/./b/../../c/", => "/c"    Corner Cases:Did you conside...

2018-03-25 21:01:32 172

原创 LeetCode 70. Climbing Stairs(爬梯子)

题目描述:    You are climbing a stair case. It takes n steps to reach to the top.    Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?    Note: Given n will ...

2018-03-25 18:33:05 400

原创 LeetCode 69. Sqrt(x)(x的算术平方根)

题目描述:    Implement int sqrt(int x).    Compute and return the square root of x.    x is guaranteed to be a non-negative integer.例子:Input: 4Output: 2Input: 8Output: 2Explanation: The square root of ...

2018-03-25 17:28:10 348

原创 LeetCode 68. Text Justification(文本格式调整)

题目描述:    Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.    You should pack your words in a greedy approac...

2018-03-24 19:44:14 184

原创 LeetCode 67. Add Binary(二进制加法)

题目描述:    Given two binary strings, return their sum (also a binary string).    For example, a = "11", b = "1", return "100".分析:    题意:给定两个二进制字符串(只包含0和1),返回它们相加之后的字符串结果。    思路:这是一道二进制加法题,我们采用普通的字符串加法思路...

2018-03-24 18:57:59 232

原创 LeetCode 66. Plus One(加一)

题目描述:    Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.    You may assume the integer do not contain any leading zero, except the number 0 itself.   ...

2018-03-24 18:10:35 110

原创 LeetCode 65. Valid Number(合法数字→最差的题!)

题目描述:    Validate if a given string is numeric.例子:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true注意:It is intended for the problem statement to be amb

2018-03-24 18:00:20 219

原创 LeetCode 64. Minimum Path Sum(最小路径和)

题目描述:    Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.    Note: You can only move either down or...

2018-03-24 16:55:18 126

原创 LeetCode 63. Unique Paths II(唯一出路Ⅱ)

题目描述:    Follow up for "Unique Paths":    Now consider if some obstacles are added to the grids. How many unique paths would there be?    An obstacle and empty space is marked as 1 and 0 respectively ...

2018-03-24 16:45:31 110

原创 LeetCode 62. Unique Paths(唯一出路Ⅰ)

题目描述:    A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).    The robot can only move either down or right at any point in time. The robot is trying to r...

2018-03-24 16:29:44 121

原创 LeetCode 61. Rotate List(循环右移单链表)

题目描述:    Given a list, rotate the list to the right by k places, where k is non-negative.例子:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->NULL.分析:    题意:给定一...

2018-03-24 15:57:35 686

原创 LeetCode 60. Permutation Sequence(N排列,第K序列)

题目描述:    The set [1,2,3,…,n] contains a total of n! unique permutations.    By listing and labeling all of the permutations in order,    We get the following sequence (ie, for n = 3):"123""132""213""2...

2018-03-24 15:33:07 285

原创 LeetCode 59. Spiral Matrix II(螺旋矩阵Ⅱ)

题目描述:    Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.    For example, given n = 3, you should return the following matrix:[ [ 1, 2, 3 ], [ 8, 9, 4 ...

2018-03-24 14:48:56 115

原创 LeetCode 58. Length of Last Word(最后一个单词长度)

题目描述:    Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.    If the last word does not exist, return 0.    Note: A ...

2018-03-23 22:43:19 136

原创 LeetCode 57. Insert Interval(插入区间)

题目描述:    Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).    You may assume that the intervals were initially sorted according to their start ti...

2018-03-22 16:10:30 136

原创 LeetCode 56. Merge Intervals(合并重叠区间)

题目描述:    Given a collection of intervals, merge all overlapping intervals.     For example, given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18].分析:    题意:给出一些整型区间集合,返回合并重叠区间之后的结果。    思路:这是一道...

2018-03-22 16:01:16 1787

原创 LeetCode 55. Jump Game(跳跃游戏Ⅰ)

题目描述:    Given an array of non-negative integers, you are initially positioned at the first index of the array.    Each element in the array represents your maximum jump length at that position.    De...

2018-03-22 15:36:55 115

《Pattern Recognition and Machine Learning》(中文版)超清扫描PDF版本

书名:Pattern Recognition and Machine Learning 作者:Christopher M. Bishop 译名:模式识别与机器学习 译者:马春鹏 目录 1 绪论 2 概率分布 3 回归的线性模型 4 分类的线性模型 5 神经网络 6 核方法 7 稀疏核机 8 图模型 9 混合模型和EM 10 近似推断 11 采样方法 12 连续潜在变量 13 顺序数据 14 组合模型 A 附录A.数据集 B 附录B.概率分布 C 附录C.矩阵的性质 D 附录D.变分法 E 附录E.拉格朗日乘数法 推荐原因:一个研究人工智能领域的学者,只有读过这本书,才能说机器学习的理论已经入门了。

2018-03-12

LeetCode400题代码全解

这里提供我刷LeetCode前400题的代码全解,部分题目还提供了2-4种解法,对于刷题的你,想必会很有帮助!

2017-08-10

空空如也

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

TA关注的人

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