Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve issue #2018 #2022

Merged
merged 158 commits into from
Feb 19, 2024
Merged

Conversation

SimonYansenZhao
Copy link
Collaborator

@SimonYansenZhao SimonYansenZhao commented Oct 17, 2023

Description

This PR resolves the issue #2018 by commenting out the tests in tests/ci/azureml_tests/test_groups.py to disable testing for deeprec.

Related Issues

References

Checklist:

  • I have followed the contribution guidelines and code style for this project.
  • I have added tests covering my contributions.
  • I have updated the documentation accordingly.
  • This PR is being made to staging branch and not to main branch.

@SimonYansenZhao
Copy link
Collaborator Author

SimonYansenZhao commented Oct 17, 2023

First, I got NameError: name 'XDeepFMModel' is not defined (See https://github.com/recommenders-team/recommenders/actions/runs/6544943740/job/17772448740#step:3:2992).

I think something might be wrong when importing XDeepFMModel, then after removing the try-except in the commit (88e43a5) (See https://github.com/recommenders-team/recommenders/actions/runs/6545498077/job/17774104408?pr=2022#step:3:3012) I got ModuleNotFoundError: No module named 'keras.layers.legacy_rnn' .

It means Keras.layers.legacy_rnn imported in

from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell
is removed from Keras. Need to find a way to replace it.

FYI @miguelgfierro @anargyri

@anargyri
Copy link
Collaborator

anargyri commented Oct 17, 2023

First, I got NameError: name 'XDeepFMModel' is not defined (See https://github.com/recommenders-team/recommenders/actions/runs/6544943740/job/17772448740#step:3:2992).

I think something might be wrong when importing XDeepFMModel, then after removing the try-except in the commit (88e43a5) (See https://github.com/recommenders-team/recommenders/actions/runs/6545498077/job/17774104408?pr=2022#step:3:3012) I got ModuleNotFoundError: No module named 'keras.layers.legacy_rnn' .

It means Keras.layers.legacy_rnn imported in

from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell

is removed from Keras. Need to find a way to replace it.
FYI @miguelgfierro @anargyri

It looks like this class is deprecated in the new versions; if I recall, it was one of the temporary fixes when we upgraded from v1 to v2. Now you would have to rewrite the sum cell in the new syntax using this, which may not be straightforward. Maybe we should migrate the entire notebook to PyTorch. @Leavingseason what do you think?

That said, I see the code is still in TF master
https://github.com/tensorflow/tensorflow/tree/r2.14/tensorflow/python/keras/layers/legacy_rnn
They stopped exposing the module but it is still used internally e.g. here
I wonder if copying and pasting the legacy_rnn code in our repo would work (provided that the TF license allows for this).

It looks like the conda env is installing 2.13. How about restricting to < 2.13 or < 2.12, do you still get the error? If not, we could restrict the TF version from above.

@anargyri
Copy link
Collaborator

@SimonYansenZhao I checked locally with different versions of TF and this import
from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell
only works up to (and including) version 2.8.

@anargyri
Copy link
Collaborator

We need to discuss a bit more how to proceed, it is not clear to me what is the best way forward.
For now, let's bound TF with < 2.9.

@miguelgfierro
Copy link
Collaborator

pinged Jianxun on teams

@Master-PLC
Copy link

Master-PLC commented Oct 20, 2023

Hi, seen from SimonYansenZhao's discovery, when the TF>=2.9, the reference in the file recommenders/models/deeprec/models/sequential/sum_cells.py, from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell becomes invalid, which causes the XDeepFMModel to fail to import and run.

  • Dive into LayerRNNCell

Upon examining the LayerRNNCell and RNNCell classes in the tf.keras.layers.legacy_rnn.rnn_cell_impl file, I found that LayerRNNCell simply inherits from the RNNCell class. When calling, it reduces one step of building scope compared to RNNCell, so we can directly use "from keras.layers.legacy_rnn.rnn_cell_impl import RNNCell" as the parent class of SUM_Cell.

  • Alternative for LayerRNNCell

In TF>=2.9, the RNNCell class has been deprecated, but it has been rewritten as AbstractRNNCell in tf.keras.layers.recurrent with similar implementation and comments.

  • Suggested solution

Try replace "from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell" with:
try: from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell except: from keras.layers.recurrent import AbstractRNNCell as LayerRNNCell to see whether it works.

@SimonYansenZhao
Copy link
Collaborator Author

I got the following error when adding from keras.layers.rnn import AbstractRNNCell as LayerRNNCell. It looks like that AbstractRNNCell does not have _reuse. @Master-PLC

Screenshot 2024-01-22 at 22 40 36

setup.py Outdated Show resolved Hide resolved
tests/security/test_dependency_security.py Show resolved Hide resolved
tests/ci/azureml_tests/test_groups.py Outdated Show resolved Hide resolved
@SimonYansenZhao
Copy link
Collaborator Author

When using the latest TensorFlow (2.15), I got this error:

E               713 try:
E               714   # pylint: disable=protected-access
E               715   with self._graph._c_graph.get() as c_graph:
E           --> 716     self._session = tf_session.TF_NewSessionRef(c_graph,opts)
E               717   # pylint: enable=protected-access
E               718 finally:
E               719   tf_session.TF_DeleteSessionOptions(opts)
E           
E           InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version

It means CUDA driver version used in the VM is lower than the requirement of TensorFlow. I am trying to figure out how to do that. @miguelgfierro @anargyri

@anargyri
Copy link
Collaborator

anargyri commented Jan 31, 2024

When using the latest TensorFlow (2.15), I got this error:

E               713 try:
E               714   # pylint: disable=protected-access
E               715   with self._graph._c_graph.get() as c_graph:
E           --> 716     self._session = tf_session.TF_NewSessionRef(c_graph,opts)
E               717   # pylint: enable=protected-access
E               718 finally:
E               719   tf_session.TF_DeleteSessionOptions(opts)
E           
E           InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version

It means CUDA driver version used in the VM is lower than the requirement of TensorFlow. I am trying to figure out how to do that. @miguelgfierro @anargyri

Yes, because the latest TF requires cuda 12, previous ones required cuda 11 or less. See https://www.tensorflow.org/install/source#gpu

@miguelgfierro
Copy link
Collaborator

@SimonYansenZhao if we upgrade the docker image in the test to cuda 12, will the code with previous versions of cuda 11 work?

miguelgfierro and others added 11 commits February 19, 2024 22:33
Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
miguelgfierro and others added 20 commits February 19, 2024 22:45
Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Co-authored-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Co-authored-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Co-authored-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Co-authored-by: Miguel Fierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
@SimonYansenZhao SimonYansenZhao force-pushed the simonz/tf-security-alert-issue-2018 branch from f61627e to 94ece08 Compare February 19, 2024 14:54
@SimonYansenZhao
Copy link
Collaborator Author

SimonYansenZhao commented Feb 19, 2024

@SimonYansenZhao if we upgrade the docker image in the test to cuda 12, will the code with previous versions of cuda 11 work?

I think it will work. Only the NVIDIA GPU Driver in the CUDA installed in the Docker image is used when testing, because a new Conda env will be created with a CUDA required by Recommenders, the CUDA in this Conda env will not conflict with the CUDA in the Docker image. The CUDA installed in the Conda env will interact with the driver which is back compatible.

Copy link
Collaborator

@miguelgfierro miguelgfierro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work Simon!

@SimonYansenZhao SimonYansenZhao merged commit c736241 into staging Feb 19, 2024
25 checks passed
@miguelgfierro miguelgfierro deleted the simonz/tf-security-alert-issue-2018 branch February 19, 2024 17:39
gogetron pushed a commit to gogetron/recommenders that referenced this pull request Apr 11, 2024
* Issue with TF

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Comment out the PR gate affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Comment out the nightly builds affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Comment out the nightly builds affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* revert the breaking tests with TF 2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* temporary pin to TF=2.8.4

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update security tests

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Try to resolve recommenders-team#2018

Signed-off-by: Simon Zhao <[email protected]>

* Exclude tensorflow versions that are not supported

Signed-off-by: Simon Zhao <[email protected]>

* Correct version comparison using packaging.version.Version

Signed-off-by: Simon Zhao <[email protected]>

* Capture importerror

Signed-off-by: Simon Zhao <[email protected]>

* Restrict tensorflow < 2.13

Signed-off-by: Simon Zhao <[email protected]>

* Set tensorflow < 2.12

Signed-off-by: Simon Zhao <[email protected]>

* Not triggering unit tests on Draft PR (recommenders-team#2033)

* Not triggering unit tests on Draft PR

Signed-off-by: Jun Ki Min <[email protected]>

* Change a PR-triggering file to test

Signed-off-by: Jun Ki Min <[email protected]>

---------

Signed-off-by: Jun Ki Min <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Refactor ranking metric `map` to be the same as Spark's (recommenders-team#2004)

* Announcement LF

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update email

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update README.md

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* security

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* license and contribution notice

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* update author link

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Add new code of conduct from LF

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Replacing references GRU4Rec to GRU

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Replacing references GRU4Rec to GRU

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Replacing references GRU4Rec in config files

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Delete conda.md

Signed-off-by: Jun Ki Min <[email protected]>

* refactor map_at_k and map to be the same as Spark's

Signed-off-by: Jun Ki Min <[email protected]>

* list of test failing to fix

Signed-off-by: Jun Ki Min <[email protected]>

* Update readme LF feedback @wutaomsft

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update NEWS.md

Co-authored-by: Andreas Argyriou <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update README.md

Co-authored-by: Andreas Argyriou <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Fix test errors, Refactor column check utils to be simpler

Signed-off-by: Jun Ki Min <[email protected]>

* Rename ranking tests to be _at_k suffixed

Signed-off-by: Jun Ki Min <[email protected]>

* Change test names in the test group

Signed-off-by: Jun Ki Min <[email protected]>

* add comment to mocked fn in a test

Signed-off-by: Jun Ki Min <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* remove unused input

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* no need to output the logs twice

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* packages

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* skipping flaky test

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Issue with TF

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Comment out the PR gate affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Comment out the nightly builds affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Comment out the nightly builds affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* revert the breaking tests with TF 2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* temporary pin to TF=2.8.4

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update security tests

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update expected values to not use fixture

Signed-off-by: Jun Ki Min <[email protected]>

* list of test failing to fix

Signed-off-by: Jun Ki Min <[email protected]>

* Fix missing fixture error

Signed-off-by: Jun Ki Min <[email protected]>

---------

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>
Co-authored-by: miguelgfierro <[email protected]>
Co-authored-by: Andreas Argyriou <[email protected]>
Co-authored-by: Miguel Fierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Add missing kernelspec language

Signed-off-by: Simon Zhao <[email protected]>

* Remove scrapbook and papermill deps

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* notebook utils programmatic execution

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Test notebook programmatic

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Added test notebook for utils

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* data notebooks

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Replace papermill and scrapbook for new internal function

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Replace papermill and scrapbook for new internal function

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update new programmatic execution code

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update new programmatic execution code

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update notebooks with new utility

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Issue with xDeepFM WIP

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Document the tests in programmatic notebook

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* WIP

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* WIP

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Import missing store_metadata

Signed-off-by: Simon Zhao <[email protected]>

* Correct pattern matching and substitution

Signed-off-by: Simon Zhao <[email protected]>

* Merge multiline parameters into one line

Signed-off-by: Simon Zhao <[email protected]>

* Increase timeout

Signed-off-by: Simon Zhao <[email protected]>

* Fix nightly test errors (recommenders-team#2045)

* Revert tests tolerance
* Fix notebook parameter parsing
* Add notebook utils tests to test groups
* Fix notebooks
* Fix notebook unit tests
* Update evaluation metrics name map. Handle None for exp_var
* Fix smoke tests
* cleanup
* Fix functional test errors
* make notebook parameter update function to be private
* Fix benchmark notebook bug
* fix remaining bugs
---------

Signed-off-by: Jun Ki Min <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Fix benchmarks last cell to store value, not [value]

Signed-off-by: Jun Ki Min <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝 remove papermill and scrapbook references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝 remove papermill and scrapbook references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝 remove papermill and scrapbook references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝 remove papermill and scrapbook references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝 remove papermill and scrapbook references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Updated PR template

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Updated contributing

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Updated PR template and contributing

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Updated contributing

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* [Fix] correct MIND data construction of user behavior history

Signed-off-by: Simon Zhao <[email protected]>

* change path hybrid

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update hybrid to CF

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* change path hybrid

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* change path hybrid

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Replace LayerRNNCell with AbstractRNNCell

Signed-off-by: Simon Zhao <[email protected]>

* Stop testing for deeprec

Signed-off-by: Simon Zhao <[email protected]>

* Refactor ranking metric `map` to be the same as Spark's (recommenders-team#2004)

* Announcement LF

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update email

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update README.md

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* security

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* license and contribution notice

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* update author link

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Add new code of conduct from LF

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Replacing references GRU4Rec to GRU

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Replacing references GRU4Rec to GRU

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Replacing references GRU4Rec in config files

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Delete conda.md

Signed-off-by: Jun Ki Min <[email protected]>

* refactor map_at_k and map to be the same as Spark's

Signed-off-by: Jun Ki Min <[email protected]>

* list of test failing to fix

Signed-off-by: Jun Ki Min <[email protected]>

* Update readme LF feedback @wutaomsft

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update NEWS.md

Co-authored-by: Andreas Argyriou <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update README.md

Co-authored-by: Andreas Argyriou <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Fix test errors, Refactor column check utils to be simpler

Signed-off-by: Jun Ki Min <[email protected]>

* Rename ranking tests to be _at_k suffixed

Signed-off-by: Jun Ki Min <[email protected]>

* Change test names in the test group

Signed-off-by: Jun Ki Min <[email protected]>

* add comment to mocked fn in a test

Signed-off-by: Jun Ki Min <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* remove unused input

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* no need to output the logs twice

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* packages

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* skipping flaky test

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Issue with TF

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Comment out the PR gate affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Comment out the nightly builds affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Comment out the nightly builds affected tests with the upgrade to TF>2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* revert the breaking tests with TF 2.10.1

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* temporary pin to TF=2.8.4

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update security tests

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>

* Update expected values to not use fixture

Signed-off-by: Jun Ki Min <[email protected]>

* list of test failing to fix

Signed-off-by: Jun Ki Min <[email protected]>

* Fix missing fixture error

Signed-off-by: Jun Ki Min <[email protected]>

---------

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>
Co-authored-by: miguelgfierro <[email protected]>
Co-authored-by: Andreas Argyriou <[email protected]>
Co-authored-by: Miguel Fierro <[email protected]>

* notebook utils programmatic execution

Signed-off-by: miguelgfierro <[email protected]>

* Test notebook programmatic

Signed-off-by: miguelgfierro <[email protected]>

* Added test notebook for utils

Signed-off-by: miguelgfierro <[email protected]>

* Replace papermill and scrapbook for new internal function

Signed-off-by: miguelgfierro <[email protected]>

* Replace papermill and scrapbook for new internal function

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update new programmatic execution code

Signed-off-by: miguelgfierro <[email protected]>

* Update new programmatic execution code

Signed-off-by: miguelgfierro <[email protected]>

* Update notebooks with new utility

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Issue with xDeepFM WIP

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Document the tests in programmatic notebook

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* WIP

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* WIP

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Import missing store_metadata

Signed-off-by: Simon Zhao <[email protected]>

* Correct pattern matching and substitution

Signed-off-by: Simon Zhao <[email protected]>

* Increase timeout

Signed-off-by: Simon Zhao <[email protected]>

* Fix nightly test errors (recommenders-team#2045)

* Revert tests tolerance
* Fix notebook parameter parsing
* Add notebook utils tests to test groups
* Fix notebooks
* Fix notebook unit tests
* Update evaluation metrics name map. Handle None for exp_var
* Fix smoke tests
* cleanup
* Fix functional test errors
* make notebook parameter update function to be private
* Fix benchmark notebook bug
* fix remaining bugs
---------

Signed-off-by: Jun Ki Min <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Fix benchmarks last cell to store value, not [value]

Signed-off-by: Jun Ki Min <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝 remove papermill and scrapbook references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝 remove papermill and scrapbook references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝 remove papermill and scrapbook references

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Updated PR template

Signed-off-by: miguelgfierro <[email protected]>

* Updated contributing

Signed-off-by: miguelgfierro <[email protected]>

* Updated PR template and contributing

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Updated contributing

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* change path hybrid

Signed-off-by: miguelgfierro <[email protected]>

* change path hybrid

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Creating a jupyter book

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Creating documentation

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* WIP

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Added rst files

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* license

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Weird warning with a link in the docstrings

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Fix docstring errors and replace .. note:: with Note:

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Automatic build of documentation

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Automatic build of documentation dev

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Automatic build of documentation deps

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Automatic build of documentation deps

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Automatic build of documentation deps

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Delete workflow and try via UI

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Added again the workflow

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* git add * -rf

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* git add * -f

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* add git info

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* actions to automatically update documentation

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* actions to automatically update documentation

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* actions to automatically update documentation 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* actions to automatically update documentation 🐛

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* trying github token

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* trying github token

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* trying github token and pull before pushing

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* pull rebase

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* pull rebase and -Xtheirs

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* clean

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update documentation badge

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* install all deps

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* try adding other sphinx extensions

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Refact model rst

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* comment geoimc and rlrmc docs until issue is fixed

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* 📝

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Adding init and other special members

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Adding init and other special members

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Reviewing other rst

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Change sphinx version

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Change sphinx version and jupyter book

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Change the way we compile the documentation

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Using the latest JB release

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Documentation working

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update docs/_config.yml

Co-authored-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update docs/requirements-doc.txt

Co-authored-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Update docs/_config.yml

Co-authored-by: Simon Zhao <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Added comments by @SimonYansenZhao

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Upgrade versions of GitHub Actions

See https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Signed-off-by: Simon Zhao <[email protected]>

* Update setup.py

Co-authored-by: Miguel Fierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>

* Try to disable sum and sum_component only

Signed-off-by: Simon Zhao <[email protected]>

* Upgrade AzureML docker image

Signed-off-by: Simon Zhao <[email protected]>

* Correct variable names

Signed-off-by: Simon Zhao <[email protected]>

* Install git in the Conda env

Signed-off-by: Simon Zhao <[email protected]>

* Disable test_xdeepfm_component_definition

Signed-off-by: Simon Zhao <[email protected]>

* Use latest CUDA

Signed-off-by: Simon Zhao <[email protected]>

* Correct GPU selection

Signed-off-by: Simon Zhao <[email protected]>

* Remove leading whitespaces in Dockerfile

Signed-off-by: Simon Zhao <[email protected]>

* Simplify azureml-test/action.yml

Signed-off-by: Simon Zhao <[email protected]>

* Install wget in Docker image

Signed-off-by: Simon Zhao <[email protected]>

* Update

Signed-off-by: Simon Zhao <[email protected]>

---------

Signed-off-by: miguelgfierro <[email protected]>
Signed-off-by: Simon Zhao <[email protected]>
Signed-off-by: Jun Ki Min <[email protected]>
Co-authored-by: miguelgfierro <[email protected]>
Co-authored-by: Jun Ki Min <[email protected]>
Co-authored-by: Andreas Argyriou <[email protected]>
Co-authored-by: Miguel Fierro <[email protected]>
Co-authored-by: thaiminhpv <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants