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-2008 Soeren Sonnenburg
00008  * Copyright (C) 1999-2008 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 CKernelPerceptron::CKernelPerceptron()
00016 : CKernelMachine()
00017 {
00018 }
00019 
00020 
00021 CKernelPerceptron::~CKernelPerceptron()
00022 {
00023 }
00024 
00025 bool CKernelPerceptron::train()
00026 {
00027     ASSERT(labels);
00028     //CLabels* train_labels=labels->get_int_labels(num_train_labels);
00029 
00030 //
00031 //# compute output activation y = f(w x)
00032 //# If y = t, don't change weights
00033 //# If y != t, update the weights:
00034 //
00035 //w(new) = w(old) + 2 m t x
00036     return false;
00037 
00038 }
00039 
00040 bool CKernelPerceptron::load(FILE* srcfile)
00041 {
00042     return false;
00043 }
00044 
00045 bool CKernelPerceptron::save(FILE* dstfile)
00046 {
00047     return false;
00048 }
00049 
00050 
00051 DREAL CKernelPerceptron::classify_example(INT num)
00052 {
00053     return 0;
00054 }

SHOGUN Machine Learning Toolbox - Documentation