INNER CODE UNIT · Python
imp_values
AnotherSamWilson/miceforest · miceforest/imputation_kernel.py:679
imp_values = (bachelor_preds < compare).sum(1)
else:
dtype = hashed_seeds.dtype
dtype_max = np.iinfo(dtype).max
compare = np.abs(hashed_seeds / dtype_max)
compare.shape = (-1, 1)
imp_values = (bachelor_preds < compare).sum(1)
imp_values.shape = (-1,)
return imp_values
def _mean_match_fast(
self,
variable: str,
mean_match_candidates: int,
bachelor_preds: np.ndarray,