From ad7bbd0d15e49014a2d9b82e16d2b88fdff3f7d2 Mon Sep 17 00:00:00 2001 From: MADLabUnimib Date: Tue, 1 Jun 2021 14:16:36 +0200 Subject: [PATCH] Added Licence header --- PyCTBN/PyCTBN/__init__.py | 3 +++ PyCTBN/PyCTBN/estimators/__init__.py | 3 +++ PyCTBN/PyCTBN/estimators/fam_score_calculator.py | 3 +++ PyCTBN/PyCTBN/estimators/parameters_estimator.py | 3 +++ .../PyCTBN/estimators/structure_constraint_based_estimator.py | 3 +++ PyCTBN/PyCTBN/estimators/structure_estimator.py | 3 +++ PyCTBN/PyCTBN/estimators/structure_score_based_estimator.py | 3 +++ PyCTBN/PyCTBN/optimizers/__init__.py | 3 +++ PyCTBN/PyCTBN/optimizers/constraint_based_optimizer.py | 3 +++ PyCTBN/PyCTBN/optimizers/hill_climbing_search.py | 3 +++ PyCTBN/PyCTBN/optimizers/optimizer.py | 3 +++ PyCTBN/PyCTBN/optimizers/tabu_search.py | 3 +++ PyCTBN/PyCTBN/structure_graph/__init__.py | 3 +++ PyCTBN/PyCTBN/structure_graph/conditional_intensity_matrix.py | 3 +++ PyCTBN/PyCTBN/structure_graph/network_graph.py | 3 +++ PyCTBN/PyCTBN/structure_graph/sample_path.py | 3 +++ PyCTBN/PyCTBN/structure_graph/set_of_cims.py | 3 +++ PyCTBN/PyCTBN/structure_graph/structure.py | 3 +++ PyCTBN/PyCTBN/structure_graph/trajectory.py | 3 +++ PyCTBN/PyCTBN/utility/__init__.py | 3 +++ PyCTBN/PyCTBN/utility/abstract_importer.py | 3 +++ PyCTBN/PyCTBN/utility/cache.py | 3 +++ PyCTBN/PyCTBN/utility/json_importer.py | 3 +++ PyCTBN/PyCTBN/utility/sample_importer.py | 3 +++ PyCTBN/__init__.py | 3 +++ PyCTBN/tests/__init__.py | 3 +++ PyCTBN/tests/estimators/test_parameters_estimator.py | 3 +++ .../estimators/test_structure_constraint_based_estimator.py | 3 +++ PyCTBN/tests/estimators/test_structure_estimator.py | 3 +++ .../tests/estimators/test_structure_score_based_estimator.py | 3 +++ PyCTBN/tests/optimizers/test_hill_climbing_search.py | 3 +++ PyCTBN/tests/optimizers/test_tabu_search.py | 3 +++ PyCTBN/tests/structure_graph/test_cim.py | 3 +++ PyCTBN/tests/structure_graph/test_networkgraph.py | 3 +++ PyCTBN/tests/structure_graph/test_sample_path.py | 3 +++ PyCTBN/tests/structure_graph/test_setofcims.py | 3 +++ PyCTBN/tests/structure_graph/test_structure.py | 3 +++ PyCTBN/tests/structure_graph/test_trajectory.py | 3 +++ PyCTBN/tests/utility/test_cache.py | 3 +++ PyCTBN/tests/utility/test_json_importer.py | 3 +++ PyCTBN/tests/utility/test_sample_importer.py | 3 +++ 41 files changed, 123 insertions(+) diff --git a/PyCTBN/PyCTBN/__init__.py b/PyCTBN/PyCTBN/__init__.py index faff79c..35b0094 100644 --- a/PyCTBN/PyCTBN/__init__.py +++ b/PyCTBN/PyCTBN/__init__.py @@ -1,3 +1,6 @@ + +# License: MIT License + import PyCTBN.PyCTBN.estimators from PyCTBN.PyCTBN.estimators import * import PyCTBN.PyCTBN.optimizers diff --git a/PyCTBN/PyCTBN/estimators/__init__.py b/PyCTBN/PyCTBN/estimators/__init__.py index 112086f..01fd7c6 100644 --- a/PyCTBN/PyCTBN/estimators/__init__.py +++ b/PyCTBN/PyCTBN/estimators/__init__.py @@ -1,3 +1,6 @@ + +# License: MIT License + from .fam_score_calculator import FamScoreCalculator from .parameters_estimator import ParametersEstimator from .structure_estimator import StructureEstimator diff --git a/PyCTBN/PyCTBN/estimators/fam_score_calculator.py b/PyCTBN/PyCTBN/estimators/fam_score_calculator.py index d8ec3a0..e3123fe 100644 --- a/PyCTBN/PyCTBN/estimators/fam_score_calculator.py +++ b/PyCTBN/PyCTBN/estimators/fam_score_calculator.py @@ -1,4 +1,7 @@ +# License: MIT License + + import itertools import json import typing diff --git a/PyCTBN/PyCTBN/estimators/parameters_estimator.py b/PyCTBN/PyCTBN/estimators/parameters_estimator.py index 6b6883b..2430522 100644 --- a/PyCTBN/PyCTBN/estimators/parameters_estimator.py +++ b/PyCTBN/PyCTBN/estimators/parameters_estimator.py @@ -1,3 +1,6 @@ + +# License: MIT License + import sys sys.path.append('../') import numpy as np diff --git a/PyCTBN/PyCTBN/estimators/structure_constraint_based_estimator.py b/PyCTBN/PyCTBN/estimators/structure_constraint_based_estimator.py index e34753e..c0fef70 100644 --- a/PyCTBN/PyCTBN/estimators/structure_constraint_based_estimator.py +++ b/PyCTBN/PyCTBN/estimators/structure_constraint_based_estimator.py @@ -1,4 +1,7 @@ +# License: MIT License + + import itertools import json import typing diff --git a/PyCTBN/PyCTBN/estimators/structure_estimator.py b/PyCTBN/PyCTBN/estimators/structure_estimator.py index e6da5a7..8840c85 100644 --- a/PyCTBN/PyCTBN/estimators/structure_estimator.py +++ b/PyCTBN/PyCTBN/estimators/structure_estimator.py @@ -1,4 +1,7 @@ +# License: MIT License + + import itertools import json import typing diff --git a/PyCTBN/PyCTBN/estimators/structure_score_based_estimator.py b/PyCTBN/PyCTBN/estimators/structure_score_based_estimator.py index 41300c1..70523ee 100644 --- a/PyCTBN/PyCTBN/estimators/structure_score_based_estimator.py +++ b/PyCTBN/PyCTBN/estimators/structure_score_based_estimator.py @@ -1,4 +1,7 @@ +# License: MIT License + + import itertools import json import typing diff --git a/PyCTBN/PyCTBN/optimizers/__init__.py b/PyCTBN/PyCTBN/optimizers/__init__.py index 4162bf1..ffa10d4 100644 --- a/PyCTBN/PyCTBN/optimizers/__init__.py +++ b/PyCTBN/PyCTBN/optimizers/__init__.py @@ -1,3 +1,6 @@ + +# License: MIT License + from .optimizer import Optimizer from .tabu_search import TabuSearch from .hill_climbing_search import HillClimbing diff --git a/PyCTBN/PyCTBN/optimizers/constraint_based_optimizer.py b/PyCTBN/PyCTBN/optimizers/constraint_based_optimizer.py index 9ad05fc..aeb67fc 100644 --- a/PyCTBN/PyCTBN/optimizers/constraint_based_optimizer.py +++ b/PyCTBN/PyCTBN/optimizers/constraint_based_optimizer.py @@ -1,4 +1,7 @@ +# License: MIT License + + import itertools import json import typing diff --git a/PyCTBN/PyCTBN/optimizers/hill_climbing_search.py b/PyCTBN/PyCTBN/optimizers/hill_climbing_search.py index 6783be0..ede3db7 100644 --- a/PyCTBN/PyCTBN/optimizers/hill_climbing_search.py +++ b/PyCTBN/PyCTBN/optimizers/hill_climbing_search.py @@ -1,4 +1,7 @@ +# License: MIT License + + import itertools import json import typing diff --git a/PyCTBN/PyCTBN/optimizers/optimizer.py b/PyCTBN/PyCTBN/optimizers/optimizer.py index 1984f06..e62aced 100644 --- a/PyCTBN/PyCTBN/optimizers/optimizer.py +++ b/PyCTBN/PyCTBN/optimizers/optimizer.py @@ -1,4 +1,7 @@ +# License: MIT License + + import itertools import json import typing diff --git a/PyCTBN/PyCTBN/optimizers/tabu_search.py b/PyCTBN/PyCTBN/optimizers/tabu_search.py index 9dd9dab..7650732 100644 --- a/PyCTBN/PyCTBN/optimizers/tabu_search.py +++ b/PyCTBN/PyCTBN/optimizers/tabu_search.py @@ -1,4 +1,7 @@ +# License: MIT License + + import itertools import json import typing diff --git a/PyCTBN/PyCTBN/structure_graph/__init__.py b/PyCTBN/PyCTBN/structure_graph/__init__.py index 85f18a2..b9c24e5 100644 --- a/PyCTBN/PyCTBN/structure_graph/__init__.py +++ b/PyCTBN/PyCTBN/structure_graph/__init__.py @@ -1,3 +1,6 @@ + +# License: MIT License + from .conditional_intensity_matrix import ConditionalIntensityMatrix from .network_graph import NetworkGraph from .sample_path import SamplePath diff --git a/PyCTBN/PyCTBN/structure_graph/conditional_intensity_matrix.py b/PyCTBN/PyCTBN/structure_graph/conditional_intensity_matrix.py index 4abfdd0..e1ac09a 100644 --- a/PyCTBN/PyCTBN/structure_graph/conditional_intensity_matrix.py +++ b/PyCTBN/PyCTBN/structure_graph/conditional_intensity_matrix.py @@ -1,3 +1,6 @@ + +# License: MIT License + import numpy as np diff --git a/PyCTBN/PyCTBN/structure_graph/network_graph.py b/PyCTBN/PyCTBN/structure_graph/network_graph.py index 6fb3639..254555d 100644 --- a/PyCTBN/PyCTBN/structure_graph/network_graph.py +++ b/PyCTBN/PyCTBN/structure_graph/network_graph.py @@ -1,4 +1,7 @@ +# License: MIT License + + import typing import networkx as nx diff --git a/PyCTBN/PyCTBN/structure_graph/sample_path.py b/PyCTBN/PyCTBN/structure_graph/sample_path.py index 88e9649..a924fe4 100644 --- a/PyCTBN/PyCTBN/structure_graph/sample_path.py +++ b/PyCTBN/PyCTBN/structure_graph/sample_path.py @@ -1,4 +1,7 @@ +# License: MIT License + + import numpy as np import pandas as pd diff --git a/PyCTBN/PyCTBN/structure_graph/set_of_cims.py b/PyCTBN/PyCTBN/structure_graph/set_of_cims.py index 81caff5..5b2c32a 100644 --- a/PyCTBN/PyCTBN/structure_graph/set_of_cims.py +++ b/PyCTBN/PyCTBN/structure_graph/set_of_cims.py @@ -1,4 +1,7 @@ +# License: MIT License + + import typing diff --git a/PyCTBN/PyCTBN/structure_graph/structure.py b/PyCTBN/PyCTBN/structure_graph/structure.py index f79c875..eb3edda 100644 --- a/PyCTBN/PyCTBN/structure_graph/structure.py +++ b/PyCTBN/PyCTBN/structure_graph/structure.py @@ -1,4 +1,7 @@ +# License: MIT License + + import typing as ty import numpy as np diff --git a/PyCTBN/PyCTBN/structure_graph/trajectory.py b/PyCTBN/PyCTBN/structure_graph/trajectory.py index 36899b3..5e86316 100644 --- a/PyCTBN/PyCTBN/structure_graph/trajectory.py +++ b/PyCTBN/PyCTBN/structure_graph/trajectory.py @@ -1,4 +1,7 @@ +# License: MIT License + + import typing import numpy as np diff --git a/PyCTBN/PyCTBN/utility/__init__.py b/PyCTBN/PyCTBN/utility/__init__.py index f79749c..eefdb59 100644 --- a/PyCTBN/PyCTBN/utility/__init__.py +++ b/PyCTBN/PyCTBN/utility/__init__.py @@ -1,3 +1,6 @@ + +# License: MIT License + from .abstract_importer import AbstractImporter from .cache import Cache from .json_importer import JsonImporter diff --git a/PyCTBN/PyCTBN/utility/abstract_importer.py b/PyCTBN/PyCTBN/utility/abstract_importer.py index 8984b4d..9328a65 100644 --- a/PyCTBN/PyCTBN/utility/abstract_importer.py +++ b/PyCTBN/PyCTBN/utility/abstract_importer.py @@ -1,4 +1,7 @@ +# License: MIT License + + import typing from abc import ABC, abstractmethod diff --git a/PyCTBN/PyCTBN/utility/cache.py b/PyCTBN/PyCTBN/utility/cache.py index 5191af3..10caa22 100644 --- a/PyCTBN/PyCTBN/utility/cache.py +++ b/PyCTBN/PyCTBN/utility/cache.py @@ -1,4 +1,7 @@ +# License: MIT License + + import typing from ..structure_graph.set_of_cims import SetOfCims diff --git a/PyCTBN/PyCTBN/utility/json_importer.py b/PyCTBN/PyCTBN/utility/json_importer.py index 2cadff4..6353c01 100644 --- a/PyCTBN/PyCTBN/utility/json_importer.py +++ b/PyCTBN/PyCTBN/utility/json_importer.py @@ -1,3 +1,6 @@ + +# License: MIT License + import json import typing diff --git a/PyCTBN/PyCTBN/utility/sample_importer.py b/PyCTBN/PyCTBN/utility/sample_importer.py index b0b6e8f..4c3fdf0 100644 --- a/PyCTBN/PyCTBN/utility/sample_importer.py +++ b/PyCTBN/PyCTBN/utility/sample_importer.py @@ -1,3 +1,6 @@ + +# License: MIT License + import json import typing diff --git a/PyCTBN/__init__.py b/PyCTBN/__init__.py index 7adf0d7..6fd2d6c 100644 --- a/PyCTBN/__init__.py +++ b/PyCTBN/__init__.py @@ -1,2 +1,5 @@ + +# License: MIT License + import PyCTBN.PyCTBN from PyCTBN.PyCTBN import * diff --git a/PyCTBN/tests/__init__.py b/PyCTBN/tests/__init__.py index 8b13789..8f6a58e 100644 --- a/PyCTBN/tests/__init__.py +++ b/PyCTBN/tests/__init__.py @@ -1 +1,4 @@ +# License: MIT License + + diff --git a/PyCTBN/tests/estimators/test_parameters_estimator.py b/PyCTBN/tests/estimators/test_parameters_estimator.py index 5c438db..4dbb548 100644 --- a/PyCTBN/tests/estimators/test_parameters_estimator.py +++ b/PyCTBN/tests/estimators/test_parameters_estimator.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import numpy as np import glob diff --git a/PyCTBN/tests/estimators/test_structure_constraint_based_estimator.py b/PyCTBN/tests/estimators/test_structure_constraint_based_estimator.py index 3e9d2b0..baa1de1 100644 --- a/PyCTBN/tests/estimators/test_structure_constraint_based_estimator.py +++ b/PyCTBN/tests/estimators/test_structure_constraint_based_estimator.py @@ -1,4 +1,7 @@ +# License: MIT License + + import glob import math import os diff --git a/PyCTBN/tests/estimators/test_structure_estimator.py b/PyCTBN/tests/estimators/test_structure_estimator.py index e368b93..5decc84 100644 --- a/PyCTBN/tests/estimators/test_structure_estimator.py +++ b/PyCTBN/tests/estimators/test_structure_estimator.py @@ -1,4 +1,7 @@ +# License: MIT License + + import glob import math import os diff --git a/PyCTBN/tests/estimators/test_structure_score_based_estimator.py b/PyCTBN/tests/estimators/test_structure_score_based_estimator.py index 407201e..16f1645 100644 --- a/PyCTBN/tests/estimators/test_structure_score_based_estimator.py +++ b/PyCTBN/tests/estimators/test_structure_score_based_estimator.py @@ -1,4 +1,7 @@ +# License: MIT License + + import glob import math import os diff --git a/PyCTBN/tests/optimizers/test_hill_climbing_search.py b/PyCTBN/tests/optimizers/test_hill_climbing_search.py index 84fa023..b669478 100644 --- a/PyCTBN/tests/optimizers/test_hill_climbing_search.py +++ b/PyCTBN/tests/optimizers/test_hill_climbing_search.py @@ -1,4 +1,7 @@ +# License: MIT License + + import glob import math import os diff --git a/PyCTBN/tests/optimizers/test_tabu_search.py b/PyCTBN/tests/optimizers/test_tabu_search.py index 301a52c..0d52141 100644 --- a/PyCTBN/tests/optimizers/test_tabu_search.py +++ b/PyCTBN/tests/optimizers/test_tabu_search.py @@ -1,3 +1,6 @@ + +# License: MIT License + import sys sys.path.append("../../PyCTBN/") import glob diff --git a/PyCTBN/tests/structure_graph/test_cim.py b/PyCTBN/tests/structure_graph/test_cim.py index 7106974..b67cf42 100644 --- a/PyCTBN/tests/structure_graph/test_cim.py +++ b/PyCTBN/tests/structure_graph/test_cim.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import numpy as np diff --git a/PyCTBN/tests/structure_graph/test_networkgraph.py b/PyCTBN/tests/structure_graph/test_networkgraph.py index d9b9bcd..790cbed 100644 --- a/PyCTBN/tests/structure_graph/test_networkgraph.py +++ b/PyCTBN/tests/structure_graph/test_networkgraph.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import glob import os diff --git a/PyCTBN/tests/structure_graph/test_sample_path.py b/PyCTBN/tests/structure_graph/test_sample_path.py index f7b3a1a..ef63585 100644 --- a/PyCTBN/tests/structure_graph/test_sample_path.py +++ b/PyCTBN/tests/structure_graph/test_sample_path.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import glob import os diff --git a/PyCTBN/tests/structure_graph/test_setofcims.py b/PyCTBN/tests/structure_graph/test_setofcims.py index 9f5fbe9..1435111 100644 --- a/PyCTBN/tests/structure_graph/test_setofcims.py +++ b/PyCTBN/tests/structure_graph/test_setofcims.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import numpy as np import itertools diff --git a/PyCTBN/tests/structure_graph/test_structure.py b/PyCTBN/tests/structure_graph/test_structure.py index df4289e..e979318 100644 --- a/PyCTBN/tests/structure_graph/test_structure.py +++ b/PyCTBN/tests/structure_graph/test_structure.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import numpy as np from ...PyCTBN.structure_graph.structure import Structure diff --git a/PyCTBN/tests/structure_graph/test_trajectory.py b/PyCTBN/tests/structure_graph/test_trajectory.py index ae4777b..93c27a7 100644 --- a/PyCTBN/tests/structure_graph/test_trajectory.py +++ b/PyCTBN/tests/structure_graph/test_trajectory.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import numpy as np import glob diff --git a/PyCTBN/tests/utility/test_cache.py b/PyCTBN/tests/utility/test_cache.py index 5d9c766..e799728 100644 --- a/PyCTBN/tests/utility/test_cache.py +++ b/PyCTBN/tests/utility/test_cache.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import numpy as np diff --git a/PyCTBN/tests/utility/test_json_importer.py b/PyCTBN/tests/utility/test_json_importer.py index a4bb4c0..d57a258 100644 --- a/PyCTBN/tests/utility/test_json_importer.py +++ b/PyCTBN/tests/utility/test_json_importer.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import os import glob diff --git a/PyCTBN/tests/utility/test_sample_importer.py b/PyCTBN/tests/utility/test_sample_importer.py index 8e96778..ad2ddda 100644 --- a/PyCTBN/tests/utility/test_sample_importer.py +++ b/PyCTBN/tests/utility/test_sample_importer.py @@ -1,4 +1,7 @@ +# License: MIT License + + import unittest import os import glob