Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::LearnerCommand Class Reference

#include <LearnerCommand.h>

Inheritance diagram for PLearn::LearnerCommand:

Inheritance graph
[legend]
Collaboration diagram for PLearn::LearnerCommand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LearnerCommand ()
virtual void run (const vector< string > &args)
 The actual implementation of the 'LearnerCommand' command.


Static Public Member Functions

void train (const string &learner_spec_file, const string &trainset_spec, const string &save_learner_file)
void test (const string &trained_learner_file, const string &testset_spec, const string &stats_file, const string &outputs_file, const string &costs_file)
void compute_outputs (const string &trained_learner_file, const string &test_inputs_spec, const string &outputs_file)

Static Protected Attributes

PLearnCommandRegistry reg_
 This allows to register the 'LearnerCommand' command in the command registry.


Constructor & Destructor Documentation

PLearn::LearnerCommand::LearnerCommand  ) 
 

Definition at line 57 of file LearnerCommand.cc.

References PLearn::save(), and PLearn::use().


Member Function Documentation

void PLearn::LearnerCommand::compute_outputs const string trained_learner_file,
const string test_inputs_spec,
const string outputs_file
[static]
 

Definition at line 106 of file LearnerCommand.cc.

References PLearn::getDataSet(), PLearn::VMat::length(), and PLearn::load().

Referenced by run().

void PLearn::LearnerCommand::run const vector< string > &  args  )  [virtual]
 

The actual implementation of the 'LearnerCommand' command.

Implements PLearn::PLearnCommand.

Definition at line 117 of file LearnerCommand.cc.

References compute_outputs(), PLERROR, test(), and train().

void PLearn::LearnerCommand::test const string trained_learner_file,
const string testset_spec,
const string stats_file,
const string outputs_file,
const string costs_file
[static]
 

Definition at line 87 of file LearnerCommand.cc.

References PLearn::getDataSet(), PLearn::VMat::length(), PLearn::load(), and PLearn::save().

Referenced by run().

void PLearn::LearnerCommand::train const string learner_spec_file,
const string trainset_spec,
const string save_learner_file
[static]
 

Definition at line 73 of file LearnerCommand.cc.

References PLearn::getDataSet(), PLearn::load(), and PLearn::save().

Referenced by run().


Member Data Documentation

PLearnCommandRegistry PLearn::LearnerCommand::reg_ [static, protected]
 

This allows to register the 'LearnerCommand' command in the command registry.


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:28:03 2004 for PLearn by doxygen 1.3.7