Han Wang

Results 7 comments of Han Wang

Thanks for the replies! For the sample code it runs smoothly with no error. ![image (7)](https://github.com/facebookresearch/balance/assets/55514836/64099a93-5946-43c1-bf2a-455e74eccb25)

Hi talgalili, I tried to reproduce the issue but couldn't. I tried using two numerical features ['income', 'happiness'] similar with what I have for my dataset, and the code runs...

Sure! Full output: ![image (8)](https://github.com/facebookresearch/balance/assets/55514836/062abe70-d576-4c27-a7d4-406df8087a32) ![image (4)](https://github.com/facebookresearch/balance/assets/55514836/5aeb9839-d033-495f-a1c4-a6647c96d031) ![image (5)](https://github.com/facebookresearch/balance/assets/55514836/ea7096ab-95fd-4b1d-8dfb-84c2e042cb91) df.info: ![image (9)](https://github.com/facebookresearch/balance/assets/55514836/b0063461-b472-4b75-b4ac-31ac8b75e3bc)

Hi talgalili, I just tried binning the numerical variables to categorical variables, but still the code returns the same error. While method='cbps' and method = 'ipw' run smoothly. Here are...

I also tried that. Still getting the same error. ![image](https://github.com/facebookresearch/balance/assets/55514836/b172e738-50bb-4bf8-b48d-8b61d95fa93d)

I think I may find the issue. Some of the bin that appears in the sample has never appeared in the target, causing this error. Once I add the sample...