feat: modeling#6
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR refactors the model architecture from a single-class ChangesModel architecture refactoring: MetaArch → GleasonModel
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a refined modeling framework for tile-level supervised learning. By replacing the previous monolithic architecture with a more flexible, base-class-driven design, the changes improve code maintainability and allow for easier experimentation with different decoding heads. The update also includes necessary configuration files and dependency updates to support these new architectural components. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request refactors the model architecture by replacing the MetaArch class with a modular GleasonModel base class and introducing a new decode_head module structure. It also updates Hydra configurations and adds seaborn as a dependency. Feedback suggests improving MLflow experiment tracking by logging training loss at the epoch level and disabling step-level logging for noisy metrics like AUROC and F1-score to ensure cleaner visualizations.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request refactors the model architecture by replacing the MetaArch class with a modular system based on a new GleasonModel base class and a specific EmbeddingGleasonModel implementation. It introduces a Classifier abstraction for decode heads, including an EmbeddingClassifier, and updates the Hydra configurations to support these changes. Additionally, seaborn is added as a development dependency. Feedback focuses on improving experiment reproducibility by calling self.save_hyperparameters() in the model constructors, ensuring that configuration parameters are preserved in checkpoints while avoiding serialization issues with complex sub-modules.
LightningModule for tile-level supervised methodology PC-109
Summary by CodeRabbit
Release Notes
New Features
Refactor
Chores