_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_14500
Get the parameters of an estimator from the ensemble. Returns the parameters given in the constructor as well as the estimators contained within the estimators parameter. Parameters deepbool, default=True Setting it to True gets the various estimators and the parameters of the estimators as well.
doc_14501
Same as article(), but sends a BODY command. The lines returned (or written to file) will only contain the message body, not the headers.
doc_14502
[Deprecated] Change subplot geometry, e.g., from (1, 1, 1) to (2, 2, 3). Notes Deprecated since version 3.4.
doc_14503
Return True if the callback was cancelled. New in version 3.7.
doc_14504
Returns True if the given raw string is the correct password for the user. (This takes care of the password hashing in making the comparison.)
doc_14505
Initialize self. See help(type(self)) for accurate signature.
doc_14506
Alias for get_zlim3d.
doc_14507
Deletes the specified key. Note The DeleteKeyEx() function is implemented with the RegDeleteKeyEx Windows API function, which is specific to 64-bit versions of Windows. See the RegDeleteKeyEx documentation. key is an already open key, or one of the predefined HKEY_* constants. sub_key is a string that must be a subke...
doc_14508
Normalize, rescale, and colormap this image's data for rendering using renderer, with the given magnification. If unsampled is True, the image will not be scaled, but an appropriate affine transformation will be returned instead. Returns image(M, N, 4) uint8 array The RGBA image, resampled unless unsampled is T...
doc_14509
Initialize vertices with path codes.
doc_14510
Alias for get_markerfacecoloralt.
doc_14511
Return a valid color arg.
doc_14512
Solves a system of equations with a triangular coefficient matrix AA and multiple right-hand sides bb . In particular, solves AX=bAX = b and assumes AA is upper-triangular with the default keyword arguments. torch.triangular_solve(b, A) can take in 2D inputs b, A or inputs that are batches of 2D matrices. If the inp...
doc_14513
Get or set the current tick locations and labels of the x-axis. Pass no arguments to return the current values without modifying them. Parameters ticksarray-like, optional The list of xtick locations. Passing an empty list removes all xticks. labelsarray-like, optional The labels to place at the given ticks...
doc_14514
A device-driver resource list.
doc_14515
Get a mask, or integer index, of the features selected Parameters indicesbool, default=False If True, the return value will be an array of integers, rather than a boolean mask. Returns supportarray An index that selects the retained features from a feature vector. If indices is False, this is a boolean ...
doc_14516
Return the Transform instance used by this artist offset.
doc_14517
Mask columns of a 2D array that contain masked values. This function is a shortcut to mask_rowcols with axis equal to 1. See also mask_rowcols Mask rows and/or columns of a 2D array. masked_where Mask where a condition is met. Examples >>> import numpy.ma as ma >>> a = np.zeros((3, 3), dtype=int) >>> a[1, 1] ...
doc_14518
Looks up the codec info in the Python codec registry and returns a CodecInfo object as defined below. Encodings are first looked up in the registry’s cache. If not found, the list of registered search functions is scanned. If no CodecInfo object is found, a LookupError is raised. Otherwise, the CodecInfo object is stor...
doc_14519
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_14520
Return a copy of the child path, with the non-affine part of the transform already applied, along with the affine part of the path necessary to complete the transformation. Unlike get_transformed_path_and_affine(), no interpolation will be performed.
doc_14521
Load and manage a collection of images.
doc_14522
Return the Transform instance used by this artist offset.
doc_14523
See Migration guide for more details. tf.compat.v1.distribute.HierarchicalCopyAllReduce tf.distribute.HierarchicalCopyAllReduce( num_packs=1 ) It reduces to one GPU along edges in some hierarchy and broadcasts back to each GPU along the same path. For the batch API, tensors will be repacked or aggregated for mor...
doc_14524
Owner has read permission.
doc_14525
class sklearn.covariance.LedoitWolf(*, store_precision=True, assume_centered=False, block_size=1000) [source] LedoitWolf Estimator Ledoit-Wolf is a particular form of shrinkage, where the shrinkage coefficient is computed using O. Ledoit and M. Wolf’s formula as described in “A Well-Conditioned Estimator for Large-Di...
doc_14526
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with filled triangle head at the begin. Parameters head_lengthfloat, default: 0.4 Length of the arrow head, relative to mutation_scale. head_widthfloat, default: 0.2 Width of the arrow head, relative to mutation_scale. widthAfloat, default: 1.0 Width ...
doc_14527
A dict containing the headers of the HTTP/HTTPS request that triggered the error.
doc_14528
Return a readonly version of the memoryview object. The original memoryview object is unchanged. >>> m = memoryview(bytearray(b'abc')) >>> mm = m.toreadonly() >>> mm.tolist() [89, 98, 99] >>> mm[0] = 42 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: cannot modify read-only memory >>...
doc_14529
Return a list of (header, value) tuples.
doc_14530
Return whether this Axes supports the zoom box button functionality.
doc_14531
Add a scalar or tensor to self tensor. If both alpha and other are specified, each element of other is scaled by alpha before being used. When other is a tensor, the shape of other must be broadcastable with the shape of the underlying tensor See torch.add()
doc_14532
Set the name used in the generated HTML documentation. This name will appear at the top of the generated documentation inside a “h1” element.
doc_14533
Function that measures Binary Cross Entropy between target and output logits. See BCEWithLogitsLoss for details. Parameters input – Tensor of arbitrary shape target – Tensor of the same shape as input weight (Tensor, optional) – a manual rescaling weight if provided it’s repeated to match input tensor shape si...
doc_14534
Creates a user-defined aggregate function. The aggregate class must implement a step method, which accepts the number of parameters num_params (if num_params is -1, the function may take any number of arguments), and a finalize method which will return the final result of the aggregate. The finalize method can return a...
doc_14535
Bases: matplotlib.image._ImageBase An image attached to an Axes. Parameters axAxes The axes the image will belong to. cmapstr or Colormap, default: rcParams["image.cmap"] (default: 'viridis') The Colormap instance or registered colormap name used to map scalar data to colors. normNormalize Maps luminanc...
doc_14536
The regular expression pattern to search for within the provided value, using re.search(). This may be a string or a pre-compiled regular expression created with re.compile(). Defaults to the empty string, which will be found in every possible value.
doc_14537
Returns a set of validator objects based on the validator_config parameter. By default, all functions use the validators defined in AUTH_PASSWORD_VALIDATORS, but by calling this function with an alternate set of validators and then passing the result into the password_validators parameter of the other functions, your c...
doc_14538
An integer representing the version of the NNTP protocol supported by the server. In practice, this should be 2 for servers advertising RFC 3977 compliance and 1 for others. New in version 3.2.
doc_14539
tf.experimental.numpy.random.randn( *args ) Returns samples from a normal distribution. Uses tf.random_normal. Args: *args: The shape of the output array. Returns: An ndarray with shape args and dtype float64. See the NumPy documentation for numpy.random.randn.
doc_14540
Returns the average of the independent variable (sum(x)/N) as a float, or default if there aren’t any matching rows.
doc_14541
A request object with the environ used to make the request that resulted in this response.
doc_14542
The Content-Encoding entity-header field is used as a modifier to the media-type. When present, its value indicates what additional content codings have been applied to the entity-body, and thus what decoding mechanisms must be applied in order to obtain the media-type referenced by the Content-Type header field. Chan...
doc_14543
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_14544
A boolean specifying whether to include “future” objects on this page, where “future” means objects in which the field specified in date_field is greater than the current date/time. By default, this is False.
doc_14545
The base class for implementing datagram (UDP) protocols.
doc_14546
Read-only attribute which is always False. This is a way of differentiating User and AnonymousUser objects. Generally, you should prefer using is_authenticated to this attribute.
doc_14547
Apply a power transform featurewise to make data more Gaussian-like. Power transforms are a family of parametric, monotonic transformations that are applied to make data more Gaussian-like. This is useful for modeling issues related to heteroscedasticity (non-constant variance), or other situations where normality is...
doc_14548
test.support.captured_stdout() test.support.captured_stderr() A context managers that temporarily replaces the named stream with io.StringIO object. Example use with output streams: with captured_stdout() as stdout, captured_stderr() as stderr: print("hello") print("error", file=sys.stderr) assert stdout.ge...
doc_14549
Set the font size. Either an relative value of 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large' or an absolute font size, e.g., 12.
doc_14550
Infer the most likely frequency given the input index. If the frequency is uncertain, a warning will be printed. Parameters index:DatetimeIndex or TimedeltaIndex If passed a Series will use the values of the series (NOT THE INDEX). warn:bool, default True Returns str or None None if no discernible frequ...
doc_14551
A bytestring representing the content, encoded from a string if necessary.
doc_14552
Unsigned integer type, compatible with C unsigned short. Character code 'H' Alias on this platform (Linux x86_64) numpy.uint16: 16-bit unsigned integer (0 to 65_535).
doc_14553
Inverse hyperbolic sine element-wise. Parameters xarray_like Input array. 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. A tup...
doc_14554
Given the location and size of the box, return the path of the box around it. Parameters x0, y0, width, heightfloat Location and size of the box. mutation_sizefloat A reference scale for the mutation. Returns Path
doc_14555
An unrelated but handy function that takes a time tuple such as returned by the gmtime() function in the time module, and returns the corresponding Unix timestamp value, assuming an epoch of 1970, and the POSIX encoding. In fact, time.gmtime() and timegm() are each others’ inverse.
doc_14556
Gets or sets whether the font should be rendered in (faked) italics. italic -> bool Whether the font should be rendered in italic. When set to True, this enables fake rendering of italic text. This is a fake skewing of the font that doesn't look good on many font types. If possible load the font from a real italic fo...
doc_14557
A list of strings representing the file suffixes for non-optimized bytecode modules. New in version 3.3. Deprecated since version 3.5: Use BYTECODE_SUFFIXES instead.
doc_14558
Call self as a function.
doc_14559
See torch.equal()
doc_14560
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_14561
class sklearn.naive_bayes.GaussianNB(*, priors=None, var_smoothing=1e-09) [source] Gaussian Naive Bayes (GaussianNB) Can perform online updates to model parameters via partial_fit. For details on algorithm used to update feature means and variance online, see Stanford CS tech report STAN-CS-79-773 by Chan, Golub, and...
doc_14562
Parameters aspectbool
doc_14563
Join columns of another DataFrame. Join columns with other DataFrame either on index or on a key column. Efficiently join multiple DataFrame objects by index at once by passing a list. Parameters other:DataFrame, Series, or list of DataFrame Index should be similar to one of the columns in this one. If a Series...
doc_14564
Returns the number of items to paginate by, or None for no pagination. By default this returns the value of paginate_by.
doc_14565
This function returns a tuple of three values that give information about the exception that is currently being handled. The information returned is specific both to the current thread and to the current stack frame. If the current stack frame is not handling an exception, the information is taken from the calling stac...
doc_14566
[Deprecated] Notes Deprecated since version 3.5:
doc_14567
Token value for "&=".
doc_14568
class sklearn.pipeline.Pipeline(steps, *, memory=None, verbose=False) [source] Pipeline of transforms with a final estimator. Sequentially apply a list of transforms and a final estimator. Intermediate steps of the pipeline must be ‘transforms’, that is, they must implement fit and transform methods. The final estima...
doc_14569
See Migration guide for more details. tf.compat.v1.raw_ops.MaxPoolV2 tf.raw_ops.MaxPoolV2( input, ksize, strides, padding, data_format='NHWC', name=None ) Args input A Tensor. Must be one of the following types: half, bfloat16, float32, float64, int32, int64, uint8, int16, int8, uint16, qint8. 4-D input...
doc_14570
classmethod normalize_email(email) Normalizes email addresses by lowercasing the domain portion of the email address. get_by_natural_key(username) Retrieves a user instance using the contents of the field nominated by USERNAME_FIELD. make_random_password(length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzAB...
doc_14571
tf.distribute.experimental.MultiWorkerMirroredStrategy( communication=tf.distribute.experimental.CollectiveCommunication.AUTO, cluster_resolver=None ) This strategy implements synchronous distributed training across multiple workers, each with potentially multiple GPUs. Similar to tf.distribute.MirroredStrateg...
doc_14572
Calculate the n-th discrete difference along the given axis. The first difference is given by out[i] = a[i+1] - a[i] along the given axis, higher differences are calculated by using diff recursively. Parameters aarray_like Input array nint, optional The number of times values are differenced. If zero, the i...
doc_14573
Return the lowest bound for C such that for C in (l1_min_C, infinity) the model is guaranteed not to be empty. This applies to l1 penalized classifiers, such as LinearSVC with penalty=’l1’ and linear_model.LogisticRegression with penalty=’l1’. This value is valid if class_weight parameter in fit() is not set. Parame...
doc_14574
Moves all model parameters and buffers to the XPU. This also makes associated parameters and buffers different objects. So it should be called before constructing optimizer if the module will live on XPU while being optimized. Parameters device (int, optional) – if specified, all parameters will be copied to that dev...
doc_14575
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_14576
Display an image. Parameters arrndarray or str Image data or name of image file. pluginstr Name of plugin to use. By default, the different plugins are tried (starting with imageio) until a suitable candidate is found. Other Parameters plugin_argskeywords Passed to the given plugin.
doc_14577
class sklearn.preprocessing.QuantileTransformer(*, n_quantiles=1000, output_distribution='uniform', ignore_implicit_zeros=False, subsample=100000, random_state=None, copy=True) [source] Transform features using quantiles information. This method transforms the features to follow a uniform or a normal distribution. Th...
doc_14578
Extract BRIEF binary descriptors for given keypoints in image. Parameters image2D array Input image. keypoints(N, 2) array Keypoint coordinates as (row, col).
doc_14579
See torch.rad2deg()
doc_14580
Generates a random sample from a given 1-D array New in version 1.7.0. Note New code should use the choice method of a default_rng() instance instead; please see the Quick Start. Parameters a1-D array-like or int If an ndarray, a random sample is generated from its elements. If an int, the random sample is ...
doc_14581
Pseudo-Vandermonde matrix of given degrees. Returns the pseudo-Vandermonde matrix of degrees deg and sample points (x, y). The pseudo-Vandermonde matrix is defined by \[V[..., (deg[1] + 1)*i + j] = x^i * y^j,\] where 0 <= i <= deg[0] and 0 <= j <= deg[1]. The leading indices of V index the points (x, y) and the last...
doc_14582
tf.compat.v1.add_to_collections( names, value ) See tf.Graph.add_to_collections for more details. Args names The key for the collections. The GraphKeys class contains many standard names for collections. value The value to add to the collections. Eager Compatibility Collections are only supported...
doc_14583
Equivalent to get(False).
doc_14584
Return the mask of a masked array, or nomask. Return the mask of a as an ndarray if a is a MaskedArray and the mask is not nomask, else return nomask. To guarantee a full array of booleans of the same shape as a, use getmaskarray. Parameters aarray_like Input MaskedArray for which the mask is required. See...
doc_14585
Return the default savefig file format as specified in rcParams["savefig.format"] (default: 'png'). The returned string does not include a period. This method is overridden in backends that only support a single file type.
doc_14586
Wait until the result is available or until timeout seconds pass.
doc_14587
Same as pygame.sprite.Group This class is an alias to pygame.sprite.Group(). It has no additional functionality.
doc_14588
tf.SparseTensor Compat aliases for migration See Migration guide for more details. tf.compat.v1.SparseTensor, tf.compat.v1.sparse.SparseTensor tf.sparse.SparseTensor( indices, values, dense_shape ) TensorFlow represents a sparse tensor as three separate dense tensors: indices, values, and dense_shape. In Python,...
doc_14589
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_14590
Render matplotlib figure into an image and add it to summary. Note that this requires the matplotlib package. Parameters tag (string) – Data identifier figure (matplotlib.pyplot.figure) – Figure or a list of figures global_step (int) – Global step value to record close (bool) – Flag to automatically close the ...
doc_14591
Return True if given object is integer. Returns bool
doc_14592
operator.le(a, b) operator.eq(a, b) operator.ne(a, b) operator.ge(a, b) operator.gt(a, b) operator.__lt__(a, b) operator.__le__(a, b) operator.__eq__(a, b) operator.__ne__(a, b) operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva...
doc_14593
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorScaledIdentity tf.linalg.LinearOperatorScaledIdentity( num_rows, multiplier, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=True, assert_proper_shapes=False, name='LinearOperatorScaledIdentity' ) Thi...
doc_14594
Simply handles the multiplication between the parameter being pruned and the generated mask. Fetches the mask and the original tensor from the module and returns the pruned version of the tensor. Parameters module (nn.Module) – module containing the tensor to prune Returns pruned version of the input tensor Return...
doc_14595
Return an iterator over elements repeating each as many times as its count. Elements are returned in the order first encountered. If an element’s count is less than one, elements() will ignore it. >>> c = Counter(a=4, b=2, c=0, d=-2) >>> sorted(c.elements()) ['a', 'a', 'a', 'a', 'b', 'b']
doc_14596
See Migration guide for more details. tf.compat.v1.make_tensor_proto tf.make_tensor_proto( values, dtype=None, shape=None, verify_shape=False, allow_broadcast=False ) In TensorFlow 2.0, representing tensors as protos should no longer be a common workflow. That said, this utility function is still useful for gene...
doc_14597
Enhance contrast of an image. This replaces each pixel by the local maximum if the pixel greyvalue is closer to the local maximum than the local minimum. Otherwise it is replaced by the local minimum. Only greyvalues between percentiles [p0, p1] are considered in the filter. Parameters image2-D array (uint8, uint...
doc_14598
See Migration guide for more details. tf.compat.v1.math.reduce_sum tf.compat.v1.reduce_sum( input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None, keep_dims=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: kee...
doc_14599
Appends a data function to the data_files list that will generate __svn_version__.py file to the current package directory. Generate package __svn_version__.py file from SVN revision number, it will be removed after python exits but will be available when sdist, etc commands are executed. Notes If __svn_version__.py ...