Machine.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) 1999-2009 Soeren Sonnenburg
00008  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #include <shogun/machine/Machine.h>
00012 #include <shogun/base/Parameter.h>
00013 
00014 using namespace shogun;
00015 
00016 CMachine::CMachine() : CSGObject(), max_train_time(0), labels(NULL),
00017     solver_type(ST_AUTO)
00018 {
00019     m_parameters->add(&max_train_time, "max_train_time",
00020                       "Maximum training time.");
00021     m_parameters->add((machine_int_t*) &solver_type, "solver_type");
00022     m_parameters->add((CSGObject**) &labels, "labels");
00023     m_parameters->add(&m_store_model_features, "store_model_features",
00024             "Should feature data of model be stored after training?");
00025 
00026     m_store_model_features=false;
00027 }
00028 
00029 CMachine::~CMachine()
00030 {
00031     SG_UNREF(labels);
00032 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation