Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation strategy move #23

Open
wants to merge 19 commits into
base: dev/master
Choose a base branch
from

Conversation

fulopjoz
Copy link

Validation strategy moved to the training strategy.
Polymorphic parametrization of splits.

fulopjoz added 19 commits August 8, 2024 10:12
- Add docstrings to classes and methods for better documentation
- Update test_create_view_from_file_classification to reflect new error message
- Add new tests for validation strategies:
  - test_training_strategy_has_validation_strategies
  - test_multiple_validation_strategies
  - test_default_validation_strategy_parameters
  - test_update_validation_strategy
  - test_remove_validation_strategy
  - test_different_models_different_validation_strategies
  - test_performance_metrics_associated_with_validation_strategies
- Remove outdated tests related to validation strategies
- Remove validationStrategies from QSARModelSerializer
- Update QSARModelInitSerializer to handle validationStrategies within trainingStrategy
- Adjust create method to process validation strategies correctly

These changes align the serializers with the new structure where
validation strategies are part of the training strategy. This
refactoring improves the consistency of the API and the internal
representation of QSAR models.
Improve the robustness of the map creation process by implementing better
error handling and logging in the Map model. Key changes include:

- Add logging to capture and report errors
- Refactor getChemSpaceJSDict for better error resilience:
  - Handle potential None values for property calculators
  - Use first() instead of get() for molecule queries
  - Implement try-except for activity aggregation
- Enhance saveChemSpaceJSON with comprehensive error handling
- Ensure ChemSpace dictionary generation is validated

These changes address issues with map creation failures and improve
the overall stability of the map generation process.
Update serializers in the maps app to enhance consistency and
correctness. Key changes include:

- Fix field inheritance in MappingStrategyInitSerializer
- Simplify field definitions in MapSerializer Meta class
- Refactor MapInitSerializer create method:
  - Improve handling of molsets and training strategy data
  - Ensure proper order of operations in instance creation
  - Enhance clarity and maintainability of the creation process

These changes align the serializer behavior with the updated model
structure and improve the overall robustness of the map creation
process.
Improve the robustness of the createMap task by implementing
comprehensive error handling and logging. Key changes include:

- Add logging functionality for better error tracking
- Implement try-except block to catch and log all exceptions
- Include detailed error information and traceback in logs
- Raise a new exception with a descriptive error message

These changes will improve the ability to diagnose and resolve issues
in the map creation process, enhancing the overall reliability of the
system.
Enhance the MapBuilder class to provide better error handling and
logging during the map building process. Key changes include:

- Add logging functionality for improved error tracking
- Implement try-except blocks in the build method to catch and log
  exceptions
- Add validation to ensure points are generated successfully
- Improve error handling for ChemSpaceJS JSON serialization
- Maintain progress recording throughout the build process

These changes will significantly improve the ability to diagnose and
resolve issues during map creation, enhancing the overall reliability
and maintainability of the mapping functionality.
Improve the robustness of map creation in the MapViewSet by
implementing comprehensive error handling and logging. Key changes:

- Override the create method in MapViewSet to catch exceptions
- Add logging functionality for improved error tracking
- Implement detailed error reporting in the response

These changes will improve the ability to diagnose and resolve issues
during map creation API calls, enhancing the overall reliability and
user experience of the mapping functionality.
Enhance the error handling in the ModelViewSet's create method to
provide more detailed information when model building fails. Key
changes include:

- Replace simple error representation with a more descriptive message
- Include full traceback information in the error response
- Maintain the HTTP 500 status code for server errors

These improvements will facilitate easier debugging and provide more
context to API consumers when model creation fails, enhancing the
overall developer experience and system maintainability.
Improve the debugging capabilities of the MapTestCase by providing
more detailed logging of the API response. Key changes include:

- Add logging of the response status code
- Include full response content in the test output
- Replace JSON dump with more comprehensive response information

These changes will facilitate easier troubleshooting of map creation
issues during testing, improving the overall reliability and
maintainability of the test suite.
Enhance the debugging capabilities of the EngstMaps MapTestCase by
providing more detailed logging of the API response. Key changes:

- Add logging of the response status code
- Include full response content in the test output
- Replace JSON dump with more comprehensive response information

These improvements align the EngstMaps test suite with the main map
tests, providing consistent and detailed output for easier
troubleshooting and maintenance of the mapping functionality across
different extensions.
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.

1 participant