_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_15100
Creates a new savepoint. This marks a point in the transaction that is known to be in a “good” state. Returns the savepoint ID (sid).
doc_15101
Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. See also char.isdigit
doc_15102
Returns an uninitialized tensor with the same size as input. torch.empty_like(input) is equivalent to torch.empty(input.size(), dtype=input.dtype, layout=input.layout, device=input.device). Parameters input (Tensor) – the size of input will determine size of the output tensor. Keyword Arguments dtype (torch.dtype...
doc_15103
See Migration guide for more details. tf.compat.v1.errors.FailedPreconditionError tf.errors.FailedPreconditionError( node_def, op, message ) This exception is most commonly raised when running an operation that reads a tf.Variable before it has been initialized. Attributes error_code The integer error c...
doc_15104
Works like record() but wraps the function in another function that will ensure the function is only called once. If the blueprint is registered a second time on the application, the function passed is not called. Parameters func (Callable) – Return type None
doc_15105
Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
doc_15106
The internal block size of the hash algorithm in bytes.
doc_15107
Set the event picker details for the line. Parameters pfloat or callable[[Artist, Event], tuple[bool, dict]] If a float, it is used as the pick radius in points.
doc_15108
Compares two strings according to the current LC_COLLATE setting. As any other compare function, returns a negative, or a positive value, or 0, depending on whether string1 collates before or after string2 or is equal to it.
doc_15109
Return unique values of Series object. Uniques are returned in order of appearance. Hash table-based unique, therefore does NOT sort. Returns ndarray or ExtensionArray The unique values returned as a NumPy array. See Notes. See also unique Top-level unique method for any 1-d array-like object. Index.uniqu...
doc_15110
See Migration guide for more details. tf.compat.v1.test.is_built_with_gpu_support tf.test.is_built_with_gpu_support()
doc_15111
class sklearn.decomposition.IncrementalPCA(n_components=None, *, whiten=False, copy=True, batch_size=None) [source] Incremental principal components analysis (IPCA). Linear dimensionality reduction using Singular Value Decomposition of the data, keeping only the most significant singular vectors to project the data t...
doc_15112
sklearn.cluster.ward_tree(X, *, connectivity=None, n_clusters=None, return_distance=False) [source] Ward clustering based on a Feature matrix. Recursively merges the pair of clusters that minimally increases within-cluster variance. The inertia matrix uses a Heapq-based representation. This is the structured version,...
doc_15113
See Migration guide for more details. tf.compat.v1.raw_ops.StatefulRandomBinomial tf.raw_ops.StatefulRandomBinomial( resource, algorithm, shape, counts, probs, dtype=tf.dtypes.int64, name=None ) Args resource A Tensor of type resource. algorithm A Tensor of type int64. shape A Tensor. Must b...
doc_15114
Ensures that the tensor memory is not reused for another tensor until all current work queued on stream are complete. Note The caching allocator is aware of only the stream where a tensor was allocated. Due to the awareness, it already correctly manages the life cycle of tensors on only one stream. But if a tensor is ...
doc_15115
Do any platform-specific customization of a compiler instance. This method calls distutils.sysconfig.customize_compiler for platform-specific customization, as well as optionally remove a flag to suppress spurious warnings in case C++ code is being compiled. Parameters distobject This parameter is not used for ...
doc_15116
Generate indices to split data into training and test set. Parameters Xarray-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features. yarray-like of shape (n_samples,), default=None The target variable for supervised learning pro...
doc_15117
See Migration guide for more details. tf.compat.v1.raw_ops.Expint tf.raw_ops.Expint( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_15118
Output pgf macros for drawing the figure so it can be included and rendered in latex documents.
doc_15119
tf.image.decode_gif Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_gif, tf.compat.v1.io.decode_gif tf.io.decode_gif( contents, name=None ) GIF images with frame or transparency compression are not supported. On Linux and MacOS systems, convert animated GIFs from comp...
doc_15120
tf.compat.v1.add_check_numerics_ops() check_numerics operations themselves are added for each half, float, or double tensor in the current default graph. For all ops in the graph, the check_numerics op for all of its (half, float, or double) inputs is guaranteed to run before the check_numerics op on any of its output...
doc_15121
See Migration guide for more details. tf.compat.v1.tpu.experimental.embedding.serving_embedding_lookup tf.tpu.experimental.embedding.serving_embedding_lookup( inputs, weights, tables, feature_config ) This function is a utility which allows using the tf.tpu.experimental.embedding config objects with standard loo...
doc_15122
Return a flattened view on this array. Parameters order:{None, ‘C’, ‘F’, ‘A’, ‘K’}, default ‘C’ Returns ExtensionArray Notes Because ExtensionArrays are 1D-only, this is a no-op. The “order” argument is ignored, is for compatibility with NumPy.
doc_15123
Compose two transforms together so that self is followed by other. A + B returns a transform C so that C.transform(x) == B.transform(A.transform(x)).
doc_15124
An N-dimensional iterator object to index arrays. Given the shape of an array, an ndindex instance iterates over the N-dimensional index of the array. At each iteration a tuple of indices is returned, the last dimension is iterated over first. Parameters shapeints, or a single tuple of ints The size of each dim...
doc_15125
Set the url for the artist. Parameters urlstr
doc_15126
Path to a custom template, used by response_add(), response_change(), and response_delete().
doc_15127
if self.request.version == 'v1': return AccountSerializerVersion1 return AccountSerializer Reversing URLs for versioned APIs The reverse function included by REST framework ties in with the versioning scheme. You need to make sure to include the current request as a keyword argument, like so. from rest...
doc_15128
The Content-MD5 entity-header field, as defined in RFC 1864, is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body. (Note: a MIC is good for detecting accidental modification of the entity-body in transit, but is not proof against malicious attac...
doc_15129
Find sprites in a group that intersect another sprite. spritecollide(sprite, group, dokill, collided = None) -> Sprite_list Return a list containing all Sprites in a Group that intersect with another Sprite. Intersection is determined by comparing the Sprite.rect attribute of each Sprite. The dokill argument is a boo...
doc_15130
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_15131
Read and return up to size bytes, with at most one call to the underlying raw stream’s read() (or readinto()) method. This can be useful if you are implementing your own buffering on top of a BufferedIOBase object. If size is -1 (the default), an arbitrary number of bytes are returned (more than zero unless EOF is reac...
doc_15132
Python buffer object pointing to the start of the array’s data.
doc_15133
Alias for get_fontvariant.
doc_15134
gets default output device number get_default_output_id() -> default_id See get_default_input_id() for usage details.
doc_15135
tf.metrics.Accuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.Accuracy tf.keras.metrics.Accuracy( name='accuracy', dtype=None ) This metric creates two local variables, total and count that are used to compute the frequency with which y_pred matches y_true. Thi...
doc_15136
Returns a tuple (soft, hard) with the current soft and hard limits of resource. Raises ValueError if an invalid resource is specified, or error if the underlying system call fails unexpectedly.
doc_15137
See Migration guide for more details. tf.compat.v1.config.experimental_run_functions_eagerly tf.config.experimental_run_functions_eagerly( run_eagerly ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.config.run_functions_eagerly instead of the expe...
doc_15138
string -> datetime from datetime.isoformat() output
doc_15139
Return the URL scheme being used for the current request. The default implementation uses the guess_scheme() function from wsgiref.util to guess whether the scheme should be “http” or “https”, based on the current request’s environ variables.
doc_15140
Set the parameters of an estimator from the ensemble. Valid parameter keys can be listed with get_params(). Note that you can directly set the parameters of the estimators contained in estimators. Parameters **paramskeyword arguments Specific parameters using e.g. set_params(parameter_name=new_value). In additi...
doc_15141
Return a list of URLs, one for each element of the collection. The list contains None for elements without a URL. See Hyperlinks for an example.
doc_15142
Return the quarter this Period falls on.
doc_15143
Return Series as ndarray or ndarray-like depending on the dtype. Warning We recommend using Series.array or Series.to_numpy(), depending on whether you need a reference to the underlying data or a NumPy array. Returns numpy.ndarray or ndarray-like See also Series.array Reference to the underlying data. Se...
doc_15144
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_15145
Return True if the message’s payload is a list of sub-Message objects, otherwise return False. When is_multipart() returns False, the payload should be a string object (which might be a CTE encoded binary payload). (Note that is_multipart() returning True does not necessarily mean that “msg.get_content_maintype() == ‘m...
doc_15146
captures an image as a Surface get_image(Surface = None) -> Surface Pulls an image off of the buffer as an RGB Surface. It can optionally reuse an existing Surface to save time. The bit-depth of the surface is either 24 bits or the same as the optionally supplied Surface.
doc_15147
Returns the log-transformed bounds on the theta. Returns boundsndarray of shape (n_dims, 2) The log-transformed bounds on the kernel’s hyperparameters theta
doc_15148
Out-of-place version of torch.Tensor.scatter_add_()
doc_15149
URL to redirect after the password reset done. Defaults to 'password_reset_complete'.
doc_15150
tf.keras.preprocessing.image_dataset_from_directory( directory, labels='inferred', label_mode='int', class_names=None, color_mode='rgb', batch_size=32, image_size=(256, 256), shuffle=True, seed=None, validation_split=None, subset=None, interpolation='bilinear', follow_links=False ) If your directory st...
doc_15151
Bases: matplotlib.patches.ConnectionStyle._Base Creates a simple quadratic Bezier curve between two points. The middle control points is placed at the intersecting point of two lines which cross the start and end point, and have a slope of angleA and angleB, respectively. angleA starting angle of the path angleB ...
doc_15152
Return the clipbox.
doc_15153
tf.experimental.numpy.iscomplex( x ) See the NumPy documentation for numpy.iscomplex.
doc_15154
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_15155
Headers are folded using the Header folding algorithm, which preserves existing line breaks in the value, and wraps each resulting line to the max_line_length. If cte_type is 7bit, non-ascii binary data is CTE encoded using the unknown-8bit charset. Otherwise the original source header is used, with its existing line b...
doc_15156
Return the element-wise square of the input. Parameters xarray_like Input data. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned....
doc_15157
See Migration guide for more details. tf.compat.v1.raw_ops.Igamma tf.raw_ops.Igamma( a, x, name=None ) The lower regularized incomplete Gamma function is defined as: \(P(a, x) = gamma(a, x) / Gamma(a) = 1 - Q(a, x)\) where \(gamma(a, x) = \\int_{0}^{x} t^{a-1} exp(-t) dt\) is the lower incomplete Gamma function....
doc_15158
Same as gettempprefix() but the return value is in bytes. New in version 3.5.
doc_15159
Return the current hatching pattern.
doc_15160
Return code of the process when it exits. A None value indicates that the process has not terminated yet. A negative value -N indicates that the child was terminated by signal N (POSIX only).
doc_15161
Register a custom template test, available application wide. Like Flask.add_template_test() but for a blueprint. Works exactly like the app_template_test() decorator. Changelog New in version 0.10. Parameters name (Optional[str]) – the optional name of the test, otherwise the function name will be used. f (Calla...
doc_15162
An asynchronous version of MagicMock. The AsyncMock object will behave so the object is recognized as an async function, and the result of a call is an awaitable. >>> mock = AsyncMock() >>> asyncio.iscoroutinefunction(mock) True >>> inspect.isawaitable(mock()) True The result of mock() is an async function which wil...
doc_15163
Returns a clone of self with given hyperparameters theta. Parameters thetandarray of shape (n_dims,) The hyperparameters
doc_15164
Generalized Linear Model with a Tweedie distribution. This estimator can be used to model different GLMs depending on the power parameter, which determines the underlying distribution. Read more in the User Guide. New in version 0.23. Parameters powerfloat, default=0 The power determines the underlying target...
doc_15165
Uses both validate_ipv4_address and validate_ipv6_address to ensure a value is either a valid IPv4 or IPv6 address.
doc_15166
Creates a TagURI. See https://web.archive.org/web/20110514113830/http://diveintomark.org/archives/2004/05/28/howto-atom-id
doc_15167
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 clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None d...
doc_15168
A basic test runner implementation that outputs results to a stream. If stream is None, the default, sys.stderr is used as the output stream. This class has a few configurable parameters, but is essentially very simple. Graphical applications which run test suites should provide alternate implementations. Such implemen...
doc_15169
set the music volume set_volume(volume) -> None Set the volume of the music playback. The volume argument is a float between 0.0 and 1.0 that sets volume. When new music is loaded the volume is reset to full volume.
doc_15170
See torch.arctan()
doc_15171
Load a set of default “certification authority” (CA) certificates from a filesystem path defined when building the OpenSSL library. Unfortunately, there’s no easy way to know whether this method succeeds: no error is returned if no certificates are to be found. When the OpenSSL library is provided as part of the operat...
doc_15172
Send user command, response should indicate that a password is required.
doc_15173
The maximum address space which may be locked in memory.
doc_15174
Convert to a header value. Return type str
doc_15175
Indicates whether the date is the first day of the month. Returns Series or array For Series, returns a Series with boolean values. For DatetimeIndex, returns a boolean array. See also is_month_start Return a boolean indicating whether the date is the first day of the month. is_month_end Return a boolean...
doc_15176
See Migration guide for more details. tf.compat.v1.raw_ops.BatchNormWithGlobalNormalizationGrad tf.raw_ops.BatchNormWithGlobalNormalizationGrad( t, m, v, gamma, backprop, variance_epsilon, scale_after_normalization, name=None ) This op is deprecated. See tf.nn.batch_normalization. Args t A Tensor. Must ...
doc_15177
Restores registry reflection for the specified disabled key. key is an already open key, or one of the predefined HKEY_* constants. Will generally raise NotImplementedError if executed on a 32-bit operating system. Restoring reflection for a key does not affect reflection of any subkeys. Raises an auditing event winreg...
doc_15178
See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNCanonicalToParamsV2 tf.raw_ops.CudnnRNNCanonicalToParamsV2( num_layers, num_units, input_size, weights, biases, rnn_mode='lstm', input_mode='linear_input', direction='unidirectional', dropout=0, seed=0, seed2=0, num_proj=0, name=None ) Wr...
doc_15179
Set up axis ticks and labels to treat data along the yaxis as dates. Parameters tzstr or datetime.tzinfo, default: rcParams["timezone"] (default: 'UTC') The timezone used to create date labels.
doc_15180
Like ngettext(), but look the message up in the specified domain.
doc_15181
The sentinel object provides a convenient way of providing unique objects for your tests. Attributes are created on demand when you access them by name. Accessing the same attribute will always return the same object. The objects returned have a sensible repr so that test failure messages are readable. Changed in vers...
doc_15182
Add self to other, and return a new masked array.
doc_15183
Backward fill the values. Parameters limit:int, optional Limit of how many values to fill. Returns Series or DataFrame Object with missing values filled. See also Series.bfill Backward fill the missing values in the dataset. DataFrame.bfill Backward fill the missing values in the dataset. Series...
doc_15184
Perform a Locally Linear Embedding analysis on the data. Read more in the User Guide. Parameters X{array-like, NearestNeighbors} Sample data, shape = (n_samples, n_features), in the form of a numpy array or a NearestNeighbors object. n_neighborsint number of neighbors to consider for each point. n_compone...
doc_15185
Bases: object __call__(v1, v2)[source] Call self as a function. Examples using mpl_toolkits.axisartist.grid_finder.FixedLocator mpl_toolkits.axisartist.floating_axes features
doc_15186
Sets a cookie. A warning is raised if the size of the cookie header exceeds max_cookie_size, but the header will still be set. Parameters key (str) – the key (name) of the cookie to be set. value (str) – the value of the cookie. max_age (Optional[Union[datetime.timedelta, int]]) – should be a number of seconds, o...
doc_15187
Holds a list of strings containing the addresses identified in the “RCPT TO:” lines from the client.
doc_15188
See Migration guide for more details. tf.compat.v1.raw_ops.SampleDistortedBoundingBox tf.raw_ops.SampleDistortedBoundingBox( image_size, bounding_boxes, seed=0, seed2=0, min_object_covered=0.1, aspect_ratio_range=[0.75, 1.33], area_range=[0.05, 1], max_attempts=100, use_image_if_no_bounding_boxes=False, n...
doc_15189
See Migration guide for more details. tf.compat.v1.raw_ops.MakeIterator tf.raw_ops.MakeIterator( dataset, iterator, name=None ) This operation may be executed multiple times. Each execution will reset the iterator in iterator to the first element of dataset. Args dataset A Tensor of type variant. it...
doc_15190
Set the JoinStyle for the collection (for all its elements). Parameters jsJoinStyle or {'miter', 'round', 'bevel'}
doc_15191
sklearn.datasets.make_multilabel_classification(n_samples=100, n_features=20, *, n_classes=5, n_labels=2, length=50, allow_unlabeled=True, sparse=False, return_indicator='dense', return_distributions=False, random_state=None) [source] Generate a random multilabel classification problem. For each sample, the generati...
doc_15192
Bases: matplotlib.backend_tools.ToolBase Base tool for the configuration of subplots. description='Configure subplots' Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar. image='subplots' Filename of the image. str: Filename of the image to use in a Toolbar. If None, the name is...
doc_15193
Convert a polynomial to a Laguerre series. Convert an array representing the coefficients of a polynomial (relative to the “standard” basis) ordered from lowest degree to highest, to an array of the coefficients of the equivalent Laguerre series, ordered from lowest to highest degree. Parameters polarray_like 1...
doc_15194
Return the font style as a string. See also font_manager.FontProperties.get_style
doc_15195
Perform a merge for ordered data with optional filling/interpolation. Designed for ordered data like time series data. Optionally perform group-wise merge (see examples). Parameters left:DataFrame right:DataFrame on:label or list Field names to join on. Must be found in both DataFrames. left_on:label or l...
doc_15196
Set the pick radius used for containment tests. Parameters prfloat Pick radius, in points.
doc_15197
Set the offsets for the collection. Parameters offsets(N, 2) or (2,) array-like
doc_15198
Given the path to a PEP 3147 file name, return the associated source code file path. For example, if path is /foo/bar/__pycache__/baz.cpython-32.pyc the returned path would be /foo/bar/baz.py. path need not exist, however if it does not conform to PEP 3147 or PEP 488 format, a ValueError is raised. If sys.implementatio...
doc_15199
Use the server’s cipher ordering preference, rather than the client’s. This option has no effect on client sockets and SSLv2 server sockets. New in version 3.3.