PLearn 0.1
plearn_tut.cc
Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 // plearn.cc
00004 // Copyright (C) 2002 Pascal Vincent, Julien Keable, Xavier Saint-Mleux, Rejean Ducharme
00005 //
00006 // Redistribution and use in source and binary forms, with or without
00007 // modification, are permitted provided that the following conditions are met:
00008 // 
00009 //  1. Redistributions of source code must retain the above copyright
00010 //     notice, this list of conditions and the following disclaimer.
00011 // 
00012 //  2. Redistributions in binary form must reproduce the above copyright
00013 //     notice, this list of conditions and the following disclaimer in the
00014 //     documentation and/or other materials provided with the distribution.
00015 // 
00016 //  3. The name of the authors may not be used to endorse or promote
00017 //     products derived from this software without specific prior written
00018 //     permission.
00019 // 
00020 // THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
00021 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00022 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
00023 // NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00024 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
00025 // TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 // 
00031 // This file is part of the PLearn library. For more information on the PLearn
00032 // library, go to the PLearn Web site at www.plearn.org
00033 
00034 
00035 /* *******************************************************      
00036  * $Id: plearn_light.cc 3635 2005-06-22 19:58:47Z plearner $
00037  ******************************************************* */
00038 
00040 #define PLEARN_MAJOR_VERSION 0
00041 #define PLEARN_MINOR_VERSION 92
00042 #define PLEARN_FIXLEVEL 0
00043 
00044 /*****************
00045  * Miscellaneous *
00046  *****************/
00047 // #include <plearn_learners/misc/Grapher.h>
00048 // #include <plearn_learners/misc/VariableSelectionWithDirectedGradientDescent.h>
00049 // #include <plearn/math/ManualBinner.h>
00050 // #include <plearn/math/SoftHistogramBinner.h>
00051 // #include <plearn/misc/ShellScript.h>
00052 // #include <plearn/misc/RunObject.h>
00053 // #include <plearn/db/UCISpecification.h>
00054 // #include <plearn_learners/testers/PTester.h>
00055 
00056 /***********
00057  * Command *
00058  ***********/
00059 // #include <commands/PLearnCommands/AutoRunCommand.h>
00060 // #include <commands/PLearnCommands/FieldConvertCommand.h>
00061 #include <commands/PLearnCommands/HelpCommand.h>
00062 // #include <commands/PLearnCommands/JulianDateCommand.h>
00063 // #include <commands/PLearnCommands/KolmogorovSmirnovCommand.h>
00064 #include <commands/PLearnCommands/LearnerCommand.h>
00065 // #include <commands/PLearnCommands/ReadAndWriteCommand.h>
00066 #include <commands/PLearnCommands/RunCommand.h>
00067 // #include <commands/PLearnCommands/ServerCommand.h>
00068 // #include <commands/PLearnCommands/TestDependenciesCommand.h>
00069 // #include <commands/PLearnCommands/TestDependencyCommand.h>
00070 // #include <commands/PLearnCommands/TxtmatCommand.h>
00071 
00072 #include <commands/PLearnCommands/VMatCommand.h>
00073 // #include <commands/PLearnCommands/HTMLHelpCommand.h>
00074 
00075 /**************
00076  * Dictionary *
00077  **************/
00078 // #include <plearn/dict/Dictionary.h>
00079 // #include <plearn/dict/FileDictionary.h>
00080 // #include <plearn/dict/VecDictionary.h>
00081 
00082 /****************
00083  * HyperCommand *
00084  ****************/
00085 // #include <plearn_learners/hyper/HyperOptimize.h>
00086 // #include <plearn_learners/hyper/HyperRetrain.h>
00087 
00088 /**********
00089  * Kernel *
00090  **********/
00091 // #include <plearn/ker/AdditiveNormalizationKernel.h>
00092 // #include <plearn/ker/DistanceKernel.h>
00093 // #include <plearn/ker/DotProductKernel.h>
00094 // #include <plearn/ker/EpanechnikovKernel.h>
00095 // #include <plearn/ker/GaussianKernel.h>
00096 // #include <plearn/ker/GeodesicDistanceKernel.h>
00097 // #include <plearn/ker/LLEKernel.h>
00098 // #include <plearn/ker/NegOutputCostFunction.h>
00099 // #include <plearn/ker/ReconstructionWeightsKernel.h>
00100 // #include <plearn/ker/ThresholdedKernel.h>
00101 // #include <plearn/ker/VMatKernel.h>
00102 
00103 /*************
00104  * Optimizer *
00105  *************/
00106 // #include <plearn/opt/AdaptGradientOptimizer.h>
00107 // #include <plearn/opt/ConjGradientOptimizer.h>
00108 // #include <plearn/opt/GradientOptimizer.h>
00109  
00110 /****************
00111  * OptionOracle *
00112  ****************/
00113 // #include <plearn_learners/hyper/CartesianProductOracle.h>
00114 // #include <plearn_learners/hyper/EarlyStoppingOracle.h>
00115 // #include <plearn_learners/hyper/ExplicitListOracle.h>
00116 // #include <plearn_learners/hyper/OptimizeOptionOracle.h>
00117 
00118 /************
00119  * PLearner *
00120  ************/
00121 
00122 // Classifiers
00123 // #include <plearn_learners/meta/AdaBoost.h>
00124 // #include <plearn_learners/classifiers/BinaryStump.h>
00125 // #include <plearn_learners/classifiers/ClassifierFromDensity.h>
00126 // #include <plearn_learners/classifiers/KNNClassifier.h>
00127 // #include <plearn_learners/classifiers/MultiInstanceNNet.h>
00128 //#include <plearn_learners/classifiers/OverlappingAdaBoost.h> // Does not currently compile.
00129 
00130 // Generic
00131 // #include <plearn_learners/generic/AddCostToLearner.h>
00132 // #include <plearn_learners/generic/AddLayersNNet.h>
00133 // #include <plearn_learners/generic/NNet.h>
00134 // #include <plearn_learners/generic/SelectInputSubsetLearner.h>
00135 // #include <plearn_learners/generic/StackedLearner.h>
00136 // #include <plearn_learners/generic/TestingLearner.h>
00137 
00138 // Hyper
00139 // #include <plearn_learners/hyper/HyperLearner.h>
00140 // 
00141 // Regressors
00142 // #include <plearn_learners/regressors/ConstantRegressor.h>
00143 // #include <plearn_learners/regressors/KNNRegressor.h>
00144 #include <plearn_learners/regressors/LinearRegressor.h>
00145 // #include <plearn_learners/regressors/PLS.h>
00146 // #include <plearn_learners/regressors/RankLearner.h>
00147 
00148 // Distribution (deprecated)
00149 // #include <plearn_learners/distributions/LocallyWeightedDistribution.h>
00150  
00151 // Unsupervised/KernelProjection
00152 // #include <plearn_learners/unsupervised/Isomap.h>
00153 // #include <plearn_learners/unsupervised/KernelPCA.h>
00154 // #include <plearn_learners/unsupervised/LLE.h>
00155 // #include <plearn_learners/unsupervised/PCA.h>
00156 // #include <plearn_learners/unsupervised/SpectralClustering.h>
00157 // #include <plearn_learners/unsupervised/UniformizeLearner.h>
00158  
00159 // PDistribution
00160 // #include <plearn_learners/distributions/ConditionalDensityNet.h>
00161 // #include <plearn_learners/distributions/GaussianDistribution.h>
00162 // #include <plearn_learners/distributions/GaussianContinuumDistribution.h>
00163 // #include <plearn_learners/distributions/ManifoldParzen2.h>
00164 #include <plearn_learners/distributions/ParzenWindow.h>
00165 // #include <plearn_learners/distributions/SpiralDistribution.h>
00166 // #include <plearn_learners/distributions/UniformDistribution.h>
00167  
00168 // Nearest-Neighbors
00169 // #include <plearn_learners/nearest_neighbors/ExhaustiveNearestNeighbors.h>
00170 // #include <plearn_learners/nearest_neighbors/GenericNearestNeighbors.h>
00171  
00172 /************
00173  * Splitter *
00174  ************/
00175 // #include <plearn/vmat/BinSplitter.h>
00176 // #include <plearn/vmat/ConcatSetsSplitter.h>
00177 // #include <plearn/vmat/DBSplitter.h>
00178 // #include <plearn/vmat/ExplicitSplitter.h>
00179 // #include <plearn/vmat/FilterSplitter.h>
00180 // #include <plearn/vmat/FractionSplitter.h>
00181 // #include <plearn/vmat/KFoldSplitter.h>
00182 // #include <plearn/vmat/NoSplitSplitter.h>
00183 // #include <plearn/vmat/RepeatSplitter.h>
00184 // #include <plearn/vmat/SourceVMatrixSplitter.h>
00185 // #include <plearn/vmat/StackedSplitter.h>
00186 // #include <plearn/vmat/TestInTrainSplitter.h>
00187 // #include <plearn/vmat/ToBagSplitter.h>
00188 // #include <plearn/vmat/TrainTestSplitter.h>
00189 // #include <plearn/vmat/TrainValidTestSplitter.h>
00190 // #include <plearn/vmat/UCIDataVMatrix.h>
00191 
00192 /************
00193  * Variable *
00194  ************/
00195 // #include <plearn/var/MatrixElementsVariable.h>
00196 
00197 /*********************
00198  * VecStatsCollector *
00199  *********************/
00200 // #include <plearn/math/LiftStatsCollector.h>
00201 
00202 /***********
00203  * VMatrix *
00204  ***********/
00205 // #include <plearn/vmat/AsciiVMatrix.h>
00206 // #include <plearn/vmat/AutoVMatrix.h>
00207 // #include <plearn/vmat/BatchVMatrix.h>
00208 // #include <plearn/vmat/BootstrapVMatrix.h>
00209 // #include <plearn/vmat/CenteredVMatrix.h>
00210 // #include <plearn/vmat/CompactVMatrix.h>
00211 // #include <plearn/vmat/CompressedVMatrix.h>
00212 // #include <plearn/vmat/CumVMatrix.h>
00213 // #include <plearn/vmat/DatedJoinVMatrix.h>
00214 // #include <plearn/vmat/DictionaryVMatrix.h>
00215 // #include <plearn/vmat/DisregardRowsVMatrix.h>
00216 // #include <plearn/vmat/ExtractNNetParamsVMatrix.h>
00217 // #include <plearn/vmat/FilteredVMatrix.h>
00218 // #include <plearn/vmat/FinancePreprocVMatrix.h>
00219 // #include <plearn/vmat/GeneralizedOneHotVMatrix.h>
00220 // #include <plearn/vmat/GetInputVMatrix.h>
00221 // #include <plearn/vmat/GramVMatrix.h>
00222 // #include <plearn/vmat/IndexedVMatrix.h>
00223 // #include <plearn/vmat/JulianizeVMatrix.h>
00224 // #include <plearn/vmat/KNNVMatrix.h>
00225 // #include <plearn/vmat/LocalNeighborsDifferencesVMatrix.h>
00226 // #include <plearn/vmat/LocallyPrecomputedVMatrix.h>
00227 // #include <plearn/vmat/MultiInstanceVMatrix.h>
00228 // #include <plearn/vmat/MultiToUniInstanceSelectRandomVMatrix.h>
00229 // #include <plearn/vmat/OneHotVMatrix.h>
00230 // #include <plearn/vmat/PLearnerOutputVMatrix.h>
00231 // #include <plearn/vmat/PairsVMatrix.h>
00232 // #include <plearn/vmat/PrecomputedVMatrix.h>
00233 // #include <plearn/vmat/ProcessingVMatrix.h>
00234 // #include <plearn/vmat/RankedVMatrix.h>
00235 // #include <plearn/vmat/RegularGridVMatrix.h>
00236 // #include <plearn/vmat/RemoveDuplicateVMatrix.h>
00237 // #include <plearn/vmat/SelectAttributsSequenceVMatrix.h>
00238 // #include <plearn/vmat/ShuffleColumnsVMatrix.h>
00239 // #include <plearn/vmat/SortRowsVMatrix.h>
00240 // #include <plearn/vmat/SparseVMatrix.h>
00241 // #include <plearn/vmat/SubInputVMatrix.h>
00242 // #include <plearn/vmat/TextFilesVMatrix.h>
00243 // #include <plearn/vmat/ThresholdVMatrix.h>
00244 // #include <plearn/vmat/TransposeVMatrix.h>
00245 // #include <plearn/vmat/VMatrixFromDistribution.h>
00246 // #include <plearn/vmat/ViewSplitterVMatrix.h>
00247 #include <plearn/vmat/SelectRowsVMatrix.h>
00248 
00249 
00250 
00251 #include "PLearnCommands/plearn_main.h"
00252 
00253 using namespace PLearn;
00254 
00255 int main(int argc, char** argv)
00256 {
00257     return plearn_main( argc, argv, 
00258                         PLEARN_MAJOR_VERSION, 
00259                         PLEARN_MINOR_VERSION, 
00260                         PLEARN_FIXLEVEL       );
00261 }
00262 
00263 
00264 /*
00265   Local Variables:
00266   mode:c++
00267   c-basic-offset:4
00268   c-file-style:"stroustrup"
00269   c-file-offsets:((innamespace . 0)(inline-open . 0))
00270   indent-tabs-mode:nil
00271   fill-column:79
00272   End:
00273 */
00274 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=79 :
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines