Skip to content

Conversation

@AnFreTh
Copy link
Collaborator

@AnFreTh AnFreTh commented Jan 18, 2025

This pull request includes several changes to add new functionality, and enhance custom metric logging during training and validation. The most important changes include adding a new encode method, enabling custom metric logging in the lightning_wrapper.py file and improving the predict and evaluate functionality in the sklearn base classes to include batching during prediction/evaluation.

New Functionality:

  • mambular/base_models/basemodel.py: Added a new encode method to generate contextualized embeddings.
  • mambular/base_models/lightning_wrapper.py: Added a new predict_step method for making predictions on mini batches.
  • mambular/base_models/lightning_wrapper.py: Introduced custom metrics for training, validation, and testing steps, allowing users to specify their own metrics.
  • [mambular/data_utils/dataset.py]: Changed order of getitem method and allowed for not providing labels
  • [mambular/data_utils/datamodule.py]: Improved preprocessing new data and directly returning MambularDatasets. See sklearn base classes for clearer and cleaner predicting on unseen data.

These changes collectively improve the maintainability and functionality of the package.

@mkumar73 mkumar73 merged commit 4a76db9 into develop Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

3 participants