_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_14200
An Elman RNN cell with tanh or ReLU non-linearity. h′=tanh⁡(Wihx+bih+Whhh+bhh)h' = \tanh(W_{ih} x + b_{ih} + W_{hh} h + b_{hh}) If nonlinearity is ‘relu’, then ReLU is used in place of tanh. Parameters input_size – The number of expected features in the input x hidden_size – The number of features in the hidd...
doc_14201
initialize the midi module init() -> None Initializes the pygame.midi module. Must be called before using the pygame.midi module. It is safe to call this more than once.
doc_14202
The value to use to represent “empty”. Defaults to an empty string.
doc_14203
Computes the inverse error function of each element of input. The inverse error function is defined in the range (−1,1)(-1, 1) as: erfinv(erf(x))=x\mathrm{erfinv}(\mathrm{erf}(x)) = x Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> torch...
doc_14204
tf.experimental.numpy.isscalar( num ) Unsupported arguments: element. See the NumPy documentation for numpy.isscalar.
doc_14205
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessTruncatedNormalV2 tf.raw_ops.StatelessTruncatedNormalV2( shape, key, counter, alg, dtype=tf.dtypes.float32, name=None ) The generated values follow a normal distribution with mean 0 and standard deviation 1, except that values whose magnitude is...
doc_14206
A unary operation. op is the operator, and operand any expression node.
doc_14207
This routine registers a callback. The callback is invoked for every n instructions of the SQLite virtual machine. This is useful if you want to get called from SQLite during long-running operations, for example to update a GUI. If you want to clear any previously installed progress handler, call the method with None f...
doc_14208
Return the intersection between the line through (cx1, cy1) at angle t1 and the line through (cx2, cy2) at angle t2.
doc_14209
Call draw_rubberband or remove_rubberband based on data.
doc_14210
Casts all floating point parameters and buffers to bfloat16 datatype. Returns self Return type Module
doc_14211
A file uploaded to a temporary location (i.e. stream-to-disk). This class is used by the TemporaryFileUploadHandler. In addition to the methods from UploadedFile, it has one additional method:
doc_14212
tf.compat.v1.metrics.mean( values, weights=None, metrics_collections=None, updates_collections=None, name=None ) The mean function creates two local variables, total and count that are used to compute the average of values. This average is ultimately returned as mean which is an idempotent operation that simpl...
doc_14213
Predict targets of given samples. Parameters Xarray-like of shape (n_samples, n_features) Samples. copybool, default=True Whether to copy X and Y, or perform in-place normalization. Notes This call requires the estimation of a matrix of shape (n_features, n_targets), which may be an issue in high dimens...
doc_14214
Convert an image to boolean format. Parameters imagendarray Input image. force_copybool, optional Force a copy of the data, irrespective of its current dtype. Returns outndarray of bool (bool_) Output image. Notes The upper half of the input dtype’s positive range is True, and the lower half is ...
doc_14215
Count number of distinct elements in specified axis. Return Series with number of distinct elements. Can ignore NaN values. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The axis to use. 0 or ‘index’ for row-wise, 1 or ‘columns’ for column-wise. dropna:bool, default True Don’t include NaN in the...
doc_14216
Transform X separately by each transformer, concatenate results. Parameters X{array-like, dataframe} of shape (n_samples, n_features) The data to be transformed by subset. Returns X_t{array-like, sparse matrix} of shape (n_samples, sum_n_components) hstack of results of transformers. sum_n_components is...
doc_14217
returns the squared Euclidean length of the vector. length_squared() -> float calculates the Euclidean length of the vector which follows from the Pythagorean theorem: vec.length_squared() == vec.x**2 + vec.y**2 + vec.z**2. This is faster than vec.length() because it avoids the square root.
doc_14218
Initialize self. See help(type(self)) for accurate signature.
doc_14219
Get 3D world limits.
doc_14220
input_type: 'url' template_name: 'django/forms/widgets/url.html' Renders as: <input type="url" ...>
doc_14221
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomUniformFullIntV2 tf.raw_ops.StatelessRandomUniformFullIntV2( shape, key, counter, alg, dtype=tf.dtypes.uint64, name=None ) The generated values are uniform integers covering the whole range of dtype. The outputs are a deterministic functio...
doc_14222
Create a TCP server (socket type SOCK_STREAM) listening on port of the host address. Returns a Server object. Arguments: protocol_factory must be a callable returning a protocol implementation. The host parameter can be set to several types which determine where the server would be listening: If host is a string, t...
doc_14223
Get a regular expression that can be used with the regex function to recognize a positive response to a yes/no question. Note The expression is in the syntax suitable for the regex() function from the C library, which might differ from the syntax used in re.
doc_14224
Represents the C double datatype. The constructor accepts an optional float initializer.
doc_14225
See Migration guide for more details. tf.compat.v1.data.experimental.take_while tf.data.experimental.take_while( predicate ) Args predicate A function that maps a nested structure of tensors (having shapes and types defined by self.output_shapes and self.output_types) to a scalar tf.bool tensor. ...
doc_14226
os.F_TLOCK os.F_ULOCK os.F_TEST Flags that specify what action lockf() will take. Availability: Unix. New in version 3.3.
doc_14227
Decorator for registering a class under a name. Example use: @registry.register(name) class Foo: pass
doc_14228
jsonify responses will be output with newlines, spaces, and indentation for easier reading by humans. Always enabled in debug mode. Default: False
doc_14229
See Migration guide for more details. tf.compat.v1.sparse.reduce_sum tf.compat.v1.sparse_reduce_sum( sp_input, axis=None, keepdims=None, reduction_axes=None, keep_dims=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: keep_dims is dep...
doc_14230
See torch.rsqrt()
doc_14231
Kernel which is composed of a set of other kernels. New in version 0.18. Parameters kernelslist of Kernels The other kernels Attributes bounds Returns the log-transformed bounds on the theta. hyperparameters Returns a list of all hyperparameter specifications. n_dims Returns the number of non-...
doc_14232
Set the center of the annulus. Parameters xy(float, float)
doc_14233
The test client that was used to make the request that resulted in the response.
doc_14234
Call decision_function on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports decision_function. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_14235
tf.compat.v1.losses.softmax_cross_entropy( onehot_labels, logits, weights=1.0, label_smoothing=0, scope=None, loss_collection=tf.GraphKeys.LOSSES, reduction=Reduction.SUM_BY_NONZERO_WEIGHTS ) weights acts as a coefficient for the loss. If a scalar is provided, then the loss is simply scaled by the given value....
doc_14236
Return the full string representation of the value with the position unspecified.
doc_14237
Set the alpha value used for blending - not supported on all backends. Parameters alphaarray-like or scalar or None All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
doc_14238
Move forward in the view lim stack. For convenience of being directly connected as a GUI callback, which often get passed additional parameters, this method accepts arbitrary parameters, but does not use them.
doc_14239
Broadcasts a tensor to specified GPU devices. Parameters tensor (Tensor) – tensor to broadcast. Can be on CPU or GPU. devices (Iterable[torch.device, str or int], optional) – an iterable of GPU devices, among which to broadcast. out (Sequence[Tensor], optional, keyword-only) – the GPU tensors to store output re...
doc_14240
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
doc_14241
Sorts the elements of the input tensor along its first dimension in ascending order by value. Note torch.msort(t) is equivalent to torch.sort(t, dim=0)[0]. See also torch.sort(). Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> t = torch.ra...
doc_14242
Tell the driver that there is likely to be a pause in the output, making it possible for the device to handle the pause more intelligently. You might use this after playing a spot sound effect, before waiting for user input, or before doing disk I/O.
doc_14243
Optional. This property returns a Paginator for items(). If you generate sitemaps in a batch you may want to override this as a cached property in order to avoid multiple items() calls.
doc_14244
Format Timedelta as ISO 8601 Duration like P[n]Y[n]M[n]DT[n]H[n]M[n]S, where the [n] s are replaced by the values. See https://en.wikipedia.org/wiki/ISO_8601#Durations. Returns str See also Timestamp.isoformat Function is used to convert the given Timestamp object into the ISO format. Notes The longest co...
doc_14245
Deprecated since version 2.3: Use mkstemp() instead. Return an absolute pathname of a file that did not exist at the time the call is made. The prefix, suffix, and dir arguments are similar to those of mkstemp(), except that bytes file names, suffix=None and prefix=None are not supported. Warning Use of this functio...
doc_14246
See Migration guide for more details. tf.compat.v1.raw_ops.Conj tf.raw_ops.Conj( input, name=None ) Given a tensor input of complex numbers, this operation returns a tensor of complex numbers that are the complex conjugate of each element in input. The complex numbers in input must be of the form \(a + bj\), whe...
doc_14247
Create a new SMTPChannel object which manages the communication between the server and a single SMTP client. conn and addr are as per the instance variables described below. data_size_limit specifies the maximum number of bytes that will be accepted in a DATA command. A value of None or 0 means no limit. enable_SMTPUTF...
doc_14248
Exception raised when a response code in the range 400–499 is received.
doc_14249
Applies the logical operation and between each operand’s digits.
doc_14250
sklearn.model_selection.cross_val_predict(estimator, X, y=None, *, groups=None, cv=None, n_jobs=None, verbose=0, fit_params=None, pre_dispatch='2*n_jobs', method='predict') [source] Generate cross-validated estimates for each input data point The data is split according to the cv parameter. Each sample belongs to exa...
doc_14251
See Migration guide for more details. tf.compat.v1.math.squared_difference, tf.compat.v1.squared_difference tf.math.squared_difference( x, y, name=None ) Note: math.squared_difference supports broadcasting. More about broadcasting here Args x A Tensor. Must be one of the following types: bfloat16, hal...
doc_14252
Processes a single input mini-batch through the pipe and returns an RRef pointing to the output. Pipe is a fairly transparent module wrapper. It doesn’t modify the input and output signature of the underlying module. But there’s type restriction. Input and output have to be a Tensor or a sequence of tensors. This res...
doc_14253
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi...
doc_14254
[Deprecated] Notes Deprecated since version 3.4:
doc_14255
Callback for mouse button press in pan/zoom mode.
doc_14256
Return a list of the words in the string, using sep as the delimiter string. If maxsplit is given, at most maxsplit splits are done (thus, the list will have at most maxsplit+1 elements). If maxsplit is not specified or -1, then there is no limit on the number of splits (all possible splits are made). If sep is given, ...
doc_14257
This method closes the open mixer device file. Any further attempts to use the mixer after this file is closed will raise an OSError.
doc_14258
In-place version of triu()
doc_14259
sklearn.metrics.davies_bouldin_score(X, labels) [source] Computes the Davies-Bouldin score. The score is defined as the average similarity measure of each cluster with its most similar cluster, where similarity is the ratio of within-cluster distances to between-cluster distances. Thus, clusters which are farther apa...
doc_14260
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_14261
Encodes the URL to a tuple made out of bytes. The charset is only being used for the path, query and fragment. Parameters charset (str) – errors (str) – Return type werkzeug.urls.BytesURL
doc_14262
optimizer = optim.Adam([var1, var2], lr=0.0001) Per-parameter options Optimizer s also support specifying per-parameter options. To do this, instead of passing an iterable of Variable s, pass in an iterable of dict s. Each of them will define a separate parameter group, and should contain a params key, containing a li...
doc_14263
For a match m, return the 2-tuple (m.start(group), m.end(group)). Note that if group did not contribute to the match, this is (-1, -1). group defaults to zero, the entire match.
doc_14264
Bases: matplotlib.transforms.Affine2DBase A transformation that translates by xt and yt, after xt and yt have been transformed by scale_trans. Parameters shorthand_namestr A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) ...
doc_14265
Set the current position of file descriptor fd to position pos, modified by how: SEEK_SET or 0 to set the position relative to the beginning of the file; SEEK_CUR or 1 to set it relative to the current position; SEEK_END or 2 to set it relative to the end of the file. Return the new cursor position in bytes, starting f...
doc_14266
An exception raised by DocTestRunner to signal that a doctest example raised an unexpected exception. The constructor arguments are used to initialize the attributes of the same names.
doc_14267
Mixin class for ImageMagick output. To be useful this must be multiply-inherited from with a MovieWriterBase sub-class. __init__(*args, **kwargs) Methods __init__(*args, **kwargs) bin_path() isAvailable() Attributes delay output_args classmethodbin_path()[source] propertydelay classme...
doc_14268
sklearn.datasets.fetch_lfw_people(*, data_home=None, funneled=True, resize=0.5, min_faces_per_person=0, color=False, slice_=slice(70, 195, None), slice(78, 172, None), download_if_missing=True, return_X_y=False) [source] Load the Labeled Faces in the Wild (LFW) people dataset (classification). Download it if necessar...
doc_14269
Release a lock. This can be called from any thread, not only the thread which has acquired the lock. When the lock is locked, reset it to unlocked, and return. If any other threads are blocked waiting for the lock to become unlocked, allow exactly one of them to proceed. When invoked on an unlocked lock, a RuntimeError...
doc_14270
The model field class to use.
doc_14271
Return whether the mouse event occurred inside the axis-aligned bounding-box of the text.
doc_14272
tf.reduce_all tf.math.reduce_all( input_tensor, axis=None, keepdims=False, name=None ) Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which must be unique. If keepdims is true, the reduced dimensions are re...
doc_14273
An alternative event loop policy that uses the SelectorEventLoop event loop implementation. Availability: Windows.
doc_14274
tf.reduce_prod tf.math.reduce_prod( input_tensor, axis=None, keepdims=False, name=None ) Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keepdims is true, the reduced dimensions are retained with length 1. If axis...
doc_14275
Return the CapStyle for solid lines. See also set_solid_capstyle.
doc_14276
(Only supported on BSD.) Returns a kernel queue object; see section Kqueue Objects below for the methods supported by kqueue objects. The new file descriptor is non-inheritable. Changed in version 3.4: The new file descriptor is now non-inheritable.
doc_14277
Trace a minimum cost path through the pre-calculated traceback array. This convenience function reconstructs the the minimum cost path to a given end position from one of the starting indices provided to find_costs(), which must have been called previously. This function can be called as many times as desired after fin...
doc_14278
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_14279
See Migration guide for more details. tf.compat.v1.python_io.TFRecordCompressionType Class Variables GZIP 2 NONE 0 ZLIB 1
doc_14280
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_14281
Kernel ridge regression. Kernel ridge regression (KRR) combines ridge regression (linear least squares with l2-norm regularization) with the kernel trick. It thus learns a linear function in the space induced by the respective kernel and the data. For non-linear kernels, this corresponds to a non-linear function in t...
doc_14282
A generic version of contextlib.AbstractAsyncContextManager. New in version 3.5.4. New in version 3.6.2. Deprecated since version 3.9: contextlib.AbstractAsyncContextManager now supports []. See PEP 585 and Generic Alias Type.
doc_14283
Return the population standard deviation (the square root of the population variance). See pvariance() for arguments and other details. >>> pstdev([1.5, 2.5, 2.5, 2.75, 3.25, 4.75]) 0.986893273527251
doc_14284
See Migration guide for more details. tf.compat.v1.raw_ops.Zeta tf.raw_ops.Zeta( x, q, name=None ) The Hurwitz zeta function is defined as: \(\zeta(x, q) = \sum_{n=0}^{\infty} (q + n)^{-x}\) Args x A Tensor. Must be one of the following types: float32, float64. q A Tensor. Must have the same type ...
doc_14285
Predict multi-output variable using a model trained for each target variable. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Data. Returns y{array-like, sparse matrix} of shape (n_samples, n_outputs) Multi-output targets predicted across multiple predictors. Note: Separate ...
doc_14286
Decorator indicating that parameter old of func is renamed to new. The actual implementation of func should use new, not old. If old is passed to func, a DeprecationWarning is emitted, and its value is used, even if new is also passed by keyword (this is to simplify pyplot wrapper functions, which always pass new exp...
doc_14287
Represents the C unsigned short datatype. The constructor accepts an optional integer initializer; no overflow checking is done.
doc_14288
See Migration guide for more details. tf.compat.v1.math.unsorted_segment_sum, tf.compat.v1.unsorted_segment_sum tf.math.unsorted_segment_sum( data, segment_ids, num_segments, name=None ) Read the section on segmentation for an explanation of segments. Computes a tensor such that \(output[i] = \sum_{j...} data[j....
doc_14289
This class attribute gives the exception raised by the test method. If a test framework needs to use a specialized exception, possibly to carry additional information, it must subclass this exception in order to “play fair” with the framework. The initial value of this attribute is AssertionError.
doc_14290
This function is called unconditionally after tearDownModule(), or after setUpModule() if setUpModule() raises an exception. It is responsible for calling all the cleanup functions added by addCleanupModule(). If you need cleanup functions to be called prior to tearDownModule() then you can call doModuleCleanups() your...
doc_14291
A convenience method which coerces the option in the specified section to an integer. See get() for explanation of raw, vars and fallback.
doc_14292
Set 3D y limits. See matplotlib.axes.Axes.set_ylim() for full documentation.
doc_14293
Set the colormap to 'plasma'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
doc_14294
Try to set the audio sampling rate to samplerate samples per second. Returns the rate actually set. Most sound devices don’t support arbitrary sampling rates. Common rates are: Rate Description 8000 default rate for /dev/audio 11025 speech recording 22050 44100 CD quality audio (at 16 bits/sample and 2 cha...
doc_14295
See Migration guide for more details. tf.compat.v1.estimator.FinalOpsHook, tf.compat.v1.train.FinalOpsHook tf.estimator.FinalOpsHook( final_ops, final_ops_feed_dict=None ) Args final_ops A single Tensor, a list of Tensors or a dictionary of names to Tensors. final_ops_feed_dict A feed dictionary t...
doc_14296
The formfield_for_foreignkey method on a ModelAdmin allows you to override the default formfield for a foreign keys field. For example, to return a subset of objects for this foreign key field based on the user: class MyModelAdmin(admin.ModelAdmin): def formfield_for_foreignkey(self, db_field, request, **kwargs): ...
doc_14297
Return the plugin’s representation and data. Returns imagearray, same shape as self.image_viewer.image, or None The filtered image. dataNone Any data associated with the plugin. Notes Derived classes should override this method to return a tuple containing an overlay of the same shape of the image, and ...
doc_14298
'DEFAULT_PARSER_CLASSES': [ 'rest_framework.parsers.JSONParser', ] } You can also set the parsers used for an individual view, or viewset, using the APIView class-based views. from rest_framework.parsers import JSONParser from rest_framework.response import Response from rest_framework.views import API...
doc_14299
Handler for RegularPolyCollections. Parameters numpointsint Number of points to show in legend entry. yoffsetsarray of floats Length numpoints list of y offsets for each point in legend entry. **kwargs Keyword arguments forwarded to HandlerNpoints. create_artists(legend, orig_handle, xdescent, ydesc...