mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
Added data store backend. (#17)
* Added data store backend. * Add NFS implementation for Kubernetes. * Added S3 data store implementation. * Addressed review comments.
This commit is contained in:
committed by
zach dwiel
parent
6b2de6ba6d
commit
1c238b4c60
12
rl_coach/data_stores/data_store_impl.py
Normal file
12
rl_coach/data_stores/data_store_impl.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from rl_coach.data_stores.nfs_data_store import NFSDataStore, NFSDataStoreParameters
|
||||
from rl_coach.data_stores.s3_data_store import S3DataStore, S3DataStoreParameters
|
||||
|
||||
|
||||
def get_data_store(params):
|
||||
data_store = None
|
||||
if type(params) == NFSDataStoreParameters:
|
||||
data_store = NFSDataStore(params)
|
||||
elif type(params) == S3DataStoreParameters:
|
||||
data_store = S3DataStore(params)
|
||||
|
||||
return data_store
|
||||
Reference in New Issue
Block a user