Search is not available for this dataset
identifier
stringlengths
1
155
parameters
stringlengths
2
6.09k
docstring
stringlengths
11
63.4k
docstring_summary
stringlengths
0
63.4k
function
stringlengths
29
99.8k
function_tokens
list
start_point
list
end_point
list
language
stringclasses
1 value
docstring_language
stringlengths
2
7
docstring_language_predictions
stringlengths
18
23
is_langid_reliable
stringclasses
2 values
ColorBar.tickformatstopdefaults
(self)
When used in a template (as layout.template.data.heatmapgl.colo rbar.tickformatstopdefaults), sets the default property values to use for elements of heatmapgl.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be specif...
When used in a template (as layout.template.data.heatmapgl.colo rbar.tickformatstopdefaults), sets the default property values to use for elements of heatmapgl.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be specif...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.heatmapgl.colo rbar.tickformatstopdefaults), sets the default property values to use for elements of heatmapgl.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 803, 4 ]
[ 821, 45 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticklen
(self)
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ticklen"]
[ "def", "ticklen", "(", "self", ")", ":", "return", "self", "[", "\"ticklen\"", "]" ]
[ 830, 4 ]
[ 841, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickmode
(self)
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
def tickmode(self): """ Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick`...
[ "def", "tickmode", "(", "self", ")", ":", "return", "self", "[", "\"tickmode\"", "]" ]
[ 850, 4 ]
[ 868, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickprefix
(self)
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string
def tickprefix(self): """ Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["tickprefix"]
[ "def", "tickprefix", "(", "self", ")", ":", "return", "self", "[", "\"tickprefix\"", "]" ]
[ 877, 4 ]
[ 889, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticks
(self)
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def ticks(self): """ Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the follo...
[ "def", "ticks", "(", "self", ")", ":", "return", "self", "[", "\"ticks\"", "]" ]
[ 898, 4 ]
[ 912, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticksuffix
(self)
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string
def ticksuffix(self): """ Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["ticksuffix"]
[ "def", "ticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"ticksuffix\"", "]" ]
[ 921, 4 ]
[ 933, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktext
(self)
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns -------...
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ticktext(self): """ Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series ...
[ "def", "ticktext", "(", "self", ")", ":", "return", "self", "[", "\"ticktext\"", "]" ]
[ 942, 4 ]
[ 955, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktextsrc
(self)
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ticktextsrc(self): """ Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ticktextsrc"]
[ "def", "ticktextsrc", "(", "self", ")", ":", "return", "self", "[", "\"ticktextsrc\"", "]" ]
[ 964, 4 ]
[ 975, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvals
(self)
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.nda...
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def tickvals(self): """ Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
[ "def", "tickvals", "(", "self", ")", ":", "return", "self", "[", "\"tickvals\"", "]" ]
[ 984, 4 ]
[ 996, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvalssrc
(self)
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def tickvalssrc(self): """ Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["tickvalssrc"]
[ "def", "tickvalssrc", "(", "self", ")", ":", "return", "self", "[", "\"tickvalssrc\"", "]" ]
[ 1005, 4 ]
[ 1016, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickwidth
(self)
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def tickwidth(self): """ Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["tickwidth"]
[ "def", "tickwidth", "(", "self", ")", ":", "return", "self", "[", "\"tickwidth\"", "]" ]
[ 1025, 4 ]
[ 1036, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Suppo...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1045, 4 ]
[ 1075, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use heatmapgl.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instanc...
Deprecated: Please use heatmapgl.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instanc...
def titlefont(self): """ Deprecated: Please use heatmapgl.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be spec...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1084, 4 ]
[ 1123, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use heatmapgl.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that ma...
Deprecated: Please use heatmapgl.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that ma...
def titleside(self): """ Deprecated: Please use heatmapgl.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' pr...
[ "def", "titleside", "(", "self", ")", ":", "return", "self", "[", "\"titleside\"", "]" ]
[ 1132, 4 ]
[ 1147, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.x
(self)
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def x(self): """ Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1156, 4 ]
[ 1167, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.xanchor
(self)
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
def xanchor(self): """ Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration va...
[ "def", "xanchor", "(", "self", ")", ":", "return", "self", "[", "\"xanchor\"", "]" ]
[ 1176, 4 ]
[ 1190, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.xpad
(self)
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def xpad(self): """ Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["xpad"]
[ "def", "xpad", "(", "self", ")", ":", "return", "self", "[", "\"xpad\"", "]" ]
[ 1199, 4 ]
[ 1210, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.y
(self)
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def y(self): """ Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1219, 4 ]
[ 1230, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.yanchor
(self)
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
def yanchor(self): """ Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration value...
[ "def", "yanchor", "(", "self", ")", ":", "return", "self", "[", "\"yanchor\"", "]" ]
[ 1239, 4 ]
[ 1253, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.ypad
(self)
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ypad(self): """ Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ypad"]
[ "def", "ypad", "(", "self", ")", ":", "return", "self", "[", "\"ypad\"", "]" ]
[ 1262, 4 ]
[ 1273, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.__init__
( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, showexpo...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.heatmapgl.ColorBar` bgcolor Sets the color of padded area. b...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.heatmapgl.ColorBar` bgcolor Sets the color of padded area. b...
def __init__( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "bgcolor", "=", "None", ",", "bordercolor", "=", "None", ",", "borderwidth", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "len", "=", "None", ",", "lenm...
[ 1480, 4 ]
[ 1939, 34 ]
python
en
['en', 'error', 'th']
False
Font.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 64, 28 ]
python
en
['en', 'error', 'th']
False
Font.colorsrc
(self)
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def colorsrc(self): """ Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["colorsrc"]
[ "def", "colorsrc", "(", "self", ")", ":", "return", "self", "[", "\"colorsrc\"", "]" ]
[ 73, 4 ]
[ 84, 31 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 93, 4 ]
[ 116, 29 ]
python
en
['en', 'error', 'th']
False
Font.familysrc
(self)
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def familysrc(self): """ Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["familysrc"]
[ "def", "familysrc", "(", "self", ")", ":", "return", "self", "[", "\"familysrc\"", "]" ]
[ 125, 4 ]
[ 136, 32 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["size"...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 145, 4 ]
[ 155, 27 ]
python
en
['en', 'error', 'th']
False
Font.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 164, 4 ]
[ 175, 30 ]
python
en
['en', 'error', 'th']
False
Font.__init__
( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs )
Construct a new Font object Sets the font used in hover labels. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.pie.hoverlabel.Font` color col...
Construct a new Font object Sets the font used in hover labels.
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Font object Sets the font used in hover labels. Parameters ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "familysrc", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kw...
[ 215, 4 ]
[ 329, 34 ]
python
en
['en', 'error', 'th']
False
create_groundtruth_database
(dataset_class_name, data_path, info_prefix, info_path=None, mask_anno_path=None, used_classes=None, database_save_path=None, ...
Given the raw data, generate the ground truth database. Args: dataset_class_name (str): Name of the input dataset. data_path (str): Path of the data. info_prefix (str): Prefix of the info file. info_path (str): Path of the info file. Default: None. mask_anno_path...
Given the raw data, generate the ground truth database.
def create_groundtruth_database(dataset_class_name, data_path, info_prefix, info_path=None, mask_anno_path=None, used_classes=None, ...
[ "def", "create_groundtruth_database", "(", "dataset_class_name", ",", "data_path", ",", "info_prefix", ",", "info_path", "=", "None", ",", "mask_anno_path", "=", "None", ",", "used_classes", "=", "None", ",", "database_save_path", "=", "None", ",", "db_info_save_pat...
[ 107, 0 ]
[ 336, 36 ]
python
en
['en', 'en', 'en']
True
Ternary.aaxis
(self)
The 'aaxis' property is an instance of Aaxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Aaxis` - A dict of string/value properties that will be passed to the Aaxis constructor Supported dict properties: ...
The 'aaxis' property is an instance of Aaxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Aaxis` - A dict of string/value properties that will be passed to the Aaxis constructor Supported dict properties: ...
def aaxis(self): """ The 'aaxis' property is an instance of Aaxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Aaxis` - A dict of string/value properties that will be passed to the Aaxis constructor Supported...
[ "def", "aaxis", "(", "self", ")", ":", "return", "self", "[", "\"aaxis\"", "]" ]
[ 15, 4 ]
[ 236, 28 ]
python
en
['en', 'error', 'th']
False
Ternary.baxis
(self)
The 'baxis' property is an instance of Baxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Baxis` - A dict of string/value properties that will be passed to the Baxis constructor Supported dict properties: ...
The 'baxis' property is an instance of Baxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Baxis` - A dict of string/value properties that will be passed to the Baxis constructor Supported dict properties: ...
def baxis(self): """ The 'baxis' property is an instance of Baxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Baxis` - A dict of string/value properties that will be passed to the Baxis constructor Supported...
[ "def", "baxis", "(", "self", ")", ":", "return", "self", "[", "\"baxis\"", "]" ]
[ 245, 4 ]
[ 466, 28 ]
python
en
['en', 'error', 'th']
False
Ternary.bgcolor
(self)
Set the background color of the subplot The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%...
Set the background color of the subplot The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%...
def bgcolor(self): """ Set the background color of the subplot The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 475, 4 ]
[ 525, 30 ]
python
en
['en', 'error', 'th']
False
Ternary.caxis
(self)
The 'caxis' property is an instance of Caxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Caxis` - A dict of string/value properties that will be passed to the Caxis constructor Supported dict properties: ...
The 'caxis' property is an instance of Caxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Caxis` - A dict of string/value properties that will be passed to the Caxis constructor Supported dict properties: ...
def caxis(self): """ The 'caxis' property is an instance of Caxis that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Caxis` - A dict of string/value properties that will be passed to the Caxis constructor Supported...
[ "def", "caxis", "(", "self", ")", ":", "return", "self", "[", "\"caxis\"", "]" ]
[ 534, 4 ]
[ 755, 28 ]
python
en
['en', 'error', 'th']
False
Ternary.domain
(self)
The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supported dict properties: ...
The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supported dict properties: ...
def domain(self): """ The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supp...
[ "def", "domain", "(", "self", ")", ":", "return", "self", "[", "\"domain\"", "]" ]
[ 764, 4 ]
[ 792, 29 ]
python
en
['en', 'error', 'th']
False
Ternary.sum
(self)
The number each triplet should sum to, and the maximum range of each axis The 'sum' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
The number each triplet should sum to, and the maximum range of each axis The 'sum' property is a number and may be specified as: - An int or float in the interval [0, inf]
def sum(self): """ The number each triplet should sum to, and the maximum range of each axis The 'sum' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return sel...
[ "def", "sum", "(", "self", ")", ":", "return", "self", "[", "\"sum\"", "]" ]
[ 801, 4 ]
[ 813, 26 ]
python
en
['en', 'error', 'th']
False
Ternary.uirevision
(self)
Controls persistence of user-driven changes in axis `min` and `title`, if not overridden in the individual axes. Defaults to `layout.uirevision`. The 'uirevision' property accepts values of any type Returns ------- Any
Controls persistence of user-driven changes in axis `min` and `title`, if not overridden in the individual axes. Defaults to `layout.uirevision`. The 'uirevision' property accepts values of any type
def uirevision(self): """ Controls persistence of user-driven changes in axis `min` and `title`, if not overridden in the individual axes. Defaults to `layout.uirevision`. The 'uirevision' property accepts values of any type Returns ------- Any ...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 822, 4 ]
[ 834, 33 ]
python
en
['en', 'error', 'th']
False
Ternary.__init__
( self, arg=None, aaxis=None, baxis=None, bgcolor=None, caxis=None, domain=None, sum=None, uirevision=None, **kwargs )
Construct a new Ternary object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.Ternary` aaxis :class:`plotly.graph_objects.layout.ternary.Aax...
Construct a new Ternary object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.Ternary` aaxis :class:`plotly.graph_objects.layout.ternary.Aax...
def __init__( self, arg=None, aaxis=None, baxis=None, bgcolor=None, caxis=None, domain=None, sum=None, uirevision=None, **kwargs ): """ Construct a new Ternary object Parameters ---------- ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "aaxis", "=", "None", ",", "baxis", "=", "None", ",", "bgcolor", "=", "None", ",", "caxis", "=", "None", ",", "domain", "=", "None", ",", "sum", "=", "None", ",", "uirevision", "=", "N...
[ 868, 4 ]
[ 979, 34 ]
python
en
['en', 'error', 'th']
False
BasicBlock.norm1
(self)
nn.Module: normalization layer after the first convolution layer
nn.Module: normalization layer after the first convolution layer
def norm1(self): """nn.Module: normalization layer after the first convolution layer""" return getattr(self, self.norm1_name)
[ "def", "norm1", "(", "self", ")", ":", "return", "getattr", "(", "self", ",", "self", ".", "norm1_name", ")" ]
[ 55, 4 ]
[ 57, 45 ]
python
en
['en', 'en', 'en']
True
BasicBlock.norm2
(self)
nn.Module: normalization layer after the second convolution layer
nn.Module: normalization layer after the second convolution layer
def norm2(self): """nn.Module: normalization layer after the second convolution layer""" return getattr(self, self.norm2_name)
[ "def", "norm2", "(", "self", ")", ":", "return", "getattr", "(", "self", ",", "self", ".", "norm2_name", ")" ]
[ 60, 4 ]
[ 62, 45 ]
python
en
['en', 'en', 'en']
True
BasicBlock.forward
(self, x)
Forward function.
Forward function.
def forward(self, x): """Forward function.""" def _inner_forward(x): identity = x out = self.conv1(x) out = self.norm1(out) out = self.relu(out) out = self.conv2(out) out = self.norm2(out) if self.downsample is not N...
[ "def", "forward", "(", "self", ",", "x", ")", ":", "def", "_inner_forward", "(", "x", ")", ":", "identity", "=", "x", "out", "=", "self", ".", "conv1", "(", "x", ")", "out", "=", "self", ".", "norm1", "(", "out", ")", "out", "=", "self", ".", ...
[ 64, 4 ]
[ 91, 18 ]
python
en
['en', 'cy', 'en']
False
Bottleneck.__init__
(self, inplanes, planes, stride=1, dilation=1, downsample=None, style='pytorch', with_cp=False, conv_cfg=None, norm_cfg=dict(type='BN'), dcn=None, ...
Bottleneck block for ResNet. If style is "pytorch", the stride-two layer is the 3x3 conv layer, if it is "caffe", the stride-two layer is the first 1x1 conv layer.
Bottleneck block for ResNet.
def __init__(self, inplanes, planes, stride=1, dilation=1, downsample=None, style='pytorch', with_cp=False, conv_cfg=None, norm_cfg=dict(type='BN'), d...
[ "def", "__init__", "(", "self", ",", "inplanes", ",", "planes", ",", "stride", "=", "1", ",", "dilation", "=", "1", ",", "downsample", "=", "None", ",", "style", "=", "'pytorch'", ",", "with_cp", "=", "False", ",", "conv_cfg", "=", "None", ",", "norm...
[ 97, 4 ]
[ 213, 66 ]
python
en
['en', 'no', 'en']
True
Bottleneck.make_block_plugins
(self, in_channels, plugins)
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg to build. Returns: list[str]: List of the names of plugin.
make plugins for block.
def make_block_plugins(self, in_channels, plugins): """make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg to build. Returns: list[str]: List of the names of plugin. """ assert ...
[ "def", "make_block_plugins", "(", "self", ",", "in_channels", ",", "plugins", ")", ":", "assert", "isinstance", "(", "plugins", ",", "list", ")", "plugin_names", "=", "[", "]", "for", "plugin", "in", "plugins", ":", "plugin", "=", "plugin", ".", "copy", ...
[ 215, 4 ]
[ 236, 27 ]
python
en
['en', 'id', 'en']
True
Bottleneck.norm1
(self)
nn.Module: normalization layer after the first convolution layer
nn.Module: normalization layer after the first convolution layer
def norm1(self): """nn.Module: normalization layer after the first convolution layer""" return getattr(self, self.norm1_name)
[ "def", "norm1", "(", "self", ")", ":", "return", "getattr", "(", "self", ",", "self", ".", "norm1_name", ")" ]
[ 245, 4 ]
[ 247, 45 ]
python
en
['en', 'en', 'en']
True
Bottleneck.norm2
(self)
nn.Module: normalization layer after the second convolution layer
nn.Module: normalization layer after the second convolution layer
def norm2(self): """nn.Module: normalization layer after the second convolution layer""" return getattr(self, self.norm2_name)
[ "def", "norm2", "(", "self", ")", ":", "return", "getattr", "(", "self", ",", "self", ".", "norm2_name", ")" ]
[ 250, 4 ]
[ 252, 45 ]
python
en
['en', 'en', 'en']
True
Bottleneck.norm3
(self)
nn.Module: normalization layer after the third convolution layer
nn.Module: normalization layer after the third convolution layer
def norm3(self): """nn.Module: normalization layer after the third convolution layer""" return getattr(self, self.norm3_name)
[ "def", "norm3", "(", "self", ")", ":", "return", "getattr", "(", "self", ",", "self", ".", "norm3_name", ")" ]
[ 255, 4 ]
[ 257, 45 ]
python
en
['en', 'en', 'en']
True
Bottleneck.forward
(self, x)
Forward function.
Forward function.
def forward(self, x): """Forward function.""" def _inner_forward(x): identity = x out = self.conv1(x) out = self.norm1(out) out = self.relu(out) if self.with_plugins: out = self.forward_plugin(out, self.after_conv1_plugin_nam...
[ "def", "forward", "(", "self", ",", "x", ")", ":", "def", "_inner_forward", "(", "x", ")", ":", "identity", "=", "x", "out", "=", "self", ".", "conv1", "(", "x", ")", "out", "=", "self", ".", "norm1", "(", "out", ")", "out", "=", "self", ".", ...
[ 259, 4 ]
[ 299, 18 ]
python
en
['en', 'cy', 'en']
False
TensorboardLogger.add_cmdline_args
( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None )
Add tensorboard CLI args.
Add tensorboard CLI args.
def add_cmdline_args( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None ) -> ParlaiParser: """ Add tensorboard CLI args. """ logger = parser.add_argument_group('Tensorboard Arguments') logger.add_argument( '-tblog', '--tensorboard-lo...
[ "def", "add_cmdline_args", "(", "cls", ",", "parser", ":", "ParlaiParser", ",", "partial_opt", ":", "Optional", "[", "Opt", "]", "=", "None", ")", "->", "ParlaiParser", ":", "logger", "=", "parser", ".", "add_argument_group", "(", "'Tensorboard Arguments'", ")...
[ 32, 4 ]
[ 55, 21 ]
python
en
['en', 'error', 'th']
False
TensorboardLogger.log_metrics
(self, setting, step, report)
Add all metrics from tensorboard_metrics opt key. :param setting: One of train/valid/test. Will be used as the title for the graph. :param step: Number of parleys :param report: The report to log
Add all metrics from tensorboard_metrics opt key.
def log_metrics(self, setting, step, report): """ Add all metrics from tensorboard_metrics opt key. :param setting: One of train/valid/test. Will be used as the title for the graph. :param step: Number of parleys :param report: The report to l...
[ "def", "log_metrics", "(", "self", ",", "setting", ",", "step", ",", "report", ")", ":", "for", "k", ",", "v", "in", "report", ".", "items", "(", ")", ":", "if", "isinstance", "(", "v", ",", "numbers", ".", "Number", ")", ":", "self", ".", "write...
[ 75, 4 ]
[ 92, 61 ]
python
en
['en', 'error', 'th']
False
Tickfont.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Tickfont.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Tickfont.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Tickfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.contour.colorbar.Tickfont` color ...
Construct a new Tickfont object Sets the color bar's tick label font
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an insta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.align
(self)
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
def align(self): """ Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeratio...
[ "def", "align", "(", "self", ")", ":", "return", "self", "[", "\"align\"", "]" ]
[ 25, 4 ]
[ 40, 28 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.alignsrc
(self)
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def alignsrc(self): """ Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["alignsrc"]
[ "def", "alignsrc", "(", "self", ")", ":", "return", "self", "[", "\"alignsrc\"", "]" ]
[ 49, 4 ]
[ 60, 31 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolor
(self)
Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
def bgcolor(self): """ Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 69, 4 ]
[ 120, 30 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bgcolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bgcolorsrc"]
[ "def", "bgcolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bgcolorsrc\"", "]" ]
[ 129, 4 ]
[ 140, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolor
(self)
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
def bordercolor(self): """ Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 149, 4 ]
[ 200, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bordercolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bo...
[ "def", "bordercolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bordercolorsrc\"", "]" ]
[ 209, 4 ]
[ 221, 37 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.font
(self)
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.image.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.image.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.image.hoverlabel.Font` - A dict of string/value properties that will be passed to t...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 230, 4 ]
[ 277, 27 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelength
(self)
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
def namelength(self): """ Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than ...
[ "def", "namelength", "(", "self", ")", ":", "return", "self", "[", "\"namelength\"", "]" ]
[ 286, 4 ]
[ 304, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelengthsrc
(self)
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def namelengthsrc(self): """ Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["name...
[ "def", "namelengthsrc", "(", "self", ")", ":", "return", "self", "[", "\"namelengthsrc\"", "]" ]
[ 313, 4 ]
[ 325, 36 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.__init__
( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs )
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.image.Hoverlabel` align Sets the horizontal alignment of the text ...
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.image.Hoverlabel` align Sets the horizontal alignment of the text ...
def __init__( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs ): """ Construct a n...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "align", "=", "None", ",", "alignsrc", "=", "None", ",", "bgcolor", "=", "None", ",", "bgcolorsrc", "=", "None", ",", "bordercolor", "=", "None", ",", "bordercolorsrc", "=", "None", ",", "...
[ 370, 4 ]
[ 502, 34 ]
python
en
['en', 'error', 'th']
False
detect
(opt)
Checks a task for offensive language.
Checks a task for offensive language.
def detect(opt): """ Checks a task for offensive language. """ # Create model and assign it to the specified task agent = create_agent(opt, requireModelExists=True) world = create_task(opt, agent) agent.opt.log() if opt['safety'] == 'string_matcher' or opt['safety'] == 'all': off...
[ "def", "detect", "(", "opt", ")", ":", "# Create model and assign it to the specified task", "agent", "=", "create_agent", "(", "opt", ",", "requireModelExists", "=", "True", ")", "world", "=", "create_task", "(", "opt", ",", "agent", ")", "agent", ".", "opt", ...
[ 42, 0 ]
[ 118, 31 ]
python
en
['en', 'error', 'th']
False
Line.color
(self)
Sets the line color of all increasing values. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,...
Sets the line color of all increasing values. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,...
def color(self): """ Sets the line color of all increasing values. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An h...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Line.width
(self)
Sets the line width of all increasing values. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the line width of all increasing values. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf]
def width(self): """ Sets the line width of all increasing values. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["width"]
[ "def", "width", "(", "self", ")", ":", "return", "self", "[", "\"width\"", "]" ]
[ 74, 4 ]
[ 85, 28 ]
python
en
['en', 'error', 'th']
False
Line.__init__
(self, arg=None, color=None, width=None, **kwargs)
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.incr easing.marker.Line` color Sets the line color of all incr...
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.incr easing.marker.Line` color Sets the line color of all incr...
def __init__(self, arg=None, color=None, width=None, **kwargs): """ Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.incr ea...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "width", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Line", ",", "self", ")", ".", "__init__", "(", "\"line\"", ")", "if", "\"_parent\"", ...
[ 102, 4 ]
[ 165, 34 ]
python
en
['en', 'error', 'th']
False
HuggingFaceDictionaryAgent.get_tokenizer
(self, opt)
Instantiate the HuggingFace tokenizer for your model.
Instantiate the HuggingFace tokenizer for your model.
def get_tokenizer(self, opt): """ Instantiate the HuggingFace tokenizer for your model. """ pass
[ "def", "get_tokenizer", "(", "self", ",", "opt", ")", ":", "pass" ]
[ 44, 4 ]
[ 48, 12 ]
python
en
['en', 'error', 'th']
False
HuggingFaceDictionaryAgent.override_special_tokens
(opt)
Override the special tokens for your tokenizer.
Override the special tokens for your tokenizer.
def override_special_tokens(opt): """ Override the special tokens for your tokenizer. """ pass
[ "def", "override_special_tokens", "(", "opt", ")", ":", "pass" ]
[ 51, 4 ]
[ 55, 12 ]
python
en
['en', 'error', 'th']
False
HuggingFaceDictionaryAgent.act
(self)
Dummy override.
Dummy override.
def act(self): """ Dummy override. """ return {}
[ "def", "act", "(", "self", ")", ":", "return", "{", "}" ]
[ 67, 4 ]
[ 71, 17 ]
python
en
['en', 'error', 'th']
False
Gpt2DictionaryAgent.is_prebuilt
(self)
Indicates whether the dictionary is fixed, and does not require building.
Indicates whether the dictionary is fixed, and does not require building.
def is_prebuilt(self): """ Indicates whether the dictionary is fixed, and does not require building. """ return True
[ "def", "is_prebuilt", "(", "self", ")", ":", "return", "True" ]
[ 75, 4 ]
[ 79, 19 ]
python
en
['en', 'error', 'th']
False
Gpt2DictionaryAgent.get_tokenizer
(self, opt)
Instantiate tokenizer.
Instantiate tokenizer.
def get_tokenizer(self, opt): """ Instantiate tokenizer. """ model_sz = opt["gpt2_size"] if model_sz == "small": model_key = "gpt2" elif model_sz == "distilgpt2": model_key = "distilgpt2" else: model_key = f"gpt2-{model_sz}" ...
[ "def", "get_tokenizer", "(", "self", ",", "opt", ")", ":", "model_sz", "=", "opt", "[", "\"gpt2_size\"", "]", "if", "model_sz", "==", "\"small\"", ":", "model_key", "=", "\"gpt2\"", "elif", "model_sz", "==", "\"distilgpt2\"", ":", "model_key", "=", "\"distil...
[ 81, 4 ]
[ 102, 53 ]
python
en
['en', 'error', 'th']
False
Gpt2DictionaryAgent.add_additional_special_tokens
(self, additional_special_tokens: List[str])
Add additional special tokens to the dictionary.
Add additional special tokens to the dictionary.
def add_additional_special_tokens(self, additional_special_tokens: List[str]): """ Add additional special tokens to the dictionary. """ self.additional_special_tokens = additional_special_tokens self.tokenizer.add_special_tokens( {'additional_special_tokens': addition...
[ "def", "add_additional_special_tokens", "(", "self", ",", "additional_special_tokens", ":", "List", "[", "str", "]", ")", ":", "self", ".", "additional_special_tokens", "=", "additional_special_tokens", "self", ".", "tokenizer", ".", "add_special_tokens", "(", "{", ...
[ 104, 4 ]
[ 113, 31 ]
python
en
['en', 'error', 'th']
False
DialoGPTDictionaryAgent.get_tokenizer
(self, opt)
Instantiate tokenizer.
Instantiate tokenizer.
def get_tokenizer(self, opt): """ Instantiate tokenizer. """ model_sz = opt["gpt2_size"] fle_key = f"microsoft/DialoGPT-{model_sz}" return GPT2Tokenizer.from_pretrained(fle_key)
[ "def", "get_tokenizer", "(", "self", ",", "opt", ")", ":", "model_sz", "=", "opt", "[", "\"gpt2_size\"", "]", "fle_key", "=", "f\"microsoft/DialoGPT-{model_sz}\"", "return", "GPT2Tokenizer", ".", "from_pretrained", "(", "fle_key", ")" ]
[ 146, 4 ]
[ 152, 53 ]
python
en
['en', 'error', 'th']
False
run_task
(cfg: DictConfig, task_directory: str)
Run task, given configuration.
Run task, given configuration.
def run_task(cfg: DictConfig, task_directory: str): """ Run task, given configuration. """ frontend_source_dir = os.path.join(task_directory, "webapp") frontend_build_dir = os.path.join(frontend_source_dir, "build") _ = frontend_build_dir # Unused at the moment db, cfg = load_db_and_proce...
[ "def", "run_task", "(", "cfg", ":", "DictConfig", ",", "task_directory", ":", "str", ")", ":", "frontend_source_dir", "=", "os", ".", "path", ".", "join", "(", "task_directory", ",", "\"webapp\"", ")", "frontend_build_dir", "=", "os", ".", "path", ".", "jo...
[ 20, 0 ]
[ 54, 5 ]
python
en
['en', 'error', 'th']
False
RequestContext.__init__
( self, *, base_context: InjectionContext = None, settings: Mapping[str, object] = None )
Initialize an instance of RequestContext.
Initialize an instance of RequestContext.
def __init__( self, *, base_context: InjectionContext = None, settings: Mapping[str, object] = None ): """Initialize an instance of RequestContext.""" super().__init__(settings=settings) if base_context: self._injector = base_context._injector ...
[ "def", "__init__", "(", "self", ",", "*", ",", "base_context", ":", "InjectionContext", "=", "None", ",", "settings", ":", "Mapping", "[", "str", ",", "object", "]", "=", "None", ")", ":", "super", "(", ")", ".", "__init__", "(", "settings", "=", "se...
[ 19, 4 ]
[ 35, 36 ]
python
en
['en', 'en', 'en']
True
RequestContext.connection_ready
(self)
Accessor for the flag indicating an active connection with the sender. Returns: True if the connection is active, else False
Accessor for the flag indicating an active connection with the sender.
def connection_ready(self) -> bool: """ Accessor for the flag indicating an active connection with the sender. Returns: True if the connection is active, else False """ return self._connection_ready
[ "def", "connection_ready", "(", "self", ")", "->", "bool", ":", "return", "self", ".", "_connection_ready" ]
[ 38, 4 ]
[ 46, 37 ]
python
en
['en', 'error', 'th']
False
RequestContext.connection_ready
(self, active: bool)
Setter for the flag indicating an active connection with the sender. Args: active: The new active value
Setter for the flag indicating an active connection with the sender.
def connection_ready(self, active: bool): """ Setter for the flag indicating an active connection with the sender. Args: active: The new active value """ self._connection_ready = active
[ "def", "connection_ready", "(", "self", ",", "active", ":", "bool", ")", ":", "self", ".", "_connection_ready", "=", "active" ]
[ 49, 4 ]
[ 57, 39 ]
python
en
['en', 'error', 'th']
False
RequestContext.connection_record
(self)
Accessor for the related connection record.
Accessor for the related connection record.
def connection_record(self) -> ConnectionRecord: """Accessor for the related connection record.""" return self._connection_record
[ "def", "connection_record", "(", "self", ")", "->", "ConnectionRecord", ":", "return", "self", ".", "_connection_record" ]
[ 60, 4 ]
[ 62, 38 ]
python
en
['en', 'en', 'en']
True
RequestContext.connection_record
(self, record: ConnectionRecord)
Setter for the related connection record. :param record: ConnectionRecord:
Setter for the related connection record.
def connection_record(self, record: ConnectionRecord): """Setter for the related connection record. :param record: ConnectionRecord: """ self._connection_record = record
[ "def", "connection_record", "(", "self", ",", "record", ":", "ConnectionRecord", ")", ":", "self", ".", "_connection_record", "=", "record" ]
[ 65, 4 ]
[ 71, 40 ]
python
en
['en', 'en', 'en']
True
RequestContext.default_endpoint
(self)
Accessor for the default agent endpoint (from agent config). Returns: The default agent endpoint
Accessor for the default agent endpoint (from agent config).
def default_endpoint(self) -> str: """ Accessor for the default agent endpoint (from agent config). Returns: The default agent endpoint """ return self.settings["default_endpoint"]
[ "def", "default_endpoint", "(", "self", ")", "->", "str", ":", "return", "self", ".", "settings", "[", "\"default_endpoint\"", "]" ]
[ 74, 4 ]
[ 82, 48 ]
python
en
['en', 'error', 'th']
False
RequestContext.default_endpoint
(self, endpoint: str)
Setter for the default agent endpoint (from agent config). Args: endpoint: The new default endpoint
Setter for the default agent endpoint (from agent config).
def default_endpoint(self, endpoint: str): """ Setter for the default agent endpoint (from agent config). Args: endpoint: The new default endpoint """ self.settings["default_endpoint"] = endpoint
[ "def", "default_endpoint", "(", "self", ",", "endpoint", ":", "str", ")", ":", "self", ".", "settings", "[", "\"default_endpoint\"", "]", "=", "endpoint" ]
[ 85, 4 ]
[ 93, 52 ]
python
en
['en', 'error', 'th']
False
RequestContext.default_label
(self)
Accessor for the default agent label (from agent config). Returns: The default label
Accessor for the default agent label (from agent config).
def default_label(self) -> str: """ Accessor for the default agent label (from agent config). Returns: The default label """ return self.settings["default_label"]
[ "def", "default_label", "(", "self", ")", "->", "str", ":", "return", "self", ".", "settings", "[", "\"default_label\"", "]" ]
[ 96, 4 ]
[ 104, 45 ]
python
en
['en', 'error', 'th']
False
RequestContext.default_label
(self, label: str)
Setter for the default agent label (from agent config). Args: label: The new default label
Setter for the default agent label (from agent config).
def default_label(self, label: str): """ Setter for the default agent label (from agent config). Args: label: The new default label """ self.settings["default_label"] = label
[ "def", "default_label", "(", "self", ",", "label", ":", "str", ")", ":", "self", ".", "settings", "[", "\"default_label\"", "]", "=", "label" ]
[ 107, 4 ]
[ 115, 46 ]
python
en
['en', 'error', 'th']
False
RequestContext.message
(self)
Accessor for the deserialized message instance. Returns: This context's agent message
Accessor for the deserialized message instance.
def message(self) -> AgentMessage: """ Accessor for the deserialized message instance. Returns: This context's agent message """ return self._message
[ "def", "message", "(", "self", ")", "->", "AgentMessage", ":", "return", "self", ".", "_message" ]
[ 118, 4 ]
[ 126, 28 ]
python
en
['en', 'error', 'th']
False
RequestContext.message
(self, msg: AgentMessage)
Setter for the deserialized message instance. Args: msg: This context's new agent message
Setter for the deserialized message instance.
def message(self, msg: AgentMessage): """ Setter for the deserialized message instance. Args: msg: This context's new agent message """ self._message = msg
[ "def", "message", "(", "self", ",", "msg", ":", "AgentMessage", ")", ":", "self", ".", "_message", "=", "msg" ]
[ 129, 4 ]
[ 136, 27 ]
python
en
['en', 'error', 'th']
False
RequestContext.message_receipt
(self)
Accessor for the message receipt information. Returns: This context's message receipt information
Accessor for the message receipt information.
def message_receipt(self) -> MessageReceipt: """ Accessor for the message receipt information. Returns: This context's message receipt information """ return self._message_receipt
[ "def", "message_receipt", "(", "self", ")", "->", "MessageReceipt", ":", "return", "self", ".", "_message_receipt" ]
[ 139, 4 ]
[ 147, 36 ]
python
en
['en', 'error', 'th']
False
RequestContext.message_receipt
(self, receipt: MessageReceipt)
Setter for the message receipt information. Args: msg: This context's new message receipt information
Setter for the message receipt information.
def message_receipt(self, receipt: MessageReceipt): """ Setter for the message receipt information. Args: msg: This context's new message receipt information """ self._message_receipt = receipt
[ "def", "message_receipt", "(", "self", ",", "receipt", ":", "MessageReceipt", ")", ":", "self", ".", "_message_receipt", "=", "receipt" ]
[ 150, 4 ]
[ 157, 39 ]
python
en
['en', 'error', 'th']
False
RequestContext.__repr__
(self)
Provide a human readable representation of this object. Returns: A human readable representation of this object
Provide a human readable representation of this object.
def __repr__(self) -> str: """ Provide a human readable representation of this object. Returns: A human readable representation of this object """ skip = () items = ( "{}={}".format(k, repr(v)) for k, v in self.__dict__.items() ...
[ "def", "__repr__", "(", "self", ")", "->", "str", ":", "skip", "=", "(", ")", "items", "=", "(", "\"{}={}\"", ".", "format", "(", "k", ",", "repr", "(", "v", ")", ")", "for", "k", ",", "v", "in", "self", ".", "__dict__", ".", "items", "(", ")...
[ 159, 4 ]
[ 173, 75 ]
python
en
['en', 'error', 'th']
False
RequestContext.copy
(self)
Produce a copy of the request context instance.
Produce a copy of the request context instance.
def copy(self) -> "RequestContext": """Produce a copy of the request context instance.""" return super().copy()
[ "def", "copy", "(", "self", ")", "->", "\"RequestContext\"", ":", "return", "super", "(", ")", ".", "copy", "(", ")" ]
[ 175, 4 ]
[ 177, 29 ]
python
en
['en', 'en', 'en']
True
AcuteEvalRunner.__init__
( self, task_run: "TaskRun", args: DictConfig, shared_state: SharedTaskState )
Initialize the AcuteEvaluator. The following object attributes are used in running ACUTE Eval: ``onboarding_tasks``: A list of ALL available _onboarding_ comparison tasks ``desired_tasks``: A list of ALL available comparison tasks ``task_queue``: A queue of REMAINING tasks, ...
Initialize the AcuteEvaluator.
def __init__( self, task_run: "TaskRun", args: DictConfig, shared_state: SharedTaskState ): """ Initialize the AcuteEvaluator. The following object attributes are used in running ACUTE Eval: ``onboarding_tasks``: A list of ALL available _onboarding_ comparison tasks ...
[ "def", "__init__", "(", "self", ",", "task_run", ":", "\"TaskRun\"", ",", "args", ":", "DictConfig", ",", "shared_state", ":", "SharedTaskState", ")", ":", "super", "(", ")", ".", "__init__", "(", "task_run", ",", "args", ",", "shared_state", ")", "random"...
[ 43, 4 ]
[ 83, 32 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner._get_worker_data
(self, worker_id: str)
Return worker data if present, else a default dict.
Return worker data if present, else a default dict.
def _get_worker_data(self, worker_id: str) -> Dict[str, List]: """ Return worker data if present, else a default dict. """ onboarding_todo = list(range(len(self.onboarding_tasks))) random.shuffle(onboarding_todo) self.worker_data[worker_id] = self.worker_data.get( ...
[ "def", "_get_worker_data", "(", "self", ",", "worker_id", ":", "str", ")", "->", "Dict", "[", "str", ",", "List", "]", ":", "onboarding_todo", "=", "list", "(", "range", "(", "len", "(", "self", ".", "onboarding_tasks", ")", ")", ")", "random", ".", ...
[ 85, 4 ]
[ 99, 42 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner.set_block_qual
(self, task_id: str)
Set block qualification if necessary. :param task_id: task id used to set block qualification, if necessary.
Set block qualification if necessary.
def set_block_qual(self, task_id: str): """ Set block qualification if necessary. :param task_id: task id used to set block qualification, if necessary. """ if self.args.blueprint.block_on_onboarding_fail: self.block_qualification = self.args.blueprint.bl...
[ "def", "set_block_qual", "(", "self", ",", "task_id", ":", "str", ")", ":", "if", "self", ".", "args", ".", "blueprint", ".", "block_on_onboarding_fail", ":", "self", ".", "block_qualification", "=", "self", ".", "args", ".", "blueprint", ".", "block_qualifi...
[ 101, 4 ]
[ 121, 77 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner._load_conversation_data
(self)
Load conversation data. Loads in the data from the pairs filepath.
Load conversation data.
def _load_conversation_data(self): """ Load conversation data. Loads in the data from the pairs filepath. """ pairs_path = self.args.blueprint.pairings_filepath with open(pairs_path) as pf: for i, l in enumerate(pf.readlines()): convo_pair = ...
[ "def", "_load_conversation_data", "(", "self", ")", ":", "pairs_path", "=", "self", ".", "args", ".", "blueprint", ".", "pairings_filepath", "with", "open", "(", "pairs_path", ")", "as", "pf", ":", "for", "i", ",", "l", "in", "enumerate", "(", "pf", ".",...
[ 123, 4 ]
[ 168, 51 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner._setup_task_queue
(self)
Fill task queue with conversation pairs.
Fill task queue with conversation pairs.
def _setup_task_queue(self): """ Fill task queue with conversation pairs. """ for _i in range(self.args.blueprint.annotations_per_pair): all_task_keys = list(range(len(self.desired_tasks))) random.shuffle(all_task_keys) for p_id in all_task_keys: ...
[ "def", "_setup_task_queue", "(", "self", ")", ":", "for", "_i", "in", "range", "(", "self", ".", "args", ".", "blueprint", ".", "annotations_per_pair", ")", ":", "all_task_keys", "=", "list", "(", "range", "(", "len", "(", "self", ".", "desired_tasks", "...
[ 170, 4 ]
[ 178, 61 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner._get_dialogue_ids
(self, task: Dict[str, Any])
Return the ids for the dialogues corresponding to a given task. :return dialogue_ids: A list of two ids which correspond to the id for each conversation
Return the ids for the dialogues corresponding to a given task.
def _get_dialogue_ids(self, task: Dict[str, Any]) -> List[int]: """ Return the ids for the dialogues corresponding to a given task. :return dialogue_ids: A list of two ids which correspond to the id for each conversation """ return task["pairing_dict"]["dialogue_ids"...
[ "def", "_get_dialogue_ids", "(", "self", ",", "task", ":", "Dict", "[", "str", ",", "Any", "]", ")", "->", "List", "[", "int", "]", ":", "return", "task", "[", "\"pairing_dict\"", "]", "[", "\"dialogue_ids\"", "]" ]
[ 180, 4 ]
[ 187, 51 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner._poll_task_queue
( self, worker_id: str, task_data: List[Dict[str, Any]] )
Poll task queue for tasks for a worker. :param worker_id: id for worker :param task_data: list of potential tasks already for worker :return task_data: a list of tasks for a worker to complete
Poll task queue for tasks for a worker.
def _poll_task_queue( self, worker_id: str, task_data: List[Dict[str, Any]] ) -> List[PairingsDict]: """ Poll task queue for tasks for a worker. :param worker_id: id for worker :param task_data: list of potential tasks already for worker :re...
[ "def", "_poll_task_queue", "(", "self", ",", "worker_id", ":", "str", ",", "task_data", ":", "List", "[", "Dict", "[", "str", ",", "Any", "]", "]", ")", "->", "List", "[", "PairingsDict", "]", ":", "worker_data", "=", "self", ".", "_get_worker_data", "...
[ 189, 4 ]
[ 229, 24 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner._top_up_task_data
( self, worker_id: str, task_data: List[Dict[str, Any]] )
Top up worker task data. This function is called if ``self.task_queue`` is exhausted but task_data for the worker is less than the `tasks_per_unit`. Make sure that all added tasks have not been seen by the worker. :param worker_id: id for worker :param ta...
Top up worker task data.
def _top_up_task_data( self, worker_id: str, task_data: List[Dict[str, Any]] ) -> List[PairingsDict]: """ Top up worker task data. This function is called if ``self.task_queue`` is exhausted but task_data for the worker is less than the `tasks_per_unit`. Make sure t...
[ "def", "_top_up_task_data", "(", "self", ",", "worker_id", ":", "str", ",", "task_data", ":", "List", "[", "Dict", "[", "str", ",", "Any", "]", "]", ")", "->", "List", "[", "PairingsDict", "]", ":", "worker_data", "=", "self", ".", "_get_worker_data", ...
[ 231, 4 ]
[ 277, 24 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner.get_new_task_data
(self, worker_id: str)
Get next task for worker. Returns the next onboarding task if worker hasn't finished them all, Otherwise finds a task from the queue they haven't seen If they've seen everything in the queue, spin up an extra task (one that was in the queue and is now saturated) :para...
Get next task for worker.
def get_new_task_data(self, worker_id: str) -> List[PairingsDict]: """ Get next task for worker. Returns the next onboarding task if worker hasn't finished them all, Otherwise finds a task from the queue they haven't seen If they've seen everything in the queue, spin up an ...
[ "def", "get_new_task_data", "(", "self", ",", "worker_id", ":", "str", ")", "->", "List", "[", "PairingsDict", "]", ":", "tasks_per_unit", "=", "self", ".", "args", ".", "blueprint", ".", "subtasks_per_unit", "# first add onboarding tasks", "task_data", "=", "se...
[ 279, 4 ]
[ 311, 24 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner.requeue_task_data
(self, worker_id: str, task_data: List[PairingsDict])
Return task to task_queue. If the task is an onboarding task, indicate that the worker has another onboarding task to do. :param worker_id: worker id of worker who is returning task :param task_data: list of unfinished tasks to return to the queue. ...
Return task to task_queue.
def requeue_task_data(self, worker_id: str, task_data: List[PairingsDict]): """ Return task to task_queue. If the task is an onboarding task, indicate that the worker has another onboarding task to do. :param worker_id: worker id of worker who is returning task ...
[ "def", "requeue_task_data", "(", "self", ",", "worker_id", ":", "str", ",", "task_data", ":", "List", "[", "PairingsDict", "]", ")", ":", "worker_data", "=", "self", ".", "_get_worker_data", "(", "worker_id", ")", "for", "subtask_data", "in", "task_data", ":...
[ 313, 4 ]
[ 342, 21 ]
python
en
['en', 'error', 'th']
False
AcuteEvalRunner.get_onboarding_tasks
(self, worker_id: str)
Get next onboarding task for given worker. :param worker_id: worker id :return: A list of onboarding tasks for the worker
Get next onboarding task for given worker.
def get_onboarding_tasks(self, worker_id: str) -> List[PairingsDict]: """ Get next onboarding task for given worker. :param worker_id: worker id :return: A list of onboarding tasks for the worker """ if len(self.onboarding_tasks) == 0: ...
[ "def", "get_onboarding_tasks", "(", "self", ",", "worker_id", ":", "str", ")", "->", "List", "[", "PairingsDict", "]", ":", "if", "len", "(", "self", ".", "onboarding_tasks", ")", "==", "0", ":", "return", "[", "]", "worker_data", "=", "self", ".", "_g...
[ 344, 4 ]
[ 368, 80 ]
python
en
['en', 'error', 'th']
False