KernelPerceptron.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 "classifier/KernelPerceptron.h"
00012 #include "features/Labels.h"
00013 #include "lib/Mathematics.h"
00014 
00015 using namespace shogun;
00016 
00017 CKernelPerceptron::CKernelPerceptron()
00018 : CKernelMachine()
00019 {
00020 }
00021 
00022 
00023 CKernelPerceptron::~CKernelPerceptron()
00024 {
00025 }
00026 
00027 bool CKernelPerceptron::train(CFeatures* data)
00028 {
00029     ASSERT(labels);
00030     //CLabels* train_labels=labels->get_int_labels(num_train_labels);
00031 
00032 //
00033 //# compute output activation y = f(w x)
00034 //# If y = t, don't change weights
00035 //# If y != t, update the weights:
00036 //
00037 //w(new) = w(old) + 2 m t x
00038     return false;
00039 
00040 }
00041 
00042 bool CKernelPerceptron::load(FILE* srcfile)
00043 {
00044     SG_SET_LOCALE_C;
00045     SG_RESET_LOCALE;
00046     return false;
00047 }
00048 
00049 bool CKernelPerceptron::save(FILE* dstfile)
00050 {
00051     SG_SET_LOCALE_C;
00052     SG_RESET_LOCALE;
00053     return false;
00054 }
00055 
00056 
00057 float64_t CKernelPerceptron::classify_example(int32_t num)
00058 {
00059     return 0;
00060 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation