_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_20000
Select the backend used for rendering and GUI integration. Parameters backendstr The backend to switch to. This can either be one of the standard backend names, which are case-insensitive: interactive backends: GTK3Agg, GTK3Cairo, GTK4Agg, GTK4Cairo, MacOSX, nbAgg, QtAgg, QtCairo, TkAgg, TkCairo, WebAgg, WX, W...
doc_20001
See Migration guide for more details. tf.compat.v1.load_op_library tf.load_op_library( library_filename ) Pass "library_filename" to a platform-specific mechanism for dynamically loading a library. The rules for determining the exact location of the library are platform-specific and are not documented here. When...
doc_20002
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_20003
A method for invalidating the cache on the ZoneInfo class. If no arguments are passed, all caches are invalidated and the next call to the primary constructor for each key will return a new instance. If an iterable of key names is passed to the only_keys parameter, only the specified keys will be removed from the cache...
doc_20004
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, lt(a, b) is equiva...
doc_20005
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorTridiag tf.linalg.LinearOperatorTridiag( diagonals, diagonals_format=_COMPACT, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=None, name='LinearOperatorTridiag' ) This operator acts like a [batch] sq...
doc_20006
Prunes tensor corresponding to parameter called name in module by removing the specified amount of (currently unpruned) units with the lowest L1-norm. Modifies module in place (and also return the modified module) by: 1) adding a named buffer called name+'_mask' corresponding to the binary mask applied to the paramet...
doc_20007
Read up to size bytes from the object and return them. As a convenience, if size is unspecified or -1, all bytes until EOF are returned. Otherwise, only one system call is ever made. Fewer than size bytes may be returned if the operating system call returns fewer than size bytes. If 0 bytes are returned, and size was n...
doc_20008
If the optional argument timeout is None (the default), the method blocks until the process whose join() method is called terminates. If timeout is a positive number, it blocks at most timeout seconds. Note that the method returns None if its process terminates or if the method times out. Check the process’s exitcode t...
doc_20009
Dump an HTTP header again. This is the reversal of parse_list_header(), parse_set_header() and parse_dict_header(). This also quotes strings that include an equals sign unless you pass it as dict of key, value pairs. >>> dump_header({'foo': 'bar baz'}) 'foo="bar baz"' >>> dump_header(('foo', 'bar baz')) 'foo, "bar baz"...
doc_20010
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_20011
Return a function that splits a string into a sequence of tokens. Returns tokenizer: callable A function to split a string into a sequence of tokens.
doc_20012
Set the JoinStyle for the collection (for all its elements). Parameters jsJoinStyle or {'miter', 'round', 'bevel'}
doc_20013
Return a new object with updated flags. Parameters allows_duplicate_labels:bool, optional Whether the returned object allows duplicate labels. Returns Series or DataFrame The same type as the caller. See also DataFrame.attrs Global metadata applying to this dataset. DataFrame.flags Global flags a...
doc_20014
the index of the cdrom drive get_id() -> id Returns the integer id that was used to create the CD instance. This method can work on an uninitialized CD.
doc_20015
Bases: mpl_toolkits.axisartist.angle_helper.LocatorBase __call__(v1, v2)[source] Call self as a function. Examples using mpl_toolkits.axisartist.angle_helper.LocatorHMS mpl_toolkits.axisartist.floating_axes features
doc_20016
Generate a SIGABRT signal to the current process. On Unix, the default behavior is to produce a core dump; on Windows, the process immediately returns an exit code of 3. Be aware that calling this function will not call the Python signal handler registered for SIGABRT with signal.signal().
doc_20017
A yearly archive page showing all available months in a given year. Objects with a date in the future are not displayed unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseYearA...
doc_20018
Forward one step in the stack of views and positions.
doc_20019
Instructs writer objects to never quote fields. When the current delimiter occurs in output data it is preceded by the current escapechar character. If escapechar is not set, the writer will raise Error if any characters that require escaping are encountered. Instructs reader to perform no special processing of quote c...
doc_20020
Font file path path -> unicode Read only. Returns the path of the loaded font file
doc_20021
Decorator to require that a view only accepts particular request methods. Usage: from django.views.decorators.http import require_http_methods @require_http_methods(["GET", "POST"]) def my_view(request): # I can assume now that only GET or POST requests make it this far # ... pass Note that request method...
doc_20022
Return a list of new Bbox objects formed by splitting the original one with horizontal lines at fractional positions given by args.
doc_20023
Add a function to be called after tearDownModule() to cleanup resources used during the test class. Functions will be called in reverse order to the order they are added (LIFO). They are called with any arguments and keyword arguments passed into addModuleCleanup() when they are added. If setUpModule() fails, meaning t...
doc_20024
Create a helper proxy to easily launch a remote using the owner of the RRef as the destination to run functions on the object referenced by this RRef. More specifically, rref.remote().func_name(*args, **kwargs) is the same as the following: >>> def run(rref, func_name, args, kwargs): >>> return getattr(rref.local_val...
doc_20025
See Migration guide for more details. tf.compat.v1.raw_ops.CheckNumericsV2 tf.raw_ops.CheckNumericsV2( tensor, message, name=None ) When run, reports an InvalidArgument error if tensor has any values that are not a number (NaN) or infinity (Inf). Otherwise, passes tensor as-is. Unlike CheckNumerics (V1), CheckNu...
doc_20026
An integer specifying how many objects should be displayed per page. If this is given, the view will paginate objects with paginate_by objects per page. The view will expect either a page query string parameter (via request.GET) or a page variable specified in the URLconf.
doc_20027
Parses an HTTP Accept-* header. This does not implement a complete valid algorithm but one that supports at least value and quality extraction. Returns a new Accept object (basically a list of (value, quality) tuples sorted by the quality with some additional accessor methods). The second parameter can be a subclass of...
doc_20028
Divide one Hermite series by another. Returns the quotient-with-remainder of two Hermite series c1 / c2. The arguments are sequences of coefficients from lowest order “term” to highest, e.g., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters c1, c2array_like 1-D arrays of Hermite series coefficients...
doc_20029
Calculate all raw image moments up to a certain order. The following properties can be calculated from raw image moments: Area as: M[0, 0]. Centroid as: {M[1, 0] / M[0, 0], M[0, 1] / M[0, 0]}. Note that raw moments are neither translation, scale nor rotation invariant. Parameters imagenD double or uint8 arr...
doc_20030
Parse data as JSON. If the mimetype does not indicate JSON (application/json, see is_json()), this returns None. If parsing fails, on_json_loading_failed() is called and its return value is used as the return value. Parameters force (bool) – Ignore the mimetype and always try to parse JSON. silent (bool) – Silence...
doc_20031
Sets the given key to [value] (a list whose single element is value). Note that this, as other dictionary functions that have side effects, can only be called on a mutable QueryDict (such as one that was created via QueryDict.copy()).
doc_20032
Returns a view of array with the same type as self.
doc_20033
Repr.maxlist Repr.maxtuple Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray Limits on the number of entries represented for the named object type. The default is 4 for maxdict, 5 for maxarray, and 6 for the others.
doc_20034
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_20035
Setup the ticks and ticklabels. This should not be needed by users.
doc_20036
See Migration guide for more details. tf.compat.v1.strings.to_number tf.compat.v1.string_to_number( string_tensor=None, out_type=tf.dtypes.float32, name=None, input=None ) (Note that int32 overflow results in an error while float overflow results in a rounded value.) Example: strings = ["5.0", "3.0", "7.0"] tf....
doc_20037
bytearray.rpartition(sep) Split the sequence at the last occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself or its bytearray copy, and the part after the separator. If the separator is not found, return a 3-tuple containing two empty bytes or bytearray objects, foll...
doc_20038
Same as RemoteUserBackend except that it doesn’t reject inactive users because user_can_authenticate always returns True.
doc_20039
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred) ** 2).sum() and \(v\) is the total sum of squares ((y_true - y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c...
doc_20040
Align two objects on their axes with the specified join method. Join method is specified for each axis Index. Parameters other:DataFrame or Series join:{‘outer’, ‘inner’, ‘left’, ‘right’}, default ‘outer’ axis:allowed axis of the other object, default None Align on index (0), columns (1), or both (None). ...
doc_20041
Parameters angle – a number Rotate the turtleshape by angle from its current tilt-angle, but do not change the turtle’s heading (direction of movement). >>> turtle.reset() >>> turtle.shape("circle") >>> turtle.shapesize(5,2) >>> turtle.tilt(30) >>> turtle.fd(50) >>> turtle.tilt(30) >>> turtle.fd(50)
doc_20042
The document attempted to remove the namespace declaration associated with a prefix.
doc_20043
Count the frequency of each value in an array of non-negative ints. The number of bins (size 1) is one larger than the largest value in input unless input is empty, in which case the result is a tensor of size 0. If minlength is specified, the number of bins is at least minlength and if input is empty, then the result ...
doc_20044
See Migration guide for more details. tf.compat.v1.RegisterGradient tf.RegisterGradient( op_type ) This decorator is only used when defining a new op type. For an op with m inputs and n outputs, the gradient function is a function that takes the original Operation and n Tensor objects (representing the gradients...
doc_20045
See Migration guide for more details. tf.compat.v1.lin_space, tf.compat.v1.linspace tf.linspace( start, stop, num, name=None, axis=0 ) A sequence of num evenly-spaced values are generated beginning at start along a given axis. If num > 1, the values in the sequence increase by stop - start / num - 1, so that the...
doc_20046
Add scripts to configuration. Add the sequence of files to the beginning of the scripts list. Scripts will be installed under the <prefix>/bin/ directory.
doc_20047
The Vary header defines which request headers a cache mechanism should take into account when building its cache key. See using vary headers.
doc_20048
Applies a 1D adaptive max pooling over an input signal composed of several input planes. The output size is H, for any input size. The number of output features is equal to the number of input planes. Parameters output_size – the target output size H return_indices – if True, will return the indices along with t...
doc_20049
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.tf_stack.CurrentModuleFilter tf.compat.v1.flags.tf_decorator.tf_stack.CurrentModuleFilter() Methods get_filtered_filenames View source get_filtered_filenames() reset View source reset() __enter__ View source __enter__() __exit__ View sou...
doc_20050
Return public functions that cannot be overridden by __torch_function__. Returns A tuple of functions that are publicly available in the torch API but cannot be overridden with __torch_function__. Mostly this is because none of the arguments of these functions are tensors or tensor-likes. Return type Set[Callable...
doc_20051
Alias for set_linewidth.
doc_20052
bytearray.partition(sep) Split the sequence at the first occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself or its bytearray copy, and the part after the separator. If the separator is not found, return a 3-tuple containing a copy of the original sequence, followed ...
doc_20053
See Migration guide for more details. tf.compat.v1.raw_ops.ReaderReadV2 tf.raw_ops.ReaderReadV2( reader_handle, queue_handle, name=None ) Will dequeue from the input queue if necessary (e.g. when the Reader needs to start reading from a new file since it has finished with the previous file). Args reader_h...
doc_20054
Return the full string representation of the value with the position unspecified.
doc_20055
When this namespace is specified, the name string is an ISO OID.
doc_20056
tf.distribute.TPUStrategy( tpu_cluster_resolver=None, experimental_device_assignment=None ) To construct a TPUStrategy object, you need to run the initialization code as below: resolver = tf.distribute.cluster_resolver.TPUClusterResolver(tpu='') tf.config.experimental_connect_to_cluster(resolver) tf.tpu.experimen...
doc_20057
Sets the current object instance (self.object) to None.
doc_20058
tf.compat.v1.scatter_nd_update( ref, indices, updates, use_locking=True, name=None ) ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indices into ref. It must be shape [d_0, ..., d_{Q-2}, K] where 0 < K <= P. The innermost dimension of indices (with length ...
doc_20059
set | other | ... Return a new set with elements from the set and all others.
doc_20060
Get whether the Axes responds to navigation commands.
doc_20061
tf.nn.isotonic_regression( inputs, decreasing=True, axis=-1 ) For each vector x, the problem solved is $$\argmin_{y_1 >= y_2 >= ... >= y_n} \sum_i (x_i - y_i)^2.$$ As the solution is component-wise constant, a second tensor is returned that encodes the segments. The problems are solved over the given axis. Consi...
doc_20062
Return the arc tangent of x, in radians. The result is between -pi/2 and pi/2.
doc_20063
Clear out the internal cache.
doc_20064
Load a feather-format object from the file path. Parameters path:str, path object, or file-like object String, path object (implementing os.PathLike[str]), or file-like object implementing a binary read() function. The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a ho...
doc_20065
For each element in a, return a copy with the leading characters removed. Calls str.lstrip element-wise. Parameters aarray-like, {str, unicode} Input array. chars{str, unicode}, optional The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument def...
doc_20066
See Migration guide for more details. tf.compat.v1.raw_ops.WriteRawProtoSummary tf.raw_ops.WriteRawProtoSummary( writer, step, tensor, name=None ) Writes tensor, a serialized proto at step using summary writer. Args writer A Tensor of type resource. step A Tensor of type int64. tensor A Tens...
doc_20067
Delete temporary files from the mailbox that have not been accessed in the last 36 hours. The Maildir specification says that mail-reading programs should do this occasionally.
doc_20068
Return the cumulative product of array elements over a given axis treating Not a Numbers (NaNs) as one. The cumulative product does not change when NaNs are encountered and leading NaNs are replaced by ones. Ones are returned for slices that are all-NaN or empty. New in version 1.12.0. Parameters aarray_like ...
doc_20069
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_20070
Adds some useful headers to the given HttpResponse object: Expires Cache-Control Each header is only added if it isn’t already set. cache_timeout is in seconds. The CACHE_MIDDLEWARE_SECONDS setting is used by default.
doc_20071
The ceiling of the real-time priority. Availability: Linux 2.6.12 or later. New in version 3.4.
doc_20072
Scale column widths by xscale and row heights by yscale.
doc_20073
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_20074
tf.experimental.numpy.negative( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.negative.
doc_20075
operator.invert(obj) operator.__inv__(obj) operator.__invert__(obj) Return the bitwise inverse of the number obj. This is equivalent to ~obj.
doc_20076
Evaluate a piecewise-defined function. Given a set of conditions and corresponding functions, evaluate each function on the input data wherever its condition is true. Parameters xndarray or scalar The input domain. condlistlist of bool arrays or bool scalars Each boolean array corresponds to a function in f...
doc_20077
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_20078
A ParameterizedMIMEHeader class that handles the Content-Type header. content_type The content type string, in the form maintype/subtype. maintype subtype
doc_20079
See Migration guide for more details. tf.compat.v1.raw_ops.Complex tf.raw_ops.Complex( real, imag, Tout=tf.dtypes.complex64, name=None ) Given a tensor real representing the real part of a complex number, and a tensor imag representing the imaginary part of a complex number, this operation returns complex number...
doc_20080
Create a new Mock object. Mock takes several optional arguments that specify the behaviour of the Mock object: spec: This can be either a list of strings or an existing object (a class or instance) that acts as the specification for the mock object. If you pass in an object then a list of strings is formed by calling...
doc_20081
See Migration guide for more details. tf.compat.v1.keras.mixed_precision.experimental.LossScaleOptimizer tf.keras.mixed_precision.experimental.LossScaleOptimizer( optimizer, loss_scale ) Warning: This class is deprecated and will be removed in TensorFlow 2.5. Please use the non-experimental class tf.keras.mixed_...
doc_20082
tf.keras.layers.Convolution2DTranspose Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.Conv2DTranspose, tf.compat.v1.keras.layers.Convolution2DTranspose tf.keras.layers.Conv2DTranspose( filters, kernel_size, strides=(1, 1), padding='valid', output_padding=None, dat...
doc_20083
Shortcut for route() with methods=["PUT"]. New in version 2.0. Parameters rule (str) – options (Any) – Return type Callable
doc_20084
For each key, value pair in kwargs, check that value is in _values. Parameters _valuesiterable Sequence of values to check on. _print_supported_valuesbool, default: True Whether to print _values when raising ValueError. **kwargsdict key, value pairs as keyword arguments to find in _values. Raises V...
doc_20085
Returns the numerical rank of a 2-D tensor. The method to compute the matrix rank is done using SVD by default. If symmetric is True, then input is assumed to be symmetric, and the computation of the rank is done by obtaining the eigenvalues. tol is the threshold below which the singular values (or the eigenvalues when...
doc_20086
tf.nn.weighted_moments( x, axes, frequency_weights, keepdims=False, name=None ) Args x A tensor. axes 1-d tensor of int32 values; these are the axes along which to compute mean and variance. frequency_weights A tensor of positive weights which can be broadcast with x. keepdims Produce mo...
doc_20087
Alias for get_linestyle.
doc_20088
Copy of the array, cast to a specified type. Parameters dtypestr or dtype Typecode or data-type to which the array is cast. order{‘C’, ‘F’, ‘A’, ‘K’}, optional Controls the memory layout order of the result. ‘C’ means C order, ‘F’ means Fortran order, ‘A’ means ‘F’ order if all the arrays are Fortran contig...
doc_20089
Resume the receiving end. The protocol’s protocol.data_received() method will be called once again if some data is available for reading. Changed in version 3.7: The method is idempotent, i.e. it can be called when the transport is already reading.
doc_20090
Bases: matplotlib.dates.DateLocator Make ticks on regular intervals of one or more microsecond(s). Note By default, Matplotlib uses a floating point representation of time in days since the epoch, so plotting data with microsecond time resolution does not work well for dates that are far (about 70 years) from the ep...
doc_20091
To make plots referenceable, we need to move the reference from the "htmlonly" (or "latexonly") node to the actual figure node itself.
doc_20092
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters Xndarray of shape (n_samples_X, n_features) Left argument of the returned kernel k(X, Y) Returns K_diagndar...
doc_20093
stat.FILE_ATTRIBUTE_COMPRESSED stat.FILE_ATTRIBUTE_DEVICE stat.FILE_ATTRIBUTE_DIRECTORY stat.FILE_ATTRIBUTE_ENCRYPTED stat.FILE_ATTRIBUTE_HIDDEN stat.FILE_ATTRIBUTE_INTEGRITY_STREAM stat.FILE_ATTRIBUTE_NORMAL stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED stat.FILE_ATTRIBUTE_NO_SCRUB_DATA stat.FILE_ATTRIBUTE...
doc_20094
Clear the figure. Set keep_observers to True if, for example, a gui widget is tracking the Axes in the figure.
doc_20095
For each element in self, return the highest index in the string where substring sub is found, such that sub is contained within [start, end]. See also char.rfind
doc_20096
Make this path a symbolic link to target. Under Windows, target_is_directory must be true (default False) if the link’s target is a directory. Under POSIX, target_is_directory’s value is ignored. >>> p = Path('mylink') >>> p.symlink_to('setup.py') >>> p.resolve() PosixPath('/home/antoine/pathlib/setup.py') >>> p.stat()...
doc_20097
Must be raised by __anext__() method of an asynchronous iterator object to stop the iteration. New in version 3.5.
doc_20098
Pop a (key, list) tuple from the dict.
doc_20099
Returns True if this BoundField’s widget is hidden.