Database setup and reset

Set up database for Auptimizer

Set up the database for Auptimizer based on the specified environment ini file.

It is called automatically when user sets up the Auptimizer for the first time.

Use it to reset database to the original state.

Additional arguments

Usage: __main__.py [OPTIONS] ENV_FILE

  Create Database for *Auptimizer* env.ini.

  Arguments:
      env_file {str}: Auptimizer environment file

Options:
  --user TEXT                    username for history tracking
  --cpu INTEGER                  number of CPUs to run parallel
  --name TEXT                    resource name, not used
  --log [debug|info|warn|error]  Log level
  -h, --help                     Show this message and exit.
/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/scipy/__init__.py:137: UserWarning: NumPy 1.16.5 or above is required for this version of SciPy (detected version 1.16.4)
  UserWarning)
/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at  /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
  return torch._C._cuda_getDeviceCount() > 0

Reset database

Reset database without removing experiment history.

Additional arguments

Usage: reset.py [OPTIONS] ENV_FILE

  Reset database defined in env.ini file, history remains. 

  Copyright (C) 2018  LG Electronics Inc. 

  GPL-3.0 License. This program comes with ABSOLUTELY NO WARRANTY; 

  Arguments:     env_file {str}: Auptimizer environment file

Options:
  -h, --help  Show this message and exit.
/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/scipy/__init__.py:137: UserWarning: NumPy 1.16.5 or above is required for this version of SciPy (detected version 1.16.4)
  UserWarning)
/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at  /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
  return torch._C._cuda_getDeviceCount() > 0