_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_3500 | A generic version of collections.abc.ItemsView. Deprecated since version 3.9: collections.abc.ItemsView now supports []. See PEP 585 and Generic Alias Type. | |
doc_3501 | Return a str containing the entire contents of the buffer. Newlines are decoded as if by read(), although the stream position is not changed. | |
doc_3502 |
Given the location and size of the box, return the path of the box around it. Parameters
x0, y0, width, heightfloat
Location and size of the box.
mutation_sizefloat
A reference scale for the mutation. Returns
Path | |
doc_3503 |
Evaluate a 2-D Hermite series on the Cartesian product of x and y. This function returns the values: \[p(a,b) = \sum_{i,j} c_{i,j} * H_i(a) * H_j(b)\] where the points (a, b) consist of all pairs formed by taking a from x and b from y. The resulting points form a grid with x in the first dimension and y in the secon... | |
doc_3504 | Raised when a future is cancelled. | |
doc_3505 | tf.nn.space_to_batch
tf.space_to_batch(
input, block_shape, paddings, name=None
)
This operation divides "spatial" dimensions [1, ..., M] of the input into a grid of blocks of shape block_shape, and interleaves these blocks with the "batch" dimension (0) such that in the output, the spatial dimensions [1, ..., M... | |
doc_3506 |
Configure the ScalarFormatter used by default for linear axes. If a parameter is not set, the corresponding property of the formatter is left unchanged. Parameters
axis{'x', 'y', 'both'}, default: 'both'
The axis to configure. Only major ticks are affected.
style{'sci', 'scientific', 'plain'}
Whether to use... | |
doc_3507 | SimpleTestCase.assertWarnsMessage(expected_warning, expected_message)
Analogous to SimpleTestCase.assertRaisesMessage() but for assertWarnsRegex() instead of assertRaisesRegex(). | |
doc_3508 | Should be called after a request is sent to get the response from the server. Returns an HTTPResponse instance. Note Note that you must have read the whole response before you can send a new request to the server. Changed in version 3.5: If a ConnectionError or subclass is raised, the HTTPConnection object will be r... | |
doc_3509 | This is the main callback interface in SAX, and the one most important to applications. The order of events in this interface mirrors the order of the information in the document. | |
doc_3510 | Returns the best match from a list of possible matches based on the specificity and quality of the client. If two items have the same quality and specificity, the one is returned that comes first. Parameters
matches – a list of matches to check for
default – the value that is returned if none match | |
doc_3511 |
alias of numpy.bool_ | |
doc_3512 |
Return the artist's zorder. | |
doc_3513 | Return a copy of the string with trailing characters removed. The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to removing whitespace. The chars argument is not a suffix; rather, all combinations of its values are stripped: >>> ' spacious ... | |
doc_3514 |
Black and white silhouette of a horse. This image was downloaded from openclipart No copyright restrictions. CC0 given by owner (Andreas Preuss (marauder)). Returns
horse(328, 400) bool ndarray
Horse image. | |
doc_3515 |
Return self<value. | |
doc_3516 | os.O_DIRECT
os.O_DIRECTORY
os.O_NOFOLLOW
os.O_NOATIME
os.O_PATH
os.O_TMPFILE
os.O_SHLOCK
os.O_EXLOCK
The above constants are extensions and not present if they are not defined by the C library. Changed in version 3.4: Add O_PATH on systems that support it. Add O_TMPFILE, only available on Linux Kernel ... | |
doc_3517 | bytearray.zfill(width)
Return a copy of the sequence left filled with ASCII b'0' digits to make a sequence of length width. A leading sign prefix (b'+'/ b'-') is handled by inserting the padding after the sign character rather than before. For bytes objects, the original sequence is returned if width is less than or ... | |
doc_3518 |
Compute minimum distances between one point and a set of points. This function computes for each row in X, the index of the row of Y which is closest (according to the specified distance). This is mostly equivalent to calling: pairwise_distances(X, Y=Y, metric=metric).argmin(axis=axis) but uses much less memory, and ... | |
doc_3519 |
Hermite series whose graph is a straight line. Parameters
off, sclscalars
The specified line is given by off + scl*x. Returns
yndarray
This module’s representation of the Hermite series for off + scl*x. See also numpy.polynomial.polynomial.polyline
numpy.polynomial.chebyshev.chebline
numpy.polynom... | |
doc_3520 |
Set the missing data representation on a Styler. New in version 1.0.0. Deprecated since version 1.3.0. Parameters
na_rep:str
Returns
self:Styler
Notes This method is deprecated. See Styler.format() | |
doc_3521 |
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_3522 |
Return the product 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 (hierarchical), count a... | |
doc_3523 |
Returns the lowest common multiple of |x1| and |x2| Parameters
x1, x2array_like, int
Arrays of values. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). Returns
yndarray or scalar
The lowest common multiple of the absolute value of the inputs ... | |
doc_3524 | Returns total time spent on CPU obtained as a sum of all self times across all the events. | |
doc_3525 |
Returns the random number generator state of the specified GPU as a ByteTensor. Parameters
device (torch.device or int, optional) – The device to return the RNG state of. Default: 'cuda' (i.e., torch.device('cuda'), the current CUDA device). Warning This function eagerly initializes CUDA. | |
doc_3526 |
class Author(models.Model):
name = models.CharField(max_length=100)
age = models.IntegerField()
class Publisher(models.Model):
name = models.CharField(max_length=300)
class Book(models.Model):
name = models.CharField(max_length=300)
pages = models.IntegerField()
price = models.DecimalField(ma... | |
doc_3527 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_3528 | Decode a JSON document from s (a str beginning with a JSON document) and return a 2-tuple of the Python representation and the index in s where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. | |
doc_3529 |
Construct an array from an index array and a list of arrays to choose from. First of all, if confused or uncertain, definitely look at the Examples - in its full generality, this function is less simple than it might seem from the following code description (below ndi = numpy.lib.index_tricks): np.choose(a,c) == np.a... | |
doc_3530 | Frame of a traceback. The Traceback class is a sequence of Frame instances.
filename
Filename (str).
lineno
Line number (int). | |
doc_3531 | class BaseFormSet
A formset is a layer of abstraction to work with multiple forms on the same page. It can be best compared to a data grid. Let’s say you have the following form: >>> from django import forms
>>> class ArticleForm(forms.Form):
... title = forms.CharField()
... pub_date = forms.DateField()
You... | |
doc_3532 |
Bases: matplotlib.dates.DateConverter axisinfo(unit, axis)[source]
Return the AxisInfo for unit. unit is a tzinfo instance or None. The axis argument is required but not used. | |
doc_3533 | Return whether the thread is alive. This method returns True just before the run() method starts until just after the run() method terminates. The module function enumerate() returns a list of all alive threads. | |
doc_3534 |
Return the minimum along a given axis. Parameters
axis{None, int}, optional
Axis along which to operate. By default, axis is None and the flattened input is used.
outarray_like, optional
Alternative output array in which to place the result. Must be of the same shape and buffer length as the expected output... | |
doc_3535 | Size in bytes of a plain file; amount of data waiting on some special files. | |
doc_3536 | decode
The stateless encoding and decoding functions. These must be functions or methods which have the same interface as the encode() and decode() methods of Codec instances (see Codec Interface). The functions or methods are expected to work in a stateless mode. | |
doc_3537 |
Set the artist's clip Bbox. Parameters
clipboxBbox | |
doc_3538 | Holds the path to the instance folder. Changelog New in version 0.8. | |
doc_3539 | Similar to border(), but both ls and rs are vertch and both ts and bs are horch. The default corner characters are always used by this function. | |
doc_3540 | mmap.MADV_RANDOM
mmap.MADV_SEQUENTIAL
mmap.MADV_WILLNEED
mmap.MADV_DONTNEED
mmap.MADV_REMOVE
mmap.MADV_DONTFORK
mmap.MADV_DOFORK
mmap.MADV_HWPOISON
mmap.MADV_MERGEABLE
mmap.MADV_UNMERGEABLE
mmap.MADV_SOFT_OFFLINE
mmap.MADV_HUGEPAGE
mmap.MADV_NOHUGEPAGE
mmap.MADV_DONTDUMP
mmap.MADV_DODUMP
m... | |
doc_3541 | class sklearn.model_selection.RepeatedStratifiedKFold(*, n_splits=5, n_repeats=10, random_state=None) [source]
Repeated Stratified K-Fold cross validator. Repeats Stratified K-Fold n times with different randomization in each repetition. Read more in the User Guide. Parameters
n_splitsint, default=5
Number of f... | |
doc_3542 | Unpack from buffer starting at position offset, according to the format string format. The result is a tuple even if it contains exactly one item. The buffer’s size in bytes, starting at position offset, must be at least the size required by the format, as reflected by calcsize(). | |
doc_3543 | The scheduling priority for a scheduling policy. | |
doc_3544 |
Dictionary of named fields defined for this data type, or None. The dictionary is indexed by keys that are the names of the fields. Each entry in the dictionary is a tuple fully describing the field: (dtype, offset[, title])
Offset is limited to C int, which is signed and usually 32 bits. If present, the optional ti... | |
doc_3545 | bytearray.split(sep=None, maxsplit=-1)
Split the binary sequence into subsequences of the same type, using sep as the delimiter string. If maxsplit is given and non-negative, at most maxsplit splits are done (thus, the list will have at most maxsplit+1 elements). If maxsplit is not specified or is -1, then there is n... | |
doc_3546 | os.CLD_KILLED
os.CLD_DUMPED
os.CLD_TRAPPED
os.CLD_STOPPED
os.CLD_CONTINUED
These are the possible values for si_code in the result returned by waitid(). Availability: Unix. New in version 3.3. Changed in version 3.9: Added CLD_KILLED and CLD_STOPPED values. | |
doc_3547 | Split the argument into words using str.split(), capitalize each word using str.capitalize(), and join the capitalized words using str.join(). If the optional second argument sep is absent or None, runs of whitespace characters are replaced by a single space and leading and trailing whitespace are removed, otherwise se... | |
doc_3548 | tf.experimental.numpy.atleast_1d(
*arys
)
See the NumPy documentation for numpy.atleast_1d. | |
doc_3549 | Packs a variable length opaque data string, similarly to pack_string(). | |
doc_3550 |
Find the horizontal 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_3551 | sklearn.metrics.normalized_mutual_info_score(labels_true, labels_pred, *, average_method='arithmetic') [source]
Normalized Mutual Information between two clusterings. Normalized Mutual Information (NMI) is a normalization of the Mutual Information (MI) score to scale the results between 0 (no mutual information) and ... | |
doc_3552 |
Return the C++ compiler. Parameters
None
Returns
cxxclass instance
The C++ compiler, as a CCompiler instance. | |
doc_3553 |
Return the list of Line2Ds in the legend. | |
doc_3554 |
Return whether the artist is animated. | |
doc_3555 | See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.tf_stack.StackTraceTransform Methods reset View source
reset()
__enter__ View source
__enter__()
__exit__ View source
__exit__(
unused_type, unused_value, unused_traceback
) | |
doc_3556 | Floating-point positive infinity. Equivalent to float('inf'). New in version 3.6. | |
doc_3557 | tf.floor Compat aliases for migration See Migration guide for more details. tf.compat.v1.floor, tf.compat.v1.math.floor
tf.math.floor(
x, name=None
)
Both input range is (-inf, inf) and the ouput range consists of all integer values. For example:
x = tf.constant([1.3324, -1.5, 5.555, -2.532, 0.99, float("inf")]... | |
doc_3558 |
Generate a hexagonal binning plot. Generate a hexagonal binning plot of x versus y. If C is None (the default), this is a histogram of the number of occurrences of the observations at (x[i], y[i]). If C is specified, specifies values at given coordinates (x[i], y[i]). These values are accumulated for each hexagonal b... | |
doc_3559 | See torch.ldexp() | |
doc_3560 | See Migration guide for more details. tf.compat.v1.keras.applications.xception.preprocess_input
tf.keras.applications.xception.preprocess_input(
x, data_format=None
)
Usage example with applications.MobileNet: i = tf.keras.layers.Input([None, None, 3], dtype = tf.uint8)
x = tf.cast(i, tf.float32)
x = tf.keras.ap... | |
doc_3561 | Clear the auth info and enable digest auth. | |
doc_3562 | tf.experimental.numpy.float_
tf.experimental.numpy.float64(
*args, **kwargs
)
and C double. Character code: 'd'. Canonical name: np.double. Alias: np.float_. Alias on this platform: np.float64: 64-bit precision floating-point number type: sign bit, 11 bits exponent, 52 bits mantissa. Methods all
all()
Not impl... | |
doc_3563 | sklearn.utils.sparsefuncs.inplace_swap_column(X, m, n) [source]
Swaps two columns of a CSC/CSR matrix in-place. Parameters
Xsparse matrix of shape (n_samples, n_features)
Matrix whose two columns are to be swapped. It should be of CSR or CSC format.
mint
Index of the column of X to be swapped.
nint
Inde... | |
doc_3564 |
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_3565 | Return True if the queue is empty, False otherwise. If empty() returns False it doesn’t guarantee that a subsequent call to get() will not block. | |
doc_3566 |
Return the mutated path of the rectangle. | |
doc_3567 | This is an optional argument which validates that the array does not exceed the stated length. | |
doc_3568 |
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_3569 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayWriteV3
tf.raw_ops.TensorArrayWriteV3(
handle, index, value, flow_in, name=None
)
Args
handle A Tensor of type resource. The handle to a TensorArray.
index A Tensor of type int32. The position to write to inside the TensorArray.... | |
doc_3570 | Change the root directory of the current process to path. Availability: Unix. Changed in version 3.6: Accepts a path-like object. | |
doc_3571 |
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 unknown
animated bool
antialiased or aa or antialiaseds bool or list of bools
array array-like or None
c... | |
doc_3572 | skimage.future.fit_segmenter(labels, …) Segmentation using labeled parts of the image and a classifier.
skimage.future.manual_lasso_segmentation(image) Return a label image based on freeform selections made with the mouse.
skimage.future.manual_polygon_segmentation(image) Return a label image based on polygon selec... | |
doc_3573 |
Return the picking behavior of the artist. The possible values are described in set_picker. See also
set_picker, pickable, pick | |
doc_3574 |
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju... | |
doc_3575 |
Find the duplicates in a structured array along a given key Parameters
aarray-like
Input array
key{string, None}, optional
Name of the fields along which to check the duplicates. If None, the search is performed by records
ignoremask{True, False}, optional
Whether masked data should be discarded or cons... | |
doc_3576 | alias of werkzeug.datastructures.ImmutableMultiDict | |
doc_3577 | Sets a test cookie to determine whether the user’s browser supports cookies. Due to the way cookies work, you won’t be able to test this until the user’s next page request. See Setting test cookies below for more information. | |
doc_3578 |
Return an instance of a GraphicsContextBase. | |
doc_3579 | tf.keras.metrics.squared_hinge, tf.losses.squared_hinge, tf.metrics.squared_hinge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.squared_hinge, tf.compat.v1.keras.metrics.squared_hinge
tf.keras.losses.squared_hinge(
y_true, y_pred
)
loss = mean(square(maximum(1 - y_t... | |
doc_3580 | Remove all entity headers from a list or Headers object. This operation works in-place. Expires and Content-Location headers are by default not removed. The reason for this is RFC 2616 section 10.3.5 which specifies some entity headers that should be sent. Changelog Changed in version 0.5: added allowed parameter. P... | |
doc_3581 | Return the time of last modification of path. The return value is a floating point number giving the number of seconds since the epoch (see the time module). Raise OSError if the file does not exist or is inaccessible. Changed in version 3.6: Accepts a path-like object. | |
doc_3582 |
Function that computes the dot product between the Jacobian of the given function at the point given by the inputs and a vector v. Parameters
func (function) – a Python function that takes Tensor inputs and returns a tuple of Tensors or a Tensor.
inputs (tuple of Tensors or Tensor) – inputs to the function func.... | |
doc_3583 |
Alias for get_edgecolor. | |
doc_3584 |
Reduce X to the selected features. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
X_rarray of shape [n_samples, n_selected_features]
The input samples with only the selected features. | |
doc_3585 |
Set the Figure instance the artist belongs to. Parameters
figFigure | |
doc_3586 |
Return the Bbox. | |
doc_3587 |
Attributes
any_info Any any_info
function_aliases repeated FunctionAliasesEntry function_aliases
meta_graph_version string meta_graph_version
stripped_default_attrs bool stripped_default_attrs
stripped_op_list OpList stripped_op_list
tags repeated string tags
tensorflow_git_ve... | |
doc_3588 |
Dictionary of global attributes of this dataset. Warning attrs is experimental and may change without warning. See also DataFrame.flags
Global flags applying to this object. | |
doc_3589 | inline and attachment are the only valid values in common use. | |
doc_3590 |
Check if an object is a pandas extension array type. See the Use Guide for more. Parameters
arr_or_dtype:object
For array-like input, the .dtype attribute will be extracted. Returns
bool
Whether the arr_or_dtype is an extension array type. Notes This checks whether an object implements the pandas exte... | |
doc_3591 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessMultinomial
tf.raw_ops.StatelessMultinomial(
logits, num_samples, seed, output_dtype=tf.dtypes.int64, name=None
)
Args
logits A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, int64, bfloat16, ui... | |
doc_3592 |
Set parameters within this locator. | |
doc_3593 | “Byteswap” all samples in a fragment and returns the modified fragment. Converts big-endian samples to little-endian and vice versa. New in version 3.4. | |
doc_3594 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchMatrixDiagPart
tf.raw_ops.BatchMatrixDiagPart(
input, name=None
)
Args
input A Tensor.
name A name for the operation (optional).
Returns A Tensor. Has the same type as input. | |
doc_3595 | Return a tuple of class cls’s base classes, including cls, in method resolution order. No class appears more than once in this tuple. Note that the method resolution order depends on cls’s type. Unless a very peculiar user-defined metatype is in use, cls will be the first element of the tuple. | |
doc_3596 |
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con... | |
doc_3597 | class secrets.SystemRandom
A class for generating random numbers using the highest-quality sources provided by the operating system. See random.SystemRandom for additional details.
secrets.choice(sequence)
Return a randomly-chosen element from a non-empty sequence.
secrets.randbelow(n)
Return a random int... | |
doc_3598 | Prepare the request by connecting to a proxy server. The host and type will replace those of the instance, and the instance’s selector will be the original URL given in the constructor. | |
doc_3599 |
Boolean indicating whether this dtype contains any reference-counted objects in any fields or sub-dtypes. Recall that what is actually in the ndarray memory representing the Python object is the memory address of that object (a pointer). Special handling may be required, and this attribute is useful for distinguishin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.