MNAR multivariate: mMNAR Class
mMNAR
mMNAR
mMNAR(X: DataFrame, y: ndarray, threshold: float = 0, n_xmiss: int = 2, missTarget: bool = False, n_Threads: int = 1)
A class to generate missing values in a dataset based on the Missing Not At Random (MNAR) mechanism for multiple features simultaneously.
Args: X (pd.DataFrame): The dataset to receive the missing data. y (np.array): The label values from dataset missing_rate (int, optional): The rate of missing data to be generated. Default is 10.
Keyword Args: n_xmiss (int, optional): The number of features in the dataset that will receive missing values. Default is the number of features in dataset. threshold (float, optional): The threshold to select the locations in feature (xmiss) to receive missing values where 0 indicates de lowest and 1 highest values. Default is 0 missTarget (bool, optional): A flag to generate missing into the target.
Example Usage:
# Create an instance of the MNAR class
generator = MNAR(X, y)
# Generate missing values using the random strategy
data_md = generator.random()
random
Generate missing data using parallel processing.
correlated
Generate missing data using parallel processing.
median
Generate missing data using parallel processing.
MBOUV
Generate missing data using parallel processing.
MBOV_randomness
Generate missing data using parallel processing.
MBOV_median
Generate missing data using parallel processing.