Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:benob/icsiboost
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Favre committed Nov 11, 2015
2 parents 8eb39af + f55393c commit 98591cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
language: c
compiler: gcc
compiler:
- gcc
- clang
script: ./configure && make
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ICSIBoost

Boosting is a meta-learning approach that aims at combining an ensemble of weak classifiers to form a strong classifier. Adaptive Boosting (Adaboost) is a greedy search for a linear combination of classifiers by overweighting the examples that are misclassified by each classifier. icsiboost implements Adaboost over stumps (one-level decision trees) on discrete and continuous attributes (words and real values). See http://en.wikipedia.org/wiki/AdaBoost and the papers by Y. Freund and R. Schapire for more details. This approach is one of the most efficient and simple to combine continuous and nominal values. Our implementation is aimed at allowing training from millions of examples by hundreds of features (or millions of sparse features) in a reasonable time/memory. It includes classification time code for c, python and java.

Here is an excellent tutorial on Boosting: http://nips.cc/Conferences/2007/Program/event.php?ID=575
Here is an excellent tutorial on Boosting: http://media.nips.cc/Conferences/2007/Tutorials/Slides/schapire-NIPS-07-tutorial.pdf

Status
------
Expand All @@ -14,6 +14,7 @@ Status
News
----

* 2015-06-23: icsiboost does not compile on OSX Yosemite with the default Xcode gcc (which links to clang). Please use macports to install a proper version of gcc.
* 2014-03-14: Migrated to github from googlecode (and from svn to git)
* 2012-05-28: Added C++ API for prediction. See test_api.cc and IcsiBoost.h
* 2012-05-21: Switched to dual license: GPL and BSD. Choose the license that best fits your project. Old revisions are GPL only.
Expand Down
7 changes: 5 additions & 2 deletions src/icsiboost.c
Original file line number Diff line number Diff line change
Expand Up @@ -2395,6 +2395,9 @@ int main(int argc, char** argv)
}
string_free(only_regex);
}
if(classes == NULL) {
die("classes not defined in names file");
}
vector_optimize(templates);
mapped_free(input);
hashtable_free(templates_by_name);
Expand Down Expand Up @@ -2786,7 +2789,7 @@ int main(int argc, char** argv)
for(l=0; l<classes->length; l++)
{
string_t* class = vector_get(classes, l);
double precision, recall, f_measure;
double precision = 0, recall = 0, f_measure = 0;

if (by_class_pred[l]!=0) {
precision = ((double)by_class_correct[l])/((double)by_class_pred[l]);
Expand All @@ -2813,7 +2816,7 @@ int main(int argc, char** argv)
for(l=0; l<classes->length; l++)
{
string_t* class = vector_get(classes, l);
double precision, recall, f_measure;
double precision = 0, recall = 0, f_measure = 0;

if (by_class_pred_argmax[l]!=0) {
precision = ((double)by_class_correct_argmax[l])/((double)by_class_pred_argmax[l]);
Expand Down

0 comments on commit 98591cb

Please sign in to comment.