00135a70697dc9b4611971e5833e2d84501c3da7,keras/engine/training.py,Model,evaluate,#Model#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,1281

Before Change


      if return_dict:
        return logs
      else:
        results = []
        for name in self.metrics_names:
          if name in logs:
            results.append(logs[name])
        for key in sorted(logs.keys()):
          if key not in self.metrics_names:
            results.append(logs[key])
        if len(results) == 1:

After Change


    self._assert_compile_was_called()
    self._check_call_args("evaluate")
    _disallow_inside_tf_function("evaluate")
    use_cached_eval_dataset = kwargs.pop("_use_cached_eval_dataset", False)
    if kwargs:
      raise TypeError("Invalid keyword arguments: %s" % (kwargs,))

    if self.distribute_strategy._should_use_with_coordinator:  // pylint: disable=protected-access
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: keras-team/keras
Commit Name: 00135a70697dc9b4611971e5833e2d84501c3da7
Time: 2021-03-23
Author: scottzhu@google.com
File Name: keras/engine/training.py
Class Name: Model
Method Name: evaluate


Project Name: dask/distributed
Commit Name: db758d0f8609dd0fa041b212ecc89a088b57291e
Time: 2018-06-23
Author: mrocklin@gmail.com
File Name: distributed/deploy/adaptive.py
Class Name: Adaptive
Method Name: _adapt


Project Name: ClimbsRocks/auto_ml
Commit Name: 9b9e491bb00be66b732d2f44b3e4375206940e61
Time: 2016-10-19
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: make_sub_x_and_y_test