_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_3400
The latest representable time, time(23, 59, 59, 999999).
doc_3401
The default value is True. If Python is compiled --without-decimal-contextvar, the C version uses a thread-local rather than a coroutine-local context and the value is False. This is slightly faster in some nested context scenarios.
doc_3402
See Migration guide for more details. tf.compat.v1.raw_ops.MergeV2Checkpoints tf.raw_ops.MergeV2Checkpoints( checkpoint_prefixes, destination_prefix, delete_old_dirs=True, name=None ) result is one logical checkpoint, with one physical metadata file and renamed data files. Intended for "grouping" multiple checkp...
doc_3403
Interrupt from keyboard (CTRL + BREAK). Availability: Windows.
doc_3404
Autoscale the scalar limits on the norm instance using the current array
doc_3405
See Migration guide for more details. tf.compat.v1.random.truncated_normal, tf.compat.v1.truncated_normal tf.random.truncated_normal( shape, mean=0.0, stddev=1.0, dtype=tf.dtypes.float32, seed=None, name=None ) The generated values follow a normal distribution with specified mean and standard deviation, except t...
doc_3406
Set and validate the parameters of estimator. Parameters **kwargsdict Estimator parameters. Returns selfobject Estimator instance.
doc_3407
Return filter function to be used for agg filter.
doc_3408
See Migration guide for more details. tf.compat.v1.raw_ops.While tf.raw_ops.While( input, cond, body, output_shapes=[], parallel_iterations=10, name=None ) Args input A list of Tensor objects. A list of input tensors whose types are T. cond A function decorated with @Defun. A function takes 'input...
doc_3409
returns a linear interpolation to the given Color. lerp(Color, float) -> Color Returns a Color which is a linear interpolation between self and the given Color in RGBA space. The second parameter determines how far between self and other the result is going to be. It must be a value between 0 and 1 where 0 means self...
doc_3410
Build a CF Tree for the input data. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Input data. yIgnored Not used, present here for API consistency by convention. Returns self Fitted estimator.
doc_3411
SSL 3.0 to TLS 1.3.
doc_3412
Token value for "=".
doc_3413
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 bbox_to_anchor unknown child unknown clip_box Bbox clip_on bool clip_pa...
doc_3414
Calculate the ewm (exponential weighted moment) mean. Parameters *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba. None : Default...
doc_3415
msvcrt.LK_NBRLCK Locks the specified bytes. If the bytes cannot be locked, OSError is raised.
doc_3416
See Migration guide for more details. tf.compat.v1.where_v2 tf.where( condition, x=None, y=None, name=None ) This operator has two modes: in one mode both x and y are provided, in another mode neither are provided. condition is always expected to be a tf.Tensor of type bool. Retrieving indices of True elements I...
doc_3417
query the tree for neighbors within a radius r Parameters Xarray-like of shape (n_samples, n_features) An array of points to query rdistance within which neighbors are returned r can be a single value, or an array of values of shape x.shape[:-1] if different radii are desired for each point. return_distance...
doc_3418
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_3419
See Migration guide for more details. tf.compat.v1.keras.layers.Attention tf.keras.layers.Attention( use_scale=False, **kwargs ) Inputs are query tensor of shape [batch_size, Tq, dim], value tensor of shape [batch_size, Tv, dim] and key tensor of shape [batch_size, Tv, dim]. The calculation follows the steps: C...
doc_3420
ZIP flag bits.
doc_3421
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_3422
Add a key to a quiver plot. The positioning of the key depends on X, Y, coordinates, and labelpos. If labelpos is 'N' or 'S', X, Y give the position of the middle of the key arrow. If labelpos is 'E', X, Y positions the head, and if labelpos is 'W', X, Y positions the tail; in either of these two cases, X, Y is somew...
doc_3423
Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
doc_3424
Set the artist's visibility. Parameters bbool
doc_3425
Linear Model trained with L1 prior as regularizer (aka the Lasso) The optimization objective for Lasso is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1 Technically the Lasso model is optimizing the same objective function as the Elastic Net with l1_ratio=1.0 (no L2 penalty). Read more in the User Guide. ...
doc_3426
Container for the BitGenerators. Generator exposes a number of methods for generating random numbers drawn from a variety of probability distributions. In addition to the distribution-specific arguments, each method takes a keyword argument size that defaults to None. If size is None, then a single value is generated...
doc_3427
Bases: matplotlib.backend_tools.ToolBase Toggleable tool. Every time it is triggered, it switches between enable and disable. Parameters ``*args`` Variable length argument to be used by the Tool. ``**kwargs`` toggled if present and True, sets the initial state of the Tool Arbitrary keyword arguments to be consu...
doc_3428
Apply the non-affine part of this transform to Path path, returning a new Path. transform_path(path) is equivalent to transform_path_affine(transform_path_non_affine(values)).
doc_3429
This method is called after close has been called to reset the parser so that it is ready to parse new documents. The results of calling parse or feed after close without calling reset are undefined.
doc_3430
os.WSTOPPED os.WNOWAIT Flags that can be used in options in waitid() that specify what child signal to wait for. Availability: Unix. New in version 3.3.
doc_3431
A dictionary of context data that will be added to the default context data passed to the template.
doc_3432
The sitemaps.FlatPageSitemap class looks at all publicly visible flatpages defined for the current SITE_ID (see the sites documentation) and creates an entry in the sitemap. These entries include only the location attribute – not lastmod, changefreq or priority.
doc_3433
Return the canvas width and height in display coords.
doc_3434
Return a tuple (y, x) of co-ordinates of upper-left corner.
doc_3435
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_3436
The email package calls this method with a list of strings, each string ending with the line separation characters found in the source being parsed. The first line includes the field header name and separator. All whitespace in the source is preserved. The method should return the (name, value) tuple that is to be stor...
doc_3437
Set the font weight. May be either a numeric value in the range 0-1000 or one of 'ultralight', 'light', 'normal', 'regular', 'book', 'medium', 'roman', 'semibold', 'demibold', 'demi', 'bold', 'heavy', 'extra bold', 'black'
doc_3438
Return the current value of the flags that are used for dlopen() calls. Symbolic names for the flag values can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY). Availability: Unix.
doc_3439
Compute pairwise correlation. Pairwise correlation is computed between rows or columns of DataFrame with rows or columns of Series or DataFrame. DataFrames are first aligned along both axes before computing the correlations. Parameters other:DataFrame, Series Object with which to compute correlations. axis:{0...
doc_3440
See Migration guide for more details. tf.compat.v1.estimator.ProfilerHook, tf.compat.v1.train.ProfilerHook tf.estimator.ProfilerHook( save_steps=None, save_secs=None, output_dir='', show_dataflow=True, show_memory=False ) This produces files called "timeline-.json", which are in Chrome Trace format. For more...
doc_3441
tf.losses.categorical_hinge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.categorical_hinge tf.keras.losses.categorical_hinge( y_true, y_pred ) loss = maximum(neg - pos + 1, 0) where neg=maximum((1-y_true)*y_pred) and pos=sum(y_true*y_pred) Standalone usage: y_true...
doc_3442
Return a message object structure from a bytes-like object. This is equivalent to BytesParser().parsebytes(s). Optional _class and policy are interpreted as with the BytesParser class constructor. New in version 3.2. Changed in version 3.3: Removed the strict argument. Added the policy keyword.
doc_3443
See Migration guide for more details. tf.compat.v1.raw_ops.WholeFileReader tf.raw_ops.WholeFileReader( 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 strin...
doc_3444
Fast lookup of value from 1-dimensional ndarray. Only use this if you know what you’re doing. Returns scalar or Series
doc_3445
Set the path effects. Parameters path_effectsAbstractPathEffect
doc_3446
Removes the tab specified by tab_id, unmaps and unmanages the associated window.
doc_3447
Return an array converted to a float type. Parameters aarray_like The input array. dtypestr or dtype object, optional Float type code to coerce input array a. If dtype is one of the ‘int’ dtypes, it is replaced with float64. Returns outndarray The input a as a float ndarray. Examples >>> np.asfa...
doc_3448
Return the cumulative product of the elements along the given axis. Refer to numpy.cumprod for full documentation. See also numpy.cumprod equivalent function
doc_3449
An ordered mapping of parameters’ names to the corresponding Parameter objects. Parameters appear in strict definition order, including keyword-only parameters. Changed in version 3.7: Python only explicitly guaranteed that it preserved the declaration order of keyword-only parameters as of version 3.7, although in pr...
doc_3450
Return the font size.
doc_3451
See Migration guide for more details. tf.compat.v1.raw_ops.Conv3DBackpropInput tf.raw_ops.Conv3DBackpropInput( input, filter, out_backprop, strides, padding, dilations=[1, 1, 1, 1, 1], name=None ) Args input A Tensor. Must be one of the following types: half, float32, float64. Shape [batch, depth, r...
doc_3452
Returns the rank of current process group Rank is a unique identifier assigned to each process within a distributed process group. They are always consecutive integers ranging from 0 to world_size. Parameters group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be u...
doc_3453
The dict of keyword arguments to this Node. The interpretation of arguments depends on the node’s opcode. See the Node docstring for more information. Assignment to this property is allowed. All accounting of uses and users is updated automatically on assignment.
doc_3454
Specify that the file descriptor fd be used for typeahead checking. If fd is -1, then no typeahead checking is done. The curses library does “line-breakout optimization” by looking for typeahead periodically while updating the screen. If input is found, and it is coming from a tty, the current update is postponed until...
doc_3455
See Migration guide for more details. tf.compat.v1.raw_ops.TensorSummaryV2 tf.raw_ops.TensorSummaryV2( tag, tensor, serialized_summary_metadata, name=None ) Args tag A Tensor of type string. A string attached to this summary. Used for organization in TensorBoard. tensor A Tensor. A tensor to seria...
doc_3456
Provides simple access to WWW-Authenticate headers. property algorithm A string indicating a pair of algorithms used to produce the digest and a checksum. If this is not present it is assumed to be “MD5”. If the algorithm is not understood, the challenge should be ignored (and a different one used, if there is more...
doc_3457
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_3458
Calls importlib.abc.PathEntryFinder.invalidate_caches() on all finders stored in sys.path_importer_cache that define the method. Otherwise entries in sys.path_importer_cache set to None are deleted. Changed in version 3.7: Entries of None in sys.path_importer_cache are deleted.
doc_3459
Convert samples in the audio fragment to a-LAW encoding and return this as a bytes object. a-LAW is an audio encoding format whereby you get a dynamic range of about 13 bits using only 8 bit samples. It is used by the Sun audio hardware, among others.
doc_3460
tf.compat.v1.nn.relu_layer( x, weights, biases, name=None ) Args x a 2D tensor. Dimensions typically: batch, in_units weights a 2D tensor. Dimensions typically: in_units, out_units biases a 1D tensor. Dimensions: out_units name A name for the operation (optional). If not specified "nn_re...
doc_3461
sklearn.model_selection.learning_curve(estimator, X, y, *, groups=None, train_sizes=array([0.1, 0.33, 0.55, 0.78, 1.0]), cv=None, scoring=None, exploit_incremental_learning=False, n_jobs=None, pre_dispatch='all', verbose=0, shuffle=False, random_state=None, error_score=nan, return_times=False, fit_params=None) [source]...
doc_3462
See Migration guide for more details. tf.compat.v1.raw_ops.SparseSparseMinimum tf.raw_ops.SparseSparseMinimum( a_indices, a_values, a_shape, b_indices, b_values, b_shape, name=None ) Assumes the two SparseTensors have the same shape, i.e., no broadcasting. Args a_indices A Tensor of type int64. 2-D. N x...
doc_3463
Return the value of the Boolean capability corresponding to the terminfo capability name capname as an integer. Return the value -1 if capname is not a Boolean capability, or 0 if it is canceled or absent from the terminal description.
doc_3464
Prevent client side from requesting a session ticket. New in version 3.6.
doc_3465
See Migration guide for more details. tf.compat.v1.feature_column.bucketized_column tf.feature_column.bucketized_column( source_column, boundaries ) Buckets include the left boundary, and exclude the right boundary. Namely, boundaries=[0., 1., 2.] generates buckets (-inf, 0.), [0., 1.), [1., 2.), and [2., +inf)....
doc_3466
Read window related data stored in the file by an earlier putwin() call. The routine then creates and initializes a new window using that data, returning the new window object.
doc_3467
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_3468
Set the artist transform. Parameters tTransform
doc_3469
Build a layout of Axes based on ASCII art or nested lists. This is a helper function to build complex GridSpec layouts visually. Note This API is provisional and may be revised in the future based on early user feedback. Parameters mosaiclist of list of {hashable or nested} or str A visual layout of how you w...
doc_3470
Write the results of the current profile to filename.
doc_3471
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called.
doc_3472
Transform X using the inverse function. Parameters Xarray-like, shape (n_samples, n_features) Input array. Returns X_outarray-like, shape (n_samples, n_features) Transformed input.
doc_3473
Remove key from the ModuleDict and return its module. Parameters key (string) – key to pop from the ModuleDict
doc_3474
New in Django 3.2. Optional. A boolean attribute. When True the alternate links generated by alternates will contain a hreflang="x-default" fallback entry with a value of LANGUAGE_CODE. The default is False.
doc_3475
os.O_WRONLY os.O_RDWR os.O_APPEND os.O_CREAT os.O_EXCL os.O_TRUNC The above constants are available on Unix and Windows.
doc_3476
Fit model to data. Parameters Xarray-like of shape (n_samples, n_features) Training vectors, where n_samples is the number of samples and n_features is the number of predictors. Yarray-like of shape (n_samples,) or (n_samples, n_targets) Target vectors, where n_samples is the number of samples and n_targets...
doc_3477
URL name: password_change_done The page shown after a user has changed their password. Attributes: template_name The full name of a template to use. Defaults to registration/password_change_done.html if not supplied. extra_context A dictionary of context data that will be added to the default context data pas...
doc_3478
Adds the specified handler hdlr to this logger.
doc_3479
Validates whether the password meets a minimum length. The minimum length can be customized with the min_length parameter.
doc_3480
Retrieve whole message number which, and set its seen flag. Result is in form (response, ['line', ...], octets).
doc_3481
Compute data covariance with the generative model. cov = components_.T * S**2 * components_ + sigma2 * eye(n_features) where S**2 contains the explained variances, and sigma2 contains the noise variances. Returns covarray, shape=(n_features, n_features) Estimated covariance of data.
doc_3482
Return the Transform instance used by this artist.
doc_3483
Bases: TypeError
doc_3484
A list of callables that take a path argument to try to create a finder for the path. If a finder can be created, it is to be returned by the callable, else raise ImportError. Originally specified in PEP 302.
doc_3485
Return an ndarray of indices that sort the array along the specified axis. Masked values are filled beforehand to fill_value. Parameters axisint, optional Axis along which to sort. If None, the default, the flattened array is used. Changed in version 1.13.0: Previously, the default was documented to be -1, but...
doc_3486
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_3487
Generate a swiss roll dataset. Read more in the User Guide. Parameters n_samplesint, default=100 The number of sample points on the S curve. noisefloat, default=0.0 The standard deviation of the gaussian noise. random_stateint, RandomState instance or None, default=None Determines random number generati...
doc_3488
Set the text string s. It may contain newlines (\n) or math in LaTeX syntax. Parameters sobject Any object gets converted to its str representation, except for None which is converted to an empty string.
doc_3489
Sent with a preflight request to indicate which method will be used for the cross origin request. Set access_control_allow_methods on the response to indicate which methods are allowed.
doc_3490
Extended-precision floating-point number type, compatible with C long double but not necessarily with IEEE 754 quadruple-precision. Character code 'g' Alias numpy.longfloat Alias on this platform (Linux x86_64) numpy.float128: 128-bit extended-precision floating-point number type.
doc_3491
Return the number of occurrences of b in a.
doc_3492
Copy properties from other to self.
doc_3493
Alternative error attach function to the errorhandler() decorator that is more straightforward to use for non decorator usage. Changelog New in version 0.7. Parameters code_or_exception (Union[Type[Exception], int]) – f (Callable[[Exception], Union[Response, AnyStr, Dict[str, Any], Generator[AnyStr, None, None]...
doc_3494
Return True if ‘CCompiler.compile()’ able to compile a source file with certain flags.
doc_3495
Evaluate a 3-D Legendre series on the Cartesian product of x, y, and z. This function returns the values: \[p(a,b,c) = \sum_{i,j,k} c_{i,j,k} * L_i(a) * L_j(b) * L_k(c)\] where the points (a, b, c) consist of all triples formed by taking a from x, b from y, and c from z. The resulting points form a grid with x in th...
doc_3496
Sampler that restricts data loading to a subset of the dataset. It is especially useful in conjunction with torch.nn.parallel.DistributedDataParallel. In such a case, each process can pass a DistributedSampler instance as a DataLoader sampler, and load a subset of the original dataset that is exclusive to it. Note D...
doc_3497
Set whether the Axes rectangle patch is drawn. Parameters bbool
doc_3498
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_3499
Return a Signature object for the given callable: >>> from inspect import signature >>> def foo(a, *, b:int, **kwargs): ... pass >>> sig = signature(foo) >>> str(sig) '(a, *, b:int, **kwargs)' >>> str(sig.parameters['b']) 'b:int' >>> sig.parameters['b'].annotation <class 'int'> Accepts a wide range of Python c...