-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* BUILD: add first part of mypy support * BUILD: introduce minor changes * BUILD: refactor inspection methods * BUILD: add py.typed file * BUILD: drop python 3.6 support * REFACTOR: streamline code for affinity matrix calculations * API: remove unsupported method fit_predict from CandidateEstimatorDF * FIX: call candidate.predict(), not candidate.predic() * API: raise exception on CandidateEstimatorDF.xyz() with empty candidate * API: make type of CandidateEstimatorDF's 'candidate' param more specific * BUILD: apply review * API: pass explainer + interactions flag to ExplainerJob not explainer_fn * API: remove redundant arg explainer from __feature_affinity_matrix() * REFACTOR: use to_list with the 'optional' flag * BUILD: add cast for output_name * API: make method FittableMixin.ensure_fitted public * BUILD: update environment.yml * BUILD: update pre-commit config to load pytools and sklearndf for mypy * API: remove obsolete code to compute the std of affinity scores * API: remove obsolete properties RangePartitioner.…_bound * FIX: ensure_fitted() is now a public method * FIX: address remaining mypy errors Co-authored-by: Jan Ittner <ittner.jan@bcg.com>
- Loading branch information
Showing
17 changed files
with
402 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[mypy] | ||
show_error_codes = True | ||
allow_redefinition = True | ||
|
||
[mypy-catboost.*] | ||
; TODO remove once PEP 561 is supported | ||
ignore_missing_imports = True | ||
|
||
[mypy-matplotlib.*] | ||
; TODO remove once PEP 561 is supported | ||
ignore_missing_imports = True | ||
|
||
[mypy-mpl_toolkits.*] | ||
; TODO remove once PEP 561 is supported | ||
ignore_missing_imports = True | ||
|
||
[mypy-pandas.*] | ||
; TODO remove once PEP 561 is supported | ||
ignore_missing_imports = True | ||
|
||
[mypy-pytools.*] | ||
; TODO remove once PEP 561 is supported | ||
ignore_missing_imports = True | ||
|
||
[mypy-scipy.*] | ||
; TODO remove once PEP 561 is supported | ||
ignore_missing_imports = True | ||
|
||
[mypy-sklearn.*] | ||
; TODO remove once PEP 561 is supported | ||
ignore_missing_imports = True | ||
|
||
[mypy-shap.*] | ||
; TODO remove once PEP 561 is supported | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.