- 博客(37)
- 资源 (3)
- 问答 (1)
- 收藏
- 关注
原创 MFC学习日记1
主要是在照着书本的项目来写,记录一下今天的问题 1.#import "C:/Program Files/Common Files/System/ado/msado15.dll" no_namespace rename("EOF","adoEOF") 一直报C2006 错误,后来不小心“和no_namespace加了空格,意外的不报这个错误了 2之后是#errorWINDOWS.H isalr...
2019-03-16 19:06:34
51
原创 MFC 学习1
//学习自黑马程序员教程 mfc.h #include <afxwin.h> class MyApp :public CWinApp { public: virtual BOOL InitInstance(); }; class MyFrame :public CFrameWnd { public: MyFrame(); DECLARE_MESSAGE_MAP(); afx...
2019-03-14 10:46:48
57
原创 MFC底层设计
//学习自黑马程序员视频 #include <Windows.h> LRESULT CALLBACK windowProc( HWND hwnd,//消息句柄 UINT uMsg,//具体消息 WPARAM wParam,//键盘附加消息 LPARAM lParam//鼠标附加消息 ) { switch (uMsg) { case WM_CLOSE: DestroyW...
2019-03-12 10:52:32
65
原创 android霓虹效果
//一开始一直运行不了,参考了很多博客上的代码,至于最后为什么可以了,我也不清楚,还是要继续努力去学,环境是eclipse改动只有activity_main.xml,HelloWorld.java,以及在values里面添加了color.xml package com.example.test3; import java.util.Timer; import java.util.TimerTas...
2019-01-14 12:04:31
90
原创 跟随鼠标的小球
//学习自疯狂android讲义 DrawView.java package com.example.test3; import android.app.Activity; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.g...
2019-01-14 09:59:40
73
原创 HTML2
<!DOCTYPE html> <!DOCTYPE html> <html lang="en"> <head> <meta charset ="UTF-8"/> <title>test 2</title> </head> <bo
2019-01-10 08:30:46
78
原创 Apriori算法
from numpy import * def loadDataSet(): return [[1,3,4],[2,3,5],[1,2,3,5],[2,5]]#load some data def createCl(dataSet): Cl=[] for transaction in dataSet: for item in transaction: ...
2019-01-09 13:05:32
79
原创 HTML学习1
<!DOCTYPE html><!--first--> <html lang="zh-cn"><!--language--> <head> <meta charset="UTF-8" /><!--code--> <title>My test&
2019-01-09 09:25:27
50
原创 forfun
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Poppy</title> </head> <body> <article&g
2019-01-08 13:49:56
87
原创 PCA
#学习自机器学习实战 from numpy import * def loadDataSet(fileName,delim='\t'): fr=open(fileName) dataMat=[] for line in fr.readlines(): curline=line.strip().split(delim) #print(curl...
2019-01-08 12:55:31
46
原创 简单聚类
#学习自机器学习实战 from numpy import * def loadDataSet(fileName): dataMat=[] fr=open(fileName) for line in fr.readlines(): curLine=line.strip().split('\t') #curLine=float(curLine)...
2019-01-08 10:39:39
226
原创 CARTtree
from numpy import * import numpy as np class treeNode(): def __init__(self,feat,val,right,left): featureToSpliton=feat#feature valueOfSplit=val#value rightBranch=right#rig...
2019-01-07 11:54:41
112
原创 回归
#学习自机器学习实战部分参考其他博客 from numpy import * def loadDataSet(fileName): numFeat=len(open(fileName).readline().split(' '))-1 print(numFeat)#the column of data dataMat=[];labelMat=[]#initilize ...
2019-01-06 16:15:31
71
原创 简单adaboot
#学习自机器学习实战 import numpy as np import math def loadSimpleData(): dataMat=np.matrix([[1.,2.1],[2.,1.1],[1.3,1.],[1.,1.],[2.,1.]])#data classLabels=[1.0,1.0,-1.0,-1.0,1.0]#label return dataM...
2019-01-06 09:38:55
101
原创 简单的SVM
#学习自机器学习实战 from numpy import * def loadDataSet(filename): dataMat=[];labelMat=[]#initilize fr=open(filename)#open the file for line in fr.readlines():#process the readline lineArr...
2019-01-05 12:53:03
96
原创 logistic回归
#学习自机器学习实战 from numpy import * def loadDataSet(): dataMat=[];labelMat=[] fr=open('testSet.txt') for line in fr.readlines(): lineArr=line.strip().split() dataMat.append([1...
2019-01-01 10:25:10
71
原创 朴素贝叶斯
import numpy as np import math def bagOfWord2VecMN(vocabList,inputSet): returnVec=[0]*len(vocabList) for word in inputSet: if word in vocabList: returnVec[vocabList.index(...
2018-12-31 10:36:15
62
原创 决策树学习1
#原代码来自机器学习实战,注释及改动原创 from math import log import operator import KNN def createDataSet(): dataSet=[[1,1,'yes'] ,[1,1,'yes'], [1,0,'no'], [0,1,'no'] ...
2018-12-30 11:51:09
78
原创 KNN学习笔记1
#学习自机器学习实战,部分更改来自自己 from numpy import* import operator import matplotlib import matplotlib.pyplot as plt def createDataset(): group=array([[1.0,1.1],[1.0,1.0],[0,0],[0,0.1]]) labels=['A' ,'A'...
2018-12-29 22:44:50
156
原创 机器调度问题,请不吝赐教
#include <iostream> #include <cmath> #include <vector> #include <algorithm> using namespace std; const int N = 101; struct node { int val; int id; }; bool cmp(node a, n...
2018-12-23 15:53:55
261
原创 简单树
#include <iostream> #include <cmath> #include <string> using namespace std; const int F = 3; struct node{ string s; node *parent, *child[F]; int val; }; struct tree { ...
2018-12-21 13:27:21
301
原创 带缓冲的火车车厢重排,我是这么做的,欢迎指教
#include <iostream> #include <cmath> #include <string> #include <stack> #include<queue> using namespace std; const int N = 105; int dir[4][2] = { 0,1,1,0,0,-1,-1,0 };...
2018-12-16 15:54:58
196
原创 简单迷宫问题
#include <iostream> #include <cmath> #include <string> #include <stack> #include<queue> using namespace std; const int N = 105; int dir[4][2] = { 0,1,1,0,0,-1,-1,0 };...
2018-12-16 15:20:47
183
原创 堆栈迷宫搜索
#include <iostream> #include <cmath> #include <string> #include <stack> using namespace std; const int N = 105; int dir[4][2] = { 0,1,1,0,0,-1,-1,0 }; struct P { int x,...
2018-12-15 17:43:41
165
原创 简单火车车厢重排
#include <iostream> #include <cmath> #include <string> using namespace std; const int N = 105; int st[N]; int main() { int n; cin >> n; int sp[N]; for (int i =...
2018-12-15 17:04:10
244
原创 汉诺塔
#include <iostream> #include <cmath> #include <string> using namespace std; const int N = 105; void hanio(char a, char b, char c, int n) { if (n == 1) { cout <<...
2018-12-15 14:57:25
33
原创 括号匹配
#include <iostream> #include <cmath> #include <string> using namespace std; const int N = 105; struct node { int xs[N]; int val; node() { for (int i = 0; i &l...
2018-12-15 14:48:37
48
原创 凸包
#include <iostream> #include <cmath> #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace std; usin...
2018-12-14 14:05:42
48
原创 箱子排序
#include "Matrix.h" const int N = 105; int a[N]; int main() { int n; cin >> n; int mx, mn; cin >> a[0]; mn = mx = a[0]; for (int i = 1; i < n; i++) { ...
2018-12-13 15:38:16
167
原创 基数排序
#include "Matrix.h" const int N = 105; int a[N]; void srotbase(int bas,int n) { int out[N]; int buck[11]; buck[10] = 0; for (int i = 0; i < 10; i++) buck[i] = 0; for (in...
2018-12-13 15:27:22
37
原创 简单并查集
#include "Matrix.h" const int N = 105; int x[N]; int pre[N]; void init(int n) { for (int i = 0; i < n+1; i++) pre[i] = i; } int findf(int x) { if (pre[x] == x) return x; return ...
2018-12-13 14:56:02
53
原创 排序
#include <iostream> using namespace std; const int N = 10; int mark[N]; int x[N]; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { cin >> x[i]; ...
2018-12-12 17:33:51
29
原创 递归实现全排序
#include <iostream> using namespace std; const int N = 1000; int vis[N]; int val[N]; void print(int n,int* x,int l) { int i; bool flag = false; for (i = 0; i < n; i++) { ...
2018-12-12 17:24:05
781
原创 一字棋小游戏
根据自己的理解写的,不知道有没有错误,欢迎指教 #include <iostream> using namespace std; int map[5][5]; int mp[5][5]; int dir[12][4] = { 1,1,2,2,0,1,0,2,0,-1,0,-2,-1,-1,-2,-2, -1,1,-2,2,1,0,2,0,-1,0,-2,0,1,-1,...
2018-10-20 10:07:57
993
原创 pca笔记
pca主成分提取学习博文:http://www.cnblogs.com/pinard/p/6239403.html原文摘录:1.为什么u1比u2好呢?可以有两种解释,第一种解释是样本点到这个直线的距离足够近,第二种解释是样本点在这个直线上的投影能尽可能的分开。 2.从n维降到n‘维的投影公式 理解:1.pca原则,区分度尽量大,损失尽量小2.n’维的每一个向量是个向量在此方向上的的影响和3.基于小...
2018-04-05 21:27:03
51
原创 lbp笔记
lbp局部二值模式学习博文:https://blog.csdn.net/quincuntial/article/details/50541815 理解1.具有旋转不变性和灰度不变性,是由于他在求取局部值时。是运用了差值和旋转求最小表达式2.表示纹理特征可以理解为他的变化差异,一个位置与他周围的差别(0是黑,255是白),这也是为什么lbp偏黑,当一个点与他周围差别很大时他会偏白。3.调节尺度,可以...
2018-04-05 21:24:42
56
原创 人脸表情识别
所用表情库是JAFFE首先要避免头发等特征的影响,要对人脸定位进行切割,特征仅提取面部目前想的是定位人眼,根据人眼两点距离与人脸的比例关系进行切割要保证切割后的图片是同等大小分类采用自建Label文件...
2018-03-16 10:07:40
220
空空如也
BP神经网络,relu做激活函数,求大神帮忙
2019-01-10
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝