自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

麦好的AI乐园

机器学习、 智能计算、应用数学

  • 博客(512)
  • 资源 (5)
  • 收藏
  • 关注

原创 oc笔记-1

2016-08-31 21:11:54.883 mylearn[596:34753] 102016-08-31 21:11:54.884 mylearn[596:34753] 122016-08-31 21:11:54.884 mylearn[596:34753] 0xa2016-08-31 21:11:54.885 mylearn[596:34753] 3.1415932016-08-3

2016-08-31 21:21:15 467

原创 PYTHON-正则match

>>> x=r'(\D*)(\d*)(.*)hello'>>> m=re.match(x,y )>>> m.groups()('xxxxxx', '23434', 'yyy111yyyzzz    ')>>> m.groups(0)('xxxxxx', '23434', 'yyy111yyyzzz    ')>>> m.group(0)'xxxxxx23434yyy111yyyzzz    hel

2016-08-05 15:53:48 982

原创 python手记-twisted(5)

聊天室# -*- coding: utf-8 -*-#DeepChat 0.1#author:myhaspl@myhaspl.com#license:LGPLfrom twisted.internet.protocol import Factoryfrom twisted.protocols.basic import LineReceiverfrom twisted.internet

2016-07-21 15:12:12 1524

原创 python手记-twisted(4)

from twisted.internet.protocol import Protocolfrom twisted.internet import reactorfrom twisted.internet.protocol import Factoryfrom twisted.internet.endpoints import TCP4ServerEndpoint#http://blog

2016-07-09 17:22:10 3683

原创 python手记-twisted(3)

from twisted.internet.protocol import Protocolfrom twisted.internet import reactorfrom twisted.internet.protocol import Factoryfrom twisted.internet.endpoints import TCP4ServerEndpointclass Echo(

2016-07-08 18:48:12 3348

原创 python手记-twisted(2)

关闭连接Xshell 5 (Build 0655)Copyright (c) 2002-2015 NetSarang Computer, Inc. All rights reserved.Type `help' to learn how to use Xshell prompt.[c:\~]$ telnet 120.55.*.* 8001Connecting to 120.55.*.*:8001.

2016-07-07 17:51:07 2688

原创 python手记-twisted(1)

python手记

2016-07-07 10:30:39 1808

原创 机器视觉手记(1)

机器视觉手记

2016-07-06 16:18:18 1765

原创 arduino随笔(3)

红绿灯//2016-4-12// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation

2016-04-14 17:48:51 5455

原创 arduino随笔(2)

#define B_COLOR 10#define G_COLOR 11#define R_COLOR 12void setup(){ pinMode(B_COLOR,OUTPUT); pinMode(G_COLOR,OUTPUT); pinMode(R_COLOR,OUTPUT);}void loop(){ digitalWrite(B_COLOR,HIGH);

2016-04-09 16:12:21 2765

原创 arduino随笔(1)

int ledPin=13;// arudino板内有一个小LED灯接在数字引脚13。int delaytime=200;//1s(秒)等于1000ms(毫秒)void setup() { pinMode(ledPin, OUTPUT); } //http://blog.csdn.net/myhaspl/void loop() {

2016-04-08 14:47:54 2346

原创 java- 比较排序与hash

package dplearn;import java.util.Arrays;import java.util.Collections;import java.util.HashMap;import java.util.Map;import java.util.Set;public class Learn { public static void main(String[]

2016-03-24 17:03:26 1793

原创 java 容器

package dplearn;import java.util.ArrayList;import java.util.Iterator;import java.util.List;public class Learn { public static void main(String[] args){ List myList=new ArrayList(); Basicinf

2016-03-24 15:08:06 925

原创 swift算法手记-10

http://blog.csdn.net/myhaspl private func findnode(val:Int)->Bool{//http://blog.csdn.net/myhaspl //查找结点http://blog.csdn.net/myhaspl if let mysltop = slinktop{ var my

2016-02-11 20:02:31 1834

原创 swift算法手记-9

class ViewController: NSViewController { private let trieroot:TrieNode = TrieNode (str: " ",nstate: NoteState.Root) override func viewDidLoad() { super.viewDidLoad() //

2016-02-06 11:00:43 1976

原创 数学之路(机器学习实践指南)-文本挖掘与NLP(6)

def wordfeatures(word): return {"cnword":word}.....classifier=nltk.NaiveBayesClassifier.train(samplewords)#大学所属的类别 http://blog.csdn.net/myhasplprint u"----大学所属的类别-----"print classifier.class

2016-02-04 22:55:39 2019

原创 数学之路(机器学习实践指南)-文本挖掘与NLP(5)

#条件频率,每个词条在不同分类中出现的频率print "------------------"cfd=nltk.ConditionalFreqDist(samplewords) fdist=cfd[u'财经']for word in fdist: print wordprint "---------流动性出现次数-----------"print cfd[u'财经'][u'

2016-02-02 12:22:17 1815

原创 swift算法手记-8

if answer==nil{ //计算方程的解 var p0:Double=leftbound! var p1:Double=rightbound! var q0:Double = comresult(p0) var q1:Double = comresult(p1)

2016-01-31 10:08:46 1302

原创 swift算法手记-7

@IBAction func compute(sender: AnyObject) { // 19*x^7-31*x^5+16*x^2+7*x-90=0 // newton迭代法求一元方程的解,最大求解范围[-100000,100000] mytitle.stringValue="19*x^7-31*x^5+16*x^2+7*x-90=

2016-01-29 22:18:09 1597

原创 数学之路(机器学习实践指南)-文本挖掘与NLP(4)

sample=cutstring(u"据悉,这辆汽车绰号野兽,野兽很可能于2017年1月份美国第45任总统就职时使用。目前,野兽的详细规格都属于绝密信息,但谍照显示野兽采用了凯迪拉克的最新护栅和前灯设计。")tokenstr=nltk.word_tokenize(sample)fdist3=nltk.FreqDist(tokenstr)print "---美国出现的次数---"print

2016-01-29 16:00:35 1630

原创 数学之路(机器学习实践指南)-文本挖掘与NLP(3)

#--coding:utf-8--#code by myhaspl from __future__ import unicode_literalsfrom __future__ import divisionimport nltkimport syssys.path.append("../")import jiebadef cutstring(txt): #分

2016-01-29 11:50:57 1628 1

原创 数学之路(机器学习实践指南)-文本挖掘与NLP(2)

#--coding:utf-8--#code by myhaspl from __future__ import unicode_literalsfrom __future__ import divisionimport nltkimport syssys.path.append("../")import jiebadef cutstring(txt):

2016-01-28 08:36:02 1894 1

原创 数学之路(机器学习实践指南)-文本挖掘与NLP(1)

据 P国外 S媒体报道 N, X美国 NS科学家 N近日 T获得 V了 UL2800 M万美元 M( X约合 VN1.84 M亿 M人民币 N) X的 UJ研究 VN经费 VN, X用于 V设计 VN一款 M能 V与 P人类 N识别 V图形 N速度 N相媲美 Z的 UJ计算机系统 N情报机构 N要 V处理 V的 UJ数据 N越来越 D多 M, X这些 R数据 N都 D必须 D进行 V迅速 AD分析

2016-01-27 10:36:33 2255 3

原创 swift手记-6

//// ViewController.swift// learn//// Created by myhaspl on 16/1/26.// Copyright (c) 2016年 myhaspl. All rights reserved.//import Cocoaclass ViewController: NSViewController { overri

2016-01-26 22:52:31 1365

原创 swift算法手记-5

//// ViewController.swift// learn5//// Created by myhaspl on 16/1/23.// Copyright (c) 2016年 myhaspl. All rights reserved.//import Cocoaimport Foundationclass ViewController: NSViewContr

2016-01-25 23:09:15 1344

原创 swift手记-4

//// ViewController.swift// learn4//// Created by myhaspl on 16/1/23.// Copyright (c) 2016年 myhaspl. All rights reserved.//import Cocoaclass ViewController: NSViewController { var fi

2016-01-23 21:17:00 1900

原创 swift手记-3

////  ViewController.swift//  learn3////  Created by myhaspl on 16/1/23.//  Copyright (c) 2016年 myhaspl. All rights reserved.//import Cocoaclass ViewController: NSViewController {        var mystatck:

2016-01-23 12:06:40 1413

原创 swift手记-2

////  ViewController.swift//  learn2////  Created by myhasplon 16/1/19.//  Copyright (c) 2016年 myhaspl. All rights reserved.///Volumes/myhaspl/book/swift算法/src/2/learn2/learn2/Base.lproj/Main.storybo

2016-01-19 22:59:24 1382

原创 swift手记-1

//// ViewController.swift// mylearn//// Created by myhaspl on 16/1/17.// Copyright (c) 2016年 myhaspl. All rights reserved.//import Cocoaclass ViewController: NSViewController { var n

2016-01-17 22:45:37 1271

原创 交换、路由与防火墙手记(9)- 三层vlan通信

syEnter system view, return user view withCtrl+Z.[Huawei]sysname lsw2syEnter system view, return user view withCtrl+Z.[Huawei]sysname lsw3syEnter system view, return user view withCtrl+Z.[Huawei]sysna

2016-01-09 22:09:25 1851

原创 QB64(3)

SCREEN 1COLOR 10, 1PSET (190, 120)PSET (192, 122)COLOR 10, 4PSET (160, 120)LINE -(190, 290)CIRCLE (50, 50), 20PAINT (55, 55)

2016-01-07 09:15:50 3171

原创 qb64手记(2)

传值与传引用PRINT mymax(12, 111)x1 = 55x2 = 66myswapPRINT x1FUNCTION mymax (x, y)IF x > y THEN    mymax = xELSE    mymax = yEND IFEND FUNCTIONSUB myswapSHARED x1, x2temp = x1x1 = x2x2 = tempEND SUB

2016-01-06 15:39:20 1577

原创 python手记(53)

import sys import pygamefrom pygame.locals import *import timeimport mathpygame.init()screen=pygame.display.set_mode((500,550))myfont=pygame.font.Font(None,30)red=(255,0,0)green=(0,255,0)bl

2016-01-04 15:42:53 1222 1

原创 qb64手记(1)

QB64 is a modern version of the Basic programming language that allows programs created using Quick Basic 4.5 or Qbasic to run on Windows XP, Vista, 7, 8, 8.1, Linux and Mac OSX. It will work on 32 or

2016-01-01 23:06:25 2774

原创 python手记(52)

import  sys import pygamefrom pygame.locals import *import timepygame.init()screen=pygame.display.set_mode((500,550))myfont=pygame.font.Font(None,30)red=(255,0,0)green=(0,255,0)textImage=myfont.render

2015-12-31 14:58:29 1606

原创 python手记(51)

python 类class Mytest(object):    nownum=0    def __init__(self,value=100):        self.nownum=value    def inCrease(self):        self.nownum+=1    def deCrease(self):        self.nownum-=1    def toS

2015-12-30 11:52:31 1512

原创 win编程实践(5)【c++】- 右值引用

右值引用形式:类型 && a= 被引用的对象。与左值引用&的区别在于:右值是临时变量, 可理解为右值的引用,右值初始化后临时变量消失。从实践角度讲,它能够完美解决C++中长久以来为人所诟病的临时对象效率问题。从语言本身讲,它健全了C++中的引用类型在左值右值方面的缺陷。从库设计者的角度讲,它给库设计者又带来了一把利器。从库使用者的角度讲,不动一兵一卒便可以获得“免费的”效率提升…

2015-11-30 21:40:26 1819 1

原创 cocos2d-x随笔-1

#include "HelloWorldScene.h"USING_NS_CC;Scene* HelloWorld::createScene(){    // 'scene' is an autorelease object    auto scene = Scene::create();        // 'layer' is an autorelease object    auto lay

2015-11-29 20:07:49 1573 1

原创 win编程实践(4)【c++】- 多维数组指针

//ConsoleApplication1.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include   using std::cout;using std::endl;using std::cin;  本博客所有内容是原创,如果转载请注明来源http://blog.csdn.net/myhaspl/ int main(){    char temp; 

2015-11-24 10:13:50 1401

原创 win编程实践(3)【c++】-枚举值

1、 枚举值 //ConsoleApplication1.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include  using std::cout;using std::endl;using std::cin; int main(){    char temp;    enum Myenum { one = 1,two= '2',three ='3',

2015-11-21 19:16:02 1359

freeglut-MinGW-2.8.1-1.mp.zip

freeglut-MinGW-2.8.1-1.mp.zip freeglut的预编译包,codeblock必备

2014-02-03

机器学习数学基础

机器学习的数学基础,适合机器学习和人工智能的相关学习者

2013-08-30

python处理声音示例程序

python处理声音示例程序,博客用:http://blog.csdn.net/myhaspl

2013-08-26

haskell中文入门资料

haskell中文入门资料,代码齐全,入门简单

2013-08-20

python线性神经网络库mplannliner

python线性神经网络库,简单易用,提供图形函数 调用代码如下: traindata2=[[[9,25,30],-1],[[5,8,12],-1],[[15,31,49],-1],[[35,62,108],-1],[[19,40,60],-1],[[28,65,98],1],[[20,59,72],1],[[9,41,38],1],[[12,60,46],1],[[2,37,18],1]] myann2=nplann.Mplannliner() myann2.samples_init(traindata2) myann2.train() myc=myann2.simulate([35,68,110]) print "[35,68,110]" if myc=="+": print u"正类" else: print u"负类"

2013-07-25

空空如也

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

TA关注的人

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