Memuat
Memuat
Random Forest (TreeBagger) for Geodesy and Remote Sensing
0 views
Classify land use class with a random forest and assess the importance of the features vegetation index and texture contrast. TreeBagger builds a random forest from many bootstrapped decision trees and gives out-of-bag error and variable importance. It suits tabular classification or regression with nonlinear relations and interactions.

Classify land use class with a random forest and assess the importance of the features vegetation index and texture contrast.
| Role | Variable | Unit |
|---|---|---|
| Main | Land use class | - |
| Supporting 1 | Vegetation index | - |
| Supporting 2 | Texture contrast | - |
A 60-tree random forest predicts the class of Land use class with an OOB error of 0.110 and test accuracy of 0.944 (macro F1 0.942); Vegetation index and Texture contrast prove far more important than the two noise predictors.
Computed from illustrative synthetic data, not from a real study.
TreeBagger builds a random forest from many bootstrapped decision trees and gives out-of-bag error and variable importance. It suits tabular classification or regression with nonlinear relations and interactions.
Report the OOB error, test accuracy, and the most important variables. Explain that importance reflects predictive contribution, not causation.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
rng(7);
n = 500;
vegetation_index = randn(n, 1);
texture_contrast = randn(n, 1);
x3 = randn(n, 1);
X = [vegetation_index texture_contrast x3];
land_use_class = double(vegetation_index.^2 + texture_contrast + 0.3*randn(n, 1) > 0.8);
cv = cvpartition(land_use_class, 'HoldOut', 0.25);
Xtr = X(training(cv), :); ytr = land_use_class(training(cv));
Xte = X(test(cv), :); yte = land_use_class(test(cv));
b = TreeBagger(200, Xtr, ytr, 'Method', 'classification', ...
'OOBPrediction', 'on', 'OOBPredictorImportance', 'on', 'MinLeafSize', 3);
pred = str2double(predict(b, Xte));
fprintf('OOB error = %.3f\n', oobError(b, 'Mode', 'ensemble'));
fprintf('Test accuracy = %.3f\n', mean(pred == yte));
disp(confusionmat(yte, pred));
disp(b.OOBPermutedPredictorDeltaError);
figure;
subplot(1,2,1); plot(oobError(b)); xlabel('Number of trees'); ylabel('OOB error');
subplot(1,2,2); bar(b.OOBPermutedPredictorDeltaError);
set(gca, 'XTickLabel', {'x1', 'x2', 'x3'}); ylabel('Importance');Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$34
excl. 11% VAT
Duration: 7 working days
Output: MATLAB files + result figures
Deliverables
Package 2 · most chosen
US$100
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$219
excl. 11% VAT
Duration: 18-21 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Random Forest (TreeBagger) is commonly used at this level in Geodesy and Remote Sensing. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output MATLAB gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$34, Package 2 (your data analysis and interpretation) US$100 and Package 3 (full guidance) US$219, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. MATLAB is a trademark of The MathWorks, Inc.
Back to MATLAB portfolio