_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_2700
Set the artist offset transform. Parameters transOffsetTransform
doc_2701
Signals the division of a non-infinite number by zero. Can occur with division, modulo division, or when raising a number to a negative power. If this signal is not trapped, returns Infinity or -Infinity with the sign determined by the inputs to the calculation.
doc_2702
Alias for get_linestyle.
doc_2703
The application namespace for the URL pattern that matches the URL.
doc_2704
gzip.open(filename, mode='rb', compresslevel=9, encoding=None, errors=None, newline=None) Open a gzip-compressed file in binary or text mode, returning a file object. The filename argument can be an actual filename (a str or bytes object), or an existing file object to read from or write to. The mode argument can be ...
doc_2705
The initial character set specified. Common aliases are converted to their official email names (e.g. latin_1 is converted to iso-8859-1). Defaults to 7-bit us-ascii.
doc_2706
The prefix that the application is mounted under, without a trailing slash. path comes after this.
doc_2707
skimage.measure.approximate_polygon(coords, …) Approximate a polygonal chain with the specified tolerance. skimage.measure.block_reduce(image, block_size) Downsample image by applying function func to local blocks. skimage.measure.euler_number(image[, …]) Calculate the Euler characteristic in binary image. skimag...
doc_2708
Overrides the standard draw_path to add the shadow offset and necessary color changes for the shadow.
doc_2709
A dictionary acting as a cache for finder objects. The keys are paths that have been passed to sys.path_hooks and the values are the finders that are found. If a path is a valid file system path but no finder is found on sys.path_hooks then None is stored. Originally specified in PEP 302. Changed in version 3.3: None ...
doc_2710
Alias for set_edgecolor.
doc_2711
Bases: matplotlib.offsetbox.AnchoredOffsetbox An anchored container with transformed coordinates. Artists added to the drawing_area are scaled according to the coordinates of the transformation used. The dimensions of this artist will scale to contain the artists added. Parameters transformmatplotlib.transforms.T...
doc_2712
Helper function to obtain the location of a corner of a bbox Parameters bboxmatplotlib.transforms.Bbox loc{1, 2, 3, 4} Corner of bbox. Valid values are: 'upper right' : 1, 'upper left' : 2, 'lower left' : 3, 'lower right' : 4 Returns x, yfloat Coordinates of the corner specified by loc.
doc_2713
Return the indices of the elements that are non-zero. Refer to numpy.nonzero for full documentation. See also numpy.nonzero equivalent function
doc_2714
Build the max tree from an image. Component trees represent the hierarchical structure of the connected components resulting from sequential thresholding operations applied to an image. A connected component at one level is parent of a component at a higher level if the latter is included in the first. A max-tree is ...
doc_2715
Similar to thread_time() but return time as nanoseconds. New in version 3.7.
doc_2716
Return a CoverageResults object that contains the cumulative results of all previous calls to run, runctx and runfunc for the given Trace instance. Does not reset the accumulated trace results.
doc_2717
Parse a query string given as a string argument (data of type application/x-www-form-urlencoded). Data are returned as a dictionary. The dictionary keys are the unique query variable names and the values are lists of values for each name. The optional argument keep_blank_values is a flag indicating whether blank values...
doc_2718
Helper function to obtain a Path from one bbox to another. Parameters bbox1, bbox2matplotlib.transforms.Bbox Bounding boxes to connect. loc1{1, 2, 3, 4} Corner of bbox1 to use. Valid values are: 'upper right' : 1, 'upper left' : 2, 'lower left' : 3, 'lower right' : 4 loc2{1, 2, 3, 4}, optional Co...
doc_2719
See Migration guide for more details. tf.compat.v1.sets.set_size, tf.compat.v1.sets.size tf.sets.size( a, validate_indices=True ) Args a SparseTensor, with indices sorted in row-major order. validate_indices Whether to validate the order and range of sparse indices in a. Returns int32 Te...
doc_2720
Headers are folded using the Header folding algorithm, which preserves existing line breaks in the value, and wraps each resulting line to the max_line_length. Non-ASCII binary data are CTE encoded using the unknown-8bit charset.
doc_2721
Represents the C unsigned int datatype. The constructor accepts an optional integer initializer; no overflow checking is done. On platforms where sizeof(int) == sizeof(long) it is an alias for c_ulong.
doc_2722
Averages all function events over their keys. Parameters group_by_input_shapes – group entries by name, input shapes) rather than just event name. ((event) – is useful to see which input shapes contribute to the runtime (This) – most and may help with size-specific optimizations or (the) – the best candida...
doc_2723
Tag the value and dump it to a compact JSON string. Parameters value (Any) – Return type str
doc_2724
Do nothing and return the estimator unchanged This method is just there to implement the usual API and hence work in pipelines. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data to estimate the normalization parameters. yNone Ignored. Returns selfobject Fitted transfo...
doc_2725
Reset the encoder to the initial state. The output is discarded: call .encode(object, final=True), passing an empty byte or text string if necessary, to reset the encoder and to get the output.
doc_2726
Alias for set_edgecolor.
doc_2727
Predict the labels (1 inlier, -1 outlier) of X according to LOF. Only available for novelty detection (when novelty is set to True). This method allows to generalize prediction to new observations (not in the training set). Parameters Xarray-like of shape (n_samples, n_features) The query sample or samples to com...
doc_2728
Interpolate a function at the Chebyshev points of the first kind. Returns the series that interpolates func at the Chebyshev points of the first kind scaled and shifted to the domain. The resulting series tends to a minmax approximation of func when the function is continuous in the domain. New in version 1.14.0. ...
doc_2729
Transforms a string to one that can be used in locale-aware comparisons. For example, strxfrm(s1) < strxfrm(s2) is equivalent to strcoll(s1, s2) < 0. This function can be used when the same string is compared repeatedly, e.g. when collating a sequence of strings.
doc_2730
Blit the canvas in bbox (default entire canvas).
doc_2731
See Migration guide for more details. tf.compat.v1.raw_ops.SnapshotDataset tf.raw_ops.SnapshotDataset( input_dataset, path, output_types, output_shapes, compression='', reader_path_prefix='', writer_path_prefix='', shard_size_bytes=10737418240, pending_snapshot_expiry_seconds=86400, num_reader_threads...
doc_2732
Return list of supplemental group ids associated with the current process. Availability: Unix. Note On Mac OS X, getgroups() behavior differs somewhat from other Unix platforms. If the Python interpreter was built with a deployment target of 10.5 or earlier, getgroups() returns the list of effective group ids associat...
doc_2733
The number of inputs. Data attribute containing the number of arguments the ufunc treats as input. Examples >>> np.add.nin 2 >>> np.multiply.nin 2 >>> np.power.nin 2 >>> np.exp.nin 1
doc_2734
Computes the inverse of hfft(). input must be a real-valued signal, interpreted in the Fourier domain. The IFFT of a real signal is Hermitian-symmetric, X[i] = conj(X[-i]). ihfft() represents this in the one-sided form where only the positive frequencies below the Nyquist frequency are included. To compute the full out...
doc_2735
See Migration guide for more details. tf.compat.v1.raw_ops.DecodeGif tf.raw_ops.DecodeGif( contents, name=None ) GIF images with frame or transparency compression are not supported. On Linux and MacOS systems, convert animated GIFs from compressed to uncompressed by running: convert $src.gif -coalesce $dst.gif ...
doc_2736
Returns a tensor filled with the scalar value 0, with the shape defined by the variable argument size. Parameters size (int...) – a sequence of integers defining the shape of the output tensor. Can be a variable number of arguments or a collection like a list or tuple. Keyword Arguments out (Tensor, optional) – t...
doc_2737
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
doc_2738
Defaults to %(expression)s OVER (%(window)s)'. If only the expression argument is provided, the window clause will be blank.
doc_2739
Set the edgecolor. Parameters ccolor Notes This method does not modify the facecolor (which defaults to "none"), unlike the Patch.set_color method defined in the parent class. Use Patch.set_facecolor to set the facecolor.
doc_2740
Alias for get_linestyle.
doc_2741
tf.compat.v1.gfile.ListDirectory( dirname ) The list is in arbitrary order. It does not contain the special entries "." and "..". Args dirname string, path to a directory Returns [filename1, filename2, ... filenameN] as strings Raises errors.NotFoundError if directory doesn't exist
doc_2742
Returns a new tensor with the sine of the elements of input. outi=sin⁡(inputi)\text{out}_{i} = \sin(\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.5461, 0.1347, -2.7266, -0.2746]) >>...
doc_2743
Takes a list of valid values and returns a “compressed” version of those values – in a single value. For example, SplitDateTimeField is a subclass which combines a time field and a date field into a datetime object. This method must be implemented in the subclasses.
doc_2744
Filesystem path to the application directory, e.g. '/usr/lib/pythonX.Y/dist-packages/django/contrib/admin'. In most cases, Django can automatically detect and set this, but you can also provide an explicit override as a class attribute on your AppConfig subclass. In a few situations this is required; for instance if th...
doc_2745
Get whether the Axes rectangle patch is drawn.
doc_2746
A function definition. name is a raw string of the function name. args is a arguments node. body is the list of nodes inside the function. decorator_list is the list of decorators to be applied, stored outermost first (i.e. the first in the list will be applied last). returns is the return annotation. type_com...
doc_2747
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
doc_2748
Left bound for the interval.
doc_2749
Return peaks in a straight line Hough transform. Identifies most prominent lines separated by a certain angle and distance in a Hough transform. Non-maximum suppression with different sizes is applied separately in the first (distances) and second (angles) dimension of the Hough space to identify peaks. Parameters ...
doc_2750
The etag parsed and unquoted. Ranges always operate on strong etags so the weakness information is not necessary.
doc_2751
The number of signals which the process may queue. Availability: Linux 2.6.8 or later. New in version 3.4.
doc_2752
Create a new Snapshot instance with a filtered traces sequence, filters is a list of DomainFilter and Filter instances. If filters is an empty list, return a new Snapshot instance with a copy of the traces. All inclusive filters are applied at once, a trace is ignored if no inclusive filters match it. A trace is ignore...
doc_2753
Wait until notified or until a timeout occurs. If the calling thread has not acquired the lock when this method is called, a RuntimeError is raised. This method releases the underlying lock, and then blocks until it is awakened by a notify() or notify_all() call for the same condition variable in another thread, or unt...
doc_2754
Annotate the point xy with text text. In the simplest form, the text is placed at xy. Optionally, the text can be displayed in another position xytext. An arrow pointing from the text to the annotated point xy can then be added by defining arrowprops. Parameters textstr The text of the annotation. xy(float, f...
doc_2755
In-place version of add()
doc_2756
A TLSVersion enum member representing the highest supported TLS version. The value defaults to TLSVersion.MAXIMUM_SUPPORTED. The attribute is read-only for protocols other than PROTOCOL_TLS, PROTOCOL_TLS_CLIENT, and PROTOCOL_TLS_SERVER. The attributes maximum_version, minimum_version and SSLContext.options all affect t...
doc_2757
Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc)) <type 'Locator'> >>> print(loc()) [1, 2, 3, 4]
doc_2758
Draw samples from the Dirichlet distribution. Draw size samples of dimension k from a Dirichlet distribution. A Dirichlet-distributed random variable can be seen as a multivariate generalization of a Beta distribution. The Dirichlet distribution is a conjugate prior of a multinomial distribution in Bayesian inference...
doc_2759
Locates a bitmap file of the name name.xpm or name in one of the bitmap directories (see the tix_addbitmapdir() method). By using tix_getbitmap(), you can avoid hard coding the pathnames of the bitmap files in your application. When successful, it returns the complete pathname of the bitmap file, prefixed with the char...
doc_2760
The content of the comment as a string. The attribute contains all characters between the leading <!-- and trailing -->, but does not include them.
doc_2761
A FileCookieJar that can load from and save cookies to disk in the Mozilla cookies.txt file format (which is also used by the Lynx and Netscape browsers). Note This loses information about RFC 2965 cookies, and also about newer or non-standard cookie-attributes such as port. Warning Back up your cookies before savin...
doc_2762
Bases: skimage.measure.fit.BaseModel Total least squares estimator for 2D ellipses. The functional model of the ellipse is: xt = xc + a*cos(theta)*cos(t) - b*sin(theta)*sin(t) yt = yc + a*sin(theta)*cos(t) + b*cos(theta)*sin(t) d = sqrt((x - xt)**2 + (y - yt)**2) where (xt, yt) is the closest point on the ellipse to...
doc_2763
get the width of the Surface get_width() -> width Return the width of the Surface in pixels.
doc_2764
Test that first and second are equal. If the values do not compare equal, the test will fail. In addition, if first and second are the exact same type and one of list, tuple, dict, set, frozenset or str or any type that a subclass registers with addTypeEqualityFunc() the type-specific equality function will be called i...
doc_2765
See Migration guide for more details. tf.compat.v1.linalg.normalize tf.linalg.normalize( tensor, ord='euclidean', axis=None, name=None ) This uses tf.linalg.norm to compute the norm along axis. This function can compute several different vector norms (the 1-norm, the Euclidean or 2-norm, the inf-norm, and in gen...
doc_2766
Method called on an input line when the command prefix is not recognized. If this method is not overridden, it prints an error message and returns.
doc_2767
Scalar method identical to the corresponding array attribute. Please see ndarray.byteswap.
doc_2768
Load sample images for image manipulation. Loads both, china and flower. Read more in the User Guide. Returns dataBunch Dictionary-like object, with the following attributes. imageslist of ndarray of shape (427, 640, 3) The two sample image. filenameslist The filenames for the images. DESCRstr The f...
doc_2769
Bases: matplotlib.ticker.Formatter Return fixed strings for tick labels based only on position, not value. Note FixedFormatter should only be used together with FixedLocator. Otherwise, the labels may end up in unexpected positions. Set the sequence seq of strings that will be used for labels. get_offset()[source...
doc_2770
CCompiler_compile(self, sources[, ...]) Compile one or more source files. CCompiler_customize(self, dist[, need_cxx]) Do any platform-specific customization of a compiler instance. CCompiler_customize_cmd(self, cmd[, ignore]) Customize compiler using distutils command. CCompiler_cxx_compiler(self) Return the C++ ...
doc_2771
bytearray.swapcase() Return a copy of the sequence with all the lowercase ASCII characters converted to their corresponding uppercase counterpart and vice-versa. For example: >>> b'Hello World'.swapcase() b'hELLO wORLD' Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyz'. U...
doc_2772
If using a GUI backend with pyplot, display the figure window. If the figure was not created using figure, it will lack a FigureManagerBase, and this method will raise an AttributeError. Warning This does not manage an GUI event loop. Consequently, the figure may only be shown briefly or not shown at all if you or y...
doc_2773
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_2774
Return a deep copy of this object.
doc_2775
Set the edgecolor(s) of the collection. Parameters ccolor or list of colors or 'face' The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor.
doc_2776
See torch.diag()
doc_2777
Apply a function along an axis of the DataFrame. Objects passed to the function are Series objects whose index is either the DataFrame’s index (axis=0) or the DataFrame’s columns (axis=1). By default (result_type=None), the final return type is inferred from the return type of the applied function. Otherwise, it depe...
doc_2778
the server protocol to use. defaults to HTTP/1.1
doc_2779
sklearn.metrics.fowlkes_mallows_score(labels_true, labels_pred, *, sparse=False) [source] Measure the similarity of two clusterings of a set of points. New in version 0.18. The Fowlkes-Mallows index (FMI) is defined as the geometric mean between of the precision and recall: FMI = TP / sqrt((TP + FP) * (TP + FN)) W...
doc_2780
class sklearn.gaussian_process.kernels.Exponentiation(kernel, exponent) [source] The Exponentiation kernel takes one base kernel and a scalar parameter \(p\) and combines them via \[k_{exp}(X, Y) = k(X, Y) ^p\] Note that the __pow__ magic method is overridden, so Exponentiation(RBF(), 2) is equivalent to using the *...
doc_2781
Returns a new view of the self tensor with singleton dimensions expanded to a larger size. Passing -1 as the size for a dimension means not changing the size of that dimension. Tensor can be also expanded to a larger number of dimensions, and the new ones will be appended at the front. For the new dimensions, the size ...
doc_2782
Finds the neighbors within a given radius of a point or points. Return the indices and distances of each point from the dataset lying in a ball with size radius around the points of the query array. Points lying on the boundary are included in the results. The result points are not necessarily sorted by distance to t...
doc_2783
Insert a new item with value x in the array before position i. Negative values are treated as being relative to the end of the array.
doc_2784
Bases: object A multi-page PDF file. Notes In reality PdfPages is a thin wrapper around PdfFile, in order to avoid confusion when using savefig and forgetting the format argument. Examples >>> import matplotlib.pyplot as plt >>> # Initialize: >>> with PdfPages('foo.pdf') as pdf: ... # As many times as you like, c...
doc_2785
Compute the (Moore-Penrose) pseudo-inverse of a matrix. Calculate the generalized inverse of a matrix using its singular-value decomposition (SVD) and including all large singular values. Changed in version 1.14: Can now operate on stacks of matrices Parameters a(…, M, N) array_like Matrix or stack of matrice...
doc_2786
Other Members FLOAT tf.dtypes.DType FLOAT16 tf.dtypes.DType GRAPHVIZ_DOT 3 INT16 tf.dtypes.DType INT32 tf.dtypes.DType INT64 tf.dtypes.DType INT8 tf.dtypes.DType QUANTIZED_UINT8 tf.dtypes.DType STRING tf.dtypes.DType TFLITE 2
doc_2787
os.O_RSYNC os.O_SYNC os.O_NDELAY os.O_NONBLOCK os.O_NOCTTY os.O_CLOEXEC The above constants are only available on Unix. Changed in version 3.3: Add O_CLOEXEC constant.
doc_2788
Alias for get_linewidth.
doc_2789
Remove element elem from the set. Raises KeyError if elem is not contained in the set.
doc_2790
See Migration guide for more details. tf.compat.v1.raw_ops.SparseTensorDenseMatMul tf.raw_ops.SparseTensorDenseMatMul( a_indices, a_values, a_shape, b, adjoint_a=False, adjoint_b=False, name=None ) No validity checking is performed on the indices of A. However, the following input format is recommended for optim...
doc_2791
A read-only property for the variance of a normal distribution. Equal to the square of the standard deviation.
doc_2792
Connect the major canvas events to methods.
doc_2793
Turn on colorbar minor ticks.
doc_2794
Return filter function to be used for agg filter.
doc_2795
operator.lt(a, b) operator.le(a, b) operator.eq(a, b) operator.ne(a, b) operator.ge(a, b) operator.gt(a, b) operator.__lt__(a, b) operator.__le__(a, b) operator.__eq__(a, b) operator.__ne__(a, b) operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically...
doc_2796
Return the Figure instance the artist belongs to.
doc_2797
Reverse the order of elements in an array along the given axis. The shape of the array is preserved, but the elements are reordered. New in version 1.12.0. Parameters marray_like Input array. axisNone or int or tuple of ints, optional Axis or axes along which to flip over. The default, axis=None, will fli...
doc_2798
Return the clip path.
doc_2799
See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNParamsSize tf.raw_ops.CudnnRNNParamsSize( num_layers, num_units, input_size, T, S, rnn_mode='lstm', input_mode='linear_input', direction='unidirectional', dropout=0, seed=0, seed2=0, num_proj=0, name=None ) Return the params size that can...