Comments (5)
Hi Thomas
sorry for my late reply.
thanks for your helpful comment
will something like the attached m file help? you will need to use graphviz
(http://www.graphviz.org/) to visualize the tree. After installing graphviz,
file->new and paste the output. then its F5 to get something like the attached
figure.
i think the code correctly predicts the tree, though i will debug a bit more
and see if there is an error or anything.
you will be able to get per tree prediction if you look at 2nd and the 3rd
output [Y_new, votes, prediction_per_tree] = classRF_predict(X,model,
extra_options)
that way its possible to write code to know if permuting a feature increases
the error rate (aka feature importance)
please do tell me if you need more information.
Original comment by abhirana
on 23 Jul 2011 at 10:57
- Changed state: Started
Attachments:
from randomforest-matlab.
Hi Abhishek Jaiantilal
Thank you for a comprehensive answer. It was easy to install and apply when
logging the command window in MATLAB, however I had trouble plotting the tree
as vector format, even though the it's set to output as pdf.
But I got what I needed!
Thank you once again.
/Thomas
Original comment by [email protected]
on 8 Aug 2011 at 12:44
from randomforest-matlab.
[deleted comment]
from randomforest-matlab.
Hello Sir,
I tried to graphically view one of the tree of RF trained with mixed data (ie.
both categorical(feature 1-10) having in total 8 categories in each features
and numerical (features 11-20)) using above given code.
And the tree obtained is classifying as features 6<=13 or feature 6>13.
Similarly for feature 8 classifying on the value 12. (the obtained tree is
attached)
the categorical feature only had values between 1-8 then why it is classifying
on the value grater than 8.
Thank You
Original comment by [email protected]
on 27 Jun 2013 at 7:53
Attachments:
from randomforest-matlab.
sorry about my reply
if possible could you post the code//data that you used
tree modeling was designed using numerical features. maybe that is the reason.
Original comment by abhirana
on 3 Jul 2013 at 11:21
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
- Hierarchical sampling of data? HOT 3
- 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.