FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update google-cloud-automl to latest version and fix broken test for Catalyst by mcollins42 · Pull Request #637 · Kaggle/docker-python · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) No extension  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 1 addition & 3 deletions Dockerfile
This file contains hidden or 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
Expand Up @@ -336,9 +336,7 @@ RUN pip install --upgrade cython && \
pip install annoy==1.15.2 && \
# Need to use CountEncoder from category_encoders before it's officially released
pip install git+https://github.com/scikit-learn-contrib/categorical-encoding.git && \
# TODO(b/143373325) Revert to 0.6.0 to avoid regression in 0.7.0. Go back to
# latest when 0.8.0 is released.
pip install google-cloud-automl==0.6.0 && \
pip install google-cloud-automl && \
# Newer version crashes (latest = 1.14.0) when running tensorflow.
# python -c "from google.cloud import bigquery; import tensorflow". This flow is common because bigquery is imported in kaggle_gcp.py
# which is loaded at startup.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_catalyst.py
This file contains hidden or 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
Expand Up @@ -146,7 +146,7 @@ def test_mnist(self):

metrics = Safict.load("./logs/checkpoints/_metrics.json")
metrics_flag1 = \
metrics.get("train.2", "loss") < metrics.get("train.0", "loss")
metrics.get("train.3", "loss") < metrics.get("train.1", "loss")
metrics_flag2 = metrics.get("best", "loss") < 0.35
self.assertTrue(metrics_flag1)
self.assertTrue(metrics_flag2)

Back | FazBrowse Home | New Git URL