ECOCForestEncoder.cpp

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2012 Chiyuan Zhang
00008  * Copyright (C) 2012 Chiyuan Zhang
00009  */
00010 
00011 #include <shogun/multiclass/ecoc/ECOCForestEncoder.h>
00012 
00013 using namespace shogun;
00014 
00015 CECOCForestEncoder::CECOCForestEncoder()
00016 {
00017     m_num_trees = 3;
00018     SG_ADD(&m_num_trees, "num_trees", "number of trees", MS_NOT_AVAILABLE);
00019 }
00020 
00021 void CECOCForestEncoder::set_num_trees(int32_t num_trees)
00022 {
00023     if (num_trees < 1)
00024         SG_ERROR("number of trees (%d) should be >= 1", num_trees);
00025     m_num_trees = num_trees;
00026 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation