_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_9200
See Migration guide for more details. tf.compat.v1.raw_ops.ComplexAbs tf.raw_ops.ComplexAbs( x, Tout=tf.dtypes.float32, name=None ) Given a tensor x of complex numbers, this operation returns a tensor of type float or double that is the absolute value of each element in x. All elements in x must be complex numbe...
doc_9201
Parses a string and returns a datetime.date.
doc_9202
Return a string representation of the message corresponding to key, or raise a KeyError exception if no such message exists. The message is processed through email.message.Message to convert it to a 7bit clean representation.
doc_9203
Set the artist's clip Bbox. Parameters clipboxBbox
doc_9204
Pandas array for interval data that are closed on the same side. New in version 0.24.0. Parameters data:array-like (1-dimensional) Array-like containing Interval objects from which to build the IntervalArray. closed:{‘left’, ‘right’, ‘both’, ‘neither’}, default ‘right’ Whether the intervals are closed on ...
doc_9205
Decode the string s according to RFC 2231.
doc_9206
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g...
doc_9207
Label a contour plot. Adds labels to line contours in given ContourSet. Parameters CSContourSet instance Line contours to label. levelsarray-like, optional A list of level values, that should be labeled. The list must be a subset of CS.levels. If not given, all levels are labeled. **kwargs All other param...
doc_9208
'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_9209
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_9210
Fits the model to the training set X and returns the labels. Not available for novelty detection (when novelty is set to True). Label is 1 for an inlier and -1 for an outlier according to the LOF score and the contamination parameter. Parameters Xarray-like of shape (n_samples, n_features), default=None The query...
doc_9211
Optional opaque data associated to this file object: for example, this could be used to store a per-client session ID.
doc_9212
The final path component.
doc_9213
tf.compat.v1.image.crop_and_resize( image, boxes, box_ind=None, crop_size=None, method='bilinear', extrapolation_value=0, name=None, box_indices=None ) Extracts crops from the input image tensor and resizes them using bilinear sampling or nearest neighbor sampling (possibly with aspect ratio change) to a commo...
doc_9214
Holds parameters in a list. ParameterList can be indexed like a regular Python list, but parameters it contains are properly registered, and will be visible by all Module methods. Parameters parameters (iterable, optional) – an iterable of Parameter to add Example: class MyModule(nn.Module): def __init__(self...
doc_9215
Load the key generation parameters for Diffie-Hellman (DH) key exchange. Using DH key exchange improves forward secrecy at the expense of computational resources (both on the server and on the client). The dhfile parameter should be the path to a file containing DH parameters in PEM format. This setting doesn’t apply t...
doc_9216
Computes the element-wise conjugate of the given input tensor. If :attr`input` has a non-complex dtype, this function just returns input. Warning In the future, torch.conj() may return a non-writeable view for an input of non-complex dtype. It’s recommended that programs not modify the tensor returned by torch.conj() ...
doc_9217
Set the artist's visibility. Parameters bbool
doc_9218
The next operation will be performed elementwise. elementwise() -> VectorElementwiseProxy Applies the following operation to each element of the vector.
doc_9219
See MultiLabelMarginLoss for details.
doc_9220
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_9221
Returns the canonical combining class assigned to the character chr as integer. Returns 0 if no combining class is defined.
doc_9222
sklearn.metrics.mean_poisson_deviance(y_true, y_pred, *, sample_weight=None) [source] Mean Poisson deviance regression loss. Poisson deviance is equivalent to the Tweedie deviance with the power parameter power=1. Read more in the User Guide. Parameters y_truearray-like of shape (n_samples,) Ground truth (corre...
doc_9223
os.R_OK os.W_OK os.X_OK Values to pass as the mode parameter of access() to test the existence, readability, writability and executability of path, respectively.
doc_9224
Set the second sequence to be compared. The first sequence to be compared is not changed.
doc_9225
See Migration guide for more details. tf.compat.v1.strings.bytes_split tf.strings.bytes_split( input, name=None ) Examples: tf.strings.bytes_split('hello').numpy() array([b'h', b'e', b'l', b'l', b'o'], dtype=object) tf.strings.bytes_split(['hello', '123']) <tf.RaggedTensor [[b'h', b'e', b'l', b'l', b'o'], [b'1'...
doc_9226
True if the signaling system is available. This is the case when blinker is installed.
doc_9227
class ast.Sub class ast.Mult class ast.Div class ast.FloorDiv class ast.Mod class ast.Pow class ast.LShift class ast.RShift class ast.BitOr class ast.BitXor class ast.BitAnd class ast.MatMult Binary operator tokens.
doc_9228
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_9229
Randomly permute a sequence, or return a permuted range. If x is a multi-dimensional array, it is only shuffled along its first index. Note New code should use the permutation method of a default_rng() instance instead; please see the Quick Start. Parameters xint or array_like If x is an integer, randomly per...
doc_9230
This method allows you to compare two Header instances for inequality.
doc_9231
Extension dtype for boolean data. New in version 1.0.0. Warning BooleanDtype is considered experimental. The implementation and parts of the API may change without warning. Examples >>> pd.BooleanDtype() BooleanDtype Attributes None Methods None
doc_9232
This converter is the default converter and accepts any string but only one path segment. Thus the string can not include a slash. This is the default validator. Example: Rule('/pages/<page>'), Rule('/<string(length=2):lang_code>') Parameters map (Map) – the Map. minlength (int) – the minimum length of the string...
doc_9233
See Migration guide for more details. tf.compat.v1.linalg.lu_reconstruct tf.linalg.lu_reconstruct( lower_upper, perm, validate_args=False, name=None ) Args lower_upper lu as returned by tf.linalg.lu, i.e., if matmul(P, matmul(L, U)) = X then lower_upper = L + U - eye. perm p as returned by tf.lina...
doc_9234
Compute the roots of a HermiteE series. Return the roots (a.k.a. “zeros”) of the polynomial \[p(x) = \sum_i c[i] * He_i(x).\] Parameters c1-D array_like 1-D array of coefficients. Returns outndarray Array of the roots of the series. If all the roots are real, then out is also real, otherwise it is comp...
doc_9235
Return the kernel k(X, Y) and optionally its gradient. Parameters Xarray-like of shape (n_samples_X, n_features) or list of object Left argument of the returned kernel k(X, Y) Yarray-like of shape (n_samples_X, n_features) or list of object, default=None Right argument of the returned kernel k(X, Y). If Non...
doc_9236
See Migration guide for more details. tf.compat.v1.nn.space_to_batch tf.compat.v1.space_to_batch( input, paddings, block_size=None, name=None, block_shape=None ) This is a legacy version of the more general SpaceToBatchND. Zero-pads and then rearranges (permutes) blocks of spatial data into batch. More specifica...
doc_9237
Same as header_encoding, but describes the encoding for the mail message’s body, which indeed may be different than the header encoding. Charset.SHORTEST is not allowed for body_encoding.
doc_9238
Create a new instance to handle XML-RPC requests in a CGI environment.
doc_9239
Split an array into multiple sub-arrays horizontally (column-wise). Please refer to the split documentation. hsplit is equivalent to split with axis=1, the array is always split along the second axis regardless of the array dimension. See also split Split an array into multiple sub-arrays of equal size. Notes T...
doc_9240
@tf_contextlib.contextmanager tf.compat.v1.layers.experimental.keras_style_scope() All tf.layers and tf RNN cells created in this scope use Keras-style variable management. Creating such layers with a scope= argument is disallowed, and reuse=True is disallowed. The purpose of this scope is to allow users of existing l...
doc_9241
Return first index of value. Raises ValueError if the value is not present.
doc_9242
Returns True if the user has the specified permission, where perm is in the format "<app label>.<permission codename>". (see documentation on permissions). If the user is inactive, this method will always return False. For an active superuser, this method will always return True. If obj is passed in, this method won’t ...
doc_9243
A context manager that temporarily sets the process umask.
doc_9244
Receives a tensor synchronously. Parameters tensor (Tensor) – Tensor to fill with received data. src (int, optional) – Source rank. Will receive from any process if unspecified. group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used. tag (int, optional) –...
doc_9245
The form field to use.
doc_9246
Set the connection style. Old attributes are forgotten. Parameters connectionstylestr or ConnectionStyle or None, optional Can be a string with connectionstyle name with optional comma-separated attributes, e.g.: set_connectionstyle("arc,angleA=0,armA=30,rad=10") Alternatively, the attributes can be provided a...
doc_9247
Find the k largest (or smallest) eigenvalues and the corresponding eigenvectors of a symmetric positive defined generalized eigenvalue problem using matrix-free LOBPCG methods. This function is a front-end to the following LOBPCG algorithms selectable via method argument: method=”basic” - the LOBPCG method introduced...
doc_9248
A wrapper for a bound socket or Windows named pipe which is ‘listening’ for connections. address is the address to be used by the bound socket or named pipe of the listener object. Note If an address of ‘0.0.0.0’ is used, the address will not be a connectable end point on Windows. If you require a connectable end-poin...
doc_9249
Draw samples from an F distribution. Samples are drawn from an F distribution with specified parameters, dfnum (degrees of freedom in numerator) and dfden (degrees of freedom in denominator), where both parameters must be greater than zero. The random variate of the F distribution (also known as the Fisher distributi...
doc_9250
Whether the categories have an ordered relationship.
doc_9251
Return a copy of the array. Parameters order{‘C’, ‘F’, ‘A’, ‘K’}, optional Controls the memory layout of the copy. ‘C’ means C-order, ‘F’ means F-order, ‘A’ means ‘F’ if a is Fortran contiguous, ‘C’ otherwise. ‘K’ means match the layout of a as closely as possible. (Note that this function and numpy.copy are ve...
doc_9252
See Migration guide for more details. tf.compat.v1.math.reciprocal_no_nan tf.math.reciprocal_no_nan( x, name=None ) If a particular element is zero, the reciprocal for that element is also set to zero. For example: x = tf.constant([2.0, 0.5, 0, 1], dtype=tf.float32) tf.math.reciprocal_no_nan(x) # [ 0.5, 2, 0.0,...
doc_9253
Optional. A longer formal identifier for the user such as their full name. If implemented, this appears alongside the username in an object’s history in django.contrib.admin.
doc_9254
Convert the input to a chararray, copying the data only if necessary. Versus a regular NumPy array of type str or unicode, this class adds the following functionality: values automatically have whitespace removed from the end when indexed comparison operators automatically remove whitespace from the end when compari...
doc_9255
Computes the log-likelihood of a Gaussian data set with self.covariance_ as an estimator of its covariance matrix. Parameters X_testarray-like of shape (n_samples, n_features) Test data of which we compute the likelihood, where n_samples is the number of samples and n_features is the number of features. X_test ...
doc_9256
Bases: torch.distributions.distribution.Distribution Creates a Laplace distribution parameterized by loc and scale. Example: >>> m = Laplace(torch.tensor([0.0]), torch.tensor([1.0])) >>> m.sample() # Laplace distributed with loc=0, scale=1 tensor([ 0.1046]) Parameters loc (float or Tensor) – mean of the distrib...
doc_9257
tf.keras.constraints.unit_norm Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.constraints.UnitNorm, tf.compat.v1.keras.constraints.unit_norm tf.keras.constraints.UnitNorm( axis=0 ) Also available via the shortcut function tf.keras.constraints.unit_norm. Arguments axi...
doc_9258
Set the marker size in points. Parameters szfloat Marker size, in points.
doc_9259
Get the matrix for the affine part of this transform.
doc_9260
Change the default backend used by Parallel inside a with block. If backend is a string it must match a previously registered implementation using the register_parallel_backend function. By default the following backends are available: ‘loky’: single-host, process-based parallelism (used by default), ‘threading’: si...
doc_9261
Deprecated; see memory_reserved().
doc_9262
Bases: matplotlib.collections.PatchCollection A collection of 3D patches. Create a collection of flat 3D patches with its normal vector pointed in zdir direction, and located at zs on the zdir axis. 'zs' can be a scalar or an array-like of the same length as the number of patches in the collection. Constructor argume...
doc_9263
See Migration guide for more details. tf.compat.v1.recompute_grad tf.recompute_grad( f ) For f(*args, **kwargs), this supports gradients with respect to args or kwargs, but kwargs are currently only supported in eager-mode. Note that for keras layer and model objects, this is handled automatically. Warning: If f...
doc_9264
Return image after histogram equalization. Parameters imagearray Image array. nbinsint, optional Number of bins for image histogram. Note: this argument is ignored for integer images, for which each integer is its own bin. mask: ndarray of bools or 0s and 1s, optional Array of same shape as image. Only po...
doc_9265
If pass_through is True, all ancestors will always be invalidated, even if 'self' is already invalid.
doc_9266
Set the artist transform. Parameters tTransform
doc_9267
Attributes key string key value CollectionDef value
doc_9268
Low level interface to kevent changelist must be an iterable of kevent objects or None max_events must be 0 or a positive integer timeout in seconds (floats possible); the default is None, to wait forever Changed in version 3.5: The function is now retried with a recomputed timeout when interrupted by a signal, exc...
doc_9269
runeval(expression, globals=None, locals=None) runcall(function, *args, **kwds) set_trace() See the documentation for the functions explained above.
doc_9270
Load a ScriptModule or ScriptFunction previously saved with torch.jit.save All previously saved modules, no matter their device, are first loaded onto CPU, and then are moved to the devices they were saved from. If this fails (e.g. because the run time system doesn’t have certain devices), an exception is raised. Pa...
doc_9271
Return the size and offset of rendered text get_rect(text, style=STYLE_DEFAULT, rotation=0, size=0) -> rect Gets the final dimensions and origin, in pixels, of text using the optional size in points, style, and rotation. For other relevant render properties, and for any optional argument not given, the default values...
doc_9272
Parameters urlslist of str or None Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends.
doc_9273
tf.compat.v1.setdiff1d( x, y, index_dtype=tf.dtypes.int32, name=None ) Given a list x and a list y, this operation returns a list out that represents all values that are in x but not in y. The returned list out is sorted in the same order that the numbers appear in x (duplicates are preserved). This operation also...
doc_9274
Collision detection between two sprites, using rects. collide_rect(left, right) -> bool Tests for collision between two sprites. Uses the pygame rect colliderect function to calculate the collision. Intended to be passed as a collided callback function to the *collide functions. Sprites must have a "rect" attributes....
doc_9275
A placeholder method which can be overridden in third party implementations to pre-install packages in the virtual environment or perform other post-creation steps.
doc_9276
A string, a tuple of strings, or None, indicating the newlines translated so far. Depending on the implementation and the initial constructor flags, this may not be available.
doc_9277
Whether rotations of the transform affect the text direction. Parameters tbool
doc_9278
Tuple of array dimensions.
doc_9279
window.subwin(nlines, ncols, begin_y, begin_x) Return a sub-window, whose upper-left corner is at (begin_y, begin_x), and whose width/height is ncols/nlines. By default, the sub-window will extend from the specified position to the lower right corner of the window.
doc_9280
Return True if x is neither an infinity nor a NaN, and False otherwise. (Note that 0.0 is considered finite.) New in version 3.2.
doc_9281
Attempts to parse a date according to the rules in RFC 2822. however, some mailers don’t follow that format as specified, so parsedate() tries to guess correctly in such cases. date is a string containing an RFC 2822 date, such as "Mon, 20 Nov 1995 19:12:08 -0500". If it succeeds in parsing the date, parsedate() return...
doc_9282
Return Floating division of series and other, element-wise (binary operator truediv). 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...
doc_9283
draw a pixel pixel(surface, x, y, color) -> None Draws a single pixel, at position (x ,y), on the given surface. Parameters: surface (Surface) -- surface to draw on x (int) -- x coordinate of the pixel y (int) -- y coordinate of the pixel color (Color or tuple(int, int, int, [int])) -- color to draw with, ...
doc_9284
Return the clipbox.
doc_9285
Initialize self. See help(type(self)) for accurate signature.
doc_9286
The email package calls this method with the name and value currently stored in the Message for a given header. The method should return a string that represents that header “folded” correctly (according to the policy settings) by composing the name with the value and inserting linesep characters at the appropriate pla...
doc_9287
Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters lwfloat or list of floats
doc_9288
Format a pretty argument spec from the four values returned by getargvalues(). The format* arguments are the corresponding optional formatting functions that are called to turn names and values into strings. Note This function was inadvertently marked as deprecated in Python 3.5.
doc_9289
base object
doc_9290
Returns the queryset that will be used to retrieve the object that this view will display. By default, get_queryset() returns the value of the queryset attribute if it is set, otherwise it constructs a QuerySet by calling the all() method on the model attribute’s default manager.
doc_9291
The regular expression pattern.
doc_9292
The number of nodes in the sequence.
doc_9293
The day of the week with Monday=0, Sunday=6.
doc_9294
Get the color for high out-of-range values.
doc_9295
os.execle(path, arg0, arg1, ..., env) os.execlp(file, arg0, arg1, ...) os.execlpe(file, arg0, arg1, ..., env) os.execv(path, args) os.execve(path, args, env) os.execvp(file, args) os.execvpe(file, args, env) These functions all execute a new program, replacing the current process; they do not return. On U...
doc_9296
Get the high and low watermarks for write flow control. Return a tuple (low, high) where low and high are positive number of bytes. Use set_write_buffer_limits() to set the limits. New in version 3.4.2.
doc_9297
A helper class for CCompiler aims to provide extra build options to effectively control of compiler optimizations that are directly related to CPU features. Attributes conf_cache_factors conf_tmp_path Methods cache_flush() Force update the cache. cc_normalize_flags(flags) Remove the conflicts that caused du...
doc_9298
pygame module for interacting with events and queues Pygame handles all its event messaging through an event queue. The routines in this module help you manage that event queue. The input queue is heavily dependent on the pygame.display module. If the display has not been initialized and a video mode not set, the ...
doc_9299
See Migration guide for more details. tf.compat.v1.raw_ops.TensorDataset tf.raw_ops.TensorDataset( components, output_shapes, name=None ) Args components A list of Tensor objects. output_shapes A list of shapes (each a tf.TensorShape or list of ints) that has length >= 1. name A name for the...