Algorithm-AdaBoost
view release on metacpan or search on metacpan
t/01_basic.t view on Meta::CPAN
my $answer = $classifier_candidate->($training_set->[$i]{feature});
$accuracy += $distribution->[$i] if $answer == $training_set->[$i]{label};
}
return $classifier_candidate if $accuracy > 1/2;
}
}
# f(x, y) = 1 if x^2 + y^2 < 4, -1 otherwise.
# subject to -3 <= x < 3, -3 <= y < 3.
__DATA__
1 -0.248490100750111 -0.739693407357834
1 -0.566115592376427 -1.68714313853555
1 -0.399623250750217 1.33407775536753
-1 1.39932333014989 2.54595589010434
-1 -2.09890668052825 -2.26928674627152
-1 -1.35789686105749 -2.76051974907672
1 0.0495294874471526 -0.961790183534873
-1 -2.14562371189552 2.51764233416243
1 1.27731540363029 0.241831210669432
1 1.16150264946072 1.49304025338465
-1 -2.69274234964235 -1.46871200361485
-1 -2.89310561098872 -2.81413989571512
-1 2.54696623984031 1.41616350632637
-1 0.781246866667637 2.48176816466842
-1 2.38373366136403 1.01253303786686
-1 0.600980674475842 2.88221379594241
-1 0.939597995977032 -2.83339742205175
-1 2.28972352960461 -0.525712426444059
-1 -2.75988102026145 -2.24446732401097
-1 2.21730008163812 -2.33850116064853
1 -1.54575431091852 -1.09897828975295
1 1.01039465416262 -1.03916319224517
-1 -2.54494588098925 2.89106013439718
-1 -0.906021606727585 -2.36200605486606
1 1.18012920171409 -1.13335728166845
1 1.0976701154454 1.51814395249566
1 0.352755644705319 -0.576001314626382
-1 1.63010120924961 -1.78558630903204
-1 2.24641222885028 0.433679372218307
1 -0.730498875458231 -0.155846827770816
1 -0.0103682274561336 0.903988972969017
-1 -2.55871684579451 2.4820246671987
-1 1.03914071391184 -2.47013455036148
-1 2.57331225205082 -2.09971455910711
1 -1.01187493679573 0.675275173414235
-1 -2.82455058874117 -1.81433702562207
-1 1.88403020752772 -2.46291432114049
-1 0.639312525703879 2.55790116121567
t/01_basic.t view on Meta::CPAN
-1 2.70753456398588 0.860477787796469
-1 -1.99931072005193 -2.33751143633613
-1 1.89584165951452 2.50454570899299
-1 -2.00704980593863 0.623995457248284
-1 -2.84002703152479 -1.58033146327864
-1 -1.58291139395475 2.30637968794711
-1 -2.29307446114598 -0.32254494578504
-1 -2.88376345569318 -2.65935706691191
1 -1.17872214603742 0.826345676791391
-1 -1.47674374201636 -2.97356010994788
1 0.240179846797439 -0.20280159790704
-1 2.55990973462466 -1.24620808281337
-1 -2.72785123008797 -0.538451905789543
-1 -2.40886684099905 -0.638264526325102
1 1.08303317589769 1.1836049853267
-1 -1.3051738549532 2.37448524956604
-1 -1.85865270957434 1.01140245576238
1 -0.53376285724385 0.132924238010489
-1 -2.32508835865509 1.97674579149046
-1 2.76602123387116 -1.55680123897706
-1 -2.67309018143889 -0.457637907693766
t/01_basic.t view on Meta::CPAN
1 1.13952028078406 -0.557018585820572
1 0.551062371349367 -0.151532485705687
-1 2.62693186827084 0.954464859489264
-1 2.17468528406213 1.34042630901571
1 1.65011836324728 -1.04252492090143
-1 -1.60753788397198 2.7090566431434
-1 2.57134867447035 1.87519126037543
1 -1.6353880249475 -0.0634971620440155
-1 2.05797100681186 0.732840572731504
-1 1.90413319315332 -1.46861512348444
-1 -1.71325070600142 -1.5583420208246
-1 -2.91582217109359 2.81685244336951
-1 -2.07105679951204 -2.34569170833856
-1 1.33953791634145 1.72801867897975
1 1.25569267804479 0.179747974963988
-1 1.99226999160644 -0.92117624507209
-1 -2.11558722306072 -1.50894068144618
1 0.882148185945148 -0.837240825715028
-1 2.20581768073031 -1.96538282836374
1 0.686498173042686 -1.53262710168893
-1 2.32342163232791 -0.172342151867838
( run in 0.626 second using v1.01-cache-2.11-cpan-7add2cbd662 )