Tests Documentation

This page contains the Tests Package documentation.

The test_hmm Module

class cmpy.machines.tests.test_hmm.TestHMM

Methods

setUp()
test_current_distribution()
test_current_node()
test_distributions_iter()
test_node_transition_matrix()
test_reduce()
test_start_node()
test_stationary_distribution()
test_sync_mode1()
test_sync_mode2()
test_sync_mode3()
test_sync_mode4()
setUp()
test_current_distribution()
test_current_node()
test_distributions_iter()
test_node_transition_matrix()
test_reduce()
test_start_node()
test_stationary_distribution()
test_sync_mode1()
test_sync_mode2()
test_sync_mode3()
test_sync_mode4()

The test_base Module

class cmpy.machines.tests.test_base.TestBaseMachine

Bases: object

Methods

setUp()
test_add_node__cmpy()
test_add_nodes_from__cmpy()
setUp()
test_add_node__cmpy()
test_add_nodes_from__cmpy()
cmpy.machines.tests.test_base.test_aliased_attrdict()
cmpy.machines.tests.test_base.test_resolve_attr()

The test_epsilonmachine Module

class cmpy.machines.tests.test_epsilonmachine.TestMealyHMM

Bases: object

Methods

setUp()
test_causal_state()
test_reduce()
setUp()
test_causal_state()
test_reduce()
cmpy.machines.tests.test_epsilonmachine.test_buildeM_reduce()
cmpy.machines.tests.test_epsilonmachine.test_cryptic_order()
cmpy.machines.tests.test_epsilonmachine.test_crypticity()
cmpy.machines.tests.test_epsilonmachine.test_entropy_rate()
cmpy.machines.tests.test_epsilonmachine.test_exact()
cmpy.machines.tests.test_epsilonmachine.test_excess_entropy()
cmpy.machines.tests.test_epsilonmachine.test_markov_order()
cmpy.machines.tests.test_epsilonmachine.test_minimal()
cmpy.machines.tests.test_epsilonmachine.test_minimal_unifilar()
cmpy.machines.tests.test_epsilonmachine.test_statistical_complexity()
cmpy.machines.tests.test_epsilonmachine.test_unifilar()

The test_label Module

cmpy.machines.tests.test_label.test_edge_label()

The test_stochasticmachine Module

cmpy.machines.tests.test_stochasticmachine.test_randomize_current_node()

The test_moorehmm Module

class cmpy.machines.tests.test_moorehmm.TestMealyHMM

Bases: object

Methods

setUp()
test_add_edge__cmpy()
test_add_edges_from__cmpy()
setUp()
test_add_edge__cmpy()
test_add_edges_from__cmpy()

The test_mealyhmm Module

class cmpy.machines.tests.test_mealyhmm.TestMealyHMM

Bases: object

Methods

setUp()
test_add_edge__cmpy()
test_add_edges_from__cmpy()
test_alphabet()
test_block_entropy(*args, **kwargs)
test_distributions_iter()
test_emission_matrix()
test_entropy_rate()
test_excess_entropy()
test_is_counifilar()
test_is_irreducible()
test_is_minimal(*args, **kwargs)
test_is_periodic()
test_is_strictly_sofic()
test_is_unifilar()
test_isomorphic(*args, **kwargs)
test_labeled_transition_matrices()
test_probabilities_iter__array(*args, **kwargs)
test_probabilities_iter__machine()
test_probability1()
test_probability2()
test_reverse()
test_symbol_topology()
test_symbols_iter()
test_toMooreHMM(*args, **kwargs)
test_topological_entropy_rate()
test_word_transition_matrix()
setUp()
test_add_edge__cmpy()
test_add_edges_from__cmpy()
test_alphabet()
test_block_entropy(*args, **kwargs)
test_distributions_iter()
test_emission_matrix()
test_entropy_rate()
test_excess_entropy()
test_is_counifilar()
test_is_irreducible()
test_is_minimal(*args, **kwargs)
test_is_periodic()
test_is_strictly_sofic()
test_is_unifilar()
test_isomorphic(*args, **kwargs)
test_labeled_transition_matrices()
test_probabilities_iter__array(*args, **kwargs)
test_probabilities_iter__machine()
test_probability1()
test_probability2()
test_reverse()
test_symbol_topology()
test_symbols_iter()
test_toMooreHMM(*args, **kwargs)
test_topological_entropy_rate()
test_word_transition_matrix()