PyCTBN.tests.structure_graph package

Submodules

PyCTBN.tests.structure_graph.test_cim module

class PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix(methodName='runTest')

Bases: unittest.case.TestCase

classmethod setUpClass()None

Hook method for setting up class fixture before running tests in the class.

test_compute_cim_coefficients()
test_init()
test_repr()

PyCTBN.tests.structure_graph.test_networkgenerator module

PyCTBN.tests.structure_graph.test_networkgraph module

class PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph(methodName='runTest')

Bases: unittest.case.TestCase

aux_build_p_combs_structure(graph, p_vals)
aux_build_time_columns_filtering_structure_for_a_node(graph, node_id, p_indxs)
aux_build_time_scalar_indexing_structure_for_a_node(graph, node_id, parents_indxs, parents_labels, parents_vals)
aux_build_transition_columns_filtering_structure(graph, node_id, p_indxs)
aux_build_transition_scalar_indexing_structure_for_a_node(graph, node_id, parents_indxs, parents_labels, parents_values)
classmethod setUpClass()

Hook method for setting up class fixture before running tests in the class.

test_add_edges()
test_add_nodes()
test_build_p_combs_structure()
test_build_time_columns_filtering_structure_for_a_node()
test_build_time_scalar_indexing_structure_for_a_node()
test_build_transition_columns_filtering_structure()
test_build_transition_scalar_indexing_structure_for_a_node()
test_fast_init()
test_get_node_indx()
test_get_ordered_by_indx_set_of_parents()
test_get_parents_by_id()
test_get_states_number()
test_init()

PyCTBN.tests.structure_graph.test_sample_path module

class PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath(methodName='runTest')

Bases: unittest.case.TestCase

classmethod setUpClass()None

Hook method for setting up class fixture before running tests in the class.

test_buid_samplepath_no_concatenated_samples()
test_buid_samplepath_no_variables()
test_build_saplepath_no_prior_net_structure()
test_build_structure()
test_build_structure_bad_sorter()
test_build_trajectories()
test_init()
test_init_not_filled_dataframse()
test_init_not_initialized_importer()

PyCTBN.tests.structure_graph.test_setofcims module

class PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims(methodName='runTest')

Bases: unittest.case.TestCase

another_filtering_method(p_combs, mask, parent_value)
aux_test_build_cims(node_id, p_values, node_states, p_combs)
aux_test_init(node_id, parents_states_number, node_states_number, p_combs)
build_p_comb_structure_for_a_node(parents_values)

Builds the combinatory structure that contains the combinations of all the values contained in parents_values.

Parameters:

parents_values: the cardinalities of the nodes

Returns:

a numpy matrix containing a grid of the combinations

classmethod setUpClass()None

Hook method for setting up class fixture before running tests in the class.

test_build_cims()
test_filter_cims_with_mask()
test_init()

PyCTBN.tests.structure_graph.test_structure module

class PyCTBN.tests.structure_graph.test_structure.TestStructure(methodName='runTest')

Bases: unittest.case.TestCase

classmethod setUpClass()

Hook method for setting up class fixture before running tests in the class.

test_edges_operations()
test_equality()
test_get_node_id()
test_get_node_indx()
test_get_positional_node_indx()
test_get_states_number()
test_init()
test_repr()

PyCTBN.tests.structure_graph.test_trajectory module

class PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory(methodName='runTest')

Bases: unittest.case.TestCase

classmethod setUpClass()None

Hook method for setting up class fixture before running tests in the class.

test_init()

PyCTBN.tests.structure_graph.test_trajectorygenerator module

Module contents


© Copyright 2021, Bregoli Alessandro, Martini Filippo, Moretti Luca.

Built with Sphinx using a theme provided by Porão do Juca.