Skip to content

Commit

Permalink
Add ICL base class to __all__ (#3079)
Browse files Browse the repository at this point in the history
* add to all

* fix
  • Loading branch information
mvpatel2000 authored Mar 2, 2024
1 parent 6ce38ad commit 548842c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions composer/metrics/nlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
log = logging.getLogger(__name__)

__all__ = [
'InContextLearningMetric',
'InContextLearningLMAccuracy',
'InContextLearningMultipleChoiceAccuracy',
'InContextLearningQAAccuracy',
Expand Down Expand Up @@ -196,6 +197,7 @@ def compute(self) -> Tensor:


class InContextLearningMetric(Metric):
"""Base class for In-context learning (ICL) metrics."""

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit 548842c

Please sign in to comment.