Skip to content

Commit

Permalink
release v0.17
Browse files Browse the repository at this point in the history
release v0.17
update release scripts for /data/recommenders
shap kernel explaner sample default from 50 -> 20 for speed


Former-commit-id: e551303
  • Loading branch information
hjwilli committed Dec 2, 2020
1 parent 1721fb3 commit 858f91d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
# Docker production build environment
TAG=0.17a3
TAG=0.17
4 changes: 2 additions & 2 deletions machine/learn/skl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ def plot_shap_summary_curve(tmpdir, _id, model, features, feature_names, class_n

else:
# KernelExplainer
#Sample 50 examples for computational speedup
max_num_samples = 50
#Sample 20 examples for computational speedup
max_num_samples = 20
num_samples = min(max_num_samples, len(features))
sampled_row_indices = np.random.choice(features.shape[0], size=num_samples, replace=False)
features = features[sampled_row_indices]
Expand Down
1 change: 1 addition & 0 deletions release/docker-compose-hub-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
volumes:
- "/appsrc"
- "./data/datasets/user:/appsrc/data/datasets/user"
- "./data/recommenders:/appsrc/data/recommenders/pennaiweb"
- "./target:/appsrc/target"
ports:
- "5080:5080"
Expand Down
3 changes: 3 additions & 0 deletions release/generate_production_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ rm $PROD_BUILD_DIR -fr
rm $PROD_ZIP_FILENAME

mkdir -p "${PROD_BUILD_DIR}/data/datasets/user"
mkdir -p "${PROD_BUILD_DIR}/data/recommenders"
mkdir -p "${PROD_BUILD_DIR}/config"

cp release/userReadme.txt "${PROD_BUILD_DIR}/readme.txt"

cp data/datasets/user/myDataset_metadata.json.example "${PROD_BUILD_DIR}/data/datasets/user"
cp data/datasets/user/readme.md "${PROD_BUILD_DIR}/data/datasets/user"

cp data/recommenders/pennaiweb/SVDRecommender_*.pkl.gz "${PROD_BUILD_DIR}/data/recommenders"

cp config/common.env "${PROD_BUILD_DIR}/config"
cp config/machine_config.json "${PROD_BUILD_DIR}/config"
cp config/ai.env-template "${PROD_BUILD_DIR}/config"
Expand Down

0 comments on commit 858f91d

Please sign in to comment.