Skip to content

Commit

Permalink
Fix some typos and nits (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgacangoz authored Feb 24, 2024
1 parent ed9d39c commit b872feb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/llm_finetuning.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ For Reward Trainer, the data should be in the following format:

| text | rejected_text |
|---------------------------------------------------------------|-------------------------------------------------------------------|
| human: hello \n bot: hi nice to meet you | humna: hello \n bot: leave me alone |
| human: hello \n bot: hi nice to meet you | human: hello \n bot: leave me alone |
| human: how are you \n bot: I am fine | human: how are you \n bot: I am not fine |
| human: What is your name? \n bot: My name is Mary | human: What is your name? \n bot: Whats it to you? |
| human: Which is the best programming language? \n bot: Python | human: Which is the best programming language? \n bot: Javascript |
Expand Down
2 changes: 1 addition & 1 deletion docs/source/seq2seq.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Seq2Seq

Seq2Seq is a task that involves converting a sequence of words into another sequence of words.
Seq2Seq is a task that involves converting a sequence of words into another sequence of words.
It is used in machine translation, text summarization, and question answering.

## Data Format
Expand Down
2 changes: 1 addition & 1 deletion src/autotrain/trainers/tabular/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def calculate(self, y_true, y_pred):
else:
if metric_name == "rmsle":
temp_pred = copy.deepcopy(y_pred)
temp_pred = np.clip(y_pred, 0, None)
temp_pred = np.clip(temp_pred, 0, None)
metrics[metric_name] = metric_func(y_true, temp_pred)
else:
metrics[metric_name] = metric_func(y_true, y_pred)
Expand Down

0 comments on commit b872feb

Please sign in to comment.