diff --git a/.env b/.env index 6292b63cf..780c4b1f2 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ #!/bin/sh # Docker production build environment -TAG=0.17a3 +TAG=0.17 diff --git a/machine/learn/skl_utils.py b/machine/learn/skl_utils.py index 37b27a58c..f77db67ee 100644 --- a/machine/learn/skl_utils.py +++ b/machine/learn/skl_utils.py @@ -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] diff --git a/release/docker-compose-hub-image.yml b/release/docker-compose-hub-image.yml index 51eb80873..2300287ba 100644 --- a/release/docker-compose-hub-image.yml +++ b/release/docker-compose-hub-image.yml @@ -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" diff --git a/release/generate_production_release.sh b/release/generate_production_release.sh index c1d5576c3..fb6570dfd 100644 --- a/release/generate_production_release.sh +++ b/release/generate_production_release.sh @@ -17,6 +17,7 @@ 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" @@ -24,6 +25,8 @@ 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"