2359ff5795f69d029643188e5fba76b90bfa53c4,core/polyaxon/polyboard/events/schemas.py,V1Events,get_summary,#V1Events#,419

Before Change


        return V1Event.from_dict(event)

    def get_summary(self) -> Dict:
        summary = {
            "step": {
                "count": sanitize_np_types(self.df.step.count()),
                "min": sanitize_np_types(self.df.step.iloc[0]),
                "max": sanitize_np_types(self.df.step.iloc[-1]),
            },
            "timestamp": {
                "min": self.df.timestamp.iloc[0].isoformat(),
                "max": self.df.timestamp.iloc[-1].isoformat(),
            },
        }
        if self.kind == V1ArtifactKind.METRIC:
            summary[self.kind] = {
                k: sanitize_np_types(v)
                for k, v in self.df.metric.describe().to_dict().items()

After Change


        }

    def get_summary(self) -> Dict:
        summary = {}
        step_summary = self._get_step_summary()
        if step_summary:
            summary["step"] = step_summary

        ts_summary = self._get_ts_summary()
        if step_summary:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: polyaxon/polyaxon
Commit Name: 2359ff5795f69d029643188e5fba76b90bfa53c4
Time: 2020-04-19
Author: mouradmourafiq@gmail.com
File Name: core/polyaxon/polyboard/events/schemas.py
Class Name: V1Events
Method Name: get_summary


Project Name: AlexsLemonade/refinebio
Commit Name: 3dece408885064d14883eb38547da2729950c50c
Time: 2019-02-28
Author: arielsvn@gmail.com
File Name: api/data_refinery_api/views.py
Class Name: Stats
Method Name: _get_job_stats


Project Name: chakki-works/doccano
Commit Name: 49d41416e440926f0a9a8243b4d77f6f5468efe9
Time: 2019-03-12
Author: light.tree.1.13@gmail.com
File Name: app/server/api.py
Class Name: StatisticsAPI
Method Name: progress


Project Name: AlexsLemonade/refinebio
Commit Name: e5680383654cdb3ca62ac1670c16bb603863c8e7
Time: 2019-08-12
Author: arielsvn@gmail.com
File Name: common/data_refinery_common/models/models.py
Class Name: Experiment
Method Name: update_num_samples