Skip to content

Commit

Permalink
Update prompt_based.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBK authored Dec 5, 2023
1 parent 49a41d9 commit 7b6cd50
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions prompt2model/dataset_generator/prompt_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,11 @@ class Example:

def __eq__(self, other) -> bool:
"""Example equality."""
return (self.input_col == other.input_col and
self.output_col == other.output_col and
self.explain_col == other.explain_col)
return (self.input_col == other.input_col and self.output_col == other.output_col and self.explain_col == other.explain_col) # noqa E501

def __lt__(self, other) -> bool:
"""Example less than."""
return (self.input_col < other.input_col
or self.output_col < other.output_col
or self.explain_col < other.explain_col)
return (self.input_col < other.input_col or self.output_col < other.output_col or self.explain_col < other.explain_col) # noqa E501


class PromptBasedDatasetGenerator(DatasetGenerator):
Expand Down

0 comments on commit 7b6cd50

Please sign in to comment.