PyDecisionGraph 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of PyDecisionGraph might be problematic. Click here for more details.
- decision_tree/__init__.py +36 -0
- decision_tree/abc.py +1147 -0
- decision_tree/collection.py +93 -0
- decision_tree/exc.py +38 -0
- decision_tree/expression.py +478 -0
- decision_tree/logic_group.py +307 -0
- decision_tree/node.py +180 -0
- pydecisiongraph-0.1.0.dist-info/LICENSE +373 -0
- pydecisiongraph-0.1.0.dist-info/METADATA +21 -0
- pydecisiongraph-0.1.0.dist-info/RECORD +12 -0
- pydecisiongraph-0.1.0.dist-info/WHEEL +5 -0
- pydecisiongraph-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
__version__ = "0.1.0"
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
LOGGER = logging.getLogger("DecisionTree")
|
|
7
|
+
LOGGER.setLevel(logging.INFO)
|
|
8
|
+
|
|
9
|
+
if not LOGGER.hasHandlers():
|
|
10
|
+
ch = logging.StreamHandler(sys.stdout)
|
|
11
|
+
ch.setLevel(logging.INFO) # Set handler level
|
|
12
|
+
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")
|
|
13
|
+
ch.setFormatter(formatter)
|
|
14
|
+
LOGGER.addHandler(ch)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def set_logger(logger: logging.Logger):
|
|
18
|
+
global LOGGER
|
|
19
|
+
LOGGER = logger
|
|
20
|
+
|
|
21
|
+
exc.LOGGER = logger.getChild('TradeUtils')
|
|
22
|
+
abc.LOGGER = logger.getChild('TA')
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
NODE_MODEL = True
|
|
26
|
+
|
|
27
|
+
from .exc import *
|
|
28
|
+
from .abc import *
|
|
29
|
+
|
|
30
|
+
if NODE_MODEL:
|
|
31
|
+
from .node import *
|
|
32
|
+
else:
|
|
33
|
+
from .expression import *
|
|
34
|
+
|
|
35
|
+
from .collection import *
|
|
36
|
+
from .logic_group import *
|