/usr/include/shogun/ui/GUIPreprocessor.h is in libshogun-dev 3.2.0-7.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | /*
* This program 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.
*
* Written (W) 1999-2008 Soeren Sonnenburg
* Written (W) 1999-2008 Gunnar Raetsch
* Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
*/
#ifndef __GUIPREPROC_H__
#define __GUIPREPROC_H__
#include <shogun/lib/config.h>
#include <shogun/lib/List.h>
#include <shogun/base/SGObject.h>
#include <shogun/preprocessor/Preprocessor.h>
namespace shogun
{
class CSGInterface;
/** @brief UI preprocessor */
class CGUIPreprocessor : public CSGObject
{
public:
/** constructor */
CGUIPreprocessor() { };
/** constructor
* @param interface
*/
CGUIPreprocessor(CSGInterface* interface);
/** destructor */
~CGUIPreprocessor();
/** create generic Preprocessor */
CPreprocessor* create_generic(EPreprocessorType type);
/** create preproc PruneVarSubMean */
CPreprocessor* create_prunevarsubmean(bool divide_by_std=false);
/** create preproc PCA */
CPreprocessor* create_pca(bool do_whitening, float64_t threshold);
/** add new preproc to list */
bool add_preproc(CPreprocessor* preproc);
/** delete last preproc in list */
bool del_preproc();
/** clean all preprocs from list */
bool clean_preproc();
/** attach preprocessor to TRAIN/TEST feature obj.
* it will also preprocess train/test data
* when a feature matrix is available
*/
bool attach_preproc(char* target, bool do_force=false);
/** @return object name */
virtual const char* get_name() const { return "GUIPreprocessor"; }
protected:
/** preprocess features
* @param trainfeat
* @param testfeat
* @param force
*/
bool preprocess_features(CFeatures* trainfeat, CFeatures* testfeat, bool force);
/** preproc all features
* @param f
* @param force
*/
bool preproc_all_features(CFeatures* f, bool force);
/** preprocs */
CList* preprocs;
/** ui */
CSGInterface* ui;
};
}
#endif
|