Skip to content

benchmark typing error #455

@ourownstory

Description

@ourownstory

Discussed in #449

Originally posted by akthammomani October 23, 2021
@ourownstory, I went a head and installed the Library again using below in a fresh env:

git clone <copied link from github>
cd neural_prophet
pip install .

so when trying below:

from neuralprophet import NeuralProphet, set_log_level
from neuralprophet.benchmark import Dataset, NeuralProphetModel, SimpleExperiment, CrossValidationExperiment

I started to see a new error as shown below:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_43524/177920820.py in <module>
      1 from neuralprophet import NeuralProphet, set_log_level
----> 2 from neuralprophet.benchmark import Dataset, NeuralProphetModel, SimpleExperiment, CrossValidationExperiment

~\Anaconda3\envs\nprophet_v1\lib\site-packages\neuralprophet\benchmark.py in <module>
    158 
    159 
--> 160 @dataclass
    161 class SimpleBenchmark:
    162     """

~\Anaconda3\envs\nprophet_v1\lib\site-packages\neuralprophet\benchmark.py in SimpleBenchmark()
    171     """
    172 
--> 173     model_classes_and_params: List[tuple[Model, dict]]
    174     datasets: List[Dataset]
    175     metrics: list[str]

TypeError: 'type' object is not subscriptable

Please let me know if you have any suggestions.... Thank you very much

BR//Aktham

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions