Coder Social home page Coder Social logo

Comments (1)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 30, 2024
Hi

sorry i dont know how you will be able to link c code in this package with c#. 
what you can do is call the C side of the code in C and pass on whatever fields 
are required.

what you can do is take a look at this file 
http://code.google.com/p/randomforest-matlab/source/browse/trunk/RF_Class_C/src/
twonorm_C_wrapper.cpp and model your data to fit the code. I know its a very 
basic code and you might have to write code to extract the required fields like 
if you want to know feature importance, etc. I can help you out with that.

on line 62, 
http://code.google.com/p/randomforest-matlab/source/browse/trunk/RF_Class_C/src/
twonorm_C_wrapper.cpp#62 i set in the dataset size. cols is number of features 
and rows is the number of examples.

from 99-139 of the same code i read in the data
the X and Y data is represented in a file 

the filename are set at line 88 
http://code.google.com/p/randomforest-matlab/source/browse/trunk/RF_Class_C/src/
twonorm_C_wrapper.cpp#88

X data is 1 example per line and each feature/variable is separated by spaces. 
similarly Y data is 1 example per line, the same format is for regression.

the main program is then called at line 259 and the output labels are printed 
at line 267. 

i know this might be not enough to get a hang of how things are working but it 
may be a start. do tell me if you have any questions.

Original comment by abhirana on 12 Apr 2011 at 5:18

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.