Skip to content

Commit 06657fd

Browse files
authored
Version Bump [Update/v0.9] (#334)
* updated notebook to always use opposite as desired class * updated version number and docs * removed nbsphinx allow errors
1 parent 7d8db2c commit 06657fd

61 files changed

Lines changed: 4292 additions & 6365 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include requirements-linting.txt
55
include environment.yml
66
include environment-deeplearning.yml
77
include LICENSE
8+
include CODEOWNERS
89
recursive-include docs *
910
recursive-include tests *.py
1011
include dice_ml/utils/sample_trained_models/*

docs/_modules/dice_ml/constants.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>dice_ml.constants &mdash; DiCE 0.8 documentation</title>
6+
<title>dice_ml.constants &mdash; DiCE 0.9 documentation</title>
77
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
99
<!--[if lt IE 9]>
@@ -13,7 +13,9 @@
1313
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
1414
<script src="../../_static/jquery.js"></script>
1515
<script src="../../_static/underscore.js"></script>
16+
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
1617
<script src="../../_static/doctools.js"></script>
18+
<script src="../../_static/sphinx_highlight.js"></script>
1719
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
1820
<script src="../../_static/js/theme.js"></script>
1921
<link rel="index" title="Index" href="../../genindex.html" />
@@ -46,7 +48,7 @@
4648
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_multiclass_classification_and_regression.html">Generating counterfactuals for multi-class classification and regression models</a></li>
4749
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_multiclass_classification_and_regression.html#Regression">Regression</a></li>
4850
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_model_agnostic_CFs.html">Generating counterfactual explanations with any ML model</a></li>
49-
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_private_data.html">Generating Counterfactual Explanations without access to training data</a></li>
51+
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_private_data.html">Generating counterfactual explanations without access to training data</a></li>
5052
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_advanced_options.html">Advanced options to customize Counterfactual Explanations</a></li>
5153
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_getting_started_feasible.html">Generate feasible counterfactual explanations using a VAE</a></li>
5254
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_getting_started_feasible.html#Adding-feasibility-constraints">Adding feasibility constraints</a></li>
@@ -96,7 +98,8 @@ <h1>Source code for dice_ml.constants</h1><div class="highlight"><pre>
9698
<div class="viewcode-block" id="SamplingStrategy"><a class="viewcode-back" href="../../dice_ml.html#dice_ml.constants.SamplingStrategy">[docs]</a><span class="k">class</span> <span class="nc">SamplingStrategy</span><span class="p">:</span>
9799
<span class="n">Random</span> <span class="o">=</span> <span class="s1">&#39;random&#39;</span>
98100
<span class="n">Genetic</span> <span class="o">=</span> <span class="s1">&#39;genetic&#39;</span>
99-
<span class="n">KdTree</span> <span class="o">=</span> <span class="s1">&#39;kdtree&#39;</span></div>
101+
<span class="n">KdTree</span> <span class="o">=</span> <span class="s1">&#39;kdtree&#39;</span>
102+
<span class="n">Gradient</span> <span class="o">=</span> <span class="s1">&#39;gradient&#39;</span></div>
100103

101104

102105
<div class="viewcode-block" id="ModelTypes"><a class="viewcode-back" href="../../dice_ml.html#dice_ml.constants.ModelTypes">[docs]</a><span class="k">class</span> <span class="nc">ModelTypes</span><span class="p">:</span>

docs/_modules/dice_ml/counterfactual_explanations.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>dice_ml.counterfactual_explanations &mdash; DiCE 0.8 documentation</title>
6+
<title>dice_ml.counterfactual_explanations &mdash; DiCE 0.9 documentation</title>
77
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
99
<!--[if lt IE 9]>
@@ -13,7 +13,9 @@
1313
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
1414
<script src="../../_static/jquery.js"></script>
1515
<script src="../../_static/underscore.js"></script>
16+
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
1617
<script src="../../_static/doctools.js"></script>
18+
<script src="../../_static/sphinx_highlight.js"></script>
1719
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
1820
<script src="../../_static/js/theme.js"></script>
1921
<link rel="index" title="Index" href="../../genindex.html" />
@@ -46,7 +48,7 @@
4648
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_multiclass_classification_and_regression.html">Generating counterfactuals for multi-class classification and regression models</a></li>
4749
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_multiclass_classification_and_regression.html#Regression">Regression</a></li>
4850
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_model_agnostic_CFs.html">Generating counterfactual explanations with any ML model</a></li>
49-
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_private_data.html">Generating Counterfactual Explanations without access to training data</a></li>
51+
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_private_data.html">Generating counterfactual explanations without access to training data</a></li>
5052
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_advanced_options.html">Advanced options to customize Counterfactual Explanations</a></li>
5153
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_getting_started_feasible.html">Generate feasible counterfactual explanations using a VAE</a></li>
5254
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_getting_started_feasible.html#Adding-feasibility-constraints">Adding feasibility constraints</a></li>
@@ -249,7 +251,7 @@ <h1>Source code for dice_ml.counterfactual_explanations</h1><div class="highligh
249251
<span class="n">combined_test_instance_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">serialized_cf_examples</span><span class="p">[</span>
250252
<span class="n">_DiverseCFV2SchemaConstants</span><span class="o">.</span><span class="n">TEST_INSTANCE_LIST</span><span class="p">])</span>
251253
<span class="n">combined_final_cfs_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">serialized_cf_examples</span><span class="p">[</span>
252-
<span class="n">_DiverseCFV2SchemaConstants</span><span class="o">.</span><span class="n">FIANL_CFS_LIST</span><span class="p">])</span>
254+
<span class="n">_DiverseCFV2SchemaConstants</span><span class="o">.</span><span class="n">FINAL_CFS_LIST</span><span class="p">])</span>
253255
<span class="n">data_interface</span> <span class="o">=</span> <span class="n">serialized_cf_examples</span><span class="p">[</span>
254256
<span class="n">_DiverseCFV2SchemaConstants</span><span class="o">.</span><span class="n">DATA_INTERFACE</span><span class="p">]</span>
255257
<span class="n">feature_names</span> <span class="o">=</span> <span class="n">serialized_cf_examples</span><span class="p">[</span>
@@ -335,7 +337,7 @@ <h1>Source code for dice_ml.counterfactual_explanations</h1><div class="highligh
335337
<span class="c1"># counterfactual example.</span>
336338
<span class="n">cf_examples_str</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">dumps</span><span class="p">(</span>
337339
<span class="p">{</span>
338-
<span class="n">_DiverseCFV2SchemaConstants</span><span class="o">.</span><span class="n">FIANL_CFS_LIST</span><span class="p">:</span> <span class="n">json_dict</span><span class="p">[</span>
340+
<span class="n">_DiverseCFV2SchemaConstants</span><span class="o">.</span><span class="n">FINAL_CFS_LIST</span><span class="p">:</span> <span class="n">json_dict</span><span class="p">[</span>
339341
<span class="n">_CounterfactualExpV2SchemaConstants</span><span class="o">.</span><span class="n">CFS_LIST</span><span class="p">][</span><span class="n">index</span><span class="p">],</span>
340342
<span class="n">_DiverseCFV2SchemaConstants</span><span class="o">.</span><span class="n">TEST_INSTANCE_LIST</span><span class="p">:</span> <span class="n">json_dict</span><span class="p">[</span>
341343
<span class="n">_CounterfactualExpV2SchemaConstants</span><span class="o">.</span><span class="n">TEST_DATA</span><span class="p">][</span><span class="n">index</span><span class="p">],</span>

docs/_modules/dice_ml/data.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>dice_ml.data &mdash; DiCE 0.8 documentation</title>
6+
<title>dice_ml.data &mdash; DiCE 0.9 documentation</title>
77
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
99
<!--[if lt IE 9]>
@@ -13,7 +13,9 @@
1313
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
1414
<script src="../../_static/jquery.js"></script>
1515
<script src="../../_static/underscore.js"></script>
16+
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
1617
<script src="../../_static/doctools.js"></script>
18+
<script src="../../_static/sphinx_highlight.js"></script>
1719
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
1820
<script src="../../_static/js/theme.js"></script>
1921
<link rel="index" title="Index" href="../../genindex.html" />
@@ -46,7 +48,7 @@
4648
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_multiclass_classification_and_regression.html">Generating counterfactuals for multi-class classification and regression models</a></li>
4749
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_multiclass_classification_and_regression.html#Regression">Regression</a></li>
4850
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_model_agnostic_CFs.html">Generating counterfactual explanations with any ML model</a></li>
49-
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_private_data.html">Generating Counterfactual Explanations without access to training data</a></li>
51+
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_private_data.html">Generating counterfactual explanations without access to training data</a></li>
5052
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_with_advanced_options.html">Advanced options to customize Counterfactual Explanations</a></li>
5153
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_getting_started_feasible.html">Generate feasible counterfactual explanations using a VAE</a></li>
5254
<li class="toctree-l1"><a class="reference internal" href="../../notebooks/DiCE_getting_started_feasible.html#Adding-feasibility-constraints">Adding feasibility constraints</a></li>

0 commit comments

Comments
 (0)