_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_5500 |
Inner product of two arrays. Ordinary inner product of vectors for 1-D arrays (without complex conjugation), in higher dimensions a sum product over the last axes. Parameters
a, barray_like
If a and b are nonscalar, their last dimensions must match. Returns
outndarray
If a and b are both scalars or both... | |
doc_5501 |
Return str(self). | |
doc_5502 |
Return the string representation of this area's text. | |
doc_5503 |
Remove the Axes ax from the figure; update the current Axes. | |
doc_5504 | Enable this if you want to use the X-Sendfile feature. Keep in mind that the server has to support this. This only affects files sent with the send_file() method. Changelog New in version 0.2. This attribute can also be configured from the config with the USE_X_SENDFILE configuration key. Defaults to False. | |
doc_5505 | pygame object for representing 2D bitmasks Mask(size=(width, height)) -> Mask Mask(size=(width, height), fill=False) -> Mask A Mask object is used to represent a 2D bitmask. Each bit in the mask represents a pixel. 1 is used to indicate a set bit and 0 is used to indicate an unset bit. Set bits in a mask can be used ... | |
doc_5506 |
Update this artist's properties from the dict props. Parameters
propsdict | |
doc_5507 |
Create a Cycler object much like cycler.cycler(), but includes input validation. Call signatures: cycler(cycler)
cycler(label=values[, label2=values2[, ...]])
cycler(label, values)
Form 1 copies a given Cycler object. Form 2 creates a Cycler which cycles over one or more properties simultaneously. If multiple proper... | |
doc_5508 | The impurity-based feature importances. The higher, the more important the feature. 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 cardin... | |
doc_5509 |
Returns True if two arrays are element-wise equal within a tolerance. The tolerance values are positive, typically very small numbers. The relative difference (rtol * abs(b)) and the absolute difference atol are added together to compare against the absolute difference between a and b. NaNs are treated as equal if th... | |
doc_5510 |
Find watershed basins in image flooded from given markers. Parameters
imagendarray (2-D, 3-D, …) of integers
Data array where the lowest value points are labeled first.
markersint, or ndarray of int, same shape as image, optional
The desired number of markers, or an array marking the basins with the values ... | |
doc_5511 | The flag is set when the code object is a coroutine function. When the code object is executed it returns a coroutine object. See PEP 492 for more details. New in version 3.5. | |
doc_5512 | Like url_encode() but writes the results to a stream object. If the stream is None a generator over all encoded pairs is returned. Parameters
obj (Union[Mapping[str, str], Iterable[Tuple[str, str]]]) – the object to encode into a query string.
stream (Optional[TextIO]) – a stream to write the encoded object into o... | |
doc_5513 |
Get Floating division of dataframe and other, element-wise (binary operator truediv). Equivalent to dataframe / other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, rtruediv. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -... | |
doc_5514 |
Return the first n rows ordered by columns in ascending order. Return the first n rows with the smallest values in columns, in ascending order. The columns that are not specified are returned as well, but not used for ordering. This method is equivalent to df.sort_values(columns, ascending=True).head(n), but more per... | |
doc_5515 |
Compute Hessian matrix. The Hessian matrix is defined as: H = [Hrr Hrc]
[Hrc Hcc]
which is computed by convolving the image with the second derivatives of the Gaussian kernel in the respective r- and c-directions. Parameters
imagendarray
Input image.
sigmafloat
Standard deviation used for the Gaussian ... | |
doc_5516 | Exponent was lower than Emin prior to rounding. Occurs when an operation result is subnormal (the exponent is too small). If not trapped, returns the result unchanged. | |
doc_5517 |
Split a Bezier curve into two at the intersection with a closed path. Parameters
bezier(N, 2) array-like
Control points of the Bezier segment. See BezierSegment.
inside_closedpathcallable
A function returning True if a given point (x, y) is inside the closed path. See also find_bezier_t_intersecting_with_cl... | |
doc_5518 | The Select widget is a container of button subwidgets. It can be used to provide radio-box or check-box style of selection options for the user. | |
doc_5519 |
Computes the Mean Squared Error between two covariance estimators. (In the sense of the Frobenius norm). Parameters
comp_covarray-like of shape (n_features, n_features)
The covariance to compare with.
norm{“frobenius”, “spectral”}, default=”frobenius”
The type of norm used to compute the error. Available er... | |
doc_5520 | ccompiler
ccompiler_opt Provides the CCompilerOpt class, used for handling the CPU/hardware optimization, starting from parsing the command arguments, to managing the relation between the CPU baseline and dispatch-able features, also generating the required C headers and ending with compiling the sources with proper... | |
doc_5521 | Return the value of the least significant bit of the float x: If x is a NaN (not a number), return x. If x is negative, return ulp(-x). If x is a positive infinity, return x. If x is equal to zero, return the smallest positive denormalized representable float (smaller than the minimum positive normalized float, sys.fl... | |
doc_5522 | Maximum number of frames stored in the traceback of traces: result of the get_traceback_limit() when the snapshot was taken. | |
doc_5523 | Keep a database of (realm, uri) -> (user, password) mappings. A realm of None is considered a catch-all realm, which is searched if no other realm fits. | |
doc_5524 |
Return the group id. | |
doc_5525 | If set to true then local variables will be shown in tracebacks. New in version 3.5. | |
doc_5526 |
Return the url. | |
doc_5527 | Safely join zero or more untrusted path components to a base directory to avoid escaping the base directory. Parameters
directory (str) – The trusted base directory.
pathnames (str) – The untrusted path components relative to the base directory. Returns
A safe path, otherwise None. Return type
Optional[str] | |
doc_5528 | See Migration guide for more details. tf.compat.v1.raw_ops.GenerateVocabRemapping
tf.raw_ops.GenerateVocabRemapping(
new_vocab_file, old_vocab_file, new_vocab_offset, num_new_vocab,
old_vocab_size=-1, name=None
)
length num_new_vocab, where remapping[i] contains the row number in the old vocabulary that corr... | |
doc_5529 |
Return True if given object is boolean. Returns
bool | |
doc_5530 | operator.__ior__(a, b)
a = ior(a, b) is equivalent to a |= b. | |
doc_5531 | Return a context manager that closes thing upon completion of the block. This is basically equivalent to: from contextlib import contextmanager
@contextmanager
def closing(thing):
try:
yield thing
finally:
thing.close()
And lets you write code like this: from contextlib import closing
from url... | |
doc_5532 |
Set the font size. Parameters
fontsizefloat or {'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'}
If float, the fontsize in points. The string values denote sizes relative to the default font size. See also font_manager.FontProperties.set_size | |
doc_5533 |
Set the artist's clip path. Parameters
pathPatch or Path or TransformedPath or None
The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed.
transformTransform, optional
Only used if path is a Path, in which case the given Path is converted to a Tra... | |
doc_5534 | Specifies the Content-Type HTTP header of error responses sent to the client. The default value is 'text/html'. | |
doc_5535 |
Set the text values of the tick labels. Discouraged The use of this method is discouraged, because of the dependency on tick positions. In most cases, you'll want to use set_[x/y]ticks(positions, labels) instead. If you are using this method, you should always fix the tick positions before, e.g. by using Axis.set_ti... | |
doc_5536 | sklearn.neighbors.radius_neighbors_graph(X, radius, *, mode='connectivity', metric='minkowski', p=2, metric_params=None, include_self=False, n_jobs=None) [source]
Computes the (weighted) graph of Neighbors for points in X Neighborhoods are restricted the points at a distance lower than radius. Read more in the User G... | |
doc_5537 | Compares two values numerically and returns the maximum. | |
doc_5538 |
[Deprecated] Import a Python module from a path, and run the function given by name, if function_name is not None. Notes Deprecated since version 3.5. | |
doc_5539 | bytearray.join(iterable)
Return a bytes or bytearray object which is the concatenation of the binary data sequences in iterable. A TypeError will be raised if there are any values in iterable that are not bytes-like objects, including str objects. The separator between elements is the contents of the bytes or bytearr... | |
doc_5540 | Load a private key and the corresponding certificate. The certfile string must be the path to a single file in PEM format containing the certificate as well as any number of CA certificates needed to establish the certificate’s authenticity. The keyfile string, if present, must point to a file containing the private ke... | |
doc_5541 | get the rectangular area of the Surface get_rect(**kwargs) -> Rect Returns a new rectangle covering the entire surface. This rectangle will always start at (0, 0) with a width and height the same size as the image. You can pass keyword argument values to this function. These named values will be applied to the attrib... | |
doc_5542 |
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned. | |
doc_5543 | Returns the minimum number of inline forms to use. By default, returns the InlineModelAdmin.min_num attribute. Override this method to programmatically determine the minimum number of inline forms. For example, this may be based on the model instance (passed as the keyword argument obj). | |
doc_5544 |
alias of matplotlib.backends.backend_webagg.FigureCanvasWebAgg | |
doc_5545 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_5546 |
Compute eigenvalues of Hessian matrix. Parameters
H_elemslist of ndarray
The upper-diagonal elements of the Hessian matrix, as returned by hessian_matrix. Returns
eigsndarray
The eigenvalues of the Hessian matrix, in decreasing order. The eigenvalues are the leading dimension. That is, eigs[i, j, k] con... | |
doc_5547 |
Return z string formatted. This function will use the fmt_zdata attribute if it is callable, else will fall back on the zaxis major formatter | |
doc_5548 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_5549 | os.spawnle(mode, path, ..., env)
os.spawnlp(mode, file, ...)
os.spawnlpe(mode, file, ..., env)
os.spawnv(mode, path, args)
os.spawnve(mode, path, args, env)
os.spawnvp(mode, file, args)
os.spawnvpe(mode, file, args, env)
Execute the program path in a new process. (Note that the subprocess module provides ... | |
doc_5550 | Returns a new instance of the NullHandler class.
emit(record)
This method does nothing.
handle(record)
This method does nothing.
createLock()
This method returns None for the lock, since there is no underlying I/O to which access needs to be serialized. | |
doc_5551 | See Migration guide for more details. tf.compat.v1.tpu.experimental.embedding.Adam
tf.tpu.experimental.embedding.Adam(
learning_rate: Union[float, Callable[[], float]] = 0.001,
beta_1: float = 0.9,
beta_2: float = 0.999,
epsilon: float = 1e-07,
lazy_adam: bool = True,
sum_inside_sqrt: bool = T... | |
doc_5552 | A Balloon that pops up over a widget to provide help. When the user moves the cursor inside a widget to which a Balloon widget has been bound, a small pop-up window with a descriptive message will be shown on the screen. | |
doc_5553 | A dictionary mapping XHTML 1.0 entity definitions to their replacement text in ISO Latin-1. | |
doc_5554 |
Return a new dtype with a different byte order. Changes are also made in all fields and sub-arrays of the data type. The new_order code can be any from the following: ‘S’ - swap dtype from current to opposite endian {‘<’, ‘little’} - little endian {‘>’, ‘big’} - big endian {‘=’, ‘native’} - native order {‘|’, ‘I’} -... | |
doc_5555 | See Migration guide for more details. tf.compat.v1.raw_ops.Sign
tf.raw_ops.Sign(
x, name=None
)
y = sign(x) = -1 if x < 0; 0 if x == 0; 1 if x > 0. For complex numbers, y = sign(x) = x / |x| if x != 0, otherwise y = 0. Example usage:
tf.math.sign([0., 2., -3.])
<tf.Tensor: shape=(3,), dtype=float32, numpy=array... | |
doc_5556 |
Autoscale the scalar limits on the norm instance using the current array | |
doc_5557 | An operation was requested that requires DTD support to be compiled in, but Expat was configured without DTD support. This should never be reported by a standard build of the xml.parsers.expat module. | |
doc_5558 |
Return matrix rank of array using SVD method Rank of the array is the number of singular values of the array that are greater than tol. Changed in version 1.14: Can now operate on stacks of matrices Parameters
A{(M,), (…, M, N)} array_like
Input vector or stack of matrices.
tol(…) array_like, float, optiona... | |
doc_5559 | tf.reverse_sequence(
input, seq_lengths, seq_axis=None, batch_axis=None, name=None
)
This op first slices input along the dimension batch_axis, and for each slice i, reverses the first seq_lengths[i] elements along the dimension seq_axis. The elements of seq_lengths must obey seq_lengths[i] <= input.dims[seq_axis]... | |
doc_5560 | New in version 3.4. List of directories ignored by dircmp by default. | |
doc_5561 |
Relabel arbitrary labels to {offset, … offset + number_of_labels}. This function also returns the forward map (mapping the original labels to the reduced labels) and the inverse map (mapping the reduced labels back to the original ones). Parameters
label_fieldnumpy array of int, arbitrary shape
An array of labe... | |
doc_5562 | See Migration guide for more details. tf.compat.v1.raw_ops.LookupTableImportV2
tf.raw_ops.LookupTableImportV2(
table_handle, keys, values, name=None
)
The tensor keys must be of the same type as the keys of the table. The tensor values must be of the type of the table values.
Args
table_handle A Tensor ... | |
doc_5563 |
Execute a get_attr node. In Transformer, this is overridden to insert a new get_attr node into the output graph. Parameters
target (Target) – The call target for this node. See Node for details on semantics
args (Tuple) – Tuple of positional args for this invocation
kwargs (Dict) – Dict of keyword arguments for... | |
doc_5564 | sys.__displayhook__
sys.__excepthook__
sys.__unraisablehook__
These objects contain the original values of breakpointhook, displayhook, excepthook, and unraisablehook at the start of the program. They are saved so that breakpointhook, displayhook and excepthook, unraisablehook can be restored in case they happen ... | |
doc_5565 | See Migration guide for more details. tf.compat.v1.raw_ops.LogicalNot
tf.raw_ops.LogicalNot(
x, name=None
)
Example:
tf.math.logical_not(tf.constant([True, False]))
<tf.Tensor: shape=(2,), dtype=bool, numpy=array([False, True])>
Args
x A Tensor of type bool. A Tensor of type bool.
name A name f... | |
doc_5566 |
Stack arrays in sequence horizontally (column wise). This is equivalent to concatenation along the second axis, except for 1-D arrays where it concatenates along the first axis. Rebuilds arrays divided by hsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a he... | |
doc_5567 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_5568 | A human readable string of the verification error. | |
doc_5569 | See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingProximalYogiParametersGradAccumDebug
tf.raw_ops.LoadTPUEmbeddingProximalYogiParametersGradAccumDebug(
parameters, v, m, gradient_accumulators, num_shards, shard_id, table_id=-1,
table_name='', config='', name=None
)
Args
parame... | |
doc_5570 | Windows only: set the current value of the ctypes-private copy of the system LastError variable in the calling thread to value and return the previous value. Raises an auditing event ctypes.set_last_error with argument error. | |
doc_5571 |
Return the sketch parameters for the artist. Returns
tuple or None
A 3-tuple with the following elements:
scale: The amplitude of the wiggle perpendicular to the source line.
length: The length of the wiggle along the line.
randomness: The scale factor by which the length is shrunken or expanded. Returns Non... | |
doc_5572 | Like dict.items(), except this uses the same last-value logic as __getitem__() and returns an iterator object instead of a view object. For example: >>> q = QueryDict('a=1&a=2&a=3')
>>> list(q.items())
[('a', '3')] | |
doc_5573 | Compile several source files. The files named in args (or on the command line, if args is None) are compiled and the resulting byte-code is cached in the normal manner. This function does not search a directory structure to locate source files; it only compiles files named explicitly. If '-' is the only parameter in ar... | |
doc_5574 | class socketserver.UnixDatagramServer(server_address, RequestHandlerClass, bind_and_activate=True)
These more infrequently used classes are similar to the TCP and UDP classes, but use Unix domain sockets; they’re not available on non-Unix platforms. The parameters are the same as for TCPServer. | |
doc_5575 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseAddGrad
tf.raw_ops.SparseAddGrad(
backprop_val_grad, a_indices, b_indices, sum_indices, name=None
)
The SparseAdd op calculates A + B, where A, B, and the sum are all represented as SparseTensor objects. This op takes in the upstream gradient w.r.t... | |
doc_5576 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchFunction
tf.raw_ops.BatchFunction(
in_tensors, captured_tensors, f, num_batch_threads, max_batch_size,
batch_timeout_micros, Tout, max_enqueued_batches=10, allowed_batch_sizes=[],
container='', shared_name='', batching_queue='',
enable_la... | |
doc_5577 |
Split the string at the last occurrence of sep. This method splits the string at the last occurrence of sep, and returns 3 elements containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return 3 elements containing two empty strings, followed ... | |
doc_5578 | Returns True if x is canonical; otherwise returns False. | |
doc_5579 |
Perform spectral clustering from features, or affinity matrix. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features), or array-like of shape (n_samples, n_samples)
Training instances to cluster, or similarities / affinities between instances if affinity='precomputed'. If a sparse matrix is pr... | |
doc_5580 |
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with outward square brackets at both ends. Parameters
widthA, widthBfloat, default: 1.0
Width of the bracket.
lengthA, lengthBfloat, default: 0.2
Length of the bracket.
angleA, angleBfloat, default: 0 degrees
Orientation of the bracket, as a countercl... | |
doc_5581 |
Return the height ratios. This is None if no height ratios have been set explicitly. | |
doc_5582 |
Explained variance regression score function. Best possible score is 1.0, lower values are worse. 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_predarray-like of shape (n_samples,) or (n_samples, n_outputs)
Es... | |
doc_5583 |
Fit the SelectFromModel meta-transformer only once. Parameters
Xarray-like of shape (n_samples, n_features)
The training input samples.
yarray-like of shape (n_samples,), default=None
The target values (integers that correspond to classes in classification, real numbers in regression).
**fit_paramsOther e... | |
doc_5584 | tf.keras.applications.resnet50.preprocess_input Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.resnet.preprocess_input, tf.compat.v1.keras.applications.resnet50.preprocess_input
tf.keras.applications.resnet.preprocess_input(
x, data_format=None
)
Usage example ... | |
doc_5585 |
Generates a random sample from a given 1-D array New in version 1.7.0. Note New code should use the choice method of a default_rng() instance instead; please see the Quick Start. Parameters
a1-D array-like or int
If an ndarray, a random sample is generated from its elements. If an int, the random sample is ... | |
doc_5586 |
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_5587 |
Set the number of minor ticks to label when some minor ticks are labelled. Parameters
minor_numberint
Number of ticks which are labelled when the number of ticks is below the threshold. | |
doc_5588 | See Migration guide for more details. tf.compat.v1.raw_ops.HashTableV2
tf.raw_ops.HashTableV2(
key_dtype, value_dtype, container='', shared_name='',
use_node_name_sharing=False, name=None
)
This op creates a hash table, specifying the type of its keys and values. Before using the table you will have to initi... | |
doc_5589 |
Enable or disable mouse dragging support of the legend. Parameters
statebool
Whether mouse dragging is enabled.
use_blitbool, optional
Use blitting for faster image composition. For details see FuncAnimation.
update{'loc', 'bbox'}, optional
The legend parameter to be changed when dragged: 'loc': update... | |
doc_5590 |
Get all windows of x with length n as a single array, using strides to avoid data duplication. Warning It is not safe to write to the output array. Multiple elements may point to the same piece of memory, so modifying one value may change others. Parameters
x1D array or sequence
Array or sequence containing t... | |
doc_5591 | Performs a matrix-vector product of the matrix input and the vector vec. If input is a (n×m)(n \times m) tensor, vec is a 1-D tensor of size mm , out will be 1-D of size nn . Note This function does not broadcast. Parameters
input (Tensor) – matrix to be multiplied
vec (Tensor) – vector to be multiplied Keywo... | |
doc_5592 |
Disconnect the callback with id cid. Examples cid = canvas.mpl_connect('button_press_event', on_press)
# ... later
canvas.mpl_disconnect(cid) | |
doc_5593 | This factory function creates and returns a new ctypes pointer type. Pointer types are cached and reused internally, so calling this function repeatedly is cheap. type must be a ctypes type. | |
doc_5594 | See torch.cholesky_solve() | |
doc_5595 | The typecode character used to create the array. | |
doc_5596 |
Add a set of subplots to this figure. This utility wrapper makes it convenient to create common layouts of subplots in a single call. Parameters
nrows, ncolsint, default: 1
Number of rows/columns of the subplot grid.
sharex, shareybool or {'none', 'all', 'row', 'col'}, default: False
Controls sharing of x-a... | |
doc_5597 | Outputs the record to the file, catering for rollover as described above. | |
doc_5598 | tf.acosh Compat aliases for migration See Migration guide for more details. tf.compat.v1.acosh, tf.compat.v1.math.acosh
tf.math.acosh(
x, name=None
)
Given an input tensor, the function computes inverse hyperbolic cosine of every element. Input range is [1, inf]. It returns nan if the input lies outside the rang... | |
doc_5599 | Test that sequence first contains the same elements as second, regardless of their order. When they don’t, an error message listing the differences between the sequences will be generated. Duplicate elements are not ignored when comparing first and second. It verifies whether each element has the same count in both seq... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.