Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move sphinx_design to docdeps #992

Merged
merged 3 commits into from
Jul 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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