Skip to content

Conversation

@mmyrte
Copy link
Member

@mmyrte mmyrte commented Nov 28, 2025

This will close #9 once done.

This ended up including a big refactor for the evoland_db generator object, making explicit file collation (sourcing order) necessary.

Copy link
Contributor

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 implements transition-predictor relationship functionality and performs a significant refactor of the evoland_db class architecture. The main changes extract generic database operations into a new parquet_duckdb base class and add covariance filtering for predictor selection.

Key changes:

  • Extract generic parquet/DuckDB operations into new parquet_duckdb base class
  • Implement create_trans_preds_t() with covariance filtering for predictor selection
  • Add covariance_filter() function for two-stage variable selection
  • Add neighbor analysis capabilities with neighbors_t table
  • Refactor cast_dt_col() to use type strings instead of functions

Reviewed changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
R/parquet_duckdb.R New base class extracting generic database operations from evoland_db
R/evoland_db.R Refactored to inherit from parquet_duckdb, removing duplicated code
R/evoland_db_tables.R New file organizing table active bindings using R6's $set()
R/evoland_db_views.R Refactored to use R6's $set() for view bindings and add trans_pred_data_v method
R/evoland_db_neighbors.R New neighbor analysis methods for evoland_db
R/trans_preds_t.R Implements create_trans_preds_t with covariance filtering logic
R/trans_meta_t.R Removes id_trans attribution (now handled by DB layer)
R/covariance_filter.R New two-stage covariance filtering implementation
R/util.R Refactors cast_dt_col to use type strings with switch statement
R/neighbors_t.R New table class for neighbor relationships
inst/tinytest/test_trans_preds_t.R Comprehensive integration tests for trans_preds_t
inst/tinytest/test_parquet_duckdb.R Complete test suite for parquet_duckdb base class
inst/tinytest/test_evoland_db.R Updated tests focusing on domain-specific functionality
DESCRIPTION Adds explicit Collate field for source file ordering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

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

Copilot reviewed 38 out of 38 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mmyrte mmyrte merged commit caa3d35 into main Dec 2, 2025
7 checks passed
@mmyrte mmyrte deleted the 9-trans-preds-t branch December 3, 2025 16:22
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.

trans_preds_t: according to feature selection

2 participants