自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

oo笨小孩oo的专栏

静心知路,独自修行,勿忘初心,方得始终

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

原创 机器学习中L0, L1, L2正则项介绍

L0,L1,L2正则项是机器学习中常用的正则项,本文主要对这三种正则项做一个简单的介绍。L0: L0主要是指参数中0的个数,希望参数中的大部分元素是0,希望参数是稀疏的,但是L0有一个缺点就是难以优化,所以就引出了L1正则项。L1: L1正则项是指向量中各个元素绝对值之和,L0正则项的最优凸近似,它比L0要更容易求解,所以在实际使用中,L1的使用要多于L0的使用。 C=C0+λn∣∣w∣∣C=C_

2016-08-02 13:14:06 10232 1

原创 朴素贝叶斯(Naive Bayesian)分类器原理入门

NB分类算法是概率学派的经典算法,也是机器学习中的一个非常经典非常基础的分类算法,NB算法有很强的数学理论作为支撑,本文主要介绍了NB算法的基本原理与数学推导。假设我们有一组训练数据: {(x1,c1),(x2,c2)......(xn,cn)}{(x_1, c_1), (x_2, c_2)...... (x_n, c_n)} 其中cic_i是每个数据的标签类别,xix_i是特征向量,我们需要根

2016-08-02 12:05:40 3322 1

原创 Logistic Regression(逻辑回归)原理及公式推导

Logistic Regression(逻辑回归)是机器学习中一个非常非常常见的模型,在实习生环境中也常常被使用,是一种经典的分类模型(不是回归模型)。本文主要介绍了Logistic Regression(逻辑回归)模型的原理以及参数估计、公式推导方法。

2016-07-30 15:18:13 132113 17

原创 梯度下降原理及Python实现

版权声明:本文为原创文章:http://blog.csdn.net/programmer_wei/article/details/51941358梯度下降算法是一个很基本的算法,在机器学习和优化中有着非常重要的作用,本文首先介绍了梯度下降的基本概念,然后使用python实现了一个基本的梯度下降算法。梯度下降有很多的变种,本文只介绍最基础的梯度下降,也就是批梯度下降。实际应用例子就不详细说了,网上关于

2016-07-18 13:44:17 35899 11

原创 LeetCode 235. Lowest Common Ancestor of a Binary Search Tree

LeetCode 235. Lowest Common Ancestor of a Binary Search Tree Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to the definition of LCA

2016-05-22 23:02:17 518

原创 LeetCode 206. Reverse Linked List

LeetCode 206. Reverse Linked ListReverse a singly linked list.

2016-05-21 23:20:07 533

原创 LeetCode 169. Majority Element

LeetCode 169. Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty

2016-05-18 13:55:15 323

原创 LeetCode 217. Contains Duplicate

LeetCode 217. Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array

2016-05-18 13:54:06 416

原创 LeetCode 171. Excel Sheet Column Number

LeetCode 171. Excel Sheet Column Number Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example

2016-05-18 12:54:14 598

原创 LeetCode 242. Valid Anagram

LeetCode 242. Valid Anagram Given two strings s and t, write a function to determine if t is an anagram of s.For example, s = “anagram”, t = “nagaram”, return true. s = “rat”, t = “car”, return false

2016-05-17 23:49:48 420

原创 LeetCode 100. Same Tree

LeetCode 100. Same Tree Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes

2016-05-17 22:54:35 347

原创 LeetCode 237. Delete Node in a Linked List

LeetCode 237. Delete Node in a Linked List Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are

2016-05-17 22:23:48 415

原创 LeetCode 283. Move Zeroes

LeetCode 283. Move Zeroes 题目Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12],

2016-05-17 13:08:25 347

原创 LeetCode 226. Invert Binary Tree

题目Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1public class Solution226 { public static void main(String[] args) { S

2016-05-15 21:32:59 384

原创 LeetCode 104. Maximum Depth of Binary Tree

LeetCode 104. Maximum Depth of Binary Tree Given 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

2016-05-15 15:06:46 437

原创 LeetCode 292. Nim Game

LeetCode 292. Nim Gam You 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 the last

2016-05-14 23:12:40 412

原创 LeetCode 258. Add Digits

LeetCode 258. Add Digits 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 + 1 = 2.

2016-05-14 23:10:14 460

原创 深度学习Theano中scan的使用方法

深度学习python库Theano中的函数scan是一种迭代形式,所以可以用于类似循环(looping)的场景。需要注意的是scan在计算的时候,可以访问以前n步的输出结果,所以比较适合RNN网络。

2016-03-29 00:26:58 4005

原创 python3使用pickle读取文件提示TypeError或者UnicodeDecodeError的解决办法

python3使用pickle读取文件提示TypeError: ‘str’ does not support the buffer interface或者UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe8 in position的解决办法。python2使用的是cPickle模块,而在python3中cPickle已经被取消,取而代之的是pickle模块。

2016-03-27 22:06:59 23171 11

原创 CentOS安装配置svn,并配置SVN自动更新Web目录

如果要卸载旧版本:yum remove subversion一,安装必须的软件包$ yum install subversion $ yum install mod_dav_svn二,基本的SVN服务器配置 1,新建一个目录用于存储SVN所有文件  # mkdir /home/svn 2,新建一个版

2015-05-21 12:48:49 2166

转载 CentOS6.5 配置LAMP(Apache+MySQL+PHP)环境,并配置phpmyadmin

一、安装 MySQL首先来进行 MySQL 的安装。打开超级终端,输入:[root@localhost ~]# yum install mysql mysql-server安装完毕,让 MySQL 能够随系统自动启动:[root@localhost ~]# chkconfig --levels 235 mysqld on[root@localhost ~]# /etc/ini

2015-05-21 10:54:59 8860

原创 intellij idea本地开发调试hadoop的方法

我的intellij idea版本是14,hadoop版本2.6,使用《hadoop权威指南》的天气统计源码作为示例。1、首先在hadoop官网上下载hadoop到本地(不需要进行环境变量的配置,仅仅只用下载hadoop的包即可)。2、打开intellij idea创建一个空项目,并且将源码粘贴进去,如图2、这时可以看见代码中的许多类是无法识别的,别急。接下来打开p

2015-04-26 11:09:15 26453 7

原创 《数据挖掘导论》学习笔记-离散化

什么是离散化:连续属性的离散化就是将连续属性的值域上,将值域划分为若干个离散的区间,最后用不同的符号或整数值代表落在每个子区间中的属性值。为什么要离散化连续属性离散化的目的是为了简化数据结构,数据离散化技术可以用来减少给定连续属性值的个数。离散化方法经常作为数据挖掘的工具。常见的正态假设是连续变量,离散化减少了对于分布假设的依赖性,因此离散数据有时更有效。离散化的技术根据数

2013-12-08 15:18:26 7867

原创 《数据挖掘导论》学习笔记-特征创建

根据原有的属性我们可以创建出新的属性集,而且新的属性数目可能少于原有的属性数目,也就是降维。创建新的属性的方法有三种:特征提取、映射数据到新的空间、特征构造1、特征提取定义:根据原有的数据自己创建新的属性集。有的数据的属性是非常多的,而特征提取技术都是具体针对某个领域的而不是通用的,因此对数据的处理需要一些较高层次的抽象,提供一些较高层次的属性。比如照片的集合,按照照片是否包含人脸

2013-12-08 10:34:21 1580

GPUObserver,win7桌面小工具,检测显卡温度

挺不错的,显示数据也挺准确,温度,频率,电压,显存都可显示

2012-01-31

IntelCoreSeries2.1, win7桌面小工具,显示CPU温度频率

安装此小工具后打开设置,点击install Driver安装检测CPU温度的驱动即可

2012-01-31

空空如也

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

TA关注的人

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