_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_13500 |
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned. | |
doc_13501 | Return a tuple (rgid, egid, sgid) denoting the current process’s real, effective, and saved group ids. Availability: Unix. New in version 3.2. | |
doc_13502 | This method terminates the program, exiting with the specified status and, if given, it prints a message before that. The user can override this method to handle these steps differently: class ErrorCatchingArgumentParser(argparse.ArgumentParser):
def exit(self, status=0, message=None):
if status:
... | |
doc_13503 |
Return a new Index of the values selected by the indices. For internal compatibility with numpy arrays. Parameters
indices:array-like
Indices to be taken.
axis:int, optional
The axis over which to select values, always 0.
allow_fill:bool, default True
fill_value:scalar, default None
If allow_fill=True... | |
doc_13504 |
Set whether depth shading is performed on collection members. Parameters
depthshadebool
Whether to shade the patches in order to give the appearance of depth. | |
doc_13505 |
The Kullback-Leibler divergence Loss See KLDivLoss for details. Parameters
input – Tensor of arbitrary shape
target – Tensor of the same shape as input
size_average (bool, optional) – Deprecated (see reduction). By default, the losses are averaged over each loss element in the batch. Note that for some losses, ... | |
doc_13506 | tf.compat.v1.VariableScope(
reuse, name='', initializer=None, regularizer=None,
caching_device=None, partitioner=None, custom_getter=None,
name_scope='', dtype=tf.dtypes.float32, use_resource=None,
constraint=None
)
Many of the arguments we need for get_variable in a variable store are most easily hand... | |
doc_13507 |
Alias for set_antialiased. | |
doc_13508 | The raw HTTP request body as a bytestring. This is useful for processing data in different ways than conventional HTML forms: binary images, XML payload etc. For processing conventional form data, use HttpRequest.POST. You can also read from an HttpRequest using a file-like interface with HttpRequest.read() or HttpRequ... | |
doc_13509 | See Migration guide for more details. tf.compat.v1.fake_quant_with_min_max_vars, tf.compat.v1.quantization.fake_quant_with_min_max_vars
tf.quantization.fake_quant_with_min_max_vars(
inputs, min, max, num_bits=8, narrow_range=False, name=None
)
Fake-quantize the inputs tensor of type float via global float scalar... | |
doc_13510 | To Complex, Real adds the operations that work on real numbers. In short, those are: a conversion to float, math.trunc(), round(), math.floor(), math.ceil(), divmod(), //, %, <, <=, >, and >=. Real also provides defaults for complex(), real, imag, and conjugate(). | |
doc_13511 |
Create a surface plot. By default it will be colored in shades of a solid color, but it also supports colormapping by supplying the cmap argument. Note The rcount and ccount kwargs, which both default to 50, determine the maximum number of samples used in each direction. If the input data is larger, it will be downs... | |
doc_13512 | See Migration guide for more details. tf.compat.v1.raw_ops.BesselK0e
tf.raw_ops.BesselK0e(
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_13513 |
Set the JoinStyle for the collection (for all its elements). Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_13514 |
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_13515 |
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_13516 | Returns the feed in the given encoding as a string. | |
doc_13517 | test if the Surface requires locking mustlock() -> bool Returns True if the Surface is required to be locked to access pixel data. Usually pure software Surfaces do not require locking. This method is rarely needed, since it is safe and quickest to just lock all Surfaces as needed. All pygame functions will automatic... | |
doc_13518 |
The masked constant is a special case of MaskedArray, with a float datatype and a null shape. It is used to test whether a specific entry of a masked array is masked, or to mask one or several entries of a masked array: >>> x = ma.array([1, 2, 3], mask=[0, 1, 0])
>>> x[1] is ma.masked
True
>>> x[-1] = ma.masked
>>> x... | |
doc_13519 | Parameters
n – nonnegative integer
delay – nonnegative integer Turn turtle animation on/off and set delay for update drawings. If n is given, only each n-th regular screen update is really performed. (Can be used to accelerate the drawing of complex graphics.) When called without arguments, returns the currentl... | |
doc_13520 | See Migration guide for more details. tf.compat.v1.compat.dimension_at_index, tf.compat.v1.dimension_at_index
tf.compat.dimension_at_index(
shape, index
)
Until the release of TF 2.0, we need the legacy behavior of TensorShape to coexist with the new behavior. This utility is a bridge between the two. If you wan... | |
doc_13521 |
Determine if two arrays share memory. Warning This function can be exponentially slow for some inputs, unless max_work is set to a finite number or MAY_SHARE_BOUNDS. If in doubt, use numpy.may_share_memory instead. Parameters
a, bndarray
Input arrays
max_workint, optional
Effort to spend on solving the ov... | |
doc_13522 |
Modified Bessel function of the first kind, order 0. Usually denoted \(I_0\). Parameters
xarray_like of float
Argument of the Bessel function. Returns
outndarray, shape = x.shape, dtype = float
The modified Bessel function evaluated at each of the elements of x. See also
scipy.special.i0, scipy.s... | |
doc_13523 | Parameters
title – string
prompt – string Pop up a dialog window for input of a string. Parameter title is the title of the dialog window, prompt is a text mostly describing what information to input. Return the string input. If the dialog is canceled, return None. >>> screen.textinput("NIM", "Name of first pla... | |
doc_13524 | A context manager that is designed to make it easy to programmatically combine other context managers and cleanup functions, especially those that are optional or otherwise driven by input data. For example, a set of files may easily be handled in a single with statement as follows: with ExitStack() as stack:
files... | |
doc_13525 | Return an enumerate object. iterable must be a sequence, an iterator, or some other object which supports iteration. The __next__() method of the iterator returned by enumerate() returns a tuple containing a count (from start which defaults to 0) and the values obtained from iterating over iterable. >>> seasons = ['Spr... | |
doc_13526 |
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_13527 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyAdamWithAmsgrad
tf.raw_ops.ResourceApplyAdamWithAmsgrad(
var, m, v, vhat, beta1_power, beta2_power, lr, beta1, beta2, epsilon, grad,
use_locking=False, name=None
)
$$\text{lr}_t := \mathrm{learning_rate} * \sqrt{1 - \beta_2^t} / (1 - \b... | |
doc_13528 | Returns a copy of the current Context object. The following snippet gets a copy of the current context and prints all variables and their values that are set in it: ctx: Context = copy_context()
print(list(ctx.items()))
The function has an O(1) complexity, i.e. works equally fast for contexts with a few context variab... | |
doc_13529 | 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_13530 | tf.image.decode_png Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_png, tf.compat.v1.io.decode_png
tf.io.decode_png(
contents, channels=0, dtype=tf.dtypes.uint8, name=None
)
The attr channels indicates the desired number of color channels for the decoded image. Accep... | |
doc_13531 |
sign(value)
Sign value and append current timestamp to it.
unsign(value, max_age=None)
Checks if value was signed less than max_age seconds ago, otherwise raises SignatureExpired. The max_age parameter can accept an integer or a datetime.timedelta object.
sign_object(obj, serializer=JSONSerializer, compre... | |
doc_13532 | Write an EOF marker to the memory BIO. After this method has been called, it is illegal to call write(). The attribute eof will become true after all data currently in the buffer has been read. | |
doc_13533 | Return the (namespace, localname) pair for a qualified name. | |
doc_13534 | This attribute points at the non-parameterized generic class: >>> list[int].__origin__
<class 'list'> | |
doc_13535 |
Bases: skimage.viewer.widgets.core.BaseWidget ComboBox widget for selecting among a list of choices. Parameters
namestr
Name of ComboBox parameter. If this parameter is passed as a keyword argument, it must match the name of that keyword argument (spaces are replaced with underscores). In addition, this name is... | |
doc_13536 | Must return the lookup named transform_name. For instance, by returning self.output_field.get_transform(transform_name). | |
doc_13537 | Return buffered data without advancing the file position. At least one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the size argument is ignored). Note While calling peek() does not change the file position of the LZMAFile, it may change the position of... | |
doc_13538 | Set up a secure control connection by using TLS or SSL, depending on what is specified in the ssl_version attribute. Changed in version 3.4: The method now supports hostname check with ssl.SSLContext.check_hostname and Server Name Indication (see ssl.HAS_SNI). | |
doc_13539 | test.support.captured_stdout()
test.support.captured_stderr()
A context managers that temporarily replaces the named stream with io.StringIO object. Example use with output streams: with captured_stdout() as stdout, captured_stderr() as stderr:
print("hello")
print("error", file=sys.stderr)
assert stdout.ge... | |
doc_13540 | See Migration guide for more details. tf.compat.v1.sparse.concat
tf.compat.v1.sparse_concat(
axis, sp_inputs, name=None, expand_nonconcat_dim=False, concat_dim=None,
expand_nonconcat_dims=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (concat_dim). They will be removed in a future version. Instructions for u... | |
doc_13541 |
Return the Bbox bounding the text, in display units. In addition to being used internally, this is useful for specifying clickable regions in a png file on a web page. Parameters
rendererRenderer, optional
A renderer is needed to compute the bounding box. If the artist has already been drawn, the renderer is ca... | |
doc_13542 |
Set both the edgecolor and the facecolor. Parameters
ccolor or list of rgba tuples
See also
Collection.set_facecolor, Collection.set_edgecolor
For setting the edge or face color individually. | |
doc_13543 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DAndRequantize
tf.raw_ops.QuantizedConv2DAndRequantize(
input, filter, min_input, max_input, min_filter, max_filter, min_freezed_output,
max_freezed_output, strides, padding, out_type=tf.dtypes.qint8, dilations=[1, 1,
1, 1], padding_... | |
doc_13544 |
Return the picking behavior of the artist. The possible values are described in set_picker. See also
set_picker, pickable, pick | |
doc_13545 | The default format for creating archives. This is currently PAX_FORMAT. Changed in version 3.8: The default format for new archives was changed to PAX_FORMAT from GNU_FORMAT. | |
doc_13546 | An ABC with one abstract method __index__. New in version 3.8. | |
doc_13547 | Wraps the posix_spawn() C library API for use from Python. Most users should use subprocess.run() instead of posix_spawn(). The positional-only arguments path, args, and env are similar to execve(). The path parameter is the path to the executable file. The path should contain a directory. Use posix_spawnp() to pass an... | |
doc_13548 | Return integer-valued system configuration values. If the configuration value specified by name isn’t defined, -1 is returned. The comments regarding the name parameter for confstr() apply here as well; the dictionary that provides information on the known names is given by sysconf_names. Availability: Unix. | |
doc_13549 |
Alias for get_facecolor. | |
doc_13550 |
Parameters
urlslist of str or None
Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends. | |
doc_13551 | See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.make_decorator
tf.compat.v1.flags.tf_decorator.make_decorator(
target, decorator_func, decorator_name=None, decorator_doc='',
decorator_argspec=None
)
Args
target The final callable to be wrapped.
decorator_func The wrap... | |
doc_13552 | The map class stores all the URL rules and some configuration parameters. Some of the configuration values are only stored on the Map instance since those affect all rules, others are just defaults and can be overridden for each rule. Note that you have to specify all arguments besides the rules as keyword arguments! ... | |
doc_13553 |
Predict regression target for X. The predicted regression target of an input sample is computed as the mean predicted regression targets of the trees in the forest. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, its dtype will be converted to dtype=np.flo... | |
doc_13554 | When setting cookies, require a full RFC 2965 domain-match. | |
doc_13555 |
Remove the callback function with connection id cid. | |
doc_13556 | class sklearn.linear_model.SGDClassifier(loss='hinge', *, penalty='l2', alpha=0.0001, l1_ratio=0.15, fit_intercept=True, max_iter=1000, tol=0.001, shuffle=True, verbose=0, epsilon=0.1, n_jobs=None, random_state=None, learning_rate='optimal', eta0=0.0, power_t=0.5, early_stopping=False, validation_fraction=0.1, n_iter_n... | |
doc_13557 | The get_list_display method is given the HttpRequest and is expected to return a list or tuple of field names that will be displayed on the changelist view as described above in the ModelAdmin.list_display section. | |
doc_13558 | A numeric error code from the expat parser. See the documentation of xml.parsers.expat for the list of error codes and their meanings. | |
doc_13559 | Force write of everything to disk. Availability: Unix. New in version 3.3. | |
doc_13560 |
Read more in the User Guide. Parameters
penalty{‘l2’,’l1’,’elasticnet’}, default=None
The penalty (aka regularization term) to be used.
alphafloat, default=0.0001
Constant that multiplies the regularization term if regularization is used.
l1_ratiofloat, default=0.15
The Elastic Net mixing parameter, wit... | |
doc_13561 | A static method which returns a callable that creates a lazy loader. This is meant to be used in situations where the loader is passed by class instead of by instance. suffixes = importlib.machinery.SOURCE_SUFFIXES
loader = importlib.machinery.SourceFileLoader
lazy_loader = importlib.util.LazyLoader.factory(loader)
fin... | |
doc_13562 | Add a callback to be run when the Future is done. The callback is called with the Future object as its only argument. If the Future is already done when this method is called, the callback is scheduled with loop.call_soon(). An optional keyword-only context argument allows specifying a custom contextvars.Context for th... | |
doc_13563 | A boolean indicating whether the end of the compressed data stream has been reached. This makes it possible to distinguish between a properly-formed compressed stream, and an incomplete or truncated one. New in version 3.3. | |
doc_13564 | Same as Tensor.narrow() except returning a copy rather than shared storage. This is primarily for sparse tensors, which do not have a shared-storage narrow method. Calling `narrow_copy with `dimemsion > self.sparse_dim()` will return a copy with the relevant dense dimension narrowed, and `self.shape` updated accordingl... | |
doc_13565 |
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_13566 | This function is a decorator that can be used to define a factory function for with statement context managers, without needing to create a class or separate __enter__() and __exit__() methods. While many objects natively support use in with statements, sometimes a resource needs to be managed that isn’t a context mana... | |
doc_13567 | This class is used to manipulate the style database.
configure(style, query_opt=None, **kw)
Query or set the default value of the specified option(s) in style. Each key in kw is an option and each value is a string identifying the value for that option. For example, to change every default button to be a flat butto... | |
doc_13568 | Should this response object correct the location header to be RFC conformant? This is true by default. Changelog New in version 0.8. | |
doc_13569 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_13570 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseToDense
tf.raw_ops.SparseToDense(
sparse_indices, output_shape, sparse_values, default_value,
validate_indices=True, name=None
)
Builds an array dense with shape output_shape such that # If sparse_indices is scalar
dense[i] = (i == sparse_indic... | |
doc_13571 | class sklearn.preprocessing.FunctionTransformer(func=None, inverse_func=None, *, validate=False, accept_sparse=False, check_inverse=True, kw_args=None, inv_kw_args=None) [source]
Constructs a transformer from an arbitrary callable. A FunctionTransformer forwards its X (and optionally y) arguments to a user-defined fu... | |
doc_13572 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseReorder
tf.raw_ops.SparseReorder(
input_indices, input_values, input_shape, name=None
)
Note that by convention, all sparse ops preserve the canonical ordering along increasing dimension number. The only time ordering can be violated is during manu... | |
doc_13573 | class ast.Continue
The break and continue statements. >>> print(ast.dump(ast.parse("""\
... for a in b:
... if a > 5:
... break
... else:
... continue
...
... """), indent=4))
Module(
body=[
For(
target=Name(id='a', ctx=Store()),
iter=Name(id='b', ctx=Load()... | |
doc_13574 | Collision detection between two sprites, using circles. collide_circle(left, right) -> bool Tests for collision between two sprites, by testing to see if two circles centered on the sprites overlap. If the sprites have a "radius" attribute, that is used to create the circle, otherwise a circle is created that is big ... | |
doc_13575 | Return a list containing the character set names in the message. If the message is a multipart, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the charset parameter in the Content-Type header ... | |
doc_13576 |
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende... | |
doc_13577 |
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), columns (1)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result. ... | |
doc_13578 | See Migration guide for more details. tf.compat.v1.keras.layers.MultiHeadAttention
tf.keras.layers.MultiHeadAttention(
num_heads, key_dim, value_dim=None, dropout=0.0, use_bias=True,
output_shape=None, attention_axes=None,
kernel_initializer='glorot_uniform',
bias_initializer='zeros', kernel_regulariz... | |
doc_13579 | Unsets the current time zone. | |
doc_13580 |
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned. | |
doc_13581 |
Check if domains match. New in version 1.6.0. Parameters
otherclass instance
The other class must have the domain attribute. Returns
boolboolean
True if the domains are the same, False otherwise. | |
doc_13582 | See Migration guide for more details. tf.compat.v1.math.unsorted_segment_mean, tf.compat.v1.unsorted_segment_mean
tf.math.unsorted_segment_mean(
data, segment_ids, num_segments, name=None
)
Read the section on segmentation for an explanation of segments. This operator is similar to the tf.math.unsorted_segment_s... | |
doc_13583 | Joins this URL with another one. This is just a convenience function for calling into url_join() and then parsing the return value again. Parameters
args (Any) –
kwargs (Any) – Return type
werkzeug.urls.BaseURL | |
doc_13584 | See Migration guide for more details. tf.compat.v1.raw_ops.MaxPool3DGradGrad
tf.raw_ops.MaxPool3DGradGrad(
orig_input, orig_output, grad, ksize, strides, padding,
data_format='NDHWC', name=None
)
Args
orig_input A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int... | |
doc_13585 | See torch.t() | |
doc_13586 |
Return the kernel k(X, Y) and optionally its gradient. Parameters
Xndarray of shape (n_samples_X, n_features)
Left argument of the returned kernel k(X, Y)
Yndarray of shape (n_samples_Y, n_features), default=None
Right argument of the returned kernel k(X, Y). If None, k(X, X) if evaluated instead.
eval_gr... | |
doc_13587 |
Increment the multi-dimensional index by one. This method is for backward compatibility only: do not use. Deprecated since version 1.20.0: This method has been advised against since numpy 1.8.0, but only started emitting DeprecationWarning as of this version. | |
doc_13588 |
Return probability estimates for the test vector X. Parameters
Xarray-like of shape (n_samples, n_features) or list of object
Query points where the GP is evaluated for classification. Returns
Carray-like of shape (n_samples, n_classes)
Returns the probability of the samples for each class in the model.... | |
doc_13589 | Shortcut for route() with methods=["PUT"]. New in version 2.0. Parameters
rule (str) –
options (Any) – Return type
Callable | |
doc_13590 |
Return whether units are set on any axis. | |
doc_13591 |
Draw samples from the noncentral F distribution. Samples are drawn from an F distribution with specified parameters, dfnum (degrees of freedom in numerator) and dfden (degrees of freedom in denominator), where both parameters > 1. nonc is the non-centrality parameter. Note New code should use the noncentral_f method... | |
doc_13592 | Gets the currently active array type. get_arraytype () -> str DEPRECATED: Returns the currently active array type. This will be a value of the get_arraytypes() tuple and indicates which type of array module is used for the array creation. New in pygame 1.8. | |
doc_13593 |
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters
ccolor or list of colors | |
doc_13594 |
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal. | |
doc_13595 | numpy.complex256[source]
Alias for numpy.clongdouble, named after its size in bits. The existence of these aliases depends on the platform. | |
doc_13596 |
Return the Transform instance used by this artist. | |
doc_13597 |
Resolve all writeback semantics in writeable operands. New in version 1.15.0. See also Modifying Array Values | |
doc_13598 | If the default_factory attribute is None, this raises a KeyError exception with the key as argument. If default_factory is not None, it is called without arguments to provide a default value for the given key, this value is inserted in the dictionary for the key, and returned. If calling default_factory raises an excep... | |
doc_13599 | Returns a filename based on the name parameter that’s free and available for new content to be written to on the target storage system. The length of the filename will not exceed max_length, if provided. If a free unique filename cannot be found, a SuspiciousFileOperation exception will be raised. If a file with name a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.