_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_6700 |
Evaluate a Laguerre series at points x. If c is of length n + 1, this function returns the value: \[p(x) = c_0 * L_0(x) + c_1 * L_1(x) + ... + c_n * L_n(x)\] The parameter x is converted to an array only if it is a tuple or a list, otherwise it is treated as a scalar. In either case, either x or its elements must su... | |
doc_6701 | See Migration guide for more details. tf.compat.v1.random.get_seed
tf.compat.v1.get_seed(
op_seed
)
Given operation-specific seed, op_seed, this helper function returns two seeds derived from graph-level and op-level seeds. Many random operations internally use the two seeds to allow user to change the seed glob... | |
doc_6702 |
Pseudo-Vandermonde matrix of given degree. Returns the pseudo-Vandermonde matrix of degree deg and sample points x. The pseudo-Vandermonde matrix is defined by \[V[..., i] = T_i(x),\] where 0 <= i <= deg. The leading indices of V index the elements of x and the last index is the degree of the Chebyshev polynomial. I... | |
doc_6703 |
Alias for get_linestyle. | |
doc_6704 |
Applies a 2D power-average pooling over an input signal composed of several input planes. On each window, the function computed is: f(X)=∑x∈Xxppf(X) = \sqrt[p]{\sum_{x \in X} x^{p}}
At p = ∞\infty , one gets Max Pooling At p = 1, one gets Sum Pooling (which is proportional to average pooling) The parameters kern... | |
doc_6705 | Return the feature importances. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardinality features (many unique values). See sklearn.ins... | |
doc_6706 | True if the file is closed. New in version 3.2. | |
doc_6707 |
Alias for get_facecolor. | |
doc_6708 | A list of shell context processor functions that should be run when a shell context is created. Changelog New in version 0.11. | |
doc_6709 |
A power series class. The Polynomial class provides the standard Python numerical methods ‘+’, ‘-’, ‘*’, ‘//’, ‘%’, ‘divmod’, ‘**’, and ‘()’ as well as the attributes and methods listed in the ABCPolyBase documentation. Parameters
coefarray_like
Polynomial coefficients in order of increasing degree, i.e., (1, 2... | |
doc_6710 | Rename file fromname on the server to toname. | |
doc_6711 | Enters a new context manager and adds its __exit__() method to the callback stack. The return value is the result of the context manager’s own __enter__() method. These context managers may suppress exceptions just as they normally would if used directly as part of a with statement. | |
doc_6712 |
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_6713 | tf.summary.experimental.write_raw_pb(
tensor, step=None, name=None
)
Experimental: this exists to support the usage of V1-style manual summary writing (via the construction of a tf.compat.v1.Summary protocol buffer) with the V2 summary writing API.
Args
tensor the string Tensor holding one or more seriali... | |
doc_6714 |
Remove “small” “trailing” coefficients from a polynomial. “Small” means “small in absolute value” and is controlled by the parameter tol; “trailing” means highest order coefficient(s), e.g., in [0, 1, 1, 0, 0] (which represents 0 + x + x**2 + 0*x**3 + 0*x**4) both the 3-rd and 4-th order coefficients would be “trimme... | |
doc_6715 | torch.overrides.get_ignored_functions() [source]
Return public functions that cannot be overridden by __torch_function__. Returns
A tuple of functions that are publicly available in the torch API but cannot be overridden with __torch_function__. Mostly this is because none of the arguments of these functions are te... | |
doc_6716 |
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None | |
doc_6717 |
Compute the matrix multiplication between the DataFrame and other. This method computes the matrix product between the DataFrame and the values of an other Series, DataFrame or a numpy array. It can also be called using self @ other in Python >= 3.5. Parameters
other:Series, DataFrame or array-like
The other ob... | |
doc_6718 | Similar to the guess_extension() function, using the tables stored as part of the object. | |
doc_6719 | Resets all of the traps to 0. New in version 3.3. | |
doc_6720 |
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters
bbool | |
doc_6721 | See Migration guide for more details. tf.compat.v1.raw_ops.ParallelDynamicStitch
tf.raw_ops.ParallelDynamicStitch(
indices, data, name=None
)
Builds a merged tensor such that merged[indices[m][i, ..., j], ...] = data[m][i, ..., j, ...]
For example, if each indices[m] is scalar or vector, we have # Scalar indice... | |
doc_6722 | See Migration guide for more details. tf.compat.v1.keras.activations.linear
tf.keras.activations.linear(
x
)
For example:
a = tf.constant([-3.0,-1.0, 0.0,1.0,3.0], dtype = tf.float32)
b = tf.keras.activations.linear(a)
b.numpy()
array([-3., -1., 0., 1., 3.], dtype=float32)
Arguments
x Input tensor.... | |
doc_6723 | See torch.movedim() | |
doc_6724 | 8 + <size of element type in bytes>) * nse bytes (plus a constant overhead from storing other tensor data). The memory consumption of a strided tensor is at least product(<tensor shape>) * <size of element type in bytes>. For example, the memory consumption of a 10 000 x 10 000 tensor with 100 000 non-zero 32-bit float... | |
doc_6725 | Returns the number of coordinates in the geometry. | |
doc_6726 | A subclass of AddressHeader that adds one additional attribute:
address
The single address encoded by the header value. If the header value actually contains more than one address (which would be a violation of the RFC under the default policy), accessing this attribute will result in a ValueError. | |
doc_6727 | Returns a list of masks of connected components connected_components() -> [Mask, ...] connected_components(min=0) -> [Mask, ...] Provides a list containing a Mask object for each connected component.
Parameters:
min (int) -- (optional) indicates the minimum number of bits (to filter out noise) per connected com... | |
doc_6728 | Module: email.mime.audio A subclass of MIMENonMultipart, the MIMEAudio class is used to create MIME message objects of major type audio. _audiodata is a string containing the raw audio data. If this data can be decoded by the standard Python module sndhdr, then the subtype will be automatically included in the Content-... | |
doc_6729 | Update the model with a single iteration over the given data. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input data.
yarray-like of shape (n_samples,)
The target values.
classesarray of shape (n_classes,), default=None
Classes across all calls to partial_fit. Can be obtai... | |
doc_6730 | See Migration guide for more details. tf.compat.v1.raw_ops.ToBool
tf.raw_ops.ToBool(
input, name=None
)
Converts a tensor to a scalar predicate with the following rules: For 0D tensors, truthiness is determined by comparing against a "zero" value. For numerical types it is the obvious zero. For strings it is th... | |
doc_6731 |
Remove repeated rows from a 2D array. In particular, if given an array of coordinates of shape (Npoints, Ndim), it will remove repeated points. Parameters
ar2-D ndarray
The input array. Returns
ar_out2-D ndarray
A copy of the input array with repeated rows removed. Raises
ValueErrorif ar is not tw... | |
doc_6732 |
Compute pairwise covariance of columns, excluding NA/null values. Compute the pairwise covariance among the series of a DataFrame. The returned data frame is the covariance matrix of the columns of the DataFrame. Both NA and null values are automatically excluded from the calculation. (See the note below about bias f... | |
doc_6733 |
x
Returns the X coordinate of this point: >>> OGRGeometry('POINT (1 2)').x
1.0
y
Returns the Y coordinate of this point: >>> OGRGeometry('POINT (1 2)').y
2.0
z
Returns the Z coordinate of this point, or None if the point does not have a Z coordinate: >>> OGRGeometry('POINT (1 2 3)').z
3.0 | |
doc_6734 | See Migration guide for more details. tf.compat.v1.nn.max_pool1d
tf.nn.max_pool1d(
input, ksize, strides, padding, data_format='NWC', name=None
)
Note internally this op reshapes and uses the underlying 2d operation.
Args
input A 3-D Tensor of the format specified by data_format.
ksize An int or l... | |
doc_6735 |
Return the path of the ellipse. | |
doc_6736 |
Rand index. The Rand Index computes a similarity measure between two clusterings by considering all pairs of samples and counting pairs that are assigned in the same or different clusters in the predicted and true clusterings. The raw RI score is: RI = (number of agreeing pairs) / (number of pairs) Read more in the U... | |
doc_6737 | Adds a child module to the current module. The module can be accessed as an attribute using the given name. Parameters
name (string) – name of the child module. The child module can be accessed from this module using the given name
module (Module) – child module to be added to the module. | |
doc_6738 |
Bases: matplotlib.ticker.Formatter Base class for formatting ticks on a log or symlog scale. It may be instantiated directly, or subclassed. Parameters
basefloat, default: 10.
Base of the logarithm used in all calculations.
labelOnlyBasebool, default: False
If True, label ticks only at integer powers of bas... | |
doc_6739 | A QuerySet that represents the objects. If provided, the value of queryset supersedes the value provided for model. Warning queryset is a class attribute with a mutable value so care must be taken when using it directly. Before using it, either call its all() method or retrieve it with get_queryset() which takes care ... | |
doc_6740 | exception py_compile.PyCompileError
Exception raised when an error occurs while attempting to compile the file.
py_compile.compile(file, cfile=None, dfile=None, doraise=False, optimize=-1, invalidation_mode=PycInvalidationMode.TIMESTAMP, quiet=0)
Compile a source file to byte-code and write out the byte-code ca... | |
doc_6741 | Make target a hard link to this path. Warning This function does not make this path a hard link to target, despite the implication of the function and argument names. The argument order (target, link) is the reverse of Path.symlink_to(), but matches that of os.link(). New in version 3.8. | |
doc_6742 | This class has custom assertion methods for inspecting bytecode. | |
doc_6743 | An alternative event loop policy that uses the ProactorEventLoop event loop implementation. Availability: Windows. | |
doc_6744 |
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_6745 |
Alias for get_edgecolor. | |
doc_6746 | bisect.bisect_left(a, x, lo=0, hi=len(a))
Locate the insertion point for x in a to maintain sorted order. The parameters lo and hi may be used to specify a subset of the list which should be considered; by default the entire list is used. If x is already present in a, the insertion point will be before (to the left o... | |
doc_6747 |
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array. | |
doc_6748 |
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters
ccolor or list of colors | |
doc_6749 | A text stream using an in-memory text buffer. It inherits TextIOBase. The text buffer is discarded when the close() method is called. The initial value of the buffer can be set by providing initial_value. If newline translation is enabled, newlines will be encoded as if by write(). The stream is positioned at the start... | |
doc_6750 |
Describes how to quantize a layer or a part of the network by providing settings (observer classes) for activations and weights respectively. Note that QConfig needs to contain observer classes (like MinMaxObserver) or a callable that returns instances on invocation, not the concrete observer instances themselves. Qu... | |
doc_6751 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyRMSProp
tf.raw_ops.ResourceApplyRMSProp(
var, ms, mom, lr, rho, momentum, epsilon, grad, use_locking=False, name=None
)
Note that in dense implementation of this algorithm, ms and mom will update even if the grad is zero, but in this sparse ... | |
doc_6752 | tf.optimizers.Optimizer Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.Optimizer
tf.keras.optimizers.Optimizer(
name, gradient_aggregator=None, gradient_transformers=None, **kwargs
)
You should not use this class directly, but instead instantiate one of its subcl... | |
doc_6753 | Subclass of SubprocessError, raised when a timeout expires while waiting for a child process.
cmd
Command that was used to spawn the child process.
timeout
Timeout in seconds.
output
Output of the child process if it was captured by run() or check_output(). Otherwise, None.
stdout
Alias for output... | |
doc_6754 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_6755 | tf.keras.applications.efficientnet.EfficientNetB3 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.EfficientNetB3, tf.compat.v1.keras.applications.efficientnet.EfficientNetB3
tf.keras.applications.EfficientNetB3(
include_top=True, weights='imagenet', input_tensor=... | |
doc_6756 |
Test whether any array element along a given axis evaluates to True. Refer to numpy.any for full documentation. Parameters
axisint, optional
Axis along which logical OR is performed
outndarray, optional
Output to existing array instead of creating new one, must have same shape as expected output Returns ... | |
doc_6757 |
Compute the minimum and maximum to be used for later scaling. Parameters
Xarray-like of shape (n_samples, n_features)
The data used to compute the per-feature minimum and maximum used for later scaling along the features axis.
yNone
Ignored. Returns
selfobject
Fitted scaler. | |
doc_6758 | tf.compat.v1.lite.experimental.nn.TfLiteRNNCell(
num_units, activation=None, reuse=None, name=None, dtype=None, **kwargs
)
This is used only for TfLite, it provides hints and it also makes the variables in the desired for the tflite ops.
Args
num_units int, The number of units in the RNN cell.
activat... | |
doc_6759 |
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass. | |
doc_6760 | Parse data as JSON. Useful during testing. If the mimetype does not indicate JSON (application/json, see is_json()), this returns None. Unlike Request.get_json(), the result is not cached. Parameters
force (bool) – Ignore the mimetype and always try to parse JSON.
silent (bool) – Silence parsing errors and return ... | |
doc_6761 |
Fit transformer by checking X. If validate is True, X will be checked. Parameters
Xarray-like, shape (n_samples, n_features)
Input array. Returns
self | |
doc_6762 |
Returns perplexity of distribution, batched over batch_shape. Returns
Tensor of shape batch_shape. | |
doc_6763 | Sets the units to None which indicates that the header should no longer be used. | |
doc_6764 | tf.DType Compat aliases for migration See Migration guide for more details. tf.compat.v1.DType, tf.compat.v1.dtypes.DType
tf.dtypes.DType()
The following DType objects are defined:
tf.float16: 16-bit half-precision floating-point.
tf.float32: 32-bit single-precision floating-point.
tf.float64: 64-bit double-prec... | |
doc_6765 | Append a new action at the end. The cmd variable must be a valid bourne shell command. The kind variable consists of two letters. The first letter can be either of '-' (which means the command reads its standard input), 'f' (which means the commands reads a given file on the command line) or '.' (which means the comman... | |
doc_6766 | In-place version of cos() | |
doc_6767 |
Get the properties associated with this pandas object. The available flags are Flags.allows_duplicate_labels See also Flags
Flags that apply to pandas objects. DataFrame.attrs
Global metadata applying to this dataset. Notes “Flags” differ from “metadata”. Flags reflect properties of the pandas object (the S... | |
doc_6768 |
Returns 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
XNone or array-like of shape (n_samples, n_features)
Test samples. Passing None... | |
doc_6769 | If the message is a multipart/alternative, create a new message object, pass all of the arguments to its set_content() method, and attach() it to the multipart. If the message is a non-multipart or multipart/related, call make_alternative() and then proceed as above. If the message is any other type of multipart, raise... | |
doc_6770 | This non-public class is the base class of all fundamental ctypes data types. It is mentioned here because it contains the common attributes of the fundamental ctypes data types. _SimpleCData is a subclass of _CData, so it inherits their methods and attributes. ctypes data types that are not and do not contain pointers... | |
doc_6771 |
Draw samples from a standard Normal distribution (mean=0, stdev=1). Parameters
sizeint or tuple of ints, optional
Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which case a single value is returned.
dtypedtype, optional
Desired dtype of the resul... | |
doc_6772 | Write a string to the standard error stream (sys.stderr). Derived classes should override this to provide the appropriate output handling as needed. | |
doc_6773 | tf.metrics.SparseTopKCategoricalAccuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.SparseTopKCategoricalAccuracy
tf.keras.metrics.SparseTopKCategoricalAccuracy(
k=5, name='sparse_top_k_categorical_accuracy', dtype=None
)
Args
k (Optional) Number of top... | |
doc_6774 |
Class Variables
AREA 'area'
BICUBIC 'bicubic'
BILINEAR 'bilinear'
GAUSSIAN 'gaussian'
LANCZOS3 'lanczos3'
LANCZOS5 'lanczos5'
MITCHELLCUBIC 'mitchellcubic'
NEAREST_NEIGHBOR 'nearest' | |
doc_6775 | A list-like object that is displayed as an HTML <ul class="errorlist"> when printed: >>> data = {'subject': 'hi', 'message': '', 'sender': '', 'cc_myself': ''}
>>> f = ContactForm(data, auto_id=False)
>>> print(f['message'])
<input type="text" name="message" required>
>>> f['message'].errors
['This field is required.']... | |
doc_6776 |
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_6777 | Tries to join one or more processes in this spawn context. If one of them exited with a non-zero exit status, this function kills the remaining processes and raises an exception with the cause of the first process exiting. Returns True if all processes have been joined successfully, False if there are more processes th... | |
doc_6778 | The canonical name of this hash, always lowercase and always suitable as a parameter to new() to create another hash of this type. Changed in version 3.4: The name attribute has been present in CPython since its inception, but until Python 3.4 was not formally specified, so may not exist on some platforms. | |
doc_6779 |
Return a reversed instance of the Colormap. Parameters
namestr, optional
The name for the reversed colormap. If it's None the name will be the name of the parent colormap + "_r". Returns
ListedColormap
A reversed instance of the colormap. | |
doc_6780 |
Other Members
AUTOTUNE -1
INFINITE_CARDINALITY -1
UNKNOWN_CARDINALITY -2 | |
doc_6781 |
Returns the maximum GPU memory occupied by tensors in bytes for a given device. By default, this returns the peak allocated memory since the beginning of this program. reset_peak_stats() can be used to reset the starting point in tracking this metric. For example, these two functions can measure the peak allocated me... | |
doc_6782 |
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array. | |
doc_6783 | tf.image.stateless_sample_distorted_bounding_box(
image_size, bounding_boxes, seed, min_object_covered=0.1,
aspect_ratio_range=None, area_range=None, max_attempts=None,
use_image_if_no_bounding_boxes=None, name=None
)
Bounding box annotations are often supplied in addition to ground-truth labels in image r... | |
doc_6784 | Return a string identifying the specific test case. This is usually the full name of the test method, including the module and class name. | |
doc_6785 | Return non-zero if the mode is from a door. New in version 3.4. | |
doc_6786 | bytearray.rfind(sub[, start[, end]])
Return the highest index in the sequence where the subsequence sub is found, such that sub is contained within s[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure. The subsequence to search for may be any bytes-like object or a... | |
doc_6787 | Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path (if they are supported by the operating system). Note When symbolic link cycles occur, the returned path will be one member of the cycle, but no guarantee is made about which member that will be. Changed in ve... | |
doc_6788 | See Migration guide for more details. tf.compat.v1.keras.layers.Concatenate
tf.keras.layers.Concatenate(
axis=-1, **kwargs
)
It takes as input a list of tensors, all of the same shape except for the concatenation axis, and returns a single tensor that is the concatenation of all inputs.
x = np.arange(20).reshap... | |
doc_6789 | Return the number of the color-pair set by the attribute value attr. color_pair() is the counterpart to this function. | |
doc_6790 |
Return log-probability estimates for the test vector X. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
Carray-like of shape (n_samples, n_classes)
Returns the log-probability of the samples for each class in the model. The columns correspond to the classes in sorted order, as they appear ... | |
doc_6791 | Return a copy (“clone”) of the hmac object. This can be used to efficiently compute the digests of strings that share a common initial substring. | |
doc_6792 | Returns a CPU copy of this storage if it’s not already on the CPU | |
doc_6793 | socket.AF_INET
socket.AF_INET6
These constants represent the address (and protocol) families, used for the first argument to socket(). If the AF_UNIX constant is not defined then this protocol is unsupported. More constants may be available depending on the system. | |
doc_6794 |
Predict using the base regressor, applying inverse. The regressor is used to predict and the inverse_func or inverse_transform is applied before returning the prediction. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Samples. Returns
y_hatndarray of shape (n_samples,)
Predicte... | |
doc_6795 |
A scatter plot of y vs. x with varying marker size and/or color. Parameters
x, yfloat or array-like, shape (n, )
The data positions.
sfloat or array-like, shape (n, ), optional
The marker size in points**2. Default is rcParams['lines.markersize'] ** 2.
carray-like or list of colors or color, optional
Th... | |
doc_6796 | Get current state of a coroutine object. The function is intended to be used with coroutine objects created by async def functions, but will accept any coroutine-like object that has cr_running and cr_frame attributes. Possible states are:
CORO_CREATED: Waiting to start execution. CORO_RUNNING: Currently being execu... | |
doc_6797 |
Set the text alignment for multiline texts. The layout of the bounding box of all the lines is determined by the horizontalalignment and verticalalignment properties. This property controls the alignment of the text lines within that box. Parameters
align{'left', 'right', 'center'} | |
doc_6798 |
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_6799 |
Normalize value data in the [vmin, vmax] interval into the [0.0, 1.0] interval and return it. Parameters
value
Data to normalize.
clipbool
If None, defaults to self.clip (which defaults to False). Notes If not already initialized, self.vmin and self.vmax are initialized using self.autoscale_None(value). |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.