Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD: Release facet 1.1.0rc0 #269

Merged
merged 41 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e95a72d
update azure pipelines for 1.1 branch
j-ittner Jan 13, 2021
7f99326
rename branch 1.1 to 1.1.x
j-ittner Jan 14, 2021
ae16e34
update with latest develop
jason-bentley Jan 15, 2021
b6a2bc1
Merge pull request #201 from BCG-Gamma/build/update_pipeline
jason-bentley Jan 18, 2021
d8b05f3
change 'childs' to 'children' (#208)
j-ittner Jan 20, 2021
b6f4e2d
Merge branch 'develop' into merge/develop_to_1.1.x
j-ittner Jan 23, 2021
f0f92ce
Merge branch 'develop' into merge/develop_to_1.1.x
j-ittner Jan 26, 2021
d726cb1
Merge branch 'develop' into merge/develop_to_1.1.x
j-ittner Jan 27, 2021
8f75c78
REFACTOR: update parallelization code to use new Job classes (#214)
j-ittner Jan 27, 2021
0da3ea5
BUILD: update version numbers (#217)
j-ittner Jan 28, 2021
3fe9375
FIX: drop support for joblib v0.13 (#216)
j-ittner Jan 29, 2021
a3a2bd1
Merge branch 'develop' into 1.1.x
j-ittner Jan 29, 2021
824b446
Merge branch 'develop' into 1.1.x
j-ittner Feb 1, 2021
7044e90
Merge branch 'develop' into 1.1.x
j-ittner Feb 2, 2021
8177c0c
Merge branch 'develop' into 1.1.x
j-ittner Feb 3, 2021
f07f03a
BUILD: increase minimum pytools version to 1.1 (#229)
j-ittner Feb 3, 2021
dd9c121
FIX: fix min version spec for gamma-pytools (#232)
j-ittner Feb 4, 2021
1ab1527
Merge branch 'develop' into 1.1.x
j-ittner Feb 4, 2021
51bd5ab
Merge branch 'develop' into 1.1.x
j-ittner Feb 4, 2021
58ca1c2
API: make method MatplotStyle._apply_color_scheme public (#236)
j-ittner Feb 4, 2021
7c78e1c
Merge branch 'develop' into 1.1.x
j-ittner Feb 15, 2021
4c8fa16
API: rename LearnerInspector.features to .features_ (#243)
j-ittner Feb 15, 2021
5d0fa95
Merge branch 'develop' into 1.1.x
j-ittner Feb 22, 2021
21dc2e0
API: replace SHAP vector decomposition with SHAP vector projection (#…
j-ittner Feb 24, 2021
f964858
require pytools >=1.1.*
j-ittner Feb 25, 2021
9bf9cda
BUILD: change version to 1.1.0rc0 (#249)
j-ittner Feb 26, 2021
15b82a8
API: remove the experimental 'shuffle_features' option (#250)
j-ittner Mar 3, 2021
6b76ebc
TEST: re-enable unit test for docstrings (#247)
j-ittner Mar 3, 2021
d711d77
Merge branch 'develop' into 1.1.x
j-ittner Mar 3, 2021
fa8877b
Merge branch 'develop' into 1.1.x
j-ittner Mar 15, 2021
043474b
Merge branch 'develop' into 1.1.x
j-ittner Mar 16, 2021
a9dbe93
FIX: do not export constants and type aliases (#257)
j-ittner Mar 17, 2021
c1509a7
Merge branch 'develop' into 1.1.x
j-ittner Mar 22, 2021
f9c3092
Finalize revised calculation approach (#255)
j-ittner Mar 23, 2021
bc610f1
API: move package facet.simulation.partition to facet.data.partition …
j-ittner Mar 24, 2021
1dc1e41
API: rename JobQueue.start() to JobQueue.on_run() (#264)
j-ittner Mar 24, 2021
d0a9ee2
BUILD: add support for shap v0.39 (#261)
j-ittner Mar 24, 2021
204234e
API: consistently refer to all mean/std calculations as "aggregation"…
j-ittner Mar 24, 2021
ba5505f
BUILD: update dependencies in pyproject.toml (#267)
j-ittner Mar 24, 2021
1e60f00
azure-pipelines.yml: add copy of old docs-versions folder (#268)
joerg-schneider Mar 24, 2021
533f9fb
Merge branch 'release/1.1.0rc0' into dev/1.1.0rc0
joerg-schneider Mar 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ quantify the uncertainty by using bootstrap confidence intervals.
from facet.validation import BootstrapCV
from facet.crossfit import LearnerCrossfit
from facet.simulation import UnivariateUpliftSimulator
from facet.simulation.partition import ContinuousRangePartitioner
from facet.data.partition import ContinuousRangePartitioner
from facet.simulation.viz import SimulationDrawer

# create bootstrap CV iterator
Expand Down
24 changes: 23 additions & 1 deletion RELEASE_NOTES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
Release Notes
=============

FACET 1.1
---------

FACET 1.1 refines and enhances the association/synergy/redundancy calculations provided
by the :class:`.LearnerInspector`.

1.1.0
~~~~~

- API: SHAP interaction vectors can (in part) also be influenced by redundancy among
features. FACET now corrects interaction vectors for redundancy prior to calculating
synergy. Technically we ensure that the interaction vector is orthogonal w.r.t the
main effect vectors of both associated features.
- API: FACET now calculates synergy, redundancy, and association separately for each
model in a crossfit, then returns the mean of all resulting matrices. This leads to a
slight increase in accuracy, and also allows us to calculate the standard deviation
across matrices as an indication of confidence for each calculated value.
- API: Increase efficiency of :class:`.LearnerRanker` parallelization by adopting the
new :class:`pytools.parallelization.JobRunner` API provided by :mod:`pytools`
- BUILD: add support for :mod:`shap` 0.38 and 0.39


FACET 1.0
---------

Expand All @@ -13,7 +35,7 @@ fixes.
- API: add support for :mod:`shap` 0.36 and 0.37 via a new :class:`.BaseExplainer`
stub class
- FIX: apply color scheme to the histogram section in :class:`.SimulationMatplotStyle`
- BUILD: add support for numpy 1.20
- BUILD: add support for :mod:`numpy` 1.20
- BUILD: updates and changes to the CI/CD pipeline


Expand Down
12 changes: 7 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
trigger:
- develop
- 1.1.x
- dev/*
- release/*

pr:
- develop
- 1.1.x
- dev/*
- release/*

Expand All @@ -17,20 +17,20 @@ schedules:
displayName: Nightly full build
branches:
include:
- develop
- 1.1.x

resources:
repositories:
- repository: sklearndf
type: github
endpoint: BCG-Gamma
name: BCG-Gamma/sklearndf
ref: develop # todo - update to stable release
ref: 1.1.x # todo - update to stable release
- repository: pytools
type: github
endpoint: BCG-Gamma
name: BCG-Gamma/pytools
ref: develop # todo - update to stable release
ref: 1.1.x # todo - update to stable release

variables:
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')) }}:
Expand Down Expand Up @@ -656,6 +656,8 @@ stages:
cp -r $(Build.ArtifactStagingDirectory)/old_docs/docs .
echo "Current docs contents:"
tree docs
mkdir -p $(System.DefaultWorkingDirectory)/facet/sphinx/build/
cp -R docs/docs-version $(System.DefaultWorkingDirectory)/facet/sphinx/build/
echo "Building sphinx docs"
conda activate facet-develop
cd $(System.DefaultWorkingDirectory)/facet
Expand Down
3 changes: 2 additions & 1 deletion condabuild/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ test:
- python -c 'import facet;
import os;
assert facet.__version__ == os.environ["PKG_VERSION"]'
- pytest -vs ${FACET_PATH}/facet/test
- cd "${FACET_PATH}/facet"
- pytest -vs test

about:
home: https://github.com/BCG-Gamma/facet
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ dependencies:
- xlrd >= 1.2
- yaml > 0.2
- pip:
- shap >=0.35,<0.39
- shap >=0.34,<0.40
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ license = "Apache Software License v2.0"

requires = [
# direct requirements of gamma-facet
"gamma-pytools >=1.0.2,<2",
"gamma-pytools >=1.1,<2",
"matplotlib >=3.0,<3.4",
"numpy >=1.16,<1.21",
"packaging >=20",
"pandas >=0.24,<1.3",
"scipy >=1.2,<1.6",
"shap >=0.34,<0.39",
"sklearndf >=1.0.2,<2",
"shap >=0.34,<0.40",
"sklearndf >=1.1,<2",
# additional requirements of sklearndf
"boruta >=0.3",
"lightgbm >=3.0",
"scikit-learn >=0.21,<0.24",
# additional requirements of gamma-pytools
"joblib >=0.13,<1.1",
"joblib >=0.14,<1.1",
"typing_inspect >=0.4,<0.7",
# additional requirements of shap 0.38
# todo: remove once supported via shap 0.38 requirements
Expand Down Expand Up @@ -78,33 +78,33 @@ Repository = "https://github.com/BCG-Gamma/facet"

[build.matrix.min]
# direct requirements of gamma-facet
gamma-pytools = "=1.0.2"
gamma-pytools = "=1.1.0"
matplotlib = "=3.0.*"
numpy = "=1.16.*"
packaging = "=20.*"
pandas = "=0.24.*"
python = "=3.6.*"
scipy = "=1.2.*"
shap = "=0.34.*"
sklearndf = "=1.0.2"
sklearndf = "=1.1.0"
# additional requirements of sklearndf
boruta = "=0.3.*"
lightgbm = "=3.0.*"
scikit-learn = "=0.21.*"
# additional requirements of gamma-pytools
joblib = "=0.13.*"
joblib = "=0.14.*"
typing_inspect = "=0.4"

[build.matrix.max]
gamma-pytools = "<2"
matplotlib = "=3.3.*"
gamma-pytools = ">=1.1,<2"
matplotlib = "<3.4"
numpy = "<1.21"
packaging = ">=20"
pandas = "<1.3"
python = "=3.8.*"
scipy = "<1.6"
shap = ">=0.37,<0.39"
sklearndf = ">=1.0.2,<2"
shap = ">=0.37,<0.40"
sklearndf = ">=1.1,<2"
# additional requirements of sklearndf
boruta = ">=0.3"
lightgbm = ">=3.0"
Expand Down
2 changes: 1 addition & 1 deletion sphinx/auxiliary/Diabetes_getting_started_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
"from facet.validation import BootstrapCV\n",
"from facet.crossfit import LearnerCrossfit\n",
"from facet.simulation import UnivariateUpliftSimulator\n",
"from facet.simulation.partition import ContinuousRangePartitioner\n",
"from facet.data.partition import ContinuousRangePartitioner\n",
"from facet.simulation.viz import SimulationDrawer\n",
"\n",
"# create bootstrap CV iterator\n",
Expand Down
2 changes: 1 addition & 1 deletion sphinx/source/faqs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,5 @@ Bibtex entry::
title={FACET},
author={FACET Team at BCG GAMMA},
year={2021},
note={Python package version 1.0.2}
note={Python package version 1.1.0}
}
4 changes: 2 additions & 2 deletions sphinx/source/tutorial/Classification_with_Facet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"from facet.inspection import LearnerInspector\n",
"from facet.selection import LearnerRanker, LearnerGrid\n",
"from facet.validation import BootstrapCV\n",
"from facet.simulation.partition import ContinuousRangePartitioner\n",
"from facet.data.partition import ContinuousRangePartitioner\n",
"from facet.simulation import UnivariateProbabilitySimulator\n",
"from facet.simulation.viz import SimulationDrawer\n",
"from facet.crossfit import LearnerCrossfit"
Expand Down Expand Up @@ -3098,4 +3098,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
4 changes: 2 additions & 2 deletions sphinx/source/tutorial/Model_simulation_deep_dive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"source": [
"from facet.data import Sample\n",
"from facet.validation import BootstrapCV\n",
"from facet.simulation.partition import (\n",
"from facet.data.partition import (\n",
" ContinuousRangePartitioner,\n",
" IntegerRangePartitioner,\n",
" CategoryPartitioner,\n",
Expand Down Expand Up @@ -1472,4 +1472,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"from facet.inspection import LearnerInspector\n",
"from facet.selection import LearnerRanker, LearnerGrid\n",
"from facet.validation import BootstrapCV\n",
"from facet.simulation.partition import ContinuousRangePartitioner\n",
"from facet.data.partition import ContinuousRangePartitioner\n",
"from facet.simulation import UnivariateUpliftSimulator\n",
"from facet.simulation.viz import SimulationDrawer"
]
Expand Down Expand Up @@ -2129,4 +2129,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"from facet.inspection import LearnerInspector\n",
"from facet.selection import LearnerRanker, LearnerGrid\n",
"from facet.validation import BootstrapCV\n",
"from facet.simulation.partition import ContinuousRangePartitioner\n",
"from facet.data.partition import ContinuousRangePartitioner\n",
"from facet.simulation import UnivariateProbabilitySimulator\n",
"from facet.simulation.viz import SimulationDrawer\n",
"from facet.crossfit import LearnerCrossfit"
Expand Down Expand Up @@ -1527,4 +1527,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
2 changes: 1 addition & 1 deletion src/facet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""


__version__ = "1.0.2"
__version__ = "1.1.0rc0"

__logo__ = (
r"""
Expand Down
Loading