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

ExperimentTrainingContext -- this could be removed. #371

Closed
1 task
nicolay-r opened this issue Jul 14, 2022 · 0 comments
Closed
1 task

ExperimentTrainingContext -- this could be removed. #371

nicolay-r opened this issue Jul 14, 2022 · 0 comments
Assignees

Comments

@nicolay-r
Copy link
Owner

nicolay-r commented Jul 14, 2022

Pass labels count directly.
Reason: inheritance simplification

  • refactor annotator_name

class ExperimentTrainingContext(ExperimentContext):
""" Data, that is necessary for models training stage.
"""
def __init__(self, labels_count, name_provider):
super(ExperimentTrainingContext, self).__init__(name_provider)
self.__labels_count = labels_count
@property
def LabelsCount(self):
return self.__labels_count

@nicolay-r nicolay-r self-assigned this Jul 14, 2022
@nicolay-r nicolay-r changed the title This could be removed. ExperimentTrainingContext -- this could be removed. Jul 14, 2022
nicolay-r added a commit that referenced this issue Jul 15, 2022
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

No branches or pull requests

1 participant