Skip to content

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.

2 participants