d0c676488695225233192e9fbe6d0e191c37e125,src/sagemaker/session.py,Session,logs_for_job,#Session#Any#Any#Any#,1335

Before Change


                print()
            // Customers are not billed for hardware provisioning, so billable time is less than
            // total time
            billable_time = (
                description["TrainingEndTime"] - description["TrainingStartTime"]
            ) * instance_count
            print("Billable seconds:", int(billable_time.total_seconds()) + 1)


def container_def(image, model_data_url=None, env=None):

After Change


            billable_time = description.get("BillableTimeInSeconds")
            if training_time is not None:
                print("Training seconds:", training_time * instance_count)
            if billable_time is not None:
                print("Billable seconds:", billable_time * instance_count)
                if description.get("EnableManagedSpotTraining"):
                    saving = (1 - float(billable_time) / training_time) * 100
                    print("Managed Spot Training savings: {:.1f}%".format(saving))


def container_def(image, model_data_url=None, env=None):
    Create a definition for executing a container as part of a SageMaker model.

    Args:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: aws/sagemaker-python-sdk
Commit Name: d0c676488695225233192e9fbe6d0e191c37e125
Time: 2019-08-20
Author: ishaaqc@amazon.com
File Name: src/sagemaker/session.py
Class Name: Session
Method Name: logs_for_job


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c8c2c1c1613641ea9b0161d7a47980d66d5e504c
Time: 2021-03-10
Author: pclay@google.com
File Name: perfkitbenchmarker/linux_benchmarks/dpb_distcp_benchmark.py
Class Name:
Method Name: Run


Project Name: descarteslabs/descarteslabs-python
Commit Name: 15d9ef86aab700ac1075339f2b6ac1de209a0f35
Time: 2020-05-27
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/models/utils.py
Class Name:
Method Name: pb_datetime_to_milliseconds