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

Renames and unit tests #20

Merged
merged 10 commits into from
Aug 17, 2023
Merged

Renames and unit tests #20

merged 10 commits into from
Aug 17, 2023

Conversation

olgavrou
Copy link
Collaborator

@olgavrou olgavrou commented Aug 16, 2023

consistent naming

  • TextEmbedder -> FeatureEmbedder and to_vw_format -> format
  • expose score instead of cost
  • score/scoring for anything reward related
  • external references to actions/context renamed to to_select_from/based_on
  • instead of exposing the term label and cost/action/probability renamed to Selection for the Label class and then the variable is called selected in the event, which makes it nice: selected.score, selected.index, selected.probability

@@ -7,13 +7,22 @@
import glob
import logging

Copy link
Collaborator Author

@olgavrou olgavrou Aug 17, 2023

Choose a reason for hiding this comment

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

this file change just has black formatting

from .pick_best_chain import (
PickBest,
PickBestAutoSelectionScorer,
PickBestFeatureEmbedder,
Copy link
Member

Choose a reason for hiding this comment

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

maybe we should not expose embedders from top level?

  • inheritance from them seems quite advanced scenario, so they may confuse
  • not clear why inheritance from them may be needed since they have almost no state and only one function

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah I can remove

@olgavrou olgavrou merged commit 17bb7aa into main Aug 17, 2023
1 check passed
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