pktools  2.6.7
Processing Kernel for geospatial data
pkfsann.h
1 /**********************************************************************
2 pkfsann.h: feature selection for ann classifier
3 Copyright (C) 2008-2014 Pieter Kempeneers
4 
5 This file is part of pktools
6 
7 pktools is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 pktools is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with pktools. If not, see <http://www.gnu.org/licenses/>.
19 ***********************************************************************/
20 #include <string>
21 #include <vector>
22 #include "base/Vector2d.h"
23 
24 #ifndef _PKFSANNH_H_
25 #define _PKFSANNH_H_
26 
27 enum SelectorValue { NA=0, SFFS=1, SFS=2, SBS=3, BFS=4};
28 
30 {
31  public:
33  CostFactoryANN(const std::vector<unsigned int>& nneuron, float connection, const std::vector<float> weights, float learning, unsigned int maxit, unsigned short cv, bool verbose);
34  ~CostFactoryANN();
35  double getCost(const std::vector<Vector2d<float> > &trainingFeatures);
36 
37  private:
38  std::vector<unsigned int> m_nneuron;
39  float m_connection;
40  const std::vector<float> m_weights;
41  float m_learning;
42  unsigned int m_maxit;
43 };
44 
45 
46 #endif