自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Dancinglikelink

怀揣人工智障梦想的超龄儿童。

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

原创 CS231N学习笔记4 Optimization: Stochastic Gradient Descent

Optimization is the process of finding the set of parameters WW that minimize the loss function. Visualizing the loss function从上一个chapter,得到loss function如下: 换一种写法: 其中wj是类j的权重向量.可以发现,L其实是

2017-11-02 20:15:59 590

原创 CS231N学习笔记3 Linear Classification

We will then cast this as an optimization problem in which we will minimize the loss function with respect to the parameters of the score function. 我们将其转化为一个优化问题,目的是通过优化评分函数的参数最小化损失函数。 Paramet

2017-11-02 20:12:00 704

原创 CS231N学习笔记2 Assignment1_Q1: k-Nearest Neighbor classifier

1.代码1.1 dataPerpare.py#!/usr/bin/env python# -*- coding: utf-8 -*-# Created by wjbKimberly on 17-10-31import numpy as npimport syssys.path.append("../../../")from cs231n.data_utils import lo

2017-11-02 20:09:09 965 1

原创 CS231N学习笔记1 Image Classification

表示一张图用三个维度表示:长度、宽度、通道 w*h*c个number每个number ranges from 0 (black) to 255 (white) Challenges:对于人类来说,识别图片是非常简单的,所以在计算机视觉算法的角度上这个挑战很有价值。以下是一些challenges:l Viewpoint variation角度变化l Scale varia

2017-11-02 20:01:09 428

原创 CS231N学习笔记0 学习环境配置

从2017年10月21日开始,和zju的小伙伴们开始学习cs231n.just在这里记录一些疑问和想法.1.预备工作python3.5ScipyNumpyTensorflow2. python3.5安装apt-get install python3python3 --versionPython 3.5.2报错:无法锁定管理目录(/v

2017-11-02 19:57:26 2501 1

原创 天池大数据竞赛口碑商家客流量预测——时序预测(python-numpy-arima)

先进行数据清洗得到2015~2016年商家每日销量。格式:shopid:2015-07-01:202015-07-02:30……缺失值用均值填充。用arima的预测模块进行预测。结束后来补。loss低就不写啦~

2017-02-27 20:48:05 3741 2

原创 python+cookielib实现批量利用账号和密码自动获取新浪微博登录cookie

每次登录获取cookie真的很慢吧,一个cookie基本爬100多条就废了,这里利用的移动端获取cookie,经测试可使用,我爬取了2500组水军账户的信息。

2017-01-04 18:41:30 2559 1

原创 windows10+ubuntu双系统遇到的各种鸡毛问题解决方案:包括卡logo,grub安装错误等

just记录一下安装双系统过程中出现的各种bug新机是联想拯救者1.安装Windows101.1 安装教程http://tieba.baidu.com/p/4230849393按照这个一步一步来,我是64位系统,安装的是这个:cn_windows_10_multiple_editions_x64_dvd_6848463.exe1.2安装后需要密钥?某宝很多密钥卖,一

2017-01-01 17:55:18 4022

原创 python实现遗传算法求解TSP旅行商问题(详细解释)

课设需要做这个题目,看了http://www.tuicool.com/articles/Fb2YjeF之后下了他在github上的代码https://github.com/zchlong/tsp,发现一些错别字这份代码里改正了。三个文件:1.GA.py遗传算法类2.Life.py基因序列类3.TSP_GA.py 旅行商算法类,届时直接运行这个代码文件即可4.34所城市经纬度di

2016-12-20 22:25:08 25300 19

原创 python+微博API获取我的粉丝列表和关注列表信息(只能得到最新的30%)

马克

2016-12-05 19:02:09 2545

原创 python+微博API实现微博登录+发布微博

token获得发布一条微博

2016-12-05 19:01:05 682

原创 python+beautifulsoup/xpath实现新浪微博已删除图片恢复(复杂度很高只介绍原理)

我们知道图片虽然已经删除,但仍存储于服务器上,所以该方法实际是通过猜链的方式,因此复杂度很高。只介绍原理,实际上是没办法使用的。

2016-12-05 18:55:22 1305

原创 python+beautifulsoup/xpath爬取新浪微博某用户的全部原创博文,分词后用Tagxedo制作成美丽的标签云

马克

2016-12-05 18:53:17 1711 1

原创 python+beautifulsoup/xpath爬取某条新浪微博的转发网络并用gephi可视化

以山水军团为例。

2016-12-05 18:51:13 2144 1

原创 python+beautifulsoup/xpath爬取新浪微博某用户的三层关注网络并用gephi可视化

由于weibo.com只能显示最多120名粉丝或关注者信息,而weibo.cn可以显示200名,果断选择手机端微博,而且结构清晰很好爬。顺带做了心爱的凯源小盆友的互关网络,像不像一颗蓝绿色的糖果~~

2016-12-05 18:50:10 1629 2

原创 python+beautifulsoup/xpath实现新浪微博某互粉好友全部好友圈微博爬虫

主要是懒,想要翻刚刚互粉的好友的全部好友圈微博,然而懒得一个一个去翻,就做了这个。所谓一切机械性重复工作都可以交给计算机去做,就是我了我这种懒人而生的吧……

2016-12-05 18:46:46 1855

原创 python+beautifulsoup/xpath实现新浪微博大批量微博发送器

利用手机端微博实现,编写水军分类器的过程中尝试着自己写了一个批量微博发送器,并用于凯源家山水军团微博。在此只讲解原理效果良好,基本发送100条左右才会出现验证码,导致后续微博序号断断续续。

2016-12-05 18:43:42 772

原创 python+beautifulsoup/xpath实现 b站弹幕批量发送器

存档

2016-12-05 18:40:58 1022

原创 python+beautifulsoup/xpath实现新浪微博某博主全部高清大图下载器

马克

2016-12-05 18:37:55 736

转载 数据预测之BP神经网络具体应用以及matlab代码

数据预测之BP神经网络具体应用以及matlab代码 1.具体应用实例。根据表2,预测序号15的跳高成绩。表2 国内男子跳高运动员各项素质指标序号跳高成绩()30行进跑(s)立定三级跳远()助跑摸高()助跑4—6步跳高()负重深蹲杠铃()杠铃半蹲系数100(

2016-10-11 18:26:17 8934 5

转载 白盒测试中的六种覆盖方法及案例分析

语句覆盖是指选择足够的测试用例,使得运行这些测试用例时,被测程序的每一个语句至少执行一次,其覆盖标准无法发现判定中逻辑运算的错误;判定覆盖是指选择足够的测试用例,使得运行这些测试用例时,每个判定的所有可能结果至少出现一次,但若程序中的判定是有几个条件联合构成时,它未必能发现每个条件的错误;条件覆盖是指选择足够的测试用例,使得运行这些测试用例时,判定中每个条件的所有可能结果至少出现一次,但未必能覆盖

2016-09-07 12:40:33 3865

原创 Leetcode - Tree - 106. Construct Binary Tree from Inorder and Postorder Traversal(根据中序遍历和后序遍历重构二叉树)

1. Problem DescriptionGiven inorder and postorder traversal of a tree, construct the binary tree. 2. My solution类似的题目还有105,是根据中序和前序重构二叉树。根据前序和后序是无法重构二叉树的,因为重构二叉树需要中序遍历顺序提供划分左右子树的方法。 Findro

2016-09-06 20:09:57 553

转载 SQL的内连接与外连接

转载自http://blog.csdn.net/hellowheat/article/details/4207467SQL的内连接与外连接标签: sqljoinoraclec2009-05-21 22:20 21640人阅读 评论(14)收藏举报本文章已收录于:分类: DB(oracle mysql)(18)

2016-09-01 18:06:28 359

转载 正则表达式问题

正则表达式 - 语法正则表达式(regular expression)描述了一种字符串匹配的模式,可以用来检查一个串是否含有某种子串、将匹配的子串做替换或者从某个串中取出符合某个条件的子串等。列目录时, dir *.txt或ls *.txt中的*.txt就不是一个正则表达式,因为这里*与正则式的*的含义是不同的。构造正则表达式的方法和创建数学表达式的方法一样。也就是用多种元字符与运

2016-08-26 00:12:40 420

转载 单链表反转总结篇

单链表的反转是常见的面试题目。本文总结了2种方法。1 定义单链表node的数据结构定义如下:class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null; }}2 方法1:就地反转法2.1 思路把

2016-08-25 23:45:12 549 1

转载 Catalan数——卡特兰数

转载自hackbuteer1Catalan数——卡特兰数今天阿里淘宝笔试中碰到两道组合数学题,感觉非常亲切,但是笔试中失踪推导不出来后来查了下,原来是Catalan数。悲剧啊,现在整理一下一、Catalan数的定义令h(1)=1,Catalan数满足递归式:h(n) = h(1)*h(n-1) + h(2)*h(n-2) + ... + h(n-1)h(1),n>=

2016-08-24 19:33:35 456

原创 区间DP:POJ 2955括号匹配 + NYOJ 737 石子归并(一) + No.312 Burst Balloons

1.区间DP入门 —— POJ 2955 括号匹配我们先看一道经典题目:给出一个字符串,仅含()[]四个字符,问整个字符串里最多有多少个匹配的括号。Sample Input((()))()()()([]]))[)(([][][)endSample Output66406 2. My solution of POJ 2955区间dp

2016-08-24 09:42:05 538

原创 Leetcode - Dynamic Programming - 343. Integer Break(划分整数得到最大乘积)

1. Problem DescriptionGiven 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

2016-08-22 18:57:23 476

原创 Leetcode - Tree - 104. Maximum Depth of Binary Tree(DFS求二叉树最深深度)

1. Problem DescriptionGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.2. My solution

2016-08-16 13:12:29 586

原创 ※ Leetcode - Tree - 226. Invert Binary Tree(反转二叉树 使用二级指针交换两个指针的地址)

1. Problem DescriptionInvert a binary tree.      4   /   \  2     7 / \     / \1   3  6  9 to     4   /   \  7     2 / \     / \9   6  3  1 Trivia:This problem was in

2016-08-16 13:02:42 488

原创 Leetcode - String - 383. Ransom Note(水题)

1. Problem DescriptionGiven an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed

2016-08-16 12:03:34 916

原创 Leetcode - Math -258. Add Digits(数位求和,规律题)

1. Problem Description Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1

2016-08-15 10:31:23 463

原创 Leetcode - Bit minipulation - 371. Sum of Two Integers(递归模拟位运算求和)

1. Problem DescriptionCalculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 什么?你说好简单?输出两个数的和? 2. My s

2016-08-13 12:39:37 400

原创 Leetcode - Brainteaser - 319. Bulb Switcher(规律题)

1. Problem DescriptionThere are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if

2016-08-13 10:19:38 423

原创 Leetcode - String - 292. Nim Game (裸Bash博弈)

1. Problem DescriptionYou are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes th

2016-08-12 20:37:40 337

原创 Leetcode - String - 344. Reverse String (3种写法)

1. Problem DescriptionWrite a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh".反转字符串2. My solution1(另开辟字符串存储)class Solutio

2016-08-12 16:56:46 485

原创 Leetcode - Dynamic Progr - 64. Minimum Path Sum(BFS+DP)

1. Problem DescriptionGiven 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 mov

2016-08-12 15:37:45 401

原创 ※ Leetcode - Segment Tree - 307. Range Sum Query - Mutable (线段树+树状数组两种解法以及模板的常见问题解析)

1. Problem DescriptionGiven an integer array nums, find the sum of the elements between indices i and j (i≤ j), inclusive. The update(i, val) function modifies nums by updating the element at

2016-08-12 13:30:57 1247

转载 线段树模板(来自胡浩大牛)

http://www.notonlysuccess.com/(今天看二叉树,想回来看看,发现大牛博客进不去。。。)如果要学,就要好好学。我copy的,如有错,请看http://www.cnblogs.com/Mu-Tou/archive/2011/08/11/2134427.html【完全版】线段树很早前写的那篇线段树专辑至今一直是本博客阅读点击量最大的一片文章,当时觉得挺

2016-08-08 17:54:25 3888

原创 ※ Leetcode - Dynamic Programming - 53.Maximum Subarray(最大连续和)+152.Maximum Product Subarray(最大连续积)

1. Problem Description of 53.Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4,−1,2

2016-08-08 15:20:33 499

空空如也

空空如也

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

TA关注的人

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