-
天气决策树源代码
用Information
Gain构造决策树的方法。
计算各分支的熵
“晴”的分支含2个正例3个反例,所需期望信息量为:
M(天况为晴)=-2/5 * log2 (2/5)-3/5 * log2 (3/5)
= 0. 971 bits
“多云”的分支,含4个正例0个反例:
M(天况为多云)=0
“雨”的分支,含3个正例2个反例:
M(天况为雨)=-3/5 * log2 (3/5)-2/5 * log2 (2/5)
- 2023-03-06 04:15:04下载
- 积分:1
-
神经网络压缩
此示例阐释如何一种自组织映射神经 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-12-12 16:15:04下载
- 积分:1
-
opencv harr 行人检测
用opencv写的行人检测代码,其中用到的特征是harr行人特征,图像是基于彩色图像的。分类器是自己选训练的。
- 2022-11-26 21:50:05下载
- 积分:1
-
BP神经网络实现异或功能
资源描述训练BP网络实现异或,能够实现简单的识别作用
- 2022-07-20 05:38:34下载
- 积分:1
-
Numerical Solution of Ordinary Differential Equations, mainly for Stiff Equation...
常微分方程的数值解法,主要针对Stiff方程组和边值问题。-Numerical Solution of Ordinary Differential Equations, mainly for Stiff Equations and Boundary Value Problems.
- 2022-07-25 21:32:03下载
- 积分:1
-
Goertzel基本算法在每次采样后立即进行处理,在每个第N次采样进行一次音调检测。在采用FFT算法时,我们要对成块的采样进行处理,但这并不意味着必须按块来处理...
Goertzel基本算法在每次采样后立即进行处理,在每个第N次采样进行一次音调检测。在采用FFT算法时,我们要对成块的采样进行处理,但这并不意味着必须按块来处理数据。数字处理的时间很短,因此如果每次采样都存在一次中断,那么这些数字处理完全可以在中断服务程序(ISR)内完成。或者,如果系统中存在采样缓存,那么可以持续采样,然后进行批处理。-Goertzel basic algorithms in each sample immediately after processing, in each of the first N sub-samples to conduct a tone detection. In the use of FFT algorithms, we would like to be processed into a block of samples, but this does not mean that must block processing the data. Digital processing time is very short, so if an interrupt for each sample are present, then the digital processing is fully able to interrupt service routine (ISR) to complete. Or, if the system exists in sample buffer, you can continue to sample, and then batch.
- 2022-05-27 11:46:36下载
- 积分:1
-
快速过滤关键字
使用Hash优化算法,过滤敏感词、关键字。速度棒棒的。
- 2022-03-02 15:18:01下载
- 积分:1
-
支持向量数据描述.里面有对应的图,一看就明白
支持向量数据描述.里面有对应的图,一看就明白-SVDD. There are the corresponding maps, look for one to understand
- 2022-01-26 01:28:06下载
- 积分:1
-
ACM无向连通图最小生成树
题目描述
请输出无向连通图最小生成树权重之和。
输入
第一行是2个整数,分别表示顶点个数n和边数m。接下来的m行中,每一行第一个整数表示边的开始顶点,第二个表示边的结束顶点,第三个表示这条边的权重。
(
测试数据中保证图是连通图;
没有自环;
两个顶点之间只有一条边;
0
- 2022-02-22 12:05:25下载
- 积分:1
-
多元散射校正算法,用于近红外散射数据处理,增强信噪比
多元散射校正算法,用于近红外散射数据处理,增强信噪比-function [Xcorrect]=msc(X,Xref)
msc pretreate the samples X with the Multiplicative Scatter Correct
Input
X:the matrix of the sample spectra to be Correct
Xref:the matrix of the sample spectra to be ref
Output
Xcorrect:the sample spectras was Corrected from the X
Programmer: zhimin zhang @ central south university on dec 13 ,2007
Reference: Chemometrics and Intelligent Laboratory Systems 29 (1995) 233-241
- 2023-09-03 21:40:03下载
- 积分:1