@@ -106,46 +106,6 @@ def test_attach_transform_kmeans(sagemaker_session):
106
106
attached_transformer .wait ()
107
107
108
108
109
- # def test_transformer_delete_model(sagemaker_session):
110
- # data_path = os.path.join(DATA_DIR, 'one_p_mnist')
111
- # pickle_args = {} if sys.version_info.major == 2 else {'encoding': 'latin1'}
112
- #
113
- # train_set_path = os.path.join(data_path, 'mnist.pkl.gz')
114
- # with gzip.open(train_set_path, 'rb') as f:
115
- # train_set, _, _ = pickle.load(f, **pickle_args)
116
- #
117
- # kmeans = KMeans(role='SageMakerRole', train_instance_count=1,
118
- # train_instance_type='ml.c4.xlarge', k=10, sagemaker_session=sagemaker_session,
119
- # output_path='s3://{}/'.format(sagemaker_session.default_bucket()))
120
- #
121
- # kmeans.init_method = 'random'
122
- # kmeans.max_iterations = 1
123
- # kmeans.tol = 1
124
- # kmeans.num_trials = 1
125
- # kmeans.local_init_method = 'kmeans++'
126
- # kmeans.half_life_time_size = 1
127
- # kmeans.epochs = 1
128
- #
129
- # records = kmeans.record_set(train_set[0][:100])
130
- # with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
131
- # kmeans.fit(records)
132
- #
133
- # transform_input_path = os.path.join(data_path, 'transform_input.csv')
134
- # transform_input_key_prefix = 'integ-test-data/one_p_mnist/transform'
135
- # transform_input = kmeans.sagemaker_session.upload_data(path=transform_input_path,
136
- # key_prefix=transform_input_key_prefix)
137
- #
138
- # transformer = _create_transformer_and_transform_job(kmeans, transform_input)
139
- # with timeout(minutes=TRANSFORM_DEFAULT_TIMEOUT_MINUTES):
140
- # transformer.wait()
141
- #
142
- # transformer.delete_model()
143
- #
144
- # with pytest.raises(Exception) as exception:
145
- # sagemaker_session.sagemaker_client.describe_model(ModelName=transformer.model_name)
146
- # assert 'Could not find model' in exception.value.message
147
-
148
-
149
109
def test_transform_mxnet_vpc (sagemaker_session , mxnet_full_version ):
150
110
data_path = os .path .join (DATA_DIR , 'mxnet_mnist' )
151
111
script_path = os .path .join (data_path , 'mnist.py' )
0 commit comments