MoonBit library for missing data mechanism diagnosis and imputation
///|
let dataset : Array[Array[Double?]] = [
[Some(1.0), None, Some(3.0)],
[Some(2.0), Some(4.0), None],
[None, None, Some(9.0)],
]
///|
let rates = @diagnose.missing_rate(dataset)
///|
let report = @diagnose.missing_rate_report(dataset)
///|
let filled = @impute.impute_median(dataset)
///|
let with_indicators = @impute.append_missing_indicators(dataset)moon run cmd/main
moon run --target native cmd/benchmean_impute_checksum=64851810.91227517
knn_impute_checksum=64779603.6
mice_impute_checksum=64893757.64677953
holdout_cells=1061
holdout_mae=Some(649.1812912346851)
holdout_rmse=Some(750.081167953114)moon check --deny-warn
moon test --deny-warn
moon check --target all
moon test --target allMoonBit library for missing data mechanism diagnosis and imputation