File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 37
37
'If you would like to use version {latest}, ' \
38
38
'please add framework_version={latest} to your constructor.'
39
39
PYTHON_2_DEPRECATION_WARNING = 'The Python 2 {framework} images will be soon deprecated and may not be ' \
40
- 'supported for newer upcoming versions of the {framework} images. ' \
40
+ 'supported for newer upcoming versions of the {framework} images.\n ' \
41
41
'Please set the argument \" py_version=\' py3\' \" to use the Python 3 {framework} image.'
42
42
43
43
Original file line number Diff line number Diff line change 15
15
import logging
16
16
17
17
import sagemaker
18
- from sagemaker .fw_utils import create_image_uri , model_code_key_prefix
18
+ from sagemaker .fw_utils import create_image_uri , model_code_key_prefix , python_deprecation_warning
19
19
from sagemaker .model import FrameworkModel , MODEL_SERVER_WORKERS_PARAM_NAME
20
20
from sagemaker .mxnet .defaults import MXNET_VERSION
21
21
from sagemaker .predictor import RealTimePredictor , json_serializer , json_deserializer
Original file line number Diff line number Diff line change 23
23
24
24
logger = logging .getLogger ('sagemaker' )
25
25
26
+
26
27
class SKLearnPredictor (RealTimePredictor ):
27
28
"""A RealTimePredictor for inference against Scikit-learn Endpoints.
28
29
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ def run(self):
154
154
"""Run TensorBoard process."""
155
155
port , tensorboard_process = self .create_tensorboard_process ()
156
156
157
- LOGGER .info ('TensorBoard 0.1.7 at http://localhost:{}' .format (port ))
157
+ logger .info ('TensorBoard 0.1.7 at http://localhost:{}' .format (port ))
158
158
while not self .estimator .checkpoint_path :
159
159
self .event .wait (1 )
160
160
with self ._temporary_directory () as aws_sync_dir :
@@ -324,7 +324,7 @@ def fit_super():
324
324
raise ValueError ("Tensorboard is not supported with async fit" )
325
325
326
326
if self ._script_mode_enabled () and run_tensorboard_locally :
327
- LOGGER .warning (_SCRIPT_MODE_TENSORBOARD_WARNING .format (self .model_dir ))
327
+ logger .warning (_SCRIPT_MODE_TENSORBOARD_WARNING .format (self .model_dir ))
328
328
fit_super ()
329
329
elif run_tensorboard_locally :
330
330
tensorboard = Tensorboard (self )
You can’t perform that action at this time.
0 commit comments