Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zaRizk7
Copy link
Collaborator

@zaRizk7 zaRizk7 commented Aug 26, 2025

Summary

Resolves the imports following the latest restructuring of the kale.embed API.

Changes

  • Replace import for Mogonet in model.py for multiomics-cancer-classification from kale.embed.mogonet to kale.embed.model_lib.mogonet.
  • Updates DrugBAN best.ckpt model to follow latest API changes, including parametrizations for weight_norm and renaming the GCN layer from drug_extractor to molecular_extractor.

Note

  • No changes for the brain and heart example since the API has not changed.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@zaRizk7 zaRizk7 requested review from Copilot and shuo-zhou and removed request for shuo-zhou August 26, 2025 11:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates import paths and API references to match the latest PyKale library restructuring, specifically for the multiomics cancer classification tutorial. The changes ensure compatibility with recent PyKale API changes while maintaining the tutorial's functionality.

Key Changes:

  • Updated import path for MogonetGCN from kale.embed.mogonet to kale.embed.model_lib.mogonet
  • Refreshed notebook execution outputs to reflect current library behavior
  • Updated kernel and environment metadata in the Jupyter notebook

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
tutorials/multiomics-cancer-classification/model.py Updates import path for MogonetGCN to follow new API structure
tutorials/multiomics-cancer-classification/tutorial-cancer.ipynb Refreshes notebook execution state with updated outputs and metadata

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,

This comment was marked as outdated.

@shuo-zhou shuo-zhou merged commit 30ac5e0 into main Sep 2, 2025
1 check passed
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.

3 participants