mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
add better defaults to TaskParameters
This commit is contained in:
@@ -415,8 +415,8 @@ class AgentParameters(Parameters):
|
|||||||
|
|
||||||
|
|
||||||
class TaskParameters(Parameters):
|
class TaskParameters(Parameters):
|
||||||
def __init__(self, framework_type: str="tensorflow", evaluate_only: bool=False, use_cpu: bool=False,
|
def __init__(self, framework_type: str='tensorflow', evaluate_only: bool=False, use_cpu: bool=False,
|
||||||
experiment_path="./experiments/test/", seed=None, save_checkpoint_secs=None):
|
experiment_path='/tmp', seed=None, save_checkpoint_secs=None):
|
||||||
"""
|
"""
|
||||||
:param framework_type: deep learning framework type. currently only tensorflow is supported
|
:param framework_type: deep learning framework type. currently only tensorflow is supported
|
||||||
:param evaluate_only: the task will be used only for evaluating the model
|
:param evaluate_only: the task will be used only for evaluating the model
|
||||||
@@ -426,7 +426,7 @@ class TaskParameters(Parameters):
|
|||||||
:param seed: a seed to use for the random numbers generator
|
:param seed: a seed to use for the random numbers generator
|
||||||
"""
|
"""
|
||||||
self.framework_type = framework_type
|
self.framework_type = framework_type
|
||||||
self.task_index = None # TODO: not really needed
|
self.task_index = 0 # TODO: not really needed
|
||||||
self.evaluate_only = evaluate_only
|
self.evaluate_only = evaluate_only
|
||||||
self.use_cpu = use_cpu
|
self.use_cpu = use_cpu
|
||||||
self.experiment_path = experiment_path
|
self.experiment_path = experiment_path
|
||||||
|
|||||||
Reference in New Issue
Block a user