1 #ifndef TWO_SPIRALS_VISUALIZATION_H_
2 #define TWO_SPIRALS_VISUALIZATION_H_
11 using namespace OpenANN;
17 Eigen::MatrixXd in, out;
24 virtual int samples() {
return dataSet.samples(); }
25 virtual int inputs() {
return dataSet.inputs(); }
26 virtual int outputs() {
return dataSet.outputs(); }
27 virtual Eigen::VectorXd&
getInstance(
int i) {
return dataSet.getInstance(i); }
28 virtual Eigen::VectorXd&
getTarget(
int i) {
return dataSet.getTarget(i); }
29 virtual void finishIteration(
Learner& learner);
37 double classes[100][100];
40 bool showTraining, showTest, showPrediction, showSmooth;
46 const Eigen::MatrixXd& testInput,
const Eigen::MatrixXd& testOutput);
48 void predictClass(
int x,
int y,
double predictedClass);
51 virtual void initializeGL();
52 virtual void resizeGL(
int width,
int height);
53 virtual void paintGL();
54 void paintPrediction();
55 void paintDataSet(
bool training);
56 virtual void keyPressEvent(QKeyEvent* keyEvent);
62 #endif // TWO_SPIRALS_VISUALIZATION_H_