Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@danielezhu
Copy link
Contributor

@danielezhu danielezhu commented Mar 28, 2024

Description of changes:
Title. Also removed model from the evaluate_sample signature in the interface, which I mistakenly added in a previous PR.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@franluca franluca left a comment

Choose a reason for hiding this comment

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

some comments to address in the next round; for now can go as is.

logger = logging.getLogger(__name__)


class PromptStereotypingScores(Transform):
Copy link
Contributor

Choose a reason for hiding this comment

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

NTH: this is in fact a general operation that you can do to compare any two passages via the probability assigned by the model. As such this is not necessarily tied to "stereotyping". So would suggest to recall this as ProbabilityRatio or something along the line

@danielezhu danielezhu merged commit cc18fca into aws:main Mar 28, 2024
@danielezhu danielezhu deleted the ps branch March 28, 2024 20:56
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.

3 participants