Comments (1)
You are correct in the interpretation of MAD however you missed the fact that the distribution of features after min-max scaling stays the same. Any scaling method will not change the shape of the data distribution but changes only the range. So dividing the distance by MAD (inverse_mad option) is to capture the relative prevalence of observing the feature at a particular value. Please refer to sec 3.3 "Choice of distance function." in our paper or refer to the paragraph below equation 4 in Wachter et al paper. However, I agree that you could use l2 distance scaled by standard deviation or any other variant, but we found the l1-MAD option working well for most scenarios in our experiments. Anyways, we will include more options for distance loss soon.
Meanwhile, in the Wachter et al. paper, the authors do not suggest to use l2-distance always, but instead they experiment with different variants of distance functions and even show that l1-MAD option generates sparser results (last para of LSAT data section, P20).
from dice.
Related Issues (20)
- Cannot perform DataFrame operations on generated counterfactuals HOT 2
- ('Feature', ... , 'has a value outside the dataset.') caused by type mismatch HOT 3
- show(shap_local) in .py file
- TypeError: _generate_counterfactuals() got an unexpected keyword argument 'feature_weights' HOT 3
- "ValueError: DataFrame.dtypes for data must be int, float or bool. Did not expect the data types in fields" even for the columns with type as HOT 1
- How to generate CF for three-dimensional dataset
- Unexpected Behavior in Calculating ”feature_weight_list“ leads to abnormal loss?
- Sometimes Counterfactuals generated with random method have wrong class HOT 1
- TypeError: expected str, bytes or os.PathLike object, not CatBoostRegressor HOT 3
- pandas > 2.0.0 should be supported
- Error when opening the notebook "DiCE_getting_started_feasible.ipynb".
- Permitted range
- Dice Object Initialization Error
- Desired output is 1 and query is the one which has the original output 0. How to select such queries?
- DiCE for Custom Model Input
- Can't import dice_ml because of raiutils lib HOT 2
- Factual presented in explanation is different from original factual HOT 1
- AttributeError: 'PrivateData' object has no attribute 'data_df'
- DiCE_getting_started_feasible notebook typo resulting in failure to render
- Counterfactuals dataframes have rounded target values HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dice.