OpenANN  1.1.0
An open source library for artificial neural networks.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
CreateTwoSpiralsDataSet.h File Reference
#include <Eigen/Core>
#include <OpenANN/util/AssertionMacros.h>
#include <OpenANN/Preprocessing.h>

Go to the source code of this file.

Functions

void createTwoSpiralsDataSet (int density, double maxDiameter, Eigen::MatrixXd &Xtr, Eigen::MatrixXd &Ytr, Eigen::MatrixXd &Xte, Eigen::MatrixXd &Yte)
 Creates two interlocked spirals that form different classes. More...
 

Function Documentation

void createTwoSpiralsDataSet ( int  density,
double  maxDiameter,
Eigen::MatrixXd &  Xtr,
Eigen::MatrixXd &  Ytr,
Eigen::MatrixXd &  Xte,
Eigen::MatrixXd &  Yte 
)

Creates two interlocked spirals that form different classes.

Source is available at CMU Neural Networks Benchmark Collection

Parameters
densityhigher densities result in greater data sets
maxDiameterdiameter of the points on the outer side of the spirals
Xtrtraining inputs
Ytrtraining outputs
Xtetest inputs
Ytetest outputs