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

feat: Create Lambda to query Training job #13

Open
brightsparc opened this issue Aug 27, 2021 · 0 comments
Open

feat: Create Lambda to query Training job #13

brightsparc opened this issue Aug 27, 2021 · 0 comments

Comments

@brightsparc
Copy link
Contributor

Replace the evaluate.py processing job with a Lambda Step that returns the report dictionary Model Quality Metrics

    # Get the training job
    response = sm_client.describe_training_job(TrainingJobName=job_name)
    status = response["TrainingJobStatus"]
    logger.info("Training job:{} has status:{}.".format(job_name, status))

    # Get the metrics as a dictionary
    report_dict = {
        "regression_metrics": {   }
    }
    for metric in response["FinalMetricDataList"]:
        report_dict["regression_metrics"][metric["MetricName"]] = metric["Value"]
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

No branches or pull requests

1 participant