@@ -416,8 +416,7 @@ def _metric_names_for_training_job(self):
416416
417417
418418class ExperimentAnalytics (AnalyticsMetricsBase ):
419- """Fetch trial component data and make them accessible for analytics.
420- """
419+ """Fetch trial component data and make them accessible for analytics."""
421420
422421 MAX_TRIAL_COMPONENTS = 10000
423422
@@ -477,16 +476,14 @@ def __init__(
477476
478477 @property
479478 def name (self ):
480- """Name of the Experiment being analyzed
481- """
479+ """Name of the Experiment being analyzed"""
482480 return self ._experiment_name
483481
484482 def __repr__ (self ):
485483 return "<sagemaker.ExperimentAnalytics for %s>" % self .name
486484
487485 def clear_cache (self ):
488- """Clear the object of all local caches of API methods.
489- """
486+ """Clear the object of all local caches of API methods."""
490487 super (ExperimentAnalytics , self ).clear_cache ()
491488 self ._trial_components = None
492489
@@ -570,13 +567,13 @@ def _reshape(self, trial_component):
570567
571568 def _fetch_dataframe (self ):
572569 """Return a pandas dataframe with all the trial_components,
573- along with their parameters and metrics.
570+ along with their parameters and metrics.
574571 """
575572 df = pd .DataFrame ([self ._reshape (component ) for component in self ._get_trial_components ()])
576573 return df
577574
578575 def _get_trial_components (self , force_refresh = False ):
579- """ Get all trial components matching the given search query expression.
576+ """Get all trial components matching the given search query expression.
580577
581578 Args:
582579 force_refresh (bool): Set to True to fetch the latest data from SageMaker API.
0 commit comments