randomforest-matlab

所属分类:matlab编程
开发工具:matlab
文件大小:1066KB
下载次数:48
上传日期:2015-07-21 10:05:34
上 传 者t1060821119
说明:  一个Matlab实现Random Forest的源代码,里面有使用说明和范例
(Random Forest achieve a Matlab source code, there are instructions and examples)

文件列表:
randomforest-matlab (0, 2015-05-04)
randomforest-matlab\.svn (0, 2015-02-03)
randomforest-matlab\.svn\entries (3, 2013-05-30)
randomforest-matlab\.svn\format (3, 2013-05-30)
randomforest-matlab\.svn\pristine (0, 2015-02-03)
randomforest-matlab\.svn\pristine\01 (0, 2015-02-03)
randomforest-matlab\.svn\pristine\01\01635bdaeb2ff51bf5e298bfe73e396a8cff4250.svn-base (18532, 2013-05-30)
randomforest-matlab\.svn\pristine\0f (0, 2015-02-03)
randomforest-matlab\.svn\pristine\0f\0f49e079410a6b8a55204f06bbe10354f7186ef6.svn-base (12043, 2013-05-30)
randomforest-matlab\.svn\pristine\0f\0f7140a34665413483ffb482a5343cb87bc587c6.svn-base (3788, 2013-05-30)
randomforest-matlab\.svn\pristine\16 (0, 2015-02-03)
randomforest-matlab\.svn\pristine\16\165e00b6bcd31149c80b24600a52dce7aea355e0.svn-base (2355, 2013-05-30)
randomforest-matlab\.svn\pristine\16\16fd50c40bce7f1ddd441f72e2763a06871e4bc1.svn-base (96300, 2013-05-30)
randomforest-matlab\.svn\pristine\1f (0, 2015-02-03)
randomforest-matlab\.svn\pristine\1f\1f41ad0ff3b53ad39958bd0c545c63b64b4c37e6.svn-base (2338, 2013-05-30)
randomforest-matlab\.svn\pristine\20 (0, 2015-02-03)
randomforest-matlab\.svn\pristine\20\20e54f61916a62610129ded5e039b53e8fe68797.svn-base (2523, 2013-05-30)
randomforest-matlab\.svn\pristine\23 (0, 2015-02-03)
randomforest-matlab\.svn\pristine\23\2313a9fc5cf6000d91e490279cbe316f9dc5010f.svn-base (623, 2013-05-30)
randomforest-matlab\.svn\pristine\2b (0, 2015-02-03)
randomforest-matlab\.svn\pristine\2b\2bc0bfa66abbaca54637bb9bc54dfb79c572b5ce.svn-base (1620, 2013-05-30)
randomforest-matlab\.svn\pristine\2c (0, 2015-02-03)
randomforest-matlab\.svn\pristine\2c\2c6a35f92bc532e8cde88c0dd9a5548bcd081a32.svn-base (600, 2013-05-30)
randomforest-matlab\.svn\pristine\2e (0, 2015-02-03)
randomforest-matlab\.svn\pristine\2e\2e17ff269b2335939b0fe90d2710e9a32919a782.svn-base (1311, 2013-05-30)
randomforest-matlab\.svn\pristine\2f (0, 2015-02-03)
randomforest-matlab\.svn\pristine\2f\2f6176808f46c4fc19419ca90fdceda87876e4ab.svn-base (6205, 2013-05-30)
randomforest-matlab\.svn\pristine\37 (0, 2015-02-03)
randomforest-matlab\.svn\pristine\37\379d938ad54794bd2a9cb7e87460c1f6570b03c7.svn-base (43520, 2013-05-30)
randomforest-matlab\.svn\pristine\3e (0, 2015-02-03)
randomforest-matlab\.svn\pristine\3e\3e22d44f82906f7b68be6fa6d5f60bc5511dda8a.svn-base (560, 2013-05-30)
randomforest-matlab\.svn\pristine\41 (0, 2015-02-03)
randomforest-matlab\.svn\pristine\41\417b83ab6f94f7b9df52755b96762c87c9873469.svn-base (1293, 2013-05-30)
randomforest-matlab\.svn\pristine\47 (0, 2015-02-03)
randomforest-matlab\.svn\pristine\47\4700822acfb3056c83d63367f00613cac5cd3028.svn-base (1321, 2013-05-30)
randomforest-matlab\.svn\pristine\4a (0, 2015-02-03)
randomforest-matlab\.svn\pristine\4a\4a0b37570861e225c92b3a84c37d0c3ac8ee0544.svn-base (7678, 2013-05-30)
randomforest-matlab\.svn\pristine\52 (0, 2015-02-03)
randomforest-matlab\.svn\pristine\52\522bc4b095a2b01e0109c7f08f409773a1c82776.svn-base (11711, 2013-05-30)
randomforest-matlab\.svn\pristine\55 (0, 2015-02-03)
... ...

mex/standalone interface to Andy Liaw et al.'s C code (used in R package randomForest) Added by Abhishek Jaiantilal ( abhishek.jaiantilal@colorado.edu ) License: GPLv2 Version: 0.02 REGRESSION BASED RANDOMFOREST ****A tutorial for matlab now in tutorial_ClassRF.m**** Ways to generate Mex's and Standalone files ___STANDALONE____ (not exactly standalone but an interface via C) An example for a C file using the pima indian diabetes dataset for regression is shown in src/diabetes_C_wrapper.cpp This is a standalone version that needs to set right parameters in CPP file. Compiling in windows: Method 1: use cygwin and make: go to current directory and run 'make diabetes' in cygwin command prompt. Need to have gcc/g++ installed. Will generate diabetes_test.exe Method 2: use DevC++ (download from http://www.bloodshed.net/devcpp.html ). Open the diabetes_C_devc.dev file which is a project file which has the sources etc set. Just compile and run. Will generate diabetes_C_devc.exe Compiling in linux: Method 1: use linux and make: go to this directory and run 'make diabetes' in command prompt. Need to have gcc/g++ installed. Will generate diabetes_test. run as ./diabetes_test ___MATLAB___ generates Mex files that can be called in Matlab directly. Compiling in windows: Use the compile_windows.m and run in windows. It will compile and generate appropriate mex files. Need Visual C++ or some other compiler (VC++ express edition also works). Won't work with Matlab's inbuilt compiler (lcc) Compiling in linux: Use the compile_linux.m and run in windows. It will compile and generate appropriate mex files. Using the Mex interface: There are 2 functions regRF_train and regRF_predict as given below. See the sample file test_RegRF_extensively.m %function Y_hat = regRF_predict(X,model) %requires 2 arguments %X: data matrix %model: generated via regRF_train function %function model = regRF_train(X,Y,ntree,mtry) %requires 2 arguments and the rest 2 are optional %X: data matrix %Y: target values %ntree (optional): number of trees (default is 500) %mtry (default is max(floor(D/3),1) D=number of features in X) Version History: v0.02 (May-15-09):Updated so that regression package now has about 95% of the total options that the R-package gives. Woohoo. Tracing of what happening behind screen works better. v0.01 (Mar-22-09): very basic interface for mex/standalone to Liaw et al's randomForest Package supports only ntree and mtry changing for time being.

近期下载者

相关文件


收藏者