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

Scoring #20

Merged
merged 2 commits into from
Sep 7, 2023
Merged

Scoring #20

merged 2 commits into from
Sep 7, 2023

Conversation

percevalw
Copy link
Member

Description

Delegate scoring to user via select_pipes & pipe.

Instead of doing:

results = pipeline.score(data)

we now write:

with pipeline.select_pipes(enable=["classifier"]):
    results = score(data, pipeline.pipe(copy.deepcopy(data)))

Checklist

  • If this PR is a bug fix, the bug is documented in the test suite.
  • Changes were documented in the changelog (pending section).
  • If necessary, changes were made to the documentation.

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
edspdf/pipes/embeddings/box_transformer.py ø
edspdf/pipes/embeddings/huggingface_embedding.py ø
edspdf/trainable_pipe.py ø
edspdf/pipeline.py 100.00%
edspdf/pipes/classifiers/trainable.py 100.00%

📢 Thoughts on this report? Let us know!.

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.

1 participant