61db445481f516b0d3b21ccfde890fd2b5c34877,tests/integ/test_mxnet_train.py,,test_deploy_model,#Any#Any#Any#,70

Before Change


        )
        predictor = model.deploy(1, "ml.m4.xlarge", endpoint_name=endpoint_name)

        data = numpy.zeros(shape=(1, 1, 28, 28))
        result = predictor.predict(data)
        assert result is not None

    predictor.delete_model()

After Change


    with timeout_and_delete_endpoint_by_name(endpoint_name, sagemaker_session):
        desc = sagemaker_session.sagemaker_client.describe_training_job(
            TrainingJobName=mxnet_training_job
        )
        model_data = desc["ModelArtifacts"]["S3ModelArtifacts"]
        script_path = os.path.join(DATA_DIR, "mxnet_mnist", "mnist.py")
        model = MXNetModel(
            model_data,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: aws/sagemaker-python-sdk
Commit Name: 61db445481f516b0d3b21ccfde890fd2b5c34877
Time: 2019-08-13
Author: chuyangdeng@gmail.com
File Name: tests/integ/test_mxnet_train.py
Class Name:
Method Name: test_deploy_model


Project Name: scipy/scipy
Commit Name: 289ae46ae4b3e1abbf135e204c62908aeadc7d85
Time: 2020-07-07
Author: peterbell10@live.co.uk
File Name: scipy/spatial/tests/test_kdtree.py
Class Name: Test_vectorization
Method Name: test_vectorized_query_all_neighbors


Project Name: nipy/dipy
Commit Name: 3789de488113316b303be36e2f7d4bb2e405f47f
Time: 2020-10-13
Author: arokem@gmail.com
File Name: dipy/io/tests/test_utils.py
Class Name:
Method Name: test_read_img_arr_or_path