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 6e36a03 commit 0802cdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prompt2model/dataset_generator/prompt_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ class Example:
def __eq__(self, other) -> bool:
"""Example equality."""
return (
self.input_col == other.input_col
and self.output_col == other.output_col
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
self.input_col < other.input_col
or self.output_col < other.output_col
or self.explain_col < other.explain_col
) # noqa E501

Expand Down

0 comments on commit 0802cdd

Please sign in to comment.