Skip to content

Commit

Permalink
Remove run_with_metadata() in metrics (leftover from cl/551257489)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 551557630
  • Loading branch information
nadah09 authored and LIT team committed Jul 27, 2023
1 parent 061973a commit ad65fd9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lit_nlp/components/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,6 @@ def run(self,
return self._metrics.run(inputs, model, dataset, model_outputs,
margin_config)

def run_with_metadata(self,
indexed_inputs: Sequence[IndexedInput],
model: lit_model.Model,
dataset: lit_dataset.IndexedDataset,
model_outputs: Optional[list[JsonDict]] = None,
config: Optional[JsonDict] = None) -> list[JsonDict]:
return self.run([ex['data'] for ex in indexed_inputs], model, dataset,
model_outputs, config)


class RegressionMetrics(SimpleMetrics):
"""Standard regression metrics."""
Expand Down

0 comments on commit ad65fd9

Please sign in to comment.