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

Fix GNN example and update installation instructions #189

Merged
4 commits merged into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/gnn_fraud_detection_pipeline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
Prior to running the gnn fruad detection pipeline, additional requirements must be installed in to your conda environment. A supplemental requirements file has been provided in this example directory.

```bash
conda install --freeze-installed -c stellargraph stellargraph tensorflow
conda install -c rapidsai -c nvidia -c stellargraph -c conda-forge cuml stellargraph tensorflow
```

## Running
Expand Down
4 changes: 4 additions & 0 deletions examples/gnn_fraud_detection_pipeline/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
# limitations under the License.

channels:
- rapidsai
- nvidia
- stellargraph
- conda-forge
dependencies:
- cuml
- stellargraph
- tensorflow
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def name(self) -> str:
def accepted_types(self) -> typing.Tuple:
return (GraphSAGEMultiMessage, )

def supports_cpp_node():
return False

def _process_message(self, message: GraphSAGEMultiMessage):
ind_emb_columns = message.get_meta(message.inductive_embedding_column_names)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def name(self) -> str:
def accepted_types(self) -> typing.Tuple:
return (MultiMessage, )

def supports_cpp_node():
return False

@staticmethod
def _graph_construction(nodes, edges, node_features) -> StellarGraph:
g_nx = nx.Graph()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def name(self) -> str:
def accepted_types(self) -> typing.Tuple:
return (FraudGraphMultiMessage, )

def supports_cpp_node():
return False

def _inductive_step_hinsage(
self,
graph,
Expand Down