This is an automated email from the git hooks/post-receive script. sebastic-guest pushed a commit to branch upstream-master in repository pktools.
commit 5ccde20693d864ab413daebb32d249f90656b1a9 Author: Pieter Kempeneers <kempe...@gmail.com> Date: Thu Jun 26 20:48:02 2014 +0200 added pkfssvm.h and pkfsann.h --- src/apps/pkfssvm.h | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/src/apps/pkfssvm.h b/src/apps/pkfssvm.h new file mode 100644 index 0000000..c4d3f72 --- /dev/null +++ b/src/apps/pkfssvm.h @@ -0,0 +1,57 @@ +/********************************************************************** +pkfssvm.h: feature selection for svm classifier +Copyright (C) 2008-2014 Pieter Kempeneers + +This file is part of pktools + +pktools is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pktools is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pktools. If not, see <http://www.gnu.org/licenses/>. +***********************************************************************/ +#include <string> +#include <vector> +#include "base/Vector2d.h" + +#ifndef _PKFSSVMH_H_ +#define _PKFSSVMH_H_ +namespace svm{ + enum SVM_TYPE {C_SVC=0, nu_SVC=1,one_class=2, epsilon_SVR=3, nu_SVR=4}; + enum KERNEL_TYPE {linear=0,polynomial=1,radial=2,sigmoid=3}; +} + +enum SelectorValue { NA=0, SFFS=1, SFS=2, SBS=3, BFS=4}; + +class CostFactorySVM : public CostFactory +{ +public: +CostFactorySVM(); +CostFactorySVM(std::string svm_type, std::string kernel_type, unsigned short kernel_degree, float gamma, float coef0, float ccost, float nu, float epsilon_loss, int cache, float epsilon_tol, bool shrinking, bool prob_est, unsigned short cv, bool verbose); +~CostFactorySVM(); +double getCost(const std::vector<Vector2d<float> > &trainingFeatures); + +private: +std::string m_svm_type; +std::string m_kernel_type; +unsigned short m_kernel_degree; +float m_gamma; +float m_coef0; +float m_ccost; +float m_nu; +float m_epsilon_loss; +int m_cache; +float m_epsilon_tol; +bool m_shrinking; +bool m_prob_est; +}; + + +#endif -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel