From b4964c0a175ad02715e8419114800a50d5dcbb24 Mon Sep 17 00:00:00 2001 From: Filippo Martini Date: Sun, 7 Mar 2021 19:20:34 +0100 Subject: [PATCH] Add docs params to StructureEst class --- .idea/workspace.xml | 124 ------------------ .../structure_constraint_based_estimator.py | 7 +- .../PyCTBN/estimators/structure_estimator.py | 2 + 3 files changed, 8 insertions(+), 125 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 3745e38..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1615134950460 - - - - - - - \ No newline at end of file diff --git a/PyCTBN/PyCTBN/estimators/structure_constraint_based_estimator.py b/PyCTBN/PyCTBN/estimators/structure_constraint_based_estimator.py index aaf045f..db7770c 100644 --- a/PyCTBN/PyCTBN/estimators/structure_constraint_based_estimator.py +++ b/PyCTBN/PyCTBN/estimators/structure_constraint_based_estimator.py @@ -38,6 +38,10 @@ class StructureConstraintBasedEstimator(StructureEstimator): :type exp_test_alfa: float :param chi_test_alfa: the significance level for the chi Hp test :type chi_test_alfa: float + :param: thumb_threshold: the threshold value to consider a valid independence test + :type thumb_threshold: int + :param known_edges: the prior known edges in the net structure if present + :type known_edges: List :_nodes: the nodes labels :_nodes_vals: the nodes cardinalities :_nodes_indxs: the nodes indexes @@ -45,7 +49,8 @@ class StructureConstraintBasedEstimator(StructureEstimator): :_cache: the Cache object """ - def __init__(self, sample_path: SamplePath, exp_test_alfa: float, chi_test_alfa: float,known_edges: typing.List= [],thumb_threshold:int = 25): + def __init__(self, sample_path: SamplePath, exp_test_alfa: float, chi_test_alfa: float,known_edges: typing.List= [], + thumb_threshold:int = 25): super().__init__(sample_path,known_edges) self._exp_test_sign = exp_test_alfa self._chi_test_alfa = chi_test_alfa diff --git a/PyCTBN/PyCTBN/estimators/structure_estimator.py b/PyCTBN/PyCTBN/estimators/structure_estimator.py index aa03044..b77e21f 100644 --- a/PyCTBN/PyCTBN/estimators/structure_estimator.py +++ b/PyCTBN/PyCTBN/estimators/structure_estimator.py @@ -25,6 +25,8 @@ class StructureEstimator(object): :param sample_path: the _sample_path object containing the trajectories and the real structure :type sample_path: SamplePath + :param known_edges: the prior known edges in the net structure if present + :type known_edges: List :_nodes: the nodes labels :_nodes_vals: the nodes cardinalities :_nodes_indxs: the nodes indexes