forked from stanford-crfm/helm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dataclasses and add helm id (stanford-crfm#1659)
Co-authored-by: Andy Z <[email protected]> Co-authored-by: Andy Z <[email protected]> Co-authored-by: Andy Z <[email protected]> Co-authored-by: Andy Z <[email protected]> Co-authored-by: Andy Z <[email protected]> Co-authored-by: Andy Z <[email protected]>
- Loading branch information
1 parent
2bb4d78
commit 2905ecc
Showing
17 changed files
with
318 additions
and
1,319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from dataclasses import dataclass | ||
from typing import List | ||
from light_scenario import LightScenarioKey | ||
|
||
|
||
@dataclass(frozen=True) | ||
class OverlapProtocolSpec: | ||
"""Specification for how we compute overlap""" | ||
|
||
# the N of the n_grams we're running | ||
n: int | ||
|
||
|
||
@dataclass(frozen=True) | ||
class DataOverlapStatsKey: | ||
"""Dataclass that represents output data overlap stats""" | ||
|
||
light_scenario_key: LightScenarioKey | ||
|
||
overlap_protocol_spec: OverlapProtocolSpec | ||
|
||
|
||
@dataclass(frozen=True) | ||
class DataOverlapStats: | ||
"""Dataclass that represents output data overlap stats""" | ||
|
||
data_overlap_stats_key: DataOverlapStatsKey | ||
|
||
num_instances: int | ||
|
||
instance_ids_with_overlapping_input: List[str] | ||
|
||
instance_ids_with_overlapping_reference: List[str] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.