Skip to content

Commit

Permalink
fix ensemble edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
smellycloud committed Dec 12, 2024
1 parent 70098e6 commit f4ed737
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions views_pipeline_core/managers/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import subprocess
from datetime import datetime
import pandas as pd
from views_pipeline_core.files.utils import save_dataframe, read_dataframe
from views_pipeline_core.configs.pipeline import PipelineConfig

logger = logging.getLogger(__name__)

Expand Down
5 changes: 3 additions & 2 deletions views_pipeline_core/managers/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,9 @@ def __init__(self, model_path: ModelPathManager) -> None:
"config_sweep.py", "get_sweep_config"
)
self.set_dataframe_format(format=".parquet")
from views_pipeline_core.data.dataloaders import ViewsDataLoader
self._data_loader = ViewsDataLoader(model_path=self._model_path)
if self._model_path.target == "model":
from views_pipeline_core.data.dataloaders import ViewsDataLoader
self._data_loader = ViewsDataLoader(model_path=self._model_path)


def set_dataframe_format(self, format: str) -> None:
Expand Down

0 comments on commit f4ed737

Please sign in to comment.