OpenANN  1.1.0
An open source library for artificial neural networks.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions
TwoSpiralsDataSet Class Reference

#include <TwoSpiralsVisualization.h>

+ Inheritance diagram for TwoSpiralsDataSet:

Public Member Functions

 TwoSpiralsDataSet (const Eigen::MatrixXd &inputs, const Eigen::MatrixXd &outputs)
 
void setVisualization (TwoSpiralsVisualization *visualization)
 
virtual ~TwoSpiralsDataSet ()
 
virtual int samples ()
 Number of instances. More...
 
virtual int inputs ()
 Input dimensions of instances. More...
 
virtual int outputs ()
 Output dimensions of instances. More...
 
virtual Eigen::VectorXd & getInstance (int i)
 Get the input of the ith instance. More...
 
virtual Eigen::VectorXd & getTarget (int i)
 Get the output of the ith instance. More...
 
virtual void finishIteration (Learner &learner)
 This function is called after an iteration of the optimization algorithm. More...
 
- Public Member Functions inherited from OpenANN::DataSet
virtual ~DataSet ()
 

Constructor & Destructor Documentation

TwoSpiralsDataSet::TwoSpiralsDataSet ( const Eigen::MatrixXd &  inputs,
const Eigen::MatrixXd &  outputs 
)
virtual TwoSpiralsDataSet::~TwoSpiralsDataSet ( )
inlinevirtual

Member Function Documentation

void TwoSpiralsDataSet::finishIteration ( Learner learner)
virtual

This function is called after an iteration of the optimization algorithm.

It could log results, modify or extend the data set or whatever.

Parameters
learnerlearned model

Implements OpenANN::DataSet.

virtual Eigen::VectorXd& TwoSpiralsDataSet::getInstance ( int  n)
inlinevirtual

Get the input of the ith instance.

Parameters
nnumber of instance
Returns
input

Implements OpenANN::DataSet.

virtual Eigen::VectorXd& TwoSpiralsDataSet::getTarget ( int  n)
inlinevirtual

Get the output of the ith instance.

Parameters
nnumber of instance
Returns
output

Implements OpenANN::DataSet.

virtual int TwoSpiralsDataSet::inputs ( )
inlinevirtual

Input dimensions of instances.

Returns
number of inputs

Implements OpenANN::DataSet.

virtual int TwoSpiralsDataSet::outputs ( )
inlinevirtual

Output dimensions of instances.

Returns
number of outputs

Implements OpenANN::DataSet.

virtual int TwoSpiralsDataSet::samples ( )
inlinevirtual

Number of instances.

Assumes that the data set has a fixed size, at least for one iteration of the optimization algorithm.

Returns
number of examples

Implements OpenANN::DataSet.

void TwoSpiralsDataSet::setVisualization ( TwoSpiralsVisualization visualization)

The documentation for this class was generated from the following files: