Skip to content

Commit

Permalink
refactor: Restructure submodules in evaluation (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeMe authored May 22, 2024
1 parent 57ece86 commit 80d80cb
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 4 deletions.
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
File renamed without changes.
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

0 comments on commit 80d80cb

Please sign in to comment.