almost-matching-exactly / DAME-FLAME-Python-Package

A Python Package providing two algorithms, DAME and FLAME, for fast and interpretable treatment-control matches of categorical data
https://almost-matching-exactly.github.io/DAME-FLAME-Python-Package/
MIT License
57 stars 14 forks source link

ValueError: could not broadcast input array from shape (4,2) into shape (6,4) #63

Open OliverWayne007 opened 1 year ago

OliverWayne007 commented 1 year ago

The above mentioned Error occurred in the following line: model = dame_flame.matching.FLAME(adaptive_weights = 'ridgeCV' , repeats = True , verbose = 3) model.fit(holdout_data = df11 , treatment_column_name='AGE', outcome_column_name='DIAGNOSIS') result = model.predict(df11).

Following is the dataset used: mimic-iii_Removed_Duplicates.csv

OliverWayne007 commented 1 year ago

Can anyone help in resolving this error ? Would really appreciate the help. Thanks !

nehargupta commented 1 year ago

Hi @OliverWayne007 will look into this thanks.

OliverWayne007 commented 1 year ago

Thanks for your consideration !

On Tue, Jul 11, 2023, 02:27 Neha Gupta @.***> wrote:

Hi @OliverWayne007 https://github.com/OliverWayne007 will look into this thanks.

— Reply to this email directly, view it on GitHub https://github.com/almost-matching-exactly/DAME-FLAME-Python-Package/issues/63#issuecomment-1629721620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUGWWADZCW3OJF4RDLSBXQTXPRUEPANCNFSM6AAAAAA2BUOC3A . You are receiving this because you were mentioned.Message ID: <almost-matching-exactly/DAME-FLAME-Python-Package/issues/63/1629721620@ github.com>