Can I use TimeEval without docker? #40
Answered
by
SebastianSchmidl
JeonghwaYoo-R
asked this question in
Q&A
-
I want to run TimeEval on my environment. My environment is Windows 10. Can I use TimeEval without docker? then how can I do? When using docker, the following error occurs:
|
Beta Was this translation helpful? Give feedback.
Answered by
SebastianSchmidl
Oct 27, 2022
Replies: 1 comment
-
Disclaimer: TimeEval is not tested on Windows, and we are, thus, not supporting it officially. If you don't use the #!/usr/bin/env python3
from pathlib import Path
from timeeval import TimeEval, DatasetManager, DefaultMetrics, Algorithm, TrainingType, InputDimensionality
from timeeval.adapters import FunctionAdapter
from timeeval.params import FixedParameters
from timeeval.data_types import AlgorithmParameter
import numpy as np
def your_algorithm_function(data: AlgorithmParameter, args: dict) -> np.ndarray:
if isinstance(data, np.ndarray):
return np.zeros_like(data)
else: # data = pathlib.Path
return np.genfromtxt(data)[0]
def main():
dm = DatasetManager(Path("tests/example_data")) # or test-cases directory
datasets = dm.select()
algorithms = [Algorithm(
name="MyPythonFunctionAlgorithm",
main=FunctionAdapter(your_algorithm_function),
data_as_file=False
)]
timeeval = TimeEval(dm, datasets, algorithms)
timeeval.run()
results = timeeval.get_results(aggregated=False)
print(results)
if __name__ == "__main__":
main() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SebastianSchmidl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Disclaimer: TimeEval is not tested on Windows, and we are, thus, not supporting it officially.
If you don't use the
DockerAdapter
, TimeEval should run fine without a Docker-installation. Where do you get the Exception from? Can you execute the following script?