Skip to content

Commit

Permalink
Post release: updates to description and py requires
Browse files Browse the repository at this point in the history
  • Loading branch information
bbengfort committed Aug 29, 2019
2 parents a27c290 + 2fbe58a commit d9e1218
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Yellowbrick

[![Visualizers](docs/images/readme/banner.png)](https://www.scikit-yb.org/)
[![Visualizers](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/banner.png)](https://www.scikit-yb.org/)

Yellowbrick is a suite of visual analysis and diagnostic tools designed to facilitate machine learning with scikit-learn. The library implements a new core API object, the `Visualizer` that is an scikit-learn estimator — an object that learns from data. Similar to transformers or models, visualizers learn from data by creating a visual representation of the model selection workflow.

Expand All @@ -16,7 +16,7 @@ Visualizers are estimators — objects that learn from data — whose pr

- **Classification Report**: a visual classification report that displays a model's precision, recall, and F1 per-class scores as a heatmap
- **Confusion Matrix**: a heatmap view of the confusion matrix of pairs of classes in multi-class classification
- **Discrimination Threshold**: a visualization of the precision, recall, F1-score, and queue rate with respect to the discrimination threshold of a binary classifier
- **Discrimination Threshold**: a visualization of the precision, recall, F1-score, and queue rate with respect to the discrimination threshold of a binary classifier
- **Precision-Recall Curve**: plot the precision vs recall scores for different probability thresholds
- **ROCAUC**: graph the receiver operator characteristic (ROC) and area under the curve (AUC)

Expand Down Expand Up @@ -66,5 +66,5 @@ Visualizers are estimators — objects that learn from data — whose pr
... and more! Yellowbrick is adding new visualizers all the time so be sure to check out our [examples gallary](https://www.scikit-yb.org/en/latest/api/index.html) — or even the [develop](https://github.com/districtdatalabs/yellowbrick/tree/develop) branch — and feel free to contribute your ideas for new Visualizers!

## Affiliations
[![District Data Labs](docs/images/readme/affiliates_ddl.png)](https://www.districtdatalabs.com/) [![NumFOCUS Affiliated Project](docs/images/readme/affiliates_numfocus.png)](https://numfocus.org/)
[![District Data Labs](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/affiliates_ddl.png)](https://www.districtdatalabs.com/) [![NumFOCUS Affiliated Project](https://github.com/DistrictDataLabs/yellowbrick/raw/develop/docs/images/readme/affiliates_numfocus.png)](https://numfocus.org/)

3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
description-file = DESCRIPTION.txt
license_file = LICENSE.txt

[wheel]
universal = 1

[test]
local_freetype = True
tests = True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_description_type(path=PKG_DESCRIBE):
"zip_safe": False,
"entry_points": {"console_scripts": []},
"install_requires": list(get_requires()),
"python_requires": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4",
"python_requires": ">=3.4, <4",
"setup_requires": ["pytest-runner"],
"tests_require": ["pytest"],
}
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
## Test Constants
##########################################################################

EXPECTED_VERSION = "1.0"
EXPECTED_VERSION = "1.0.post1"


##########################################################################
Expand Down
18 changes: 14 additions & 4 deletions yellowbrick/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"minor": 0,
"micro": 0,
"releaselevel": "final",
"serial": 14,
"post": 1,
"serial": 15,
}

##########################################################################
Expand All @@ -35,11 +36,20 @@ def get_version(short=False):
Prints the version.
"""
assert __version_info__["releaselevel"] in ("alpha", "beta", "final")
vers = ["%(major)i.%(minor)i" % __version_info__]
vers = ["{major}.{minor}".format(**__version_info__)]

if __version_info__["micro"]:
vers.append(".%(micro)i" % __version_info__)
vers.append(".{micro}".format(**__version_info__))

if __version_info__["releaselevel"] != "final" and not short:
vers.append(
"%s%i" % (__version_info__["releaselevel"][0], __version_info__["serial"])
"{}{}".format(
__version_info__["releaselevel"][0],
__version_info__["serial"],
)
)

if __version_info__["post"]:
vers.append(".post{}".format(__version_info__["post"]))

return "".join(vers)

0 comments on commit d9e1218

Please sign in to comment.