@@ -44,12 +44,12 @@ def log_metadata(
4444 with mlflow .start_run ():
4545 self .run_uuid = mlflow .active_run ().__dict__ ['_info'
4646 ].__dict__ ['_run_uuid' ]
47- print 'Logged using handler ' + handler
47+ print ( 'Logged using handler ' + handler )
4848 Run .handle_handlers (handler , * args , ** kwargs )
4949 else :
5050 with mlflow .start_run (run_uuid = self .run_uuid ):
5151 Run .handle_handlers (handler , * args , ** kwargs )
52- print 'Logged using handler ' + handler
52+ print ( 'Logged using handler ' + handler )
5353 return True
5454
5555 def log_param (self , * args , ** kwargs ):
@@ -104,22 +104,22 @@ def experiment_maker(experiment_id):
104104 :param experiment_id the experiment name you would like to get or create
105105 """
106106
107- print 'Tracking Path ' + mlflow .get_tracking_uri ()
107+ print ( 'Tracking Path ' + mlflow .get_tracking_uri () )
108108 found = False
109109 if not len (experiment_id ) in [0 , 1 ]:
110110 for e in [i for i in mlflow .tracking .list_experiments ()]: # Check all experiments
111111 if experiment_id == e .name :
112- print 'Experiment has already been created'
112+ print ( 'Experiment has already been created' )
113113 found = True
114114 os .environ ['MLFLOW_EXPERIMENT_ID' ] = \
115115 str (e ._experiment_id ) # use already created experiment
116116
117117 if not found :
118118 _id = mlflow .tracking .create_experiment (experiment_id ) # create new experiment
119- print 'Success! Created Experiment'
119+ print ( 'Success! Created Experiment' )
120120 os .environ ['MLFLOW_EXPERIMENT_ID' ] = str (_id ) # use it
121121 else :
122- print 'Please fill out this field'
122+ print ( 'Please fill out this field' )
123123
124124
125125class ModelEvaluator (object ):
@@ -254,12 +254,12 @@ def get_results(self, output_type='dataframe'):
254254
255255
256256def print_horizontal_line (l ):
257- print '' .join (['-' * l ])
257+ print ( '' .join (['-' * l ]) )
258258
259259
260260def display (html ):
261- print '%angular'
262- print html
261+ print ( '%angular' )
262+ print ( html )
263263
264264
265265class DecisionTreeVisualizer (object ):
@@ -306,15 +306,15 @@ def visualize(
306306 realroot = True )
307307 dot .render ('/zeppelin/webapps/webapp/assets/images/'
308308 + tree_name )
309- print 'Successfully uploaded file to Zeppelin Assests on this cluster'
310- print 'Uploading.'
309+ print ( 'Successfully uploaded file to Zeppelin Assests on this cluster' )
310+ print ( 'Uploading.' )
311311
312312 time .sleep (3 )
313- print 'Uploading..'
313+ print ( 'Uploading..' )
314314 time .sleep (3 )
315315
316- print 'You can find your visualization at "https://docs.google.com/gview?url=https://<cluster_name>.splicemachine.io/assets/images/' \
317- + tree_name + '.pdf&embedded=true#view=fith'
316+ print ( 'You can find your visualization at "https://docs.google.com/gview?url=https://<cluster_name>.splicemachine.io/assets/images/' \
317+ + tree_name + '.pdf&embedded=true#view=fith' )
318318
319319 @staticmethod
320320 def replacer (string , bad , good ):
0 commit comments