_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_4500 | Submit a coroutine to the given event loop. Thread-safe. Return a concurrent.futures.Future to wait for the result from another OS thread. This function is meant to be called from a different OS thread than the one where the event loop is running. Example: # Create a coroutine
coro = asyncio.sleep(1, result=3)
# Submi... | |
doc_4501 | The state of the font's strong style flag strong -> bool Gets or sets whether the font will be bold when drawing text. This default style value will be used for all text rendering and size calculations unless overridden specifically in a render or get_rect() call, via the 'style' parameter. | |
doc_4502 |
Evaluate a 2-D HermiteE series at points (x, y). This function returns the values: \[p(x,y) = \sum_{i,j} c_{i,j} * He_i(x) * He_j(y)\] The parameters x and y are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after conversion. In eith... | |
doc_4503 | Return the interpreter’s “thread switch interval”; see setswitchinterval(). New in version 3.2. | |
doc_4504 | Send dummy Change Cipher Spec (CCS) messages in TLS 1.3 handshake to make a TLS 1.3 connection look more like a TLS 1.2 connection. This option is only available with OpenSSL 1.1.1 and later. New in version 3.8. | |
doc_4505 |
Write the figure to a JPEG file. Parameters
filename_or_objstr or path-like or file-like
The file to write to. Other Parameters
pil_kwargsdict, optional
Additional keyword arguments that are passed to PIL.Image.Image.save when saving the figure. | |
doc_4506 |
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_4507 |
Return the url. | |
doc_4508 | See Migration guide for more details. tf.compat.v1.raw_ops.TileGrad
tf.raw_ops.TileGrad(
input, multiples, name=None
)
Since Tile takes an input and repeats the input multiples times along each dimension, TileGrad takes in multiples and aggregates each repeated tile of input into output.
Args
input A Te... | |
doc_4509 |
Context manager that manages autograd profiler state and holds a summary of results. Under the hood it just records events of functions being executed in C++ and exposes those events to Python. You can wrap any code into it and it will only report runtime of PyTorch functions. Note: profiler is thread local and is au... | |
doc_4510 |
Provides a convenient view on arrays of string and unicode values. Note The chararray class exists for backwards compatibility with Numarray, it is not recommended for new development. Starting from numpy 1.4, if one needs arrays of strings, it is recommended to use arrays of dtype object_, string_ or unicode_, and ... | |
doc_4511 |
True if this transform is separable in the x- and y- dimensions. | |
doc_4512 | To access incoming request data, you can use the global request object. Flask parses incoming request data for you and gives you access to it through that global object. Internally Flask makes sure that you always get the correct data for the active thread if you are in a multithreaded environment. This is a proxy. See... | |
doc_4513 | See Migration guide for more details. tf.compat.v1.raw_ops.DeleteMultiDeviceIterator
tf.raw_ops.DeleteMultiDeviceIterator(
multi_device_iterator, iterators, deleter, name=None
)
Args
multi_device_iterator A Tensor of type resource. A handle to the multi device iterator to delete.
iterators A list ... | |
doc_4514 | Returns the textual or numeric representation of logging level level. If level is one of the predefined levels CRITICAL, ERROR, WARNING, INFO or DEBUG then you get the corresponding string. If you have associated levels with names using addLevelName() then the name you have associated with level is returned. If a numer... | |
doc_4515 | Return a datetime corresponding to the ISO calendar date specified by year, week and day. The non-date components of the datetime are populated with their normal default values. This is the inverse of the function datetime.isocalendar(). New in version 3.8. | |
doc_4516 |
Return class labels or probabilities for X for each estimator. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of features. Returns
probabilities_or_labels
If voting='soft' and flatten_transf... | |
doc_4517 | Raised when a file operation (such as os.remove()) is requested on a directory. Corresponds to errno EISDIR. | |
doc_4518 |
Bases: object Load and manage a collection of image files. Parameters
load_patternstr or list of str
Pattern string or list of strings to load. The filename path can be absolute or relative.
conserve_memorybool, optional
If True, ImageCollection does not keep more than one in memory at a specific time. Othe... | |
doc_4519 | Maximum number of characters in the representation for an integer. Digits are dropped from the middle. The default is 40. | |
doc_4520 |
Returns numpy array of python datetime.date objects. Namely, the date part of Timestamps without time and timezone information. | |
doc_4521 | Codec details when looking up the codec registry. The constructor arguments are stored in attributes of the same name:
name
The name of the encoding.
encode
decode
The stateless encoding and decoding functions. These must be functions or methods which have the same interface as the encode() and decode() met... | |
doc_4522 |
Clear the current axes. | |
doc_4523 |
Get a mask, or integer index, of the features selected Parameters
indicesbool, default=False
If True, the return value will be an array of integers, rather than a boolean mask. Returns
supportarray
An index that selects the retained features from a feature vector. If indices is False, this is a boolean ... | |
doc_4524 |
Fit the label sets binarizer, storing classes_. Parameters
yiterable of iterables
A set of labels (any orderable and hashable object) for each sample. If the classes parameter is set, y will not be iterated. Returns
selfreturns this MultiLabelBinarizer instance | |
doc_4525 | In addition to the 'widget' key described in Widget.get_context(), MultiWidget adds a widget['subwidgets'] key. These can be looped over in the widget template: {% for subwidget in widget.subwidgets %}
{% include subwidget.template_name with widget=subwidget %}
{% endfor %} | |
doc_4526 | tty.setraw(fd, when=termios.TCSAFLUSH)
Change the mode of the file descriptor fd to raw. If when is omitted, it defaults to termios.TCSAFLUSH, and is passed to termios.tcsetattr().
tty.setcbreak(fd, when=termios.TCSAFLUSH)
Change the mode of file descriptor fd to cbreak. If when is omitted, it defaults to termi... | |
doc_4527 | Reset the context variable to the value it had before the ContextVar.set() that created the token was used. For example: var = ContextVar('var')
token = var.set('new value')
# code that uses 'var'; var.get() returns 'new value'.
var.reset(token)
# After the reset call the var has no value again, so
# var.get() would ... | |
doc_4528 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_4529 | An alias for Treeview.move(). | |
doc_4530 | Copies parameters and buffers from state_dict into this module and its descendants. If strict is True, then the keys of state_dict must exactly match the keys returned by this module’s state_dict() function. Parameters
state_dict (dict) – a dict containing parameters and persistent buffers.
strict (bool, optional)... | |
doc_4531 | Convert samples between 1-, 2-, 3- and 4-byte formats. Note In some audio formats, such as .WAV files, 16, 24 and 32 bit samples are signed, but 8 bit samples are unsigned. So when converting to 8 bit wide samples for these formats, you need to also add 128 to the result: new_frames = audioop.lin2lin(frames, old_width... | |
doc_4532 | Returns a tuple of Field objects that define the fields for this dataclass. Accepts either a dataclass, or an instance of a dataclass. Raises TypeError if not passed a dataclass or instance of one. Does not return pseudo-fields which are ClassVar or InitVar. | |
doc_4533 | Determine whether code is in tableC.2 (Control characters, union of C.2.1 and C.2.2). | |
doc_4534 | Token value for "==". | |
doc_4535 |
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation. | |
doc_4536 |
For each key, value pair in kwargs, check that value is an instance of one of _types; if not, raise an appropriate TypeError. As a special case, a None entry in _types is treated as NoneType. Examples >>> _api.check_isinstance((SomeClass, None), arg=arg) | |
doc_4537 |
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_4538 | Return the inverse hyperbolic cosine of x. | |
doc_4539 | Called when the parser presents minor warning information to the application. Parsing is expected to continue when this method returns, and document information will continue to be passed to the application. Raising an exception in this method will cause parsing to end. | |
doc_4540 |
Attributes
b bool b
f float f
func NameAttrList func
i int64 i
list ListValue list
placeholder string placeholder
s bytes s
shape TensorShapeProto shape
tensor TensorProto tensor
type DataType type Child Classes class ListValue | |
doc_4541 | Computes the one dimensional Fourier transform of real-valued input. The FFT of a real signal is Hermitian-symmetric, X[i] = conj(X[-i]) so the output contains only the positive frequencies below the Nyquist frequency. To compute the full output, use fft() Parameters
input (Tensor) – the real input tensor
n (int, ... | |
doc_4542 | tf.metrics.RootMeanSquaredError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.RootMeanSquaredError
tf.keras.metrics.RootMeanSquaredError(
name='root_mean_squared_error', dtype=None
)
Standalone usage:
m = tf.keras.metrics.RootMeanSquaredError()
m.update_state([[0,... | |
doc_4543 | If False (the default) only the direct contents of path will be offered as choices. If True, the directory will be descended into recursively and all descendants will be listed as choices. | |
doc_4544 | See Migration guide for more details. tf.compat.v1.app.flags.IntegerParser
tf.compat.v1.flags.IntegerParser(
lower_bound=None, upper_bound=None
)
Parsed value may be bounded to a given upper and lower bound. Methods convert
convert(
argument
)
Returns the int value of argument. flag_type
flag_type()
See ... | |
doc_4545 |
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal. | |
doc_4546 | CAN_J1939, in the CAN protocol family, is the SAE J1939 protocol. J1939 constants, documented in the Linux documentation. Availability: Linux >= 5.4. New in version 3.9. | |
doc_4547 | Format a warning the standard way. This returns a string which may contain embedded newlines and ends in a newline. line is a line of source code to be included in the warning message; if line is not supplied, formatwarning() will try to read the line specified by filename and lineno. | |
doc_4548 | See Migration guide for more details. tf.compat.v1.decode_base64, tf.compat.v1.io.decode_base64
tf.io.decode_base64(
input, name=None
)
Input may or may not have padding at the end. See EncodeBase64 for padding. Web-safe means that input must use - and _ instead of + and /.
Args
input A Tensor of type s... | |
doc_4549 |
The number of elements in the gentype. | |
doc_4550 |
A helper class to inspect an Artist and return information about its settable properties and their current values. Initialize the artist inspector with an Artist or an iterable of Artists. If an iterable is used, we assume it is a homogeneous sequence (all Artists are of the same type) and it is your responsibility t... | |
doc_4551 |
Return a copy. Returns
new_seriesseries
Copy of self. | |
doc_4552 | See Migration guide for more details. tf.compat.v1.math.xlogy
tf.math.xlogy(
x, y, name=None
)
Args
x A Tensor. Must be one of the following types: half, float32, float64, complex64, complex128.
y A Tensor. Must have the same type as x.
name A name for the operation (optional).
Retur... | |
doc_4553 | Iterate over all rules and check if the endpoint expects the arguments provided. This is for example useful if you have some URLs that expect a language code and others that do not and you want to wrap the builder a bit so that the current language code is automatically added if not provided but endpoints expect it. P... | |
doc_4554 | '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_4555 |
Divide other into self, and return a new masked array. | |
doc_4556 |
Forks the RNG, so that when you return, the RNG is reset to the state that it was previously in. Parameters
devices (iterable of CUDA IDs) – CUDA devices for which to fork the RNG. CPU RNG state is always forked. By default, fork_rng() operates on all devices, but will emit a warning if your machine has a lot of ... | |
doc_4557 |
Label-based “fancy indexing” function for DataFrame. Given equal-length arrays of row and column labels, return an array of the values corresponding to each (row, col) pair. Deprecated since version 1.2.0: DataFrame.lookup is deprecated, use DataFrame.melt and DataFrame.loc instead. For further details see Looking u... | |
doc_4558 |
Returns dtype for the base element of the subarrays, regardless of their dimension or shape. See also dtype.subdtype
Examples >>> x = numpy.dtype('8f')
>>> x.base
dtype('float32')
>>> x = numpy.dtype('i2')
>>> x.base
dtype('int16') | |
doc_4559 | Returns a new tensor with boolean elements representing if each element of input is real-valued or not. All real-valued types are considered real. Complex values are considered real when their imaginary part is 0. Parameters
input (Tensor) – the input tensor. Returns
A boolean tensor that is True where input is rea... | |
doc_4560 | Prepares a record for queuing. The object returned by this method is enqueued. The base implementation formats the record to merge the message, arguments, and exception information, if present. It also removes unpickleable items from the record in-place. You might want to override this method if you want to convert the... | |
doc_4561 |
Return the canvas width and height in display coords. | |
doc_4562 | tf.compat.v1.LMDBReader(
name=None, options=None
)
See ReaderBase for supported methods.
Args
name A name for the operation (optional).
options A LMDBRecordOptions object (optional). Eager Compatibility Readers are not compatible with eager execution. Instead, please use tf.data to get data into ... | |
doc_4563 | Exit code that means the command was used incorrectly, such as when the wrong number of arguments are given. Availability: Unix. | |
doc_4564 | @tf_contextlib.contextmanager
tf.variable_creator_scope(
variable_creator
)
variable_creator is expected to be a function with the following signature: def variable_creator(next_creator, **kwargs)
The creator is supposed to eventually call the next_creator to create a variable if it does want to create a variable... | |
doc_4565 |
Immutable ndarray-like of datetime64 data. Represented internally as int64, and which can be boxed to Timestamp objects that are subclasses of datetime and carry metadata. Parameters
data:array-like (1-dimensional), optional
Optional datetime-like data to construct index with.
freq:str or pandas offset object... | |
doc_4566 |
Returns True if obj is a PyTorch storage object. Parameters
obj (Object) – Object to test | |
doc_4567 | Set the cursor state. visibility can be set to 0, 1, or 2, for invisible, normal, or very visible. If the terminal supports the visibility requested, return the previous cursor state; otherwise raise an exception. On many terminals, the “visible” mode is an underline cursor and the “very visible” mode is a block cursor... | |
doc_4568 | Serialize an object to JSON written to a file object. Takes the same arguments as the built-in json.dump(), with some defaults from application configuration. Parameters
obj (Any) – Object to serialize to JSON.
fp (IO[str]) – File object to write JSON to.
app (Optional[Flask]) – Use this app’s config instead of t... | |
doc_4569 | Check for presence of docstrings. | |
doc_4570 | Prevents re-use of the same ECDH key for distinct SSL sessions. This improves forward secrecy but requires more computational resources. This option only applies to server sockets. New in version 3.3. | |
doc_4571 | See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.unwrap
tf.compat.v1.flags.tf_decorator.unwrap(
maybe_tf_decorator
)
Args
maybe_tf_decorator Any callable object.
Returns A tuple whose first element is an list of TFDecorator-derived objects that were applied to the fina... | |
doc_4572 | Returns an iterator over module parameters. This is typically passed to an optimizer. Parameters
recurse (bool) – if True, then yields parameters of this module and all submodules. Otherwise, yields only parameters that are direct members of this module. Yields
Parameter – module parameter Example: >>> for param ... | |
doc_4573 |
Alias for get_edgecolor. | |
doc_4574 |
Returns
transformTransform
The transform used for drawing secondart y-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in axis coordinates and the y-direction is in data coordinates
valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}... | |
doc_4575 | tf.experimental.numpy.conj(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.conj. | |
doc_4576 | Like Flask.add_url_rule() but for a blueprint. The endpoint for the url_for() function is prefixed with the name of the blueprint. Parameters
rule (str) –
endpoint (Optional[str]) –
view_func (Optional[Callable]) –
options (Any) – Return type
None | |
doc_4577 |
Return true when using mingw32 environment. | |
doc_4578 |
A stepwise constant function as a line with bounding edges or a filled plot. Parameters
valuesarray-like
The step heights.
edgesarray-like
The edge positions, with len(edges) == len(vals) + 1, between which the curve takes on vals values.
orientation{'vertical', 'horizontal'}, default: 'vertical'
The di... | |
doc_4579 | See Migration guide for more details. tf.compat.v1.signal.linear_to_mel_weight_matrix
tf.signal.linear_to_mel_weight_matrix(
num_mel_bins=20, num_spectrogram_bins=129, sample_rate=8000,
lower_edge_hertz=125.0, upper_edge_hertz=3800.0, dtype=tf.dtypes.float32,
name=None
)
Returns a weight matrix that can ... | |
doc_4580 |
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_4581 | Computes the element-wise angle (in radians) of the given input tensor. outi=angle(inputi)\text{out}_{i} = angle(\text{input}_{i})
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Note Starting in PyTorch 1.8, angle returns pi for negative real number... | |
doc_4582 |
Get the vertices of the path. Returns
(N, 2) numpy array
The coordinates of the vertices. | |
doc_4583 | Return the inverse hyperbolic tangent of x. There are two branch cuts: One extends from 1 along the real axis to ∞, continuous from below. The other extends from -1 along the real axis to -∞, continuous from above. | |
doc_4584 | Returns worker name of the node that owns this RRef. | |
doc_4585 |
Open or reopen the file (which also does File.seek(0)). The mode argument allows the same values as Python’s built-in open(). When reopening a file, mode will override whatever mode the file was originally opened with; None means to reopen with the original mode. It can be used as a context manager, e.g. with file.op... | |
doc_4586 | The full name of a template to use. Defaults to registration/password_reset_done.html if not supplied. | |
doc_4587 |
Returns an iterator over module buffers, yielding both the name of the buffer as well as the buffer itself. Parameters
prefix (str) – prefix to prepend to all buffer names.
recurse (bool) – if True, then yields buffers of this module and all submodules. Otherwise, yields only buffers that are direct members of t... | |
doc_4588 | An abstract base class for classes that implement object.__enter__() and object.__exit__(). A default implementation for object.__enter__() is provided which returns self while object.__exit__() is an abstract method which by default returns None. See also the definition of Context Manager Types. New in version 3.6. | |
doc_4589 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_4590 |
Set the marker fill style. Parameters
fs{'full', 'left', 'right', 'bottom', 'top', 'none'}
Possible values: 'full': Fill the whole marker with the markerfacecolor. 'left', 'right', 'bottom', 'top': Fill the marker half at the given side with the markerfacecolor. The other half of the marker is filled with mark... | |
doc_4591 | Return True if the string is empty or all characters in the string are ASCII, False otherwise. ASCII characters have code points in the range U+0000-U+007F. New in version 3.7. | |
doc_4592 | tf.experimental.numpy.logical_xor(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.logical_xor. | |
doc_4593 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArraySplitV2
tf.raw_ops.TensorArraySplitV2(
handle, value, lengths, flow_in, name=None
)
Args
handle A Tensor of type string.
value A Tensor.
lengths A Tensor of type int64.
flow_in A Tensor of type float32.
name A ... | |
doc_4594 | Raised by process_tokens() if detecting an ambiguous indent. Captured and handled in check(). | |
doc_4595 | tf.subtract Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.subtract, tf.compat.v1.subtract
tf.math.subtract(
x, y, name=None
)
Note: Subtract supports broadcasting. More about broadcasting here
Args
x A Tensor. Must be one of the following types: bfloat16, half, f... | |
doc_4596 |
Set multiple properties at once. Supported properties are
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha array-like or scalar or None
animated bool
antialiased or aa or antialiaseds bool or list of bools
array a... | |
doc_4597 | Exit dialog returning current selection. | |
doc_4598 | Report that the given example raised an unexpected exception. This method is provided to allow subclasses of DocTestRunner to customize their output; it should not be called directly. example is the example about to be processed. exc_info is a tuple containing information about the unexpected exception (as returned by ... | |
doc_4599 | In-place version of transpose() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.