Code Monkey home page Code Monkey logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.