-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/deepchecks/MLChecks into 0.8.x
- Loading branch information
Showing
272 changed files
with
7,725 additions
and
2,919 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com) | ||
# | ||
# This file is part of Deepchecks. | ||
# Deepchecks is distributed under the terms of the GNU Affero General | ||
# Public License (version 3 or later). | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>. | ||
# ---------------------------------------------------------------------------- | ||
# | ||
|
||
set -eu | ||
ENV_PATH=$(realpath venv) | ||
PIP_PATH=$ENV_PATH/bin/pip | ||
|
||
configure_asv () { | ||
cat << EOF > asv.conf.json | ||
{ | ||
"version": 1, | ||
"repo": ".", | ||
"branches": ["HEAD"], | ||
"environment_type": "virtualenv", | ||
} | ||
EOF | ||
} | ||
|
||
run_asv () { | ||
$PIP_PATH install -e . | ||
git show --no-patch --format="%H (%s)" | ||
configure_asv | ||
$ENV_PATH/bin/asv run -E existing --set-commit-hash $(git rev-parse HEAD) | ||
} | ||
|
||
$PIP_PATH install asv | ||
configure_asv | ||
$ENV_PATH/bin/asv machine --yes | ||
|
||
run_asv | ||
|
||
git fetch origin gh-pages:gh-pages | ||
$ENV_PATH/bin/asv gh-pages |
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,50 @@ | ||
#!/bin/bash | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com) | ||
# | ||
# This file is part of Deepchecks. | ||
# Deepchecks is distributed under the terms of the GNU Affero General | ||
# Public License (version 3 or later). | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>. | ||
# ---------------------------------------------------------------------------- | ||
# | ||
|
||
set -eu | ||
ENV_PATH=$(realpath venv) | ||
PIP_PATH=$ENV_PATH/bin/pip | ||
|
||
configure_asv () { | ||
cat << EOF > asv.conf.json | ||
{ | ||
"version": 1, | ||
"repo": ".", | ||
"branches": ["HEAD"], | ||
"environment_type": "virtualenv", | ||
} | ||
EOF | ||
} | ||
|
||
run_asv () { | ||
$PIP_PATH install -e . | ||
git show --no-patch --format="%H (%s)" | ||
configure_asv | ||
$ENV_PATH/bin/asv run -E existing --set-commit-hash $(git rev-parse HEAD) | ||
} | ||
|
||
$PIP_PATH install asv | ||
configure_asv | ||
$ENV_PATH/bin/asv machine --yes | ||
|
||
git update-ref refs/bm/pr HEAD | ||
# We know this is a PR run. The branch is a GitHub refs/pull/*/merge ref, so | ||
# the current target that this PR will be merged into is HEAD^1. | ||
|
||
run_asv | ||
|
||
git fetch | ||
git checkout --force main | ||
|
||
run_asv | ||
|
||
$ENV_PATH/bin/asv compare main refs/bm/pr |
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,43 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com) | ||
# | ||
# This file is part of Deepchecks. | ||
# Deepchecks is distributed under the terms of the GNU Affero General | ||
# Public License (version 3 or later). | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>. | ||
# ---------------------------------------------------------------------------- | ||
# | ||
name: Benchmark-History | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
# Manual run | ||
workflow_dispatch: | ||
|
||
env: | ||
DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: "true" | ||
|
||
jobs: | ||
benchmark-history: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup git user | ||
run: | | ||
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" | ||
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.9" | ||
- name: Set Up Env | ||
run: make env | ||
- name: pip freeze | ||
run: make freeze | ||
- name: Run benchmarks | ||
run: | | ||
.github/scripts/benchmark-history.sh |
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,37 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com) | ||
# | ||
# This file is part of Deepchecks. | ||
# Deepchecks is distributed under the terms of the GNU Affero General | ||
# Public License (version 3 or later). | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>. | ||
# ---------------------------------------------------------------------------- | ||
# | ||
name: benchmarks | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: "true" | ||
|
||
jobs: | ||
benchmark: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.9" | ||
- name: Set Up Env | ||
run: make env | ||
- name: pip freeze | ||
run: make freeze | ||
- name: Run benchmarks | ||
run: | | ||
.github/scripts/benchmark.sh |
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ jobs: | |
steps: | ||
- uses: andymckay/labeler@1.0.4 | ||
with: | ||
add-labels: "Needs Triage" | ||
add-labels: "needs triage" |
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,10 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com) | ||
# | ||
# This file is part of Deepchecks. | ||
# Deepchecks is distributed under the terms of the GNU Affero General | ||
# Public License (version 3 or later). | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>. | ||
# ---------------------------------------------------------------------------- | ||
# |
Oops, something went wrong.