test_type_conversion

Module: tests.unittests.nodes.type_manipulation.test_type_conversion

This module contains unittests which test FeatureVector2TimeSeriesNode.

Author:Titiruck Nuntapramote (titiruck.nuntapramote@dfki.de)
Created:2011/10/18

Inheritance diagram for pySPACE.tests.unittests.nodes.type_manipulation.test_type_conversion:

Inheritance diagram of pySPACE.tests.unittests.nodes.type_manipulation.test_type_conversion

Class Summary

FeatureVector2TimeSeriesTestCase([methodName]) Test whether 2 TimeSeries are equal after converting using FeatureVector2TimeSeriesNode.
Prediction2FeaturesTestCase([methodName]) Test Prediction2FeaturesNode
Features2PredictionTestCase([methodName]) Test Features2PredictionNode
Feature2MonoTimeSeriesTestCase([methodName]) Some simple tests, if conversion works as expected
MonoTimeSeries2FeatureTestCase([methodName])

Classes

FeatureVector2TimeSeriesTestCase

class pySPACE.tests.unittests.nodes.type_manipulation.test_type_conversion.FeatureVector2TimeSeriesTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test whether 2 TimeSeries are equal after converting using FeatureVector2TimeSeriesNode.

Author:Titiruck Nuntapramote (titiruck.nuntapramote@dfki.de)
Created:2011/11/04

Class Components Summary

cmp_TimeSeries(t1, t2)
cmp_value(l1, l2)
setUp()
test_TimeSeries()
test_channel_names()
test_sampling_frequency()
setUp()[source]
test_sampling_frequency()[source]
test_channel_names()[source]
cmp_value(l1, l2)[source]
cmp_TimeSeries(t1, t2)[source]
test_TimeSeries()[source]

Prediction2FeaturesTestCase

class pySPACE.tests.unittests.nodes.type_manipulation.test_type_conversion.Prediction2FeaturesTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test Prediction2FeaturesNode

Author:Titiruck Nuntapramote (titiruck.nuntapramote@dfki.de)
Created:2011/11/16

Class Components Summary

setUp()
test_array()
test_name()
setUp()[source]
test_array()[source]
test_name()[source]

Features2PredictionTestCase

class pySPACE.tests.unittests.nodes.type_manipulation.test_type_conversion.Features2PredictionTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test Features2PredictionNode

Author:Titiruck Nuntapramote (titiruck.nuntapramote@dfki.de)
Created:2011/11/24

Class Components Summary

setUp()
test_array()
test_label()
setUp()[source]
test_array()[source]
test_label()[source]

Feature2MonoTimeSeriesTestCase

class pySPACE.tests.unittests.nodes.type_manipulation.test_type_conversion.Feature2MonoTimeSeriesTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Some simple tests, if conversion works as expected

Class Components Summary

setUp() Define basic needed FeatureVector instances
test_conversion() Two simple conversion tests
setUp()[source]

Define basic needed FeatureVector instances

test_conversion()[source]

Two simple conversion tests

MonoTimeSeries2FeatureTestCase

class pySPACE.tests.unittests.nodes.type_manipulation.test_type_conversion.MonoTimeSeries2FeatureTestCase(methodName='runTest')[source]

Bases: pySPACE.tests.unittests.nodes.type_manipulation.test_type_conversion.Feature2MonoTimeSeriesTestCase

test_conversion()[source]

Two simple conversion tests