-
Notifications
You must be signed in to change notification settings - Fork 0
Update Keras to Keras3 #12
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
base: main
Are you sure you want to change the base?
Conversation
dan-knight
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Makes sense to update to the new keras package. Just update the version and date in DESCRIPTION and document this change in NEWS.
There was a problem hiding this 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 pull request migrates the iSubGen package from using the legacy keras package to the modern keras3 package. The update affects dependencies, imports, API calls, file formats, and documentation across the codebase.
Changes:
- Updated package dependencies and imports from
kerastokeras3in DESCRIPTION, NAMESPACE, and metadata.yaml - Modified code to use keras3 API: changed
load_model_hdf5()toload_model(), updatedmodel$inputtomodel$inputs, and changed file extension from.hdf5to.keras - Updated documentation and examples in README, vignette, and help files to reference keras3 package
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| DESCRIPTION | Updated Imports to replace keras with keras3 |
| NAMESPACE | Updated import statement from keras to keras3 |
| metadata.yaml | Updated Dependencies list to replace keras with keras3 |
| R/create.autoencoder.R | Changed output file extension from .hdf5 to .keras |
| R/create.autoencoder.irf.matrix.R | Updated to use load_model() instead of load_model_hdf5(), changed file extension check from hdf5 to keras, and updated model property from model$input to model$inputs |
| man/create.autoencoder.Rd | Updated documentation to reference keras file format and removed trailing whitespace |
| README.md | Updated package references to keras3, added explicit library loading for tensorflow/keras3/reticulate |
| vignettes/iSubGenGuide.Rnw | Updated package references and URLs to point to keras3 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tnyamaguchi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maotian06 The last two comments from copilot make sense. Do you want to accept the suggestions or any reason you want to skip them? Otherwise, looks good to me.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 10 out of 11 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tnyamaguchi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Closes #...
Analysis Results
Checklist
This PR does NOT contain Protected Health Information (PHI). A repo may need to be deleted if such data is uploaded.
Disclosing PHI is a major problem1 - Even a small leak can be costly2.
This PR does NOT contain germline genetic data3, RNA-Seq, DNA methylation, microbiome or other molecular data4.
.png, .jpeg),.pdf,.RData,.xlsx,.doc,.ppt, or other output files.To automatically exclude such files using a .gitignore file, see here for example.
I have read the code review guidelines and the code review best practice on GitHub check-list.
I have set up or verified the
mainbranch protection rule following the github standards before opening this pull request.The name of the branch is meaningful and well formatted following the standards, using [AD_username (or 5 letters of AD if AD is too long)]-[brief_description_of_branch].
I have added the major changes included in this pull request to the
CHANGELOG.mdunder the next release version or unreleased, and updated the date.Footnotes
UCLA Health reaches $7.5m settlement over 2015 breach of 4.5m patient records ↩
The average healthcare data breach costs $2.2 million, despite the majority of breaches releasing fewer than 500 records. ↩
Genetic information is considered PHI.
Forensic assays can identify patients with as few as 21 SNPs ↩
RNA-Seq, DNA methylation, microbiome, or other molecular data can be used to predict genotypes (PHI) and reveal a patient's identity. ↩