Fix docstrings

This commit is contained in:
allegroai 2022-10-14 10:12:49 +03:00
parent 5ece83fe9f
commit a0e19d833d
4 changed files with 40 additions and 40 deletions

View File

@ -323,15 +323,15 @@ class ParameterSet(Parameter):
.. code-block:: javascript .. code-block:: javascript
[ {'opt1': 10, 'arg2': 20, 'arg2': 30}, [ {"opt1": 10, "arg2": 20, "arg2": 30},
{'opt2': 11, 'arg2': 22, 'arg2': 33}, ] {"opt2": 11, "arg2": 22, "arg2": 33} ]
Two complex combination each one sampled from a different range: Two complex combination each one sampled from a different range:
.. code-block:: javascript .. code-block:: javascript
[ {'opt1': UniformParameterRange('arg1',0,1) , 'arg2': 20}, [ {"opt1": UniformParameterRange('arg1',0,1) , "arg2": 20},
{'opt2': UniformParameterRange('arg1',11,12), 'arg2': 22},] {"opt2": UniformParameterRange('arg1',11,12), "arg2": 22},]
""" """
super(ParameterSet, self).__init__(name=None) super(ParameterSet, self).__init__(name=None)
self.values = parameter_combinations self.values = parameter_combinations

View File

@ -1703,9 +1703,9 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
.. code-block:: py .. code-block:: py
{'title': {'series': { {"title": {"series": {
'x': [0, 1 ,2], "x": [0, 1 ,2],
'y': [10, 11 ,12], "y": [10, 11 ,12]
}}} }}}
:param int max_samples: Maximum samples per series to return. Default is 0 returning all scalars. :param int max_samples: Maximum samples per series to return. Default is 0 returning all scalars.
@ -1750,17 +1750,17 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
.. code-block:: py .. code-block:: py
[{ [{
'timestamp': 1636921296370, "timestamp": 1636921296370,
'type': 'plot', "type": "plot",
'task': '0ce5e89bbe484f428e43e767f1e2bb11', "task": "0ce5e89bbe484f428e43e767f1e2bb11",
'iter': 0, "iter": 0,
'metric': 'Manual Reporting', "metric": "Manual Reporting",
'variant': 'Just a plot', "variant": "Just a plot",
'plot_str': '{"data": [{"type": "scatter", "mode": "markers", "name": null, "plot_str": "{'data': [{'type': 'scatter', 'mode': 'markers', 'name': null,
"x": [0.2620246750155817], "y": [0.2620246750155817]}]}', 'x': [0.2620246750155817], 'y': [0.2620246750155817]}]}",
'@timestamp': '2021-11-14T20:21:42.387Z', "@timestamp": "2021-11-14T20:21:42.387Z",
'worker': 'machine-ml', "worker": "machine-ml",
'plot_len': 6135, "plot_len": 6135,
},] },]
:param int max_iterations: Maximum number of historic plots (iterations from end) to return. :param int max_iterations: Maximum number of historic plots (iterations from end) to return.
:return: list: List of dicts, each one represents a single plot :return: list: List of dicts, each one represents a single plot

View File

@ -806,8 +806,8 @@ class InputModel(Model):
.. code-block:: javascript .. code-block:: javascript
{ {
'background': 0, "background": 0,
'person': 1 "person": 1
} }
:param str name: The name of the newly imported model. (Optional) :param str name: The name of the newly imported model. (Optional)
:param str project: The project name to add the model into. (Optional) :param str project: The project name to add the model into. (Optional)
@ -998,8 +998,8 @@ class InputModel(Model):
.. code-block:: javascript .. code-block:: javascript
{ {
'background': 0, "background": 0,
'person': 1 "person": 1
} }
:return: An empty model object. :return: An empty model object.
@ -1187,8 +1187,8 @@ class OutputModel(BaseModel):
.. code-block:: javascript .. code-block:: javascript
{ {
'background': 0, "background": 0,
'person': 1 "person": 1
} }
:return: The label enumeration. :return: The label enumeration.
@ -1208,8 +1208,8 @@ class OutputModel(BaseModel):
.. code-block:: javascript .. code-block:: javascript
{ {
'background': 0, "background": 0,
'person': 1 "person": 1
} }
""" """
@ -1254,8 +1254,8 @@ class OutputModel(BaseModel):
.. code-block:: javascript .. code-block:: javascript
{ {
'background': 0, "background": 0,
'person': 1 "person": 1
} }
:param str name: The name for the newly created model. (Optional) :param str name: The name for the newly created model. (Optional)
@ -1681,8 +1681,8 @@ class OutputModel(BaseModel):
.. code-block:: javascript .. code-block:: javascript
{ {
'background': 0, "background": 0,
'person': 1 "person": 1
} }
:return: :return:

View File

@ -377,7 +377,7 @@ class Task(_Task):
.. code-block:: py .. code-block:: py
auto_connect_arg_parser={'do_not_include_me': False, } auto_connect_arg_parser={"do_not_include_me": False, }
.. code-block:: py .. code-block:: py
@ -1633,8 +1633,8 @@ class Task(_Task):
.. code-block:: javascript .. code-block:: javascript
{ {
'background': 0, "background": 0,
'person': 1 "person": 1
} }
:return: The label enumeration dictionary (JSON). :return: The label enumeration dictionary (JSON).
@ -2053,8 +2053,8 @@ class Task(_Task):
.. code-block:: javascript .. code-block:: javascript
{ {
'background': 0, "background": 0,
'person': 1 "person": 1
} }
""" """
super(Task, self).set_model_label_enumeration(enumeration=enumeration) super(Task, self).set_model_label_enumeration(enumeration=enumeration)
@ -2103,11 +2103,11 @@ class Task(_Task):
.. code-block:: javascript .. code-block:: javascript
{ {
'title': { "title": {
'series': { "series": {
'last': 0.5, "last": 0.5,
'min': 0.1, "min": 0.1,
'max': 0.9 "max": 0.9
} }
} }
} }