Skip to content
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

Add regression task and fix stsb to use it #505

Merged
merged 3 commits into from
Jan 28, 2024

Conversation

elronbandel
Copy link
Member

No description provided.

Copy link

codecov bot commented Jan 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (aba3da2) 94.13% compared to head (6a90b07) 94.14%.
Report is 2 commits behind head on main.

❗ Current head 6a90b07 differs from pull request most recent head d23ee23. Consider uploading reports for the commit d23ee23 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #505   +/-   ##
=======================================
  Coverage   94.13%   94.14%           
=======================================
  Files         194      197    +3     
  Lines        7803     7816   +13     
=======================================
+ Hits         7345     7358   +13     
  Misses        458      458           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

add_to_catalog(
OutputQuantizingTemplate(
input_format="""
Given this text: '{text1}' and this text: '{text2}', on a scale of {min_value} to {max_value}, what is the {type_of_value} of this texts?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not keep to existing format?

Given this sentence: '{text1}', on a scale of {min_value} to {max_value}, what is the {type_of_relation} to this text {text2}

}
),
AddFields(
fields={"type_of_value": "similarity", "min_value": "1", "max_value": "5"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type_of_value -> type_of_relation

"templates.regression.bounded.pair.simple",
]
),
"templates.regression.bounded.pair.all",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be more clear:

templates.regression.bounded.pair -> templates.regression.two_texts

Is there a need for an unbounded regression between text?
.

Copy link
Member

@yoavkatz yoavkatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see separate comments.

add_to_catalog(
OutputQuantizingTemplate(
input_format="""
Given this text: '{text1}', on a scale of {min_value} to {max_value}, what is the {type_of_value} of this text?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type_of_value -> attribute

[ Maybe a better name could be found? ]

@elronbandel elronbandel force-pushed the add-regression-tasks-and-fix-stsb-to-use-it branch 2 times, most recently from c590956 to 6a90b07 Compare January 28, 2024 12:02
Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
@elronbandel elronbandel force-pushed the add-regression-tasks-and-fix-stsb-to-use-it branch from 6a90b07 to d23ee23 Compare January 28, 2024 12:35
@elronbandel elronbandel merged commit 87b5b9c into main Jan 28, 2024
4 checks passed
@elronbandel elronbandel deleted the add-regression-tasks-and-fix-stsb-to-use-it branch April 8, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants