howso-visuals 2.1.1__py3-none-any.whl → 2.2.1__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.
- howso/visuals/graph.py +21 -4
- howso/visuals/tests/test_plot.py +1 -1
- howso/visuals/visuals.py +1 -1
- {howso_visuals-2.1.1.dist-info → howso_visuals-2.2.1.dist-info}/METADATA +2 -2
- {howso_visuals-2.1.1.dist-info → howso_visuals-2.2.1.dist-info}/RECORD +9 -9
- {howso_visuals-2.1.1.dist-info → howso_visuals-2.2.1.dist-info}/licenses/LICENSE-3RD-PARTY.txt +6 -6
- {howso_visuals-2.1.1.dist-info → howso_visuals-2.2.1.dist-info}/WHEEL +0 -0
- {howso_visuals-2.1.1.dist-info → howso_visuals-2.2.1.dist-info}/licenses/LICENSE.txt +0 -0
- {howso_visuals-2.1.1.dist-info → howso_visuals-2.2.1.dist-info}/top_level.txt +0 -0
howso/visuals/graph.py
CHANGED
|
@@ -103,6 +103,7 @@ def _create_edge_annotations(
|
|
|
103
103
|
def plot_graph(
|
|
104
104
|
G: nx.Graph, # noqa: N803
|
|
105
105
|
*,
|
|
106
|
+
cscale_tuple: tuple[float, float, float] = None,
|
|
106
107
|
edge_attr_sigfigs: SupportsInt | None = 4,
|
|
107
108
|
edge_attr: str | None = None,
|
|
108
109
|
label_edges: bool = True,
|
|
@@ -118,6 +119,8 @@ def plot_graph(
|
|
|
118
119
|
----------
|
|
119
120
|
G : nx.Graph
|
|
120
121
|
The graph to plot.
|
|
122
|
+
cscale_tuple : tuple[float, float, float], optional
|
|
123
|
+
The tuple of values to use for the colorscale. If None, (3, 15, 30) will be used.
|
|
121
124
|
edge_attr : str, optional
|
|
122
125
|
The name of the edge attribute to use when scaling the size of the edges. This should
|
|
123
126
|
be an attribute that is contained within ``G``.
|
|
@@ -196,14 +199,28 @@ def plot_graph(
|
|
|
196
199
|
annotations=annotations,
|
|
197
200
|
)
|
|
198
201
|
)
|
|
202
|
+
|
|
203
|
+
if cscale_tuple is None:
|
|
204
|
+
cbot = 1
|
|
205
|
+
cmin = 3
|
|
206
|
+
cmid = 15
|
|
207
|
+
cmax = 30
|
|
208
|
+
else:
|
|
209
|
+
cbot = 1
|
|
210
|
+
cmin = cscale_tuple[0]
|
|
211
|
+
cmid = cscale_tuple[1]
|
|
212
|
+
cmax = cscale_tuple[2]
|
|
213
|
+
|
|
199
214
|
fig.update_layout(
|
|
200
215
|
coloraxis=dict(
|
|
201
216
|
colorscale="Bluered_r",
|
|
202
|
-
cmin=
|
|
203
|
-
|
|
204
|
-
|
|
217
|
+
cmin=cbot,
|
|
218
|
+
cmid=cmid,
|
|
219
|
+
cmax=cmax,
|
|
205
220
|
colorbar=dict(
|
|
206
|
-
title="Missing Information Ratio",
|
|
221
|
+
title="Missing Information Ratio",
|
|
222
|
+
tickvals=[cbot, cmin, cmid, cmax],
|
|
223
|
+
ticktext=[f"{cbot}", f"{cmin}", f"{cmid}", f"≥{cmax}"],
|
|
207
224
|
),
|
|
208
225
|
reversescale=True,
|
|
209
226
|
),
|
howso/visuals/tests/test_plot.py
CHANGED
|
@@ -60,7 +60,7 @@ def test_plot_interpretable_prediction_react(
|
|
|
60
60
|
generative_reacts = None
|
|
61
61
|
|
|
62
62
|
if do_residual:
|
|
63
|
-
residual = iris_trainee.
|
|
63
|
+
residual = iris_trainee.react_aggregate(
|
|
64
64
|
details={"prediction_stats": True, "selected_prediction_stats": ["mae"]}
|
|
65
65
|
)
|
|
66
66
|
residual = residual[action_feature].iloc[0]
|
howso/visuals/visuals.py
CHANGED
|
@@ -865,7 +865,7 @@ def plot_umap(
|
|
|
865
865
|
p = hyperparameter_map["p"]
|
|
866
866
|
|
|
867
867
|
if min_dist is None:
|
|
868
|
-
residuals = t.
|
|
868
|
+
residuals = t.react_aggregate(
|
|
869
869
|
prediction_stats_action_feature=action_feature,
|
|
870
870
|
details={"feature_full_residuals": True},
|
|
871
871
|
use_case_weights=use_case_weights,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: howso-visuals
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.1
|
|
4
4
|
Summary: Visualization utilities for use with Howso Engine.
|
|
5
5
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
6
6
|
Version 3, 19 November 2007
|
|
@@ -675,7 +675,7 @@ Requires-Python: >=3.10
|
|
|
675
675
|
Description-Content-Type: text/markdown
|
|
676
676
|
License-File: LICENSE-3RD-PARTY.txt
|
|
677
677
|
License-File: LICENSE.txt
|
|
678
|
-
Requires-Dist: howso-engine>=
|
|
678
|
+
Requires-Dist: howso-engine>=44.0
|
|
679
679
|
Requires-Dist: networkx
|
|
680
680
|
Requires-Dist: plotly[kaleido]~=6.0
|
|
681
681
|
Requires-Dist: scipy
|
|
@@ -8,15 +8,15 @@ config/powershell/Download-Tzdata.ps1,sha256=uGNszw3t3quz1ClN3PWlPr4cKMar9KxxFf4
|
|
|
8
8
|
config/powershell/Helper-Functions.ps1,sha256=oLEunSYLr-zxtG9kqYuOGG8v3kSxTQEpqeERWQ4jC8I,990
|
|
9
9
|
howso/visuals/__init__.py,sha256=OL9LT4186YIXkEmM4qc21maRnfrtxBmFUHnalcKzGWA,507
|
|
10
10
|
howso/visuals/colors.py,sha256=2ChjT4MUjA4ZqITR_K1j3fUKNRBd8M9iyJ4ZT10cNlw,1709
|
|
11
|
-
howso/visuals/graph.py,sha256=
|
|
12
|
-
howso/visuals/visuals.py,sha256=
|
|
11
|
+
howso/visuals/graph.py,sha256=Q3LvQLLyM1wtr5JfzCZo1OD-caWMIA2RXuSw8uB21Wg,7157
|
|
12
|
+
howso/visuals/visuals.py,sha256=24lFMRngQRcDqJrRcp0DL0dyh8afhQFeZUcspAtlMmc,30404
|
|
13
13
|
howso/visuals/data/iris.csv,sha256=73iTb6rB42LgZwf89er-tEbuyjlvEAx6WywMPwt0GjU,2757
|
|
14
14
|
howso/visuals/tests/conftest.py,sha256=BcvCVDWbwaQKSstzJzN9G48KoDnCgTtVdgYo2CJZTWM,1293
|
|
15
15
|
howso/visuals/tests/test_graph.py,sha256=gfuJNpsNBLx2tDXDIR-ClbCZUSOQCmk8Dx2X-NhN2yM,1014
|
|
16
|
-
howso/visuals/tests/test_plot.py,sha256=
|
|
17
|
-
howso_visuals-2.
|
|
18
|
-
howso_visuals-2.
|
|
19
|
-
howso_visuals-2.
|
|
20
|
-
howso_visuals-2.
|
|
21
|
-
howso_visuals-2.
|
|
22
|
-
howso_visuals-2.
|
|
16
|
+
howso/visuals/tests/test_plot.py,sha256=2uoE1szuv7-RNuR7d8hLcTnKy9kykCVLe8gIs9mVjkw,8106
|
|
17
|
+
howso_visuals-2.2.1.dist-info/licenses/LICENSE-3RD-PARTY.txt,sha256=AHTkdi0OVJiRQ36XU5IXwIf-NZ6Co-DyUyNyoNxrLrs,364089
|
|
18
|
+
howso_visuals-2.2.1.dist-info/licenses/LICENSE.txt,sha256=2xqHuoHohba7gpcZZKtOICRjzeKsQANXG8WoV9V35KM,33893
|
|
19
|
+
howso_visuals-2.2.1.dist-info/METADATA,sha256=e1PmzViWPkXEHB31xQc7xjWZMMsF4WO4-BRKe_Tdcq8,41051
|
|
20
|
+
howso_visuals-2.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
21
|
+
howso_visuals-2.2.1.dist-info/top_level.txt,sha256=4ltSHx7mNsXczuoCPkz1irjq1x1JZir2QrX-ZwRNWXU,22
|
|
22
|
+
howso_visuals-2.2.1.dist-info/RECORD,,
|
{howso_visuals-2.1.1.dist-info → howso_visuals-2.2.1.dist-info}/licenses/LICENSE-3RD-PARTY.txt
RENAMED
|
@@ -351,12 +351,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
351
351
|
|
|
352
352
|
|
|
353
353
|
cryptography
|
|
354
|
-
45.0.
|
|
354
|
+
45.0.7
|
|
355
355
|
Apache-2.0 OR BSD-3-Clause
|
|
356
356
|
The cryptography developers <cryptography-dev@python.org>
|
|
357
357
|
https://github.com/pyca/cryptography
|
|
358
358
|
cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
|
359
|
-
/home/runner/.pyenv/versions/3.13.7/lib/python3.13/site-packages/cryptography-45.0.
|
|
359
|
+
/home/runner/.pyenv/versions/3.13.7/lib/python3.13/site-packages/cryptography-45.0.7.dist-info/licenses/LICENSE
|
|
360
360
|
This software is made available under the terms of *either* of the licenses
|
|
361
361
|
found in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made
|
|
362
362
|
under the terms of *both* these licenses.
|
|
@@ -969,12 +969,12 @@ SOFTWARE.
|
|
|
969
969
|
|
|
970
970
|
|
|
971
971
|
matplotlib
|
|
972
|
-
3.10.
|
|
972
|
+
3.10.6
|
|
973
973
|
Python Software Foundation License
|
|
974
974
|
John D. Hunter, Michael Droettboom
|
|
975
975
|
https://matplotlib.org
|
|
976
976
|
Python plotting package
|
|
977
|
-
/home/runner/.pyenv/versions/3.13.7/lib/python3.13/site-packages/matplotlib-3.10.
|
|
977
|
+
/home/runner/.pyenv/versions/3.13.7/lib/python3.13/site-packages/matplotlib-3.10.6.dist-info/LICENSE
|
|
978
978
|
License agreement for matplotlib versions 1.3.0 and later
|
|
979
979
|
=========================================================
|
|
980
980
|
|
|
@@ -1160,12 +1160,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
1160
1160
|
SOFTWARE.
|
|
1161
1161
|
|
|
1162
1162
|
narwhals
|
|
1163
|
-
2.
|
|
1163
|
+
2.3.0
|
|
1164
1164
|
MIT License
|
|
1165
1165
|
Marco Gorelli <hello_narwhals@proton.me>
|
|
1166
1166
|
https://github.com/narwhals-dev/narwhals
|
|
1167
1167
|
Extremely lightweight compatibility layer between dataframe libraries
|
|
1168
|
-
/home/runner/.pyenv/versions/3.13.7/lib/python3.13/site-packages/narwhals-2.
|
|
1168
|
+
/home/runner/.pyenv/versions/3.13.7/lib/python3.13/site-packages/narwhals-2.3.0.dist-info/licenses/LICENSE.md
|
|
1169
1169
|
MIT License
|
|
1170
1170
|
|
|
1171
1171
|
Copyright (c) 2024, Marco Gorelli
|
|
File without changes
|
|
File without changes
|
|
File without changes
|