Comments (3)
i am guessing that would be possible, but some c-code array would need to be
changed.
i think the best approach would be to say sample and create inbag/outbag
indices for the trees outside in the matlab and then make the tree sample
according to that inbag/outbag indices. that way you can tear up the sampling
away from the c-code.
i am guessing you want the inbag/outbag created as follows: assuming that each
subject is a sample and then bootstrap sample from the subject array and then
sample from each subject some samples to create some sort of hierarchical
sampling.
anyways, i think it can be doable. i am not sure if you will be upto coding
some C-code because i am a bit held up till the end of april so i may not be
able to code it up before then
https://code.google.com/p/randomforest-matlab/source/browse/trunk/RF_Reg_C/src/r
eg_RF.cpp#386
https://code.google.com/p/randomforest-matlab/source/browse/trunk/RF_Class_C/src
/classRF.cpp#404
i guess you can put options there use a predefined oob/inbag indices or use the
existing path if that array is not present.
Original comment by abhirana
on 28 Feb 2013 at 5:52
- Changed state: Accepted
from randomforest-matlab.
Yeah, what you said is exactly what I would want to do. Do you know if the
stratified sampling accepts 0? If so you could make multiple calls to the C
function and do a sort of hacky version of the sampling like you suggest. Other
than that I am not sure of a way to modify the sampling from MATLAB, if I've
missed something let me know cause that is definitely an option.
I am trying to avoid coding C, you may have noticed, I promise it's for good
reasons ;)
Original comment by [email protected]
on 28 Feb 2013 at 11:12
from randomforest-matlab.
i apologize for my late reply.
sorry it looks like the stratified sampling requires a non-zero value :(
hmm, looks like this will need some c coding.
Original comment by abhirana
on 9 Mar 2013 at 7:14
from randomforest-matlab.
Related Issues (20)
- weak learner HOT 1
- Compiling on Mac Lion HOT 6
- Compiled mexmaci64 for OSX 10.8.2 (Mountain Lion) HOT 2
- about the unbalanced data HOT 32
- Segmentation violation problem HOT 2
- memory leak in HOT 1
- probability of classes for highly skewed dataset HOT 2
- Feature Normalization HOT 1
- sampsize problem
- score values from random forest HOT 1
- MATLAB crashes after tens of thousands runs !! HOT 3
- Compilation Problems with Matlab 2014a on Mac HOT 7
- How to get individual tree predictions for regression HOT 2
- use library (gcc) in matlab and error with compile of mex HOT 1
- NaN data HOT 4
- multivariate label output in regression analysis
- Matlab (randomly) crash after a number of runs HOT 5
- Directions for Bagging Regression HOT 2
- Quantifying Fractal Dimension HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from randomforest-matlab.