Skip to content

Commit

Permalink
circular import removal for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FNTwin committed Jul 12, 2024
1 parent 3fc5c7d commit 44fcf16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions openqdc/utils/regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import pandas as pd
from loguru import logger

from openqdc.datasets.base import BaseDataset


def non_nan_idxs(array):
"""
Expand Down Expand Up @@ -119,7 +117,7 @@ def __init__(
self._post_init()

@classmethod
def from_openqdc_dataset(cls, dataset: BaseDataset, *args, **kwargs) -> "Regressor":
def from_openqdc_dataset(cls, dataset, *args, **kwargs) -> "Regressor":
"""
Initialize the regressor object from an openqdc dataset. This is the default method.
*args and and **kwargs are passed to the __init__ method and depends on the specific regressor.
Expand Down

0 comments on commit 44fcf16

Please sign in to comment.