-
Notifications
You must be signed in to change notification settings - Fork 50
fix: llm palm score tests #643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ def test_llm_palm_configure_fit(llm_fine_tune_df_default_index, llm_remote_text_ | |
model_name="text-bison", max_iterations=1 | ||
) | ||
|
||
df = llm_fine_tune_df_default_index.dropna() | ||
df = llm_fine_tune_df_default_index.dropna().sample(n=100) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. curious how much run time reduction with sampling. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It didn't improve much. It still takes the same amount of time around 30-40 mins, and the durations has some variations. |
||
X_train = df[["prompt"]] | ||
y_train = df[["label"]] | ||
model.fit(X_train, y_train) | ||
|
@@ -102,12 +102,10 @@ def test_llm_palm_score_params(llm_fine_tune_df_default_index): | |
).to_pandas() | ||
score_result_col = score_result.columns.to_list() | ||
expected_col = [ | ||
"trial_id", | ||
"precision", | ||
"recall", | ||
"accuracy", | ||
"f1_score", | ||
"log_loss", | ||
"roc_auc", | ||
"label", | ||
"evaluation_status", | ||
] | ||
assert all(col in score_result_col for col in expected_col) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add retry for experimental features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.