_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_22200
Called before the request is dispatched. Calls url_value_preprocessors registered with the app and the current blueprint (if any). Then calls before_request_funcs registered with the app and the blueprint. If any before_request() handler returns a non-None value, the value is handled as if it was the return value from ...
doc_22201
Graph of the pixel-to-pixel gradient connections Edges are weighted with the gradient values. Read more in the User Guide. Parameters imgndarray of shape (height, width) or (height, width, channel) 2D or 3D image. maskndarray of shape (height, width) or (height, width, channel), dtype=bool, default=None An ...
doc_22202
Bases: object A disjoint-set data structure. Objects can be joined using join(), tested for connectedness using joined(), and all disjoint sets can be retrieved by using the object as an iterator. The objects being joined must be hashable and weak-referenceable. Examples >>> from matplotlib.cbook import Grouper >>> c...
doc_22203
class sklearn.linear_model.OrthogonalMatchingPursuitCV(*, copy=True, fit_intercept=True, normalize=True, max_iter=None, cv=None, n_jobs=None, verbose=False) [source] Cross-validated Orthogonal Matching Pursuit model (OMP). See glossary entry for cross-validation estimator. Read more in the User Guide. Parameters ...
doc_22204
Return the value of the Content-Type header’s parameter param as a string. If the message has no Content-Type header or if there is no such parameter, then failobj is returned (defaults to None). Optional header if given, specifies the message header to use instead of Content-Type. Parameter keys are always compared ca...
doc_22205
list of the Sprites this Group contains sprites() -> sprite_list Return a list of all the Sprites this group contains. You can also get an iterator from the group, but you cannot iterate over a Group while modifying it.
doc_22206
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
doc_22207
A debugging hook. If debuglevel is greater than zero, messages will be printed to stdout as the response is read and parsed.
doc_22208
A list of strings representing the recognized file suffixes for bytecode modules (including the leading dot). New in version 3.3. Changed in version 3.5: The value is no longer dependent on __debug__.
doc_22209
Test for syntax errors in statement by attempting to compile statement. testcase is the unittest instance for the test. errtext is the regular expression which should match the string representation of the raised SyntaxError. If lineno is not None, compares to the line of the exception. If offset is not None, compares ...
doc_22210
Return True if the argument is a normal finite number. Return False if the argument is zero, subnormal, infinite or a NaN.
doc_22211
There is no dedicated literal syntax for bytearray objects, instead they are always created by calling the constructor: Creating an empty instance: bytearray() Creating a zero-filled instance with a given length: bytearray(10) From an iterable of integers: bytearray(range(20)) Copying existing binary data via the b...
doc_22212
Day of the week the period lies in, with Monday=0 and Sunday=6. If the period frequency is lower than daily (e.g. hourly), and the period spans over multiple days, the day at the start of the period is used. If the frequency is higher than daily (e.g. monthly), the last day of the period is used. Returns int Day ...
doc_22213
Convert series to series of this class. The series is expected to be an instance of some polynomial series of one of the types supported by by the numpy.polynomial module, but could be some other class that supports the convert method. New in version 1.7.0. Parameters seriesseries The series instance to be co...
doc_22214
Bases: unittest.case.TestCase A wrapper for unittest.TestCase that includes cleanup operations. Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name. classmethodsetUpClass()[source] Hook method for set...
doc_22215
This is a compatibility alias for the builtin BlockingIOError exception.
doc_22216
Computes the N dimensional discrete Fourier transform of input. Note The Fourier domain representation of any real signal satisfies the Hermitian property: X[i_1, ..., i_n] = conj(X[-i_1, ..., -i_n]). This function always returns all positive and negative frequency terms even though, for real inputs, half of these val...
doc_22217
See Migration guide for more details. tf.compat.v1.linalg.expm tf.linalg.expm( input, name=None ) $$exp(A) = \sum_{n=0}^\infty A^n/n!$$ The exponential is computed using a combination of the scaling and squaring method and the Pade approximation. Details can be found in: Nicholas J. Higham, "The scaling and sq...
doc_22218
Gets the bit generator instance used by the generator Returns bit_generatorBitGenerator The bit generator instance used by the generator
doc_22219
Get the z-label text string.
doc_22220
Return True if the path points to a block device (or a symbolic link pointing to a block device), False if it points to another kind of file. False is also returned if the path doesn’t exist or is a broken symlink; other errors (such as permission errors) are propagated.
doc_22221
See torch.conj()
doc_22222
Try to guess which module an object was defined in.
doc_22223
Returns the set of permission strings the user_obj has from the permissions of the groups they belong. Returns an empty set if is_anonymous or is_active is False.
doc_22224
alias of torch.distributions.constraints._LessThan
doc_22225
Pipe-based animated gif. Frames are streamed directly to ImageMagick via a pipe and written in a single pass. Parameters fpsint, default: 5 Movie frame rate (per second). codecstr or None, default: rcParams["animation.codec"] (default: 'h264') The codec to use. bitrateint, default: rcParams["animation.bit...
doc_22226
Color Wheel. Returns colorwheel(370, 371, 3) uint8 image A colorwheel.
doc_22227
See Migration guide for more details. tf.compat.v1.raw_ops.WholeFileReaderV2 tf.raw_ops.WholeFileReaderV2( container='', shared_name='', name=None ) To use, enqueue filenames in a Queue. The output of ReaderRead will be a filename (key) and the contents of that file (value). Args container An optional s...
doc_22228
check if the display is receiving mouse input get_focused() -> bool Returns true when pygame is receiving mouse input events (or, in windowing terminology, is "active" or has the "focus"). This method is most useful when working in a window. By contrast, in full-screen mode, this method always returns true. Note: und...
doc_22229
Return the figure height in inches.
doc_22230
stat.FILE_ATTRIBUTE_COMPRESSED stat.FILE_ATTRIBUTE_DEVICE stat.FILE_ATTRIBUTE_DIRECTORY stat.FILE_ATTRIBUTE_ENCRYPTED stat.FILE_ATTRIBUTE_HIDDEN stat.FILE_ATTRIBUTE_INTEGRITY_STREAM stat.FILE_ATTRIBUTE_NORMAL stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED stat.FILE_ATTRIBUTE_NO_SCRUB_DATA stat.FILE_ATTRIBUTE...
doc_22231
Convert columns to best possible dtypes using dtypes supporting pd.NA. New in version 1.0.0. Parameters infer_objects:bool, default True Whether object dtypes should be converted to the best possible types. convert_string:bool, default True Whether object dtypes should be converted to StringDtype(). con...
doc_22232
Base class for all other exceptions from this module. New in version 3.3.
doc_22233
Clear the current spine.
doc_22234
Set vmin and vmax.
doc_22235
Return frame object from call stack with given level.
doc_22236
On POSIX systems where Python was built with the standard configure script, this contains the ABI flags as specified by PEP 3149. Changed in version 3.8: Default flags became an empty string (m flag for pymalloc has been removed). New in version 3.2.
doc_22237
Casts all floating point parameters and buffers to bfloat16 datatype. Returns self Return type Module
doc_22238
See Migration guide for more details. tf.compat.v1.raw_ops.ConcatOffset tf.raw_ops.ConcatOffset( concat_dim, shape, name=None ) For example: # 'x' is [2, 2, 7] # 'y' is [2, 3, 7] # 'z' is [2, 5, 7] concat_offset(2, [x, y, z]) => [0, 0, 0], [0, 2, 0], [0, 5, 0] This is typically used by gradient computations for...
doc_22239
Return a string representation of data. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ...
doc_22240
Set the rectangle height. Parameters hfloat
doc_22241
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_22242
Block for delay seconds. If result is provided, it is returned to the caller when the coroutine completes. sleep() always suspends the current task, allowing other tasks to run. Deprecated since version 3.8, will be removed in version 3.10: The loop parameter. Example of coroutine displaying the current date every se...
doc_22243
Get the navigation toolbar button status: 'PAN', 'ZOOM', or None.
doc_22244
Return the right endpoints of each Interval in the IntervalArray as an Index.
doc_22245
Write XML to the writer object. The writer receives texts but not bytes as input, it should have a write() method which matches that of the file object interface. The indent parameter is the indentation of the current node. The addindent parameter is the incremental indentation to use for subnodes of the current one. T...
doc_22246
draw an ellipse ellipse(surface, color, rect) -> Rect ellipse(surface, color, rect, width=0) -> Rect Draws an ellipse on the given surface. Parameters: surface (Surface) -- surface to draw on color (Color or int or tuple(int, int, int, [int])) -- color to draw with, the alpha value is optional if using a tup...
doc_22247
This static method returns a translation table usable for str.translate(). If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters (strings of length 1) to Unicode ordinals, strings (of arbitrary lengths) or None. Character keys will then be converted to ordinals. If the...
doc_22248
Translate a socket address sockaddr into a 2-tuple (host, port). Depending on the settings of flags, the result can contain a fully-qualified domain name or numeric address representation in host. Similarly, port can contain a string port name or a numeric port number. For IPv6 addresses, %scope_id is appended to the h...
doc_22249
Returns the shape over which parameters are batched.
doc_22250
Set the artist's clip Bbox. Parameters clipboxBbox
doc_22251
See Migration guide for more details. tf.compat.v1.raw_ops.InvGrad tf.raw_ops.InvGrad( y, dy, name=None ) Specifically, grad = -dy * y*y, where y = 1/x, and dy is the corresponding input gradient. Args y A Tensor. Must be one of the following types: bfloat16, half, float32, float64, complex64, complex12...
doc_22252
Class used to temporarily set or unset environment variables. Instances can be used as a context manager and have a complete dictionary interface for querying/modifying the underlying os.environ. After exit from the context manager all changes to environment variables done through this instance will be rolled back. Ch...
doc_22253
The content of the text node as a string.
doc_22254
Returns True if all elements evaluate to True. Refer to numpy.all for full documentation. See also numpy.all equivalent function
doc_22255
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_22256
Plot a pie chart. Make a pie chart of array x. The fractional area of each wedge is given by x/sum(x). If sum(x) < 1, then the values of x give the fractional area directly and the array will not be normalized. The resulting pie will have an empty wedge of size 1 - sum(x). The wedges are plotted counterclockwise, by ...
doc_22257
See Migration guide for more details. tf.compat.v1.keras.layers.TimeDistributed tf.keras.layers.TimeDistributed( layer, **kwargs ) The input should be at least 3D, and the dimension of index one will be considered to be the temporal dimension. Consider a batch of 32 video samples, where each sample is a 128x128 ...
doc_22258
Decays the learning rate of each parameter group by gamma every step_size epochs. Notice that such decay can happen simultaneously with other changes to the learning rate from outside this scheduler. When last_epoch=-1, sets initial lr as lr. Parameters optimizer (Optimizer) – Wrapped optimizer. step_size (int) ...
doc_22259
Same as ModelChoiceField.queryset.
doc_22260
Returns a copy of this object in CUDA memory. If this object is already in CUDA memory and on the correct device, then no copy is performed and the original object is returned. Parameters device (torch.device) – The destination GPU device. Defaults to the current CUDA device. non_blocking (bool) – If True and the ...
doc_22261
Overrides the standard draw_path to add the shadow offset and necessary color changes for the shadow.
doc_22262
See Migration guide for more details. tf.compat.v1.py_function tf.py_function( func, inp, Tout, name=None ) This function allows expressing computations in a TensorFlow graph as Python functions. In particular, it wraps a Python function func in a once-differentiable TensorFlow operation that executes it with ea...
doc_22263
Return the value of sample index from the fragment.
doc_22264
tf.compat.v1.cond( pred, true_fn=None, false_fn=None, strict=False, name=None, fn1=None, fn2=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (fn1, fn2). They will be removed in a future version. Instructions for updating: fn1/fn2 are deprecated in favor of the true_fn/false_fn arguments. true_fn and false_fn both r...
doc_22265
Returns the score on the given data, if the estimator has been refit. This uses the score defined by scoring where provided, and the best_estimator_.score method otherwise. Parameters Xarray-like of shape (n_samples, n_features) Input data, where n_samples is the number of samples and n_features is the number o...
doc_22266
Delegate the mouse event contains-check to the children. As a container, the OffsetBox does not respond itself to mouseevents. Parameters mouseeventmatplotlib.backend_bases.MouseEvent Returns containsbool Whether any values are within the radius. detailsdict An artist-specific dictionary of details of...
doc_22267
This method returns a ctypes type instance using the memory specified by address which must be an integer. This method, and others that indirectly call this method, raises an auditing event ctypes.cdata with argument address.
doc_22268
See Migration guide for more details. tf.compat.v1.feature_column.indicator_column tf.feature_column.indicator_column( categorical_column ) For DNN model, indicator_column can be used to wrap any categorical_column_* (e.g., to feed to DNN). Consider to Use embedding_column if the number of buckets/unique(values...
doc_22269
Return the truth value of (x1 >= x2) element-wise. Parameters x1, x2array_like Input arrays. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If ...
doc_22270
class sklearn.impute.KNNImputer(*, missing_values=nan, n_neighbors=5, weights='uniform', metric='nan_euclidean', copy=True, add_indicator=False) [source] Imputation for completing missing values using k-Nearest Neighbors. Each sample’s missing values are imputed using the mean value from n_neighbors nearest neighbors...
doc_22271
tf.compat.v1.metrics.accuracy( labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None ) The accuracy function creates two local variables, total and count that are used to compute the frequency with which predictions matches labels. This frequency is ultimately returne...
doc_22272
The process ID of the child process. Note that if you set the shell argument to True, this is the process ID of the spawned shell.
doc_22273
re.DOTALL Make the '.' special character match any character at all, including a newline; without this flag, '.' will match anything except a newline. Corresponds to the inline flag (?s).
doc_22274
See Migration guide for more details. tf.compat.v1.math.special.fresnel_cos tf.math.special.fresnel_cos( x, name=None ) The Fresnel cosine integral is defined as the integral of cos(t^2) from 0 to x, with the domain of definition all real numbers. The Fresnel cosine integral is odd. >>> tf.math.special.fresnel_c...
doc_22275
A helper codec that decodes newlines for universal newlines mode. It inherits codecs.IncrementalDecoder.
doc_22276
See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyAdadelta tf.raw_ops.SparseApplyAdadelta( var, accum, accum_update, lr, rho, epsilon, grad, indices, use_locking=False, name=None ) Args var A mutable Tensor. Must be one of the following types: float32, float64, int32, uint8, in...
doc_22277
Compute count of group, excluding missing values. Returns Series or DataFrame Count of values within each group. See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.
doc_22278
The strftime() format to use when parsing the year. By default, this is '%Y'.
doc_22279
A bool that controls where TensorFloat-32 tensor cores may be used in cuDNN convolutions on Ampere or newer GPUs. See TensorFloat-32(TF32) on Ampere devices.
doc_22280
Brute-force matching of descriptors. For each descriptor in the first set this matcher finds the closest descriptor in the second set (and vice-versa in the case of enabled cross-checking). Parameters descriptors1(M, P) array Descriptors of size P about M keypoints in the first image. descriptors2(N, P) array...
doc_22281
See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingProximalYogiParametersGradAccumDebug tf.raw_ops.RetrieveTPUEmbeddingProximalYogiParametersGradAccumDebug( num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) Args num_shards An int. shard_id An ...
doc_22282
Multiply self by other in-place.
doc_22283
tf.compat.v1.gfile.Rename( oldname, newname, overwrite=False ) Args oldname string, pathname for a file newname string, pathname to which the file needs to be moved overwrite boolean, if false it's an error for newname to be occupied by an existing file. Raises errors.OpError If th...
doc_22284
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_22285
Set the Figure instance the artist belongs to. Parameters figFigure
doc_22286
check if the Joystick is initialized get_init() -> bool Return True if the Joystick object is currently initialised.
doc_22287
The address on which the server is listening. The format of addresses varies depending on the protocol family; see the documentation for the socket module for details. For Internet protocols, this is a tuple containing a string giving the address, and an integer port number: ('127.0.0.1', 80), for example.
doc_22288
Imputation for completing missing values using k-Nearest Neighbors. Each sample’s missing values are imputed using the mean value from n_neighbors nearest neighbors found in the training set. Two samples are close if the features that neither is missing are close. Read more in the User Guide. New in version 0.22. ...
doc_22289
Return a string which is the concatenation of the strings in iterable. A TypeError will be raised if there are any non-string values in iterable, including bytes objects. The separator between elements is the string providing this method.
doc_22290
Renders a response using a context created with get_context_data().
doc_22291
Sets gradients of all model parameters to zero. See similar function under torch.optim.Optimizer for more context. Parameters set_to_none (bool) – instead of setting to zero, set the grads to None. See torch.optim.Optimizer.zero_grad() for details.
doc_22292
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_22293
Add an Artist to the container box.
doc_22294
See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingADAMParametersGradAccumDebug tf.raw_ops.RetrieveTPUEmbeddingADAMParametersGradAccumDebug( num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that retrieves optimization parameters from embedding to host...
doc_22295
See Migration guide for more details. tf.compat.v1.data.experimental.group_by_reducer tf.data.experimental.group_by_reducer( key_func, reducer ) This transformation maps element of a dataset to a key using key_func and groups the elements by key. The reducer is used to process each group; its init_func is used t...
doc_22296
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_22297
Boolean indicating whether the dtype is a struct which maintains field alignment. This flag is sticky, so when combining multiple structs together, it is preserved and produces new dtypes which are also aligned.
doc_22298
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters valuesarray The input v...
doc_22299
Cumulative max for each group. Returns Series or DataFrame See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.