judithabk6 / med_bench

BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

get_interactions doesn't support (n,) input #34

Open sami6mz opened 1 year ago

sami6mz commented 1 year ago

It works with (n,m) inputs :

get_interactions(True,np.ones((3,2)),np.zeros((3,1)))

But with :

get_interactions(True,np.ones((3,2)),np.zeros((3,)))

a ValueError is returned.

A .reshape(-1,1) should do the trick.