You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
433defcompute_bss(self, threshold, dim=None): 434""" --> 435 Compute the Brier Skill Score (BSS) for a given threshold. 436 437 Args: 438 threshold (float): The threshold value for binary classification. 439 dim (str, list, or None): The dimension(s) along which to compute the BSS. 440 If None, compute the BSS over the entire data. 441 442 Returns: 443 xarray.DataArray: The computed BSS values. 444 """445# Convert data to binary based on the threshold 446obs_binary= (self.obs_data>=threshold).astype(int)
...
2299 )
2300result=Variable(dims, new_data, attrs=attrs)
2301returnresult
TypeError: numpy boolean subtract, the - operator, is not supported, use the bitwise_xor, the ^ operator, or the logical_xor function instead.
@harry9713 any idea why, can you check this a bit as well?
The text was updated successfully, but these errors were encountered:
Executing HSS gives the following Traceback,
TypeError: numpy boolean subtract, the
-
operator, is not supported, use the bitwise_xor, the^
operator, or the logical_xor function instead.@harry9713 any idea why, can you check this a bit as well?
The text was updated successfully, but these errors were encountered: