_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_17400 | Returns self with any modifications required to reverse the sort order within an order_by call. As an example, an expression implementing NULLS LAST would change its value to be NULLS FIRST. Modifications are only required for expressions that implement sort order like OrderBy. This method is called when reverse() is c... | |
doc_17401 |
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters
valuesarray
The input v... | |
doc_17402 | tf.compat.v1.image.resize_bilinear(
images, size, align_corners=False, name=None, half_pixel_centers=False
) | |
doc_17403 |
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_17404 |
Reset the active position to the original position. This resets the a possible position change due to aspect constraints. For an explanation of the positions see set_position. | |
doc_17405 | See Migration guide for more details. tf.compat.v1.data.experimental.get_next_as_optional
tf.data.experimental.get_next_as_optional(
iterator
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.data.Iterator.get_next_as_optional() instead. If the iter... | |
doc_17406 |
Save the current figure. | |
doc_17407 | stat.FILE_ATTRIBUTE_COMPRESSED
stat.FILE_ATTRIBUTE_DEVICE
stat.FILE_ATTRIBUTE_DIRECTORY
stat.FILE_ATTRIBUTE_ENCRYPTED
stat.FILE_ATTRIBUTE_HIDDEN
stat.FILE_ATTRIBUTE_INTEGRITY_STREAM
stat.FILE_ATTRIBUTE_NORMAL
stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
stat.FILE_ATTRIBUTE_NO_SCRUB_DATA
stat.FILE_ATTRIBUTE... | |
doc_17408 | Uses get_all_permissions() to check if user_obj has the permission string perm. Returns False if the user is not is_active. | |
doc_17409 | Tries to determine the libc version against which the file executable (defaults to the Python interpreter) is linked. Returns a tuple of strings (lib,
version) which default to the given parameters in case the lookup fails. Note that this function has intimate knowledge of how different libc versions add symbols to the... | |
doc_17410 | Return a list of command line arguments reproducing the current optimization settings in sys.flags. | |
doc_17411 | Filename (str). | |
doc_17412 | See Migration guide for more details. tf.compat.v1.keras.applications.MobileNetV3Small
tf.keras.applications.MobileNetV3Small(
input_shape=None, alpha=1.0, minimalistic=False, include_top=True,
weights='imagenet', input_tensor=None, classes=1000, pooling=None,
dropout_rate=0.2, classifier_activation='soft... | |
doc_17413 |
Return a parametrized wrapper around the ndarray type. New in version 1.22. Returns
aliastypes.GenericAlias
A parametrized ndarray type. See also PEP 585
Type hinting generics in standard collections. numpy.typing.NDArray
An ndarray alias generic w.r.t. its dtype.type. Notes This method is only av... | |
doc_17414 | tail
These attributes can be used to hold additional data associated with the element. Their values are usually strings but may be any application-specific object. If the element is created from an XML file, the text attribute holds either the text between the element’s start tag and its first child or end tag, or No... | |
doc_17415 |
Fit linear model with Stochastic Gradient Descent. Parameters
X{array-like, sparse matrix}, shape (n_samples, n_features)
Training data.
yndarray of shape (n_samples,)
Target values.
coef_initndarray of shape (n_classes, n_features), default=None
The initial coefficients to warm-start the optimization. ... | |
doc_17416 | See Migration guide for more details. tf.compat.v1.raw_ops.CreateSummaryDbWriter
tf.raw_ops.CreateSummaryDbWriter(
writer, db_uri, experiment_name, run_name, user_name, name=None
)
Args
writer A Tensor of type resource.
db_uri A Tensor of type string.
experiment_name A Tensor of type string.... | |
doc_17417 |
New view of array with the same data. Note Passing None for dtype is different from omitting the parameter, since the former invokes dtype(None) which is an alias for dtype('float_'). Parameters
dtypedata-type or ndarray sub-class, optional
Data-type descriptor of the returned view, e.g., float32 or int16. Om... | |
doc_17418 | Marks a function so that an instance of ScriptInfo is passed as first argument to the click callback. Parameters
f (click.decorators.F) – Return type
click.decorators.F | |
doc_17419 | See Migration guide for more details. tf.compat.v1.raw_ops.ScatterMin
tf.raw_ops.ScatterMin(
ref, indices, updates, use_locking=False, name=None
)
This operation computes # Scalar indices
ref[indices, ...] = min(ref[indices, ...], updates[...])
# Vector indices (for each i)
ref[indices[i], ...] = min(ref[indice... | |
doc_17420 |
The language reference for the import statement. Packages specification
Original specification of packages. Some semantics have changed since the writing of this document (e.g. redirecting based on None in sys.modules).
The __import__() function
The import statement is syntactic sugar for this function. PEP 235... | |
doc_17421 | numpy.complex256[source]
Alias for numpy.clongdouble, named after its size in bits. The existence of these aliases depends on the platform. | |
doc_17422 | Return True if the event loop is currently running. | |
doc_17423 |
Compute the phase of the frequency spectrum (unwrapped phase spectrum) of x. Data is padded to a length of pad_to and the windowing function window is applied to the signal. Parameters
x1-D array or sequence
Array or sequence containing the data
Fsfloat, default: 2
The sampling frequency (samples per time u... | |
doc_17424 | This concrete Policy is the backward compatibility policy. It replicates the behavior of the email package in Python 3.2. The policy module also defines an instance of this class, compat32, that is used as the default policy. Thus the default behavior of the email package is to maintain compatibility with Python 3.2. T... | |
doc_17425 | Whether the OpenSSL library has built-in support for the Server Name Indication extension (as defined in RFC 6066). New in version 3.2. | |
doc_17426 |
Replace all uses of self in the Graph with the Node replace_with. Parameters
replace_with (Node) – The node to replace all uses of self with. Returns
The list of Nodes on which this change was made. | |
doc_17427 |
Applies a 1D convolution over a quantized input signal composed of several quantized input planes. For details on input arguments, parameters, and implementation see Conv1d. Note Only zeros is supported for the padding_mode argument. Note Only torch.quint8 is supported for the input data type. Variables
~Conv... | |
doc_17428 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_17429 |
Apply the approximate feature map to X. Parameters
Xarray-like, shape (n_samples, n_features)
New data, where n_samples in the number of samples and n_features is the number of features. All values of X must be strictly greater than “-skewedness”. Returns
X_newarray-like, shape (n_samples, n_components) | |
doc_17430 | tf.keras.metrics.sparse_categorical_crossentropy, tf.losses.sparse_categorical_crossentropy, tf.metrics.sparse_categorical_crossentropy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.sparse_categorical_crossentropy, tf.compat.v1.keras.metrics.sparse_categorical_crossentropy... | |
doc_17431 | Look up the codec for the given encoding and return its incremental encoder class or factory function. Raises a LookupError in case the encoding cannot be found or the codec doesn’t support an incremental encoder. | |
doc_17432 |
Return the width of the rectangle. | |
doc_17433 |
Return the mean absolute deviation of the values over the requested axis. Parameters
axis:{index (0), columns (1)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result.
level:int or level name, default None
If the axis is a MultiIndex (hierar... | |
doc_17434 |
Set device mapping between each RPC caller and callee pair. This function can be called multiple times to incrementally add device placement configurations. Parameters
worker_name (str) – Callee name.
device_map (Dict of python:int, str, or torch.device) – Device placement mappings from this worker to the callee... | |
doc_17435 |
Add observer for the leaf child of the module. This function insert observer module to all leaf child module that has a valid qconfig attribute. Parameters
module – input module with qconfig attributes for all the leaf modules that we want to quantize
device – parent device, if any
non_leaf_module_list – list o... | |
doc_17436 | Registers a forward pre-hook on the module. The hook will be called every time before forward() is invoked. It should have the following signature: hook(module, input) -> None or modified input
The input contains only the positional arguments given to the module. Keyword arguments won’t be passed to the hooks and only... | |
doc_17437 |
Return the indices of the bins to which each value in input array belongs.
right order of bins returned index i satisfies
False increasing bins[i-1] <= x < bins[i]
True increasing bins[i-1] < x <= bins[i]
False decreasing bins[i-1] > x >= bins[i]
True decreasing bins[i-1] >= x > bins[i] If values in x a... | |
doc_17438 |
Input validation on an array, list, sparse matrix or similar. By default, the input is checked to be a non-empty 2D array containing only finite values. If the dtype of the array is object, attempt converting to float, raising on failure. Parameters
arrayobject
Input object to check / convert.
accept_sparsest... | |
doc_17439 | See Migration guide for more details. tf.compat.v1.image.rgb_to_yiq
tf.image.rgb_to_yiq(
images
)
Outputs a tensor of the same shape as the images tensor, containing the YIQ value of the pixels. The output is only well defined if the value in images are in [0,1]. Usage Example:
x = tf.constant([[[1.0, 2.0, 3.0]... | |
doc_17440 |
Return self^value. | |
doc_17441 | Possible value for SSLContext.verify_flags to disable workarounds for broken X.509 certificates. New in version 3.4. | |
doc_17442 |
Return a deepcopy of the Path. The Path will not be readonly, even if the source Path is. | |
doc_17443 | See Migration guide for more details. tf.compat.v1.raw_ops.NcclBroadcast
tf.raw_ops.NcclBroadcast(
input, shape, name=None
)
Sends input to all devices that are connected to the output. The graph should be constructed so that all ops connected to the output have a valid device assignment, and the op itself is as... | |
doc_17444 |
Load and return the diabetes dataset (regression).
Samples total 442
Dimensionality 10
Features real, -.2 < x < .2
Targets integer 25 - 346 Read more in the User Guide. Parameters
return_X_ybool, default=False.
If True, returns (data, target) instead of a Bunch object. See below for more information a... | |
doc_17445 |
Return the least-squares solution to a linear matrix equation. Computes the vector x that approximately solves the equation a @ x = b. The equation may be under-, well-, or over-determined (i.e., the number of linearly independent rows of a can be less than, equal to, or greater than its number of linearly independen... | |
doc_17446 | Path to a custom template that will be used by the admin site login view. | |
doc_17447 | Returns True if the request is secure; that is, if it was made with HTTPS. | |
doc_17448 | The left-hand side - what is being transformed. It must follow the Query Expression API. | |
doc_17449 |
Scalar method identical to the corresponding array attribute. Please see ndarray.nonzero. | |
doc_17450 |
Returns a 1-dimensional view of each input tensor with zero dimensions. Input tensors with one or more dimensions are returned as-is. Parameters
input (Tensor or list of Tensors) – Returns
output (Tensor or tuple of Tensors) Example::
>>> x = torch.randn(2)
>>> x
tensor([1.4584, 0.7583])
>>> torch.atleast_1d... | |
doc_17451 |
Return self%value. | |
doc_17452 | get information about an active finger get_finger(touchid, index) -> int
Parameters:
touchid (int) -- The touch device id.
index (int) -- The index of the finger to return information about, between 0 and the number of active fingers. Return a dict for the finger index active on touchid. The dict contai... | |
doc_17453 |
Python buffer object pointing to the start of the array’s data. | |
doc_17454 | See Migration guide for more details. tf.compat.v1.raw_ops.DeleteSeedGenerator
tf.raw_ops.DeleteSeedGenerator(
handle, deleter, name=None
)
Args
handle A Tensor of type resource.
deleter A Tensor of type variant.
name A name for the operation (optional).
Returns The created Operati... | |
doc_17455 | A subclass of Mailbox for mailboxes in mbox format. Parameter factory is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If factory is None, mboxMessage is used as the default message representation. If create is True, th... | |
doc_17456 | See torch.digamma() | |
doc_17457 |
Take elements from an array. Parameters
indices:sequence of int or one-dimensional np.ndarray of int
Indices to be taken.
allow_fill:bool, default False
How to handle negative values in indices. False: negative values in indices indicate positional indices from the right (the default). This is similar to n... | |
doc_17458 | Returns the next page number. Raises InvalidPage if next page doesn’t exist. | |
doc_17459 |
Predict using the linear model. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
Carray, shape (n_samples,)
Returns predicted values. | |
doc_17460 | A field validator allowing Unicode characters, in addition to @, ., +, -, and _. The default validator for User.username. | |
doc_17461 |
Synonym for DataFrame.fillna() with method='ffill'. Returns
Series/DataFrame or None
Object with missing values filled or None if inplace=True. | |
doc_17462 |
Given the “legs” of a right triangle, return its hypotenuse. Equivalent to sqrt(x1**2 + x2**2), element-wise. If x1 or x2 is scalar_like (i.e., unambiguously cast-able to a scalar type), it is broadcast for use with each element of the other argument. (See Examples) Parameters
x1, x2array_like
Leg of the triang... | |
doc_17463 | Sent when the user failed to login successfully
sender The name of the module used for authentication.
credentials A dictionary of keyword arguments containing the user credentials that were passed to authenticate() or your own custom authentication backend. Credentials matching a set of ‘sensitive’ patterns, (inc... | |
doc_17464 |
Get Floating division of dataframe and other, element-wise (binary operator rtruediv). Equivalent to other / dataframe, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, truediv. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -... | |
doc_17465 |
Like Artist.get_window_extent, but includes any clipping. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns
Bbox
The enclosing bounding box (in figure pixel coordinates). | |
doc_17466 | Returns the number of non-fixed hyperparameters of the kernel. | |
doc_17467 | Read at most buffer_size bytes from the socket’s remote end-point. An empty bytes object implies that the channel has been closed from the other end. Note that recv() may raise BlockingIOError , even though select.select() or select.poll() has reported the socket ready for reading. | |
doc_17468 |
Convert the DataFrame to a dictionary. The type of the key-value pairs can be customized with the parameters (see below). Parameters
orient:str {‘dict’, ‘list’, ‘series’, ‘split’, ‘records’, ‘index’}
Determines the type of the values of the dictionary. ‘dict’ (default) : dict like {column -> {index -> value}} ... | |
doc_17469 | See torch.arcsin() | |
doc_17470 | Decompress data (a bytes-like object), returning uncompressed data as bytes. Some of data may be buffered internally, for use in later calls to decompress(). The returned data should be concatenated with the output of any previous calls to decompress(). If max_length is nonnegative, returns at most max_length bytes of ... | |
doc_17471 |
Generates data for binary classification used in Hastie et al. 2009, Example 10.2. The ten features are standard independent Gaussian and the target y is defined by: y[i] = 1 if np.sum(X[i] ** 2) > 9.34 else -1
Read more in the User Guide. Parameters
n_samplesint, default=12000
The number of samples.
random_... | |
doc_17472 |
[Deprecated] Notes Deprecated since version 3.5: | |
doc_17473 |
Toggle visibility of ticks, ticklabels, and (axis) label. To turn all off, axis.toggle(all=False)
To turn all off but ticks on axis.toggle(all=False, ticks=True)
To turn all on but (axis) label off axis.toggle(all=True, label=False)) | |
doc_17474 | Return a list of the best “good enough” matches. word is a sequence for which close matches are desired (typically a string), and possibilities is a list of sequences against which to match word (typically a list of strings). Optional argument n (default 3) is the maximum number of close matches to return; n must be gr... | |
doc_17475 | cgitb.enable()
The options to the enable() function control whether the report is displayed in the browser and whether the report is logged to a file for later analysis.
cgitb.enable(display=1, logdir=None, context=5, format="html")
This function causes the cgitb module to take over the interpreter’s default handl... | |
doc_17476 |
Return the string path of the configuration directory. The directory is chosen as follows: If the MPLCONFIGDIR environment variable is supplied, choose that. On Linux, follow the XDG specification and look first in $XDG_CONFIG_HOME, if defined, or $HOME/.config. On other platforms, choose $HOME/.matplotlib. If the c... | |
doc_17477 | """
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_17478 |
Tuple of bytes to step in each dimension when traversing an array. The byte offset of element (i[0], i[1], ..., i[n]) in an array a is: offset = sum(np.array(i) * a.strides)
A more detailed explanation of strides can be found in the “ndarray.rst” file in the NumPy reference guide. See also numpy.lib.stride_tricks.... | |
doc_17479 | Creates and returns a tree iterator for the root element. The iterator loops over all elements in this tree, in section order. tag is the tag to look for (default is to return all elements). | |
doc_17480 |
Get parameters for this estimator. 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_17481 |
Find a font that most closely matches the given font properties. Parameters
propstr or FontProperties
The font properties to search for. This can be either a FontProperties object or a string defining a fontconfig patterns.
fontext{'ttf', 'afm'}, default: 'ttf'
The extension of the font file: 'ttf': TrueTy... | |
doc_17482 | Flip tensor in the left/right direction, returning a new tensor. Flip the entries in each row in the left/right direction. Columns are preserved, but appear in a different order than before. Note Requires the tensor to be at least 2-D. Note torch.fliplr makes a copy of input’s data. This is different from NumPy’s np... | |
doc_17483 | A TCP-based distributed key-value store implementation. The server store holds the data, while the client stores can connect to the server store over TCP and perform actions such as set() to insert a key-value pair, get() to retrieve a key-value pair, etc. Parameters
host_name (str) – The hostname or IP Address the... | |
doc_17484 | See Migration guide for more details. tf.compat.v1.raw_ops.SquaredDifference
tf.raw_ops.SquaredDifference(
x, y, name=None
)
Note: math.squared_difference supports broadcasting. More about broadcasting here
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, int32, i... | |
doc_17485 | Annulus(xy, r, width[, angle]) An elliptical annulus.
Arc(xy, width, height[, angle, theta1, theta2]) An elliptical arc, i.e. a segment of an ellipse.
Arrow(x, y, dx, dy[, width]) An arrow patch.
ArrowStyle(stylename, **kw) ArrowStyle is a container class which defines several arrowstyle classes, which is used to... | |
doc_17486 |
kind = 'year' | |
doc_17487 | Trying to access a key that doesn’t exist from request dicts like args and form will return a 400 Bad Request error page. Enable this to treat the error as an unhandled exception instead so that you get the interactive debugger. This is a more specific version of TRAP_HTTP_EXCEPTIONS. If unset, it is enabled in debug m... | |
doc_17488 |
Compute the average Hamming loss. The Hamming loss is the fraction of labels that are incorrectly predicted. Read more in the User Guide. Parameters
y_true1d array-like, or label indicator array / sparse matrix
Ground truth (correct) labels.
y_pred1d array-like, or label indicator array / sparse matrix
Pred... | |
doc_17489 |
Return whether all elements are True, potentially over an axis. Returns True unless there at least one element within a series or along a Dataframe axis that is False or equivalent (e.g. zero or empty). Parameters
axis:{0 or ‘index’, 1 or ‘columns’, None}, default 0
Indicate which axis or axes should be reduced... | |
doc_17490 |
Divide other into self, and return a new masked array. | |
doc_17491 |
Remove a callback based on its observer id. See also add_callback | |
doc_17492 | tf.experimental.numpy.remainder(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.remainder. | |
doc_17493 |
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_17494 | class sklearn.covariance.ShrunkCovariance(*, store_precision=True, assume_centered=False, shrinkage=0.1) [source]
Covariance estimator with shrinkage Read more in the User Guide. Parameters
store_precisionbool, default=True
Specify if the estimated precision is stored
assume_centeredbool, default=False
If T... | |
doc_17495 |
Predict class for X. The predicted class of an input sample is computed as the class with the highest mean predicted probability. If base estimators do not implement a predict_proba method, then it resorts to voting. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input sam... | |
doc_17496 | The sound parameter is a sound association name from the registry. If the registry contains no such name, play the system default sound unless SND_NODEFAULT is also specified. If no default sound is registered, raise RuntimeError. Do not use with SND_FILENAME. All Win32 systems support at least the following; most syst... | |
doc_17497 | Reduces x to its simplest form. | |
doc_17498 | Asynchronously run function func in a separate thread. Any *args and **kwargs supplied for this function are directly passed to func. Also, the current contextvars.Context is propagated, allowing context variables from the event loop thread to be accessed in the separate thread. Return a coroutine that can be awaited t... | |
doc_17499 |
Move the position forward and return the current element. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.