Cai-causal-graph

Latest version: v0.4.9

Safety actively analyzes 623965 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

0.4.9

- Fixed a bug where metadata on floating nodes would not be correctly carried over to the minimal graph when calling
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.get_minimal_graph`. This also fixes an issue where
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.is_minimal_graph` could return `False` on minimal
graphs that contain floating nodes.

0.4.8

- Upgraded `docs-builder` dependency to `"~0.2.1"` in the Makefile and updated syntax to support newer `poetry`.

0.4.7

- Added the `cai_causal_graph.causal_graph.identify_utils.identity_colliders` utility function, which allows you to
identify a list of colliders in a `cai_causal_graph.causal_graph.CausalGraph`.
- Improved efficiency of `cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.get_nodes_at_lag` and
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.get_nodes_for_variable_name` by adding caching.
- Updated `networkx` dependency from `">=3.0.0, <4.0.0"` to `">=3.0.0, <3.3.0"` and `networkx` have claimed to fix a bug
with simple paths and other related functions, but this now introduces paths of length 1 which we do not want. Also
updated `poetry.toml` to allow different `networkx` versions for `python` `3.8` and `3.9` - `3.12` as `networkx` `3.1`
is the last one that supports `3.8`.
- Upgraded `poetry` version from `1.7.1` to `1.8.2` in the GitHub workflows.

0.4.6

- Added the Boolean keyword argument `include_all_parents` to
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.extend_graph`. When `True` extra nodes may be added.
Nodes and edges will be added as far back that all nodes up to `backward_steps` in the past have all their parents
and inbound edges. This means that the extended graph may now have nodes at lags further back than `backward_steps`.
Default is `False`, meaning the default behavior of the method has not changed.
- Added the Boolean keyword argument `construct_minimal` to
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.from_adjacency_matrices` to allow the user to specify
whether to construct a minimal graph from adjacency matrices. Default is `True`, making the change backwards
compatible.
- Fixed a bug in the `cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.from_adjacency_matrices`
method of `cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph` that was introduced in the previous
release. The method was not properly handling undirected edges in the adjacency matrices.
- Fixed a bug in the `cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.to_numpy_by_lag` method of
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph` where it was not always returning the correct
variable names.
- Fixed a bug in the `cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.adjacency_matrices` property of
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph` where it was not looking at the variable names
of the minimal graph, as expected, but the variables names of the full graph.
- Removed the `return_minimal` argument from the
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.adjacency_matrices` property of
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph` as this was never working.

0.4.5

- Fixed a bug in `cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph.from_adjacency_matrices` for
`cai_causal_graph.time_series_causal_graph.TimeSeriesCausalGraph` where the method was not handling properly
undirected edges in the adjacency matrices.
- Added `mypy-extensions` dependency as `"^1.0.0"` and moved `mypy` back to dev dependency (setting it as `"^1.8.0"`).

0.4.4

- Relaxed `mypy` dependency to `"*"`.

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.