First stage refactoring#70
Open
gefanyang wants to merge 17 commits intoComputationalEvolutionaryMorphometry:refactoringfrom
Open
First stage refactoring#70gefanyang wants to merge 17 commits intoComputationalEvolutionaryMorphometry:refactoringfrom
gefanyang wants to merge 17 commits intoComputationalEvolutionaryMorphometry:refactoringfrom
Conversation
- Updated pyproject.toml to streamline dependencies - Simplified GitHub Actions workflows for documentation and testing - Removed redundant printer_utils module - Minor import and type hint improvements in tree and test modules
- Added documentation dependencies to pyproject.toml - Simplified GitHub Actions workflows for documentation and testing - Configured documentation build to use project dependencies - Enabled pytest workflow on main branch pushes
…est notebooks locally (with instruction in CONTRIBUTION.md)
- Updated the import structure in `hyperiax/mcmc/__init__.py` to include a new `Parameter` class. - Refactored model imports in `hyperiax/models/__init__.py` to streamline model access. - Removed the obsolete `basemodel.py` and consolidated its functionality into `basemodels.py`. - Introduced a comprehensive `basemodels.py` that defines abstract base classes for various model types, including `BaseModel`, `DownModel`, `UpModel`, `UpdateModel`, and `ReducerModel`. - Enhanced `lambdamodels.py` to support lambda-based models for upward and downward passes, allowing for user-defined functions. - Removed outdated `updatemodel.py` and `updownmodel.py` files, consolidating their functionality into the new structure. - Improved utility functions in `utils.py` for better keyword filtering and reduction mapping. - Fixed a minor bug in `tree.py` related to the shape of the node depths array.
…optional dependencies in pyproject.toml, and remove setup.py
…optional dependencies in pyproject.toml, and remove setup.py
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.
The initial PR to
Refactoringbranch that contains refactoring and improvements on the code structure and docstrings.Mostly, the main refactored part are
mcmcmodule, whereSamplerclasses are introduced to replace the previous functional implementations, which provides a more flexible way to define customized samplers by inheriting the abstract class.Meanwhile, part of code in
executionmodule has been improved as well, mainlyOrderexecutor, which provides a more uniform way to define operations functions by explicitly categorizing input arguments into prefixed (stand for local inputs, such as data from node's parent or children) and non-prefixed ones (stand for global inputs, such as tree parameters or other parameters or functions that are shared across the whole tree, e.g., neural networks).A new notebook
execution.ipynbis added to provide instruction on using new apis.Minor improvements on the docstrings and type hints for automatic documentation generations are included.