_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_26800
List subscribed mailbox names in directory matching pattern. directory defaults to the top level directory and pattern defaults to match any mailbox. Returned data are tuples of message part envelope and data.
doc_26801
See Migration guide for more details. tf.compat.v1.train.Coordinator tf.train.Coordinator( clean_stop_exception_types=None ) This class implements a simple mechanism to coordinate the termination of a set of threads. Usage: # Create a coordinator. coord = Coordinator() # Start a number of threads, passing the co...
doc_26802
Helper function to normalize kwarg inputs. Parameters kwdict or None A dict of keyword arguments. None is explicitly supported and treated as an empty dict, to support functions with an optional parameter of the form props=None. alias_mappingdict or Artist subclass or Artist instance, optional A mapping bet...
doc_26803
Calculate the expanding correlation. Parameters other:Series or DataFrame, optional If not supplied then will default to self and produce pairwise output. pairwise:bool, default None If False then only matching columns between self and other will be used and the output will be a DataFrame. If True then all ...
doc_26804
Format a floating-point scalar as a decimal string in scientific notation. Provides control over rounding, trimming and padding. Uses and assumes IEEE unbiased rounding. Uses the “Dragon4” algorithm. Parameters xpython float or numpy floating scalar Value to format. precisionnon-negative integer or None, opti...
doc_26805
Registers a template context processor function. Parameters f (Callable[[], Dict[str, Any]]) – Return type Callable[[], Dict[str, Any]]
doc_26806
Checks if all work currently captured by event has completed. Returns A boolean indicating if all work currently captured by event has completed.
doc_26807
On Unix and Windows, return the argument with an initial component of ~ or ~user replaced by that user’s home directory. On Unix, an initial ~ is replaced by the environment variable HOME if it is set; otherwise the current user’s home directory is looked up in the password directory through the built-in module pwd. An...
doc_26808
Alias for torch.gt().
doc_26809
An optional string of a field name (with an optional "-" prefix which indicates descending order) or an expression (or a tuple or list of strings and/or expressions) that specifies the ordering of the elements in the result list. Examples: 'some_field' '-some_field' from django.db.models import F F('some_field').desc()
doc_26810
Is True if the Tensor uses sparse storage layout, False otherwise.
doc_26811
Release the underlying buffer exposed by the memoryview object. Many objects take special actions when a view is held on them (for example, a bytearray would temporarily forbid resizing); therefore, calling release() is handy to remove these restrictions (and free any dangling resources) as soon as possible. After this...
doc_26812
sklearn.metrics.mean_squared_log_error(y_true, y_pred, *, sample_weight=None, multioutput='uniform_average') [source] Mean squared logarithmic error regression loss. Read more in the User Guide. Parameters y_truearray-like of shape (n_samples,) or (n_samples, n_outputs) Ground truth (correct) target values. y...
doc_26813
Enable stricter semantics for mixing floats and Decimals. If the signal is not trapped (default), mixing floats and Decimals is permitted in the Decimal constructor, create_decimal() and all comparison operators. Both conversion and comparisons are exact. Any occurrence of a mixed operation is silently recorded by sett...
doc_26814
Destroy the tool. This method is called by ToolManager.remove_tool.
doc_26815
Default widget: EmailInput Empty value: Whatever you’ve given as empty_value. Normalizes to: A string. Uses EmailValidator to validate that the given value is a valid email address, using a moderately complex regular expression. Error message keys: required, invalid Has three optional arguments max_length, min_leng...
doc_26816
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_26817
Bases: mpl_toolkits.axes_grid1.axes_grid.CbarAxesBase, mpl_toolkits.axisartist.axislines.Axes [Deprecated] Notes Deprecated since version 3.5: Build an Axes in a figure. Parameters figFigure The Axes is built in the Figure fig. rect[left, bottom, width, height] The Axes is built in the rectangle rect. re...
doc_26818
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_26819
Set the height of the rectangle.
doc_26820
Get parameters of this kernel. 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_26821
policy is an object implementing the CookiePolicy interface. The CookieJar class stores HTTP cookies. It extracts cookies from HTTP requests, and returns them in HTTP responses. CookieJar instances automatically expire contained cookies when necessary. Subclasses are also responsible for storing and retrieving cookies ...
doc_26822
Bases: torch.distributions.distribution.Distribution The MixtureSameFamily distribution implements a (batch of) mixture distribution where all component are from different parameterizations of the same distribution type. It is parameterized by a Categorical “selecting distribution” (over k component) and a component ...
doc_26823
Return x minus best fit line; 'linear' detrending. Parameters y0-D or 1-D array or sequence Array or sequence containing the data See also detrend_mean Another detrend algorithm. detrend_none Another detrend algorithm. detrend A wrapper around all the detrend algorithms.
doc_26824
A subclass of ConnectionError, raised when a connection is reset by the peer. Corresponds to errno ECONNRESET.
doc_26825
The internal LocalStack that holds AppContext instances. Typically, the current_app and g proxies should be accessed instead of the stack. Extensions can access the contexts on the stack as a namespace to store data. Changelog New in version 0.9.
doc_26826
Create a directory named pkg_dir containing an __init__ file with init_source as its contents.
doc_26827
See Migration guide for more details. tf.compat.v1.raw_ops.LeakyRelu tf.raw_ops.LeakyRelu( features, alpha=0.2, name=None ) Args features A Tensor. Must be one of the following types: half, bfloat16, float32, float64. alpha An optional float. Defaults to 0.2. name A name for the operation (o...
doc_26828
Wait till an object in object_list is ready. Returns the list of those objects in object_list which are ready. If timeout is a float then the call blocks for at most that many seconds. If timeout is None then it will block for an unlimited period. A negative timeout is equivalent to a zero timeout. For both Unix and Wi...
doc_26829
tf.ones_like( input, dtype=None, name=None ) See also tf.ones. Given a single tensor (tensor), this operation returns a tensor of the same type and shape as tensor with all elements set to 1. Optionally, you can use dtype to specify a new type for the returned tensor. For example: tensor = tf.constant([[1, 2, 3],...
doc_26830
Compute last of group values. Parameters numeric_only:bool, default False Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. min_count:int, default -1 The required number of valid values to perform the operation. If fewer than min_count non-NA valu...
doc_26831
tf.compat.v1.nn.max_pool_with_argmax( input, ksize, strides, padding, data_format='NHWC', Targmax=None, name=None, output_dtype=None, include_batch_in_index=False ) The indices in argmax are flattened, so that a maximum value at position [b, y, x, c] becomes flattened index: (y * width + x) * channels + c if i...
doc_26832
Dimensionality reduction using truncated SVD (aka LSA). This transformer performs linear dimensionality reduction by means of truncated singular value decomposition (SVD). Contrary to PCA, this estimator does not center the data before computing the singular value decomposition. This means it can work with sparse mat...
doc_26833
See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyMomentum tf.raw_ops.SparseApplyMomentum( var, accum, lr, grad, indices, momentum, use_locking=False, use_nesterov=False, name=None ) Set use_nesterov = True if you want to use Nesterov momentum. That is for rows we have grad for, we update...
doc_26834
class ast.Or Boolean operator tokens.
doc_26835
Generate an etag for some data. Changed in version 2.0: Use SHA-1. MD5 may not be available in some environments. Parameters data (bytes) – Return type str
doc_26836
class sklearn.linear_model.LassoCV(*, eps=0.001, n_alphas=100, alphas=None, fit_intercept=True, normalize=False, precompute='auto', max_iter=1000, tol=0.0001, copy_X=True, cv=None, verbose=False, n_jobs=None, positive=False, random_state=None, selection='cyclic') [source] Lasso linear model with iterative fitting alo...
doc_26837
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_26838
Upsamples the input, using bilinear upsampling. Warning This function is deprecated in favor of torch.nn.quantized.functional.interpolate(). This is equivalent with nn.quantized.functional.interpolate(..., mode='bilinear', align_corners=True). Note The input quantization parameters propagate to the output. Note ...
doc_26839
Decays the learning rate of each parameter group by gamma every epoch. When last_epoch=-1, sets initial lr as lr. Parameters optimizer (Optimizer) – Wrapped optimizer. gamma (float) – Multiplicative factor of learning rate decay. last_epoch (int) – The index of last epoch. Default: -1. verbose (bool) – If True...
doc_26840
Get the yaxis' tick labels. Parameters minorbool Whether to return the minor or the major ticklabels. whichNone, ('minor', 'major', 'both') Overrides minor. Selects which ticklabels to return Returns list of Text Notes The tick label strings are not populated until a draw method has been called. Se...
doc_26841
Return list of triples describing non-overlapping matching subsequences. Each triple is of the form (i, j, n), and means that a[i:i+n] == b[j:j+n]. The triples are monotonically increasing in i and j. The last triple is a dummy, and has the value (len(a), len(b), 0). It is the only triple with n == 0. If (i, j, n) and ...
doc_26842
An enum class of available backends. PyTorch ships with two builtin backends: BackendType.TENSORPIPE and BackendType.PROCESS_GROUP. Additional ones can be registered using the register_backend() function.
doc_26843
Enqueues the result of preparing the LogRecord. Should an exception occur (e.g. because a bounded queue has filled up), the handleError() method is called to handle the error. This can result in the record silently being dropped (if logging.raiseExceptions is False) or a message printed to sys.stderr (if logging.raiseE...
doc_26844
Return the process ID. Before the process is spawned, this will be None.
doc_26845
Return a sample data file. fname is a path relative to the mpl-data/sample_data directory. If asfileobj is True return a file object, otherwise just a file path. Sample data files are stored in the 'mpl-data/sample_data' directory within the Matplotlib package. If the filename ends in .gz, the file is implicitly ungz...
doc_26846
See Migration guide for more details. tf.compat.v1.raw_ops.FractionalMaxPoolGrad tf.raw_ops.FractionalMaxPoolGrad( orig_input, orig_output, out_backprop, row_pooling_sequence, col_pooling_sequence, overlapping=False, name=None ) Args orig_input A Tensor. Must be one of the following types: float32, ...
doc_26847
Test whether all array elements along a given axis evaluate to True. Parameters aarray_like Input array or object that can be converted to an array. axisNone or int or tuple of ints, optional Axis or axes along which a logical AND reduction is performed. The default (axis=None) is to perform a logical AND o...
doc_26848
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Keys are corresponding parameter and buffer names. Returns a dictionary containing a whole state of the module Return type dict Example: >>> module.state_dict().keys() ['bias',...
doc_26849
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_26850
Convert a Laguerre series to a polynomial. Convert an array representing the coefficients of a Laguerre series, ordered from lowest degree to highest, to an array of the coefficients of the equivalent polynomial (relative to the “standard” basis) ordered from lowest to highest degree. Parameters carray_like 1-D...
doc_26851
Bases: matplotlib.offsetbox.AnchoredOffsetbox AnchoredOffsetbox with Text. Parameters sstr Text. locstr Location code. See AnchoredOffsetbox. padfloat, default: 0.4 Padding around the text as fraction of the fontsize. borderpadfloat, default: 0.5 Spacing between the offsetbox frame and the bbox_to_a...
doc_26852
Create a quantized module from a float module or qparams_dict Parameters mod (Module) – a float module, either produced by torch.quantization utilities or provided by the user
doc_26853
Raised when attempting an astype operation on an array with NaN to an integer dtype.
doc_26854
Return the harmonic mean of data, a sequence or iterable of real-valued numbers. The harmonic mean, sometimes called the subcontrary mean, is the reciprocal of the arithmetic mean() of the reciprocals of the data. For example, the harmonic mean of three values a, b and c will be equivalent to 3/(1/a + 1/b + 1/c). If on...
doc_26855
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_26856
See Migration guide for more details. tf.compat.v1.raw_ops.IteratorGetNextAsOptional tf.raw_ops.IteratorGetNextAsOptional( iterator, output_types, output_shapes, name=None ) Args iterator A Tensor of type resource. output_types A list of tf.DTypes that has length >= 1. output_shapes A list o...
doc_26857
""" 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_26858
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_26859
Run a test module. Equivalent to calling $ nosetests <argv> <file_to_run> from the command line Parameters file_to_runstr, optional Path to test module, or None. By default, run the module from which this function is called. argvlist of strings Arguments to be passed to the nose test runner. argv[0] is igno...
doc_26860
Accessor object for datetimelike properties of the Series values. Examples >>> seconds_series = pd.Series(pd.date_range("2000-01-01", periods=3, freq="s")) >>> seconds_series 0 2000-01-01 00:00:00 1 2000-01-01 00:00:01 2 2000-01-01 00:00:02 dtype: datetime64[ns] >>> seconds_series.dt.second 0 0 1 1 2 ...
doc_26861
[Deprecated] Notes Deprecated since version 3.4:
doc_26862
Returns a tzinfo instance that represents the default time zone.
doc_26863
Return a copy of the array. Returns ExtensionArray
doc_26864
See Migration guide for more details. tf.compat.v1.raw_ops.ImageProjectiveTransformV2 tf.raw_ops.ImageProjectiveTransformV2( images, transforms, output_shape, interpolation, fill_mode='CONSTANT', name=None ) If one row of transforms is [a0, a1, a2, b0, b1, b2, c0, c1], then it maps the output point (x, y) to...
doc_26865
Attributes data_class DataClass data_class display_name string display_name plugin_data PluginData plugin_data summary_description string summary_description Child Classes class PluginData
doc_26866
tf.keras.layers.GlobalMaxPooling2D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.GlobalMaxPool2D, tf.compat.v1.keras.layers.GlobalMaxPooling2D tf.keras.layers.GlobalMaxPool2D( data_format=None, **kwargs ) Examples: input_shape = (2, 4, 5, 3) x = tf.random.normal(in...
doc_26867
self.byte() is equivalent to self.to(torch.uint8). See to(). Parameters memory_format (torch.memory_format, optional) – the desired memory format of returned Tensor. Default: torch.preserve_format.
doc_26868
tf.feature_column.categorical_column_with_vocabulary_file( key, vocabulary_file, vocabulary_size=None, dtype=tf.dtypes.string, default_value=None, num_oov_buckets=0 ) Use this when your inputs are in string or integer format, and you have a vocabulary file that maps each value to an integer ID. By default, out...
doc_26869
See Migration guide for more details. tf.compat.v1.estimator.MultiClassHead tf.estimator.MultiClassHead( n_classes, weight_column=None, label_vocabulary=None, loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, loss_fn=None, name=None ) Uses sparse_softmax_cross_entropy loss. The head expects lo...
doc_26870
Does nothing here, but is called by the get_version method and can be overridden by subclasses. In particular it is redefined in the FCompiler class where more documentation can be found.
doc_26871
Whether to match the peer cert’s hostname in SSLSocket.do_handshake(). The context’s verify_mode must be set to CERT_OPTIONAL or CERT_REQUIRED, and you must pass server_hostname to wrap_socket() in order to match the hostname. Enabling hostname checking automatically sets verify_mode from CERT_NONE to CERT_REQUIRED. It...
doc_26872
See Migration guide for more details. tf.compat.v1.data.experimental.map_and_batch tf.data.experimental.map_and_batch( map_func, batch_size, num_parallel_batches=None, drop_remainder=False, num_parallel_calls=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions fo...
doc_26873
The number of arguments. Data attribute containing the number of arguments the ufunc takes, including optional ones. Notes Typically this value will be one more than what you might expect because all ufuncs take the optional “out” argument. Examples >>> np.add.nargs 3 >>> np.multiply.nargs 3 >>> np.power.nargs 3 >>> ...
doc_26874
This class implements the actual IMAP4 protocol. The connection is created and protocol version (IMAP4 or IMAP4rev1) is determined when the instance is initialized. If host is not specified, '' (the local host) is used. If port is omitted, the standard IMAP4 port (143) is used. The optional timeout parameter specifies ...
doc_26875
tf.losses.KLDivergence Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.KLDivergence tf.keras.losses.KLDivergence( reduction=losses_utils.ReductionV2.AUTO, name='kl_divergence' ) loss = y_true * log(y_true / y_pred) See: https://en.wikipedia.org/wiki/Kullback%E2%80%93L...
doc_26876
Return a new array of given shape and type, without initializing entries. Parameters shapeint or tuple of int Shape of the empty array, e.g., (2, 3) or 2. dtypedata-type, optional Desired output data-type for the array, e.g, numpy.int8. Default is numpy.float64. order{‘C’, ‘F’}, optional, default: ‘C’ W...
doc_26877
See Migration guide for more details. tf.compat.v1.linalg.matrix_transpose, tf.compat.v1.linalg.transpose, tf.compat.v1.matrix_transpose tf.linalg.matrix_transpose( a, name='matrix_transpose', conjugate=False ) For example: x = tf.constant([[1, 2, 3], [4, 5, 6]]) tf.linalg.matrix_transpose(x) # [[1, 4], ...
doc_26878
HTTP protocol version used by server. 10 for HTTP/1.0, 11 for HTTP/1.1.
doc_26879
uninitialize the midi module quit() -> None Uninitializes the pygame.midi module. If pygame.midi.init() was called to initialize the pygame.midi module, then this function will be called automatically when your program exits. It is safe to call this function more than once.
doc_26880
Convert a DataFrame with sparse values to dense. New in version 0.25.0. Returns DataFrame A DataFrame with the same values stored as dense arrays. Examples >>> df = pd.DataFrame({"A": pd.arrays.SparseArray([0, 1, 0])}) >>> df.sparse.to_dense() A 0 0 1 1 2 0
doc_26881
Add text to the Axes. Add the text s to the Axes at location x, y in data coordinates. Parameters x, yfloat The position to place the text. By default, this is in data coordinates. The coordinate system can be changed using the transform parameter. sstr The text. fontdictdict, default: None A dictionary...
doc_26882
Sets the seed for generating random numbers for the current GPU. It’s safe to call this function if CUDA is not available; in that case, it is silently ignored. Parameters seed (int) – The desired seed. Warning If you are working with a multi-GPU model, this function is insufficient to get determinism. To seed a...
doc_26883
import matplotlib.pyplot as plt x = np.arange(0, 5, 0.1) y = np.sin(x) plt.plot(x, y) The explicit (object-oriented) API is recommended for complex plots, though pyplot is still usually used to create the figure and often the axes in the figure. See pyplot.figure, pyplot.subplots, and pyplot.subplot_mosaic to create ...
doc_26884
Solves a dictionary learning matrix factorization problem. Finds the best dictionary and the corresponding sparse code for approximating the data matrix X by solving: (U^*, V^*) = argmin 0.5 || X - U V ||_2^2 + alpha * || U ||_1 (U,V) with || V_k ||_2 = 1 for all 0 <= k < n_components where...
doc_26885
Check a password against a given salted and hashed password value. In order to support unsalted legacy passwords this method supports plain text passwords, md5 and sha1 hashes (both salted and unsalted). Returns True if the password matched, False otherwise. Parameters pwhash (str) – a hashed string like returned b...
doc_26886
Raise all references of o to the top of the stack, and return it. Raises ValueError If o is not in the stack.
doc_26887
Return a boolean array where the index values are in values. Compute boolean array of whether each index value is found in the passed set of values. The length of the returned boolean array matches the length of the index. Parameters values:set or list-like Sought values. level:str or int, optional Name or ...
doc_26888
Number of microseconds (>= 0 and less than 1 second).
doc_26889
The absolute path to the directory whose contents you want listed. This directory must exist.
doc_26890
Returns whether PyTorch’s CUDA state has been initialized.
doc_26891
Bind the socket to address. The socket must not already be bound. (The format of address depends on the address family — see above.) Raises an auditing event socket.bind with arguments self, address.
doc_26892
Associates level level with text levelName in an internal dictionary, which is used to map numeric levels to a textual representation, for example when a Formatter formats a message. This function can also be used to define your own levels. The only constraints are that all levels used must be registered using this fun...
doc_26893
Sparse representation of the fitted coef_.
doc_26894
Windows only: return the filename of the VC runtime library used by Python, and by the extension modules. If the name of the library cannot be determined, None is returned. If you need to free memory, for example, allocated by an extension module with a call to the free(void *), it is important that you use the functio...
doc_26895
Plot 2D or 3D data. Parameters xs1D array-like x coordinates of vertices. ys1D array-like y coordinates of vertices. zsfloat or 1D array-like z coordinates of vertices; either one for all points or one for each point. zdir{'x', 'y', 'z'}, default: 'z' When plotting 2D data, the direction to use as z...
doc_26896
Alias for set_facecolor.
doc_26897
A wrapper around Python’s assert which is symbolically traceable.
doc_26898
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo...
doc_26899
Set the path effects. Parameters path_effectsAbstractPathEffect