_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_22600 | New in Django 3.2. Checks if signed_obj was signed less than max_age seconds ago, otherwise raises SignatureExpired. The max_age parameter can accept an integer or a datetime.timedelta object. | |
doc_22601 |
Bases: matplotlib.projections.geo.GeoAxes Build an Axes in a figure. Parameters
figFigure
The Axes is built in the Figure fig.
rect[left, bottom, width, height]
The Axes is built in the rectangle rect. rect is in Figure coordinates.
sharex, shareyAxes, optional
The x or y axis is shared with the x or y ... | |
doc_22602 | See Migration guide for more details. tf.compat.v1.cross, tf.compat.v1.linalg.cross
tf.linalg.cross(
a, b, name=None
)
a and b must be the same shape; they can either be simple 3-element vectors, or any shape where the innermost dimension is 3. In the latter case, each pair of corresponding 3-element vectors is ... | |
doc_22603 |
Wrapper around another transform to treat reinterpreted_batch_ndims-many extra of the right most dimensions as dependent. This has no effect on the forward or backward transforms, but does sum out reinterpreted_batch_ndims-many of the rightmost dimensions in log_abs_det_jacobian(). Parameters
base_transform (Tran... | |
doc_22604 | SimpleTestCase disallows database queries by default. This helps to avoid executing write queries which will affect other tests since each SimpleTestCase test isn’t run in a transaction. If you aren’t concerned about this problem, you can disable this behavior by setting the databases class attribute to '__all__' on yo... | |
doc_22605 | Byte offset to the file header. | |
doc_22606 |
Attributes
collective_ring_order string collective_ring_order
kernel_tracker_max_bytes int32 kernel_tracker_max_bytes
kernel_tracker_max_interval int32 kernel_tracker_max_interval
kernel_tracker_max_pending int32 kernel_tracker_max_pending
num_dev_to_dev_copy_streams int32 num_dev_to_de... | |
doc_22607 | New in Django 3.2. The implicit primary key type to add to models within this app. You can use this to keep AutoField as the primary key type for third party applications. By default, this is the value of DEFAULT_AUTO_FIELD. | |
doc_22608 |
Set the artist's clip Bbox. Parameters
clipboxBbox | |
doc_22609 |
Return posterior probabilities of classification. Parameters
Xarray-like of shape (n_samples, n_features)
Array of samples/test vectors. Returns
Cndarray of shape (n_samples, n_classes)
Posterior probabilities of classification per class. | |
doc_22610 | See torch.dot() | |
doc_22611 | If there is no handler for an HTTPException-type exception, re-raise it to be handled by the interactive debugger instead of returning it as a simple error response. Default: False | |
doc_22612 |
Attributes
priority int64 priority | |
doc_22613 |
alias of matplotlib.backend_tools.Cursors | |
doc_22614 | Return True if the path points to a symbolic link, False otherwise. False is also returned if the path doesn’t exist; other errors (such as permission errors) are propagated. | |
doc_22615 | See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.random_shift
tf.keras.preprocessing.image.random_shift(
x, wrg, hrg, row_axis=1, col_axis=2, channel_axis=0,
fill_mode='nearest', cval=0.0, interpolation_order=1
)
Arguments
x Input tensor. Must be 3D.
wrg Width shift... | |
doc_22616 | tf.image.encode_jpeg Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.encode_jpeg, tf.compat.v1.io.encode_jpeg
tf.io.encode_jpeg(
image, format='', quality=95, progressive=False, optimize_size=False,
chroma_downsampling=True, density_unit='in', x_density=300,
y_density... | |
doc_22617 | tf.metrics.Hinge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.Hinge
tf.keras.metrics.Hinge(
name='hinge', dtype=None
)
y_true values are expected to be -1 or 1. If binary (0 or 1) labels are provided we will convert them to -1 or 1.
Args
name (Optional) s... | |
doc_22618 | A dictionary of context data that will be added to the default context data passed to the template. | |
doc_22619 | Returns the system’s release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. | |
doc_22620 | When specified, do not run the example at all. This can be useful in contexts where doctest examples serve as both documentation and test cases, and an example should be included for documentation purposes, but should not be checked. E.g., the example’s output might be random; or the example might depend on resources w... | |
doc_22621 | Return the result when it arrives. If timeout is not None and the result does not arrive within timeout seconds then multiprocessing.TimeoutError is raised. If the remote call raised an exception then that exception will be reraised by get(). | |
doc_22622 | tf.compat.v1.nn.weighted_cross_entropy_with_logits(
labels=None, logits=None, pos_weight=None, name=None, targets=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (targets). They will be removed in a future version. Instructions for updating: targets is deprecated, use labels instead This is like sigmoid_cross_entro... | |
doc_22623 |
Return the Colormap instance. | |
doc_22624 |
Graph is the main data structure used in the FX Intermediate Representation. It consists of a series of Node s, each representing callsites (or other syntactic constructs). The list of Node s, taken together, constitute a valid Python function. For example, the following code import torch
import torch.fx
class MyMod... | |
doc_22625 |
Replace each occurrence of pattern/regex in the Series/Index. Equivalent to str.replace() or re.sub(), depending on the regex value. Parameters
pat:str or compiled regex
String can be a character sequence or regular expression.
repl:str or callable
Replacement string or a callable. The callable is passed th... | |
doc_22626 |
Move the position back and return the current element. | |
doc_22627 | Scan through string looking for the first location where the regular expression pattern produces a match, and return a corresponding match object. Return None if no position in the string matches the pattern; note that this is different from finding a zero-length match at some point in the string. | |
doc_22628 |
Round the Timedelta to the specified resolution. Parameters
freq:str
Frequency string indicating the rounding resolution. Returns
a new Timedelta rounded to the given resolution of freq
Raises
ValueError if the freq cannot be converted | |
doc_22629 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayReadV2
tf.raw_ops.TensorArrayReadV2(
handle, index, flow_in, dtype, name=None
)
Args
handle A Tensor of type string.
index A Tensor of type int32.
flow_in A Tensor of type float32.
dtype A tf.DType.
name A name... | |
doc_22630 | tf.feature_column.shared_embeddings(
categorical_columns, dimension, combiner='mean', initializer=None,
shared_embedding_collection_name=None, ckpt_to_load_from=None,
tensor_name_in_ckpt=None, max_norm=None, trainable=True,
use_safe_embedding_lookup=True
)
This is similar to embedding_column, except th... | |
doc_22631 |
alias of matplotlib.backends.backend_nbagg.NavigationIPy | |
doc_22632 |
Perform an elliptical Hough transform. Parameters
image(M, N) ndarray
Input image with nonzero values representing edges.
thresholdint, optional
Accumulator threshold value.
accuracydouble, optional
Bin size on the minor axis used in the accumulator.
min_sizeint, optional
Minimal major axis length. ... | |
doc_22633 |
Set the internal pad in points. The actual pad will be the sum of the internal pad and the external pad (the latter is set automatically by the AxisArtist). | |
doc_22634 |
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with heads both at the begin and the end point. Parameters
head_lengthfloat, default: 0.4
Length of the arrow head, relative to mutation_scale.
head_widthfloat, default: 0.2
Width of the arrow head, relative to mutation_scale.
widthAfloat, default: 1.0
... | |
doc_22635 |
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_22636 | tf.io.parse_example(
serialized, features, example_names=None, name=None
)
Parses a number of serialized Example protos given in serialized. We refer to serialized as a batch with batch_size many entries of individual Example protos. example_names may contain descriptive names for the corresponding serialized prot... | |
doc_22637 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_22638 | Iteratively unpack from the buffer buffer according to the format string format. This function returns an iterator which will read equally-sized chunks from the buffer until all its contents have been consumed. The buffer’s size in bytes must be a multiple of the size required by the format, as reflected by calcsize().... | |
doc_22639 | Creates or opens the specified key, returning a handle object. key is an already open key, or one of the predefined HKEY_* constants. sub_key is a string that names the key this method opens or creates. reserved is a reserved integer, and must be zero. The default is zero. access is an integer that specifies an access ... | |
doc_22640 | Decode a header value, un-escaping any escaped non-ASCII characters. header_str must be a str object. The unescaped value is returned. Using this function is recommended to display some headers in a human readable form: >>> decode_header("Some subject")
'Some subject'
>>> decode_header("=?ISO-8859-15?Q?D=E9buter_en_Pyt... | |
doc_22641 |
Return the clip path. | |
doc_22642 |
Bases: matplotlib.collections.Collection Class for the efficient drawing of a triangular mesh using Gouraud shading. A triangular mesh is a Triangulation object. Parameters
edgecolorscolor or list of colors, default: rcParams["patch.edgecolor"] (default: 'black')
Edge color for each patch making up the collecti... | |
doc_22643 |
Generate a random n-class classification problem. This initially creates clusters of points normally distributed (std=1) about vertices of an n_informative-dimensional hypercube with sides of length 2*class_sep and assigns an equal number of clusters to each class. It introduces interdependence between these features... | |
doc_22644 |
Set the text added to a <caption> HTML element. Parameters
caption:str, tuple
For HTML output either the string input is used or the first element of the tuple. For LaTeX the string input provides a caption and the additional tuple input allows for full captions and short captions, in that order. Returns
... | |
doc_22645 | URL that serves the files stored at this location. Defaults to the value of your MEDIA_URL setting. | |
doc_22646 | Write raw bytes to object buffer. write(buffer, offset=0) Overwrite bytes in the parent object's data. The data must be C or F contiguous, otherwise a ValueError is raised. Argument buffer is a str/bytes object. An optional offset gives a start position, in bytes, within the buffer where overwriting begins. If the of... | |
doc_22647 | tf.experimental.numpy.exp2(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.exp2. | |
doc_22648 |
Compute join_index and indexers to conform data structures to the new index. Parameters
other:Index
how:{‘left’, ‘right’, ‘inner’, ‘outer’}
level:int or level name, default None
return_indexers:bool, default False
sort:bool, default False
Sort the join keys lexicographically in the result Index. If Fals... | |
doc_22649 | class sklearn.kernel_ridge.KernelRidge(alpha=1, *, kernel='linear', gamma=None, degree=3, coef0=1, kernel_params=None) [source]
Kernel ridge regression. Kernel ridge regression (KRR) combines ridge regression (linear least squares with l2-norm regularization) with the kernel trick. It thus learns a linear function in... | |
doc_22650 |
Remove a callback based on its observer id. See also add_callback | |
doc_22651 |
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_features,), default=None
The initial coefficients to warm-start the optimization.
intercept_... | |
doc_22652 | See torch.lstsq() | |
doc_22653 |
Register a new kind of scale. Parameters
scale_classsubclass of ScaleBase
The scale to register. | |
doc_22654 | tf.experimental.numpy.gcd(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.gcd. | |
doc_22655 | See Migration guide for more details. tf.compat.v1.estimator.StepCounterHook, tf.compat.v1.train.StepCounterHook
tf.estimator.StepCounterHook(
every_n_steps=100, every_n_secs=None, output_dir=None, summary_writer=None
)
Methods after_create_session View source
after_create_session(
session, coord
)
Called ... | |
doc_22656 | Synchronize the on-disk directory and data files. This method is called by the Shelve.sync() method. | |
doc_22657 | The mathematical constant τ = 6.283185…, to available precision. Tau is a circle constant equal to 2π, the ratio of a circle’s circumference to its radius. To learn more about Tau, check out Vi Hart’s video Pi is (still) Wrong, and start celebrating Tau day by eating twice as much pie! New in version 3.6. | |
doc_22658 |
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_22659 | The numeric constant for the BZIP2 compression method. This requires the bz2 module. New in version 3.3. | |
doc_22660 | A list containing 2-tuples of TestCase instances and strings holding the reason for skipping the test. New in version 3.1. | |
doc_22661 | Performs a matrix multiplication of the matrices mat1 and mat2. The matrix input is added to the final result. If mat1 is a (n×m)(n \times m) tensor, mat2 is a (m×p)(m \times p) tensor, then input must be broadcastable with a (n×p)(n \times p) tensor and out will be a (n×p)(n \times p) tensor. alpha and beta are sc... | |
doc_22662 | This method returns a GEOSGeometry that is a clone of the original. | |
doc_22663 | tf.train.experimental.LossScale Compat aliases for migration See Migration guide for more details. tf.compat.v1.mixed_precision.LossScale, tf.compat.v1.mixed_precision.experimental.LossScale, tf.compat.v1.train.experimental.LossScale
tf.mixed_precision.experimental.LossScale()
Warning: This class is deprecated and w... | |
doc_22664 | Sets x and y from a polar coordinates tuple. from_polar((r, phi)) -> None Sets x and y from a tuple (r, phi) where r is the radial distance, and phi is the azimuthal angle. | |
doc_22665 |
Returns an array containing the same data with a new shape. Refer to numpy.reshape for full documentation. See also numpy.reshape
equivalent function Notes Unlike the free function numpy.reshape, this method on ndarray allows the elements of the shape parameter to be passed in as separate arguments. For example... | |
doc_22666 | Registers a function to be called when the application context ends. These functions are typically also called when the request context is popped. Example: ctx = app.app_context()
ctx.push()
...
ctx.pop()
When ctx.pop() is executed in the above example, the teardown functions are called just before the app context mov... | |
doc_22667 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_22668 | New in version 3.4: is_global | |
doc_22669 | See Migration guide for more details. tf.compat.v1.keras.activations.softmax
tf.keras.activations.softmax(
x, axis=-1
)
The elements of the output vector are in range (0, 1) and sum to 1. Each vector is handled independently. The axis argument sets which axis of the input the function is applied along. Softmax i... | |
doc_22670 | Compares the values of the two operands numerically. | |
doc_22671 | Return True if the SSL pseudo-random number generator has been seeded with ‘enough’ randomness, and False otherwise. You can use ssl.RAND_egd() and ssl.RAND_add() to increase the randomness of the pseudo-random number generator. | |
doc_22672 |
Alias for get_antialiased. | |
doc_22673 | Return a shallow mutable copy of this object. Keep in mind that the standard library’s copy() function is a no-op for this class like for any other python immutable type (eg: tuple). | |
doc_22674 | Creates the test databases by calling setup_databases(). | |
doc_22675 | Set the file filter. | |
doc_22676 |
Alias for set_edgecolor. | |
doc_22677 | Collision detection between two sprites, using masks. collide_mask(sprite1, sprite2) -> (int, int) collide_mask(sprite1, sprite2) -> None Tests for collision between two sprites, by testing if their bitmasks overlap (uses pygame.mask.Mask.overlap()). If the sprites have a mask attribute, it is used as the mask, other... | |
doc_22678 | A 64-bit number in little-endian format. Equivalent to REG_QWORD. New in version 3.6. | |
doc_22679 | See Migration guide for more details. tf.compat.v1.raw_ops.BlockLSTM
tf.raw_ops.BlockLSTM(
seq_len_max, x, cs_prev, h_prev, w, wci, wcf, wco, b, forget_bias=1,
cell_clip=3, use_peephole=False, name=None
)
This is equivalent to applying LSTMBlockCell in a loop, like so: for x1 in unpack(x):
i1, cs1, f1, o1,... | |
doc_22680 |
Return (a * i), that is string multiple concatenation, element-wise. Values in i of less than 0 are treated as 0 (which yields an empty string). Parameters
aarray_like of str or unicode
iarray_like of ints
Returns
outndarray
Output array of str or unicode, depending on input types | |
doc_22681 |
Set the edgecolor(s) of the collection. Parameters
ccolor or list of colors or 'face'
The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor. | |
doc_22682 |
Generate a 3D barplot. This method creates three dimensional barplot where the width, depth, height, and color of the bars can all be uniquely set. Parameters
x, y, zarray-like
The coordinates of the anchor point of the bars.
dx, dy, dzfloat or array-like
The width, depth, and height of the bars, respective... | |
doc_22683 | sklearn.utils.deprecated(extra='') [source]
Decorator to mark a function or class as deprecated. Issue a warning when the function is called/the class is instantiated and adds a warning to the docstring. The optional extra argument will be appended to the deprecation message and the docstring. Note: to use this with ... | |
doc_22684 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_22685 |
Bases: object A proxy to broadcast set_* method calls to all contained Spines. The proxy cannot be used for any other operations on its members. The supported methods are determined dynamically based on the contained spines. If not all spines support a given method, it's executed only on the subset of spines that sup... | |
doc_22686 |
Save current image to file. The current behavior is not ideal: It saves the image displayed on screen, so all images will be converted to RGB, and the image size is not preserved (resizing the viewer window will alter the size of the saved image). | |
doc_22687 | returns the Euclidean magnitude of the vector. magnitude() -> float calculates the magnitude of the vector which follows from the theorem: vec.magnitude() == math.sqrt(vec.x**2 + vec.y**2) | |
doc_22688 | See Migration guide for more details. tf.compat.v1.sparse.retain, tf.compat.v1.sparse_retain
tf.sparse.retain(
sp_input, to_retain
)
For example, if sp_input has shape [4, 5] and 4 non-empty string values: [0, 1]: a
[0, 3]: b
[2, 0]: c
[3, 1]: d
and to_retain = [True, False, False, True], then the output will b... | |
doc_22689 | gets the number of devices. get_count() -> num_devices Device ids range from 0 to get_count() - 1 | |
doc_22690 | Parse an HTTP basic/digest authorization header transmitted by the web browser. The return value is either None if the header was invalid or not given, otherwise an Authorization object. Parameters
value (Optional[str]) – the authorization header to parse. Returns
a Authorization object or None. Return type
Optio... | |
doc_22691 | Remove and return an item from the queue. If optional args block is True (the default) and timeout is None (the default), block if necessary until an item is available. If timeout is a positive number, it blocks at most timeout seconds and raises the queue.Empty exception if no item was available within that time. Othe... | |
doc_22692 |
Checkpoint a model or part of the model Checkpointing works by trading compute for memory. Rather than storing all intermediate activations of the entire computation graph for computing backward, the checkpointed part does not save intermediate activations, and instead recomputes them in backward pass. It can be appl... | |
doc_22693 |
Set the patch linestyle.
linestyle description
'-' or 'solid' solid line
'--' or 'dashed' dashed line
'-.' or 'dashdot' dash-dotted line
':' or 'dotted' dotted line
'none', 'None', ' ', or '' draw nothing Alternatively a dash tuple of the following form can be provided: (offset, onoffseq)
where onoff... | |
doc_22694 | See Migration guide for more details. tf.compat.v1.manip.batch_to_space_nd
tf.compat.v1.batch_to_space_nd(
input, block_shape, crops, name=None
)
This operation reshapes the "batch" dimension 0 into M + 1 dimensions of shape block_shape + [batch], interleaves these blocks back into the grid defined by the spatia... | |
doc_22695 |
Convert points to display units. You need to override this function (unless your backend doesn't have a dpi, e.g., postscript or svg). Some imaging systems assume some value for pixels per inch: points to pixels = points * pixels_per_inch/72 * dpi/72
Parameters
pointsfloat or array-like
a float or a numpy arra... | |
doc_22696 | class sklearn.ensemble.GradientBoostingRegressor(*, loss='ls', learning_rate=0.1, n_estimators=100, subsample=1.0, criterion='friedman_mse', min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_depth=3, min_impurity_decrease=0.0, min_impurity_split=None, init=None, random_state=None, max_features=... | |
doc_22697 | hmac.new(key, msg=None, digestmod='')
Return a new hmac object. key is a bytes or bytearray object giving the secret key. If msg is present, the method call update(msg) is made. digestmod is the digest name, digest constructor or module for the HMAC object to use. It may be any name suitable to hashlib.new(). Despite... | |
doc_22698 |
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_22699 | Request an OpenGL display attribute for the display mode gl_set_attribute(flag, value) -> None When calling pygame.display.set_mode() with the pygame.OPENGL flag, Pygame automatically handles setting the OpenGL attributes like color and double-buffering. OpenGL offers several other attributes you may want control ove... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.