def test_NORBSmall():
 skip_if_no_data()
 data = NORBSmall('train')
 assert (data.X.shape == (24300, 18432))
 assert (data.X.dtype == 'float32')
 assert (data.y.shape == (24300,))
 assert (data.y_labels == 5)
 assert (data.get_topological_view().shape == (24300, 96, 96, 2))
 data = NORBSmall('test')
 assert (data.X.shape == (24300, 18432))
 assert (data.X.dtype == 'float32')
 assert (data.y.shape == (24300,))
 assert (data.y_labels == 5)
 assert (data.get_topological_view().shape == (24300, 96, 96, 2))

def test_NORBSmall ( ) : skip_if_no_data ( ) data = NORBSmall ( 'train' ) assert ( data . X . shape == ( 24300 , 18432 ) ) assert ( data . X . dtype == 'float32' ) assert ( data . y . shape == ( 24300 , ) ) assert ( data . y_labels == 5 ) assert ( data . get_topological_view ( ) . shape == ( 24300 , 96 , 96 , 2 ) ) data = NORBSmall ( 'test' ) assert ( data . X . shape == ( 24300 , 18432 ) ) assert ( data . X . dtype == 'float32' ) assert ( data . y . shape == ( 24300 , ) ) assert ( data . y_labels == 5 ) assert ( data . get_topological_view ( ) . shape == ( 24300 , 96 , 96 , 2 ) )
this function tests the norbsmall class .