psyke 1.0.3.dev4__tar.gz → 1.0.4__tar.gz
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 psyke might be problematic. Click here for more details.
- {psyke-1.0.3.dev4/psyke.egg-info → psyke-1.0.4}/PKG-INFO +1 -1
- psyke-1.0.4/VERSION +1 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/cart/CartPredictor.py +3 -3
- {psyke-1.0.3.dev4 → psyke-1.0.4/psyke.egg-info}/PKG-INFO +1 -1
- psyke-1.0.3.dev4/VERSION +0 -1
- {psyke-1.0.3.dev4 → psyke-1.0.4}/LICENSE +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/MANIFEST.in +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/README.md +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/clustering/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/clustering/cream/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/clustering/exact/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/clustering/utils.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/cart/FairTree.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/cart/FairTreePredictor.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/cart/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/cosmik/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/creepy/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/divine/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/ginger/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/gridex/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/gridrex/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/hex/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/hypercube.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/iter/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/strategy.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/hypercubic/utils.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/real/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/real/utils.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/trepan/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/extraction/trepan/utils.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/genetic/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/genetic/fgin/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/genetic/gin/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/hypercubepredictor.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/schema/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/tuning/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/tuning/crash/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/tuning/orchid/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/tuning/pedro/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/utils/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/utils/dataframe.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/utils/logic.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/utils/metrics.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/utils/plot.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke/utils/sorted.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke.egg-info/SOURCES.txt +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke.egg-info/dependency_links.txt +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke.egg-info/not-zip-safe +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke.egg-info/requires.txt +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/psyke.egg-info/top_level.txt +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/pyproject.toml +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/setup.cfg +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/setup.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/clustering/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/cart/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/cart/test_cart.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/cart/test_simplified_cart.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/hypercubic/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/hypercubic/gridex/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/hypercubic/gridex/test_gridex.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/hypercubic/iter/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/hypercubic/iter/test_iter.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/hypercubic/test_hypercube.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/real/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/real/test_real.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/real/test_rule.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/trepan/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/trepan/test_node.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/trepan/test_split.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/extraction/trepan/test_trepan.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/utils/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/utils/test_prune.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/utils/test_simplify.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/psyke/utils/test_simplify_formatter.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/resources/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/resources/datasets/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/resources/predictors/__init__.py +0 -0
- {psyke-1.0.3.dev4 → psyke-1.0.4}/test/resources/tests/__init__.py +0 -0
psyke-1.0.4/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.4
|
|
@@ -22,7 +22,7 @@ class CartPredictor:
|
|
|
22
22
|
self.discretization = discretization
|
|
23
23
|
self.normalization = normalization
|
|
24
24
|
|
|
25
|
-
def __get_constraints(self, nodes: Iterable[
|
|
25
|
+
def __get_constraints(self, nodes: Iterable[tuple[int, bool]]) -> LeafConstraints:
|
|
26
26
|
thresholds = [self._predictor.tree_.threshold[i[0]] for i in nodes]
|
|
27
27
|
features = [self._predictor.feature_names_in_[self._predictor.tree_.feature[node[0]]] for node in nodes]
|
|
28
28
|
conditions = [node[1] for node in nodes]
|
|
@@ -52,7 +52,7 @@ class CartPredictor:
|
|
|
52
52
|
else:
|
|
53
53
|
return self._predictor.tree_.value[node]
|
|
54
54
|
|
|
55
|
-
def __path(self, node: int, path=None) -> Iterable[
|
|
55
|
+
def __path(self, node: int, path=None) -> Iterable[tuple[int, bool]]:
|
|
56
56
|
path = [] if path is None else path
|
|
57
57
|
if node == 0:
|
|
58
58
|
return path
|
|
@@ -90,7 +90,7 @@ class CartPredictor:
|
|
|
90
90
|
isinstance(condition, GreaterThan)))
|
|
91
91
|
return results
|
|
92
92
|
|
|
93
|
-
def create_theory(self, data: pd.DataFrame, simplify: True) -> Theory:
|
|
93
|
+
def create_theory(self, data: pd.DataFrame, simplify: bool = True) -> Theory:
|
|
94
94
|
new_theory = mutable_theory()
|
|
95
95
|
nodes = [node for node in self]
|
|
96
96
|
nodes = self._simplify_nodes(nodes) if simplify else nodes
|
psyke-1.0.3.dev4/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.0.3.dev4
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|