... | ... | @@ -6,8 +6,10 @@ An implementation of the AdaBoost MH (Adaptive Boosting) algorithm for classific |
|
|
:- use_module('path/to/.../src/methods/adaboost/adaboost.pl').
|
|
|
|
|
|
%% usage example
|
|
|
adaboost_initModelWithTraining([5.1,3.5,1.4, 4.9,3.0,1.4, 4.7,3.2,1.3, 4.6,3.1,1.5], 3, [0,0,1,0], 2, perceptron, 50, 0.0001),
|
|
|
adaboost_classify([3,2,0, 5,1,4, 0,0,4, 3,3,5, 0,5,5, 2,5,5], 3, PredictionList, ProbabilitiesList, _).
|
|
|
TrainData = [5.1,3.5,1.4, 4.9,3.0,1.4, 4.7,3.2,1.3, 4.6,3.1,1.5],
|
|
|
TestData = [3,2,0, 5,1,4, 0,0,4, 3,3,5, 0,5,5, 2,5,5],
|
|
|
adaboost_initModelWithTraining(TrainData, 3, [0,1,0,1], 2, perceptron, 50, 0.0001),
|
|
|
adaboost_classify(TestData, 3, PredictionList, ProbabilitiesList, _).
|
|
|
```
|
|
|
|
|
|
# Available Predicates
|
... | ... | |