diff --git a/devel/CHANGELOG/index.html b/devel/CHANGELOG/index.html index c27210b44..cf751b9a4 100644 --- a/devel/CHANGELOG/index.html +++ b/devel/CHANGELOG/index.html @@ -2725,6 +2725,8 @@
pydvl.value.semivalues
. Introduced new type Seed
and conversion function
ensure_seed_sequence
.
PR #396
+batch_size
parameter to compute_banzhaf_semivalues
,
+ compute_beta_shapley_semivalues
, compute_shapley_semivalues
and
+ compute_generic_semivalues
.
+ PR #428If True
, repeated calls to a function
with the same arguments will be allowed and outputs averaged until the
-running standard deviation of the mean stabilises below
+running standard deviation of the mean stabilizes below
rtol_stderr * mean
.
@@ -3355,7 +3355,7 @@
TYPE:
- Union[ndarray, DataFrame]
+ Union[NDArray, DataFrame]
TYPE:
- Union[ndarray, DataFrame]
+ Union[NDArray, DataFrame]
TYPE:
- Union[ndarray, DataFrame]
+ Union[NDArray, DataFrame]
TYPE:
- Union[ndarray, DataFrame]
+ Union[NDArray, DataFrame]
def __init__(
self,
- x_train: Union[np.ndarray, pd.DataFrame],
- y_train: Union[np.ndarray, pd.DataFrame],
- x_test: Union[np.ndarray, pd.DataFrame],
- y_test: Union[np.ndarray, pd.DataFrame],
+ x_train: Union[NDArray, pd.DataFrame],
+ y_train: Union[NDArray, pd.DataFrame],
+ x_test: Union[NDArray, pd.DataFrame],
+ y_test: Union[NDArray, pd.DataFrame],
feature_names: Optional[Sequence[str]] = None,
target_names: Optional[Sequence[str]] = None,
data_names: Optional[Sequence[str]] = None,
@@ -3124,8 +3128,12 @@
raise ValueError("Mismatching number of targets and names")
self.description = description or "No description"
- self._indices = np.arange(len(self.x_train))
- self._data_names = data_names if data_names is not None else self._indices
+ self._indices = np.arange(len(self.x_train), dtype=np.int_)
+ self._data_names = (
+ np.array(data_names, dtype=object)
+ if data_names is not None
+ else self._indices.astype(object)
+ )
indices
+ indices: NDArray[np.int_]
property
@@ -3168,7 +3176,7 @@ data_names
+ data_names: NDArray[np.object_]
property
@@ -3191,7 +3199,7 @@ dim
+ dim: int
property
@@ -3290,11 +3298,7 @@ src/pydvl/utils/dataset.py
139 -140 -141 -142 -143 +
Source code in
- |
164 -165 -166 -167 -168 +
Source code in
- |
249 -250 -251 -252 -253 +
Source code in
- |
309 -310 -311 -312 -313 + |
@@ -4187,7 +4195,7 @@
361 -362 -363 -364 -365 + |