You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using dice-ml - 0.6.1 version. I wanted to perform some DataFrame operations on the generated counterfactuals.
Here I have the results of the generated counterfactuals.
This is the DataFrame that was generated, and I wanted to replace the target column with the original value (unencoded value), but I failed to replace the value, after some search I found a workaround.
This is the way I found by which I can modify the DataFrame and which will affect in the cfs.to_json() method.
In Regression Problem, the counterfactuals generated contained too many decimals which should be rounded, so I used the same way i.e, modifying the final_cfs_df dataframe to round the decimals.
Can we have a method which can perform all the DataFrame operations that directly affects the to_json() method?
The text was updated successfully, but these errors were encountered:
This is a workaround that I already have found. As you can see from the screenshots above.
I don't want to save the generated counterfactuals as csv file.
I'm using dice-ml - 0.6.1 version. I wanted to perform some DataFrame operations on the generated counterfactuals.
Here I have the results of the generated counterfactuals.
This is the DataFrame that was generated, and I wanted to replace the target column with the original value (unencoded value), but I failed to replace the value, after some search I found a workaround.
This is the way I found by which I can modify the DataFrame and which will affect in the cfs.to_json() method.
In Regression Problem, the counterfactuals generated contained too many decimals which should be rounded, so I used the same way i.e, modifying the final_cfs_df dataframe to round the decimals.
Can we have a method which can perform all the DataFrame operations that directly affects the to_json() method?
The text was updated successfully, but these errors were encountered: