pktools 2.6.7
Processing Kernel for geospatial data
pkfsann.h
1/**********************************************************************
2pkfsann.h: feature selection for ann classifier
3Copyright (C) 2008-2014 Pieter Kempeneers
4
5This file is part of pktools
6
7pktools is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12pktools is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along 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
27enum 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);
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