_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_29100
Interface used by the parser to present error and warning messages to the application. The methods of this object control whether errors are immediately converted to exceptions or are handled in some other way.
doc_29101
This function securely creates a temporary directory using the same rules as mkdtemp(). The resulting object can be used as a context manager (see Examples). On completion of the context or destruction of the temporary directory object the newly created temporary directory and all its contents are removed from the file...
doc_29102
Parse lists as described by RFC 2068 Section 2. In particular, parse comma-separated lists where the elements of the list may include quoted-strings. A quoted-string could contain a comma. A non-quoted string could have quotes in the middle. Quotes are removed automatically after parsing. It basically works like parse_...
doc_29103
Bases: mpl_toolkits.axisartist.angle_helper.LocatorBase __call__(v1, v2)[source] Call self as a function.
doc_29104
URL name: password_reset_confirm Presents a form for entering a new password. Keyword arguments from the URL: uidb64: The user’s id encoded in base 64. token: Token to check that the password is valid. Attributes: template_name The full name of a template to display the confirm password view. Default value is r...
doc_29105
Deprecated since version 3.9, will be removed in version 3.11: MailmanProxy is deprecated, it depends on a Mailman module which no longer exists and therefore is already broken. Create a new pure proxy server. Arguments are as per SMTPServer. Everything will be relayed to remoteaddr, unless local mailman configuratio...
doc_29106
Performs a (local) reduce with specified slices over a single axis. For i in range(len(indices)), reduceat computes ufunc.reduce(array[indices[i]:indices[i+1]]), which becomes the i-th generalized “row” parallel to axis in the final result (i.e., in a 2-D array, for example, if axis = 0, it becomes the i-th row, but ...
doc_29107
See Migration guide for more details. tf.compat.v1.config.threading.set_inter_op_parallelism_threads tf.config.threading.set_inter_op_parallelism_threads( num_threads ) Determines the number of threads used by independent non-blocking operations. 0 means the system picks an appropriate number. Args num_th...
doc_29108
Recreate the URL for a request from the parts in a WSGI environment. The URL is an IRI, not a URI, so it may contain Unicode characters. Use iri_to_uri() to convert it to ASCII. Parameters environ (WSGIEnvironment) – The WSGI environment to get the URL parts from. root_only (bool) – Only build the root path, don’t...
doc_29109
PKZIP version which created ZIP archive.
doc_29110
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_29111
Reduce X to the selected features and then predict using the underlying estimator. Parameters Xarray of shape [n_samples, n_features] The input samples. Returns yarray of shape [n_samples] The predicted target values.
doc_29112
See Migration guide for more details. tf.compat.v1.raw_ops.NotEqual tf.raw_ops.NotEqual( x, y, incompatible_shape_error=True, name=None ) Note: NotEqual supports broadcasting. More about broadcasting here Args x A Tensor. y A Tensor. Must have the same type as x. incompatible_shape_error A...
doc_29113
Return the picking behavior of the artist. The possible values are described in set_picker. See also set_picker, pickable, pick
doc_29114
Return the “login name” of the user. This function checks the environment variables LOGNAME, USER, LNAME and USERNAME, in order, and returns the value of the first one which is set to a non-empty string. If none are set, the login name from the password database is returned on systems which support the pwd module, othe...
doc_29115
A store implementation that uses a file to store the underlying key-value pairs. Parameters file_name (str) – path of the file in which to store the key-value pairs world_size (int) – The total number of processes using the store Example:: >>> import torch.distributed as dist >>> store1 = dist.FileStore("/tmp...
doc_29116
Returns the value of the max_count attribute of the specialized class used to represent the header with the given name.
doc_29117
One more than the number of the highest signal number.
doc_29118
Reads one line from the remote server. You may override this method.
doc_29119
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalUniqueDataset tf.raw_ops.ExperimentalUniqueDataset( 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. output_shapes ...
doc_29120
Special value which should be returned by the binary special methods (e.g. __eq__(), __lt__(), __add__(), __rsub__(), etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__(), __iand__(), etc.) for the same purpose. I...
doc_29121
tf.keras.layers.experimental.SyncBatchNormalization( axis=-1, momentum=0.99, epsilon=0.001, center=True, scale=True, beta_initializer='zeros', gamma_initializer='ones', moving_mean_initializer='zeros', moving_variance_initializer='ones', beta_regularizer=None, gamma_regularizer=None, beta_constraint...
doc_29122
Set the hatching pattern hatch can be one of: / - diagonal hatching \ - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large circle . - dots * - stars Letters can be combined, in which case all the specified hatchings are done. If same letter repea...
doc_29123
Returns true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise. See also char.isupper
doc_29124
Set the formatter of the major ticker. In addition to a Formatter instance, this also accepts a str or function. For a str a StrMethodFormatter is used. The field used for the value must be labeled 'x' and the field used for the position must be labeled 'pos'. See the StrMethodFormatter documentation for more informa...
doc_29125
Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return...
doc_29126
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_29127
Plot Precision Recall Curve for binary classifiers. Extra keyword arguments will be passed to matplotlib’s plot. Read more in the User Guide. Parameters estimatorestimator instance Fitted classifier or a fitted Pipeline in which the last estimator is a classifier. X{array-like, sparse matrix} of shape (n_samp...
doc_29128
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_29129
A list of queued input lines. The cmdqueue list is checked in cmdloop() when new input is needed; if it is nonempty, its elements will be processed in order, as if entered at the prompt.
doc_29130
Return the integer square root of the nonnegative integer n. This is the floor of the exact square root of n, or equivalently the greatest integer a such that a² ≤ n. For some applications, it may be more convenient to have the least integer a such that n ≤ a², or in other words the ceiling of the exact square root of ...
doc_29131
See Migration guide for more details. tf.compat.v1.keras.applications.nasnet.preprocess_input tf.keras.applications.nasnet.preprocess_input( x, data_format=None ) Usage example with applications.MobileNet: i = tf.keras.layers.Input([None, None, 3], dtype = tf.uint8) x = tf.cast(i, tf.float32) x = tf.keras.applic...
doc_29132
Bases: matplotlib.offsetbox.PackerBase VPacker packs its children vertically, automatically adjusting their relative positions at draw time. Parameters padfloat, optional The boundary padding in points. sepfloat, optional The spacing between items in points. width, heightfloat, optional Width and height...
doc_29133
Return filter function to be used for agg filter.
doc_29134
Return len(self).
doc_29135
enum.IntEnum collection of SSL and TLS versions for SSLContext.maximum_version and SSLContext.minimum_version. New in version 3.7.
doc_29136
operator.__delitem__(a, b) Remove the value of a at index b.
doc_29137
Return an iterable of the weak references to the values.
doc_29138
Class used to record warnings for unit tests. See documentation of check_warnings() above for more details.
doc_29139
tf.compat.v1.image.sample_distorted_bounding_box( image_size, bounding_boxes, seed=None, seed2=None, min_object_covered=0.1, aspect_ratio_range=None, area_range=None, max_attempts=None, use_image_if_no_bounding_boxes=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future ver...
doc_29140
See Migration guide for more details. tf.compat.v1.raw_ops.Round tf.raw_ops.Round( x, name=None ) Rounds half to even. Also known as bankers rounding. If you want to round according to the current system rounding mode use std::cint. Args x A Tensor. Must be one of the following types: bfloat16, half, fl...
doc_29141
A ModelForm for creating a new user. It has three fields: username (from the user model), password1, and password2. It verifies that password1 and password2 match, validates the password using validate_password(), and sets the user’s password using set_password().
doc_29142
See Migration guide for more details. tf.compat.v1.ragged.boolean_mask tf.ragged.boolean_mask( data, mask, name=None ) Returns a potentially ragged tensor that is formed by retaining the elements in data where the corresponding value in mask is True. output[a1...aA, i, b1...bB] = data[a1...aA, j, b1...bB] Wher...
doc_29143
Take values from the input array by matching 1d index and data slices. This iterates over matching 1d slices oriented along the specified axis in the index and data arrays, and uses the former to look up values in the latter. These slices can be different lengths. Functions returning an index along an axis, like args...
doc_29144
Predefined split cross-validator Provides train/test indices to split data into train/test sets using a predefined scheme specified by the user with the test_fold parameter. Read more in the User Guide. New in version 0.16. Parameters test_foldarray-like of shape (n_samples,) The entry test_fold[i] represents...
doc_29145
Dictionary mapping host names to (login, account, password) tuples. The ‘default’ entry, if any, is represented as a pseudo-host by that name.
doc_29146
Return True if the object is a generator.
doc_29147
See Migration guide for more details. tf.compat.v1.xla.experimental.compile tf.xla.experimental.compile( computation, inputs=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: xla.experimental.compile is deprecated. Consider using tf.function(experimen...
doc_29148
Returns pointers to the end-points of an array. Parameters andarray Input array. It must conform to the Python-side of the array interface. Returns (low, high)tuple of 2 integers The first integer is the first byte of the array, the second integer is just past the last byte of the array. If a is not con...
doc_29149
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_29150
get the number of bytes used per Surface row get_pitch() -> int Return the number of bytes separating each row in the Surface. Surfaces in video memory are not always linearly packed. Subsurfaces will also have a larger pitch than their real width. This value is not needed for normal pygame usage.
doc_29151
Returns True if the session cookie should be httponly. This currently just returns the value of the SESSION_COOKIE_HTTPONLY config var. Parameters app (Flask) – Return type bool
doc_29152
Get the color for low out-of-range values.
doc_29153
True if the address is reserved for multicast use. See RFC 3171 (for IPv4) or RFC 2373 (for IPv6).
doc_29154
Return the kernel k(X, Y) and optionally its gradient. Parameters Xndarray of shape (n_samples_X, n_features) Left argument of the returned kernel k(X, Y) Yndarray of shape (n_samples_Y, n_features), default=None Right argument of the returned kernel k(X, Y). If None, k(X, X) if evaluated instead. eval_gr...
doc_29155
See Migration guide for more details. tf.compat.v1.math.erfinv tf.math.erfinv( x, name=None ) Given x, compute the inverse error function of x. This function is the inverse of tf.math.erf. Args x Tensor with type float or double. name A name for the operation (optional). Returns Inverse ...
doc_29156
See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.img_to_array tf.keras.preprocessing.image.img_to_array( img, data_format=None, dtype=None ) Usage: from PIL import Image img_data = np.random.random(size=(100, 100, 3)) img = tf.keras.preprocessing.image.array_to_img(img_data) array = t...
doc_29157
Copies the elements of tensor into the self tensor by selecting the indices in the order given in index. For example, if dim == 0 and index[i] == j, then the ith row of tensor is copied to the jth row of self. The dimth dimension of tensor must have the same size as the length of index (which must be a vector), and all...
doc_29158
true if this cd device initialized get_init() -> bool Test if this CDROM device is initialized. This is different than the pygame.cdrom.init() since each drive must also be initialized individually.
doc_29159
Read an array header from a filelike object using the 1.0 file format version. This will leave the file object located just after the header. Parameters fpfilelike object A file object or something with a read() method like a file. Returns shapetuple of int The shape of the array. fortran_orderbool ...
doc_29160
Returns an AppConfig for the application with the given app_label. Raises LookupError if no such application exists.
doc_29161
Agglomerate features. Similar to AgglomerativeClustering, but recursively merges features instead of samples. Read more in the User Guide. Parameters n_clustersint, default=2 The number of clusters to find. It must be None if distance_threshold is not None. affinitystr or callable, default=’euclidean’ Metri...
doc_29162
Returns the sum of all elements, treating Not a Numbers (NaNs) as zero. Parameters input (Tensor) – the input tensor. Keyword Arguments dtype (torch.dtype, optional) – the desired data type of returned tensor. If specified, the input tensor is casted to dtype before the operation is performed. This is useful for pr...
doc_29163
Return Addition of series and other, element-wise (binary operator add). Equivalent to series + other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existing missing (NaN...
doc_29164
os.P_PGID os.P_ALL These are the possible values for idtype in waitid(). They affect how id is interpreted. Availability: Unix. New in version 3.3.
doc_29165
An abstract base class for a loader which implements the optional PEP 302 protocol for loading arbitrary resources from the storage back-end. Deprecated since version 3.7: This ABC is deprecated in favour of supporting resource loading through importlib.abc.ResourceReader. abstractmethod get_data(path) An abstrac...
doc_29166
Handle a record. This just loops through the handlers offering them the record to handle. The actual object passed to the handlers is that which is returned from prepare().
doc_29167
A torch.nn.ConvTranspose2d module with lazy initialization of the in_channels argument of the ConvTranspose2d 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, o...
doc_29168
Retrieves a map from Tensor to the appropriate gradient for that Tensor accumulated in the provided context corresponding to the given context_id as part of the distributed autograd backward pass. Parameters context_id (int) – The autograd context id for which we should retrieve the gradients. Returns A map where t...
doc_29169
Return a named tuple object with three components: year, week and weekday. The ISO calendar is a widely used variant of the Gregorian calendar. 3 The ISO year consists of 52 or 53 full weeks, and where a week starts on a Monday and ends on a Sunday. The first week of an ISO year is the first (Gregorian) calendar week o...
doc_29170
Dictionary mapping filename extensions to encoding types.
doc_29171
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_29172
sklearn.metrics.zero_one_loss(y_true, y_pred, *, normalize=True, sample_weight=None) [source] Zero-one classification loss. If normalize is True, return the fraction of misclassifications (float), else it returns the number of misclassifications (int). The best performance is 0. Read more in the User Guide. Paramete...
doc_29173
Raised on dbm.gnu-specific errors, such as I/O errors. KeyError is raised for general mapping errors like specifying an incorrect key.
doc_29174
Return a float with the magnitude (absolute value) of x but the sign of y. On platforms that support signed zeros, copysign(1.0, -0.0) returns -1.0.
doc_29175
See Migration guide for more details. tf.compat.v1.raw_ops.ScanDataset tf.raw_ops.ScanDataset( input_dataset, initial_state, other_arguments, f, output_types, output_shapes, preserve_cardinality=False, use_default_device=True, name=None ) Args input_dataset A Tensor of type variant. initial_stat...
doc_29176
Set to a name that is safe to use as the name of a temporary file. Any temporary file that is created should be closed and unlinked (removed).
doc_29177
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_29178
Django view for the model instances change list/actions page. See note below.
doc_29179
See Migration guide for more details. tf.compat.v1.image.adjust_saturation tf.image.adjust_saturation( image, saturation_factor, name=None ) This is a convenience method that converts RGB images to float representation, converts them to HSV, adds an offset to the saturation channel, converts back to RGB and then...
doc_29180
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_29181
Alias for set_linewidth.
doc_29182
A Row instance serves as a highly optimized row_factory for Connection objects. It tries to mimic a tuple in most of its features. It supports mapping access by column name and index, iteration, representation, equality testing and len(). If two Row objects have exactly the same columns and their members are equal, the...
doc_29183
Bases: object Helper to deprecate public access to an attribute (or method). This helper should only be used at class scope, as follows: class Foo: attr = _deprecate_privatize_attribute(*args, **kwargs) where all parameters are forwarded to deprecated. This form makes attr a property which forwards read and writ...
doc_29184
Remove a registered result. Once a result has been removed then stop() will no longer be called on that result object in response to a control-c.
doc_29185
Compute clustering and transform X to cluster-distance space. Equivalent to fit(X).transform(X), but more efficiently implemented. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) New data to transform. yIgnored Not used, present here for API consistency by convention. sample_weigh...
doc_29186
This handler sends an email to the site ADMINS for each log message it receives. If the log record contains a request attribute, the full details of the request will be included in the email. The email subject will include the phrase “internal IP” if the client’s IP address is in the INTERNAL_IPS setting; if not, it wi...
doc_29187
Return the SCRIPT_NAME from the WSGI environment and decode it unless charset is set to None. Parameters environ (WSGIEnvironment) – WSGI environment to get the path from. charset (str) – The charset for the path, or None if no decoding should be performed. errors (str) – The decoding error handling. Return typ...
doc_29188
Return self%=value.
doc_29189
Remove the rubberband.
doc_29190
Return the system description of the signal signalnum, such as “Interrupt”, “Segmentation fault”, etc. Returns None if the signal is not recognized. New in version 3.8.
doc_29191
Return self[key].
doc_29192
Provides an overriding level level for all loggers which takes precedence over the logger’s own level. When the need arises to temporarily throttle logging output down across the whole application, this function can be useful. Its effect is to disable all logging calls of severity level and below, so that if you call i...
doc_29193
Given a quantized Tensor, dequantize it and return the dequantized float Tensor.
doc_29194
Return reshaped DataFrame organized by given index / column values. Reshape data (produce a “pivot” table) based on column values. Uses unique values from specified index / columns to form axes of the resulting DataFrame. This function does not support data aggregation, multiple values will result in a MultiIndex in ...
doc_29195
Set whether the Axes responds to navigation toolbar commands. Parameters bbool
doc_29196
See Migration guide for more details. tf.compat.v1.experimental.async_clear_error tf.experimental.async_clear_error() In async execution mode, an error in op/function execution can lead to errors in subsequent ops/functions that are scheduled but not yet executed. Calling this method clears all pending operations an...
doc_29197
Computes input * log(other) with the following cases. outi={NaNif otheri=NaN0if inputi=0.0inputi∗log⁡(otheri)otherwise\text{out}_{i} = \begin{cases} \text{NaN} & \text{if } \text{other}_{i} = \text{NaN} \\ 0 & \text{if } \text{input}_{i} = 0.0 \\ \text{input}_{i} * \log{(\text{other}_{i})} & \text{otherwise} \end{case...
doc_29198
transfer image to string buffer tostring(Surface, format, flipped=False) -> string Creates a string that can be transferred with the 'fromstring' method in other Python imaging packages. Some Python image packages prefer their images in bottom-to-top format (PyOpenGL for example). If you pass True for the flipped arg...
doc_29199
The HTTP request method to use. By default its value is None, which means that get_method() will do its normal computation of the method to be used. Its value can be set (thus overriding the default computation in get_method()) either by providing a default value by setting it at the class level in a Request subclass, ...