Skip to content

Commit

Permalink
powerlift 0.1.10 release
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Aug 3, 2024
1 parent c226311 commit 55c6bba
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 14 deletions.
8 changes: 8 additions & 0 deletions python/powerlift/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and the versioning is mostly derived from [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.1.10 - 2024-08-02
### Added
- Support for OpenML AutoML regression and classification datasets.
- Densify sparse data.
- For classification datasets, convert y to unique integers.
- Change CategoricalDType values to be unordered for data returned by OpenML.
- Convert object data into either CategoricalDType or float data.

## v0.1.9 - 2024-06-21
### Fixed
- Performance improvements to Azure CI executor.
Expand Down
4 changes: 2 additions & 2 deletions python/powerlift/scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1
FROM python:3.9-slim-buster

COPY powerlift-0.1.9-py3-none-any.whl .
COPY powerlift-0.1.10-py3-none-any.whl .

# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential unixodbc-dev libpq-dev python-dev && \
pip install powerlift-0.1.9-py3-none-any.whl[postgres,mssql,testing] && \
pip install powerlift-0.1.10-py3-none-any.whl[postgres,mssql,testing] && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
apt-get autoremove -y
Expand Down
2 changes: 1 addition & 1 deletion python/powerlift/scripts/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
mkdir -p ../build/docker
cp Dockerfile ../build/docker/
cd .. && python -m build && cp dist/* build/docker/
cd build/docker && docker build -t interpretml/powerlift:0.1.9 .
cd build/docker && docker build -t interpretml/powerlift:0.1.10 .
2 changes: 1 addition & 1 deletion python/powerlift/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="powerlift",
version="0.1.9",
version="0.1.10",
author="The InterpretML Contributors",
author_email="interpret@microsoft.com",
description="Interactive Benchmarking for Machine Learning.",
Expand Down
2 changes: 1 addition & 1 deletion python/powerlift/src/powerlift/executors/azure_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(
azure_client_secret: str,
subscription_id: str,
resource_group: str,
image: str = "interpretml/powerlift:0.1.9",
image: str = "interpretml/powerlift:0.1.10",
n_running_containers: int = 1,
num_cores: int = 1,
mem_size_gb: int = 2,
Expand Down
4 changes: 2 additions & 2 deletions python/powerlift/src/powerlift/executors/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class InsecureDocker(LocalMachine):
def __init__(
self,
store: Store,
image: str = "interpretml/powerlift:0.1.9",
image: str = "interpretml/powerlift:0.1.10",
n_running_containers: int = None,
wheel_filepaths: List[str] = None,
docker_db_uri: str = None,
Expand All @@ -54,7 +54,7 @@ def __init__(
Args:
store (Store): Store that houses trials.
image (str, optional): Image to execute in container. Defaults to "interpretml/powerlift:0.1.4".
image (str, optional): Image to execute in container. Defaults to "interpretml/powerlift:0.0.1".
n_running_containers (int, optional): Max number of containers running simultaneously. Defaults to None.
wheel_filepaths (List[str], optional): List of wheel filepaths to install on docker trial run. Defaults to None.
docker_db_uri (str, optional): Database URI for container. Defaults to None.
Expand Down
24 changes: 17 additions & 7 deletions scripts/release_process.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@
- open anaconda console window
- cd <PACKAGE_DOWNLOAD_DIRECTORY>
- conda env remove --name interpret_bdist && conda create --yes --name interpret_bdist python=3.10 && conda activate interpret_bdist
- pip install interpret_core-*-py3-none-any.whl[debug,notebook,plotly,lime,sensitivity,shap,linear,treeinterpreter,aplr,dash,skoperules,testing]
- pip install jupyter interpret_core-*-py3-none-any.whl[debug,notebook,plotly,lime,sensitivity,shap,linear,treeinterpreter,aplr,dash,skoperules,testing]
- cd <REPO_ROOT>
- cd docs/interpret/python/examples
- pip install jupyter
- jupyter notebook
- open all the example notebooks, run them, and check the visualizations
- clear all outputs on all notebooks
Expand All @@ -65,10 +64,9 @@ set_visualize_provider(InlineProvider())
- cd <PACKAGE_DOWNLOAD_DIRECTORY>
- conda env remove --name interpret_sdist && conda create --yes --name interpret_sdist python=3.10 && conda activate interpret_sdist
- IN WINDOWS: get the Visual studio environment with: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
- pip install interpret-core-*.tar.gz[debug,notebook,plotly,lime,sensitivity,shap,linear,treeinterpreter,aplr,dash,skoperules,testing]
- pip install jupyter interpret-core-*.tar.gz[debug,notebook,plotly,lime,sensitivity,shap,linear,treeinterpreter,aplr,dash,skoperules,testing]
- cd <REPO_ROOT>
- cd docs/interpret/python/examples
- pip install jupyter
- jupyter notebook
- open all the example notebooks, run them, and check the visualizations
- clear all outputs on all notebooks
Expand Down Expand Up @@ -173,9 +171,9 @@ set_visualize_provider(InlineProvider())
- open anaconda console window
- conda env remove --name interpret_conda && conda create --yes --name interpret_conda python=3.10 && conda activate interpret_conda
- conda install --yes -c conda-forge interpret-core psutil ipykernel ipython plotly lime SALib shap dill dash dash-core-components dash-html-components dash-table dash_cytoscape gevent requests
- pip install jupyter
- cd <REPO_ROOT>
- cd docs/interpret/python/examples
- pip install jupyter
- jupyter notebook
- open all the example notebooks, run them, and check the visualizations
- clear all outputs on all notebooks
Expand Down Expand Up @@ -211,10 +209,9 @@ set_visualize_provider(InlineProvider())
- test PyPI release locally:
- open anaconda console window
- conda env remove --name interpret_pypi && conda create --yes --name interpret_pypi python=3.10 && conda activate interpret_pypi
- pip install interpret lime # remove lime if we remove lime from example notebooks
- pip install jupyter interpret lime # remove lime if we remove lime from example notebooks
- cd <REPO_ROOT>
- cd docs/interpret/python/examples
- pip install jupyter
- jupyter notebook
- open all the example notebooks, run them, and check the visualizations
- clear all outputs on all notebooks
Expand Down Expand Up @@ -259,3 +256,16 @@ set_visualize_provider(InlineProvider())
- merge "develop" into "main" (this will also cary along with it the tag)
- push the "main" branch
- verify main and develop branch have been updated in github





POWERLIFT:
- update CHANGELOG.md
- update version in:
scripts\build-docker.sh
scripts\Dockerfile (in 2 places)
setup.py
src\powerlift\executors\azure_ci.py
src\powerlift\executors\docker.py

0 comments on commit 55c6bba

Please sign in to comment.