【预测模型】基于极端随机树实现数据回归预测和分类附matlab代码

简介: 【预测模型】基于极端随机树实现数据回归预测和分类附matlab代码

1 简介

2 部分代码

function [ensemble,output,scores,depths] = buildAnEnsemble(M,K,nmin,data,problemType,inputType,sampleWeights)%% Builds an ensemble of Extra-Trees for regression or classification% datasets%  % Inputs : % M             = number of trees in the ensemble% K             = number of attributes randomly selected at each node% nmin          = minimum sample size for splitting a node% data          = calibration dataset (targets are in the last column) % problemType   = specify problem type (1 for regression, zero for classification)% inputType     = binary vector indicating feature type(0:categorical,1:numerical)% sampleWeights = weights of the samples (used for IterativeInputSelection)% only include input type for classification problems% %% Outputs : % ensemble  = the ensemble, which is a M-long array of Extra-Tree structs  %             (see buildAnExtraTree for the details regarding each field)   % output    = predictions of the ensemble on the training data set %%%% Copyright 2015 Ahmad Alsahaf% Research fellow, Politecnico di Milano% ahmadalsahaf@gmail.com%% Copyright 2014 Riccardo Taormina % Ph.D. Student, Hong Kong Polytechnic University  % riccardo.taormina@gmail.com %% Please refer to README.txt for bibliographical references on Extra-Trees!%% This file is part of MATLAB_ExtraTrees%%     MATLAB_ExtraTrees is free software: you can redistribute it and/or modify%     it under the terms of the GNU General Public License as published by%     the Free Software Foundation, either version 3 of the License, or%     (at your option) any later version.% %     MATLAB_ExtraTrees is distributed in the hope that it will be useful,%     but WITHOUT ANY WARRANTY; without even the implied warranty of%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%     GNU General Public License for more details.% %     You should have received a copy of the GNU General Public License%     along with MATLAB_ExtraTrees_classification.  If not, see <http://www.gnu.org/licenses/>.if problemType == 0    [ensemble,output,scores,depths] = buildAnEnsemble_r(M,K,nmin,data);    else    [ensemble,output,scores,depths] = buildAnEnsemble_c(M,K,nmin,data,inputType,sampleWeights);%     [ensemble,output,scores,depths] = buildAnEnsemble_c(M,K,nmin,data,sampleWeights);end

3 仿真结果

4 参考文献

[1]金康荣, 於东军. 基于加权朴素贝叶斯分类器和极端随机树的蛋白质接触图预测[J]. 南京航空航天大学学报, 2018, 50(5):10.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。


相关文章
|
27天前
|
机器学习/深度学习 算法 机器人
【水下图像增强融合算法】基于融合的水下图像与视频增强研究(Matlab代码实现)
【水下图像增强融合算法】基于融合的水下图像与视频增强研究(Matlab代码实现)
159 0
|
27天前
|
算法 定位技术 计算机视觉
【水下图像增强】基于波长补偿与去雾的水下图像增强研究(Matlab代码实现)
【水下图像增强】基于波长补偿与去雾的水下图像增强研究(Matlab代码实现)
|
27天前
|
算法 机器人 计算机视觉
【图像处理】水下图像增强的颜色平衡与融合技术研究(Matlab代码实现)
【图像处理】水下图像增强的颜色平衡与融合技术研究(Matlab代码实现)
|
27天前
|
新能源 Java Go
【EI复现】参与调峰的储能系统配置方案及经济性分析(Matlab代码实现)
【EI复现】参与调峰的储能系统配置方案及经济性分析(Matlab代码实现)
|
27天前
|
机器学习/深度学习 算法 机器人
使用哈里斯角Harris和SIFT算法来实现局部特征匹配(Matlab代码实现)
使用哈里斯角Harris和SIFT算法来实现局部特征匹配(Matlab代码实现)
129 8
|
27天前
|
机器学习/深度学习 编解码 算法
基于OFDM技术的水下声学通信多径信道图像传输研究(Matlab代码实现)
基于OFDM技术的水下声学通信多径信道图像传输研究(Matlab代码实现)
113 8
|
27天前
|
机器学习/深度学习 数据采集 测试技术
基于CEEMDAN-VMD-BiLSTM的多变量输入单步时序预测研究(Matlab代码实现)
基于CEEMDAN-VMD-BiLSTM的多变量输入单步时序预测研究(Matlab代码实现)
|
27天前
|
机器学习/深度学习 算法 自动驾驶
基于导向滤波的暗通道去雾算法在灰度与彩色图像可见度复原中的研究(Matlab代码实现)
基于导向滤波的暗通道去雾算法在灰度与彩色图像可见度复原中的研究(Matlab代码实现)
137 8
|
27天前
|
机器学习/深度学习 供应链 算法
【电动车】基于削峰填谷的电动汽车多目标优化调度策略研究(Matlab代码实现)
【电动车】基于削峰填谷的电动汽车多目标优化调度策略研究(Matlab代码实现)
|
27天前
|
传感器 机器学习/深度学习 算法
【无人机协同】动态环境下多无人机系统的协同路径规划与防撞研究(Matlab代码实现)
【无人机协同】动态环境下多无人机系统的协同路径规划与防撞研究(Matlab代码实现)
128 0

热门文章

最新文章