xwolfs / random-forest-matlab Goto Github PK
View Code? Open in Web Editor NEWThis project forked from karpathy/random-forest-matlab
A Random Forest implementation for MATLAB. Supports arbitrary weak learners that you can define.
This project forked from karpathy/random-forest-matlab
A Random Forest implementation for MATLAB. Supports arbitrary weak learners that you can define.
Random Forest for Matlab This toolbox was written for my own education and to give me a chance to explore the models a bit. It is NOT intended for any serious applications and it does not NOT do many of things you would want a mature implementation to do, like leaf pruning. If you wish to use a strong implementation I recommend Scikit Learn / Python. For Matlab I do not really have a recommendation. --------------------------------------------------------------------------- Usage: Random Forests for classification: (see demo for more) opts.classfierID= [2, 3]; % use both 2D-linear weak learners (2) and conic (3) m= forestTrain(X, Y, opts); yhat = forestTest(m, X); fprintf('Training accuracy = %.2f\n', mean(yhat==Y)); --------------------------------------------------------------------------- More info: Currently contains random forests. The Random Forest code is not industrial strength implementation. Inspired by MSR's recent work on Random Forests: https://research.microsoft.com/apps/pubs/default.aspx?id=155552 See http://cs.stanford.edu/~karpathy/randomForestSpiral.png for results on spiral using 2-D linear weak learners. (Code that generates the image is in forestdemo.m) --------------------------------------------------------------------------- Adding your own weak learners in Ranfom Forests: It is fairly easy to add your own weak learners. Modify: weakTrain.m: add another elseif statement for classf variable, and put in code for your weak learner. Store all variables you need during test time in modelCandidate weakTest.m: add another elseif for your classifier, and implement the decision procedure, using variables you stored inside model. Now just include your new classifier when setting opts.classfierID! --------------------------------------------------------------------------- BSD Licence.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.