_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_29400 |
File-based animated gif writer. Frames are written to temporary files on disk and then stitched together at the end. __init__(*args, **kwargs)[source]
Methods
__init__(*args, **kwargs)
bin_path() Return the binary path to the commandline tool used by a specific subclass.
cleanup() [Deprecated]
finish() F... | |
doc_29401 |
Return the clip path. | |
doc_29402 | Return the Euclidean distance between two points p and q, each given as a sequence (or iterable) of coordinates. The two points must have the same dimension. Roughly equivalent to: sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q)))
New in version 3.8. | |
doc_29403 | Add a director as parent. | |
doc_29404 | The view function that would be used to serve the URL | |
doc_29405 | The metadata of this band. The functionality is identical to GDALRaster.metadata. | |
doc_29406 | tf.losses.MeanSquaredLogarithmicError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.MeanSquaredLogarithmicError
tf.keras.losses.MeanSquaredLogarithmicError(
reduction=losses_utils.ReductionV2.AUTO,
name='mean_squared_logarithmic_error'
)
loss = square(log(y_true... | |
doc_29407 | Optional type. Optional[X] is equivalent to Union[X, None]. Note that this is not the same concept as an optional argument, which is one that has a default. An optional argument with a default does not require the Optional qualifier on its type annotation just because it is optional. For example: def foo(arg: int = 0) ... | |
doc_29408 |
pygame object for storing rectangular coordinates Rect(left, top, width, height) -> Rect Rect((left, top), (width, height)) -> Rect Rect(object) -> Rect Pygame uses Rect objects to store and manipulate rectangular areas. A Rect can be created from a combination of left, top, width, and height values. Rects can als... | |
doc_29409 |
Integer representation of the values. Returns
ndarray
An ndarray with int64 dtype. | |
doc_29410 |
Return a short string version of the tick value. Defaults to the position-independent long value. | |
doc_29411 | Return the number of non-overlapping occurrences of substring sub in the range [start, end]. Optional arguments start and end are interpreted as in slice notation. | |
doc_29412 |
C-Support Vector Classification. The implementation is based on libsvm. The fit time scales at least quadratically with the number of samples and may be impractical beyond tens of thousands of samples. For large datasets consider using LinearSVC or SGDClassifier instead, possibly after a Nystroem transformer. The mul... | |
doc_29413 | Sticky bit. When this bit is set on a directory it means that a file in that directory can be renamed or deleted only by the owner of the file, by the owner of the directory, or by a privileged process. | |
doc_29414 |
Returns the average of the array elements along given axis. Masked entries are ignored, and result elements which are not finite will be masked. Refer to numpy.mean for full documentation. See also numpy.ndarray.mean
corresponding function for ndarrays numpy.mean
Equivalent function numpy.ma.average
Weighted a... | |
doc_29415 | See Migration guide for more details. tf.compat.v1.raw_ops.Unbatch
tf.raw_ops.Unbatch(
batched_tensor, batch_index, id, timeout_micros, container='',
shared_name='', name=None
)
An instance of Unbatch either receives an empty batched_tensor, in which case it asynchronously waits until the values become avail... | |
doc_29416 | initialize all imported pygame modules init() -> (numpass, numfail) Initialize all imported pygame modules. No exceptions will be raised if a module fails, but the total number if successful and failed inits will be returned as a tuple. You can always initialize individual modules manually, but pygame.init() is a con... | |
doc_29417 | Return the value of the (natural) exponential function e**x at the given number. The result is correctly rounded using the ROUND_HALF_EVEN rounding mode. >>> Decimal(1).exp()
Decimal('2.718281828459045235360287471')
>>> Decimal(321).exp()
Decimal('2.561702493119680037517373933E+139') | |
doc_29418 | Generate the file names in a directory tree by walking the tree either top-down or bottom-up. For each directory in the tree rooted at directory top (including top itself), it yields a 3-tuple (dirpath, dirnames,
filenames). dirpath is a string, the path to the directory. dirnames is a list of the names of the subdirec... | |
doc_29419 |
Return the Transform instance used by this artist. | |
doc_29420 |
Return the transpose, which is by definition self. Returns
%(klass)s | |
doc_29421 |
Mask rows and/or columns of a 2D array that contain masked values. Mask whole rows and/or columns of a 2D array that contain masked values. The masking behavior is selected using the axis parameter. If axis is None, rows and columns are masked. If axis is 0, only rows are masked. If axis is 1 or -1, only columns are... | |
doc_29422 | Sets the data buffer unpack position to position. You should be careful about using get_position() and set_position(). | |
doc_29423 | The Click command group for registering CLI commands for this object. The commands are available from the flask command once the application has been discovered and blueprints have been registered. | |
doc_29424 | See Migration guide for more details. tf.compat.v1.initializers.tables_initializer
tf.compat.v1.tables_initializer(
name='init_all_tables'
)
See the Low Level Intro guide, for an example of usage.
Args
name Optional name for the initialization op.
Returns An Op that initializes all tables. Not... | |
doc_29425 | Raised when a future operation exceeds the given timeout. | |
doc_29426 |
Return symmetric conditional entropies associated with the VI. [1] The variation of information is defined as VI(X,Y) = H(X|Y) + H(Y|X). If X is the ground-truth segmentation, then H(X|Y) can be interpreted as the amount of under-segmentation and H(X|Y) as the amount of over-segmentation. In other words, a perfect ov... | |
doc_29427 |
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas. | |
doc_29428 | Allows control over sharing of browsing context group with cross-origin documents. Values must be a member of the werkzeug.http.COOP enum. | |
doc_29429 |
Returns the state of the optimizer as a dict. It contains two entries:
state - a dict holding current optimization state. Its content
differs between optimizer classes. param_groups - a dict containing all parameter groups | |
doc_29430 | See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingCenteredRMSPropParameters
tf.raw_ops.RetrieveTPUEmbeddingCenteredRMSPropParameters(
num_shards, shard_id, table_id=-1, table_name='', config='',
name=None
)
An op that retrieves optimization parameters from embedding to host memor... | |
doc_29431 | See Migration guide for more details. tf.compat.v1.keras.utils.register_keras_serializable
tf.keras.utils.register_keras_serializable(
package='Custom', name=None
)
This decorator injects the decorated class or function into the Keras custom object dictionary, so that it can be serialized and deserialized withou... | |
doc_29432 |
Returns True if the type of element is a scalar type. Parameters
elementany
Input argument, can be of any type and shape. Returns
valbool
True if element is a scalar type, False if it is not. See also ndim
Get the number of dimensions of an array Notes If you need a stricter way to identify a ... | |
doc_29433 | For scoped addresses as defined by RFC 4007, this property identifies the particular zone of the address’s scope that the address belongs to, as a string. When no scope zone is specified, this property will be None. | |
doc_29434 |
Set the value array from array-like A. Parameters
Aarray-like or None
The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A. | |
doc_29435 | See Migration guide for more details. tf.compat.v1.keras.constraints.deserialize
tf.keras.constraints.deserialize(
config, custom_objects=None
) | |
doc_29436 |
Call self as a function. | |
doc_29437 |
Passive Aggressive Classifier Read more in the User Guide. Parameters
Cfloat, default=1.0
Maximum step size (regularization). Defaults to 1.0.
fit_interceptbool, default=True
Whether the intercept should be estimated or not. If False, the data is assumed to be already centered.
max_iterint, default=1000
... | |
doc_29438 | See Migration guide for more details. tf.compat.v1.raw_ops.Erf
tf.raw_ops.Erf(
x, name=None
)
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64.
name A name for the operation (optional).
Returns A Tensor. Has the same type as x. | |
doc_29439 |
Abstract base class for classes implementing mesh refinement. A TriRefiner encapsulates a Triangulation object and provides tools for mesh refinement and interpolation. Derived classes must implement:
refine_triangulation(return_tri_index=False, **kwargs) , where the optional keyword arguments kwargs are defined in... | |
doc_29440 | Each non-abstract Model class must have a Manager instance added to it. Django ensures that in your model class you have at least a default Manager specified. If you don’t add your own Manager, Django will add an attribute objects containing default Manager instance. If you add your own Manager instance attribute, the ... | |
doc_29441 |
Integrate. Return a series instance that is the definite integral of the current series. Parameters
mnon-negative int
The number of integrations to perform.
karray_like
Integration constants. The first constant is applied to the first integration, the second to the second, and so on. The list of values must... | |
doc_29442 | Index Attribute Meaning
0 gr_name the name of the group
1 gr_passwd the (encrypted) group password; often empty
2 gr_gid the numerical group ID
3 gr_mem all the group member’s user names The gid is an integer, name and password are strings, and the member list is a list of strings. (Note that most users are ... | |
doc_29443 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_29444 |
Define the picking behavior of the artist. Parameters
pickerNone or bool or float or callable
This can be one of the following:
None: Picking is disabled for this artist (default). A boolean: If True then picking will be enabled and the artist will fire a pick event if the mouse event is over the artist. A fl... | |
doc_29445 |
Transform functor that applies a sequence of transforms tseq component-wise to each submatrix at dim in a way compatible with torch.stack(). Example::
x = torch.stack([torch.range(1, 10), torch.range(1, 10)], dim=1) t = StackTransform([ExpTransform(), identity_transform], dim=1) y = t(x) | |
doc_29446 | The dictionary of converters. This can be modified after the class was created, but will only affect rules added after the modification. If the rules are defined with the list passed to the class, the converters parameter to the constructor has to be used instead. | |
doc_29447 |
Extract DAISY feature descriptors densely for the given image. DAISY is a feature descriptor similar to SIFT formulated in a way that allows for fast dense extraction. Typically, this is practical for bag-of-features image representations. The implementation follows Tola et al. [1] but deviate on the following points... | |
doc_29448 | '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_29449 |
Convert strings in the Series/Index to be casefolded. New in version 0.25.0. Equivalent to str.casefold(). Returns
Series or Index of object
See also Series.str.lower
Converts all characters to lowercase. Series.str.upper
Converts all characters to uppercase. Series.str.title
Converts first character o... | |
doc_29450 | class smtplib.SMTP(host='', port=0, local_hostname=None, [timeout, ]source_address=None)
An SMTP instance encapsulates an SMTP connection. It has methods that support a full repertoire of SMTP and ESMTP operations. If the optional host and port parameters are given, the SMTP connect() method is called with those para... | |
doc_29451 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizeAndDequantize
tf.raw_ops.QuantizeAndDequantize(
input, signed_input=True, num_bits=8, range_given=False, input_min=0,
input_max=0, name=None
)
Args
input A Tensor. Must be one of the following types: bfloat16, half, float32, float64.... | |
doc_29452 | See Migration guide for more details. tf.compat.v1.raw_ops.UnravelIndex
tf.raw_ops.UnravelIndex(
indices, dims, name=None
)
Example: y = tf.unravel_index(indices=[2, 5, 7], dims=[3, 3])
# 'dims' represent a hypothetical (3, 3) tensor of indices:
# [[0, 1, *2*],
# [3, 4, *5*],
# [6, *7*, 8]]
# For each entry fr... | |
doc_29453 | Parses a range header into a ContentRange object or None if parsing is not possible. Changelog New in version 0.7. Parameters
value (Optional[str]) – a content range header to be parsed.
on_update (Optional[Callable[[werkzeug.datastructures.ContentRange], None]]) – an optional callable that is called every time ... | |
doc_29454 | Object that is less than anything (except itself). Used to test mixed type comparison. | |
doc_29455 |
Return the Transform instance used by this artist. | |
doc_29456 | Return True if the call was successfully cancelled or finished running. | |
doc_29457 |
Scalar method identical to the corresponding array attribute. Please see ndarray.choose. | |
doc_29458 |
Parameters
Xfloat or int, ndarray or scalar
The data value(s) to convert to RGBA. For floats, X should be in the interval [0.0, 1.0] to return the RGBA values X*100 percent along the Colormap line. For integers, X should be in the interval [0, Colormap.N) to return RGBA values indexed from the Colormap with ind... | |
doc_29459 |
Interpret a buffer as a 1-dimensional array. Parameters
bufferbuffer_like
An object that exposes the buffer interface.
dtypedata-type, optional
Data-type of the returned array; default: float.
countint, optional
Number of items to read. -1 means all data in the buffer.
offsetint, optional
Start read... | |
doc_29460 | re.MULTILINE
When specified, the pattern character '^' matches at the beginning of the string and at the beginning of each line (immediately following each newline); and the pattern character '$' matches at the end of the string and at the end of each line (immediately preceding each newline). By default, '^' matches... | |
doc_29461 |
Call self as a function. | |
doc_29462 |
Generate C preprocessor definitions and include headers of a CPU feature. Parameters
‘feature_name’: str
CPU feature name in uppercase. ‘tabs’: int
if > 0, align the generated strings to the right depend on number of tabs. Returns
str, generated C preprocessor
Examples >>> self.feature_c_preprocessor("S... | |
doc_29463 | Follow RFC 2965 rules on unverifiable transactions (usually, an unverifiable transaction is one resulting from a redirect or a request for an image hosted on another site). If this is false, cookies are never blocked on the basis of verifiability | |
doc_29464 |
Return name of a marker XObject representing the given path. | |
doc_29465 | sklearn.metrics.precision_score(y_true, y_pred, *, labels=None, pos_label=1, average='binary', sample_weight=None, zero_division='warn') [source]
Compute the precision. The precision is the ratio tp / (tp + fp) where tp is the number of true positives and fp the number of false positives. The precision is intuitively... | |
doc_29466 |
Return the font style. Values are: 'normal', 'italic' or 'oblique'. | |
doc_29467 | See Migration guide for more details. tf.compat.v1.raw_ops.Fill
tf.raw_ops.Fill(
dims, value, name=None
)
This operation creates a tensor of shape dims and fills it with value. For example: # Output tensor has shape [2, 3].
fill([2, 3], 9) ==> [[9, 9, 9]
[9, 9, 9]]
tf.fill differs from tf.c... | |
doc_29468 | """
May be applied as a `default=...` value on a serializer field.
Returns the current user.
"""
requires_context = True
def __call__(self, serializer_field):
return serializer_field.context['request'].user
When serializing the instance, default will be used if the object attribute or ... | |
doc_29469 | Returns the valid methods that match for a given path. Changelog New in version 0.7. Parameters
path_info (Optional[str]) – Return type
Iterable[str] | |
doc_29470 |
Return a context manager for temporarily changing rcParams. Parameters
rcdict
The rcParams to temporarily set.
fnamestr or path-like
A file with Matplotlib rc settings. If both fname and rc are given, settings from rc take precedence. See also The matplotlibrc file
Examples Passing explicit values v... | |
doc_29471 |
Describes 52-53 week fiscal year. This is also known as a 4-4-5 calendar. It is used by companies that desire that their fiscal year always end on the same day of the week. It is a method of managing accounting periods. It is a common calendar structure for some industries, such as retail, manufacturing and parking i... | |
doc_29472 | See Migration guide for more details. tf.compat.v1.estimator.NanTensorHook, tf.compat.v1.train.NanTensorHook
tf.estimator.NanTensorHook(
loss_tensor, fail_on_nan_loss=True
)
Can either fail with exception or just stop training.
Args
loss_tensor Tensor, the loss tensor.
fail_on_nan_loss bool, wheth... | |
doc_29473 |
Return the complex conjugate, element-wise. The complex conjugate of a complex number is obtained by changing the sign of its imaginary part. Parameters
xarray_like
Input value.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a s... | |
doc_29474 |
Create a spreadsheet-style pivot table as a DataFrame. The levels in the pivot table will be stored in MultiIndex objects (hierarchical indexes) on the index and columns of the result DataFrame. Parameters
data:DataFrame
values:column to aggregate, optional
index:column, Grouper, array, or list of the previou... | |
doc_29475 | Set a new protocol. Switching protocol should only be done when both protocols are documented to support the switch. | |
doc_29476 |
Fit the SVM model according to the given training data. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples, n_samples)
Training vectors, where n_samples is the number of samples and n_features is the number of features. For kernel=”precomputed”, the expected shape of X is (n_... | |
doc_29477 | Decorator to indicate that annotations are not type hints. This works as class or function decorator. With a class, it applies recursively to all methods defined in that class (but not to methods defined in its superclasses or subclasses). This mutates the function(s) in place. | |
doc_29478 | tf.optimizers.schedules.serialize Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.schedules.serialize
tf.keras.optimizers.schedules.serialize(
learning_rate_schedule
) | |
doc_29479 |
Calls str.decode element-wise. The set of available codecs comes from the Python standard library, and may be extended at runtime. For more information, see the codecs module. Parameters
aarray_like of str or unicode
encodingstr, optional
The name of an encoding
errorsstr, optional
Specifies how to handle... | |
doc_29480 | Return the data associated with pathname. Raise OSError if the file wasn’t found. Changed in version 3.3: IOError used to be raised instead of OSError. | |
doc_29481 | Adds a function to the internal list of functions that should be called as part of closing down the response. Since 0.7 this function also returns the function that was passed so that this can be used as a decorator. Changelog New in version 0.6. Parameters
func (Callable[[], Any]) – Return type
Callable[[], Any... | |
doc_29482 | Return true if the lock is acquired. | |
doc_29483 | Retrieve a file or directory listing in the encoding specified by the encoding parameter at initialization. cmd should be an appropriate RETR command (see retrbinary()) or a command such as LIST or NLST (usually just the string 'LIST'). LIST retrieves a list of files and information about those files. NLST retrieves a ... | |
doc_29484 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_29485 |
Sets the learning rate of each parameter group according to cyclical learning rate policy (CLR). The policy cycles the learning rate between two boundaries with a constant frequency, as detailed in the paper Cyclical Learning Rates for Training Neural Networks. The distance between the two boundaries can be scaled on... | |
doc_29486 |
Alias for self._offset. | |
doc_29487 |
Align the ylabels of subplots in the same subplot column if label alignment is being done automatically (i.e. the label position is not manually set). Alignment persists for draw events after this is called. If a label is on the left, it is aligned with labels on Axes that also have their label on the left and that h... | |
doc_29488 |
Set parameters within this locator. | |
doc_29489 | tf.compat.v1.layers.batch_normalization(
inputs, axis=-1, momentum=0.99, epsilon=0.001, center=True, scale=True,
beta_initializer=tf.zeros_initializer(),
gamma_initializer=tf.ones_initializer(),
moving_mean_initializer=tf.zeros_initializer(),
moving_variance_initializer=tf.ones_initializer(), beta_r... | |
doc_29490 | A datetime of the user’s last login. | |
doc_29491 |
Alias for set_antialiased. | |
doc_29492 | 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_29493 | Returns a list of all known themes. | |
doc_29494 | Returns the underlying storage. | |
doc_29495 |
Least squares fit to data. Return a series instance that is the least squares fit to the data y sampled at x. The domain of the returned instance can be specified and this will often result in a superior fit with less chance of ill conditioning. Parameters
xarray_like, shape (M,)
x-coordinates of the M sample p... | |
doc_29496 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalDatasetToTFRecord
tf.raw_ops.ExperimentalDatasetToTFRecord(
input_dataset, filename, compression_type, name=None
)
Args
input_dataset A Tensor of type variant. A variant tensor representing the dataset to write.
filename A Tens... | |
doc_29497 |
Group Series using a mapper or by a Series of columns. A groupby operation involves some combination of splitting the object, applying a function, and combining the results. This can be used to group large amounts of data and compute operations on these groups. Parameters
by:mapping, function, label, or list of l... | |
doc_29498 | A list of formats used to attempt to convert a string to a valid datetime.datetime object, in addition to ISO 8601 formats. | |
doc_29499 | Applies a 2D max pooling over an input signal composed of several input planes. See MaxPool2d for details. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.