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

refactor: Restructure submodules in evaluation #6

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion haystack_experimental/evaluation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0

from .eval_harness import EvalRunOverrides, EvaluationHarness
from .harness import EvalRunOverrides, EvaluationHarness

_all_ = ["EvaluationHarness", "EvalRunOverrides"]
7 changes: 7 additions & 0 deletions haystack_experimental/evaluation/harness/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0

from .evalution_harness import EvalRunOverrides, EvaluationHarness

_all_ = ["EvaluationHarness", "EvalRunOverrides"]
3 changes: 3 additions & 0 deletions haystack_experimental/evaluation/util/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions test/evaluation/util/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
import pytest

from haystack_experimental.evaluation.util import (
from haystack_experimental.evaluation.util.helpers import (
aggregate_batched_pipeline_outputs,
deaggregate_batched_pipeline_inputs,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from haystack import Pipeline
from haystack_experimental.evaluation.pipeline_pair import PipelinePair
from haystack_experimental.evaluation.util import aggregate_batched_pipeline_outputs
from haystack_experimental.evaluation.util.pipeline_pair import PipelinePair
from haystack_experimental.evaluation.util.helpers import aggregate_batched_pipeline_outputs

from haystack.testing.sample_components import AddFixedValue, Double
from haystack_experimental.testing.sample_components import AddFixedValueBatch, DoubleBatch
Expand Down
Loading