This pull request introduces significant refactoring and improvements to the Ape project, focusing on enhancing the evaluation and generation processes. Key changes include:
Renaming and restructuring core components:
Evaluate class is now Evaluator
Generate and BaseGenerate are renamed to Generator and BaseGenerator
fit method is renamed to train in trainer classes
Refactoring the evaluation process:
Simplified Evaluator class with improved async handling
Removed EvaluationResult type, streamlining the evaluation output
Updating type hints and function signatures for better consistency and clarity
Improving logging by replacing print statements with proper logger calls
Introducing new trainer classes, including DspyMiproTrainer
Updating version numbers: ape-common to 0.2.0 and ape-core to 0.9.0
These changes aim to improve code organization, readability, and maintainability while enhancing the overall functionality of the Ape project.
Changes that Break Backward Compatibility
Renaming of core classes and methods:
Evaluate to Evaluator
Generate to Generator
BaseGenerate to BaseGenerator
fit method to train in trainer classes
Removal of EvaluationResult type
Changes in function signatures and type hints across multiple files
Renaming of metadata field to trace in evaluation results
These changes will require updates to any code that relies on the previous class names, method names, or type structures.
Description
This pull request introduces significant refactoring and improvements to the Ape project, focusing on enhancing the evaluation and generation processes. Key changes include:
Renaming and restructuring core components:
Evaluate
class is nowEvaluator
Generate
andBaseGenerate
are renamed toGenerator
andBaseGenerator
fit
method is renamed totrain
in trainer classesRefactoring the evaluation process:
Evaluator
class with improved async handlingEvaluationResult
type, streamlining the evaluation outputUpdating type hints and function signatures for better consistency and clarity
Improving logging by replacing
print
statements with proper logger callsIntroducing new trainer classes, including
DspyMiproTrainer
Updating version numbers: ape-common to 0.2.0 and ape-core to 0.9.0
These changes aim to improve code organization, readability, and maintainability while enhancing the overall functionality of the Ape project.
Changes that Break Backward Compatibility
Renaming of core classes and methods:
Evaluate
toEvaluator
Generate
toGenerator
BaseGenerate
toBaseGenerator
fit
method totrain
in trainer classesRemoval of
EvaluationResult
typeChanges in function signatures and type hints across multiple files
Renaming of
metadata
field totrace
in evaluation resultsThese changes will require updates to any code that relies on the previous class names, method names, or type structures.
Documentation
N/A
Created with Palmier