forked from stellargraph/stellargraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes numerous issues causing CI to fail. None of them stopped the models working. - Update the `MovieLens` dataset to specify an encoding (https://en.wikipedia.org/wiki/ISO/IEC_8859-1 in particular), because the file contains some invalid UTF-8, in the form of rows in `u.item` such as `Misérables, Les (1995)|...`, where the `é` is encoded as `E9`, instead of `C3 A9` (see https://en.wikipedia.org/wiki/%C3%89#Character_mappings). This started failing when pandas 1.2.0 was released (it passed with 1.1.5), and the relevant changelog (https://pandas.pydata.org/pandas-docs/stable/whatsnew/v1.2.0.html#i-o) might be (unclear, though): > to_csv() and read_csv() did not honor compression and encoding for > path-like objects that are internally converted to file-like objects > (GH35677, GH26124, GH32392) - Remove the `with_labels` argument from `nx.draw_networkx_nodes` calls (https://networkx.org/documentation/stable/reference/generated/networkx.drawing.nx_pylab.draw_networkx_nodes.html#networkx.drawing.nx_pylab.draw_networkx_nodes), which always did nothing and were just being grouped into the unused `**kwds` dictionary in NetworkX 2.4 and earlier. NetworkX 2.5 removes this dictionary and so the argument cannot be specified. (I suspect it was inherited from `nx.draw_networkx` (https://networkx.org/documentation/stable/reference/generated/networkx.drawing.nx_pylab.draw_networkx.html), which does support `with_labels`.) Relevant changelog (https://networkx.org/documentation/stable/release/release_2.5.html#api-changes): > all keywords are now checked for validity in nx.draw and friends Fixes stellargraph#1798 - Switch to appending directories to path via the file referred to by `$GITHUB_PATH`, because GitHub stopped using the special printed `::add-path` command. Relevant changelogs: - https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ - https://github.blog/changelog/2020-11-09-github-actions-removing-set-env-and-add-path-commands-on-november-16/ - Force `__file__` to be relative to the root of the repo `scripts/demo_indexing.py`, because it changed to be the absolute path, rather than the path relative to the root of the repo, unsure why. - Switch `validation_data=[data, labels]` to `validation_data=(data, labels)` (a tuple) in GCN-LSTM demo, because TensorFlow 2.4 changed the behaviour of `model.fit(..., validation_data=...)`, to require a tuple to get that behaviour (the list version tries to use the list as inputs). Potentially relevant changelog (https://github.com/tensorflow/tensorflow/releases/tag/v2.4.0) (unclear): > For Keras model, the individual call of Model.evaluate uses no cached data > for evaluation, while Model.fit uses cached data when validation_data arg > is provided for better performance. - Remove the `port=None` (and `user` and `password`) arguments from the `py2neo.Graph` constructor call, because py2neo 2020.0.0 changed how the `Graph(...)` constructor handles them: in particular, `port=None` tries to use `None` as the port, rather than the default value. py2neo doesn't seem to publish a changelog. Fixes stellargraph#1743. - Use `python-version: '3.8'` for `setup-python` on CI, because Python 3.9 was released, and the `'3.x'` constraing was using it. There isn't a TensorFlow release for 3.9 yet, so installation would fail in the general checkers using this constraint. - Switch to explicit `runner: ubuntu-18.04` on CI, because Github upgraded the `ubuntu-latest` runner version from Ubuntu 18.04 to Ubuntu 20.04, which caused two steps to fail: - the copyright header checking starts failing for an unknown and non-described reason in the `find` invocation - building the documentation fails the spell-checking step, seemingly because the `en_AU` dictionary cannot be found, and instead it's using US spelling for `visualisation` etc. Relevant changelog: https://github.blog/changelog/2020-10-29-github-actions-ubuntu-latest-workflows-will-use-ubuntu-20-04/
- Loading branch information
Showing
13 changed files
with
22 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters