TransportMaps.tests.test_transportmaps

Module Contents

Classes

TransportMap_DerivativeChecks

OnTheFly_TM_DerivativeChecks

Special test definitions for evaluation on-the-fly

OnTheFly_InverseTM_DerivativeChecks

OnTheFly_CompositeTM_DerivativeChecks

Special test definitions for evaluation on-the-fly

Precomp_TM_DerivativeChecks

Special test definitions with precomputed Vandermonde matrices.

PrecompUni_TM_DerivativeChecks

Precompute uni-variate Vandermonde matrices

PrecompMulti_TM_DerivativeChecks

Precompute multi-variate Vandermonde matrices

LinearTM

IntegratedExponentialTTM

Integrated exponential approximation

CommonBasisIntegratedExponentialTTM

Integrated exponential approximation

TotOrdIntegratedExponentialTTM

Integrated exponential approximation

CommonBasisTotOrdIntegratedExponentialTTM

Integrated exponential approximation

IntegratedSquaredTTM

Integrated squared approximation

TotOrdIntegratedSquaredTTM

Integrated squared approximation

IntegratedSquaredRBFTTM

Integrated squared approximation

LinearSpanTTM

Linear span approximation

CommonBasisLinearSpanTTM

Linear span approximation

TotOrdLinearSpanTTM

Linear span approximation

CommonBasisTotOrdLinearSpanTTM

Linear span approximation

InverseCommonBasisTotOrdIntegratedExponentialTTM

InverseTotOrdIntegratedSquaredTTM

CompositeCommonBasisTotOrdIntegratedExponentialTTM

ListCompositeCommonBasisTotOrdIntegratedExponentialTTM

OnTheFly_LinearTM_DerivativeChecks

Special test definitions for evaluation on-the-fly

OnTheFly_LinearSpanTM_DerivativeChecks

Linear span approximation

PrecompUni_LinearSpanTM_DerivativeChecks

Linear span approximation

PrecompMulti_LinearSpanTM_DerivativeChecks

Linear span approximation

OnTheFly_CommonBasisLinearSpanTM_DerivativeChecks

Linear span approximation

PrecompUni_CommonBasisLinearSpanTM_DerivativeChecks

Linear span approximation

OnTheFly_TotOrdLinearSpanTM_DerivativeChecks

Linear span approximation

PrecompUni_TotOrdLinearSpanTM_DerivativeChecks

Linear span approximation

PrecompMulti_TotOrdLinearSpanTM_DerivativeChecks

Linear span approximation

OnTheFly_CommonBasisTotOrdLinearSpanTM_DerivativeChecks

Linear span approximation

PrecompUni_CommonBasisTotOrdLinearSpanTM_DerivativeChecks

Linear span approximation

OnTheFly_IntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

PrecompUni_IntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

PrecompMulti_IntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

OnTheFly_CommonBasisIntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

PrecompUni_CommonBasisIntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

OnTheFly_TotOrdIntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

PrecompUni_TotOrdIntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

PrecompMulti_TotOrdIntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

OnTheFly_CommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

PrecompUni_CommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks

Integrated exponential approximation

OnTheFly_InverseCommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks

A class whose instances are single test cases.

OnTheFly_CompositeCommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks

Special test definitions for evaluation on-the-fly

OnTheFly_ListCompositeCommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks

Special test definitions for evaluation on-the-fly

OnTheFly_IntegratedSquaredTM_DerivativeChecks

Integrated squared approximation

PrecompUni_IntegratedSquaredTM_DerivativeChecks

Integrated squared approximation

PrecompMulti_IntegratedSquaredTM_DerivativeChecks

Integrated squared approximation

OnTheFly_TotOrdIntegratedSquaredTM_DerivativeChecks

Integrated squared approximation

PrecompUni_TotOrdIntegratedSquaredTM_DerivativeChecks

Integrated squared approximation

PrecompMulti_TotOrdIntegratedSquaredTM_DerivativeChecks

Integrated squared approximation

OnTheFly_IntegratedSquaredRBFTM_DerivativeChecks

Integrated squared approximation

PrecompUni_IntegratedSquaredRBFTM_DerivativeChecks

Integrated squared approximation

PrecompMulti_IntegratedSquaredRBFTM_DerivativeChecks

Integrated squared approximation

Functions

build_suite([ttype])

run_tests([ttype, failfast])

Attributes

MPI_SUPPORT

TransportMaps.tests.test_transportmaps.MPI_SUPPORT = True[source]
class TransportMaps.tests.test_transportmaps.TransportMap_DerivativeChecks[source]

Bases: object

setUp()[source]
test_grad_a()[source]
test_hess_a()[source]
test_action_hess_a()[source]
test_grad_a_partial_xd()[source]
test_grad_a_log_det_grad_x()[source]
test_hess_a_log_det_grad_x()[source]
test_action_hess_a_log_det_grad_x()[source]
test_inverse()[source]
test_grad_a_inverse()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_TM_DerivativeChecks[source]

Bases: TransportMap_DerivativeChecks

Special test definitions for evaluation on-the-fly

test_test_gradients()[source]
test_grad_x()[source]
test_grad_x_inverse()[source]
test_hess_x()[source]
test_action_hess_x()[source]
test_grad_a_grad_x()[source]
test_grad_a_hess_x()[source]
test_log_det_grad_x()[source]
test_grad_x_log_det_grad_x()[source]
test_hess_x_log_det_grad_x()[source]
test_action_hess_x_log_det_grad_x()[source]
test_log_det_grad_x_inverse()[source]
test_grad_a_hess_x_log_det_grad_x()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_InverseTM_DerivativeChecks[source]

Bases: TransportMap_DerivativeChecks

test_grad_x_inverse()[source]
test_grad_a_inverse()[source]
test_grad_a()[source]
test_hess_a()[source]
test_action_hess_a()[source]
test_grad_a_log_det_grad_x()[source]
test_hess_a_log_det_grad_x()[source]
test_action_hess_a_log_det_grad_x()[source]
test_grad_a_partial_xd()[source]
test_grad_a_hess_x_log_det_grad_x()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_CompositeTM_DerivativeChecks[source]

Bases: OnTheFly_TM_DerivativeChecks

Special test definitions for evaluation on-the-fly

test_grad_a()[source]
test_hess_a()[source]
test_action_hess_a()[source]
test_grad_a_inverse()[source]
test_grad_a_grad_x()[source]
test_grad_a_hess_x()[source]
test_grad_a_log_det_grad_x()[source]
test_hess_a_log_det_grad_x()[source]
test_action_hess_a_log_det_grad_x()[source]
test_grad_a_partial_xd()[source]
test_grad_a_hess_x_log_det_grad_x()[source]
class TransportMaps.tests.test_transportmaps.Precomp_TM_DerivativeChecks[source]

Bases: TransportMap_DerivativeChecks

Special test definitions with precomputed Vandermonde matrices.

test_grad_x()[source]
test_hess_x()[source]
test_action_hess_x()[source]
test_grad_x_log_det_grad_x()[source]
test_hess_x_log_det_grad_x()[source]
test_action_hess_x_log_det_grad_x()[source]
class TransportMaps.tests.test_transportmaps.PrecompUni_TM_DerivativeChecks[source]

Bases: Precomp_TM_DerivativeChecks

Precompute uni-variate Vandermonde matrices

setUp()[source]
class TransportMaps.tests.test_transportmaps.PrecompMulti_TM_DerivativeChecks[source]

Bases: Precomp_TM_DerivativeChecks

Precompute multi-variate Vandermonde matrices

setUp()[source]
class TransportMaps.tests.test_transportmaps.LinearTM[source]

Bases: object

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.IntegratedExponentialTTM[source]

Bases: object

Integrated exponential approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.CommonBasisIntegratedExponentialTTM[source]

Bases: object

Integrated exponential approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.TotOrdIntegratedExponentialTTM[source]

Bases: object

Integrated exponential approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.CommonBasisTotOrdIntegratedExponentialTTM[source]

Bases: object

Integrated exponential approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.IntegratedSquaredTTM[source]

Bases: object

Integrated squared approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.TotOrdIntegratedSquaredTTM[source]

Bases: object

Integrated squared approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.IntegratedSquaredRBFTTM[source]

Bases: object

Integrated squared approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.LinearSpanTTM[source]

Bases: object

Linear span approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.CommonBasisLinearSpanTTM[source]

Bases: object

Linear span approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.TotOrdLinearSpanTTM[source]

Bases: object

Linear span approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.CommonBasisTotOrdLinearSpanTTM[source]

Bases: object

Linear span approximation

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.InverseCommonBasisTotOrdIntegratedExponentialTTM[source]

Bases: object

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.InverseTotOrdIntegratedSquaredTTM[source]

Bases: object

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.CompositeCommonBasisTotOrdIntegratedExponentialTTM[source]

Bases: object

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.ListCompositeCommonBasisTotOrdIntegratedExponentialTTM[source]

Bases: object

build_tm_approx()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_LinearTM_DerivativeChecks(methodName='runTest')[source]

Bases: LinearTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Special test definitions for evaluation on-the-fly

test_grad_a()[source]
test_hess_a()[source]
test_action_hess_a()[source]
test_tuple_grad_a()[source]
test_grad_a_partial_xd()[source]
test_grad_a_log_det_grad_x()[source]
test_hess_a_log_det_grad_x()[source]
test_action_hess_a_log_det_grad_x()[source]
test_grad_a_inverse()[source]
test_grad_a_grad_x()[source]
test_grad_a_hess_x()[source]
test_grad_a_hess_x_log_det_grad_x()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_LinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: LinearSpanTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.PrecompUni_LinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: LinearSpanTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.PrecompMulti_LinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: LinearSpanTTM, PrecompMulti_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_CommonBasisLinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: CommonBasisLinearSpanTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.PrecompUni_CommonBasisLinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: CommonBasisLinearSpanTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_TotOrdLinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdLinearSpanTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.PrecompUni_TotOrdLinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdLinearSpanTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.PrecompMulti_TotOrdLinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdLinearSpanTTM, PrecompMulti_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_CommonBasisTotOrdLinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: CommonBasisTotOrdLinearSpanTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.PrecompUni_CommonBasisTotOrdLinearSpanTM_DerivativeChecks(methodName='runTest')[source]

Bases: CommonBasisTotOrdLinearSpanTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Linear span approximation

test_inverse()[source]
test_grad_a_inverse()[source]
test_grad_x_inverse()[source]
test_log_det_grad_x_inverse()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_IntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedExponentialTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.PrecompUni_IntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedExponentialTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.PrecompMulti_IntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedExponentialTTM, PrecompMulti_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.OnTheFly_CommonBasisIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: CommonBasisIntegratedExponentialTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.PrecompUni_CommonBasisIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: CommonBasisIntegratedExponentialTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.OnTheFly_TotOrdIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdIntegratedExponentialTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.PrecompUni_TotOrdIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdIntegratedExponentialTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.PrecompMulti_TotOrdIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdIntegratedExponentialTTM, PrecompMulti_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.OnTheFly_CommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: CommonBasisTotOrdIntegratedExponentialTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.PrecompUni_CommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: CommonBasisTotOrdIntegratedExponentialTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Integrated exponential approximation

class TransportMaps.tests.test_transportmaps.OnTheFly_InverseCommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: InverseCommonBasisTotOrdIntegratedExponentialTTM, OnTheFly_InverseTM_DerivativeChecks, unittest.TestCase

A class whose instances are single test cases.

By default, the test code itself should be placed in a method named ‘runTest’.

If the fixture may be used for many test cases, create as many test methods as are needed. When instantiating such a TestCase subclass, specify in the constructor arguments the name of the test method that the instance is to execute.

Test authors should subclass TestCase for their own tests. Construction and deconstruction of the test’s environment (‘fixture’) can be implemented by overriding the ‘setUp’ and ‘tearDown’ methods respectively.

If it is necessary to override the __init__ method, the base class __init__ method must always be called. It is important that subclasses should not change the signature of their __init__ method, since instances of the classes are instantiated automatically by parts of the framework in order to be run.

When subclassing TestCase, you can set these attributes: * failureException: determines which exception will be raised when

the instance’s assertion methods fail; test methods raising this exception will be deemed to have ‘failed’ rather than ‘errored’.

  • longMessage: determines whether long messages (including repr of

    objects used in assert methods) will be printed on failure in addition to any explicit message passed.

  • maxDiff: sets the maximum length of a diff in failure messages

    by assert methods using difflib. It is looked up as an instance attribute so can be configured by individual tests if required.

class TransportMaps.tests.test_transportmaps.OnTheFly_CompositeCommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: CompositeCommonBasisTotOrdIntegratedExponentialTTM, OnTheFly_CompositeTM_DerivativeChecks, unittest.TestCase

Special test definitions for evaluation on-the-fly

class TransportMaps.tests.test_transportmaps.OnTheFly_ListCompositeCommonBasisTotOrdIntegratedExponentialTM_DerivativeChecks(methodName='runTest')[source]

Bases: ListCompositeCommonBasisTotOrdIntegratedExponentialTTM, OnTheFly_CompositeTM_DerivativeChecks, unittest.TestCase

Special test definitions for evaluation on-the-fly

test_hess_x_log_det_grad_x()[source]
test_action_hess_x_log_det_grad_x()[source]
class TransportMaps.tests.test_transportmaps.OnTheFly_IntegratedSquaredTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedSquaredTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

class TransportMaps.tests.test_transportmaps.PrecompUni_IntegratedSquaredTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedSquaredTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

class TransportMaps.tests.test_transportmaps.PrecompMulti_IntegratedSquaredTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedSquaredTTM, PrecompMulti_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

class TransportMaps.tests.test_transportmaps.OnTheFly_TotOrdIntegratedSquaredTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdIntegratedSquaredTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

class TransportMaps.tests.test_transportmaps.PrecompUni_TotOrdIntegratedSquaredTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdIntegratedSquaredTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

class TransportMaps.tests.test_transportmaps.PrecompMulti_TotOrdIntegratedSquaredTM_DerivativeChecks(methodName='runTest')[source]

Bases: TotOrdIntegratedSquaredTTM, PrecompMulti_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

class TransportMaps.tests.test_transportmaps.OnTheFly_IntegratedSquaredRBFTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedSquaredRBFTTM, OnTheFly_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

class TransportMaps.tests.test_transportmaps.PrecompUni_IntegratedSquaredRBFTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedSquaredRBFTTM, PrecompUni_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

class TransportMaps.tests.test_transportmaps.PrecompMulti_IntegratedSquaredRBFTM_DerivativeChecks(methodName='runTest')[source]

Bases: IntegratedSquaredRBFTTM, PrecompMulti_TM_DerivativeChecks, unittest.TestCase

Integrated squared approximation

TransportMaps.tests.test_transportmaps.build_suite(ttype='all')[source]
TransportMaps.tests.test_transportmaps.run_tests(ttype='serial', failfast=False)[source]