Best Practices on Recommendation Systems
472 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/databricks_install.py | 133 | def prepare_for_operationalization( |
| LOW | tests/conftest.py | 133 | def train_test_dummy_timestamp(pandas_dummy_timestamp): |
| LOW | tests/conftest.py | 435 | def dataset_ncf_files_unsorted(data_paths, dataset_ncf_files): |
| LOW | tests/conftest.py | 462 | def dataset_ncf_files_missing_column(data_paths, dataset_ncf_files): |
| LOW | tests/README.md | 168 | def test_sar_single_node_runs(notebooks, output_notebook, kernel_name): |
| LOW | tests/README.md | 203 | def test_sar_single_node_smoke(notebooks, output_notebook, kernel_name): |
| LOW | tests/smoke/examples/test_notebooks_python.py | 15 | def test_sar_single_node_smoke(notebooks, output_notebook, kernel_name): |
| LOW | tests/smoke/examples/test_notebooks_python.py | 32 | def test_baseline_deep_dive_smoke(notebooks, output_notebook, kernel_name): |
| LOW | tests/smoke/examples/test_notebooks_python.py | 97 | def test_lightgbm_quickstart_smoke(notebooks, output_notebook, kernel_name): |
| LOW | tests/smoke/examples/test_notebooks_python.py | 121 | def test_lightgbm_movielens_smoke(notebooks, output_notebook, kernel_name): |
| LOW | tests/smoke/examples/test_notebooks_pyspark.py | 45 | def test_mmlspark_lightgbm_criteo_smoke(notebooks, output_notebook, kernel_name): |
| LOW | …sts/unit/recommenders/datasets/test_python_splitter.py | 350 | def test_int_numpy_stratified_splitter(test_specs, python_int_dataset): |
| LOW | …sts/unit/recommenders/datasets/test_python_splitter.py | 394 | def test_float_numpy_stratified_splitter(test_specs, python_float_dataset): |
| LOW | tests/unit/recommenders/datasets/test_download_utils.py | 37 | def test_maybe_download_wrong_bytes(caplog, files_fixtures): |
| LOW | tests/unit/recommenders/datasets/test_download_utils.py | 50 | def test_maybe_download_maybe(caplog, files_fixtures): |
| LOW | tests/unit/recommenders/datasets/test_download_utils.py | 64 | def test_maybe_download_retry(caplog): |
| LOW | tests/unit/recommenders/datasets/test_download_utils.py | 74 | def test_maybe_download_sets_default_timeout(tmp_path, monkeypatch): |
| LOW | tests/unit/recommenders/datasets/test_download_utils.py | 112 | def test_maybe_download_redownloads_corrupt_zip(tmp, caplog): |
| LOW | …sts/unit/recommenders/datasets/test_pandas_df_utils.py | 34 | def test_negative_feedback_sampler(): |
| LOW | tests/unit/recommenders/utils/test_gpu_utils.py | 24 | def test_get_number_gpus_without_torch(monkeypatch): |
| LOW | tests/unit/recommenders/utils/test_gpu_utils.py | 53 | def test_clear_memory_all_gpus(): |
| LOW | tests/unit/recommenders/utils/test_python_utils.py | 98 | def test_get_top_k_scored_items(scores): |
| LOW | tests/unit/recommenders/utils/test_notebook_utils.py | 120 | def test_notebook_execution_with_parameters( |
| LOW | tests/unit/recommenders/utils/test_notebook_utils.py | 141 | def test_notebook_execution_value_error_fails( |
| LOW | tests/unit/recommenders/utils/test_general_utils.py | 14 | def test_get_number_processors(): |
| LOW | tests/unit/recommenders/utils/test_timer.py | 29 | def test_interval_before_stop(t): |
| LOW | tests/unit/recommenders/models/test_sar_singlenode.py | 302 | def test_get_popularity_based_topk(header): |
| LOW | tests/unit/recommenders/models/test_sar_singlenode.py | 324 | def test_get_normalized_scores(header): |
| LOW | tests/unit/recommenders/models/test_sar_singlenode.py | 383 | def test_match_similarity_type_from_json_file(header): |
| LOW | tests/unit/recommenders/models/test_sar_singlenode.py | 406 | def test_dataset_with_duplicates(header): |
| LOW | tests/unit/recommenders/models/test_sar_singlenode.py | 419 | def test_get_topk_most_similar_users(header): |
| LOW | tests/unit/recommenders/models/test_ncf_dataset.py | 79 | def test_datafile_init_unsorted(dataset_ncf_files_unsorted): |
| LOW | tests/unit/recommenders/models/test_ncf_dataset.py | 107 | def test_datafile_missing_column(dataset_ncf_files_missing_column): |
| LOW | tests/unit/recommenders/models/test_tfidf_utils.py | 111 | def test_recommend_top_k_items(model_fit, df_clean): |
| LOW | tests/unit/recommenders/models/test_tfidf_utils.py | 116 | def test_get_top_k_recommendations(model_fit, df_clean): |
| LOW | tests/unit/recommenders/models/test_deeprec_model.py | 117 | def test_xdeepfm_component_definition(deeprec_resource_path): |
| LOW | tests/unit/recommenders/models/test_deeprec_model.py | 144 | def test_dkn_component_definition(dkn_files): |
| LOW | tests/unit/recommenders/models/test_deeprec_model.py | 227 | def test_slirec_component_definition(sequential_files, deeprec_config_path): |
| LOW | tests/unit/recommenders/models/test_deeprec_model.py | 264 | def test_nextitnet_component_definition(sequential_files, deeprec_config_path): |
| LOW | tests/unit/recommenders/models/test_deeprec_model.py | 302 | def test_sum_component_definition(sequential_files, deeprec_config_path): |
| LOW | tests/unit/recommenders/models/test_deeprec_model.py | 340 | def test_lightgcn_component_definition(): |
| LOW | tests/unit/recommenders/models/test_sasrec_model.py | 178 | def test_split_default_parameters(temp_data_file): |
| LOW | tests/unit/recommenders/models/test_sasrec_model.py | 241 | def test_split_invalid_min_interactions(temp_data_file): |
| LOW | tests/unit/recommenders/models/test_newsrec_model.py | 21 | def test_nrms_component_definition(mind_resource_path): |
| LOW | tests/unit/recommenders/models/test_newsrec_model.py | 51 | def test_naml_component_definition(mind_resource_path): |
| LOW | tests/unit/recommenders/models/test_newsrec_model.py | 85 | def test_npa_component_definition(mind_resource_path): |
| LOW | tests/unit/recommenders/models/test_newsrec_model.py | 115 | def test_lstur_component_definition(mind_resource_path): |
| LOW | tests/unit/recommenders/models/test_embdotbias_model.py | 56 | def test_embedding_dot_bias_weight_method(sample_classes): |
| LOW | tests/unit/recommenders/models/test_embdotbias_model.py | 72 | def test_embedding_dot_bias_from_classes(sample_classes): |
| LOW | tests/unit/recommenders/models/test_embdotbias_model.py | 86 | def test_embedding_dot_bias_init(sample_model_params): |
| LOW | tests/unit/recommenders/models/test_embdotbias_model.py | 98 | def test_embedding_dot_bias_forward(sample_model_params): |
| LOW | tests/unit/recommenders/models/test_embdotbias_utils.py | 33 | def test_cartesian_product_two_arrays(): |
| LOW | tests/unit/recommenders/models/test_embdotbias_utils.py | 41 | def test_cartesian_product_three_arrays(): |
| LOW | tests/unit/recommenders/models/test_embdotbias_utils.py | 61 | def test_cartesian_product_single_array(): |
| LOW | tests/unit/recommenders/models/test_embdotbias_utils.py | 68 | def test_cartesian_product_empty_array(): |
| LOW | tests/unit/recommenders/models/test_wide_deep_utils.py | 178 | def test_wide_deep_model_with_item_features(pd_df): |
| LOW | tests/unit/recommenders/models/test_wide_deep_utils.py | 235 | def test_recommend_k_items_with_item_features(pd_df): |
| LOW | tests/unit/recommenders/models/test_wide_deep_utils.py | 296 | def test_seed_reproducibility(pd_df): |
| LOW | tests/unit/recommenders/tuning/test_nni_utils.py | 58 | def test_get_experiment_status(): |
| LOW | tests/unit/recommenders/tuning/test_nni_utils.py | 71 | def test_check_experiment_status_done(): |
| 156 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …models/deeprec/models/sequential/rnn_cell_implement.py | 14 | # ============================================================================== |
| MEDIUM | recommenders/models/wide_deep/wide_deep_utils.py | 184 | # ------------------------------------------------------------------ |
| MEDIUM | recommenders/models/wide_deep/wide_deep_utils.py | 186 | # ------------------------------------------------------------------ |
| MEDIUM | recommenders/models/wide_deep/wide_deep_utils.py | 427 | # --------------------------------------------------------------------------- |
| MEDIUM | recommenders/models/wide_deep/wide_deep_utils.py | 429 | # --------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/self-hosted-runner.yml | 1 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/self-hosted-runner.yml | 4 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/compshare-vm.yml | 1 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/compshare-vm.yml | 4 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/unit-tests.yml | 1 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/unit-tests.yml | 4 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/sarplus.yml | 1 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/sarplus.yml | 4 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/spark-nightly.yml | 1 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/spark-nightly.yml | 4 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/spark-nightly.yml | 9 | # ┌───────────── minute (0 - 59) |
| MEDIUM | .github/workflows/spark-nightly.yml | 10 | # │ ┌───────────── hour (0 - 23) |
| MEDIUM | .github/workflows/spark-nightly.yml | 11 | # │ │ ┌───────────── day of the month (1 - 31) |
| MEDIUM | .github/workflows/spark-nightly.yml | 12 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| MEDIUM | .github/workflows/spark-nightly.yml | 13 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| MEDIUM | .github/workflows/gpu-nightly.yml | 1 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/gpu-nightly.yml | 4 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/gpu-nightly.yml | 9 | # ┌───────────── minute (0 - 59) |
| MEDIUM | .github/workflows/gpu-nightly.yml | 10 | # │ ┌───────────── hour (0 - 23) |
| MEDIUM | .github/workflows/gpu-nightly.yml | 11 | # │ │ ┌───────────── day of the month (1 - 31) |
| MEDIUM | .github/workflows/gpu-nightly.yml | 12 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| MEDIUM | .github/workflows/gpu-nightly.yml | 13 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| MEDIUM | .github/workflows/cpu-nightly.yml | 1 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/cpu-nightly.yml | 4 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/cpu-nightly.yml | 9 | # ┌───────────── minute (0 - 59) |
| MEDIUM | .github/workflows/cpu-nightly.yml | 10 | # │ ┌───────────── hour (0 - 23) |
| MEDIUM | .github/workflows/cpu-nightly.yml | 11 | # │ │ ┌───────────── day of the month (1 - 31) |
| MEDIUM | .github/workflows/cpu-nightly.yml | 12 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
| MEDIUM | .github/workflows/cpu-nightly.yml | 13 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
| MEDIUM | .github/workflows/update_documentation.yml | 1 | # --------------------------------------------------------- |
| MEDIUM | .github/workflows/update_documentation.yml | 4 | # --------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | recommenders/utils/tf_utils.py | 272 | self.summary_writer = tf.compat.v1.summary.FileWriterCache.get( |
| CRITICAL | recommenders/models/newsrec/models/base_model.py | 68 | tf.compat.v1.keras.backend.set_session(sess) |
| CRITICAL | recommenders/models/deeprec/models/dkn.py | 402 | initializer=tf.compat.v1.keras.initializers.VarianceScaling( |
| CRITICAL | recommenders/models/deeprec/models/dkn_item2item.py | 77 | initializer=tf.compat.v1.keras.initializers.VarianceScaling( |
| CRITICAL | recommenders/models/deeprec/models/base_model.py | 183 | return tf.compat.v1.keras.initializers.VarianceScaling( |
| CRITICAL | recommenders/models/deeprec/models/base_model.py | 190 | return tf.compat.v1.keras.initializers.VarianceScaling( |
| CRITICAL | recommenders/models/deeprec/models/base_model.py | 197 | return tf.compat.v1.keras.initializers.VarianceScaling( |
| CRITICAL | recommenders/models/deeprec/models/base_model.py | 204 | return tf.compat.v1.keras.initializers.VarianceScaling( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/ci/compshare/utils.sh | 1 | #! /bin/bash - |
| LOW | tools/ci/compshare/utils.sh | 21 | # "GPUType": "P40", |
| LOW | tools/ci/compshare/utils.sh | 121 | |
| LOW | tools/ci/compshare/setup_vm.sh | 1 | #! /bin/bash - |
| LOW | tools/ci/compshare/install_docker.sh | 1 | #! /bin/bash - |
| LOW | tools/ci/compshare/delete_vm.sh | 1 | #! /bin/bash - |
| LOW | tests/test_groups.yml | 1 | # Copyright (c) Recommenders contributors. |
| LOW | tests/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/smoke/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/smoke/recommenders/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/smoke/recommenders/models/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/smoke/examples/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/unit/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/unit/recommenders/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/unit/recommenders/datasets/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/unit/recommenders/utils/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/unit/recommenders/models/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/unit/recommenders/tuning/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/unit/recommenders/evaluation/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/unit/examples/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/responsible_ai/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/responsible_ai/recommenders/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/responsible_ai/recommenders/datasets/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/security/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/integration/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/integration/recommenders/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/integration/recommenders/utils/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/data_validation/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/data_validation/recommenders/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/data_validation/recommenders/datasets/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/data_validation/examples/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/regression/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/performance/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/performance/recommenders/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/performance/recommenders/evaluation/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/functional/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | tests/functional/examples/__init__.py | 1 | # Needed to execute the AzureML tests |
| LOW | contrib/sarplus/README.md | 81 | ) |
| LOW | contrib/sarplus/README.md | 101 | # ```python |
| LOW | contrib/sarplus/README.md | 121 | # col_rating="rating", |
| LOW | contrib/sarplus/python/src/pysarplus.cpp | 1 | /* |
| LOW | recommenders/utils/notebook_memory_management.py | 1 | # Original code: https://raw.githubusercontent.com/miguelgfierro/codebase/master/python/system/notebook_memory_managemen |
| LOW | …models/deeprec/models/sequential/rnn_cell_implement.py | 1 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved. |
| LOW | …amples/07_tutorials/KDD2020-tutorial/reco_gpu_kdd.yaml | 1 | # |
| LOW | …amples/07_tutorials/KDD2020-tutorial/reco_cpu_kdd.yaml | 1 | # |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/data_helper.py | 61 | # Returns: |
| LOW | .github/workflows/self-hosted-runner.yml | 1 | # --------------------------------------------------------- |
| LOW | .github/workflows/compshare-vm.yml | 1 | # --------------------------------------------------------- |
| LOW | .github/workflows/sarplus.yml | 1 | # --------------------------------------------------------- |
| LOW | .github/workflows/spark-nightly.yml | 1 | # --------------------------------------------------------- |
| LOW | .github/workflows/gpu-nightly.yml | 1 | # --------------------------------------------------------- |
| LOW | .github/workflows/cpu-nightly.yml | 1 | # --------------------------------------------------------- |
| LOW | .github/workflows/tools/compshare/utils.sh | 1 | #! /bin/bash - |
| LOW | .github/workflows/tools/compshare/utils.sh | 21 | # "GPUType": "P40", |
| LOW | .github/workflows/tools/compshare/utils.sh | 181 | response="$(curl -sSf "${request_url}")" |
| LOW | .github/workflows/tools/compshare/utils.sh | 361 | | .[0] | [path(..)] |
| LOW | .github/workflows/tools/compshare/setup_vm.sh | 1 | #! /bin/bash - |
| LOW | .github/workflows/tools/compshare/setup_vm.sh | 21 | # |
| LOW | .github/workflows/tools/compshare/install_docker.sh | 1 | #! /bin/bash - |
| LOW | .github/workflows/tools/compshare/delete_vm.sh | 1 | #! /bin/bash - |
| 1 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/unit/recommenders/utils/test_tf_utils.py | 41 | |
| LOW | tests/unit/recommenders/models/test_sasrec_model.py | 40 | |
| LOW | recommenders/datasets/mind.py | 274 | |
| LOW | recommenders/datasets/mind.py | 409 | |
| LOW | recommenders/datasets/pandas_df_utils.py | 182 | |
| LOW | recommenders/datasets/download_utils.py | 20 | |
| LOW | recommenders/datasets/wikidata.py | 263 | |
| LOW | recommenders/datasets/amazon_reviews.py | 192 | |
| LOW | recommenders/datasets/amazon_reviews.py | 266 | |
| LOW | recommenders/datasets/amazon_reviews.py | 459 | |
| LOW | recommenders/utils/gpu_utils.py | 101 | |
| LOW | recommenders/utils/gpu_utils.py | 108 | |
| LOW | recommenders/utils/tf_utils.py | 25 | |
| LOW | recommenders/utils/tf_utils.py | 40 | |
| LOW | recommenders/utils/notebook_utils.py | 130 | |
| LOW | recommenders/models/newsrec/newsrec_utils.py | 82 | |
| LOW | recommenders/models/deeprec/deeprec_utils.py | 134 | |
| LOW | recommenders/models/deeprec/deeprec_utils.py | 514 | |
| LOW | recommenders/models/deeprec/io/nextitnet_iterator.py | 72 | |
| LOW | recommenders/models/deeprec/io/sequential_iterator.py | 277 | |
| LOW | recommenders/models/deeprec/models/dkn.py | 349 | |
| LOW | recommenders/models/deeprec/models/base_model.py | 169 | |
| LOW | recommenders/models/deeprec/models/base_model.py | 215 | |
| LOW | recommenders/models/deeprec/models/base_model.py | 274 | |
| LOW | recommenders/models/deeprec/models/base_model.py | 339 | |
| LOW | recommenders/models/deeprec/models/base_model.py | 652 | |
| LOW | recommenders/models/deeprec/models/xDeepFM.py | 161 | |
| LOW | recommenders/models/deeprec/models/xDeepFM.py | 295 | |
| LOW | …els/deeprec/models/sequential/sequential_base_model.py | 76 | |
| LOW | …models/deeprec/models/sequential/rnn_cell_implement.py | 128 | |
| LOW | …models/deeprec/models/sequential/rnn_cell_implement.py | 393 | |
| LOW | …models/deeprec/models/sequential/rnn_cell_implement.py | 594 | |
| LOW | recommenders/models/deeprec/models/graphrec/lightgcn.py | 372 | |
| LOW | recommenders/models/rlrmc/conjugate_gradient_ms.py | 56 | |
| LOW | recommenders/models/sar/sar_singlenode.py | 226 | |
| LOW | recommenders/models/ncf/ncf_singlenode.py | 180 | |
| LOW | recommenders/models/ncf/dataset.py | 142 | |
| LOW | recommenders/models/ncf/dataset.py | 404 | |
| LOW | recommenders/models/wide_deep/wide_deep_utils.py | 509 | |
| LOW | recommenders/models/sasrec/model.py | 461 | |
| LOW | recommenders/models/sasrec/model.py | 657 | |
| LOW | recommenders/models/sasrec/model.py | 784 | |
| LOW | recommenders/models/sasrec/model.py | 881 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 22 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 236 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 293 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 356 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 487 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 552 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 635 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 742 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/databricks_install.py | 238 | # Create a cluster if flagged |
| MEDIUM | tools/ci/compshare/utils.sh | 127 | # Create a VM instance |
| MEDIUM | tools/ci/compshare/utils.sh | 243 | # Create a VM with random names and password from available types |
| MEDIUM | tools/ci/compshare/setup_vm.sh | 7 | # Create a CompShare VM and prepare the environment for testing |
| MEDIUM | tests/unit/recommenders/models/test_embdotbias_utils.py | 79 | # Create a dummy model |
| MEDIUM | recommenders/utils/notebook_utils.py | 59 | # Define a regular expression pattern to match parameter assignments and ignore comments |
| MEDIUM | recommenders/utils/notebook_utils.py | 98 | # Create an execution preprocessor |
| MEDIUM | recommenders/models/deeprec/models/dkn.py | 385 | # Create a convolution + maxpool layer for each filter size |
| MEDIUM | recommenders/models/embdotbias/model.py | 99 | # Create a mapping from entity ID (user or item) to its integer index in the embedding matrix |
| MEDIUM | recommenders/models/tfidf/tfidf_utils.py | 37 | # Initialize other variables used in this class |
| MEDIUM | recommenders/models/rbm/rbm.py | 451 | # Create the data pipeline for faster training |
| MEDIUM | .github/workflows/tools/compshare/utils.sh | 192 | # Create a VM instance |
| MEDIUM | .github/workflows/tools/compshare/utils.sh | 369 | # Create a VM with random names and password from available types |
| MEDIUM | .github/workflows/tools/compshare/setup_vm.sh | 7 | # Create a CompShare VM and prepare the environment for testing |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/conftest.py | 0 | helper function to generate random timestamps. reference: https://stackoverflow.com/questions/41006182/generate-random-d |
| HIGH | …sts/unit/recommenders/datasets/test_python_splitter.py | 0 | helper function to generate random timestamps. reference: https://stackoverflow.com/questions/41006182/generate-random-d |
| HIGH | tests/unit/recommenders/datasets/test_sparse.py | 0 | helper function to generate random timestamps. reference: https://stackoverflow.com/questions/41006182/generate-random-d |
| HIGH | recommenders/models/deeprec/io/iterator.py | 0 | construct a dictionary that maps graph elements to values. args: data_dict (dict): a dictionary that maps string name to |
| HIGH | recommenders/models/deeprec/io/dkn_iterator.py | 0 | construct a dictionary that maps graph elements to values. args: data_dict (dict): a dictionary that maps string name to |
| HIGH | recommenders/models/deeprec/io/dkn_iterator.py | 0 | construct a dictionary that maps graph elements to values. args: data_dict (dict): a dictionary that maps string name to |
| HIGH | recommenders/models/deeprec/io/sequential_iterator.py | 0 | construct a dictionary that maps graph elements to values. args: data_dict (dict): a dictionary that maps string name to |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/unit/recommenders/models/test_sar_singlenode.py | 5 | |
| LOW | tests/unit/recommenders/models/test_embdotbias_model.py | 7 | |
| LOW | tests/unit/examples/test_notebooks_python.py | 5 | |
| LOW | tests/regression/test_compatibility_tf.py | 13 | |
| LOW | tests/regression/test_compatibility_tf.py | 14 | |
| LOW | contrib/sarplus/python/pysarplus/__init__.py | 6 | |
| LOW | contrib/sarplus/python/pysarplus/__init__.py | 7 | |
| LOW | recommenders/datasets/python_splitters.py | 4 | |
| LOW | recommenders/utils/notebook_memory_management.py | 14 | |
| LOW | recommenders/utils/notebook_memory_management.py | 15 | |
| LOW | recommenders/utils/notebook_memory_management.py | 16 | |
| LOW | recommenders/utils/notebook_memory_management.py | 17 | |
| LOW | recommenders/utils/spark_utils.py | 8 | |
| LOW | …models/deeprec/models/sequential/rnn_cell_implement.py | 23 | |
| LOW | …models/deeprec/models/sequential/rnn_cell_implement.py | 24 | |
| LOW | …models/deeprec/models/sequential/rnn_cell_implement.py | 25 | |
| LOW | recommenders/models/deeprec/models/graphrec/lightgcn.py | 4 | |
| LOW | recommenders/models/rlrmc/conjugate_gradient_ms.py | 6 | |
| LOW | recommenders/models/rlrmc/conjugate_gradient_ms.py | 6 | |
| LOW | recommenders/models/embdotbias/training_utils.py | 9 | |
| LOW | recommenders/models/embdotbias/training_utils.py | 9 | |
| LOW | recommenders/models/embdotbias/training_utils.py | 9 | |
| LOW | recommenders/models/embdotbias/training_utils.py | 9 | |
| LOW | recommenders/models/embdotbias/training_utils.py | 9 | |
| LOW | recommenders/models/sar/__init__.py | 4 | |
| LOW | …odel_select_and_optimize/train_scripts/svd_training.py | 17 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/data_helper.py | 8 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 12 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 18 | |
| LOW | …les/07_tutorials/KDD2020-tutorial/utils/task_helper.py | 19 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/ci/compshare/utils.sh | 361 | # Set timeout to (5 + 5) * 18 = 180 seconds |
| LOW | …sts/unit/recommenders/datasets/test_pandas_df_utils.py | 173 | # Check if the dim is the same. |
| LOW | …sts/unit/recommenders/datasets/test_pandas_df_utils.py | 176 | # Check if the columns are converted successfully. |
| LOW | …sts/unit/recommenders/datasets/test_pandas_df_utils.py | 185 | # Check if the duplicated column entries are indexed correctly. |
| LOW | …sts/unit/recommenders/datasets/test_pandas_df_utils.py | 195 | # Check if the file is written successfully. |
| LOW | tests/unit/recommenders/models/test_sar_singlenode.py | 178 | # Set time_now to 60 days later |
| LOW | …unit/recommenders/evaluation/test_python_evaluation.py | 71 | # Check if _check_column_dtypes wraps the input function (i.e. returns the same output as the input function's) |
| LOW | contrib/sarplus/python/tests/test_pyspark_sar.py | 323 | # Set time_now to 60 days later |
| LOW | recommenders/utils/notebook_utils.py | 56 | # Check if the new value is a string and surround it with quotes if necessary |
| LOW | recommenders/models/tfidf/tfidf_utils.py | 104 | # Check if for BERT tokenization |
| LOW | recommenders/evaluation/spark_evaluation.py | 65 | # Check if inputs are Spark DataFrames. |
| LOW | recommenders/evaluation/spark_evaluation.py | 76 | # Check if columns exist. |
| LOW | recommenders/evaluation/spark_evaluation.py | 217 | # Check if inputs are Spark DataFrames. |
| LOW | recommenders/evaluation/spark_evaluation.py | 228 | # Check if columns exist. |
| LOW | .github/workflows/tools/compshare/utils.sh | 322 | # Check if the VM specification match the requirements. |
| LOW | .github/workflows/tools/compshare/utils.sh | 521 | # Set timeout to (5 + 5) * 30 = 300 seconds |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | recommenders/datasets/pandas_df_utils.py | 87 | Converts an input dataframe to another dataframe in libffm format. A text file of the converted Dataframe is optiona |
| HIGH | recommenders/datasets/pandas_df_utils.py | 279 | Utility function to sample negative feedback from user-item interaction dataset. This negative sampling function wil |
| HIGH | recommenders/datasets/download_utils.py | 95 | Return a path to download data. If `path=None`, then it yields a temporal path that is eventually deleted, otherwise |
| HIGH | recommenders/datasets/movielens.py | 610 | Generate a fake movielens DataFrame with all columns. Args: size (int): number of rows to generate. |
| HIGH | recommenders/models/sasrec/util.py | 48 | Split user interactions into train/valid/test sets using leave-k-out strategy. For each user with enou |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/databricks_install.py | 106 | except Exception: |
| LOW | recommenders/datasets/criteo.py | 118 | except Exception: |
| LOW | recommenders/datasets/wikidata.py | 41 | except Exception as e: |
| LOW | recommenders/datasets/wikidata.py | 105 | except Exception as e: |
| LOW | recommenders/datasets/wikidata.py | 126 | except Exception as e: |
| LOW | recommenders/datasets/wikidata.py | 190 | except Exception as e: |
| LOW | recommenders/datasets/wikidata.py | 257 | except Exception as e: |
| LOW | recommenders/datasets/wikidata.py | 280 | except Exception as e: |
| LOW | recommenders/datasets/wikidata.py | 291 | except Exception as e: |
| MEDIUM | recommenders/datasets/wikidata.py | 38 | def wrapper(*args, **kwargs): |
| LOW | recommenders/datasets/covid_utils.py | 137 | except Exception: |
| LOW | recommenders/utils/general_utils.py | 42 | except Exception: |
| LOW | recommenders/utils/notebook_memory_management.py | 35 | except Exception: |
| LOW | recommenders/utils/gpu_utils.py | 31 | except Exception: # numba.cuda.cudadrv.error.CudaSupportError: |
| LOW | recommenders/models/deeprec/deeprec_utils.py | 301 | except Exception: # for other exceptions |
| LOW | recommenders/models/deeprec/models/base_model.py | 433 | except Exception: |
| LOW | recommenders/models/deeprec/models/graphrec/lightgcn.py | 367 | except Exception: |
| LOW | recommenders/models/embdotbias/training_utils.py | 136 | except Exception as e: |
| LOW | recommenders/models/tfidf/tfidf_utils.py | 82 | except Exception: |
| LOW | recommenders/models/tfidf/tfidf_utils.py | 218 | except Exception: |
| LOW | recommenders/models/tfidf/tfidf_utils.py | 230 | except Exception: |
| LOW | recommenders/tuning/nni/ncf_training.py | 171 | except Exception as exception: |
| LOW | recommenders/tuning/nni/nni_utils.py | 70 | except Exception: |
| LOW | recommenders/tuning/nni/svd_training.py | 183 | except Exception as exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/unit/recommenders/models/test_ncf_dataset.py | 66 | assert train.equals(datafile_df) |
| HIGH | tests/unit/recommenders/models/test_ncf_dataset.py | 201 | assert train_file_data.equals(train_loader_df) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/databricks_install.py | 235 | # first make sure you are using the correct profile and connecting to the intended workspace |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | recommenders/datasets/wikidata.py | 34 | def my_function(): |