_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_11700
Transform between iterable of iterables and a multilabel format. Although a list of sets or tuples is a very intuitive format for multilabel data, it is unwieldy to process. This transformer converts between this intuitive format and the supported multilabel format: a (samples x classes) binary matrix indicating the ...
doc_11701
Applies the soft shrinkage function elementwise See Softshrink for more details.
doc_11702
Return a copy of each string element where all tab characters are replaced by one or more spaces. Calls str.expandtabs element-wise. Return a copy of each string element where all tab characters are replaced by one or more spaces, depending on the current column and the given tabsize. The column number is reset to ze...
doc_11703
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalParallelInterleaveDataset tf.raw_ops.ExperimentalParallelInterleaveDataset( input_dataset, other_arguments, cycle_length, block_length, sloppy, buffer_output_elements, prefetch_input_elements, f, output_types, output_shapes, name=None ...
doc_11704
The CategoricalDtype for this instance.
doc_11705
The request was not successfully authenticated, and the highest priority authentication class does not use WWW-Authenticate headers. — An HTTP 403 Forbidden response will be returned. The request was not successfully authenticated, and the highest priority authentication class does use WWW-Authenticate headers. — An ...
doc_11706
New in Django 4.0. Inherited from BaseDeleteView. The form class that will be used to confirm the request. By default django.forms.Form, resulting in an empty form that is always valid. By providing your own Form subclass, you can add additional requirements, such as a confirmation checkbox, for example.
doc_11707
Set the colormap for luminance data. Parameters cmapColormap or str or None
doc_11708
Extract a member from the archive to the current working directory, using its full name. Its file information is extracted as accurately as possible. member may be a filename or a TarInfo object. You can specify a different directory using path. path may be a path-like object. File attributes (owner, mtime, mode) are s...
doc_11709
Decompose the elements of x into mantissa and twos exponent. Returns (mantissa, exponent), where x = mantissa * 2**exponent`. The mantissa lies in the open interval(-1, 1), while the twos exponent is a signed integer. Parameters xarray_like Array of numbers to be decomposed. out1ndarray, optional Output arr...
doc_11710
The CSS classes to be used when rendering the error list. Any provided classes are added to the default errorlist class.
doc_11711
Token value for ":=".
doc_11712
Some flags are valid for C but not C++. Prune them.
doc_11713
Computes the element-wise maximum of input and other. This is like torch.maximum() except it handles NaNs differently: if exactly one of the two elements being compared is a NaN then the non-NaN element is taken as the maximum. Only if both elements are NaN is NaN propagated. This function is a wrapper around C++’s std...
doc_11714
Select values at particular time of day (e.g., 9:30AM). Parameters time:datetime.time or str axis:{0 or ‘index’, 1 or ‘columns’}, default 0 Returns Series or DataFrame Raises TypeError If the index is not a DatetimeIndex See also between_time Select values between particular times of the day. ...
doc_11715
Bases: matplotlib.collections.RegularPolyCollection Draw a collection of regular asterisks with numsides points. Parameters numsidesint The number of sides of the polygon. rotationfloat The rotation of the polygon in radians. sizestuple of float The area of the circle circumscribing the polygon in point...
doc_11716
Sets the module in evaluation mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc. This is equivalent with self.train(False). Returns self Return type Module
doc_11717
Return an array with the elements of self left-justified in a string of length width. See also char.ljust
doc_11718
Handle BuildError on url_for(). Parameters error (Exception) – endpoint (str) – values (dict) – Return type str
doc_11719
Count the non-masked elements of the array along the given axis. Parameters axisNone or int or tuple of ints, optional Axis or axes along which the count is performed. The default, None, performs the count over all the dimensions of the input array. axis may be negative, in which case it counts from the last to...
doc_11720
Convert a PatchCollection into a Patch3DCollection object (or a PathCollection into a Path3DCollection object). Parameters za The location or locations to place the patches in the collection along the zdir axis. Default: 0. zdir The axis in which to place the patches. Default: "z". depthshade Whether to shade...
doc_11721
Same as date.strftime(). This makes it possible to specify a format string for a date object in formatted string literals and when using str.format(). For a complete list of formatting directives, see strftime() and strptime() Behavior.
doc_11722
sklearn.preprocessing.maxabs_scale(X, *, axis=0, copy=True) [source] Scale each feature to the [-1, 1] range without breaking the sparsity. This estimator scales each feature individually such that the maximal absolute value of each feature in the training set will be 1.0. This scaler can also be applied to sparse CS...
doc_11723
Generate indices to split data into training and test set. Parameters Xarray-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features. yarray-like of shape (n_samples,) The target variable for supervised learning problems. group...
doc_11724
See Migration guide for more details. tf.compat.v1.io.read_file, tf.compat.v1.read_file tf.io.read_file( filename, name=None ) Args filename A Tensor of type string. name A name for the operation (optional). Returns A Tensor of type string.
doc_11725
Returns an iterator over all modules in the network, yielding both the name of the module as well as the module itself. Yields (string, Module) – Tuple of name and module Note Duplicate modules are returned only once. In the following example, l will be returned only once. Example: >>> l = nn.Linear(2, 2) >>> net...
doc_11726
Print a table of contents for the archive to sys.stdout.
doc_11727
A named tuple holding information about the thread implementation. Attribute Explanation name Name of the thread implementation: 'nt': Windows threads 'pthread': POSIX threads 'solaris': Solaris threads lock Name of the lock implementation: 'semaphore': a lock uses a semaphore 'mutex+cond': a lock us...
doc_11728
Return x, y values at equally spaced points in domain. Returns the x, y values at n linearly spaced points across the domain. Here y is the value of the polynomial at the points x. By default the domain is the same as that of the series instance. This method is intended mostly as a plotting aid. New in version 1.5.0...
doc_11729
Return whether the artist is to be rasterized.
doc_11730
Set the offsets for the collection. Parameters offsets(N, 2) or (2,) array-like
doc_11731
tf.reduce_logsumexp tf.math.reduce_logsumexp( input_tensor, axis=None, keepdims=False, name=None ) Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which must be unique. If keepdims is true, the reduced dimen...
doc_11732
Applies the function callable to each element in the tensor, replacing each element with the value returned by callable. Note This function only works with CPU tensors and should not be used in code sections that require high performance.
doc_11733
Return the group id.
doc_11734
A class method to update the default handler map.
doc_11735
Returns a view of the array with axes transposed. For a 1-D array this has no effect, as a transposed vector is simply the same vector. To convert a 1-D array into a 2D column vector, an additional dimension must be added. np.atleast2d(a).T achieves this, as does a[:, np.newaxis]. For a 2-D array, this is a standard ...
doc_11736
Return the default pixel size in dots per inch get_default_resolution() -> long Returns the default pixel size, in dots per inch, for the module. The default is 72 DPI.
doc_11737
Load and vectorize the 20 newsgroups dataset (classification). Download it if necessary. This is a convenience function; the transformation is done using the default settings for CountVectorizer. For more advanced usage (stopword filtering, n-gram extraction, etc.), combine fetch_20newsgroups with a custom CountVecto...
doc_11738
A static helper function for Authentication subclasses to add extra authentication system properties onto a class: class FooAuthenticate(WWWAuthenticate): special_realm = auth_property('special_realm') For more information have a look at the sourcecode to see how the regular properties (realm etc.) are implemented...
doc_11739
A class method called before tests in an individual class are run. setUpClass is called with the class as the only argument and must be decorated as a classmethod(): @classmethod def setUpClass(cls): ... See Class and Module Fixtures for more details. New in version 3.2.
doc_11740
Return a Path for the visible_edges.
doc_11741
bytearray.endswith(suffix[, start[, end]]) Return True if the binary data ends with the specified suffix, otherwise return False. suffix can also be a tuple of suffixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position. The suffix(es) to search for m...
doc_11742
Return the kernel k(X, Y) and optionally its gradient. Parameters Xarray-like of shape (n_samples_X, n_features) or list of object Left argument of the returned kernel k(X, Y) Yarray-like of shape (n_samples_Y, n_features) or list of object, default=None Right argument of the returned kernel k(X, Y). If Non...
doc_11743
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_11744
Return a formatted multi-line string with detailed information about the code object, like code_info().
doc_11745
See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.ImageDataGenerator tf.keras.preprocessing.image.ImageDataGenerator( featurewise_center=False, samplewise_center=False, featurewise_std_normalization=False, samplewise_std_normalization=False, zca_whitening=False, zca_epsilon=1e-0...
doc_11746
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_11747
Transform X into subcluster centroids dimension. Each dimension represents the distance from the sample point to each cluster centroid. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Input data. Returns X_trans{array-like, sparse matrix} of shape (n_samples, n_clusters) Transfo...
doc_11748
Same as terminate() but using the SIGKILL signal on Unix. New in version 3.7.
doc_11749
The string '0123456789abcdefABCDEF'.
doc_11750
Make sure that array is 2D, square and symmetric. If the array is not symmetric, then a symmetrized version is returned. Optionally, a warning or exception is raised if the matrix is not symmetric. Parameters array{ndarray, sparse matrix} Input object to check / convert. Must be two-dimensional and square, othe...
doc_11751
tf.experimental.numpy.exp( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.exp.
doc_11752
Build the source coordinates for the output of a 2-D image warp. Parameters coord_mapcallable like GeometricTransform.inverse Return input coordinates for given output coordinates. Coordinates are in the shape (P, 2), where P is the number of coordinates and each element is a (row, col) pair. shapetuple Sha...
doc_11753
Find the vertical edges of an image using the Sobel transform. Parameters image2-D array Image to process. mask2-D array, optional An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. ...
doc_11754
Return whether the object should try to do antialiased rendering.
doc_11755
Returns a matrix representing a month’s calendar. Each row represents a week; days outside of the month are represented by zeros. Each week begins with Monday unless set by setfirstweekday().
doc_11756
See Migration guide for more details. tf.compat.v1.keras.backend.floatx tf.keras.backend.floatx() E.g. 'float16', 'float32', 'float64'. Returns String, the current default float type. Example: tf.keras.backend.floatx() 'float32'
doc_11757
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct...
doc_11758
Return the socket object used internally.
doc_11759
bytearray.splitlines(keepends=False) Return a list of the lines in the binary sequence, breaking at ASCII line boundaries. This method uses the universal newlines approach to splitting lines. Line breaks are not included in the resulting list unless keepends is given and true. For example: >>> b'ab c\n\nde fg\rkl\r\n...
doc_11760
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_11761
See Migration guide for more details. tf.compat.v1.summary.Event Attributes file_version string file_version graph_def bytes graph_def log_message LogMessage log_message meta_graph_def bytes meta_graph_def session_log SessionLog session_log step int64 step summary Summary s...
doc_11762
Return a copy of the colormap, for which the colors for masked (bad) values and, when norm.clip = False, low (under) and high (over) out-of-range values, have been set accordingly.
doc_11763
Writes a sentinel to the queue to tell the listener to quit. This implementation uses put_nowait(). You may want to override this method if you want to use timeouts or work with custom queue implementations. New in version 3.3.
doc_11764
Set the Figure instance the artist belongs to. Parameters figFigure
doc_11765
As repr(), return a string containing a printable representation of an object, but escape the non-ASCII characters in the string returned by repr() using \x, \u or \U escapes. This generates a string similar to that returned by repr() in Python 2.
doc_11766
Return True if hash(obj) will succeed, False otherwise. Some types will pass a test against collections.abc.Hashable but fail when they are actually hashed with hash(). Distinguish between these and other types by trying the call to hash() and seeing if they raise TypeError. Returns bool Examples >>> import co...
doc_11767
Convert the object to a JSON string. Note NaN’s and None will be converted to null and datetime objects will be converted to UNIX timestamps. Parameters path_or_buf:str, path object, file-like object, or None, default None String, path object (implementing os.PathLike[str]), or file-like object implementing a w...
doc_11768
Compute the laplacian kernel between X and Y. The laplacian kernel is defined as: K(x, y) = exp(-gamma ||x-y||_1) for each pair of rows x in X and y in Y. Read more in the User Guide. New in version 0.17. Parameters Xndarray of shape (n_samples_X, n_features) Yndarray of shape (n_samples_Y, n_features), defa...
doc_11769
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_11770
Transpose index and columns. Reflect the DataFrame over its main diagonal by writing rows as columns and vice-versa. The property T is an accessor to the method transpose(). Parameters *args:tuple, optional Accepted for compatibility with NumPy. copy:bool, default False Whether to copy the data after transp...
doc_11771
""" 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_11772
Restore a pipeline template to its initial state.
doc_11773
Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. Calls str.isdigit element-wise. For 8-bit strings, this method is locale-dependent. Parameters aarray_like of str or unicode Returns outndarray Output array of bools See also...
doc_11774
See Migration guide for more details. tf.compat.v1.random.shuffle, tf.compat.v1.random_shuffle tf.random.shuffle( value, seed=None, name=None ) The tensor is shuffled along dimension 0, such that each value[j] is mapped to one and only one output[i]. For example, a mapping that might occur for a 3x2 tensor is: [...
doc_11775
Return the year this Period falls on.
doc_11776
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters Xarray-like of shape (n_samples_X, n_features) or list of object Argument to the kernel. Returns K_diagndar...
doc_11777
Helper decorator for implementing module-level __getattr__ as a class. This decorator must be used at the module toplevel as follows: @caching_module_getattr class __getattr__: # The class *must* be named ``__getattr__``. @property # Only properties are taken into account. def name(self): ... The __getattr...
doc_11778
Wrap application and return a new WSGI application object. The returned application will forward all requests to the original application, and will check that both the application and the server invoking it are conforming to the WSGI specification and to RFC 2616. Any detected nonconformance results in an AssertionErro...
doc_11779
See Migration guide for more details. tf.compat.v1.raw_ops.OneHot tf.raw_ops.OneHot( indices, depth, on_value, off_value, axis=-1, name=None ) The locations represented by indices in indices take value on_value, while all other locations take value off_value. If the input indices is rank N, the output will have ...
doc_11780
Return a match score between the list of font families in families and the font family name family2. An exact match at the head of the list returns 0.0. A match further down the list will return between 0 and 1. No match will return 1.0.
doc_11781
Permutes the dimensions of the self tensor to match the order specified in names, adding size-one dims for any new names. All of the dims of self must be named in order to use this method. The resulting tensor is a view on the original tensor. All dimension names of self must be present in names. names may contain ad...
doc_11782
tf.compat.v1.transpose( a, perm=None, name='transpose', conjugate=False ) Permutes the dimensions according to perm. The returned tensor's dimension i will correspond to the input dimension perm[i]. If perm is not given, it is set to (n-1...0), where n is the rank of the input tensor. Hence by default, this operat...
doc_11783
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 anncoords unknown annotation_clip bool or None backgroundcolor color bbox...
doc_11784
Set to the top level directory that contains test.support.
doc_11785
Possible value for SSLContext.verify_mode, or the cert_reqs parameter to wrap_socket(). In this mode, certificates are required from the other side of the socket connection; an SSLError will be raised if no certificate is provided, or if its validation fails. This mode is not sufficient to verify a certificate in clien...
doc_11786
Gamma distribution. (Not the gamma function!) Conditions on the parameters are alpha > 0 and beta > 0. The probability distribution function is: x ** (alpha - 1) * math.exp(-x / beta) pdf(x) = -------------------------------------- math.gamma(alpha) * beta ** alpha
doc_11787
Between 1 and 12 inclusive.
doc_11788
Alias for get_linewidth.
doc_11789
Return the indices of the elements that are non-zero. Refer to numpy.nonzero for full documentation. See also numpy.nonzero equivalent function
doc_11790
See Migration guide for more details. tf.compat.v1.raw_ops.DecodeCompressed tf.raw_ops.DecodeCompressed( bytes, compression_type='', name=None ) This op decompresses each element of the bytes input Tensor, which is assumed to be compressed using the given compression_type. The output is a string Tensor of the sa...
doc_11791
Estimate fundamental matrix using 8-point algorithm. The 8-point algorithm requires at least 8 corresponding point pairs for a well-conditioned solution, otherwise the over-determined solution is estimated. Parameters src(N, 2) array Source coordinates. dst(N, 2) array Destination coordinates. Returns ...
doc_11792
Returns the current global process times. The return value is an object with five attributes: user - user time system - system time children_user - user time of all child processes children_system - system time of all child processes elapsed - elapsed real time since a fixed point in the past For backwards compa...
doc_11793
XYZ to RGB color space conversion. Parameters xyz(…, 3) array_like The image in XYZ format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in RGB format. Same dimensions as input. Raises ValueError If xyz is not at least 2-D with shape (…, 3). Notes The CIE XYZ color spa...
doc_11794
Create a SaveAs dialog and return the selected filename.
doc_11795
Return lowest indexes in each string in Series/Index. Each of the returned indexes corresponds to the position where the substring is fully contained between [start:end]. This is the same as str.find except instead of returning -1, it raises a ValueError when the substring is not found. Equivalent to standard str.ind...
doc_11796
input_type: 'hidden' template_name: 'django/forms/widgets/hidden.html' Renders as: <input type="hidden" ...> Note that there also is a MultipleHiddenInput widget that encapsulates a set of hidden input elements.
doc_11797
Return the scheduling parameters as a sched_param instance for the process with PID pid. A pid of 0 means the calling process.
doc_11798
Parse the given fontconfig pattern and return a dictionary of key/value pairs useful for initializing a font_manager.FontProperties object.
doc_11799
Close the selector. This must be called to make sure that any underlying resource is freed. The selector shall not be used once it has been closed.