-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1068 from automl/development
Development
- Loading branch information
Showing
51 changed files
with
4,192 additions
and
2,865 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,2 @@ | ||
build-essential | ||
swig |
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 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
python -m pip install .[docs,examples] | ||
|
||
# Taken from https://github.com/scikit-learn/scikit-learn/blob/22cd233e1932457947e9994285dc7fd4e93881e4/.binder/postBuild | ||
# under BSD3 license, copyright the scikit-learn contributors | ||
|
||
# This script is called in a binder context. When this script is called, we are | ||
# inside a git checkout of the automl/auto-sklearn repo. This script | ||
# generates notebooks from the auto-sklearn python examples. | ||
|
||
if [[ ! -f /.dockerenv ]]; then | ||
echo "This script was written for repo2docker and is supposed to run inside a docker container." | ||
echo "Exiting because this script can delete data if run outside of a docker container." | ||
exit 1 | ||
fi | ||
|
||
# Copy content we need from the auto-sklearn repo | ||
TMP_CONTENT_DIR=/tmp/auto-sklearn | ||
mkdir -p $TMP_CONTENT_DIR | ||
cp -r examples .binder $TMP_CONTENT_DIR | ||
# delete everything in current directory including dot files and dot folders | ||
find . -delete | ||
|
||
# Generate notebooks and remove other files from examples folder | ||
GENERATED_NOTEBOOKS_DIR=examples | ||
cp -r $TMP_CONTENT_DIR/examples $GENERATED_NOTEBOOKS_DIR | ||
|
||
find $GENERATED_NOTEBOOKS_DIR -name 'example_*.py' -exec sphx_glr_python_to_jupyter.py '{}' + | ||
# Keep __init__.py and custom_metrics.py | ||
NON_NOTEBOOKS=$(find $GENERATED_NOTEBOOKS_DIR -type f | grep -v '\.ipynb' | grep -v 'init' | grep -v 'custom_metrics') | ||
rm -f $NON_NOTEBOOKS | ||
|
||
# Modify path to be consistent by the path given by sphinx-gallery | ||
mkdir notebooks | ||
mv $GENERATED_NOTEBOOKS_DIR notebooks/ | ||
|
||
# Put the .binder folder back (may be useful for debugging purposes) | ||
mv $TMP_CONTENT_DIR/.binder . | ||
# Final clean up | ||
rm -rf $TMP_CONTENT_DIR |
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 @@ | ||
-r ../requirements.txt |
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 |
---|---|---|
|
@@ -75,3 +75,6 @@ coverage.xml | |
*,cover | ||
.hypothesis/ | ||
prof/ | ||
|
||
# Mypy | ||
.mypy_cache/ |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Version information.""" | ||
|
||
# The following line *must* be the last in the module, exactly as formatted: | ||
__version__ = "0.12.1" | ||
__version__ = "0.12.2" |
Oops, something went wrong.