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
Title.__init__
(self, arg=None, font=None, side=None, text=None, **kwargs)
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.splom.marker.colorbar.Title` font Sets this color bar's title font. Not...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.splom.marker.colorbar.Title` font Sets this color bar's title font. Not...
def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): """ Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.splom.m...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "side", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\"", ...
[ 126, 4 ]
[ 203, 34 ]
python
en
['en', 'error', 'th']
False
get_typing_type
(plotly_type, array_ok=False)
Get Python type corresponding to a valType string from the plotly schema Parameters ---------- plotly_type : str a plotly datatype string array_ok : bool Whether lists/arrays are permitted Returns ------- str Python type string
Get Python type corresponding to a valType string from the plotly schema
def get_typing_type(plotly_type, array_ok=False): """ Get Python type corresponding to a valType string from the plotly schema Parameters ---------- plotly_type : str a plotly datatype string array_ok : bool Whether lists/arrays are permitted Returns ------- str ...
[ "def", "get_typing_type", "(", "plotly_type", ",", "array_ok", "=", "False", ")", ":", "if", "plotly_type", "==", "\"data_array\"", ":", "pytype", "=", "\"numpy.ndarray\"", "elif", "plotly_type", "==", "\"info_array\"", ":", "pytype", "=", "\"list\"", "elif", "p...
[ 7, 0 ]
[ 44, 21 ]
python
en
['en', 'error', 'th']
False
build_datatype_py
(node)
Build datatype (graph_objs) class source code string for a datatype PlotlyNode Parameters ---------- node : PlotlyNode The datatype node (node.is_datatype must evaluate to true) for which to build the datatype class Returns ------- str String containing source c...
Build datatype (graph_objs) class source code string for a datatype PlotlyNode
def build_datatype_py(node): """ Build datatype (graph_objs) class source code string for a datatype PlotlyNode Parameters ---------- node : PlotlyNode The datatype node (node.is_datatype must evaluate to true) for which to build the datatype class Returns ------- st...
[ "def", "build_datatype_py", "(", "node", ")", ":", "# Validate inputs", "# ---------------", "assert", "node", ".", "is_compound", "# Handle template traces", "# ----------------------", "# We want template trace/layout classes like", "# plotly.graph_objs.layout.template.data.Scatter t...
[ 47, 0 ]
[ 404, 28 ]
python
en
['en', 'error', 'th']
False
reindent_validator_description
(validator, extra_indent)
Return validator description with modified indenting. The string that is returned has no leading indent, and the subsequent lines are indented by 4 spaces (the default for validator descriptions) plus `extra_indent` spaces Parameters ---------- validator : BaseValidator Validator from ...
Return validator description with modified indenting. The string that is returned has no leading indent, and the subsequent lines are indented by 4 spaces (the default for validator descriptions) plus `extra_indent` spaces
def reindent_validator_description(validator, extra_indent): """ Return validator description with modified indenting. The string that is returned has no leading indent, and the subsequent lines are indented by 4 spaces (the default for validator descriptions) plus `extra_indent` spaces Parameters ...
[ "def", "reindent_validator_description", "(", "validator", ",", "extra_indent", ")", ":", "# Remove leading indent and add extra spaces to subsequent indent", "return", "(", "\"\\n\"", "+", "\" \"", "*", "extra_indent", ")", ".", "join", "(", "validator", ".", "descriptio...
[ 407, 0 ]
[ 428, 88 ]
python
en
['en', 'error', 'th']
False
add_constructor_params
(buffer, subtype_nodes, prepend_extras=(), append_extras=())
Write datatype constructor params to a buffer Parameters ---------- buffer : StringIO Buffer to write to subtype_nodes : list of PlotlyNode List of datatype nodes to be written as constructor params prepend_extras : list[str] List of extra parameters to include at the b...
Write datatype constructor params to a buffer
def add_constructor_params(buffer, subtype_nodes, prepend_extras=(), append_extras=()): """ Write datatype constructor params to a buffer Parameters ---------- buffer : StringIO Buffer to write to subtype_nodes : list of PlotlyNode List of datatype nodes to be written as constru...
[ "def", "add_constructor_params", "(", "buffer", ",", "subtype_nodes", ",", "prepend_extras", "=", "(", ")", ",", "append_extras", "=", "(", ")", ")", ":", "for", "extra", "in", "prepend_extras", ":", "buffer", ".", "write", "(", "f\"\"\",\n {extra}=No...
[ 431, 0 ]
[ 474, 5 ]
python
en
['en', 'error', 'th']
False
add_docstring
( buffer, node, header, prepend_extras=(), append_extras=(), return_type=None )
Write docstring for a compound datatype node Parameters ---------- buffer : StringIO Buffer to write to node : PlotlyNode Compound datatype plotly node for which to write docstring header : Top-level header for docstring that will preceded the input node's own d...
Write docstring for a compound datatype node
def add_docstring( buffer, node, header, prepend_extras=(), append_extras=(), return_type=None ): """ Write docstring for a compound datatype node Parameters ---------- buffer : StringIO Buffer to write to node : PlotlyNode Compound datatype plotly node for which to write do...
[ "def", "add_docstring", "(", "buffer", ",", "node", ",", "header", ",", "prepend_extras", "=", "(", ")", ",", "append_extras", "=", "(", ")", ",", "return_type", "=", "None", ")", ":", "# Validate inputs", "# ---------------", "assert", "node", ".", "is_comp...
[ 477, 0 ]
[ 580, 5 ]
python
en
['en', 'error', 'th']
False
write_datatype_py
(outdir, node)
Build datatype (graph_objs) class source code and write to a file Parameters ---------- outdir : Root outdir in which the graph_objs package should reside node : The datatype node (node.is_datatype must evaluate to true) for which to build the datatype class Returns ...
Build datatype (graph_objs) class source code and write to a file
def write_datatype_py(outdir, node): """ Build datatype (graph_objs) class source code and write to a file Parameters ---------- outdir : Root outdir in which the graph_objs package should reside node : The datatype node (node.is_datatype must evaluate to true) for which ...
[ "def", "write_datatype_py", "(", "outdir", ",", "node", ")", ":", "# Build file path", "# ---------------", "# filepath = opath.join(outdir, \"graph_objs\", *node.parent_path_parts, \"__init__.py\")", "filepath", "=", "opath", ".", "join", "(", "outdir", ",", "\"graph_objs\"", ...
[ 583, 0 ]
[ 613, 66 ]
python
en
['en', 'error', 'th']
False
QueryHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler implementation.
Message handler implementation.
async def handle(self, context: RequestContext, responder: BaseResponder): """Message handler implementation.""" self._logger.debug("QueryHandler called with context %s", context) assert isinstance(context.message, Query) registry: ProtocolRegistry = await context.inject(ProtocolRegistr...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "\"QueryHandler called with context %s\"", ",", "context", ")", "assert", "isinstance", "("...
[ 12, 4 ]
[ 22, 41 ]
python
da
['da', 'da', 'en']
True
Splom.customdata
(self)
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
def customdata(self): """ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be sp...
[ "def", "customdata", "(", "self", ")", ":", "return", "self", "[", "\"customdata\"", "]" ]
[ 51, 4 ]
[ 65, 33 ]
python
en
['en', 'error', 'th']
False
Splom.customdatasrc
(self)
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' 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 customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def customdatasrc(self): """ Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["cust...
[ "def", "customdatasrc", "(", "self", ")", ":", "return", "self", "[", "\"customdatasrc\"", "]" ]
[ 74, 4 ]
[ 86, 36 ]
python
en
['en', 'error', 'th']
False
Splom.diagonal
(self)
The 'diagonal' property is an instance of Diagonal that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Diagonal` - A dict of string/value properties that will be passed to the Diagonal constructor Supported dict properties: ...
The 'diagonal' property is an instance of Diagonal that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Diagonal` - A dict of string/value properties that will be passed to the Diagonal constructor Supported dict properties: ...
def diagonal(self): """ The 'diagonal' property is an instance of Diagonal that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Diagonal` - A dict of string/value properties that will be passed to the Diagonal constructor Sup...
[ "def", "diagonal", "(", "self", ")", ":", "return", "self", "[", "\"diagonal\"", "]" ]
[ 95, 4 ]
[ 113, 31 ]
python
en
['en', 'error', 'th']
False
Splom.dimensions
(self)
The 'dimensions' property is a tuple of instances of Dimension that may be specified as: - A list or tuple of instances of plotly.graph_objs.splom.Dimension - A list or tuple of dicts of string/value properties that will be passed to the Dimension constructor ...
The 'dimensions' property is a tuple of instances of Dimension that may be specified as: - A list or tuple of instances of plotly.graph_objs.splom.Dimension - A list or tuple of dicts of string/value properties that will be passed to the Dimension constructor ...
def dimensions(self): """ The 'dimensions' property is a tuple of instances of Dimension that may be specified as: - A list or tuple of instances of plotly.graph_objs.splom.Dimension - A list or tuple of dicts of string/value properties that will be passed to the ...
[ "def", "dimensions", "(", "self", ")", ":", "return", "self", "[", "\"dimensions\"", "]" ]
[ 122, 4 ]
[ 174, 33 ]
python
en
['en', 'error', 'th']
False
Splom.dimensiondefaults
(self)
When used in a template (as layout.template.data.splom.dimensiondefaults), sets the default property values to use for elements of splom.dimensions The 'dimensiondefaults' property is an instance of Dimension that may be specified as: - An instance of :class:`plot...
When used in a template (as layout.template.data.splom.dimensiondefaults), sets the default property values to use for elements of splom.dimensions The 'dimensiondefaults' property is an instance of Dimension that may be specified as: - An instance of :class:`plot...
def dimensiondefaults(self): """ When used in a template (as layout.template.data.splom.dimensiondefaults), sets the default property values to use for elements of splom.dimensions The 'dimensiondefaults' property is an instance of Dimension that may be specified as:...
[ "def", "dimensiondefaults", "(", "self", ")", ":", "return", "self", "[", "\"dimensiondefaults\"", "]" ]
[ 183, 4 ]
[ 201, 40 ]
python
en
['en', 'error', 'th']
False
Splom.hoverinfo
(self)
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified as a string containing: ...
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified as a string containing: ...
def hoverinfo(self): """ Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified ...
[ "def", "hoverinfo", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfo\"", "]" ]
[ 210, 4 ]
[ 227, 32 ]
python
en
['en', 'error', 'th']
False
Splom.hoverinfosrc
(self)
Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' 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 hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hoverinfosrc(self): """ Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["hoverin...
[ "def", "hoverinfosrc", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfosrc\"", "]" ]
[ 236, 4 ]
[ 248, 35 ]
python
en
['en', 'error', 'th']
False
Splom.hoverlabel
(self)
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properties:...
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properties:...
def hoverlabel(self): """ The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor ...
[ "def", "hoverlabel", "(", "self", ")", ":", "return", "self", "[", "\"hoverlabel\"", "]" ]
[ 257, 4 ]
[ 307, 33 ]
python
en
['en', 'error', 'th']
False
Splom.hovertemplate
(self)
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
def hovertemplate(self): """ Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d...
[ "def", "hovertemplate", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplate\"", "]" ]
[ 316, 4 ]
[ 348, 36 ]
python
en
['en', 'error', 'th']
False
Splom.hovertemplatesrc
(self)
Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' 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 hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertemplatesrc(self): """ Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return se...
[ "def", "hovertemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplatesrc\"", "]" ]
[ 357, 4 ]
[ 369, 39 ]
python
en
['en', 'error', 'th']
False
Splom.hovertext
(self)
Same as `text`. The 'hovertext' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above Returns ------- str|numpy.ndarray
Same as `text`. The 'hovertext' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above
def hovertext(self): """ Same as `text`. The 'hovertext' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above Returns ------- ...
[ "def", "hovertext", "(", "self", ")", ":", "return", "self", "[", "\"hovertext\"", "]" ]
[ 378, 4 ]
[ 391, 32 ]
python
en
['en', 'error', 'th']
False
Splom.hovertextsrc
(self)
Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' 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 hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertextsrc(self): """ Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["hoverte...
[ "def", "hovertextsrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertextsrc\"", "]" ]
[ 400, 4 ]
[ 412, 35 ]
python
en
['en', 'error', 'th']
False
Splom.ids
(self)
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Retur...
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ids(self): """ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pa...
[ "def", "ids", "(", "self", ")", ":", "return", "self", "[", "\"ids\"", "]" ]
[ 421, 4 ]
[ 434, 26 ]
python
en
['en', 'error', 'th']
False
Splom.idssrc
(self)
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' 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 ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def idssrc(self): """ Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["idssrc"]
[ "def", "idssrc", "(", "self", ")", ":", "return", "self", "[", "\"idssrc\"", "]" ]
[ 443, 4 ]
[ 454, 29 ]
python
en
['en', 'error', 'th']
False
Splom.legendgroup
(self)
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will be converted to a string R...
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will be converted to a string
def legendgroup(self): """ Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will b...
[ "def", "legendgroup", "(", "self", ")", ":", "return", "self", "[", "\"legendgroup\"", "]" ]
[ 463, 4 ]
[ 477, 34 ]
python
en
['en', 'error', 'th']
False
Splom.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dic...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 486, 4 ]
[ 624, 29 ]
python
en
['en', 'error', 'th']
False
Splom.meta
(self)
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
def meta(self): """ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text ...
[ "def", "meta", "(", "self", ")", ":", "return", "self", "[", "\"meta\"", "]" ]
[ 633, 4 ]
[ 652, 27 ]
python
en
['en', 'error', 'th']
False
Splom.metasrc
(self)
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' 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 meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def metasrc(self): """ Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["metasrc"]
[ "def", "metasrc", "(", "self", ")", ":", "return", "self", "[", "\"metasrc\"", "]" ]
[ 661, 4 ]
[ 672, 30 ]
python
en
['en', 'error', 'th']
False
Splom.name
(self)
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string
def name(self): """ Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str ...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 681, 4 ]
[ 694, 27 ]
python
en
['en', 'error', 'th']
False
Splom.opacity
(self)
Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ return self["opacity"]
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 703, 4 ]
[ 714, 30 ]
python
en
['en', 'error', 'th']
False
Splom.selected
(self)
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties: ...
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties: ...
def selected(self): """ The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Selected` - A dict of string/value properties that will be passed to the Selected constructor Sup...
[ "def", "selected", "(", "self", ")", ":", "return", "self", "[", "\"selected\"", "]" ]
[ 723, 4 ]
[ 742, 31 ]
python
en
['en', 'error', 'th']
False
Splom.selectedpoints
(self)
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
def selectedpoints(self): """ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values ...
[ "def", "selectedpoints", "(", "self", ")", ":", "return", "self", "[", "\"selectedpoints\"", "]" ]
[ 751, 4 ]
[ 766, 37 ]
python
en
['en', 'error', 'th']
False
Splom.showlegend
(self)
Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False)
def showlegend(self): """ Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showle...
[ "def", "showlegend", "(", "self", ")", ":", "return", "self", "[", "\"showlegend\"", "]" ]
[ 775, 4 ]
[ 787, 33 ]
python
en
['en', 'error', 'th']
False
Splom.showlowerhalf
(self)
Determines whether or not subplots on the lower half from the diagonal are displayed. The 'showlowerhalf' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not subplots on the lower half from the diagonal are displayed. The 'showlowerhalf' property must be specified as a bool (either True, or False)
def showlowerhalf(self): """ Determines whether or not subplots on the lower half from the diagonal are displayed. The 'showlowerhalf' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["...
[ "def", "showlowerhalf", "(", "self", ")", ":", "return", "self", "[", "\"showlowerhalf\"", "]" ]
[ 796, 4 ]
[ 808, 36 ]
python
en
['en', 'error', 'th']
False
Splom.showupperhalf
(self)
Determines whether or not subplots on the upper half from the diagonal are displayed. The 'showupperhalf' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not subplots on the upper half from the diagonal are displayed. The 'showupperhalf' property must be specified as a bool (either True, or False)
def showupperhalf(self): """ Determines whether or not subplots on the upper half from the diagonal are displayed. The 'showupperhalf' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["...
[ "def", "showupperhalf", "(", "self", ")", ":", "return", "self", "[", "\"showupperhalf\"", "]" ]
[ 817, 4 ]
[ 829, 36 ]
python
en
['en', 'error', 'th']
False
Splom.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
def stream(self): """ The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dic...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 838, 4 ]
[ 862, 29 ]
python
en
['en', 'error', 'th']
False
Splom.text
(self)
Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. The 'text' property is a string and must ...
Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. The 'text' property is a string and must ...
def text(self): """ Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. The 'text' pro...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 871, 4 ]
[ 887, 27 ]
python
en
['en', 'error', 'th']
False
Splom.textsrc
(self)
Sets the source reference on Chart Studio Cloud for text . The 'textsrc' 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 text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def textsrc(self): """ Sets the source reference on Chart Studio Cloud for text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["textsrc"]
[ "def", "textsrc", "(", "self", ")", ":", "return", "self", "[", "\"textsrc\"", "]" ]
[ 896, 4 ]
[ 907, 30 ]
python
en
['en', 'error', 'th']
False
Splom.uid
(self)
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- ...
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string
def uid(self): """ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Return...
[ "def", "uid", "(", "self", ")", ":", "return", "self", "[", "\"uid\"", "]" ]
[ 916, 4 ]
[ 929, 26 ]
python
en
['en', 'error', 'th']
False
Splom.uirevision
(self)
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
def uirevision(self): """ Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driv...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 938, 4 ]
[ 962, 33 ]
python
en
['en', 'error', 'th']
False
Splom.unselected
(self)
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict properties:...
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict properties:...
def unselected(self): """ The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.splom.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor ...
[ "def", "unselected", "(", "self", ")", ":", "return", "self", "[", "\"unselected\"", "]" ]
[ 971, 4 ]
[ 990, 33 ]
python
en
['en', 'error', 'th']
False
Splom.visible
(self)
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
def visible(self): """ Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One o...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 999, 4 ]
[ 1013, 30 ]
python
en
['en', 'error', 'th']
False
Splom.xaxes
(self)
Sets the list of x axes corresponding to dimensions of this splom trace. By default, a splom will match the first N xaxes where N is the number of input dimensions. Note that, in case where `diagonal.visible` is false and `showupperhalf` or `showlowerhalf` is false, this splom t...
Sets the list of x axes corresponding to dimensions of this splom trace. By default, a splom will match the first N xaxes where N is the number of input dimensions. Note that, in case where `diagonal.visible` is false and `showupperhalf` or `showlowerhalf` is false, this splom t...
def xaxes(self): """ Sets the list of x axes corresponding to dimensions of this splom trace. By default, a splom will match the first N xaxes where N is the number of input dimensions. Note that, in case where `diagonal.visible` is false and `showupperhalf` or `showlower...
[ "def", "xaxes", "(", "self", ")", ":", "return", "self", "[", "\"xaxes\"", "]" ]
[ 1022, 4 ]
[ 1042, 28 ]
python
en
['en', 'error', 'th']
False
Splom.yaxes
(self)
Sets the list of y axes corresponding to dimensions of this splom trace. By default, a splom will match the first N yaxes where N is the number of input dimensions. Note that, in case where `diagonal.visible` is false and `showupperhalf` or `showlowerhalf` is false, this splom t...
Sets the list of y axes corresponding to dimensions of this splom trace. By default, a splom will match the first N yaxes where N is the number of input dimensions. Note that, in case where `diagonal.visible` is false and `showupperhalf` or `showlowerhalf` is false, this splom t...
def yaxes(self): """ Sets the list of y axes corresponding to dimensions of this splom trace. By default, a splom will match the first N yaxes where N is the number of input dimensions. Note that, in case where `diagonal.visible` is false and `showupperhalf` or `showlower...
[ "def", "yaxes", "(", "self", ")", ":", "return", "self", "[", "\"yaxes\"", "]" ]
[ 1051, 4 ]
[ 1071, 28 ]
python
en
['en', 'error', 'th']
False
Splom.__init__
( self, arg=None, customdata=None, customdatasrc=None, diagonal=None, dimensions=None, dimensiondefaults=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatesrc=None, hovertext=...
Construct a new Splom object Splom traces generate scatter plot matrix visualizations. Each splom `dimensions` items correspond to a generated axis. Values for each of those dimensions are set in `dimensions[i].values`. Splom traces support all `scattergl` marker style ...
Construct a new Splom object Splom traces generate scatter plot matrix visualizations. Each splom `dimensions` items correspond to a generated axis. Values for each of those dimensions are set in `dimensions[i].values`. Splom traces support all `scattergl` marker style ...
def __init__( self, arg=None, customdata=None, customdatasrc=None, diagonal=None, dimensions=None, dimensiondefaults=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatesrc=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "customdata", "=", "None", ",", "customdatasrc", "=", "None", ",", "diagonal", "=", "None", ",", "dimensions", "=", "None", ",", "dimensiondefaults", "=", "None", ",", "hoverinfo", "=", "None"...
[ 1264, 4 ]
[ 1676, 34 ]
python
en
['en', 'error', 'th']
False
Outsidetextfont.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
Outsidetextfont.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
Outsidetextfont.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
Outsidetextfont.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
Outsidetextfont.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
Outsidetextfont.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
Outsidetextfont.__init__
( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs )
Construct a new Outsidetextfont object Sets the font used for `text` lying outside the bar. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.funnel.Outsidetextf...
Construct a new Outsidetextfont object Sets the font used for `text` lying outside the bar.
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Outsidetextfont object Sets the font used for `text` lying outside t...
[ "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
ContextWithImageEncoder.__init__
( self, n_heads, n_layers, embedding_size, ffn_size, vocabulary_size, embedding=None, dropout=0.0, attention_dropout=0.0, relu_dropout=0.0, padding_idx=0, learn_positional_embeddings=False, embeddings_scale=False, ...
Override TransformerEncoder __init__. Setup the image encoder; create some dummy tensors for inserting image into input
Override TransformerEncoder __init__.
def __init__( self, n_heads, n_layers, embedding_size, ffn_size, vocabulary_size, embedding=None, dropout=0.0, attention_dropout=0.0, relu_dropout=0.0, padding_idx=0, learn_positional_embeddings=False, embeddings_sca...
[ "def", "__init__", "(", "self", ",", "n_heads", ",", "n_layers", ",", "embedding_size", ",", "ffn_size", ",", "vocabulary_size", ",", "embedding", "=", "None", ",", "dropout", "=", "0.0", ",", "attention_dropout", "=", "0.0", ",", "relu_dropout", "=", "0.0",...
[ 89, 4 ]
[ 164, 9 ]
python
en
['en', 'error', 'th']
False
ContextWithImageEncoder.encode_images
( self, images: Union[List[object], torch.Tensor], positions: Optional[torch.LongTensor] = None, segments: Optional[torch.LongTensor] = None, )
Encode Images. Encodes images given in `images`, if the image can be encoded (i.e. it is a tensor). :param images: either a list of objects of length N, of which some maybe be None, or a tensor of shape (batch size, self.img_dim) :param positions: ...
Encode Images.
def encode_images( self, images: Union[List[object], torch.Tensor], positions: Optional[torch.LongTensor] = None, segments: Optional[torch.LongTensor] = None, ) -> Tuple[torch.Tensor, torch.Tensor]: """ Encode Images. Encodes images given in `images`, if the ...
[ "def", "encode_images", "(", "self", ",", "images", ":", "Union", "[", "List", "[", "object", "]", ",", "torch", ".", "Tensor", "]", ",", "positions", ":", "Optional", "[", "torch", ".", "LongTensor", "]", "=", "None", ",", "segments", ":", "Optional",...
[ 176, 4 ]
[ 260, 41 ]
python
en
['en', 'error', 'th']
False
ContextWithImageEncoder.forward
( # type: ignore self, src_tokens: Optional[torch.LongTensor], image_features: Optional[Union[List[object], torch.Tensor]], )
Encode images with context. Encodes tokens (if given) and images (if given) depending on fusion setting. :param src_tokens: A bsz x seq_len tensor of src_tokens; possibly None :param image_features: Either a list of (torch.tensor) or a tensor of shape (batch_si...
Encode images with context.
def forward( # type: ignore self, src_tokens: Optional[torch.LongTensor], image_features: Optional[Union[List[object], torch.Tensor]], ) -> Tuple[torch.Tensor, Optional[torch.Tensor]]: """ Encode images with context. Encodes tokens (if given) and images (if given) d...
[ "def", "forward", "(", "# type: ignore", "self", ",", "src_tokens", ":", "Optional", "[", "torch", ".", "LongTensor", "]", ",", "image_features", ":", "Optional", "[", "Union", "[", "List", "[", "object", "]", ",", "torch", ".", "Tensor", "]", "]", ",", ...
[ 262, 4 ]
[ 287, 73 ]
python
en
['en', 'error', 'th']
False
ContextWithImageEncoder._forward_early_fusion
( self, src_tokens: Optional[torch.LongTensor], image_features: Optional[Union[List[object], torch.Tensor]], )
Encode images with context. Performs early fusion, whereby image embeddings and token embeddings are computed before passing into the Transformer. Essentially overrides normal TransformerEncoder forward.
Encode images with context.
def _forward_early_fusion( self, src_tokens: Optional[torch.LongTensor], image_features: Optional[Union[List[object], torch.Tensor]], ) -> Tuple[torch.Tensor, Optional[torch.Tensor]]: """ Encode images with context. Performs early fusion, whereby image embeddings and...
[ "def", "_forward_early_fusion", "(", "self", ",", "src_tokens", ":", "Optional", "[", "torch", ".", "LongTensor", "]", ",", "image_features", ":", "Optional", "[", "Union", "[", "List", "[", "object", "]", ",", "torch", ".", "Tensor", "]", "]", ",", ")",...
[ 289, 4 ]
[ 340, 31 ]
python
en
['en', 'error', 'th']
False
ContextWithImageEncoder._forward_late_fusion
( self, src_tokens: Optional[torch.LongTensor], image_features: Optional[Union[List[object], torch.Tensor]], )
Encode images with context. Encodes tokens (if given) and images (if given) separately. Combines via either addition, prepending, or appending the image embedding to the context embedding.
Encode images with context.
def _forward_late_fusion( self, src_tokens: Optional[torch.LongTensor], image_features: Optional[Union[List[object], torch.Tensor]], ) -> Tuple[torch.Tensor, Optional[torch.Tensor]]: """ Encode images with context. Encodes tokens (if given) and images (if given) sepa...
[ "def", "_forward_late_fusion", "(", "self", ",", "src_tokens", ":", "Optional", "[", "torch", ".", "LongTensor", "]", ",", "image_features", ":", "Optional", "[", "Union", "[", "List", "[", "object", "]", ",", "torch", ".", "Tensor", "]", "]", ",", ")", ...
[ 342, 4 ]
[ 389, 34 ]
python
en
['en', 'error', 'th']
False
ContextWithImageEncoder._add
(self, tensors: List[Optional[torch.Tensor]])
Handle addition of None tensors. Smart addition. Adds tensors if they are not None. :param tensors: A list of torch.Tensor, with at least one non-null object :return: The result of adding all non-null objects in tensors
Handle addition of None tensors.
def _add(self, tensors: List[Optional[torch.Tensor]]) -> torch.Tensor: """ Handle addition of None tensors. Smart addition. Adds tensors if they are not None. :param tensors: A list of torch.Tensor, with at least one non-null object :return: The result ...
[ "def", "_add", "(", "self", ",", "tensors", ":", "List", "[", "Optional", "[", "torch", ".", "Tensor", "]", "]", ")", "->", "torch", ".", "Tensor", ":", "non_null_tensors", ":", "List", "[", "torch", ".", "Tensor", "]", "=", "[", "t", "for", "t", ...
[ 391, 4 ]
[ 404, 59 ]
python
en
['en', 'error', 'th']
False
ContextWithImageEncoder._cat
(self, tensors: List[Optional[torch.Tensor]])
Handle concatenation of None tensors. Smart concatenation. Concatenates tensors if they are not None. :param tensors: A list of torch.Tensor, with at least one non-null object :return: The result of concatenating all non-null objects in tensors
Handle concatenation of None tensors.
def _cat(self, tensors: List[Optional[torch.Tensor]]) -> torch.Tensor: """ Handle concatenation of None tensors. Smart concatenation. Concatenates tensors if they are not None. :param tensors: A list of torch.Tensor, with at least one non-null object :return: ...
[ "def", "_cat", "(", "self", ",", "tensors", ":", "List", "[", "Optional", "[", "torch", ".", "Tensor", "]", "]", ")", "->", "torch", ".", "Tensor", ":", "non_null_tensors", ":", "List", "[", "torch", ".", "Tensor", "]", "=", "[", "t", "for", "t", ...
[ 406, 4 ]
[ 419, 62 ]
python
en
['en', 'error', 'th']
False
ContextWithImageEncoder._fix_for_fp16
( self, full_enc: torch.Tensor, full_mask: Optional[torch.Tensor] )
In fp16 mode, either remove extra tokens or add new ones on to get to a multiple of 8.
In fp16 mode, either remove extra tokens or add new ones on to get to a multiple of 8.
def _fix_for_fp16( self, full_enc: torch.Tensor, full_mask: Optional[torch.Tensor] ) -> Tuple[torch.Tensor, Optional[torch.Tensor]]: """ In fp16 mode, either remove extra tokens or add new ones on to get to a multiple of 8. """ if full_mask is None: # ful...
[ "def", "_fix_for_fp16", "(", "self", ",", "full_enc", ":", "torch", ".", "Tensor", ",", "full_mask", ":", "Optional", "[", "torch", ".", "Tensor", "]", ")", "->", "Tuple", "[", "torch", ".", "Tensor", ",", "Optional", "[", "torch", ".", "Tensor", "]", ...
[ 421, 4 ]
[ 455, 34 ]
python
en
['en', 'error', 'th']
False
setTTL
(qstate, ttl)
Sets return_msg TTL and all the RRs TTL
Sets return_msg TTL and all the RRs TTL
def setTTL(qstate, ttl): """Sets return_msg TTL and all the RRs TTL""" if qstate.return_msg: qstate.return_msg.rep.ttl = ttl if (qstate.return_msg.rep): for i in range(0,qstate.return_msg.rep.rrset_count): d = qstate.return_msg.rep.rrsets[i].entry.data ...
[ "def", "setTTL", "(", "qstate", ",", "ttl", ")", ":", "if", "qstate", ".", "return_msg", ":", "qstate", ".", "return_msg", ".", "rep", ".", "ttl", "=", "ttl", "if", "(", "qstate", ".", "return_msg", ".", "rep", ")", ":", "for", "i", "in", "range", ...
[ 47, 0 ]
[ 55, 37 ]
python
en
['en', 'en', 'en']
True
debug_upsampling
(dataset, loader)
Shows which labels are sampled according to strategy chosen
Shows which labels are sampled according to strategy chosen
def debug_upsampling(dataset, loader): """Shows which labels are sampled according to strategy chosen""" for epoch in range(10): for batch_i, batch in enumerate(loader): pc1 = batch.points[1].numpy() pc2 = batch.points[2].numpy() up1 = batch.upsamples[1].numpy() ...
[ "def", "debug_upsampling", "(", "dataset", ",", "loader", ")", ":", "for", "epoch", "in", "range", "(", "10", ")", ":", "for", "batch_i", ",", "batch", "in", "enumerate", "(", "loader", ")", ":", "pc1", "=", "batch", ".", "points", "[", "1", "]", "...
[ 1442, 0 ]
[ 1473, 17 ]
python
en
['en', 'en', 'en']
True
debug_timing
(dataset, loader)
Timing of generator function
Timing of generator function
def debug_timing(dataset, loader): """Timing of generator function""" t = [time.time()] last_display = time.time() mean_dt = np.zeros(2) estim_b = dataset.config.batch_num estim_N = 0 for epoch in range(10): for batch_i, batch in enumerate(loader): # print(batch_i, tup...
[ "def", "debug_timing", "(", "dataset", ",", "loader", ")", ":", "t", "=", "[", "time", ".", "time", "(", ")", "]", "last_display", "=", "time", ".", "time", "(", ")", "mean_dt", "=", "np", ".", "zeros", "(", "2", ")", "estim_b", "=", "dataset", "...
[ 1476, 0 ]
[ 1518, 17 ]
python
en
['en', 'jv', 'en']
True
debug_batch_and_neighbors_calib
(dataset, loader)
Timing of generator function
Timing of generator function
def debug_batch_and_neighbors_calib(dataset, loader): """Timing of generator function""" t = [time.time()] last_display = time.time() mean_dt = np.zeros(2) for epoch in range(10): for batch_i, input_list in enumerate(loader): # print(batch_i, tuple(points.shape), tuple(normal...
[ "def", "debug_batch_and_neighbors_calib", "(", "dataset", ",", "loader", ")", ":", "t", "=", "[", "time", ".", "time", "(", ")", "]", "last_display", "=", "time", ".", "time", "(", ")", "mean_dt", "=", "np", ".", "zeros", "(", "2", ")", "for", "epoch...
[ 1576, 0 ]
[ 1610, 17 ]
python
en
['en', 'jv', 'en']
True
LASDataset.__init__
(self, config, set='training', use_potentials=True, load_data=True)
This dataset is small enough to be stored in-memory, so load all point clouds here
This dataset is small enough to be stored in-memory, so load all point clouds here
def __init__(self, config, set='training', use_potentials=True, load_data=True): """ This dataset is small enough to be stored in-memory, so load all point clouds here """ PointCloudDataset.__init__(self, 'LAS') ############ # Parameters ############ # D...
[ "def", "__init__", "(", "self", ",", "config", ",", "set", "=", "'training'", ",", "use_potentials", "=", "True", ",", "load_data", "=", "True", ")", ":", "PointCloudDataset", ".", "__init__", "(", "self", ",", "'LAS'", ")", "############", "# Parameters", ...
[ 58, 4 ]
[ 221, 14 ]
python
en
['en', 'error', 'th']
False
LASDataset.__len__
(self)
Return the length of data here
Return the length of data here
def __len__(self): """ Return the length of data here """ return len(self.cloud_names)
[ "def", "__len__", "(", "self", ")", ":", "return", "len", "(", "self", ".", "cloud_names", ")" ]
[ 223, 4 ]
[ 227, 36 ]
python
en
['en', 'error', 'th']
False
LASDataset.__getitem__
(self, batch_i)
The main thread gives a list of indices to load a batch. Each worker is going to work in parallel to load a different list of indices.
The main thread gives a list of indices to load a batch. Each worker is going to work in parallel to load a different list of indices.
def __getitem__(self, batch_i): """ The main thread gives a list of indices to load a batch. Each worker is going to work in parallel to load a different list of indices. """ if self.use_potentials: return self.potential_item(batch_i) else: return...
[ "def", "__getitem__", "(", "self", ",", "batch_i", ")", ":", "if", "self", ".", "use_potentials", ":", "return", "self", ".", "potential_item", "(", "batch_i", ")", "else", ":", "return", "self", ".", "random_item", "(", "batch_i", ")" ]
[ 229, 4 ]
[ 238, 44 ]
python
en
['en', 'error', 'th']
False
LASDataset.load_evaluation_points
(self, file_path)
Load points (from test or validation split) on which the metrics should be evaluated
Load points (from test or validation split) on which the metrics should be evaluated
def load_evaluation_points(self, file_path): """ Load points (from test or validation split) on which the metrics should be evaluated """ # Get original points points, _, _ = read_raw_las(file_path) return points
[ "def", "load_evaluation_points", "(", "self", ",", "file_path", ")", ":", "# Get original points", "points", ",", "_", ",", "_", "=", "read_raw_las", "(", "file_path", ")", "return", "points" ]
[ 846, 4 ]
[ 853, 21 ]
python
en
['en', 'error', 'th']
False
LASSampler.__iter__
(self)
Yield next batch indices here. In this dataset, this is a dummy sampler that yield the index of batch element (input sphere) in epoch instead of the list of point indices
Yield next batch indices here. In this dataset, this is a dummy sampler that yield the index of batch element (input sphere) in epoch instead of the list of point indices
def __iter__(self): """ Yield next batch indices here. In this dataset, this is a dummy sampler that yield the index of batch element (input sphere) in epoch instead of the list of point indices """ if not self.dataset.use_potentials: # Initiate current epoch ind ...
[ "def", "__iter__", "(", "self", ")", ":", "if", "not", "self", ".", "dataset", ".", "use_potentials", ":", "# Initiate current epoch ind", "self", ".", "dataset", ".", "epoch_i", "*=", "0", "self", ".", "dataset", ".", "epoch_inds", "*=", "0", "# Initiate co...
[ 879, 4 ]
[ 955, 19 ]
python
en
['en', 'error', 'th']
False
LASSampler.__len__
(self)
The number of yielded samples is variable
The number of yielded samples is variable
def __len__(self): """ The number of yielded samples is variable """ return self.N
[ "def", "__len__", "(", "self", ")", ":", "return", "self", ".", "N" ]
[ 957, 4 ]
[ 961, 21 ]
python
en
['en', 'error', 'th']
False
LASSampler.fast_calib
(self)
This method calibrates the batch sizes while ensuring the potentials are well initialized. Indeed on a dataset like Semantic3D, before potential have been updated over the dataset, there are cahnces that all the dense area are picked in the begining and in the end, we will have very large batch...
This method calibrates the batch sizes while ensuring the potentials are well initialized. Indeed on a dataset like Semantic3D, before potential have been updated over the dataset, there are cahnces that all the dense area are picked in the begining and in the end, we will have very large batch...
def fast_calib(self): """ This method calibrates the batch sizes while ensuring the potentials are well initialized. Indeed on a dataset like Semantic3D, before potential have been updated over the dataset, there are cahnces that all the dense area are picked in the begining and in the e...
[ "def", "fast_calib", "(", "self", ")", ":", "# Estimated average batch size and target value", "estim_b", "=", "0", "target_b", "=", "self", ".", "dataset", ".", "config", ".", "batch_num", "# Calibration parameters", "low_pass_T", "=", "10", "Kp", "=", "100.0", "...
[ 963, 4 ]
[ 1038, 21 ]
python
en
['en', 'error', 'th']
False
LASSampler.calibration
(self, dataloader, untouched_ratio=0.9, verbose=False, force_redo=False)
Method performing batch and neighbors calibration. Batch calibration: Set "batch_limit" (the maximum number of points allowed in every batch) so that the average batch size (number of stacked pointclouds) is the one asked. Neighbors calibration: Set the "neigh...
Method performing batch and neighbors calibration. Batch calibration: Set "batch_limit" (the maximum number of points allowed in every batch) so that the average batch size (number of stacked pointclouds) is the one asked. Neighbors calibration: Set the "neigh...
def calibration(self, dataloader, untouched_ratio=0.9, verbose=False, force_redo=False): """ Method performing batch and neighbors calibration. Batch calibration: Set "batch_limit" (the maximum number of points allowed in every batch) so that the average batch ...
[ "def", "calibration", "(", "self", ",", "dataloader", ",", "untouched_ratio", "=", "0.9", ",", "verbose", "=", "False", ",", "force_redo", "=", "False", ")", ":", "##############################", "# Previously saved calibration", "##############################", "prin...
[ 1040, 4 ]
[ 1290, 14 ]
python
en
['en', 'error', 'th']
False
LASCustomBatch.pin_memory
(self)
Manual pinning of the memory
Manual pinning of the memory
def pin_memory(self): """ Manual pinning of the memory """ self.points = [in_tensor.pin_memory() for in_tensor in self.points] self.neighbors = [in_tensor.pin_memory() for in_tensor in self.neighbors] self.pools = [in_tensor.pin_memory() for in_tensor in self.pools] ...
[ "def", "pin_memory", "(", "self", ")", ":", "self", ".", "points", "=", "[", "in_tensor", ".", "pin_memory", "(", ")", "for", "in_tensor", "in", "self", ".", "points", "]", "self", ".", "neighbors", "=", "[", "in_tensor", ".", "pin_memory", "(", ")", ...
[ 1332, 4 ]
[ 1350, 19 ]
python
en
['en', 'error', 'th']
False
LASCustomBatch.unstack_points
(self, layer=None)
Unstack the points
Unstack the points
def unstack_points(self, layer=None): """Unstack the points""" return self.unstack_elements('points', layer)
[ "def", "unstack_points", "(", "self", ",", "layer", "=", "None", ")", ":", "return", "self", ".", "unstack_elements", "(", "'points'", ",", "layer", ")" ]
[ 1369, 4 ]
[ 1371, 53 ]
python
en
['en', 'en', 'en']
True
LASCustomBatch.unstack_neighbors
(self, layer=None)
Unstack the neighbors indices
Unstack the neighbors indices
def unstack_neighbors(self, layer=None): """Unstack the neighbors indices""" return self.unstack_elements('neighbors', layer)
[ "def", "unstack_neighbors", "(", "self", ",", "layer", "=", "None", ")", ":", "return", "self", ".", "unstack_elements", "(", "'neighbors'", ",", "layer", ")" ]
[ 1373, 4 ]
[ 1375, 56 ]
python
en
['en', 'en', 'en']
True
LASCustomBatch.unstack_pools
(self, layer=None)
Unstack the pooling indices
Unstack the pooling indices
def unstack_pools(self, layer=None): """Unstack the pooling indices""" return self.unstack_elements('pools', layer)
[ "def", "unstack_pools", "(", "self", ",", "layer", "=", "None", ")", ":", "return", "self", ".", "unstack_elements", "(", "'pools'", ",", "layer", ")" ]
[ 1377, 4 ]
[ 1379, 52 ]
python
en
['en', 'en', 'en']
True
LASCustomBatch.unstack_elements
(self, element_name, layer=None, to_numpy=True)
Return a list of the stacked elements in the batch at a certain layer. If no layer is given, then return all layers
Return a list of the stacked elements in the batch at a certain layer. If no layer is given, then return all layers
def unstack_elements(self, element_name, layer=None, to_numpy=True): """ Return a list of the stacked elements in the batch at a certain layer. If no layer is given, then return all layers """ if element_name == 'points': elements = self.points elif element_n...
[ "def", "unstack_elements", "(", "self", ",", "element_name", ",", "layer", "=", "None", ",", "to_numpy", "=", "True", ")", ":", "if", "element_name", "==", "'points'", ":", "elements", "=", "self", ".", "points", "elif", "element_name", "==", "'neighbors'", ...
[ 1381, 4 ]
[ 1429, 25 ]
python
en
['en', 'error', 'th']
False
Textfont.color
(self)
Sets the text font color of unselected points, applied only when a selection exists. 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%)...
Sets the text font color of unselected points, applied only when a selection exists. 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%)...
def color(self): """ Sets the text font color of unselected points, applied only when a selection exists. 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 s...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 66, 28 ]
python
en
['en', 'error', 'th']
False
Textfont.__init__
(self, arg=None, color=None, **kwargs)
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.unselected.Textfont` color Sets the text font color of unse...
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.unselected.Textfont` color Sets the text font color of unse...
def __init__(self, arg=None, color=None, **kwargs): """ Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.unselected.Textf...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Textfont", ",", "self", ")", ".", "__init__", "(", "\"textfont\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", ...
[ 82, 4 ]
[ 140, 34 ]
python
en
['en', 'error', 'th']
False
Textfont.color
(self)
Sets the text font color of unselected points, applied only when a selection exists. 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%)...
Sets the text font color of unselected points, applied only when a selection exists. 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%)...
def color(self): """ Sets the text font color of unselected points, applied only when a selection exists. 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 s...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 66, 28 ]
python
en
['en', 'error', 'th']
False
Textfont.__init__
(self, arg=None, color=None, **kwargs)
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.unse lected.Textfont` color Sets the text font color of un...
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.unse lected.Textfont` color Sets the text font color of un...
def __init__(self, arg=None, color=None, **kwargs): """ Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.unse lected.Tex...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Textfont", ",", "self", ")", ".", "__init__", "(", "\"textfont\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", ...
[ 82, 4 ]
[ 140, 34 ]
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.histogram2dcon tour.colorbar.Tickfont` ...
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
pathmaker
(first_segment, *in_path_segments, rev=False)
Normalizes input path or path fragments, replaces '\\\\' with '/' and combines fragments. Parameters ---------- first_segment : str first path segment, if it is 'cwd' gets replaced by 'os.getcwd()' rev : bool, optional If 'True' reverts path back to Windows default, by default None...
Normalizes input path or path fragments, replaces '\\\\' with '/' and combines fragments.
def pathmaker(first_segment, *in_path_segments, rev=False): """ Normalizes input path or path fragments, replaces '\\\\' with '/' and combines fragments. Parameters ---------- first_segment : str first path segment, if it is 'cwd' gets replaced by 'os.getcwd()' rev : bool, optional ...
[ "def", "pathmaker", "(", "first_segment", ",", "*", "in_path_segments", ",", "rev", "=", "False", ")", ":", "_path", "=", "first_segment", "_path", "=", "os", ".", "path", ".", "join", "(", "_path", ",", "*", "in_path_segments", ")", "if", "rev", "is", ...
[ 131, 0 ]
[ 153, 60 ]
python
en
['en', 'error', 'th']
False
random_sampling
(points, num_points, replace=None, return_choices=False)
Random sampling. Sampling point cloud to a certain number of points. Args: points (ndarray): Point cloud. num_points (int): The number of samples. replace (bool): Whether the sample is with or without replacement. return_choices (bool): Whether to return choices. Returns: ...
Random sampling.
def random_sampling(points, num_points, replace=None, return_choices=False): """Random sampling. Sampling point cloud to a certain number of points. Args: points (ndarray): Point cloud. num_points (int): The number of samples. replace (bool): Whether the sample is with or without r...
[ "def", "random_sampling", "(", "points", ",", "num_points", ",", "replace", "=", "None", ",", "return_choices", "=", "False", ")", ":", "if", "replace", "is", "None", ":", "replace", "=", "(", "points", ".", "shape", "[", "0", "]", "<", "num_points", "...
[ 7, 0 ]
[ 28, 30 ]
python
sv
['sv', 'sv', 'en']
False
SUNRGBDData.get_infos
(self, num_workers=4, has_label=True, sample_id_list=None)
Get data infos. This method gets information from the raw data. Args: num_workers (int): Number of threads to be used. Default: 4. has_label (bool): Whether the data has label. Default: True. sample_id_list (list[int]): Index list of the sample. Defa...
Get data infos.
def get_infos(self, num_workers=4, has_label=True, sample_id_list=None): """Get data infos. This method gets information from the raw data. Args: num_workers (int): Number of threads to be used. Default: 4. has_label (bool): Whether the data has label. Default: True. ...
[ "def", "get_infos", "(", "self", ",", "num_workers", "=", "4", ",", "has_label", "=", "True", ",", "sample_id_list", "=", "None", ")", ":", "def", "process_single_scene", "(", "sample_idx", ")", ":", "print", "(", "f'{self.split} sample_idx: {sample_idx}'", ")",...
[ 123, 4 ]
[ 219, 26 ]
python
en
['fr', 'lb', 'en']
False
make_subplots
( rows=1, cols=1, shared_xaxes=False, shared_yaxes=False, start_cell="top-left", print_grid=False, horizontal_spacing=None, vertical_spacing=None, subplot_titles=None, column_widths=None, row_heights=None, specs=None, insets=None, column_titles=None, row_title...
Return an instance of plotly.graph_objs.Figure with predefined subplots configured in 'layout'. Parameters ---------- rows: int (default 1) Number of rows in the subplot grid. Must be greater than zero. cols: int (default 1) Number of columns in the subplot grid. Must be great...
Return an instance of plotly.graph_objs.Figure with predefined subplots configured in 'layout'.
def make_subplots( rows=1, cols=1, shared_xaxes=False, shared_yaxes=False, start_cell="top-left", print_grid=False, horizontal_spacing=None, vertical_spacing=None, subplot_titles=None, column_widths=None, row_heights=None, specs=None, insets=None, column_titles=No...
[ "def", "make_subplots", "(", "rows", "=", "1", ",", "cols", "=", "1", ",", "shared_xaxes", "=", "False", ",", "shared_yaxes", "=", "False", ",", "start_cell", "=", "\"top-left\"", ",", "print_grid", "=", "False", ",", "horizontal_spacing", "=", "None", ","...
[ 44, 0 ]
[ 817, 14 ]
python
en
['en', 'error', 'th']
False
SparseSequential.fused
(self)
don't use this. no effect.
don't use this.
def fused(self): """don't use this. no effect. """ from .conv import SparseConvolution mods = [v for k, v in self._modules.items()] fused_mods = [] idx = 0 while idx < len(mods): if is_sparse_conv(mods[idx]): if idx < len(mods)...
[ "def", "fused", "(", "self", ")", ":", "from", ".", "conv", "import", "SparseConvolution", "mods", "=", "[", "v", "for", "k", ",", "v", "in", "self", ".", "_modules", ".", "items", "(", ")", "]", "fused_mods", "=", "[", "]", "idx", "=", "0", "whi...
[ 138, 4 ]
[ 186, 44 ]
python
en
['en', 'en', 'en']
True
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.table.hoverlabel.Font` color c...
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
build_deprecated_datatypes_py
()
Build datatype (graph_objs) class source code string for deprecated datatypes Returns ------- str
Build datatype (graph_objs) class source code string for deprecated datatypes
def build_deprecated_datatypes_py(): """ Build datatype (graph_objs) class source code string for deprecated datatypes Returns ------- str """ # Initialize source code buffer # ----------------------------- buffer = StringIO() # Write warnings import # ----------------...
[ "def", "build_deprecated_datatypes_py", "(", ")", ":", "# Initialize source code buffer", "# -----------------------------", "buffer", "=", "StringIO", "(", ")", "# Write warnings import", "# ---------------------", "buffer", ".", "write", "(", "\"import warnings\\n\"", ")", ...
[ 43, 0 ]
[ 96, 28 ]
python
en
['en', 'error', 'th']
False
build_deprecation_message
(class_name, base_type, new)
Build deprecation warning message for a deprecated class Parameters ---------- class_name : str Name of a deprecated class base_type: type base class (either list or dict) new: list of str List of replacements that users should use instead. Replacements may be: ...
Build deprecation warning message for a deprecated class
def build_deprecation_message(class_name, base_type, new): """ Build deprecation warning message for a deprecated class Parameters ---------- class_name : str Name of a deprecated class base_type: type base class (either list or dict) new: list of str List of replace...
[ "def", "build_deprecation_message", "(", "class_name", ",", "base_type", ",", "new", ")", ":", "replacements", "=", "[", "]", "for", "repl", "in", "new", ":", "if", "repl", "==", "\"etc.\"", ":", "replacements", ".", "append", "(", "repl", ")", "else", "...
[ 99, 0 ]
[ 159, 3 ]
python
en
['en', 'error', 'th']
False
write_deprecated_datatypes
(outdir)
Build source code for deprecated datatype class definitions and write them to a file Parameters ---------- outdir : Root outdir in which the graph_objs package should reside Returns ------- None
Build source code for deprecated datatype class definitions and write them to a file
def write_deprecated_datatypes(outdir): """ Build source code for deprecated datatype class definitions and write them to a file Parameters ---------- outdir : Root outdir in which the graph_objs package should reside Returns ------- None """ # Generate source code ...
[ "def", "write_deprecated_datatypes", "(", "outdir", ")", ":", "# Generate source code", "# --------------------", "datatype_source", "=", "build_deprecated_datatypes_py", "(", ")", "filepath", "=", "opath", ".", "join", "(", "outdir", ",", "\"graph_objs\"", ",", "\"_dep...
[ 162, 0 ]
[ 183, 46 ]
python
en
['en', 'error', 'th']
False
write_graph_objs_graph_objs
(outdir)
Write the plotly/graph_objs/graph_objs.py file This module just imports everything from the plotly.graph_objs package. We write it for backward compatibility with legacy imports like: from plotly.graph_objs import graph_objs Parameters ---------- outdir : str Root outdir in which...
Write the plotly/graph_objs/graph_objs.py file
def write_graph_objs_graph_objs(outdir): """ Write the plotly/graph_objs/graph_objs.py file This module just imports everything from the plotly.graph_objs package. We write it for backward compatibility with legacy imports like: from plotly.graph_objs import graph_objs Parameters --------...
[ "def", "write_graph_objs_graph_objs", "(", "outdir", ")", ":", "filepath", "=", "opath", ".", "join", "(", "outdir", ",", "\"graph_objs\"", ",", "\"graph_objs.py\"", ")", "with", "open", "(", "filepath", ",", "\"wt\"", ")", "as", "f", ":", "f", ".", "write...
[ 186, 0 ]
[ 210, 9 ]
python
en
['en', 'error', 'th']
False
anchor
(self)
If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to "free", this axis' position is determined by `position`. The 'anchor' property is an enumeration that may be specified as: - One of the following...
If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to "free", this axis' position is determined by `position`. The 'anchor' property is an enumeration that may be specified as: - One of the following...
def anchor(self): """ If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to "free", this axis' position is determined by `position`. The 'anchor' property is an enumeration that may be specified as: ...
[ "def", "anchor", "(", "self", ")", ":", "return", "self", "[", "\"anchor\"", "]" ]
[ 92, 4 ]
[ 108, 29 ]
python
en
['en', 'error', 'th']
False