_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_21000
Evaluates the Einstein summation convention on the operands. Using the Einstein summation convention, many common multi-dimensional, linear algebraic array operations can be represented in a simple fashion. In implicit mode einsum computes these values. In explicit mode, einsum provides further flexibility to compute...
doc_21001
Boolean indicating whether the byte order of this dtype is native to the platform.
doc_21002
Returns the filesystem encoding that should be used. Note that this is different from the Python understanding of the filesystem encoding which might be deeply flawed. Do not use this value against Python’s string APIs because it might be different. See The Filesystem for the exact behavior. The concept of a filesystem...
doc_21003
Returns the array size. shape -> tuple of int's A tuple or length ndim giving the length of each dimension. Analogous to Surface.get_size(). New in pygame 1.9.2.
doc_21004
Set the method which should be used to start child processes. method can be 'fork', 'spawn' or 'forkserver'. Note that this should be called at most once, and it should be protected inside the if __name__ == '__main__' clause of the main module. New in version 3.4.
doc_21005
See torch.triu()
doc_21006
The standard output device. Initially, this is the active console screen buffer, CONOUT$.
doc_21007
Parameters filenamestr or path-like or file-like Output target; if a string, a file will be opened for writing. metadatadict[str, Any], optional Metadata in the SVG file defined as key-value pairs of strings, datetimes, or lists of strings, e.g., {'Creator': 'My software', 'Contributor': ['Me', 'My Friend']...
doc_21008
Return the picking behavior of the artist. The possible values are described in set_picker. See also set_picker, pickable, pick
doc_21009
Returns x1 * 2**x2, element-wise. The mantissas x1 and twos exponents x2 are used to construct floating point numbers x1 * 2**x2. Parameters x1array_like Array of multipliers. x2array_like, int Array of twos exponents. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the ...
doc_21010
See torch.outer().
doc_21011
See Migration guide for more details. tf.compat.v1.strings.unicode_decode_with_offsets tf.strings.unicode_decode_with_offsets( input, input_encoding, errors='replace', replacement_char=65533, replace_control_characters=False, name=None ) This op is similar to tf.strings.decode(...), but it also returns the s...
doc_21012
Return the re-combined version of the original URL as a string. This may differ from the original URL in that the scheme may be normalized to lower case and empty components may be dropped. Specifically, empty parameters, queries, and fragment identifiers will be removed. For urldefrag() results, only empty fragment id...
doc_21013
Returns the exponent of the magnitude of the operand’s MSD.
doc_21014
tf.compat.v1.train.maybe_shuffle_batch_join( tensors_list, batch_size, capacity, min_after_dequeue, keep_input, seed=None, enqueue_many=False, shapes=None, allow_smaller_final_batch=False, shared_name=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructio...
doc_21015
Add a rotation (in radians) to this transform in place. Returns self, so this method can easily be chained with more calls to rotate(), rotate_deg(), translate() and scale().
doc_21016
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct...
doc_21017
Check whether an array-like or dtype is of the object dtype. Parameters arr_or_dtype:array-like or dtype The array-like or dtype to check. Returns boolean Whether or not the array-like or dtype is of the object dtype. Examples >>> is_object_dtype(object) True >>> is_object_dtype(int) False >>> is_obj...
doc_21018
Computes the logarithmic derivative of the gamma function on input. ψ(x)=ddxln⁡(Γ(x))=Γ′(x)Γ(x)\psi(x) = \frac{d}{dx} \ln\left(\Gamma\left(x\right)\right) = \frac{\Gamma'(x)}{\Gamma(x)} Parameters input (Tensor) – the tensor to compute the digamma function on Keyword Arguments out (Tensor, optional) – the output...
doc_21019
Return whether all elements are True, potentially over an axis. Returns True unless there at least one element within a series or along a Dataframe axis that is False or equivalent (e.g. zero or empty). Parameters axis:{0 or ‘index’, 1 or ‘columns’, None}, default 0 Indicate which axis or axes should be reduced...
doc_21020
Path to a custom template that will be used by the admin site password change view.
doc_21021
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyFtrl tf.raw_ops.ResourceApplyFtrl( var, accum, linear, grad, lr, l1, l2, lr_power, use_locking=False, multiply_linear_by_lr=False, name=None ) accum_new = accum + grad * grad linear += grad - (accum_new^(-lr_power) - accum^(-lr_power)) /...
doc_21022
Return whether the given writable file-like object requires Unicode to be written to it.
doc_21023
Get a character. Note that the integer returned does not have to be in ASCII range: function keys, keypad keys and so on are represented by numbers higher than 255. In no-delay mode, return -1 if there is no input, otherwise wait until a key is pressed.
doc_21024
Return True if the path points to a Unix socket (or a symbolic link pointing to a Unix socket), False if it points to another kind of file. False is also returned if the path doesn’t exist or is a broken symlink; other errors (such as permission errors) are propagated.
doc_21025
Set the text fontsize.
doc_21026
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool backgroundcolor color bbox dict with properties for patches.FancyBboxPatch ...
doc_21027
The Example that failed.
doc_21028
Returns an iterator over module buffers. Parameters recurse (bool) – if True, then yields buffers of this module and all submodules. Otherwise, yields only buffers that are direct members of this module. Yields torch.Tensor – module buffer Example: >>> for buf in model.buffers(): >>> print(type(buf), buf.si...
doc_21029
Converts an integer into a bytes representation using characters from the set [A .. P].
doc_21030
DateOffset subclass representing possibly n custom business days. Parameters n:int, default 1 The number of months represented. normalize:bool, default False Normalize start/end dates to midnight before generating date range. weekmask:str, Default ‘Mon Tue Wed Thu Fri’ Weekmask of valid business days, p...
doc_21031
Return the list of minor Ticks. Examples using matplotlib.axis.Axis.get_minor_ticks Centering labels between ticks
doc_21032
get the mapped color value at a single pixel get_at_mapped((x, y)) -> Color Return the integer value of the given pixel. If the pixel position is outside the area of the Surface an IndexError exception will be raised. This method is intended for pygame unit testing. It unlikely has any use in an application. This fun...
doc_21033
tf.linalg.l2_normalize, tf.nn.l2_normalize tf.math.l2_normalize( x, axis=None, epsilon=1e-12, name=None ) For a 1-D tensor with axis = 0, computes output = x / sqrt(max(sum(x**2), epsilon)) For x with more dimensions, independently normalizes each 1-D slice along dimension axis. Args x A Tensor. ax...
doc_21034
Finds all the modules below a package. This can be useful to automatically import all views / controllers so that their metaclasses / function decorators have a chance to register themselves on the application. Packages are not returned unless include_packages is True. This can also recursively list modules but in that...
doc_21035
Returns the address of the first element of self tensor.
doc_21036
operator.__pow__(a, b) Return a ** b, for a and b numbers.
doc_21037
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_21038
Reverse the transformation operation Parameters Xarray of shape [n_samples, n_selected_features] The input samples. Returns X_rarray of shape [n_samples, n_original_features] X with columns of zeros inserted where features would have been removed by transform.
doc_21039
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalNonSerializableDataset tf.raw_ops.ExperimentalNonSerializableDataset( input_dataset, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. output_types A list of tf.DTypes that has length >= 1. ...
doc_21040
Bases: object Draw a colorbar in an existing axes. Typically, colorbars are created using Figure.colorbar or pyplot.colorbar and associated with ScalarMappables (such as an AxesImage generated via imshow). In order to draw a colorbar not associated with other elements in the figure, e.g. when showing a colormap by it...
doc_21041
Run the test without collecting the result. This allows exceptions raised by the test to be propagated to the caller, and can be used to support running tests under a debugger.
doc_21042
Set the artist transform. Parameters tTransform
doc_21043
See Migration guide for more details. tf.compat.v1.raw_ops.DepthwiseConv2dNativeBackpropFilter tf.raw_ops.DepthwiseConv2dNativeBackpropFilter( input, filter_sizes, out_backprop, strides, padding, explicit_paddings=[], data_format='NHWC', dilations=[1, 1, 1, 1], name=None ) Args input A Tensor. Must ...
doc_21044
Return True if its parameter is a dataclass or an instance of one, otherwise return False. If you need to know if a class is an instance of a dataclass (and not a dataclass itself), then add a further check for not isinstance(obj, type): def is_dataclass_instance(obj): return is_dataclass(obj) and not isinstance(ob...
doc_21045
The name of the field on the model that contains the slug. By default, slug_field is 'slug'.
doc_21046
A golden eagle. Suitable for examples on segmentation, Hough transforms, and corner detection. Returns eagle(2019, 1826) uint8 ndarray Eagle image. Notes No copyright restrictions. CC0 by the photographer (Dayane Machado).
doc_21047
Bases: object Control handles for canvas tools. Parameters axmatplotlib.axes.Axes Matplotlib axes where tool handles are displayed. positions1D array Positions of handles in data coordinates. direction{"horizontal", "vertical"} Direction of handles, either 'vertical' or 'horizontal' line_propsdict, op...
doc_21048
tf.initializers.LecunNormal, tf.initializers.lecun_normal, tf.keras.initializers.lecun_normal tf.keras.initializers.LecunNormal( seed=None ) Also available via the shortcut function tf.keras.initializers.lecun_normal. Initializers allow you to pre-specify an initialization strategy, encoded in the Initializer ob...
doc_21049
Creates a quantized module from a float module or qparams_dict. Parameters mod (Module) – a float module, either produced by torch.quantization utilities or provided by the user
doc_21050
Get a regular expression that can be used with the regex(3) function to recognize a negative response to a yes/no question.
doc_21051
Make plots of Series or DataFrame. Uses the backend specified by the option plotting.backend. By default, matplotlib is used. Parameters data:Series or DataFrame The object for which the method is called. x:label or position, default None Only used if data is a DataFrame. y:label, position or list of labe...
doc_21052
Return True or False, depending on whether the programmer can change the colors displayed by the terminal.
doc_21053
Parse a URL into six components, returning a 6-item named tuple. This corresponds to the general structure of a URL: scheme://netloc/path;parameters?query#fragment. Each tuple item is a string, possibly empty. The components are not broken up into smaller parts (for example, the network location is a single string), an...
doc_21054
Returns sum(y^2) - sum(y)^2/N (“sum of squares” of the dependent variable) as a float, or default if there aren’t any matching rows.
doc_21055
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters **paramsdict Estimator parameters. Returns...
doc_21056
Create zip file at zip_dir and zip_basename with extension zip which contains the files in script_name. name_in_zip is the archive name. Return a tuple containing (full path, full path of archive name).
doc_21057
Check if types match. New in version 1.7.0. Parameters otherobject Class instance. Returns boolboolean True if other is same class as self
doc_21058
Return the data of a masked array as an ndarray. Return the data of a (if any) as an ndarray if a is a MaskedArray, else return a as a ndarray or subclass (depending on subok) if not. Parameters aarray_like Input MaskedArray, alternatively a ndarray or a subclass thereof. subokbool Whether to force the outp...
doc_21059
Return an array with the elements of self converted to uppercase. See also char.upper
doc_21060
Exception raised when an unexpected reply is received from the server.
doc_21061
Bases: matplotlib.projections.geo._GeoTransform Create a new geographical transform. Resolution is the number of steps to interpolate between each input line segment to approximate its path in curved space. has_inverse=True True if this transform has a corresponding inverse transform. inverted()[source] Ret...
doc_21062
Shuffle the sequence x in place. The optional argument random is a 0-argument function returning a random float in [0.0, 1.0); by default, this is the function random(). To shuffle an immutable sequence and return a new shuffled list, use sample(x, k=len(x)) instead. Note that even for small len(x), the total number of...
doc_21063
Mean squared logarithmic error regression loss. Read more in the User Guide. Parameters y_truearray-like of shape (n_samples,) or (n_samples, n_outputs) Ground truth (correct) target values. y_predarray-like of shape (n_samples,) or (n_samples, n_outputs) Estimated target values. sample_weightarray-like o...
doc_21064
Packs a list of homogeneous items. This method is useful for lists with an indeterminate size; i.e. the size is not available until the entire list has been walked. For each item in the list, an unsigned integer 1 is packed first, followed by the data value from the list. pack_item is the function that is called to pac...
doc_21065
Return self>=value.
doc_21066
'blogs.blog': lambda o: "/blogs/%s/" % o.slug, 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), } The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti...
doc_21067
Plot matched features. Parameters axmatplotlib.axes.Axes Matches and image are drawn in this ax. image1(N, M [, 3]) array First grayscale or color image. image2(N, M [, 3]) array Second grayscale or color image. keypoints1(K1, 2) array First keypoint coordinates as (row, col). keypoints2(K2, 2) ar...
doc_21068
Memory usage of the values. Parameters deep:bool, default False Introspect the data deeply, interrogate object dtypes for system-level memory consumption. Returns bytes used See also numpy.ndarray.nbytes Total bytes consumed by the elements of the array. Notes Memory usage does not include memory ...
doc_21069
Return the original stdout set by record_original_stdout() or sys.stdout if it’s not set.
doc_21070
An assignment. targets is a list of nodes, and value is a single node. Multiple nodes in targets represents assigning the same value to each. Unpacking is represented by putting a Tuple or List within targets. type_comment type_comment is an optional string with the type annotation as a comment. >>> print(ast.dum...
doc_21071
The last colorbar associated with this ScalarMappable. May be None.
doc_21072
Adjust the Axes for a specified data aspect ratio. Depending on get_adjustable this will modify either the Axes box (position) or the view limits. In the former case, get_anchor will affect the position. See also matplotlib.axes.Axes.set_aspect For a description of aspect ratio handling. matplotlib.axes.Axes.set_...
doc_21073
Set global scikit-learn configuration New in version 0.19. Parameters assume_finitebool, default=None If True, validation for finiteness will be skipped, saving time, but leading to potential crashes. If False, validation for finiteness will be performed, avoiding error. Global default: False. New in version...
doc_21074
Returns a copy of x with the sign inverted.
doc_21075
Compute the kernel between arrays X and optional array Y. This method takes either a vector array or a kernel matrix, and returns a kernel matrix. If the input is a vector array, the kernels are computed. If the input is a kernel matrix, it is returned instead. This method provides a safe way to take a kernel matrix ...
doc_21076
See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixSoftmaxGrad tf.raw_ops.SparseMatrixSoftmaxGrad( softmax, grad_softmax, type, name=None ) Args softmax A Tensor of type variant. A CSRSparseMatrix. grad_softmax A Tensor of type variant. The gradient of softmax. type A tf....
doc_21077
Set clip rectangle. Calls pop() and push().
doc_21078
Returns a string suitable for an RFC 2822-compliant Message-ID header. Optional idstring if given, is a string used to strengthen the uniqueness of the message id. Optional domain if given provides the portion of the msgid after the ‘@’. The default is the local hostname. It is not normally necessary to override this d...
doc_21079
Set the theta gridlines in a polar plot. Parameters anglestuple with floats, degrees The angles of the theta gridlines. labelstuple with strings or None The labels to use at each theta gridline. The projections.polar.ThetaFormatter will be used if None. fmtstr or None Format string used in matplotlib.ti...
doc_21080
A hardware resource list.
doc_21081
Decompress data, returning a bytes object containing the uncompressed data corresponding to at least part of the data in string. This data should be concatenated to the output produced by any preceding calls to the decompress() method. Some of the input data may be preserved in internal buffers for later processing. If...
doc_21082
Alias for self._offset.
doc_21083
returns a Color where the r,g,b components have been multiplied by the alpha. premul_alpha() -> Color Returns a new Color where each of the red, green and blue colour channels have been multiplied by the alpha channel of the original color. The alpha channel remains unchanged. This is useful when working with the BLE...
doc_21084
Computes the Cholesky decomposition of a Hermitian (or symmetric for real-valued matrices) positive-definite matrix or the Cholesky decompositions for a batch of such matrices. Each decomposition has the form: input=LLH\text{input} = LL^H where LL is a lower-triangular matrix and LHL^H is the conjugate transpose of...
doc_21085
This class implements parsing of form data for Werkzeug. By itself it can parse multipart and url encoded form data. It can be subclassed and extended but for most mimetypes it is a better idea to use the untouched stream and expose it as separate attributes on a request object. Changelog New in version 0.8. Paramet...
doc_21086
In-place version of clamp()
doc_21087
as blueprints can be registered multiple times with the application and not everything wants to be registered multiple times on it, this attribute can be used to figure out if the blueprint was registered in the past already.
doc_21088
Calculate the rolling sum. Parameters *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba. None : Defaults to 'cython' or globally s...
doc_21089
False if the decompress() method can provide more decompressed data before requiring new uncompressed input. New in version 3.5.
doc_21090
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_21091
Specify the sampling frequency in frames per second.
doc_21092
Remove a callback based on its observer id. See also add_callback
doc_21093
Return the directory name of pathname path. This is the first element of the pair returned by passing path to the function split(). Changed in version 3.6: Accepts a path-like object.
doc_21094
Initialize self. See help(type(self)) for accurate signature.
doc_21095
See Migration guide for more details. tf.compat.v1.linalg.eigvalsh, tf.compat.v1.self_adjoint_eigvals tf.linalg.eigvalsh( tensor, name=None ) Note: If your program backpropagates through this function, you should replace it with a call to tf.linalg.eigh (possibly ignoring the second output) to avoid computing t...
doc_21096
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_21097
tick_loc, tick_angle, tick_label
doc_21098
Stop collecting profiling data. Only in cProfile.
doc_21099
Return str(self).