502d6ebfcd698061cbdc1b369cb7ff449ff9db08,tests/unit/test_estimator.py,,test_init_with_source_dir_s3,#Any#Any#,330

Before Change



    expected_hyperparameters = BASE_HP.copy()
    expected_hyperparameters["sagemaker_enable_cloudwatch_metrics"] = "false"
    expected_hyperparameters["sagemaker_container_log_level"] = str(logging.INFO)
    expected_hyperparameters["sagemaker_submit_directory"] = json.dumps("s3://location")
    expected_hyperparameters["sagemaker_region"] = ""us-west-2""

    actual_hyperparameter = sagemaker_session.method_calls[1][2]["hyperparameters"]

After Change


                        enable_cloudwatch_metrics=False)
    fw._prepare_for_training()

    expected_hyperparameters = {
        "sagemaker_program": SCRIPT_NAME,
        "sagemaker_job_name": JOB_NAME,
        "sagemaker_enable_cloudwatch_metrics": False,
        "sagemaker_container_log_level": logging.INFO,
        "sagemaker_submit_directory": "s3://location",
        "sagemaker_region": "us-west-2",
    }
    assert fw._hyperparameters == expected_hyperparameters


// _TrainingJob "utils"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: aws/sagemaker-python-sdk
Commit Name: 502d6ebfcd698061cbdc1b369cb7ff449ff9db08
Time: 2018-06-04
Author: 6631887+laurenyu@users.noreply.github.com
File Name: tests/unit/test_estimator.py
Class Name:
Method Name: test_init_with_source_dir_s3


Project Name: Theano/Theano
Commit Name: f8a7c0edb2c4123d032fa32073c7356a7a17d9f0
Time: 2017-08-07
Author: stevenbocco@gmail.com
File Name: theano/configdefaults.py
Class Name:
Method Name:


Project Name: Theano/Theano
Commit Name: b7d23606db54f1b60d0efae50922549234b20661
Time: 2017-07-31
Author: abergeron@gmail.com
File Name: theano/configdefaults.py
Class Name:
Method Name: