bf4ccba3f001c0e1187a15d0f02ca251769c73c8,mlflow/store/sqlalchemy_store.py,SqlAlchemyStore,get_metric_history,#SqlAlchemyStore#Any#Any#,228

Before Change



    def get_metric_history(self, run_uuid, metric_key):
        metrics = self.session.query(SqlMetric.value).filter_by(run_uuid=run_uuid, key=metric_key)
        values = []
        for metric in metrics:
            values.append(metric.value)

        return values

After Change



    def get_metric_history(self, run_uuid, metric_key):
        metrics = self.session.query(SqlMetric).filter_by(run_uuid=run_uuid, key=metric_key).all()
        return [metric.to_mlflow_entity() for metric in metrics]

    def log_param(self, run_uuid, param):
        run = self._get_run(run_uuid)
        self._check_run_is_active(run)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mlflow/mlflow
Commit Name: bf4ccba3f001c0e1187a15d0f02ca251769c73c8
Time: 2019-01-29
Author: mani@databricks.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: get_metric_history


Project Name: mlflow/mlflow
Commit Name: 8bc9a55687a4d0c08d8d852b3eddeb2b36ebc2c6
Time: 2020-02-24
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: mlflow/store/model_registry/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: update_model_version


Project Name: mlflow/mlflow
Commit Name: f38a634a118fe55d6f98ede2d82624f4cba38fcf
Time: 2019-09-04
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: get_experiment_by_name