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.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 561, 4 ]
[ 579, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 588, 4 ]
[ 603, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickcolor
(self)
Sets the tick color. The 'tickcolor' 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%)') ...
Sets the tick color. The 'tickcolor' 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%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' 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...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 612, 4 ]
[ 662, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickfont
(self)
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tick...
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tick...
def tickfont(self): """ Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Tickfont` - A dict of string/value properties that will be...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 671, 4 ]
[ 708, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 717, 4 ]
[ 737, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.parcoords.line.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the ...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.parcoords.line.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the ...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.parcoords.line.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties t...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 746, 4 ]
[ 794, 38 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstopdefaults
(self)
When used in a template (as layout.template.data.parcoords.line .colorbar.tickformatstopdefaults), sets the default property values to use for elements of parcoords.line.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop ...
When used in a template (as layout.template.data.parcoords.line .colorbar.tickformatstopdefaults), sets the default property values to use for elements of parcoords.line.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop ...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.parcoords.line .colorbar.tickformatstopdefaults), sets the default property values to use for elements of parcoords.line.colorbar.tickformatstops The 'tickformatstopdefaults' prope...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 803, 4 ]
[ 822, 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\"", "]" ]
[ 831, 4 ]
[ 842, 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\"", "]" ]
[ 851, 4 ]
[ 869, 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\"", "]" ]
[ 878, 4 ]
[ 890, 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\"", "]" ]
[ 899, 4 ]
[ 913, 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\"", "]" ]
[ 922, 4 ]
[ 934, 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\"", "]" ]
[ 943, 4 ]
[ 956, 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\"", "]" ]
[ 965, 4 ]
[ 976, 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\"", "]" ]
[ 985, 4 ]
[ 997, 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\"", "]" ]
[ 1006, 4 ]
[ 1017, 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\"", "]" ]
[ 1026, 4 ]
[ 1037, 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.parcoords.line.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.parcoords.line.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.parcoords.line.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor ...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use parcoords.line.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: ...
Deprecated: Please use parcoords.line.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: ...
def titlefont(self): """ Deprecated: Please use parcoords.line.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 tha...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1125, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use parcoords.line.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 th...
Deprecated: Please use parcoords.line.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 th...
def titleside(self): """ Deprecated: Please use parcoords.line.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 'sid...
[ "def", "titleside", "(", "self", ")", ":", "return", "self", "[", "\"titleside\"", "]" ]
[ 1134, 4 ]
[ 1149, 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\"", "]" ]
[ 1158, 4 ]
[ 1169, 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\"", "]" ]
[ 1178, 4 ]
[ 1192, 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\"", "]" ]
[ 1201, 4 ]
[ 1212, 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\"", "]" ]
[ 1221, 4 ]
[ 1232, 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\"", "]" ]
[ 1241, 4 ]
[ 1255, 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\"", "]" ]
[ 1264, 4 ]
[ 1275, 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.parcoords.line.ColorBar` bgcolor Sets the color of padded area. ...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.parcoords.line.ColorBar` bgcolor Sets the color of padded area. ...
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...
[ 1482, 4 ]
[ 1941, 34 ]
python
en
['en', 'error', 'th']
False
chamfer_distance
(src, dst, src_weight=1.0, dst_weight=1.0, criterion_mode='l2', reduction='mean')
Calculate Chamfer Distance of two sets. Args: src (torch.Tensor): Source set with shape [B, N, C] to calculate Chamfer Distance. dst (torch.Tensor): Destination set with shape [B, M, C] to calculate Chamfer Distance. src_weight (torch.Tensor or float): Weight of sour...
Calculate Chamfer Distance of two sets.
def chamfer_distance(src, dst, src_weight=1.0, dst_weight=1.0, criterion_mode='l2', reduction='mean'): """Calculate Chamfer Distance of two sets. Args: src (torch.Tensor): Source set with shape [B, ...
[ "def", "chamfer_distance", "(", "src", ",", "dst", ",", "src_weight", "=", "1.0", ",", "dst_weight", "=", "1.0", ",", "criterion_mode", "=", "'l2'", ",", "reduction", "=", "'mean'", ")", ":", "if", "criterion_mode", "==", "'smooth_l1'", ":", "criterion", "...
[ 7, 0 ]
[ 70, 49 ]
python
en
['en', 'en', 'en']
True
Dataset.__init__
(self, names,iterations,norm=True)
Initialization
Initialization
def __init__(self, names,iterations,norm=True): 'Initialization' self.names = names self.norm = norm self.iterations = iterations
[ "def", "__init__", "(", "self", ",", "names", ",", "iterations", ",", "norm", "=", "True", ")", ":", "self", ".", "names", "=", "names", "self", ".", "norm", "=", "norm", "self", ".", "iterations", "=", "iterations" ]
[ 46, 2 ]
[ 50, 36 ]
python
co
['es', 'co', 'en']
False
Dataset.__len__
(self)
Denotes the total number of samples
Denotes the total number of samples
def __len__(self): 'Denotes the total number of samples' return self.iterations
[ "def", "__len__", "(", "self", ")", ":", "return", "self", ".", "iterations" ]
[ 51, 2 ]
[ 53, 30 ]
python
en
['en', 'en', 'en']
True
Dataset.__getitem__
(self, step)
Generates one sample of data
Generates one sample of data
def __getitem__(self, step): 'Generates one sample of data' # Select sample index_pair = np.random.permutation(len(self.names)) [0:2] img_A = load_4D(self.names[index_pair[0]]) img_B = load_4D(self.names[index_pair[1]]) if self.norm: return Norm_Zscor...
[ "def", "__getitem__", "(", "self", ",", "step", ")", ":", "# Select sample", "index_pair", "=", "np", ".", "random", ".", "permutation", "(", "len", "(", "self", ".", "names", ")", ")", "[", "0", ":", "2", "]", "img_A", "=", "load_4D", "(", "self", ...
[ 55, 2 ]
[ 64, 31 ]
python
en
['en', 'en', 'en']
True
connections_send_ping
(request: web.BaseRequest)
Request handler for sending a trust ping to a connection. Args: request: aiohttp request object
Request handler for sending a trust ping to a connection.
async def connections_send_ping(request: web.BaseRequest): """ Request handler for sending a trust ping to a connection. Args: request: aiohttp request object """ context = request.app["request_context"] connection_id = request.match_info["id"] outbound_handler = request.app["outbo...
[ "async", "def", "connections_send_ping", "(", "request", ":", "web", ".", "BaseRequest", ")", ":", "context", "=", "request", ".", "app", "[", "\"request_context\"", "]", "connection_id", "=", "request", ".", "match_info", "[", "\"id\"", "]", "outbound_handler",...
[ 20, 0 ]
[ 45, 59 ]
python
en
['en', 'error', 'th']
False
register
(app: web.Application)
Register routes.
Register routes.
async def register(app: web.Application): """Register routes.""" app.add_routes([web.post("/connections/{id}/send-ping", connections_send_ping)])
[ "async", "def", "register", "(", "app", ":", "web", ".", "Application", ")", ":", "app", ".", "add_routes", "(", "[", "web", ".", "post", "(", "\"/connections/{id}/send-ping\"", ",", "connections_send_ping", ")", "]", ")" ]
[ 48, 0 ]
[ 51, 84 ]
python
en
['en', 'fr', 'en']
False
BasicMessageHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler logic for basic messages. Args: context: request context responder: responder callback
Message handler logic for basic messages.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for basic messages. Args: context: request context responder: responder callback """ self._logger.debug("BasicMessageHandler called with context %s", cont...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "\"BasicMessageHandler called with context %s\"", ",", "context", ")", "assert", "isinstance"...
[ 10, 4 ]
[ 55, 49 ]
python
en
['en', 'error', 'th']
False
Base3DRoIHead.with_bbox
(self)
bool: whether the RoIHead has box head
bool: whether the RoIHead has box head
def with_bbox(self): """bool: whether the RoIHead has box head""" return hasattr(self, 'bbox_head') and self.bbox_head is not None
[ "def", "with_bbox", "(", "self", ")", ":", "return", "hasattr", "(", "self", ",", "'bbox_head'", ")", "and", "self", ".", "bbox_head", "is", "not", "None" ]
[ 26, 4 ]
[ 28, 72 ]
python
en
['en', 'gd', 'en']
True
Base3DRoIHead.with_mask
(self)
bool: whether the RoIHead has mask head
bool: whether the RoIHead has mask head
def with_mask(self): """bool: whether the RoIHead has mask head""" return hasattr(self, 'mask_head') and self.mask_head is not None
[ "def", "with_mask", "(", "self", ")", ":", "return", "hasattr", "(", "self", ",", "'mask_head'", ")", "and", "self", ".", "mask_head", "is", "not", "None" ]
[ 31, 4 ]
[ 33, 72 ]
python
en
['en', 'ga', 'en']
True
Base3DRoIHead.init_weights
(self, pretrained)
Initialize the module with pre-trained weights.
Initialize the module with pre-trained weights.
def init_weights(self, pretrained): """Initialize the module with pre-trained weights.""" pass
[ "def", "init_weights", "(", "self", ",", "pretrained", ")", ":", "pass" ]
[ 36, 4 ]
[ 38, 12 ]
python
en
['en', 'en', 'en']
True
Base3DRoIHead.init_bbox_head
(self)
Initialize the box head.
Initialize the box head.
def init_bbox_head(self): """Initialize the box head.""" pass
[ "def", "init_bbox_head", "(", "self", ")", ":", "pass" ]
[ 41, 4 ]
[ 43, 12 ]
python
en
['en', 'en', 'en']
True
Base3DRoIHead.init_mask_head
(self)
Initialize maek head.
Initialize maek head.
def init_mask_head(self): """Initialize maek head.""" pass
[ "def", "init_mask_head", "(", "self", ")", ":", "pass" ]
[ 46, 4 ]
[ 48, 12 ]
python
en
['en', 'ig', 'it']
False
Base3DRoIHead.init_assigner_sampler
(self)
Initialize assigner and sampler.
Initialize assigner and sampler.
def init_assigner_sampler(self): """Initialize assigner and sampler.""" pass
[ "def", "init_assigner_sampler", "(", "self", ")", ":", "pass" ]
[ 51, 4 ]
[ 53, 12 ]
python
en
['en', 'en', 'en']
True
Base3DRoIHead.forward_train
(self, x, img_metas, proposal_list, gt_bboxes, gt_labels, gt_bboxes_ignore=None, **kwargs)
Forward function during training. Args: x (dict): Contains features from the first stage. img_metas (list[dict]): Meta info of each image. proposal_list (list[dict]): Proposal information from rpn. gt_bboxes (list[:obj:`BaseInstance3DBoxes`]): GT ...
Forward function during training.
def forward_train(self, x, img_metas, proposal_list, gt_bboxes, gt_labels, gt_bboxes_ignore=None, **kwargs): """Forward function during training. Arg...
[ "def", "forward_train", "(", "self", ",", "x", ",", "img_metas", ",", "proposal_list", ",", "gt_bboxes", ",", "gt_labels", ",", "gt_bboxes_ignore", "=", "None", ",", "*", "*", "kwargs", ")", ":", "pass" ]
[ 56, 4 ]
[ 80, 12 ]
python
en
['en', 'en', 'en']
True
Base3DRoIHead.simple_test
(self, x, proposal_list, img_metas, proposals=None, rescale=False, **kwargs)
Test without augmentation.
Test without augmentation.
def simple_test(self, x, proposal_list, img_metas, proposals=None, rescale=False, **kwargs): """Test without augmentation.""" pass
[ "def", "simple_test", "(", "self", ",", "x", ",", "proposal_list", ",", "img_metas", ",", "proposals", "=", "None", ",", "rescale", "=", "False", ",", "*", "*", "kwargs", ")", ":", "pass" ]
[ 82, 4 ]
[ 90, 12 ]
python
en
['en', 'en', 'en']
True
Base3DRoIHead.aug_test
(self, x, proposal_list, img_metas, rescale=False, **kwargs)
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
Test with augmentations.
def aug_test(self, x, proposal_list, img_metas, rescale=False, **kwargs): """Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0]. """ pass
[ "def", "aug_test", "(", "self", ",", "x", ",", "proposal_list", ",", "img_metas", ",", "rescale", "=", "False", ",", "*", "*", "kwargs", ")", ":", "pass" ]
[ 92, 4 ]
[ 98, 12 ]
python
en
['en', 'en', 'en']
True
test_node_handles_forced_upgrade_on_client_request
( looper, nodeSet, sdk_pool_handle, sdk_wallet_trustee, validUpgradeExpForceTrue)
Verifies that POOL_UPGRADE force=true request is handled immediately when the node receives it directly from the client
Verifies that POOL_UPGRADE force=true request is handled immediately when the node receives it directly from the client
def test_node_handles_forced_upgrade_on_client_request( looper, nodeSet, sdk_pool_handle, sdk_wallet_trustee, validUpgradeExpForceTrue): """ Verifies that POOL_UPGRADE force=true request is handled immediately when the node receives it directly from the client """ slow_node = getNonP...
[ "def", "test_node_handles_forced_upgrade_on_client_request", "(", "looper", ",", "nodeSet", ",", "sdk_pool_handle", ",", "sdk_wallet_trustee", ",", "validUpgradeExpForceTrue", ")", ":", "slow_node", "=", "getNonPrimaryReplicas", "(", "nodeSet", ",", "instId", "=", "0", ...
[ 9, 0 ]
[ 31, 68 ]
python
en
['en', 'error', 'th']
False
AddLabelFixedCandsTRA.add_cmdline_args
( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None )
Override to include new arg.
Override to include new arg.
def add_cmdline_args( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None ) -> ParlaiParser: """ Override to include new arg. """ super().add_cmdline_args(parser, partial_opt=partial_opt) agent = parser.add_argument_group('AddLabelFixedCandsTRA') agen...
[ "def", "add_cmdline_args", "(", "cls", ",", "parser", ":", "ParlaiParser", ",", "partial_opt", ":", "Optional", "[", "Opt", "]", "=", "None", ")", "->", "ParlaiParser", ":", "super", "(", ")", ".", "add_cmdline_args", "(", "parser", ",", "partial_opt", "="...
[ 30, 4 ]
[ 46, 21 ]
python
en
['en', 'error', 'th']
False
AddLabelFixedCandsTRA.train_step
(self, batch)
Override to clean up candidates.
Override to clean up candidates.
def train_step(self, batch): """ Override to clean up candidates. """ output = super().train_step(batch) if self.candidates == 'fixed': self.fixed_candidates = self.fixed_candidates[: self.num_fixed_candidates] return output
[ "def", "train_step", "(", "self", ",", "batch", ")", ":", "output", "=", "super", "(", ")", ".", "train_step", "(", "batch", ")", "if", "self", ".", "candidates", "==", "'fixed'", ":", "self", ".", "fixed_candidates", "=", "self", ".", "fixed_candidates"...
[ 75, 4 ]
[ 82, 21 ]
python
en
['en', 'error', 'th']
False
AddLabelFixedCandsTRA.eval_step
(self, batch)
Override to clean up candidates.
Override to clean up candidates.
def eval_step(self, batch): """ Override to clean up candidates. """ output = super().eval_step(batch) if self.eval_candidates == 'fixed': self.fixed_candidates = self.fixed_candidates[: self.num_fixed_candidates] return output
[ "def", "eval_step", "(", "self", ",", "batch", ")", ":", "output", "=", "super", "(", ")", ".", "eval_step", "(", "batch", ")", "if", "self", ".", "eval_candidates", "==", "'fixed'", ":", "self", ".", "fixed_candidates", "=", "self", ".", "fixed_candidat...
[ 84, 4 ]
[ 91, 21 ]
python
en
['en', 'error', 'th']
False
BiencoderAgent.vectorize
(self, *args, **kwargs)
Add the start and end token to the text.
Add the start and end token to the text.
def vectorize(self, *args, **kwargs): """ Add the start and end token to the text. """ kwargs['add_start'] = True kwargs['add_end'] = True obs = TorchRankerAgent.vectorize(self, *args, **kwargs) return obs
[ "def", "vectorize", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "kwargs", "[", "'add_start'", "]", "=", "True", "kwargs", "[", "'add_end'", "]", "=", "True", "obs", "=", "TorchRankerAgent", ".", "vectorize", "(", "self", ",", "*...
[ 102, 4 ]
[ 109, 18 ]
python
en
['en', 'error', 'th']
False
BiencoderAgent._vectorize_text
(self, *args, **kwargs)
Override to add start end tokens. necessary for fixed cands.
Override to add start end tokens.
def _vectorize_text(self, *args, **kwargs): """ Override to add start end tokens. necessary for fixed cands. """ if 'add_start' in kwargs: kwargs['add_start'] = True kwargs['add_end'] = True return super()._vectorize_text(*args, **kwargs)
[ "def", "_vectorize_text", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "'add_start'", "in", "kwargs", ":", "kwargs", "[", "'add_start'", "]", "=", "True", "kwargs", "[", "'add_end'", "]", "=", "True", "return", "super", "(", ...
[ 111, 4 ]
[ 120, 55 ]
python
en
['en', 'error', 'th']
False
BiencoderAgent._set_text_vec
(self, *args, **kwargs)
Add the start and end token to the text.
Add the start and end token to the text.
def _set_text_vec(self, *args, **kwargs): """ Add the start and end token to the text. """ obs = super()._set_text_vec(*args, **kwargs) if 'text_vec' in obs and 'added_start_end_tokens' not in obs: obs.force_set( 'text_vec', self._add_start_end_tokens(...
[ "def", "_set_text_vec", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "obs", "=", "super", "(", ")", ".", "_set_text_vec", "(", "*", "args", ",", "*", "*", "kwargs", ")", "if", "'text_vec'", "in", "obs", "and", "'added_start_end_t...
[ 122, 4 ]
[ 132, 18 ]
python
en
['en', 'error', 'th']
False
IRFriendlyBiencoderAgent.add_cmdline_args
( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None )
Add cmd line args.
Add cmd line args.
def add_cmdline_args( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None ) -> ParlaiParser: """ Add cmd line args. """ AddLabelFixedCandsTRA.add_cmdline_args(parser, partial_opt=partial_opt) BiencoderAgent.add_cmdline_args(parser, partial_opt=partial_opt) ...
[ "def", "add_cmdline_args", "(", "cls", ",", "parser", ":", "ParlaiParser", ",", "partial_opt", ":", "Optional", "[", "Opt", "]", "=", "None", ")", "->", "ParlaiParser", ":", "AddLabelFixedCandsTRA", ".", "add_cmdline_args", "(", "parser", ",", "partial_opt", "...
[ 141, 4 ]
[ 149, 21 ]
python
en
['en', 'error', 'th']
False
Stream.maxpoints
(self)
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]...
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]
def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or ...
[ "def", "maxpoints", "(", "self", ")", ":", "return", "self", "[", "\"maxpoints\"", "]" ]
[ 15, 4 ]
[ 28, 32 ]
python
en
['en', 'error', 'th']
False
Stream.token
(self)
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- str
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string
def token(self): """ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- ...
[ "def", "token", "(", "self", ")", ":", "return", "self", "[", "\"token\"", "]" ]
[ 37, 4 ]
[ 50, 28 ]
python
en
['en', 'error', 'th']
False
Stream.__init__
(self, arg=None, maxpoints=None, token=None, **kwargs)
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.isosurface.Stream` maxpoints Sets the maximum number of points to keep...
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.isosurface.Stream` maxpoints Sets the maximum number of points to keep...
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): """ Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.isosurface....
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "maxpoints", "=", "None", ",", "token", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Stream", ",", "self", ")", ".", "__init__", "(", "\"stream\"", ")", "if", "\"_paren...
[ 72, 4 ]
[ 140, 34 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.colorb ar.Tickformatstop` dtickrange range [*min*, *ma...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.colorb ar.Tickformatstop` dtickrange range [*min*, *ma...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
AngularAxis.domain
(self)
Polar chart subplots are not supported yet. This key has currently no effect. The 'domain' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'domain[0]' property is a number and may be specified as: - An int or flo...
Polar chart subplots are not supported yet. This key has currently no effect. The 'domain' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'domain[0]' property is a number and may be specified as: - An int or flo...
def domain(self): """ Polar chart subplots are not supported yet. This key has currently no effect. The 'domain' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'domain[0]' property is a number and may be specified ...
[ "def", "domain", "(", "self", ")", ":", "return", "self", "[", "\"domain\"", "]" ]
[ 26, 4 ]
[ 43, 29 ]
python
en
['en', 'error', 'th']
False
AngularAxis.endpadding
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. The 'endpadding' property is a number and may be specified as: - An int or float Returns ------- int|float
Legacy polar charts are deprecated! Please switch to "polar" subplots. The 'endpadding' property is a number and may be specified as: - An int or float
def endpadding(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. The 'endpadding' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["endpadding"...
[ "def", "endpadding", "(", "self", ")", ":", "return", "self", "[", "\"endpadding\"", "]" ]
[ 52, 4 ]
[ 64, 33 ]
python
en
['en', 'error', 'th']
False
AngularAxis.range
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this angular axis. The 'range' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'range[0]' property is a number and m...
Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this angular axis. The 'range' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'range[0]' property is a number and m...
def range(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this angular axis. The 'range' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'range[0]...
[ "def", "range", "(", "self", ")", ":", "return", "self", "[", "\"range\"", "]" ]
[ 73, 4 ]
[ 90, 28 ]
python
en
['en', 'error', 'th']
False
AngularAxis.showline
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this angular axis will be shown on the figure. The 'showline' property must be specified as a bool (either True, or False) Returns ------- ...
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this angular axis will be shown on the figure. The 'showline' property must be specified as a bool (either True, or False)
def showline(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this angular axis will be shown on the figure. The 'showline' property must be specified as a bool (either True, or False) ...
[ "def", "showline", "(", "self", ")", ":", "return", "self", "[", "\"showline\"", "]" ]
[ 99, 4 ]
[ 112, 31 ]
python
en
['en', 'error', 'th']
False
AngularAxis.showticklabels
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the angular axis ticks will feature tick labels. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool ...
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the angular axis ticks will feature tick labels. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the angular axis ticks will feature tick labels. The 'showticklabels' property must be specified as a bool (either True, or False) ...
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 121, 4 ]
[ 134, 37 ]
python
en
['en', 'error', 'th']
False
AngularAxis.tickcolor
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this angular axis. The 'tickcolor' 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)') ...
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this angular axis. The 'tickcolor' 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)') ...
def tickcolor(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this angular axis. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rg...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 143, 4 ]
[ 195, 32 ]
python
en
['en', 'error', 'th']
False
AngularAxis.ticklen
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this angular axis. The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- i...
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this angular axis. The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this angular axis. The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Ret...
[ "def", "ticklen", "(", "self", ")", ":", "return", "self", "[", "\"ticklen\"", "]" ]
[ 204, 4 ]
[ 217, 30 ]
python
en
['en', 'error', 'th']
False
AngularAxis.tickorientation
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the angular axis tick labels. The 'tickorientation' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the angular axis tick labels. The 'tickorientation' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def tickorientation(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the angular axis tick labels. The 'tickorientation' property is an enumeration that may be specified as: - One...
[ "def", "tickorientation", "(", "self", ")", ":", "return", "self", "[", "\"tickorientation\"", "]" ]
[ 226, 4 ]
[ 240, 38 ]
python
en
['en', 'error', 'th']
False
AngularAxis.ticksuffix
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this angular axis. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Retur...
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this angular axis. 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): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this angular axis. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be con...
[ "def", "ticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"ticksuffix\"", "]" ]
[ 249, 4 ]
[ 263, 33 ]
python
en
['en', 'error', 'th']
False
AngularAxis.visible
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. The 'visible' property must be specified as a bool (either True, or False)
def visible(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool ...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 272, 4 ]
[ 284, 30 ]
python
en
['en', 'error', 'th']
False
AngularAxis.__init__
( self, arg=None, domain=None, endpadding=None, range=None, showline=None, showticklabels=None, tickcolor=None, ticklen=None, tickorientation=None, ticksuffix=None, visible=None, **kwargs )
Construct a new AngularAxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.AngularAxis` domain Polar chart subplots are not supported...
Construct a new AngularAxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.AngularAxis` domain Polar chart subplots are not supported...
def __init__( self, arg=None, domain=None, endpadding=None, range=None, showline=None, showticklabels=None, tickcolor=None, ticklen=None, tickorientation=None, ticksuffix=None, visible=None, **kwargs ): "...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "domain", "=", "None", ",", "endpadding", "=", "None", ",", "range", "=", "None", ",", "showline", "=", "None", ",", "showticklabels", "=", "None", ",", "tickcolor", "=", "None", ",", "tic...
[ 335, 4 ]
[ 478, 34 ]
python
en
['en', 'error', 'th']
False
_maybe_remap
(infile, gridfile, quick=True, operator='remapcon')
Remap infile using cdo
Remap infile using cdo
def _maybe_remap(infile, gridfile, quick=True, operator='remapcon'): '''Remap infile using cdo''' # Temporary check of dimensions try: if cdo is None: raise RuntimeError("we were note able to load cdo") remap_method = getattr(cdo, operator) outfile = _make_remap_output_fi...
[ "def", "_maybe_remap", "(", "infile", ",", "gridfile", ",", "quick", "=", "True", ",", "operator", "=", "'remapcon'", ")", ":", "# Temporary check of dimensions", "try", ":", "if", "cdo", "is", "None", ":", "raise", "RuntimeError", "(", "\"we were note able to l...
[ 250, 0 ]
[ 267, 17 ]
python
en
['en', 'gl', 'en']
True
setup
(bot)
Mandatory function to add the Cog to the bot.
Mandatory function to add the Cog to the bot.
def setup(bot): """ Mandatory function to add the Cog to the bot. """ bot.add_cog(AutoReactionCog(bot))
[ "def", "setup", "(", "bot", ")", ":", "bot", ".", "add_cog", "(", "AutoReactionCog", "(", "bot", ")", ")" ]
[ 489, 0 ]
[ 493, 37 ]
python
en
['en', 'error', 'th']
False
Stream.maxpoints
(self)
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]...
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]
def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or ...
[ "def", "maxpoints", "(", "self", ")", ":", "return", "self", "[", "\"maxpoints\"", "]" ]
[ 15, 4 ]
[ 28, 32 ]
python
en
['en', 'error', 'th']
False
Stream.token
(self)
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- str
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string
def token(self): """ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- ...
[ "def", "token", "(", "self", ")", ":", "return", "self", "[", "\"token\"", "]" ]
[ 37, 4 ]
[ 50, 28 ]
python
en
['en', 'error', 'th']
False
Stream.__init__
(self, arg=None, maxpoints=None, token=None, **kwargs)
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sunburst.Stream` maxpoints Sets the maximum number of points to keep o...
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sunburst.Stream` maxpoints Sets the maximum number of points to keep o...
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): """ Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sunburst.St...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "maxpoints", "=", "None", ",", "token", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Stream", ",", "self", ")", ".", "__init__", "(", "\"stream\"", ")", "if", "\"_paren...
[ 72, 4 ]
[ 140, 34 ]
python
en
['en', 'error', 'th']
False
show
(fig, renderer=None, validate=True, **kwargs)
Show a figure using either the default renderer(s) or the renderer(s) specified by the renderer argument Parameters ---------- fig: dict of Figure The Figure object or figure dict to display renderer: str or None (default None) A string containing the names of one or more regi...
Show a figure using either the default renderer(s) or the renderer(s) specified by the renderer argument
def show(fig, renderer=None, validate=True, **kwargs): """ Show a figure using either the default renderer(s) or the renderer(s) specified by the renderer argument Parameters ---------- fig: dict of Figure The Figure object or figure dict to display renderer: str or None (default N...
[ "def", "show", "(", "fig", ",", "renderer", "=", "None", ",", "validate", "=", "True", ",", "*", "*", "kwargs", ")", ":", "fig_dict", "=", "validate_coerce_fig_to_dict", "(", "fig", ",", "validate", ")", "# Mimetype renderers", "bundle", "=", "renderers", ...
[ 350, 0 ]
[ 391, 88 ]
python
en
['en', 'error', 'th']
False
RenderersConfig.update
(self, d={}, **kwargs)
Update one or more renderers from a dict or from input keyword arguments. Parameters ---------- d: dict Dictionary from renderer names to new renderer objects. kwargs Named argument value pairs where the name is a renderer name and t...
Update one or more renderers from a dict or from input keyword arguments.
def update(self, d={}, **kwargs): """ Update one or more renderers from a dict or from input keyword arguments. Parameters ---------- d: dict Dictionary from renderer names to new renderer objects. kwargs Named argument value pairs where ...
[ "def", "update", "(", "self", ",", "d", "=", "{", "}", ",", "*", "*", "kwargs", ")", ":", "for", "k", ",", "v", "in", "dict", "(", "d", ",", "*", "*", "kwargs", ")", ".", "items", "(", ")", ":", "self", "[", "k", "]", "=", "v" ]
[ 93, 4 ]
[ 108, 23 ]
python
en
['en', 'error', 'th']
False
RenderersConfig.default
(self)
The default renderer, or None if no there is no default If not None, the default renderer is used to render figures when the `plotly.io.show` function is called on a Figure. If `plotly.io.renderers.render_on_display` is True, then the default renderer will also be used to disp...
The default renderer, or None if no there is no default
def default(self): """ The default renderer, or None if no there is no default If not None, the default renderer is used to render figures when the `plotly.io.show` function is called on a Figure. If `plotly.io.renderers.render_on_display` is True, then the default rend...
[ "def", "default", "(", "self", ")", ":", "return", "self", ".", "_default_name" ]
[ 112, 4 ]
[ 139, 33 ]
python
en
['en', 'error', 'th']
False
RenderersConfig.render_on_display
(self)
If True, the default mimetype renderers will be used to render figures when they are displayed in an IPython context. Returns ------- bool
If True, the default mimetype renderers will be used to render figures when they are displayed in an IPython context.
def render_on_display(self): """ If True, the default mimetype renderers will be used to render figures when they are displayed in an IPython context. Returns ------- bool """ return self._render_on_display
[ "def", "render_on_display", "(", "self", ")", ":", "return", "self", ".", "_render_on_display" ]
[ 160, 4 ]
[ 169, 38 ]
python
en
['en', 'error', 'th']
False
RenderersConfig._activate_pending_renderers
(self, cls=object)
Activate all renderers that are waiting in the _to_activate list Parameters ---------- cls Only activate renders that are subclasses of this class
Activate all renderers that are waiting in the _to_activate list
def _activate_pending_renderers(self, cls=object): """ Activate all renderers that are waiting in the _to_activate list Parameters ---------- cls Only activate renders that are subclasses of this class """ to_activate_with_cls = [ r for r ...
[ "def", "_activate_pending_renderers", "(", "self", ",", "cls", "=", "object", ")", ":", "to_activate_with_cls", "=", "[", "r", "for", "r", "in", "self", ".", "_to_activate", "if", "cls", "and", "isinstance", "(", "r", ",", "cls", ")", "]", "while", "to_a...
[ 175, 4 ]
[ 196, 9 ]
python
en
['en', 'error', 'th']
False
RenderersConfig._validate_coerce_renderers
(self, renderers_string)
Input a string and validate that it contains the names of one or more valid renderers separated on '+' characters. If valid, return a list of the renderer names Parameters ---------- renderers_string: str Returns ------- list of str
Input a string and validate that it contains the names of one or more valid renderers separated on '+' characters. If valid, return a list of the renderer names
def _validate_coerce_renderers(self, renderers_string): """ Input a string and validate that it contains the names of one or more valid renderers separated on '+' characters. If valid, return a list of the renderer names Parameters ---------- renderers_string: s...
[ "def", "_validate_coerce_renderers", "(", "self", ",", "renderers_string", ")", ":", "# Validate value", "if", "not", "isinstance", "(", "renderers_string", ",", "six", ".", "string_types", ")", ":", "raise", "ValueError", "(", "\"Renderer must be specified as a string\...
[ 198, 4 ]
[ 226, 29 ]
python
en
['en', 'error', 'th']
False
RenderersConfig._available_renderers_str
(self)
Return nicely wrapped string representation of all available renderer names
Return nicely wrapped string representation of all available renderer names
def _available_renderers_str(self): """ Return nicely wrapped string representation of all available renderer names """ available = "\n".join( textwrap.wrap( repr(list(self)), width=79 - 8, initial_indent=" " * 8, ...
[ "def", "_available_renderers_str", "(", "self", ")", ":", "available", "=", "\"\\n\"", ".", "join", "(", "textwrap", ".", "wrap", "(", "repr", "(", "list", "(", "self", ")", ")", ",", "width", "=", "79", "-", "8", ",", "initial_indent", "=", "\" \"", ...
[ 239, 4 ]
[ 252, 24 ]
python
en
['en', 'error', 'th']
False
RenderersConfig._build_mime_bundle
(self, fig_dict, renderers_string=None, **kwargs)
Build a mime bundle dict containing a kev/value pair for each MimetypeRenderer specified in either the default renderer string, or in the supplied renderers_string argument. Note that this method skips any renderers that are not subclasses of MimetypeRenderer. Paramete...
Build a mime bundle dict containing a kev/value pair for each MimetypeRenderer specified in either the default renderer string, or in the supplied renderers_string argument.
def _build_mime_bundle(self, fig_dict, renderers_string=None, **kwargs): """ Build a mime bundle dict containing a kev/value pair for each MimetypeRenderer specified in either the default renderer string, or in the supplied renderers_string argument. Note that this method skips ...
[ "def", "_build_mime_bundle", "(", "self", ",", "fig_dict", ",", "renderers_string", "=", "None", ",", "*", "*", "kwargs", ")", ":", "if", "renderers_string", ":", "renderer_names", "=", "self", ".", "_validate_coerce_renderers", "(", "renderers_string", ")", "re...
[ 254, 4 ]
[ 298, 21 ]
python
en
['en', 'error', 'th']
False
RenderersConfig._perform_external_rendering
(self, fig_dict, renderers_string=None, **kwargs)
Perform external rendering for each ExternalRenderer specified in either the default renderer string, or in the supplied renderers_string argument. Note that this method skips any renderers that are not subclasses of ExternalRenderer. Parameters ---------- ...
Perform external rendering for each ExternalRenderer specified in either the default renderer string, or in the supplied renderers_string argument.
def _perform_external_rendering(self, fig_dict, renderers_string=None, **kwargs): """ Perform external rendering for each ExternalRenderer specified in either the default renderer string, or in the supplied renderers_string argument. Note that this method skips any renderers tha...
[ "def", "_perform_external_rendering", "(", "self", ",", "fig_dict", ",", "renderers_string", "=", "None", ",", "*", "*", "kwargs", ")", ":", "if", "renderers_string", ":", "renderer_names", "=", "self", ".", "_validate_coerce_renderers", "(", "renderers_string", "...
[ 300, 4 ]
[ 340, 41 ]
python
en
['en', 'error', 'th']
False
_get_config_directory
()
Find the predefined detector config directory.
Find the predefined detector config directory.
def _get_config_directory(): """Find the predefined detector config directory.""" try: # Assume we are running in the source mmdetection3d repo repo_dpath = dirname(dirname(dirname(__file__))) except NameError: # For IPython development when this __file__ is not defined impor...
[ "def", "_get_config_directory", "(", ")", ":", "try", ":", "# Assume we are running in the source mmdetection3d repo", "repo_dpath", "=", "dirname", "(", "dirname", "(", "dirname", "(", "__file__", ")", ")", ")", "except", "NameError", ":", "# For IPython development wh...
[ 3, 0 ]
[ 15, 23 ]
python
en
['en', 'en', 'en']
True
test_config_build_detector
()
Test that all detection models defined in the configs can be initialized.
Test that all detection models defined in the configs can be initialized.
def test_config_build_detector(): """Test that all detection models defined in the configs can be initialized.""" from mmcv import Config from mmdet3d.models import build_detector config_dpath = _get_config_directory() print('Found config_dpath = {!r}'.format(config_dpath)) import glob ...
[ "def", "test_config_build_detector", "(", ")", ":", "from", "mmcv", "import", "Config", "from", "mmdet3d", ".", "models", "import", "build_detector", "config_dpath", "=", "_get_config_directory", "(", ")", "print", "(", "'Found config_dpath = {!r}'", ".", "format", ...
[ 18, 0 ]
[ 63, 63 ]
python
en
['en', 'en', 'en']
True
test_config_build_pipeline
()
Test that all detection models defined in the configs can be initialized.
Test that all detection models defined in the configs can be initialized.
def test_config_build_pipeline(): """Test that all detection models defined in the configs can be initialized.""" from mmcv import Config from mmdet3d.datasets.pipelines import Compose config_dpath = _get_config_directory() print('Found config_dpath = {!r}'.format(config_dpath)) # Other c...
[ "def", "test_config_build_pipeline", "(", ")", ":", "from", "mmcv", "import", "Config", "from", "mmdet3d", ".", "datasets", ".", "pipelines", "import", "Compose", "config_dpath", "=", "_get_config_directory", "(", ")", "print", "(", "'Found config_dpath = {!r}'", "....
[ 72, 0 ]
[ 97, 40 ]
python
en
['en', 'en', 'en']
True
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.line .colorbar.Tickformatstop` dtickrange range [*mi...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.line .colorbar.Tickformatstop` dtickrange range [*mi...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
ScriptDBAdmin.save_model
(self, request, obj, form, change)
Model-save hook. Args: request (Request): Incoming request. obj (Object): Database object. form (Form): Form instance. change (bool): If this is a change or a new object.
Model-save hook.
def save_model(self, request, obj, form, change): """ Model-save hook. Args: request (Request): Incoming request. obj (Object): Database object. form (Form): Form instance. change (bool): If this is a change or a new object. """ o...
[ "def", "save_model", "(", "self", ",", "request", ",", "obj", ",", "form", ",", "change", ")", ":", "obj", ".", "save", "(", ")", "if", "not", "change", ":", "# adding a new object", "# have to call init with typeclass passed to it", "obj", ".", "set_class_from_...
[ 54, 4 ]
[ 69, 78 ]
python
en
['en', 'error', 'th']
False
RoIAwarePool3d.__init__
(self, out_size, max_pts_per_voxel=128, mode='max')
RoIAwarePool3d module Args: out_size (int or tuple): n or [n1, n2, n3] max_pts_per_voxel (int): m mode (str): 'max' or 'avg'
RoIAwarePool3d module
def __init__(self, out_size, max_pts_per_voxel=128, mode='max'): super().__init__() """RoIAwarePool3d module Args: out_size (int or tuple): n or [n1, n2, n3] max_pts_per_voxel (int): m mode (str): 'max' or 'avg' """ self.out_size = out_size ...
[ "def", "__init__", "(", "self", ",", "out_size", ",", "max_pts_per_voxel", "=", "128", ",", "mode", "=", "'max'", ")", ":", "super", "(", ")", ".", "__init__", "(", ")", "self", ".", "out_size", "=", "out_size", "self", ".", "max_pts_per_voxel", "=", "...
[ 10, 4 ]
[ 23, 41 ]
python
en
['en', 'eu', 'en']
False
RoIAwarePool3d.forward
(self, rois, pts, pts_feature)
RoIAwarePool3d module forward. Args: rois (torch.Tensor): [N, 7],in LiDAR coordinate, (x, y, z) is the bottom center of rois pts (torch.Tensor): [npoints, 3] pts_feature (torch.Tensor): [npoints, C] Returns: pooled_features (torch.Tensor)...
RoIAwarePool3d module forward.
def forward(self, rois, pts, pts_feature): """RoIAwarePool3d module forward. Args: rois (torch.Tensor): [N, 7],in LiDAR coordinate, (x, y, z) is the bottom center of rois pts (torch.Tensor): [npoints, 3] pts_feature (torch.Tensor): [npoints, C] ...
[ "def", "forward", "(", "self", ",", "rois", ",", "pts", ",", "pts_feature", ")", ":", "return", "RoIAwarePool3dFunction", ".", "apply", "(", "rois", ",", "pts", ",", "pts_feature", ",", "self", ".", "out_size", ",", "self", ".", "max_pts_per_voxel", ",", ...
[ 25, 4 ]
[ 40, 78 ]
python
en
['en', 'eu', 'en']
True
RoIAwarePool3dFunction.forward
(ctx, rois, pts, pts_feature, out_size, max_pts_per_voxel, mode)
RoIAwarePool3d function forward. Args: rois (torch.Tensor): [N, 7], in LiDAR coordinate, (x, y, z) is the bottom center of rois pts (torch.Tensor): [npoints, 3] pts_feature (torch.Tensor): [npoints, C] out_size (int or tuple): n or [n1, n2, n3] ...
RoIAwarePool3d function forward.
def forward(ctx, rois, pts, pts_feature, out_size, max_pts_per_voxel, mode): """RoIAwarePool3d function forward. Args: rois (torch.Tensor): [N, 7], in LiDAR coordinate, (x, y, z) is the bottom center of rois pts (torch.Tensor): [npoints, 3] ...
[ "def", "forward", "(", "ctx", ",", "rois", ",", "pts", ",", "pts_feature", ",", "out_size", ",", "max_pts_per_voxel", ",", "mode", ")", ":", "if", "isinstance", "(", "out_size", ",", "int", ")", ":", "out_x", "=", "out_y", "=", "out_z", "=", "out_size"...
[ 46, 4 ]
[ 87, 30 ]
python
en
['en', 'id', 'en']
True
RoIAwarePool3dFunction.backward
(ctx, grad_out)
RoIAwarePool3d function forward. Args: grad_out (torch.Tensor): [N, out_x, out_y, out_z, C] Returns: grad_in (torch.Tensor): [npoints, C]
RoIAwarePool3d function forward.
def backward(ctx, grad_out): """RoIAwarePool3d function forward. Args: grad_out (torch.Tensor): [N, out_x, out_y, out_z, C] Returns: grad_in (torch.Tensor): [npoints, C] """ ret = ctx.roiaware_pool3d_for_backward pts_idx_of_voxels, argmax, mode, n...
[ "def", "backward", "(", "ctx", ",", "grad_out", ")", ":", "ret", "=", "ctx", ".", "roiaware_pool3d_for_backward", "pts_idx_of_voxels", ",", "argmax", ",", "mode", ",", "num_pts", ",", "num_channels", "=", "ret", "grad_in", "=", "grad_out", ".", "new_zeros", ...
[ 90, 4 ]
[ 105, 52 ]
python
en
['en', 'id', 'en']
True
ThreeInterpolate.forward
(ctx, features: torch.Tensor, indices: torch.Tensor, weight: torch.Tensor)
Performs weighted linear interpolation on 3 features. Args: features (Tensor): (B, C, M) Features descriptors to be interpolated from indices (Tensor): (B, n, 3) index three nearest neighbors of the target features in features weight (Tensor):...
Performs weighted linear interpolation on 3 features.
def forward(ctx, features: torch.Tensor, indices: torch.Tensor, weight: torch.Tensor) -> torch.Tensor: """Performs weighted linear interpolation on 3 features. Args: features (Tensor): (B, C, M) Features descriptors to be interpolated from indices...
[ "def", "forward", "(", "ctx", ",", "features", ":", "torch", ".", "Tensor", ",", "indices", ":", "torch", ".", "Tensor", ",", "weight", ":", "torch", ".", "Tensor", ")", "->", "torch", ".", "Tensor", ":", "assert", "features", ".", "is_contiguous", "("...
[ 10, 4 ]
[ 35, 21 ]
python
en
['en', 'en', 'en']
True