uber / bayesmark

Benchmark framework to easily compare Bayesian optimization methods on real machine learning tasks
Apache License 2.0
140 stars 34 forks source link

Change PosixPath to Path for Windows Users #14

Open ghost opened 3 years ago

ghost commented 3 years ago

Issue: Running Bayesmark on Windows using Cygwin throws an exception in cmd_parse.py. This is because PosixPath does not work in Windows.

Resolution: Instead of using PosixPath, use Path instead. Instantiating Path creates either a PosixPath or a WindowsPath depending on the OS. See here: https://docs.python.org/3/library/pathlib.html#pathlib.Path