Edit docstrings

This commit is contained in:
revital 2023-04-30 10:47:26 +03:00
parent 422807555d
commit b78082c184

View File

@ -1411,15 +1411,12 @@ class Task(_Task):
:param object mutable: The experiment component to connect. The object must be one of the following types:
- argparse - An argparse object for parameters.
- dict - A dictionary for parameters.
- dict - A dictionary for parameters. Note: when :meth:`Task.connect` receives a dict, it supports only keys of type `str`
- TaskParameters - A TaskParameters object.
- :class:`Model` - A model object for initial model warmup, or for model update/snapshot uploading. In practice the model should be either :class:`InputModel` or :class:`OutputModel`.
- type - A Class type, storing all class properties (excluding '_' prefixed properties).
- object - A class instance, storing all instance properties (excluding '_' prefixed properties).
.. note::
When :meth:`Task.connect` receives a dict, it supports only keys of type `str`
:param str name: A section name associated with the connected object, if 'name' is None defaults to 'General'
Currently, `name` is only supported for `dict` and `TaskParameter` objects, and should be omitted for the other supported types. (Optional)