Skip to content

Commit 688c9d7

Browse files
author
Markus Semmler
committed
Fix indent in docstring.
1 parent 595105b commit 688c9d7

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/pydvl/value/semivalues.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ def compute_beta_shapley_semivalues(
371371
sampler_t: The sampler type to use. See :mod:`pydvl.value.sampler` for a list.
372372
n_jobs: Number of parallel jobs to use.
373373
seed: Either an instance of a numpy random number generator or a seed for it.
374-
config: Object configuring parallel computation, with cluster address, number of cpus, etc.
374+
config: Object configuring parallel computation, with cluster address, number of
375+
cpus, etc.
375376
progress: Whether to display a progress bar.
376377
377378
Returns:

src/pydvl/value/shapley/common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ def compute_shapley_values(
8989
criteria using boolean operators. Some methods ignore this argument,
9090
others require specific subtypes.
9191
n_jobs: Number of parallel jobs (available only to some methods)
92-
seed: Either an instance of a numpy random number generator or a seed
93-
for it.
92+
seed: Either an instance of a numpy random number generator or a seed for it.
9493
mode: Choose which shapley algorithm to use. See
9594
[ShapleyMode][pydvl.value.shapley.ShapleyMode] for a list of allowed value.
9695

src/pydvl/value/shapley/gt.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ def _group_testing_shapley(
140140
n_samples: total number of samples (subsets) to use.
141141
progress: Whether to display progress bars for each job.
142142
job_id: id to use for reporting progress (e.g. to place progres bars)
143-
seed: Either an instance of a numpy random number generator or a seed
144-
for it.
143+
seed: Either an instance of a numpy random number generator or a seed for it.
145144
Returns:
146145
147146
"""
@@ -202,8 +201,7 @@ def group_testing_shapley(
202201
config: Object configuring parallel computation, with cluster
203202
address, number of cpus, etc.
204203
progress: Whether to display progress bars for each job.
205-
seed: Either an instance of a numpy random number generator or a seed
206-
for it.
204+
seed: Either an instance of a numpy random number generator or a seed for it.
207205
options: Additional options to pass to
208206
[cvxpy.Problem.solve()](https://www.cvxpy.org/tutorial/advanced/index.html#solve-method-options).
209207
E.g. to change the solver (which defaults to `cvxpy.SCS`) pass

src/pydvl/value/shapley/montecarlo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def combinatorial_montecarlo_shapley(
323323
number of cpus, etc.
324324
progress: Whether to display progress bars for each job.
325325
seed: Either an instance of a numpy random number generator or a seed for it.
326-
f
326+
327327
Returns:
328328
Object with the data values.
329329
"""

0 commit comments

Comments
 (0)