Training API #172
Labels
Type: Improvement 📈
Performance improvement not introducing a new feature or requiring a major refactor
Type: New Feature ➕
Introduction of a completely new addition to the codebase
Milestone
Feature Description
Add Useful API for training cycle so that user doesn't need to code training loop from scratch each time.
Add new methods in Job:
Job.request()
Same as we currently do inside the
.start()
method (auth, download of model and plan).trainingProcess = Job.train(trainingPlan, parameters)
Helper for training loop
trainingProcess
- object would contain current epoch, batch, modelParameterstrainingPlan
- stringparameters
- dict of values:PlanInputSpec
: object that describes plan input argumentPlanOutputSpec: object that describes plan output
Pseudo code:
Training loop:
Resolving plan inputs/outputs from specs:
Example for input/output specs for MNIST training plan:
What alternatives have you considered?
API was discussed in FL team.
Additional Context
n/a
The text was updated successfully, but these errors were encountered: