INNER CODE UNIT · Python

compare

AnotherSamWilson/miceforest · miceforest/imputation_kernel.py:684

                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,
        random_state: np.random.RandomState,
        hashed_seeds: Optional[np.ndarray],
    ):
        """
        Dispatcher and formatter for the fast mean matching functions

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…