rofunc.utils.oslab.path
#
1. Module Contents#
1.1. Functions#
Get the path of the rofunc package. |
|
Get the path of the elegantrl package. |
|
Check if the checkpoint file exists. |
|
Check if the path is an absolute path. |
|
Check if the package is installed, if not, install the package. |
1.2. API#
- rofunc.utils.oslab.path.get_rofunc_path(extra_path=None)[source]#
Get the path of the rofunc package.
- Returns:
the absolute path of the rofunc package
- rofunc.utils.oslab.path.get_elegantrl_path()[source]#
Get the path of the elegantrl package.
- Returns:
the absolute path of the elegantrl package
- rofunc.utils.oslab.path.check_ckpt_exist(ckpt_name)[source]#
Check if the checkpoint file exists.
- Parameters:
ckpt_name – the name of the checkpoint file
- Returns:
True if the checkpoint file exists, False otherwise