<s> """<STR_LIT>""" <EOL> from unittest import TestCase <EOL> import numpy as np <EOL> import os <EOL> import sys <EOL> import hpelm <EOL> class TestAllDatasets ( TestCase ) : <EOL> def test_SigmClassification_Iris_BetterThanNaive ( self ) : <EOL> X = np . loadtxt ( "<STR_LIT>" ) <EOL> T = np . loadtxt ( "<STR_LIT>" ) <EOL> elm = hpelm . ELM ( <NUM_LIT:4> , <NUM_LIT:3> ) <EOL> elm . add_neurons ( <NUM_LIT:10> , "<STR_LIT>" ) <EOL> elm . train ( X , T , '<STR_LIT:c>' ) <EOL> Y = elm . predict ( X ) <EOL> err = elm . error ( Y , T ) <EOL> self . assertLess ( err , <NUM_LIT> ) <EOL> def test_RBFClassification_Iris_BetterThanNaive ( self ) : <EOL> X = np . loadtxt ( "<STR_LIT>" ) <EOL> T = np . loadtxt ( "<STR_LIT>" ) <EOL> elm = hpelm . ELM ( <NUM_LIT:4> , <NUM_LIT:3> ) <EOL> elm . add_neurons ( <NUM_LIT:10> , "<STR_LIT>" ) <EOL> elm . train ( X , T , '<STR_LIT:c>' ) <EOL> Y = elm . predict ( X ) <EOL> err = elm . error ( Y , T ) <EOL> self . assertLess ( err , <NUM_LIT> ) <EOL> def test_SigmRegression_Sine_BetterThanNaive ( self ) : <EOL> X = np . loadtxt ( "<STR_LIT>" ) <EOL> T = np . loadtxt ( "<STR_LIT>" ) <EOL> elm = hpelm . ELM ( <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> elm . add_neurons ( <NUM_LIT:10> , "<STR_LIT>" ) <EOL> elm . train ( X , T ) <EOL> Y = elm . predict ( X ) <EOL> err = elm . error ( Y , T ) <EOL> self . assertLess ( err , <NUM_LIT:1> ) <EOL> def test_HPELM_Sine_BetterThanNaive ( self ) : <EOL> X = "<STR_LIT>" <EOL> T = "<STR_LIT>" <EOL> Y = "<STR_LIT>" <EOL> elm = hpelm . HPELM ( <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> elm . add_neurons ( <NUM_LIT:10> , "<STR_LIT>" ) <EOL> elm . train ( X , T ) <EOL> elm . predict ( X , Y ) <EOL> err = elm . error ( Y , T ) <EOL> self . assertLess ( err , <NUM_LIT:1> ) </s>
