PolicyEngine / synthimpute

Python package for data synthesis and imputation using parametric and nonparametric methods, and evaluation of these methods.
MIT License
11 stars 6 forks source link

Limit nearest_synth_train_test to common columns #13

Open MaxGhenis opened 5 years ago

MaxGhenis commented 5 years ago

nearest_synth_train_test currently throws an error from cdist if the columns are the same:

ValueError: XA and XB must have the same number of columns (i.e. feature dimension.)

Easier to just use common columns, maybe with a warning.