Skip to content
Snippets Groups Projects

Aggregated updates for the next release (0.7.0.3)

Merged Alkaid Cheng requested to merge dev into master
Files
71
@@ -16,9 +16,9 @@ def fix_negative_weights(df, mode:Union[int, NegativeWeightMode, str]=0,
return None
mask = df[weight_col] < 0
if mode == NegativeWeightMode.SETZERO:
df[weight_col][mask] = 0
df.loc[mask, weight_col] = 0
elif mode == NegativeWeightMode.SETABS:
df[weight_col][mask] = abs(df[weight_col][mask])
df.loc[mask, weight_col] = abs(df[weight_col][mask])
def shuffle_arrays(*arrays, random_state:Optional[int]=None):
if random_state < 0:
Loading