_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_17900
An ABC with one abstract method __abs__ that is covariant in its return type.
doc_17901
Alias for set_linestyle.
doc_17902
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_17903
See Migration guide for more details. tf.compat.v1.grad_pass_through tf.grad_pass_through( f ) Use this function to wrap any op, maintaining its behavior in the forward pass, but replacing the original op in the backward graph with an identity. For example: x = tf.Variable(1.0, name="x") z = tf.Variable(3.0, nam...
doc_17904
Normalize, rescale, and colormap this image's data for rendering using renderer, with the given magnification. If unsampled is True, the image will not be scaled, but an appropriate affine transformation will be returned instead. Returns image(M, N, 4) uint8 array The RGBA image, resampled unless unsampled is T...
doc_17905
Bases: object An abstract base class to handle drawing/rendering operations. The following methods must be implemented in the backend for full functionality (though just implementing draw_path() alone would give a highly capable backend): draw_path() draw_image() draw_gouraud_triangle() The following methods should...
doc_17906
See Migration guide for more details. tf.compat.v1.fft3d, tf.compat.v1.signal.fft3d, tf.compat.v1.spectral.fft3d tf.signal.fft3d( input, name=None ) Computes the 3-dimensional discrete Fourier transform over the inner-most 3 dimensions of input. Args input A Tensor. Must be one of the following types: c...
doc_17907
Return the ‘thread identifier’ of the current thread. This is a nonzero integer. Its value has no direct meaning; it is intended as a magic cookie to be used e.g. to index a dictionary of thread-specific data. Thread identifiers may be recycled when a thread exits and another thread is created.
doc_17908
The numeric constant for the usual ZIP compression method. This requires the zlib module.
doc_17909
Default widget: Select Empty value: '' (an empty string) Normalizes to: A string. Validates that the given value exists in the list of choices. Error message keys: required, invalid_choice The invalid_choice error message may contain %(value)s, which will be replaced with the selected choice. Takes one extra argume...
doc_17910
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_17911
Return Greater than or equal to of series and other, element-wise (binary operator ge). Equivalent to series >= other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill exist...
doc_17912
Parse and compare numpy version strings. NumPy has the following versioning scheme (numbers given are examples; they can be > 9 in principle): Released version: ‘1.8.0’, ‘1.8.1’, etc. Alpha: ‘1.8.0a1’, ‘1.8.0a2’, etc. Beta: ‘1.8.0b1’, ‘1.8.0b2’, etc. Release candidates: ‘1.8.0rc1’, ‘1.8.0rc2’, etc. Development versi...
doc_17913
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_17914
return a bytestring copy of the Sound samples. get_raw() -> bytes Return a copy of the Sound object buffer as a bytes (for Python 3.x) or str (for Python 2.x) object. New in pygame 1.9.2.
doc_17915
Implements the 'replace' error handling (for text encodings only): substitutes '?' for encoding errors (to be encoded by the codec), and '\ufffd' (the Unicode replacement character) for decoding errors.
doc_17916
Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters lwfloat or list of floats
doc_17917
Convert the data back to the original representation. Parameters Xarray-like or sparse matrix, shape [n_samples, n_encoded_features] The transformed data. Returns X_trarray-like, shape [n_samples, n_features] Inverse transformed array.
doc_17918
Sets the result of the work associated with the Future to result. This method should only be used by Executor implementations and unit tests. Changed in version 3.8: This method raises concurrent.futures.InvalidStateError if the Future is already done.
doc_17919
Close the connection.
doc_17920
window.hline(y, x, ch, n) Display a horizontal line starting at (y, x) with length n consisting of the character ch.
doc_17921
Given a importlib.resources.abc.Traversable object representing a file, typically from importlib.resources.files(), return a context manager for use in a with statement. The context manager provides a pathlib.Path object. Exiting the context manager cleans up any temporary file created when the resource was extracted f...
doc_17922
Parameters name – a string which is a valid shapename Set turtle shape to shape with given name or, if name is not given, return name of current shape. Shape with name must exist in the TurtleScreen’s shape dictionary. Initially there are the following polygon shapes: “arrow”, “turtle”, “circle”, “square”, “triangl...
doc_17923
Convenience method to get or set some axis properties. Call signatures: xmin, xmax, ymin, ymax = axis() xmin, xmax, ymin, ymax = axis([xmin, xmax, ymin, ymax]) xmin, xmax, ymin, ymax = axis(option) xmin, xmax, ymin, ymax = axis(**kwargs) Parameters xmin, xmax, ymin, ymaxfloat, optional The axis limits to be se...
doc_17924
A human-readable name for the object, singular: verbose_name = "pizza" If this isn’t given, Django will use a munged version of the class name: CamelCase becomes camel case.
doc_17925
See Migration guide for more details. tf.compat.v1.raw_ops.WindowDataset tf.raw_ops.WindowDataset( input_dataset, size, shift, stride, drop_remainder, output_types, output_shapes, name=None ) A "window" is a finite dataset of flat elements of size size (or possibly fewer if there are not enough input element...
doc_17926
tf.compat.v1.estimator.Estimator( model_fn, model_dir=None, config=None, params=None, warm_start_from=None ) The Estimator object wraps a model which is specified by a model_fn, which, given inputs and a number of other parameters, returns the ops necessary to perform training, evaluation, or predictions. All outp...
doc_17927
A context manager that copies and, upon exit, restores the warnings filter and the showwarning() function. If the record argument is False (the default) the context manager returns None on entry. If record is True, a list is returned that is progressively populated with objects as seen by a custom showwarning() functio...
doc_17928
Attributes collective_deterministic_sequential_execution bool collective_deterministic_sequential_execution collective_group_leader string collective_group_leader collective_nccl bool collective_nccl disable_output_partition_graphs bool disable_output_partition_graphs disable_thread_spinn...
doc_17929
Return an RGB image where color-coded labels are painted over the image. Parameters labelarray, shape (M, N) Integer array of labels with the same shape as image. imagearray, shape (M, N, 3), optional Image used as underlay for labels. If the input is an RGB image, it’s converted to grayscale before colorin...
doc_17930
See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.random_shear tf.keras.preprocessing.image.random_shear( x, intensity, row_axis=1, col_axis=2, channel_axis=0, fill_mode='nearest', cval=0.0, interpolation_order=1 ) Arguments x Input tensor. Must be 3D. intensity Tran...
doc_17931
Run the examples in test (a DocTest object), and display the results using the writer function out. The examples are run in the namespace test.globs. If clear_globs is true (the default), then this namespace will be cleared after the test runs, to help with garbage collection. If you would like to examine the namespace...
doc_17932
Convert a collection of text documents to a matrix of token counts This implementation produces a sparse representation of the counts using scipy.sparse.csr_matrix. If you do not provide an a-priori dictionary and you do not use an analyzer that does some kind of feature selection then the number of features will be ...
doc_17933
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_17934
Return the elements in the given positional indices along an axis. This means that we are not indexing according to actual values in the index attribute of the object. We are indexing according to the actual position of the element in the object. Parameters indices:array-like An array of ints indicating which p...
doc_17935
Send a NEWGROUPS command. The date argument should be a datetime.date or datetime.datetime object. Return a pair (response, groups) where groups is a list representing the groups that are new since the given date. If file is supplied, though, then groups will be empty. >>> from datetime import date, timedelta >>> resp,...
doc_17936
Parse a MIME header (such as Content-Type) into a main value and a dictionary of parameters.
doc_17937
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DWithBiasAndRequantize tf.raw_ops.QuantizedConv2DWithBiasAndRequantize( input, filter, bias, min_input, max_input, min_filter, max_filter, min_freezed_output, max_freezed_output, strides, padding, out_type=tf.dtypes.qint8, dilations=...
doc_17938
Decorator to give another decorator the no_type_check() effect. This wraps the decorator with something that wraps the decorated function in no_type_check().
doc_17939
A type that can be used to indicate to type checkers that the corresponding variable or function parameter has a value equivalent to the provided literal (or one of several literals). For example: def validate_simple(data: Any) -> Literal[True]: # always returns True ... MODE = Literal['r', 'rb', 'w', 'wb'] def o...
doc_17940
In-place version of acosh()
doc_17941
sklearn.utils.class_weight.compute_class_weight(class_weight, *, classes, y) [source] Estimate class weights for unbalanced datasets. Parameters class_weightdict, ‘balanced’ or None If ‘balanced’, class weights will be given by n_samples / (n_classes * np.bincount(y)). If a dictionary is given, keys are classes...
doc_17942
Raise a Legendre series to a power. Returns the Legendre series c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. i.e., [1,2,3] is the series P_0 + 2*P_1 + 3*P_2. Parameters carray_like 1-D array of Legendre series coefficients ordered from low to high. powinteg...
doc_17943
Return a bytes object containing the values v1, v2, … packed according to the format string format. The arguments must match the values required by the format exactly.
doc_17944
Bases: matplotlib.axes._axes.Axes Build an Axes in a figure. Parameters figFigure The Axes is built in the Figure fig. rect[left, bottom, width, height] The Axes is built in the rectangle rect. rect is in Figure coordinates. sharex, shareyAxes, optional The x or y axis is shared with the x or y axis in ...
doc_17945
The name of the worker.
doc_17946
Alias for set_linewidth.
doc_17947
Return the numeric string left-filled with zeros in a string of length width. See also char.zfill
doc_17948
These attributes are true for the network as a whole if they are true for both the network address and the broadcast address.
doc_17949
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_17950
Search for all descendants (direct children, children’s children, etc.) with a particular namespace URI and localname. The localname is the part of the namespace after the prefix.
doc_17951
Draw a glyph described by info to the reference point (ox, oy).
doc_17952
Raised under some error conditions when parsing the RFC 5322 headers of a message, this class is derived from MessageParseError. The set_boundary() method will raise this error if the content type is unknown when the method is called. Header may raise this error for certain base64 decoding errors, and when an attempt i...
doc_17953
Generate a dvi file containing latex's layout of tex string. Return the file name.
doc_17954
Loads templates from the filesystem, according to DIRS. This loader is enabled by default. However it won’t find any templates until you set DIRS to a non-empty list: TEMPLATES = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [BASE_DIR / 'templates'], }] You can also override 'DIRS' a...
doc_17955
See Migration guide for more details. tf.compat.v1.raw_ops.BitwiseOr tf.raw_ops.BitwiseOr( x, y, name=None ) The result will have those bits set, that are set in x, y or both. The computation is performed on the underlying representations of x and y. For example: import tensorflow as tf from tensorflow.python.op...
doc_17956
If set to True the session lives for permanent_session_lifetime seconds. The default is 31 days. If set to False (which is the default) the session will be deleted when the user closes the browser.
doc_17957
tf.data.experimental.Optional Compat aliases for migration See Migration guide for more details. tf.compat.v1.data.experimental.Optional, tf.compat.v1.experimental.Optional A tf.experimental.Optional can represent the result of an operation that may fail as a value, rather than raising an exception and halting executi...
doc_17958
Token value for "**".
doc_17959
Return the locations of the ticks.
doc_17960
Create a new BboxTransformTo that linearly transforms points from the unit bounding box to boxout.
doc_17961
assertGreaterEqual(first, second, msg=None) assertLess(first, second, msg=None) assertLessEqual(first, second, msg=None) Test that first is respectively >, >=, < or <= than second depending on the method name. If not, the test will fail: >>> self.assertGreaterEqual(3, 4) AssertionError: "3" unexpectedly not great...
doc_17962
socket.PF_RDS socket.SOL_RDS RDS_* Many constants of these forms, documented in the Linux documentation, are also defined in the socket module. Availability: Linux >= 2.6.30. New in version 3.3.
doc_17963
The type of objects defined in extension modules with PyMemberDef, such as datetime.timedelta.days. This type is used as descriptor for simple C data members which use standard conversion functions; it has the same purpose as the property type, but for classes defined in extension modules. CPython implementation detai...
doc_17964
The integer value of flags.
doc_17965
# iterate over pages: for page in dvi: w, h, d = page.width, page.height, page.descent for x, y, font, glyph, width in page.text: fontname = font.texname pointsize = font.size ... for x, y, height, width in page.boxes: ... classmatplotli...
doc_17966
get() Returns the current value of the spinbox. set(value) Sets the value of the spinbox to value.
doc_17967
Multiply one Hermite series by another. Returns the product of two Hermite series c1 * c2. The arguments are sequences of coefficients, from lowest order “term” to highest, e.g., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters c1, c2array_like 1-D arrays of Hermite series coefficients ordered from...
doc_17968
Copy the mask and set the sharedmask flag to False. Whether the mask is shared between masked arrays can be seen from the sharedmask property. unshare_mask ensures the mask is not shared. A copy of the mask is only made if it was shared. See also sharedmask
doc_17969
Connect the callback function func to button click events. Returns a connection id, which can be used to disconnect the callback.
doc_17970
Localize tz-naive index of a Series or DataFrame to target time zone. This operation localizes the Index. To localize the values in a timezone-naive Series, use Series.dt.tz_localize(). Parameters tz:str or tzinfo axis:the axis to localize level:int, str, default None If axis ia a MultiIndex, localize a spe...
doc_17971
ElementTree wrapper class. This class represents an entire element hierarchy, and adds some extra support for serialization to and from standard XML. element is the root element. The tree is initialized with the contents of the XML file if given. _setroot(element) Replaces the root element for this tree. This disca...
doc_17972
Set the y-axis view limits. Parameters bottomfloat, optional The bottom ylim in data coordinates. Passing None leaves the limit unchanged. The bottom and top ylims may also be passed as the tuple (bottom, top) as the first positional argument (or as the bottom keyword argument). topfloat, optional The top y...
doc_17973
Returns detailed function counts. Conceptually, the FunctionCounts returned can be thought of as a tuple of (count, path_and_function_name) tuples. inclusive matches the semantics of callgrind. If True, the counts include instructions executed by children. inclusive=True is useful for identifying hot spots in code; i...
doc_17974
Return the median of grouped continuous data, calculated as the 50th percentile, using interpolation. If data is empty, StatisticsError is raised. data can be a sequence or iterable. >>> median_grouped([52, 52, 53, 54]) 52.5 In the following example, the data are rounded, so that each value represents the midpoint of ...
doc_17975
get the total number of playback channels get_num_channels() -> count Returns the number of currently active playback channels.
doc_17976
Plot a 2D field of barbs. Call signature: barbs([X, Y], U, V, [C], **kw) Where X, Y define the barb locations, U, V define the barb directions, and C optionally sets the color. All arguments may be 1D or 2D. U, V, C may be masked arrays, but masked X, Y are not supported at present. Barbs are traditionally used in m...
doc_17977
Sort object by labels (along an axis). Returns a new DataFrame sorted by label if inplace argument is False, otherwise updates the original DataFrame and returns None. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The axis along which to sort. The value 0 identifies the rows, and 1 identifies the co...
doc_17978
incrementaldecoder Incremental encoder and decoder classes or factory functions. These have to provide the interface defined by the base classes IncrementalEncoder and IncrementalDecoder, respectively. Incremental codecs can maintain state.
doc_17979
Adjusted Mutual Information between two clusterings. Adjusted Mutual Information (AMI) is an adjustment of the Mutual Information (MI) score to account for chance. It accounts for the fact that the MI is generally higher for two clusterings with a larger number of clusters, regardless of whether there is actually mor...
doc_17980
The size of the file in bytes.
doc_17981
Start accepting connections until the coroutine is cancelled. Cancellation of serve_forever task causes the server to be closed. This method can be called if the server is already accepting connections. Only one serve_forever task can exist per one Server object. Example: async def client_connected(reader, writer): ...
doc_17982
Tries to authenticate username with password by calling User.check_password. If no username is provided, it tries to fetch a username from kwargs using the key CustomUser.USERNAME_FIELD. Returns an authenticated user or None. request is an HttpRequest and may be None if it wasn’t provided to authenticate() (which passe...
doc_17983
Set the sizes of each member of the collection. Parameters sizesndarray or None The size to set for each element of the collection. The value is the 'area' of the element. dpifloat, default: 72 The dpi of the canvas.
doc_17984
Process a mouse click event.
doc_17985
Bases: matplotlib.widgets.AxesWidget A GUI neutral radio button. For the buttons to remain responsive you must keep a reference to this object. Connect to the RadioButtons with the on_clicked method. Attributes axAxes The parent axes for the widget. activecolorcolor The color of the selected button. label...
doc_17986
The human-readable name of the content type. This is taken from the verbose_name attribute of the model.
doc_17987
Applies a 2D transposed convolution operator over an input image composed of several input planes. This module can be seen as the gradient of Conv2d with respect to its input. It is also known as a fractionally-strided convolution or a deconvolution (although it is not an actual deconvolution operation). This module ...
doc_17988
See Migration guide for more details. tf.compat.v1.sparse.matmul, tf.compat.v1.sparse.sparse_dense_matmul, tf.compat.v1.sparse_tensor_dense_matmul tf.sparse.sparse_dense_matmul( sp_a, b, adjoint_a=False, adjoint_b=False, name=None ) (or SparseTensor) "B". Please note that one and only one of the inputs MUST be a...
doc_17989
class sklearn.feature_selection.SelectPercentile(score_func=<function f_classif>, *, percentile=10) [source] Select features according to a percentile of the highest scores. Read more in the User Guide. Parameters score_funccallable, default=f_classif Function taking two arrays X and y, and returning a pair of ...
doc_17990
Return True if m is a valid, standard mask. This function does not check the contents of the input, only that the type is MaskType. In particular, this function returns False if the mask has a flexible dtype. Parameters marray_like Array to test. Returns resultbool True if m.dtype.type is MaskType, Fals...
doc_17991
See Migration guide for more details. tf.compat.v1.keras.activations.elu tf.keras.activations.elu( x, alpha=1.0 ) The exponential linear unit (ELU) with alpha > 0 is: x if x > 0 and alpha * (exp(x) - 1) if x < 0 The ELU hyperparameter alpha controls the value to which an ELU saturates for negative net inputs. EL...
doc_17992
Return Floating division of series and other, element-wise (binary operator rtruediv). Equivalent to other / series, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existin...
doc_17993
Lazily iterate over (index, value) tuples. This method returns an iterable tuple (index, value). This is convenient if you want to create a lazy iterator. Returns iterable Iterable of tuples containing the (index, value) pairs from a Series. See also DataFrame.items Iterate over (column name, Series) pairs...
doc_17994
tf.experimental.numpy.promote_types( type1, type2 ) See the NumPy documentation for numpy.promote_types.
doc_17995
The UUID as a 32-character hexadecimal string.
doc_17996
Make a plot with log scaling on both the x and y axis. Call signatures: loglog([x], y, [fmt], data=None, **kwargs) loglog([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs) This is just a thin wrapper around plot which additionally changes both the x-axis and the y-axis to log scaling. All of the concepts and parameter...
doc_17997
Update this artist's properties from the dict props. Parameters propsdict
doc_17998
Flush the output stream.
doc_17999
Update the location of children if necessary and draw them to the given renderer.