_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_4200 | Immediately stop playing or recording and return the device to a state where it can accept commands. The OSS documentation recommends closing and re-opening the device after calling reset(). | |
doc_4201 | Return the bytes of the file name in the archive. name is the name of the file in the archive, or a ZipInfo object. The archive must be open for read or append. pwd is the password used for encrypted files and, if specified, it will override the default password set with setpassword(). Calling read() on a ZipFile that ... | |
doc_4202 | skimage.util.apply_parallel(function, array) Map a function in parallel across an array.
skimage.util.compare_images(image1, image2) Return an image showing the differences between two images.
skimage.util.crop(ar, crop_width[, copy, order]) Crop array ar by crop_width along each dimension.
skimage.util.dtype_lim... | |
doc_4203 |
Return Modulo of series and other, element-wise (binary operator mod). Equivalent to series % other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters
other:Series or scalar value
fill_value:None or float value, default None (NaN)
Fill existing missing (NaN) ... | |
doc_4204 |
Return unbiased kurtosis over requested axis. Kurtosis obtained using Fisher’s definition of kurtosis (kurtosis of normal == 0.0). Normalized by N-1. Parameters
axis:{index (0)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result.
level:int or... | |
doc_4205 | Deletes the file referenced by name. If deletion is not supported on the target storage system this will raise NotImplementedError instead. | |
doc_4206 |
Draw samples from a Weibull distribution. Draw samples from a 1-parameter Weibull distribution with the given shape parameter a. \[X = (-ln(U))^{1/a}\] Here, U is drawn from the uniform distribution over (0,1]. The more common 2-parameter Weibull, including a scale parameter \(\lambda\) is just \(X = \lambda(-ln(U))... | |
doc_4207 | Return the value of the boundary parameter of the Content-Type header of the message, or failobj if either the header is missing, or has no boundary parameter. The returned string will always be unquoted as per email.utils.unquote(). | |
doc_4208 |
Appends modules from a Python iterable to the end of the list. Parameters
modules (iterable) – iterable of modules to append | |
doc_4209 |
Perform DBSCAN clustering from features, or distance matrix. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features), or (n_samples, n_samples)
Training instances to cluster, or distances between instances if metric='precomputed'. If a sparse matrix is provided, it will be converted into a spar... | |
doc_4210 | Separate the underlying raw stream from the buffer and return it. After the raw stream has been detached, the buffer is in an unusable state. Some buffers, like BytesIO, do not have the concept of a single raw stream to return from this method. They raise UnsupportedOperation. New in version 3.1. | |
doc_4211 | re.ASCII
Make \w, \W, \b, \B, \d, \D, \s and \S perform ASCII-only matching instead of full Unicode matching. This is only meaningful for Unicode patterns, and is ignored for byte patterns. Corresponds to the inline flag (?a). Note that for backward compatibility, the re.U flag still exists (as well as its synonym re... | |
doc_4212 | Exception raised by the netrc class when syntactical errors are encountered in source text. Instances of this exception provide three interesting attributes: msg is a textual explanation of the error, filename is the name of the source file, and lineno gives the line number on which the error was found. | |
doc_4213 | An undeclared prefix was found when namespace processing was enabled. | |
doc_4214 |
A kernel hyperparameter’s specification in form of a namedtuple. New in version 0.18. Attributes
namestr
The name of the hyperparameter. Note that a kernel using a hyperparameter with name “x” must have the attributes self.x and self.x_bounds
value_typestr
The type of the hyperparameter. Currently, only “... | |
doc_4215 |
Parameters
axesmatplotlib.axes.Axes
The Axes to which the created Axis belongs.
pickradiusfloat
The acceptance radius for containment tests. See also Axis.contains. | |
doc_4216 | Return True if the object is an abstract base class. | |
doc_4217 |
Alias for set_edgecolor. | |
doc_4218 | Check if an etag is weak. | |
doc_4219 | Return a reverse iterator. seq must be an object which has a __reversed__() method or supports the sequence protocol (the __len__() method and the __getitem__() method with integer arguments starting at 0). | |
doc_4220 | The username portion of the address, with all quoting removed. | |
doc_4221 | '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_4222 | play a .pgm video using overlays overlay.main(fname) -> None Play the .pgm video file given by a path fname. If run as a program overlay.py takes the file name as a command line argument. | |
doc_4223 | tf.experimental.numpy.diag_indices(
n, ndim=2
)
See the NumPy documentation for numpy.diag_indices. | |
doc_4224 | rotates the vector by a given angle in degrees in place. rotate_ip(angle, Vector3) -> None Rotates the vector counterclockwise around the given axis by the given angle in degrees. The length of the vector is not changed. | |
doc_4225 |
Differentiate a Chebyshev series. Returns the Chebyshev series coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl (the scaling factor is for use in a linear change of variable). The argument c is an array of coefficients from low to high degree along each axis, e.g., [... | |
doc_4226 | Takes an instance sock of socket.socket, and returns an instance of ssl.SSLSocket, a subtype of socket.socket, which wraps the underlying socket in an SSL context. sock must be a SOCK_STREAM socket; other socket types are unsupported. Internally, function creates a SSLContext with protocol ssl_version and SSLContext.op... | |
doc_4227 |
Alias for get_fontfamily. | |
doc_4228 | Clock that cannot be set and represents monotonic time since some unspecified starting point. Availability: Unix. New in version 3.3. | |
doc_4229 | Return the message’s content type. The returned string is coerced to lower case of the form maintype/subtype. If there was no Content-Type header in the message the default type as given by get_default_type() will be returned. Since according to RFC 2045, messages always have a default type, get_content_type() will alw... | |
doc_4230 |
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi... | |
doc_4231 | Determines if the module is a package based on path. | |
doc_4232 |
Get the edge color of the Figure rectangle. | |
doc_4233 | tf.metrics.serialize Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.serialize
tf.keras.metrics.serialize(
metric
)
Arguments
metric A Keras Metric instance or a metric function.
Returns Metric configuration dictionary. | |
doc_4234 |
Given the proposed upper and lower extent, adjust the range if it is too close to being singular (i.e. a range of ~0). | |
doc_4235 | tf.compat.v1.nn.quantized_relu_x(
features, max_value, min_features, max_features, out_type=tf.dtypes.quint8,
name=None
)
Args
features A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16.
max_value A Tensor of type float32.
min_features A Tensor of type fl... | |
doc_4236 | Instantiates a SimpleTemplateResponse object with the given template, context, content type, HTTP status, and charset.
template A backend-dependent template object (such as those returned by get_template()), the name of a template, or a list of template names.
context A dict of values to add to the template contex... | |
doc_4237 |
Fit underlying estimators. Parameters
X(sparse) array-like of shape (n_samples, n_features)
Data.
yarray-like of shape (n_samples,)
Multi-class targets. Returns
self | |
doc_4238 | Shortcut for route() with methods=["PATCH"]. New in version 2.0. Parameters
rule (str) –
options (Any) – Return type
Callable | |
doc_4239 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchCholeskyGrad
tf.raw_ops.BatchCholeskyGrad(
l, grad, name=None
)
Args
l A Tensor. Must be one of the following types: float32, float64.
grad A Tensor. Must have the same type as l.
name A name for the operation (optional).
... | |
doc_4240 | Open an AIFF or AIFF-C file and return an object instance with methods that are described below. The argument file is either a string naming a file or a file object. mode must be 'r' or 'rb' when the file must be opened for reading, or 'w' or 'wb' when the file must be opened for writing. If omitted, file.mode is used ... | |
doc_4241 |
Bases: object A d-dimensional Bezier segment. Parameters
control_points(N, d) array
Location of the N control points. axis_aligned_extrema()[source]
Return the dimension and location of the curve's interior extrema. The extrema are the points along the curve where one of its partial derivatives is zero.... | |
doc_4242 | A storage object, or a callable which returns a storage object. This handles the storage and retrieval of your files. See Managing files for details on how to provide this object. | |
doc_4243 |
A ConvReLU2d module is a fused module of Conv2d and ReLU We adopt the same interface as torch.nn.quantized.Conv2d. Variables
as torch.nn.quantized.Conv2d (Same) – | |
doc_4244 | Returns a GEOSGeometry representing the points making up this geometry that do not make up other. | |
doc_4245 | See Migration guide for more details. tf.compat.v1.raw_ops.WriteGraphSummary
tf.raw_ops.WriteGraphSummary(
writer, step, tensor, name=None
)
Writes TensorFlow graph tensor at step using summary writer.
Args
writer A Tensor of type resource.
step A Tensor of type int64.
tensor A Tensor of typ... | |
doc_4246 | 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_4247 | Set the available ciphers for sockets created with this context. It should be a string in the OpenSSL cipher list format. If no cipher can be selected (because compile-time options or other configuration forbids use of all the specified ciphers), an SSLError will be raised. Note when connected, the SSLSocket.cipher() ... | |
doc_4248 | Update the dictionary with the key/value pairs from other, overwriting existing keys. Return None. update() accepts either another dictionary object or an iterable of key/value pairs (as tuples or other iterables of length two). If keyword arguments are specified, the dictionary is then updated with those key/value pai... | |
doc_4249 | Returns the input values concatenated into a string, separated by the delimiter string, or default if there are no values.
delimiter
Required argument. Needs to be a string.
distinct
An optional boolean argument that determines if concatenated values will be distinct. Defaults to False.
ordering
An opti... | |
doc_4250 | Hides the window. Another window will be activated. | |
doc_4251 | Sparse representation of the fitted coef_. | |
doc_4252 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchMatrixInverse
tf.raw_ops.BatchMatrixInverse(
input, adjoint=False, name=None
)
Args
input A Tensor. Must be one of the following types: float64, float32.
adjoint An optional bool. Defaults to False.
name A name for the operation... | |
doc_4253 |
operands[Slice] The array(s) to be iterated over. Valid only before the iterator is closed. | |
doc_4254 | Create new mailbox named mailbox. | |
doc_4255 |
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi... | |
doc_4256 |
Return random floats in the half-open interval [0.0, 1.0). Results are from the “continuous uniform” distribution over the stated interval. To sample \(Unif[a, b), b > a\) multiply the output of random_sample by (b-a) and add a: (b - a) * random_sample() + a
Note New code should use the random method of a default_r... | |
doc_4257 |
Detect CENSURE keypoints along with the corresponding scale. Parameters
image2D ndarray
Input image. | |
doc_4258 |
Return self>>=value. | |
doc_4259 |
Compute prod of group values. Parameters
numeric_only:bool, default True
Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data.
min_count:int, default 0
The required number of valid values to perform the operation. If fewer than min_count non-NA values... | |
doc_4260 | tf.nn.crelu(
features, axis=-1, name=None
)
Concatenates a ReLU which selects only the positive part of the activation with a ReLU which selects only the negative part of the activation. Note that as a result this non-linearity doubles the depth of the activations. Source: Understanding and Improving Convolutional... | |
doc_4261 |
State collector class for float operations. The instance of this class can be used instead of the torch. prefix for some operations. See example usage below. Note This class does not provide a forward hook. Instead, you must use one of the underlying functions (e.g. add). Examples: >>> f_add = FloatFunctional()
>>>... | |
doc_4262 |
Get the converter interface instance for x, or None. | |
doc_4263 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.RandomCrop
tf.keras.layers.experimental.preprocessing.RandomCrop(
height, width, seed=None, name=None, **kwargs
)
This layer will crop all the images in the same batch to the same cropping location. By default, random crop... | |
doc_4264 | Similar to CLOCK_MONOTONIC, but provides access to a raw hardware-based time that is not subject to NTP adjustments. Availability: Linux 2.6.28 and newer, macOS 10.12 and newer. New in version 3.3. | |
doc_4265 |
Alias for set_linestyle. | |
doc_4266 | A list of application names among installed applications. Those apps should contain a locale directory. All those catalogs plus all catalogs found in LOCALE_PATHS (which are always included) are merged into one catalog. Defaults to None, which means that all available translations from all INSTALLED_APPS are provided i... | |
doc_4267 |
Return a Series containing counts of unique values. The resulting object will be in descending order so that the first element is the most frequently-occurring element. Excludes NA values by default. Parameters
normalize:bool, default False
If True then the object returned will contain the relative frequencies ... | |
doc_4268 |
Return the weighted average of array over the given axis. Parameters
aarray_like
Data to be averaged. Masked entries are not taken into account in the computation.
axisint, optional
Axis along which to average a. If None, averaging is done over the flattened array.
weightsarray_like, optional
The import... | |
doc_4269 | class abc.ABC
A helper class that has ABCMeta as its metaclass. With this class, an abstract base class can be created by simply deriving from ABC avoiding sometimes confusing metaclass usage, for example: from abc import ABC
class MyABC(ABC):
pass
Note that the type of ABC is still ABCMeta, therefore inheritin... | |
doc_4270 |
Appends parameters from a Python iterable to the end of the list. Parameters
parameters (iterable) – iterable of parameters to append | |
doc_4271 |
contains_aggregate
Tells Django that this expression contains an aggregate and that a GROUP BY clause needs to be added to the query.
contains_over_clause
Tells Django that this expression contains a Window expression. It’s used, for example, to disallow window function expressions in queries that modify data... | |
doc_4272 | Method representing the thread’s activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with positional and keyword arguments taken from the args and kwargs arguments, respectively. | |
doc_4273 | Print exception information and stack trace entries from traceback object tb to file. This differs from print_tb() in the following ways: if tb is not None, it prints a header Traceback (most recent
call last):
it prints the exception etype and value after the stack trace if type(value) is SyntaxError and value has... | |
doc_4274 | bytearray.lstrip([chars])
Return a copy of the sequence with specified leading bytes removed. The chars argument is a binary sequence specifying the set of byte values to be removed - the name refers to the fact this method is usually used with ASCII characters. If omitted or None, the chars argument defaults to remo... | |
doc_4275 |
Set the colormap to 'pink'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | |
doc_4276 | sklearn.feature_extraction.image.grid_to_graph(n_x, n_y, n_z=1, *, mask=None, return_as=<class 'scipy.sparse.coo.coo_matrix'>, dtype=<class 'int'>) [source]
Graph of the pixel-to-pixel connections Edges exist if 2 voxels are connected. Parameters
n_xint
Dimension in x axis
n_yint
Dimension in y axis
n_zin... | |
doc_4277 |
Bases: matplotlib.transforms.TransformNode The base class of all TransformNode instances that actually perform a transformation. All non-affine transformations should be subclasses of this class. New affine transformations should be subclasses of Affine2D. Subclasses of this class should override the following member... | |
doc_4278 |
Return a flattened array. Refer to numpy.ravel for full documentation. See also numpy.ravel
equivalent function ndarray.flat
a flat iterator on the array. | |
doc_4279 | Similar to escape(), except that it doesn’t operate on pre-escaped strings, so it will not double escape. | |
doc_4280 |
Renames dimension names of self. There are two main usages: self.rename(**rename_map) returns a view on tensor that has dims renamed as specified in the mapping rename_map. self.rename(*names) returns a view on tensor, renaming all dimensions positionally using names. Use self.rename(None) to drop names on a tensor. ... | |
doc_4281 | Set “info” to info, which should be a string. | |
doc_4282 |
Alias for set_linestyle. | |
doc_4283 | tf.keras.applications.resnet_v2.ResNet50V2 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.ResNet50V2, tf.compat.v1.keras.applications.resnet_v2.ResNet50V2
tf.keras.applications.ResNet50V2(
include_top=True, weights='imagenet', input_tensor=None,
input_shape=... | |
doc_4284 | A tuple of HeaderDefect instances reporting any RFC compliance problems found during parsing. The email package tries to be complete about detecting compliance issues. See the errors module for a discussion of the types of defects that may be reported. | |
doc_4285 | Play the SystemDefault sound. | |
doc_4286 | Set the “background” set of attributes to attr. This set is initially 0 (no attributes). | |
doc_4287 | Moves the storage to shared memory. This is a no-op for storages already in shared memory and for CUDA storages, which do not need to be moved for sharing across processes. Storages in shared memory cannot be resized. Returns: self | |
doc_4288 |
Parameters
eventMouseEvent, optional
Not used | |
doc_4289 | Returns True if x is finite; otherwise returns False. | |
doc_4290 | A string used for identification purposes only. It has no semantics. Multiple threads may be given the same name. The initial name is set by the constructor. | |
doc_4291 | Return a new array of bytes. The bytearray class is a mutable sequence of integers in the range 0 <= x < 256. It has most of the usual methods of mutable sequences, described in Mutable Sequence Types, as well as most methods that the bytes type has, see Bytes and Bytearray Operations. The optional source parameter can... | |
doc_4292 |
pygame module for image transfer The image module contains functions for loading and saving pictures, as well as transferring Surfaces to formats usable by other packages. Note that there is no Image class; an image is loaded as a Surface object. The Surface class allows manipulation (drawing lines, setting pixels... | |
doc_4293 | sklearn.datasets.make_friedman2(n_samples=100, *, noise=0.0, random_state=None) [source]
Generate the “Friedman #2” regression problem. This dataset is described in Friedman [1] and Breiman [2]. Inputs X are 4 independent features uniformly distributed on the intervals: 0 <= X[:, 0] <= 100,
40 * pi <= X[:, 1] <= 560 ... | |
doc_4294 |
Sets the learning rate of each parameter group according to the 1cycle learning rate policy. The 1cycle policy anneals the learning rate from an initial learning rate to some maximum learning rate and then from that maximum learning rate to some minimum learning rate much lower than the initial learning rate. This po... | |
doc_4295 |
Returns element-wise True where signbit is set (less than zero). Parameters
xarray_like
The input value(s).
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-... | |
doc_4296 |
Read an array header from a filelike object using the 2.0 file format version. This will leave the file object located just after the header. New in version 1.9.0. Parameters
fpfilelike object
A file object or something with a read() method like a file. Returns
shapetuple of int
The shape of the array... | |
doc_4297 | Return a list of the most frequently occurring values in the order they were first encountered in the data. Will return more than one result if there are multiple modes or an empty list if the data is empty: >>> multimode('aabbbbccddddeeffffgg')
['b', 'd', 'f']
>>> multimode('')
[]
New in version 3.8. | |
doc_4298 | os.MFD_ALLOW_SEALING
os.MFD_HUGETLB
os.MFD_HUGE_SHIFT
os.MFD_HUGE_MASK
os.MFD_HUGE_64KB
os.MFD_HUGE_512KB
os.MFD_HUGE_1MB
os.MFD_HUGE_2MB
os.MFD_HUGE_8MB
os.MFD_HUGE_16MB
os.MFD_HUGE_32MB
os.MFD_HUGE_256MB
os.MFD_HUGE_512MB
os.MFD_HUGE_1GB
os.MFD_HUGE_2GB
os.MFD_HUGE_16GB
These flags can... | |
doc_4299 | Takes LongTensor with index values of shape (*) and returns a tensor of shape (*, num_classes) that have zeros everywhere except where the index of last dimension matches the corresponding value of the input tensor, in which case it will be 1. See also One-hot on Wikipedia . Parameters
tensor (LongTensor) – class v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.