Skip to content

Commit

Permalink
Move sphinx_design to docdeps (#992)
Browse files Browse the repository at this point in the history
* move sphinx_design to docdeps

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* changed np.float to float as recommended by numpy 1.24 (throws an error otherwise)

Signed-off-by: Amit Sharma <amit_sharma@live.com>

---------

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>
Signed-off-by: Amit Sharma <amit_sharma@live.com>
Co-authored-by: Amit Sharma <amit_sharma@live.com>
  • Loading branch information
darthtrevino and amit-sharma authored Jul 30, 2023
1 parent e911823 commit 44a6d99
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
4 changes: 2 additions & 2 deletions dowhy/gcm/shapley.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def _create_subsets_and_weights_exact(num_players: int, high_weight: float) -> T
scipy.special.binom(num_players, subset_size) * subset_size * (num_players - subset_size)
)

return np.array(all_subsets, dtype=np.int32), weights.astype(np.float)
return np.array(all_subsets, dtype=np.int32), weights.astype(float)


def _create_subsets_and_weights_approximation(
Expand Down Expand Up @@ -562,7 +562,7 @@ def _create_subsets_and_weights_approximation(

weights = np.array([weights[tuple(x)] for x in all_subsets])

return np.array(all_subsets, dtype=np.int32), weights.astype(np.float)
return np.array(all_subsets, dtype=np.int32), weights.astype(float)


def _convert_list_of_indices_to_binary_vector_as_tuple(list_of_indices: List[int], num_players: int) -> Tuple[int]:
Expand Down
62 changes: 31 additions & 31 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ causal-learn = ">=0.1.3.0"

#Plotting Extra
matplotlib = { version = ">=3.5.3", optional = true }
sphinx_design = "^0.3.0"
cvxpy = "^1.2.2"

[tool.poetry.extras]
Expand Down Expand Up @@ -109,6 +108,8 @@ optional = true
#
# Dependencies for Documentation Generation
#

sphinx_design = "^0.3.0"
sphinx = "^5.3.0"
sphinxcontrib-googleanalytics = { git = "https://github.com/sphinx-contrib/googleanalytics.git", branch = "master" }
nbsphinx = "^0.8.9"
Expand Down

0 comments on commit 44a6d99

Please sign in to comment.