Skip to content

Commit 294b381

Browse files
committed
replace deeprec info
Signed-off-by: miguelgfierro <[email protected]>
1 parent 0f3e9a7 commit 294b381

File tree

12 files changed

+22
-20
lines changed

12 files changed

+22
-20
lines changed

contrib/sarplus/python/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def sar_settings():
7272
# absolute tolerance parameter for matrix equivalence in SAR tests
7373
"ATOL": 1e-8,
7474
# directory of the current file - used to link unit test data
75-
"FILE_DIR": "https://recodatasets.z20.web.core.windows.net/sarunittest/",
75+
"FILE_DIR": "https://raw.githubusercontent.com/recommenders-team/resources/main/sarunittest/",
7676
# user ID used in the test files (they are designed for this user ID, this is part of the test)
7777
"TEST_USER_ID": "0003000098E85347",
7878
}

examples/00_quick_start/dkn_MIND.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
},
109109
{
110110
"cell_type": "code",
111-
"execution_count": 2,
111+
"execution_count": null,
112112
"metadata": {
113113
"pycharm": {
114114
"is_executing": false
@@ -137,7 +137,7 @@
137137
"entityEmb_file = os.path.join(data_path, \"TransE_entity2vec_100.npy\")\n",
138138
"contextEmb_file = os.path.join(data_path, \"TransE_context2vec_100.npy\")\n",
139139
"if not os.path.exists(yaml_file):\n",
140-
" download_deeprec_resources(\"https://recodatasets.z20.web.core.windows.net/deeprec/\", tmpdir.name, \"mind-demo-dkn.zip\")\n",
140+
" download_deeprec_resources(\"https://raw.githubusercontent.com/recommenders-team/resources/main/deeprec/\", tmpdir.name, \"mind-demo-dkn.zip\")\n",
141141
" "
142142
]
143143
},

examples/00_quick_start/sar_movielens_with_azureml.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,9 @@
597597
"metadata": {},
598598
"source": [
599599
"Above cell should output similar table as below.\n",
600-
"![Experiment submit output](https://recodatasets.z20.web.core.windows.net/images/aml_sar_output.jpg)\n",
600+
"![Experiment submit output](https://raw.githubusercontent.com/recommenders-team/resources/main/images/aml_sar_output.jpg)\n",
601601
"After clicking \"Link to Azure Portal\", experiment run details tab looks like this with logged metrics.\n",
602-
"![Azure Portal Experiment](https://recodatasets.z20.web.core.windows.net/images/aml_sar_workspace.jpg)"
602+
"![Azure Portal Experiment](https://raw.githubusercontent.com/recommenders-team/resources/main/images/aml_sar_workspace.jpg)"
603603
]
604604
},
605605
{

examples/00_quick_start/xdeepfm_criteo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"test_file = os.path.join(data_path, r'cretio_tiny_test')\n",
116116
"\n",
117117
"if not os.path.exists(yaml_file):\n",
118-
" download_deeprec_resources(r'https://recodatasets.z20.web.core.windows.net/deeprec/', data_path, 'xdeepfmresources.zip')\n"
118+
" download_deeprec_resources(r'https://raw.githubusercontent.com/recommenders-team/resources/main/deeprec/', data_path, 'xdeepfmresources.zip')\n"
119119
]
120120
},
121121
{

examples/02_model_collaborative_filtering/fm_deep_dive.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
},
436436
{
437437
"cell_type": "code",
438-
"execution_count": 9,
438+
"execution_count": null,
439439
"metadata": {},
440440
"outputs": [
441441
{
@@ -466,7 +466,7 @@
466466
"output_file = os.path.join(data_path, OUTPUT_FILE_NAME)\n",
467467
"\n",
468468
"assets_url = (\n",
469-
" \"https://recodatasets.z20.web.core.windows.net/deeprec/xdeepfmresources.zip\"\n",
469+
" \"https://raw.githubusercontent.com/recommenders-team/resources/mains-team/resources/mains-team/resources/mains-team/resources/mains-team/resources/mains-team/resources/mains-team/resources/main/deeprec/xdeepfmresources.zip\"\n",
470470
")\n",
471471
"assets_file = maybe_download(assets_url, work_directory=data_path)\n",
472472
"unzip_file(assets_file, data_path)\n"

examples/02_model_content_based_filtering/dkn_deep_dive.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
"metadata": {},
302302
"outputs": [],
303303
"source": [
304-
"yaml_file = maybe_download(url=\"https://recodatasets.z20.web.core.windows.net/deeprec/deeprec/dkn/dkn_MINDsmall.yaml\", \n",
304+
"yaml_file = maybe_download(url=\"https://raw.githubusercontent.com/recommenders-team/resources/mains-team/resources/main/deeprec/deeprec/dkn/dkn_MINDsmall.yaml\", \n",
305305
" work_directory=data_path)\n",
306306
"hparams = prepare_hparams(yaml_file,\n",
307307
" news_feature_file=news_feature_file,\n",
@@ -563,4 +563,4 @@
563563
},
564564
"nbformat": 4,
565565
"nbformat_minor": 4
566-
}
566+
}

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def sar_settings():
9292
# absolute tolerance parameter for matrix equivalence in SAR tests
9393
"ATOL": 1e-8,
9494
# directory of the current file - used to link unit test data
95-
"FILE_DIR": "https://recodatasets.z20.web.core.windows.net/sarunittest/",
95+
"FILE_DIR": "https://raw.githubusercontent.com/recommenders-team/resources/main/sarunittest/",
9696
# user ID used in the test files (they are designed for this user ID, this is part of the test)
9797
"TEST_USER_ID": "0003000098E85347",
9898
}
@@ -322,7 +322,9 @@ def notebooks():
322322
folder_notebooks, "02_model_collaborative_filtering", "fm_deep_dive.ipynb"
323323
),
324324
"lightfm_deep_dive": os.path.join(
325-
folder_notebooks, "02_model_collaborative_filtering", "lightfm_deep_dive.ipynb"
325+
folder_notebooks,
326+
"02_model_collaborative_filtering",
327+
"lightfm_deep_dive.ipynb",
326328
),
327329
"evaluation": os.path.join(folder_notebooks, "03_evaluate", "evaluation.ipynb"),
328330
"evaluation_diversity": os.path.join(

tests/smoke/recommenders/models/test_deeprec_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_FFM_iterator(deeprec_resource_path):
4444

4545
if not os.path.exists(yaml_file):
4646
download_deeprec_resources(
47-
"https://recodatasets.z20.web.core.windows.net/deeprec/",
47+
"https://raw.githubusercontent.com/recommenders-team/resources/main/deeprec/",
4848
data_path,
4949
"xdeepfmresources.zip",
5050
)
@@ -65,7 +65,7 @@ def test_model_xdeepfm(deeprec_resource_path):
6565

6666
if not os.path.exists(yaml_file):
6767
download_deeprec_resources(
68-
"https://recodatasets.z20.web.core.windows.net/deeprec/",
68+
"https://raw.githubusercontent.com/recommenders-team/resources/main/deeprec/",
6969
data_path,
7070
"xdeepfmresources.zip",
7171
)
@@ -94,7 +94,7 @@ def test_model_dkn(deeprec_resource_path):
9494
contextEmb_file = os.path.join(data_path, r"TransE_context2vec_100.npy")
9595

9696
download_deeprec_resources(
97-
"https://recodatasets.z20.web.core.windows.net/deeprec/",
97+
"https://raw.githubusercontent.com/recommenders-team/resources/main/deeprec/",
9898
data_path,
9999
"mind-demo.zip",
100100
)

tests/smoke/recommenders/models/test_deeprec_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_DKN_iterator(deeprec_resource_path):
3434
contextEmb_file = os.path.join(data_path, "TransE_context2vec_100.npy")
3535
yaml_file = os.path.join(data_path, "dkn.yaml")
3636
download_deeprec_resources(
37-
"https://recodatasets.z20.web.core.windows.net/deeprec/",
37+
"https://raw.githubusercontent.com/recommenders-team/resources/main/deeprec/",
3838
data_path,
3939
"mind-demo.zip",
4040
)

tests/unit/recommenders/datasets/test_download_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_maybe_download_retry(caplog):
6161
caplog.set_level(logging.INFO)
6262
with pytest.raises(requests.exceptions.HTTPError):
6363
maybe_download(
64-
"https://recodatasets.z20.web.core.windows.net/non_existing_file.zip"
64+
"https://raw.githubusercontent.com/recommenders-team/resources/main/non_existing_file.zip"
6565
)
6666
assert "Problem downloading" in caplog.text
6767

0 commit comments

Comments
 (0)