Skip to content

Commit

Permalink
Merge branch 'WHY-2694_fix_merger_issue' of github.com:whylabs/whylog…
Browse files Browse the repository at this point in the history
…s-python into WHY-2694_fix_merger_issue
  • Loading branch information
lalmei committed Apr 9, 2021
2 parents 48a7c61 + 9dc6ffc commit eeb108c
Show file tree
Hide file tree
Showing 35 changed files with 12,473 additions and 63 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
finish:
needs: test
runs-on: ubuntu-latest
strategy:
max-parallel: 2
steps:
- name: Coveralls Finished
env:
Expand All @@ -63,4 +65,3 @@ jobs:
with:
parallel-finished: true
github-token : ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
# Drafts your next Release notes as Pull Requests are merged into "mainline"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/test-notebook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: notebook test

on:
push:
branches: [ mainline, release]
pull_request:
branches: [ mainline, release]

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
max-parallel: 6
matrix:
python-version: [3.9]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Protoc
uses: arduino/setup-protoc@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-test.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
- name: Run notebook test
run: |
pytest --no-cov test_notebooks/notebook_tests.py
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
cover/
mlruns/

# Translations
*.mo
Expand Down
23 changes: 23 additions & 0 deletions .whylogs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

project: s3_example_project
pipeline: latest_results
verbose: false
writers:
- formats:
- protobuf
output_path: s3://super_awesome_bucket/
path_template: $name/dataset_summary
filename_template: dataset_summary
type: s3
- formats:
- flat
output_path: s3://super_awesome_bucket/
path_template: $name/dataset_summary
filename_template: dataset_summary
type: s3
- formats:
- json
output_path: s3://super_awesome_bucket/
path_template: $name/dataset_summary
filename_template: dataset_summary
type: s3
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ The whylogs library is integrated with the following:
- [Java and Apache Spark](https://github.com/whylabs/whylogs-java)
- AWS S3 (for output storage)
- Jupyter Notebooks
- MLflow

### Dependencies

Expand Down
43 changes: 43 additions & 0 deletions constraints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"valueConstraints": {
"fico_range_high": {
"constraints": [
{
"name": "value GT 4000",
"value": 4000.0,
"op": "GT",
"verbose": false
}
]
},
"loan_amnt": {
"constraints": [
{
"name": "value LT 548250",
"value": 548250.0,
"op": "LT",
"verbose": false
},
{
"name": "value GT 2500.0",
"value": 2500.0,
"op": "GT",
"verbose": true
}
]
}
},
"summaryConstraints": {
"annual_inc": {
"constraints": [
{
"name": "summary min GE 0/None",
"firstField": "min",
"value": 0.0,
"op": "GE",
"verbose": false
}
]
}
}
}
572 changes: 572 additions & 0 deletions examples/MLFlow Integration Example.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit eeb108c

Please sign in to comment.