Update from task 88f3eb36-62ba-4bec-9478-f39c8275d593 - #7
Open
pydevcasts wants to merge 1 commit into
Open
Conversation
…kage Prevention** **Key features implemented:** - Added Layer 1 gene filtering functions (fit_layer1_gene_selector, transform_layer1_genes) for variance thresholding and mutual information selection on raw gene data only - Created Layer 2 domain-specific feature engineering (create_engineered_features) with pathway scores, clinical interactions, and graceful handling of missing genes in external validation - Implemented Layer 3 assembly function (assemble_layer3_features) for combining selected genes and engineered features with consistent alignment - Developed unified 3-layer strategy function (apply_3_layer_feature_engineering) supporting both training and external validation workflows with proper leakage prevention - Updated create_engineered_features to accept selected genes from Layer 1 and support lenient/strict modes for pathway scoring This refactoring enforces strict separation between feature selection and engineering phases, preventing data leakage by ensuring MI selection occurs only on training data while maintaining compatibility with both TCGA training and GSE70769 validation datasets.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was created by qwen-chat coder for task 88f3eb36-62ba-4bec-9478-f39c8275d593.