DAME-FLAME-Python-Package icon indicating copy to clipboard operation
DAME-FLAME-Python-Package copied to clipboard

Error? "Matching stopped while attempting iteration 1 due to the PE fraction early stopping criterion."

Open cignals24 opened this issue 1 year ago • 0 comments

Hi. I am excited to use this package but having spent a few hours with it today and I am having trouble recreating the examples in the documentation. For instance, from here: https://almost-matching-exactly.github.io/DAME-FLAME-Python-Package/examples/interpretability/

I am only getting not even one iteration? and the example has 5?

Using this code:

import dame_flame import numpy as np import matplotlib.pyplot as plt df,_ = dame_flame.utils.data.generate_binomial_decay_importance(50,50) model = dame_flame.matching.FLAME(verbose=3, repeats=False) model.fit(holdout_data=df) result_flame = model.predict(df)

OUTPUT looks wrong

Completed iteration 0 of matching Number of matched groups formed in total: 26 Unmatched treated units: 4 out of a total of 50 treated units Unmatched control units: 2 out of a total of 50 control units Number of matches made this iteration: 94 Number of matches made so far: 94 Covariates dropped so far: set() Predictive error of covariate set used to match: 0.010168386437667723 Matching stopped while attempting iteration 1 due to the PE fraction early stopping criterion. Predictive error of covariate set would have been 0.3628045613492125

Setup using DBX %pip install dame-flame==0.71 sys version 3.10.12

cignals24 avatar Aug 01 '24 20:08 cignals24