_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_25300 | Delete all occurrences of the field with name name from the message’s headers. No exception is raised if the named field isn’t present in the headers. | |
doc_25301 |
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_25302 | See torch.prod() | |
doc_25303 | Safely iterates line-based over an input stream. If the input stream is not a LimitedStream the limit parameter is mandatory. This uses the stream’s read() method internally as opposite to the readline() method that is unsafe and can only be used in violation of the WSGI specification. The same problem applies to the _... | |
doc_25304 |
Setup for writing the movie file. Parameters
figFigure
The figure to grab the rendered frames from.
outfilestr
The filename of the resulting movie file.
dpifloat, default: fig.dpi
The dpi of the output file. This, with the figure size, controls the size in pixels of the resulting movie file.
frame_pre... | |
doc_25305 | Required. A reference to the django_content_type database table, which contains a record for each installed model. | |
doc_25306 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyAdagrad
tf.raw_ops.SparseApplyAdagrad(
var, accum, lr, grad, indices, use_locking=False, update_slots=True, name=None
)
That is for rows we have grad for, we update var and accum as follows: $$accum += grad * grad$$ $$var -= lr * grad * (1 ... | |
doc_25307 |
Remove all items from the ModuleDict. | |
doc_25308 |
Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise. See also char.islower | |
doc_25309 |
Find the indices of the first and last unmasked values along an axis. If all values are masked, return None. Otherwise, return a list of two tuples, corresponding to the indices of the first and last unmasked values respectively. Parameters
aarray_like
The input array.
axisint, optional
Axis along which to ... | |
doc_25310 | tf.compat.v1.tpu.batch_parallel(
computation, inputs=None, num_shards=1, infeed_queue=None,
device_assignment=None, name=None, xla_options=None
)
Convenience wrapper around shard(). inputs must be a list of Tensors or None (equivalent to an empty list). Each input is split into num_shards pieces along the 0-th... | |
doc_25311 |
Return boolean if values in the object are monotonic_decreasing. Returns
bool | |
doc_25312 | assertIsNotNone(expr, msg=None)
Test that expr is (or is not) None. New in version 3.1. | |
doc_25313 | Similar to str.format(**mapping), except that mapping is used directly and not copied to a dict. This is useful if for example mapping is a dict subclass: >>> class Default(dict):
... def __missing__(self, key):
... return key
...
>>> '{name} was born in {country}'.format_map(Default(name='Guido'))
'Guido w... | |
doc_25314 |
A copy of the holiday array indicating additional invalid days. | |
doc_25315 |
Copy a docstring from another source function (if present). | |
doc_25316 | Sets the threshold for this logger to level. Logging messages which are less severe than level will be ignored; logging messages which have severity level or higher will be emitted by whichever handler or handlers service this logger, unless a handler’s level has been set to a higher severity level than level. When a l... | |
doc_25317 | New in Django 3.2. Encode, optionally compress, append current timestamp, and sign complex data structure (e.g. list, tuple, or dictionary). | |
doc_25318 | bytearray.isascii()
Return True if the sequence is empty or all bytes in the sequence are ASCII, False otherwise. ASCII bytes are in the range 0-0x7F. New in version 3.7. | |
doc_25319 |
Alias for field number 2 | |
doc_25320 |
Return 'PROPNAME or alias' if s has an alias, else return 'PROPNAME'. e.g., for the line markerfacecolor property, which has an alias, return 'markerfacecolor or mfc' and for the transform property, which does not, return 'transform'. | |
doc_25321 | tf.compat.v1.Variable(
initial_value=None, trainable=None, collections=None, validate_shape=True,
caching_device=None, name=None, variable_def=None, dtype=None,
expected_shape=None, import_scope=None, constraint=None, use_resource=None,
synchronization=tf.VariableSynchronization.AUTO,
aggregation=tf... | |
doc_25322 | New in Django 4.0. Tells Django which value should be returned when the expression is used to apply a function over an empty result set. Defaults to NotImplemented which forces the expression to be computed on the database. | |
doc_25323 |
Bases: matplotlib.backend_bases.RendererBase The renderer handles drawing/rendering operations. This is a minimal do-nothing class that can be used to get started when writing a new backend. Refer to backend_bases.RendererBase for documentation of the methods. draw_image(gc, x, y, im)[source]
Draw an RGBA image. ... | |
doc_25324 | Return the intensity of the red, green, and blue (RGB) components in the color color_number, which must be between 0 and COLORS - 1. Return a 3-tuple, containing the R,G,B values for the given color, which will be between 0 (no component) and 1000 (maximum amount of component). | |
doc_25325 |
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters
valuesarray
The input v... | |
doc_25326 | Removes the pruning reparameterization from a module. The pruned parameter named name remains permanently pruned, and the parameter named name+'_orig' is removed from the parameter list. Similarly, the buffer named name+'_mask' is removed from the buffers. Note Pruning itself is NOT undone or reversed! | |
doc_25327 |
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_25328 | Make sure nframes is correct, and close the file if it was opened by wave. This method is called upon object collection. It will raise an exception if the output stream is not seekable and nframes does not match the number of frames actually written. | |
doc_25329 | Return a tuple containing names of free variables in this function. | |
doc_25330 |
Return DataFrame with duplicate rows removed. Considering certain columns is optional. Indexes, including time indexes are ignored. Parameters
subset:column label or sequence of labels, optional
Only consider certain columns for identifying duplicates, by default use all of the columns.
keep:{‘first’, ‘last’,... | |
doc_25331 | The application registry provides the following public API. Methods that aren’t listed below are considered private and may change without notice. | |
doc_25332 | tf.compat.v1.nn.conv2d(
input, filter=None, strides=None, padding=None, use_cudnn_on_gpu=True,
data_format='NHWC', dilations=[1, 1, 1, 1], name=None, filters=None
)
Given an input tensor of shape [batch, in_height, in_width, in_channels] and a filter / kernel tensor of shape [filter_height, filter_width, in_ch... | |
doc_25333 |
Create a new composite transform that is the result of applying transform a then transform b. You will generally not call this constructor directly but write a +
b instead, which will automatically choose the best kind of composite transform instance to create. | |
doc_25334 |
Total bytes consumed by the elements of the array. Notes Does not include memory consumed by non-element attributes of the array object. Examples >>> x = np.zeros((3,5,2), dtype=np.complex128)
>>> x.nbytes
480
>>> np.prod(x.shape) * x.itemsize
480 | |
doc_25335 |
Perform a merge by key distance. This is similar to a left-join except that we match on nearest key rather than equal keys. Both DataFrames must be sorted by the key. For each row in the left DataFrame:
A “backward” search selects the last row in the right DataFrame whose ‘on’ key is less than or equal to the left... | |
doc_25336 | See Migration guide for more details. tf.compat.v1.io.match_filenames_once, tf.compat.v1.train.match_filenames_once
tf.io.match_filenames_once(
pattern, name=None
)
Note: The order of the files returned is deterministic.
Args
pattern A file pattern (glob), or 1D tensor of file patterns.
name A n... | |
doc_25337 |
Applies the element-wise function: Softplus(x)=1β∗log(1+exp(β∗x))\text{Softplus}(x) = \frac{1}{\beta} * \log(1 + \exp(\beta * x))
SoftPlus is a smooth approximation to the ReLU function and can be used to constrain the output of a machine to always be positive. For numerical stability the implementation reverts ... | |
doc_25338 | tf.compat.v1.metrics.precision_at_k(
labels, predictions, k, class_id=None, weights=None, metrics_collections=None,
updates_collections=None, name=None
)
If class_id is specified, we calculate precision by considering only the entries in the batch for which class_id is in the top-k highest predictions, and com... | |
doc_25339 | Example: fav_color = request.session.pop('fav_color', 'blue') | |
doc_25340 |
Return the distance between x and the nearest adjacent number. Parameters
xarray_like
Values to find the spacing of.
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... | |
doc_25341 |
The degree of the series. New in version 1.5.0. Returns
degreeint
Degree of the series, one less than the number of coefficients. | |
doc_25342 | Write the bytestring in str to file descriptor fd at position of offset, leaving the file offset unchanged. Return the number of bytes actually written. Availability: Unix. New in version 3.3. | |
doc_25343 |
Alias for get_facecolor. | |
doc_25344 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.RandomHeight
tf.keras.layers.experimental.preprocessing.RandomHeight(
factor, interpolation='bilinear', seed=None, name=None, **kwargs
)
Adjusts the height of a batch of images by a random factor. The input should be a 4-D... | |
doc_25345 |
Return Timedelta Array/Index as object ndarray of datetime.timedelta objects. Returns
timedeltas:ndarray[object] | |
doc_25346 | Compute the kernel density estimate at points X with the given kernel, using the distance metric specified at tree creation. Parameters
Xarray-like of shape (n_samples, n_features)
An array of points to query. Last dimension should match dimension of training data.
hfloat
the bandwidth of the kernel
kernels... | |
doc_25347 |
Fit model to data. Parameters
Xarray-like of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of predictors.
Yarray-like of shape (n_samples,) or (n_samples, n_targets)
Target vectors, where n_samples is the number of samples and n_targets... | |
doc_25348 |
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_25349 | The subpath within the ZIP file where modules are searched. This is the empty string for zipimporter objects which point to the root of the ZIP file. | |
doc_25350 | class sklearn.preprocessing.OrdinalEncoder(*, categories='auto', dtype=<class 'numpy.float64'>, handle_unknown='error', unknown_value=None) [source]
Encode categorical features as an integer array. The input to this transformer should be an array-like of integers or strings, denoting the values taken on by categorica... | |
doc_25351 | See Migration guide for more details. tf.compat.v1.raw_ops.MutableHashTable
tf.raw_ops.MutableHashTable(
key_dtype, value_dtype, container='', shared_name='',
use_node_name_sharing=False, name=None
)
This op creates a mutable hash table, specifying the type of its keys and values. Each value must be a scalar... | |
doc_25352 | Serialize objects to ASCII-encoded JSON. If this is disabled, the JSON returned from jsonify will contain Unicode characters. This has security implications when rendering the JSON into JavaScript in templates, and should typically remain enabled. Default: True | |
doc_25353 | tf.argmax
tf.math.argmax(
input, axis=None, output_type=tf.dtypes.int64, name=None
)
In case of identity returns the smallest index. For example:
A = tf.constant([2, 20, 30, 3, 6])
tf.math.argmax(A) # A[2] is maximum in tensor A
<tf.Tensor: shape=(), dtype=int64, numpy=2>
B = tf.constant([[2, 20, 30, 3, 6], [3... | |
doc_25354 | Convert a mapping object or a sequence of two-element tuples, which may contain str or bytes objects, to a percent-encoded ASCII text string. If the resultant string is to be used as a data for POST operation with the urlopen() function, then it should be encoded to bytes, otherwise it would result in a TypeError. The ... | |
doc_25355 |
Alias for get_linewidth. | |
doc_25356 | Control what happens when the cursor of a window is moved off the edge of the window or scrolling region, either as a result of a newline action on the bottom line, or typing the last character of the last line. If flag is False, the cursor is left on the bottom line. If flag is True, the window is scrolled up one line... | |
doc_25357 | Return the current Thread object, corresponding to the caller’s thread of control. If the caller’s thread of control was not created through the threading module, a dummy thread object with limited functionality is returned. | |
doc_25358 |
Upsamples the input to either the given size or the given scale_factor Warning This function is deprecated in favor of torch.nn.functional.interpolate(). This is equivalent with nn.functional.interpolate(...). Note This operation may produce nondeterministic gradients when given tensors on a CUDA device. See Repro... | |
doc_25359 | This attribute is a lazily computed tuple (possibly empty) of unique type variables found in __args__: >>> from typing import TypeVar
>>> T = TypeVar('T')
>>> list[T].__parameters__
(~T,) | |
doc_25360 | Returns True if the scrap module is currently initialized. get_init() -> bool Gets the scrap module's initialization state.
Returns:
True if the pygame.scrap module is currently initialized, False otherwise
Return type:
bool New in pygame 1.9.5. | |
doc_25361 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedMul
tf.raw_ops.QuantizedMul(
x, y, min_x, max_x, min_y, max_y, Toutput=tf.dtypes.qint32, name=None
)
Args
x A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16.
y A Tensor. Must be one of the follo... | |
doc_25362 |
Set the locator of the minor ticker. Parameters
locatorLocator
Examples using matplotlib.axis.Axis.set_minor_locator
Secondary Axis
Date tick labels
Anatomy of a figure
Centering labels between ticks
Date Demo Convert
Major and minor ticks | |
doc_25363 |
Converts a tuple of index arrays into an array of flat indices, applying boundary modes to the multi-index. Parameters
multi_indextuple of array_like
A tuple of integer arrays, one array for each dimension.
dimstuple of ints
The shape of array into which the indices from multi_index apply.
mode{‘raise’, ‘... | |
doc_25364 | Same as buffer(), but allows customizing the style of the buffer.
end_cap_style can be round (1), flat (2), or square (3).
join_style can be round (1), mitre (2), or bevel (3). Mitre ratio limit (mitre_limit) only affects mitered join style. | |
doc_25365 | See Migration guide for more details. tf.compat.v1.raw_ops.LeakyReluGrad
tf.raw_ops.LeakyReluGrad(
gradients, features, alpha=0.2, name=None
)
Args
gradients A Tensor. Must be one of the following types: half, bfloat16, float32, float64. The backpropagated gradients to the corresponding LeakyRelu operat... | |
doc_25366 |
Remove the conflicts that caused due gathering implied features flags. Parameters
‘flags’ list, compiler flags
flags should be sorted from the lowest to the highest interest. Returns
list, filtered from any conflicts.
Examples >>> self.cc_normalize_flags(['-march=armv8.2-a+fp16', '-march=armv8.2-a+dotprod... | |
doc_25367 | See Migration guide for more details. tf.compat.v1.raw_ops.DrawBoundingBoxes
tf.raw_ops.DrawBoundingBoxes(
images, boxes, name=None
)
Outputs a copy of images but draws on top of the pixels zero or more bounding boxes specified by the locations in boxes. The coordinates of the each bounding box in boxes are enco... | |
doc_25368 | Delete name from sys.modules. | |
doc_25369 |
The number of days in the month. | |
doc_25370 | Return a dictionary containing traceback information. This is the main extension point for customizing exception reports, for example: from django.views.debug import ExceptionReporter
class CustomExceptionReporter(ExceptionReporter):
def get_traceback_data(self):
data = super().get_traceback_data()
... | |
doc_25371 | # args & kwargs are optional, for models which take positional/keyword arguments.
...
How to implement an entrypoint? Here is a code snippet specifies an entrypoint for resnet18 model if we expand the implementation in pytorch/vision/hubconf.py. In most case importing the right function in hubconf.py is suffic... | |
doc_25372 | Return the thread stack size used when creating new threads. The optional size argument specifies the stack size to be used for subsequently created threads, and must be 0 (use platform or configured default) or a positive integer value of at least 32,768 (32 KiB). If size is not specified, 0 is used. If changing the t... | |
doc_25373 |
Calculate all central image moments up to a certain order. The center coordinates (cr, cc) can be calculated from the raw moments as: {M[1, 0] / M[0, 0], M[0, 1] / M[0, 0]}. Note that central moments are translation invariant but not scale and rotation invariant. Parameters
imagenD double or uint8 array
Rasteri... | |
doc_25374 |
Hide the entire index / column headers, or specific rows / columns from display. New in version 1.4.0. Parameters
subset:label, array-like, IndexSlice, optional
A valid 1d input or single key along the axis within DataFrame.loc[<subset>, :] or DataFrame.loc[:, <subset>] depending upon axis, to limit data to s... | |
doc_25375 | Convert 32-bit positive integers from network to host byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 4-byte swap operation. | |
doc_25376 |
Return whether face is colored. | |
doc_25377 | tf.compat.v1.convert_to_tensor_or_sparse_tensor(
value, dtype=None, name=None
)
Args
value A SparseTensor, SparseTensorValue, or an object whose type has a registered Tensor conversion function.
dtype Optional element type for the returned tensor. If missing, the type is inferred from the type of va... | |
doc_25378 | See Migration guide for more details. tf.compat.v1.raw_ops.MapUnstageNoKey
tf.raw_ops.MapUnstageNoKey(
indices, dtypes, capacity=0, memory_limit=0, container='',
shared_name='', name=None
)
from the underlying container. If the underlying container does not contain elements, the op will block until it does.
... | |
doc_25379 |
Return the Transform instance used by this artist. | |
doc_25380 |
Set the linestyle of the line. Parameters
ls{'-', '--', '-.', ':', '', (offset, on-off-seq), ...}
Possible values:
A string:
linestyle description
'-' or 'solid' solid line
'--' or 'dashed' dashed line
'-.' or 'dashdot' dash-dotted line
':' or 'dotted' dotted line
'none', 'None', ' ', or '' draw... | |
doc_25381 |
Clear the axis. This resets axis properties to their default values: the label the scale locators, formatters and ticks major and minor grid units registered callbacks | |
doc_25382 | ABC for classes that provide the __len__() method. | |
doc_25383 | Sent with a preflight request to indicate which headers will be sent with the cross origin request. Set access_control_allow_headers on the response to indicate which headers are allowed. | |
doc_25384 |
Attributes
memory_limit_mb repeated float memory_limit_mb
priority repeated int32 priority | |
doc_25385 | human readable description of operation argument | |
doc_25386 | Element class. This class defines the Element interface, and provides a reference implementation of this interface. The element name, attribute names, and attribute values can be either bytestrings or Unicode strings. tag is the element name. attrib is an optional dictionary, containing element attributes. extra contai... | |
doc_25387 |
Set new levels on MultiIndex. Defaults to returning new index. Parameters
levels:sequence or list of sequence
New level(s) to apply.
level:int, level name, or sequence of int/level names (default None)
Level(s) to set (None for all levels).
inplace:bool
If True, mutates in place. Deprecated since versi... | |
doc_25388 |
Draw contour regions on an unstructured triangular grid. The triangulation can be specified in one of two ways; either tricontourf(triangulation, ...)
where triangulation is a Triangulation object, or tricontourf(x, y, ...)
tricontourf(x, y, triangles, ...)
tricontourf(x, y, triangles=triangles, ...)
tricontourf(x, ... | |
doc_25389 |
Return sample standard deviation over requested axis. Normalized by N-1 by default. This can be changed using the ddof argument. Parameters
axis:{index (0)}
skipna:bool, default True
Exclude NA/null values. If an entire row/column is NA, the result will be NA.
level:int or level name, default None
If the ... | |
doc_25390 | Return instr if opname is found, otherwise throws AssertionError. | |
doc_25391 | Set the maximum depth of the Python interpreter stack to limit. This limit prevents infinite recursion from causing an overflow of the C stack and crashing Python. The highest possible limit is platform-dependent. A user may need to set the limit higher when they have a program that requires deep recursion and a platfo... | |
doc_25392 | See Migration guide for more details. tf.compat.v1.UnconnectedGradients The gradient of y with respect to x can be zero in two different ways: there could be no differentiable path in the graph connecting x to y (and so we can statically prove that the gradient is zero) or it could be that runtime values of tensors in... | |
doc_25393 | 'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.SessionAuthentication',
]
}
You can also set the authentication scheme on a per-view or per-viewset basis, using the APIView class-based views. from rest_framework.authenticat... | |
doc_25394 | All arguments are optional and default to 0. Arguments may be integers or floats, and may be positive or negative. Only days, seconds and microseconds are stored internally. Arguments are converted to those units: A millisecond is converted to 1000 microseconds. A minute is converted to 60 seconds. An hour is converte... | |
doc_25395 | Read up to n bytes from the memory buffer. If n is not specified or negative, all bytes are returned. | |
doc_25396 |
Return str(self). | |
doc_25397 |
Set the JoinStyle for the collection (for all its elements). Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_25398 | Compile a regular expression pattern into a regular expression object, which can be used for matching using its match(), search() and other methods, described below. The expression’s behaviour can be modified by specifying a flags value. Values can be any of the following variables, combined using bitwise OR (the | ope... | |
doc_25399 | class sklearn.ensemble.StackingRegressor(estimators, final_estimator=None, *, cv=None, n_jobs=None, passthrough=False, verbose=0) [source]
Stack of estimators with a final regressor. Stacked generalization consists in stacking the output of individual estimator and use a regressor to compute the final prediction. Sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.