_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_26000
Returns the maximum GPU memory managed by the caching allocator in bytes for a given device. By default, this returns the peak cached memory since the beginning of this program. reset_peak_stats() can be used to reset the starting point in tracking this metric. For example, these two functions can measure the peak ca...
doc_26001
Resizes the map and the underlying file, if any. If the mmap was created with ACCESS_READ or ACCESS_COPY, resizing the map will raise a TypeError exception.
doc_26002
An entity reference contained another reference to the same entity; possibly via a different name, and possibly indirectly.
doc_26003
Fill the area between two vertical curves. The curves are defined by the points (y, x1) and (y, x2). This creates one or multiple polygons describing the filled area. You may exclude some vertical sections from filling using where. By default, the edges connect the given points directly. Use step if the filling shoul...
doc_26004
tf.test.compute_gradient( f, x, delta=0.001 ) With y = f(x), computes the theoretical and numeric Jacobian dy/dx. Args f the function. x the arguments for the function as a list or tuple of values convertible to a Tensor. delta (optional) perturbation used to compute numeric Jacobian. ...
doc_26005
Override to construct the dialog’s interface and return the widget that should have initial focus.
doc_26006
See Migration guide for more details. tf.compat.v1.raw_ops.EnsureShape tf.raw_ops.EnsureShape( input, shape, name=None ) Raises an error if the input tensor's shape does not match the specified shape. Returns the input tensor otherwise. Args input A Tensor. A tensor, whose shape is to be validated. ...
doc_26007
Plot a set of filled voxels All voxels are plotted as 1x1x1 cubes on the axis, with filled[0, 0, 0] placed with its lower corner at the origin. Occluded faces are not plotted. Parameters filled3D np.array of bool A 3D array of values, with truthy values indicating which voxels to fill x, y, z3D np.array, opti...
doc_26008
See Migration guide for more details. tf.compat.v1.nn.collapse_repeated tf.nn.collapse_repeated( labels, seq_length, name=None ) Args labels Tensor of shape [batch, max value in seq_length] seq_length Tensor of shape [batch], sequence length of each batch element. name A name for this Op. De...
doc_26009
This function is analogous to getgeneratorlocals(), but works for coroutine objects created by async def functions. New in version 3.5.
doc_26010
Returns the WKB (Well-Known Binary) representation of this Geometry as a Python buffer. SRID value is not included, use the GEOSGeometry.ewkb property instead.
doc_26011
Decodes the URL to a tuple made out of strings. The charset is only being used for the path, query and fragment. Parameters charset (str) – errors (str) – Return type werkzeug.urls.URL
doc_26012
A list of logging.LogRecord objects of the matching log messages.
doc_26013
Get parameters for this estimator. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns paramsdict Parameter names mapped to their values.
doc_26014
Reduce X to the selected features. Parameters Xarray of shape [n_samples, n_features] The input samples. Returns X_rarray of shape [n_samples, n_selected_features] The input samples with only the selected features.
doc_26015
Set StepPatch values, edges and baseline. Parameters values1D array-like or None Will not update values, if passing None edges1D array-like, optional baselinefloat, 1D array-like or None
doc_26016
The last colorbar associated with this ScalarMappable. May be None.
doc_26017
A torch.nn.Conv1d module with lazy initialization of the in_channels argument of the Conv1d that is inferred from the input.size(1). Parameters out_channels (int) – Number of channels produced by the convolution kernel_size (int or tuple) – Size of the convolving kernel stride (int or tuple, optional) – Stride ...
doc_26018
Set the colormap to 'hot'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
doc_26019
Get parameters for this estimator. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns paramsdict Parameter names mapped to their values.
doc_26020
The torch.quasirandom.SobolEngine is an engine for generating (scrambled) Sobol sequences. Sobol sequences are an example of low discrepancy quasi-random sequences. This implementation of an engine for Sobol sequences is capable of sampling sequences up to a maximum dimension of 21201. It uses direction numbers from ...
doc_26021
sklearn.metrics.pairwise_distances_argmin_min(X, Y, *, axis=1, metric='euclidean', metric_kwargs=None) [source] Compute minimum distances between one point and a set of points. This function computes for each row in X, the index of the row of Y which is closest (according to the specified distance). The minimal dista...
doc_26022
Set the text value of the axis label. Parameters labelstr Text string. fontdictdict Text properties. **kwargs Merged into fontdict.
doc_26023
Return (x1 > x2) element-wise. Unlike numpy.greater, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters x1, x2array_like of str or unicode Input arrays of the same shape. Returns o...
doc_26024
Remove a click (by default, the last) from the list of clicks. Parameters eventMouseEvent
doc_26025
Calculate the rolling rank. New in version 1.4.0. Parameters method:{‘average’, ‘min’, ‘max’}, default ‘average’ How to rank the group of records that have the same value (i.e. ties): average: average rank of the group min: lowest rank in the group max: highest rank in the group ascending:bool, default Tr...
doc_26026
The binary data encapsulated by the Binary instance. The data is provided as a bytes object.
doc_26027
Returns the id for the new node to be inserted. The current implementation returns one more than the maximum id. Returns idint The id of the new node to be inserted.
doc_26028
Return the imaginary part of the complex argument. Parameters valarray_like Input array. Returns outndarray or scalar The imaginary component of the complex argument. If val is real, the type of val is used for the output. If val has complex elements, the returned type is float. See also real, an...
doc_26029
tf.compat.v1.enable_v2_tensorshape() This enables the new behavior. Concretely, tensor_shape[i] returned a Dimension instance in V1, but it V2 it returns either an integer, or None. Examples: ####################### # If you had this in V1: value = tensor_shape[i].value # Do this in V2 instead: value = tensor_shape[i...
doc_26030
class torch.futures.Future Wrapper around a torch._C.Future which encapsulates an asynchronous execution of a callable, e.g. rpc_async(). It also exposes a set of APIs to add callback functions and set results. add_done_callback(self: torch._C.Future, arg0: function) → None done() [source] Return True if this...
doc_26031
Return the artist's zorder.
doc_26032
A base class that provides default implementations for all required methods. By default, it will reject any user and provide no permissions. get_user_permissions(user_obj, obj=None) Returns an empty set. get_group_permissions(user_obj, obj=None) Returns an empty set. get_all_permissions(user_obj, obj=None...
doc_26033
The URL to redirect to after logout. Defaults to LOGOUT_REDIRECT_URL.
doc_26034
Perform clustering on X and returns cluster labels. Parameters Xarray-like of shape (n_samples, n_features) Input data. yIgnored Not used, present for API consistency by convention. Returns labelsndarray of shape (n_samples,), dtype=np.int64 Cluster labels.
doc_26035
class xml.sax.xmlreader.XMLReader Base class which can be inherited by SAX parsers. class xml.sax.xmlreader.IncrementalParser In some cases, it is desirable not to parse an input source at once, but to feed chunks of the document as they get available. Note that the reader will normally not read the entire file...
doc_26036
Generate a HermiteE series with given roots. The function returns the coefficients of the polynomial \[p(x) = (x - r_0) * (x - r_1) * ... * (x - r_n),\] in HermiteE form, where the r_n are the roots specified in roots. If a zero has multiplicity n, then it must appear in roots n times. For instance, if 2 is a root o...
doc_26037
Calculate the rolling weighted window variance. New in version 1.0.0. Parameters **kwargs Keyword arguments to configure the SciPy weighted window type. Returns Series or DataFrame Return type is the same as the original object with np.float64 dtype. See also pandas.Series.rolling Calling rolling w...
doc_26038
A named tuple holding information about the float type. It contains low level information about the precision and internal representation. The values correspond to the various floating-point constants defined in the standard header file float.h for the ‘C’ programming language; see section 5.2.4.2.2 of the 1999 ISO/IEC...
doc_26039
Transform data back to its original space. Parameters Xarray-like of shape (n_samples, n_components) New data, where n_samples is the number of samples and n_components is the number of pls components. Returns x_reconstructedarray-like of shape (n_samples, n_features) Notes This transformation will on...
doc_26040
Return the url.
doc_26041
Learn empirical variances from X. Parameters X{array-like, sparse matrix}, shape (n_samples, n_features) Sample vectors from which to compute variances. yany, default=None Ignored. This parameter exists only for compatibility with sklearn.pipeline.Pipeline. Returns self
doc_26042
Performs unbuffered in place operation on operand ‘a’ for elements specified by ‘indices’. For addition ufunc, this method is equivalent to a[indices] += b, except that results are accumulated for elements that are indexed more than once. For example, a[[0,0]] += 1 will only increment the first element once because o...
doc_26043
Return the units for axis.
doc_26044
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorCirculant tf.linalg.LinearOperatorCirculant( spectrum, input_output_dtype=tf.dtypes.complex64, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=True, name='LinearOperatorCirculant' ) This operator acts...
doc_26045
Header-encode the string string. The type of encoding (base64 or quoted-printable) will be based on the header_encoding attribute.
doc_26046
Return the edge color.
doc_26047
Example: 'fav_color' in request.session
doc_26048
Checks for an ASCII control character (ordinal values 0 to 31).
doc_26049
Render a DataFrame as an HTML table. Parameters buf:str, Path or StringIO-like, optional, default None Buffer to write to. If None, the output is returned as a string. columns:sequence, optional, default None The subset of columns to write. Writes all columns by default. col_space:str or int, list or dict...
doc_26050
Perform dimensionality reduction on X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) New data. Returns X_newndarray of shape (n_samples, n_components) Reduced version of X. This will always be a dense array.
doc_26051
Return the sizes ('areas') of the elements in the collection. Returns array The 'area' of each element.
doc_26052
Enables support for top-level await, async for, async with and async comprehensions. New in version 3.8.
doc_26053
Absolute path to the package on the filesystem. Used to look up resources contained in the package.
doc_26054
Converts this geometry to canonical form: >>> g = MultiPoint(Point(0, 0), Point(2, 2), Point(1, 1)) >>> print(g) MULTIPOINT (0 0, 2 2, 1 1) >>> g.normalize() >>> print(g) MULTIPOINT (2 2, 1 1, 0 0)
doc_26055
Create a video display information object Info() -> VideoInfo Creates a simple object containing several attributes to describe the current graphics environment. If this is called before pygame.display.set_mode() some platforms can provide information about the default display mode. This can also be called after sett...
doc_26056
tf.compat.v1.nn.dilation2d( input, filter=None, strides=None, rates=None, padding=None, name=None, filters=None, dilations=None ) The input tensor has shape [batch, in_height, in_width, depth] and the filter tensor has shape [filter_height, filter_width, depth], i.e., each input channel is processed independen...
doc_26057
Returns a new tensor with the hyperbolic tangent of the elements of input. outi=tanh⁡(inputi)\text{out}_{i} = \tanh(\text{input}_{i}) Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4) >>> a tensor([ 0.8986, -0.7279, 1.17...
doc_26058
The metadata of this raster, represented as a nested dictionary. The first-level key is the metadata domain. The second-level contains the metadata item names and values from each domain. To set or update a metadata item, pass the corresponding metadata item to the method using the nested structure described above. Onl...
doc_26059
The value of the start parameter (or 0 if the parameter was not supplied)
doc_26060
Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parameters module (nn.Module) – module containing the tensor to prune name (str) – parameter name within module on which pruning will act.
doc_26061
[Deprecated] Set the cursor. Notes Deprecated since version 3.5.
doc_26062
Round elements of the array to the nearest integer. Parameters xarray_like Input array. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is r...
doc_26063
Set a Python function to be used when pretty printing arrays. Parameters ffunction or None Function to be used to pretty print arrays. The function should expect a single array argument and return a string of the representation of the array. If None, the function is reset to the default NumPy function to print ...
doc_26064
Browsers will not allow JavaScript access to cookies marked as “HTTP only” for security. Default: True
doc_26065
The debugging flags necessary for the collector to print information about a leaking program (equal to DEBUG_COLLECTABLE | DEBUG_UNCOLLECTABLE | DEBUG_SAVEALL).
doc_26066
Bases: matplotlib.patheffects.TickedStroke A shortcut PathEffect for applying TickedStroke and then drawing the original Artist. With this class you can use artist.set_path_effects([path_effects.withTickedStroke()]) as a shortcut for artist.set_path_effects([path_effects.TickedStroke(), path...
doc_26067
Color difference from the CMC l:c standard. This color difference was developed by the Colour Measurement Committee (CMC) of the Society of Dyers and Colourists (United Kingdom). It is intended for use in the textile industry. The scale factors kL, kC set the weight given to differences in lightness and chroma relati...
doc_26068
Alias for set_linewidth.
doc_26069
Return the Transform instance used by this artist.
doc_26070
Set the artist offset transform. Parameters transOffsetTransform
doc_26071
Get a fontconfig pattern suitable for looking up the font as specified with fontconfig's fc-match utility. This support does not depend on fontconfig; we are merely borrowing its pattern syntax for use here.
doc_26072
sklearn.metrics.roc_curve(y_true, y_score, *, pos_label=None, sample_weight=None, drop_intermediate=True) [source] Compute Receiver operating characteristic (ROC). Note: this implementation is restricted to the binary classification task. Read more in the User Guide. Parameters y_truendarray of shape (n_samples,)...
doc_26073
Applies Niblack local threshold to an array. A threshold T is calculated for every pixel in the image using the following formula: T = m(x,y) - k * s(x,y) where m(x,y) and s(x,y) are the mean and standard deviation of pixel (x,y) neighborhood defined by a rectangular window with size w times w centered around the pi...
doc_26074
Get the character encoding of this InputSource.
doc_26075
Return any data available in the cooked queue (very lazy). Raise EOFError if connection closed and no data available. Return b'' if no cooked data available otherwise. This method never blocks.
doc_26076
An optional string of a field name (with an optional "-" prefix which indicates descending order) or an expression (or a tuple or list of strings and/or expressions) that specifies the ordering of the elements in the result string. Examples are the same as for ArrayAgg.ordering.
doc_26077
Alias for the signed integer type (one of numpy.byte, numpy.short, numpy.intc, numpy.int_ and np.longlong) that is the same size as a pointer. Compatible with the C intptr_t. Character code 'p'
doc_26078
See Migration guide for more details. tf.compat.v1.math.rsqrt, tf.compat.v1.rsqrt tf.math.rsqrt( x, name=None ) For example: x = tf.constant([2., 0., -2.]) tf.math.rsqrt(x) <tf.Tensor: shape=(3,), dtype=float32, numpy=array([0.707, inf, nan], dtype=float32)> Args x A tf.Tensor. Must be one of the foll...
doc_26079
Exception raised when non-blocking put() (or put_nowait()) is called on a Queue object which is full.
doc_26080
bytearray.translate(table, /, delete=b'') Return a copy of the bytes or bytearray object where all bytes occurring in the optional argument delete are removed, and the remaining bytes have been mapped through the given translation table, which must be a bytes object of length 256. You can use the bytes.maketrans() me...
doc_26081
Test whether the mouse event occurred on the figure. Returns bool, {}
doc_26082
Apply only the affine part of this transformation on the given array of values. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally a no-op. In affine transformations, this is equivalent to transform(values). Parameters valuesa...
doc_26083
Return True if the argument is a (positive or negative) zero and False otherwise.
doc_26084
Returns the current setting for the weekday to start each week.
doc_26085
load new BMP image from a file (or file-like object) load_basic(file) -> Surface Load an image from a file source. You can pass either a filename or a Python file-like object. This function only supports loading "basic" image format, ie BMP format. This function is always available, no matter how pygame was built.
doc_26086
In range(60).
doc_26087
tf.keras.mixed_precision.experimental.set_policy tf.keras.mixed_precision.set_global_policy( policy ) The global policy is the default tf.keras.mixed_precision.Policy used for layers, if no policy is passed to the layer constructor. tf.keras.mixed_precision.set_global_policy('mixed_float16') tf.keras.mixed_prec...
doc_26088
The field on the current object instance that can be used to determine the name of a candidate template. If either template_name_field itself or the value of the template_name_field on the current object instance is None, the object will not be used for a candidate template name.
doc_26089
Control the number of TLS 1.3 session tickets of a TLS_PROTOCOL_SERVER context. The setting has no impact on TLS 1.0 to 1.2 connections. Note This attribute is not available unless the ssl module is compiled with OpenSSL 1.1.1 or newer. New in version 3.8.
doc_26090
Returns the day of the week (0 is Monday) for year (1970–…), month (1–12), day (1–31).
doc_26091
[Deprecated] Notes Deprecated since version 3.5:
doc_26092
Exception raised when the put_nowait() method is called on a queue that has reached its maxsize.
doc_26093
This class provides run_script() and report() methods to determine the set of modules imported by a script. path can be a list of directories to search for modules; if not specified, sys.path is used. debug sets the debugging level; higher values make the class print debugging messages about what it’s doing. excludes i...
doc_26094
class frozenset([iterable]) Return a new set or frozenset object whose elements are taken from iterable. The elements of a set must be hashable. To represent sets of sets, the inner sets must be frozenset objects. If iterable is not specified, a new empty set is returned. Sets can be created by several means: Use a ...
doc_26095
Set the linestyle(s) for the collection. linestyle description '-' or 'solid' solid line '--' or 'dashed' dashed line '-.' or 'dashdot' dash-dotted line ':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq), where onoffseq is an even length tup...
doc_26096
Return the bool of a single element Series or DataFrame. This must be a boolean scalar value, either True or False. It will raise a ValueError if the Series or DataFrame does not have exactly 1 element, or that element is not boolean (integer values 0 and 1 will also raise an exception). Returns bool The value in...
doc_26097
What environment the app is running in. Flask and extensions may enable behaviors based on the environment, such as enabling debug mode. This maps to the ENV config key. This is set by the FLASK_ENV environment variable and may not behave as expected if set in code. Do not enable development when deploying in productio...
doc_26098
Computes a partial inverse of MaxPool1d. See MaxUnpool1d for details.
doc_26099
Method called when an empty line is entered in response to the prompt. If this method is not overridden, it repeats the last nonempty command entered.