_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_3100
Alias for set_linewidth.
doc_3101
Return a normalized absolutized version of the pathname path. On most platforms, this is equivalent to calling the function normpath() as follows: normpath(join(os.getcwd(), path)). Changed in version 3.6: Accepts a path-like object.
doc_3102
The smallest year number allowed in a date or datetime object. MINYEAR is 1.
doc_3103
A floating-point “not a number” (NaN) value. Equivalent to the output of float('nan'). New in version 3.5.
doc_3104
Return the spine position.
doc_3105
Window resize signal. Availability: Unix.
doc_3106
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_3107
tf.compat.v1.train.global_step( sess, global_step_tensor ) # Create a variable to hold the global_step. global_step_tensor = tf.Variable(10, trainable=False, name='global_step') # Create a session. sess = tf.compat.v1.Session() # Initialize the variable sess.run(global_step_tensor.initializer) # Get the variable v...
doc_3108
Return a string representation of data. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ...
doc_3109
Get the transformation used for drawing x-axis labels, ticks and gridlines. The x-direction is in data coordinates and the y-direction is in axis coordinates. Note This transformation is primarily used by the Axis class, and is meant to be overridden by new kinds of projections that may need to place axis elements i...
doc_3110
Set the children of the transform, to let the invalidation system know which transforms can invalidate this transform. Should be called from the constructor of any transforms that depend on other transforms.
doc_3111
A tuple of Group objects encoding the addresses and groups found in the header value. Addresses that are not part of a group are represented in this list as single-address Groups whose display_name is None.
doc_3112
See Migration guide for more details. tf.compat.v1.io.RaggedFeature.RowSplits tf.io.RaggedFeature.RowSplits( key ) Attributes key
doc_3113
Bases: matplotlib.collections.PolyCollection A collection of horizontal bars spanning yrange with a sequence of xranges. Parameters xrangeslist of (float, float) The sequence of (left-edge-position, width) pairs for each bar. yrange(float, float) The (lower-edge, height) common to all bars. **kwargs Forwa...
doc_3114
Number of dimensions of the sub-array if this data type describes a sub-array, and 0 otherwise. New in version 1.13.0. Examples >>> x = np.dtype(float) >>> x.ndim 0 >>> x = np.dtype((float, 8)) >>> x.ndim 1 >>> x = np.dtype(('i4', (3, 4))) >>> x.ndim 2
doc_3115
Return the artist's zorder.
doc_3116
Block until the internal flag is true. If the internal flag is true on entry, return immediately. Otherwise, block until another thread calls set() to set the flag to true, or until the optional timeout occurs. When the timeout argument is present and not None, it should be a floating point number specifying a timeout ...
doc_3117
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_3118
The Connectionist Temporal Classification loss. Calculates loss between a continuous (unsegmented) time series and a target sequence. CTCLoss sums over the probability of possible alignments of input to target, producing a loss value which is differentiable with respect to each input node. The alignment of input to t...
doc_3119
Test element-wise for NaN and return result as a boolean array. Parameters xarray_like Input array. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocate...
doc_3120
A user updateable list of mappings. The list is ordered from first-searched to last-searched. It is the only stored state and can be modified to change which mappings are searched. The list should always contain at least one mapping.
doc_3121
Transform a sequence of documents to a document-term matrix. Parameters Xiterable over raw text documents, length = n_samples Samples. Each sample must be a text document (either bytes or unicode strings, file name or file object depending on the constructor argument) which will be tokenized and hashed. yany ...
doc_3122
See Migration guide for more details. tf.compat.v1.keras.activations.sigmoid tf.keras.activations.sigmoid( x ) Applies the sigmoid activation function. For small values (<-5), sigmoid returns a value close to zero, and for large values (>5) the result of the function gets close to 1. Sigmoid is equivalent to a 2...
doc_3123
tf.compat.v1.data.get_output_classes( dataset_or_iterator ) Args dataset_or_iterator A tf.data.Dataset or tf.data.Iterator. Returns A nested structure of Python type objects matching the structure of the dataset / iterator elements and specifying the class of the individual components.
doc_3124
Polls the set of registered file descriptors, and returns a possibly-empty list containing (fd, event) 2-tuples for the descriptors that have events or errors to report. fd is the file descriptor, and event is a bitmask with bits set for the reported events for that descriptor — POLLIN for waiting input, POLLOUT to ind...
doc_3125
the test client that is used with when test_client is used. Changelog New in version 0.7.
doc_3126
See Migration guide for more details. tf.compat.v1.raw_ops.StatefulPartitionedCall tf.raw_ops.StatefulPartitionedCall( args, Tout, f, config='', config_proto='', executor_type='', name=None ) Args args A list of Tensor objects. A list of input tensors. Tout A list of tf.DTypes. A list of outpu...
doc_3127
Add element elem to the set.
doc_3128
An array that represents the days of the week in the current locale.
doc_3129
Returns True if any of the elements of a evaluate to True. Refer to numpy.any for full documentation. See also numpy.any equivalent function
doc_3130
Raised when an attempt is made to modify the type of a node.
doc_3131
Possible value for SSLContext.verify_flags. In this mode, only the peer cert is checked but none of the intermediate CA certificates. The mode requires a valid CRL that is signed by the peer cert’s issuer (its direct ancestor CA). If no proper CRL has been loaded with SSLContext.load_verify_locations, validation will f...
doc_3132
Copies values from one array to another, broadcasting as necessary. Raises a TypeError if the casting rule is violated, and if where is provided, it selects which elements to copy. New in version 1.7.0. Parameters dstndarray The array into which values are copied. srcarray_like The array from which values...
doc_3133
See Migration guide for more details. tf.compat.v1.raw_ops.ScatterSub tf.raw_ops.ScatterSub( ref, indices, updates, use_locking=False, name=None ) # Scalar indices ref[indices, ...] -= updates[...] # Vector indices (for each i) ref[indices[i], ...] -= updates[i, ...] # High rank indices (for each i, ..., j) re...
doc_3134
# Partitions the given `shape` and returns the partition results. # See docstring of `__call__` method for the format of partition results. Methods __call__ View source __call__( shape, dtype, axis=0 ) Partitions the given shape and returns the partition results. Examples of a partitioner that allocates a fi...
doc_3135
Returns whether the kernel is defined on fixed-length feature vectors or generic objects. Defaults to True for backward compatibility.
doc_3136
See torch.fmin()
doc_3137
get the dimensions of the Surface get_size() -> (width, height) Return the width and height of the Surface in pixels.
doc_3138
Decode a message header value without converting the character set. The header value is in header. This function returns a list of (decoded_string, charset) pairs containing each of the decoded parts of the header. charset is None for non-encoded parts of the header, otherwise a lower case string containing the name of...
doc_3139
Create an instance of the FileInput class. The instance will be used as global state for the functions of this module, and is also returned to use during iteration. The parameters to this function will be passed along to the constructor of the FileInput class. The FileInput instance can be used as a context manager in ...
doc_3140
Return in a single string any lines of comments immediately preceding the object’s source code (for a class, function, or method), or at the top of the Python source file (if the object is a module). If the object’s source code is unavailable, return None. This could happen if the object has been defined in C or the in...
doc_3141
Segments image using quickshift clustering in Color-(x,y) space. Produces an oversegmentation of the image using the quickshift mode-seeking algorithm. Parameters image(width, height, channels) ndarray Input image. ratiofloat, optional, between 0 and 1 Balances color-space proximity and image-space proximit...
doc_3142
Return the time formatted according to ISO 8610. The full format looks like ‘YYYY-MM-DD HH:MM:SS.mmmmmmnnn’. By default, the fractional part is omitted if self.microsecond == 0 and self.nanosecond == 0. If self.tzinfo is not None, the UTC offset is also attached, giving giving a full format of ‘YYYY-MM-DD HH:MM:SS.mm...
doc_3143
Getter for the precision matrix. Returns precision_array-like of shape (n_features, n_features) The precision matrix associated to the current covariance object.
doc_3144
Apply the non-affine part of this transform to Path path, returning a new Path. transform_path(path) is equivalent to transform_path_affine(transform_path_non_affine(values)).
doc_3145
tf.image.encode_png Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.encode_png, tf.compat.v1.io.encode_png tf.io.encode_png( image, compression=-1, name=None ) image is a 3-D uint8 or uint16 Tensor of shape [height, width, channels] where channels is: 1: for grayscale. 2: f...
doc_3146
An alias to collections.abc.Hashable
doc_3147
See Migration guide for more details. tf.compat.v1.image.adjust_gamma tf.image.adjust_gamma( image, gamma=1, gain=1 ) on the input image. Also known as Power Law Transform. This function converts the input images at first to float representation, then transforms them pixelwise according to the equation Out = gai...
doc_3148
A class attribute describing the aggregate function that will be generated. Specifically, the function will be interpolated as the function placeholder within template. Defaults to None.
doc_3149
tf.compat.v1.data.FixedLengthRecordDataset( filenames, record_bytes, header_bytes=None, footer_bytes=None, buffer_size=None, compression_type=None, num_parallel_reads=None ) Args filenames A tf.string tensor or tf.data.Dataset containing one or more filenames. record_bytes A tf.int64 scalar repr...
doc_3150
See Migration guide for more details. tf.compat.v1.raw_ops.SparseSliceGrad tf.raw_ops.SparseSliceGrad( backprop_val_grad, input_indices, input_start, output_indices, name=None ) This op takes in the upstream gradient w.r.t. non-empty values of the sliced SparseTensor, and outputs the gradients w.r.t. the non-emp...
doc_3151
Return the current frame number.
doc_3152
Base class for syntax errors related to incorrect indentation. This is a subclass of SyntaxError.
doc_3153
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_3154
Return a list of URLs, one for each element of the collection. The list contains None for elements without a URL. See Hyperlinks for an example.
doc_3155
Update this artist's properties from the dict props. Parameters propsdict
doc_3156
Creator of the file.
doc_3157
Finds and returns the closest Fraction to self that has denominator at most max_denominator. This method is useful for finding rational approximations to a given floating-point number: >>> from fractions import Fraction >>> Fraction('3.1415926535897932').limit_denominator(1000) Fraction(355, 113) or for recovering a r...
doc_3158
Find n_points regularly spaced along ar_shape. The returned points (as slices) should be as close to cubically-spaced as possible. Essentially, the points are spaced by the Nth root of the input array size, where N is the number of dimensions. However, if an array dimension cannot fit a full step size, it is “discard...
doc_3159
Computes the bounds of a window. Parameters num_values:int, default 0 number of values that will be aggregated over window_size:int, default 0 the number of rows in a window min_periods:int, default None min_periods passed from the top level rolling API center:bool, default None center passed from t...
doc_3160
Bases: matplotlib.patches.Patch Wedge shaped patch. A wedge centered at x, y center with radius r that sweeps theta1 to theta2 (in degrees). If width is given, then a partial wedge is drawn from inner radius r - width to outer radius r. Valid keyword arguments are: Property Description agg_filter a filter funct...
doc_3161
tf.experimental.numpy.array( val, dtype=None, copy=True, ndmin=0 ) Since Tensors are immutable, a copy is made only if val is placed on a different device than the current one. Even if copy is False, a new Tensor may need to be built to satisfy dtype and ndim. This is used only if val is an ndarray or a Tensor. Se...
doc_3162
See Migration guide for more details. tf.compat.v1.raw_ops.ModelDataset tf.raw_ops.ModelDataset( input_dataset, output_types, output_shapes, algorithm=0, cpu_budget=0, ram_budget=0, name=None ) Identity transformation that models performance. Args input_dataset A Tensor of type variant. A variant te...
doc_3163
Multiplies input by 2**:attr:other. outi=inputi∗2iother\text{{out}}_i = \text{{input}}_i * 2^\text{{other}}_i Typically this function is used to construct floating point numbers by multiplying mantissas in input with integral powers of two created from the exponents in :attr:’other’. Parameters input (Tensor) – ...
doc_3164
Return True if date is first day of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_year_start False >>> ts = pd.Timestamp(2020, 1, 1) >>> ts.is_year_start True
doc_3165
Test whether two objects contain the same elements. This function allows two Series or DataFrames to be compared against each other to see if they have the same shape and elements. NaNs in the same location are considered equal. The row/column index do not need to have the same type, as long as the values are conside...
doc_3166
Redraw plot.
doc_3167
A compiled regular expression object used to match settings and request.META values considered as sensitive. By default equivalent to: import re re.compile(r'API|TOKEN|KEY|SECRET|PASS|SIGNATURE', flags=re.IGNORECASE)
doc_3168
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters **paramsdict Estimator parameters. Returns...
doc_3169
Return obj.method with a deprecation if it was overridden, else None. Parameters method An unbound method, i.e. an expression of the form Class.method_name. Remember that within the body of a method, one can always use __class__ to refer to the class that is currently being defined. obj Either an object of the ...
doc_3170
Loads a template with the given name, compiles it and returns a Template object.
doc_3171
Scale image by a certain factor. Performs interpolation to up-scale or down-scale N-dimensional images. Note that anti-aliasing should be enabled when down-sizing images to avoid aliasing artifacts. For down-sampling with an integer factor also see skimage.transform.downscale_local_mean. Parameters imagendarray ...
doc_3172
Evaluate an Hermite series at points x. If c is of length n + 1, this function returns the value: \[p(x) = c_0 * H_0(x) + c_1 * H_1(x) + ... + c_n * H_n(x)\] The parameter x is converted to an array only if it is a tuple or a list, otherwise it is treated as a scalar. In either case, either x or its elements must su...
doc_3173
Optional. Either a method or attribute. If it’s a method, it should take one argument – an object as returned by items() – and return that object’s change frequency as a string. If it’s an attribute, its value should be a string representing the change frequency of every object returned by items(). Possible values for ...
doc_3174
Bases: tornado.web.RequestHandler get(fignum)[source]
doc_3175
Bases: object Convert strings to dvi files using TeX, caching the results to a directory. Repeated calls to this constructor always return the same instance. propertyfont_families[source] propertyfont_family[source] propertyfont_info[source] get_basefile(tex, fontsize, dpi=None)[source] Return a filen...
doc_3176
Return a shallow copy of the set.
doc_3177
Construct an open mesh from multiple sequences. This function takes N 1-D sequences and returns N outputs with N dimensions each, such that the shape is 1 in all but one dimension and the dimension with the non-unit shape value cycles through all N dimensions. Using ix_ one can quickly construct index arrays that wil...
doc_3178
PKZIP version needed to extract archive.
doc_3179
This class is normally only used if more precise control over profiling is needed than what the cProfile.run() function provides. A custom timer can be supplied for measuring how long code takes to run via the timer argument. This must be a function that returns a single number representing the current time. If the num...
doc_3180
Check whether the provided array or dtype is of the string dtype. Parameters arr_or_dtype:array-like or dtype The array or dtype to check. Returns boolean Whether or not the array or dtype is of the string dtype. Examples >>> is_string_dtype(str) True >>> is_string_dtype(object) True >>> is_string_dt...
doc_3181
Set tick locations. Parameters tickslist of floats List of tick locations. labelslist of str, optional List of tick labels. If not set, the labels show the data value. minorbool, default: False If False, set the major ticks; if True, the minor ticks. **kwargs Text properties for the labels. These take...
doc_3182
Figures out the full host name for the given domain part. The domain part is a subdomain in case host matching is disabled or a full host name. Parameters domain_part (Optional[str]) – Return type str
doc_3183
Abstract base class for structures in native byte order. Concrete structure and union types must be created by subclassing one of these types, and at least define a _fields_ class variable. ctypes will create descriptors which allow reading and writing the fields by direct attribute accesses. These are the _fields_ ...
doc_3184
Add a non-resampled image to the figure. The image is attached to the lower or upper left corner depending on origin. Parameters X The image data. This is an array of one of the following shapes: MxN: luminance (grayscale) values MxNx3: RGB values MxNx4: RGBA values xo, yoint The x/y image offset in pixels....
doc_3185
Bases: matplotlib.backends.backend_webagg_core.FigureCanvasWebAggCore
doc_3186
calculates the angle to a given vector in degrees. angle_to(Vector2) -> float Returns the angle between self and the given vector.
doc_3187
Computes the solution to the least squares and least norm problems for a full rank matrix AA of size (m×n)(m \times n) and a matrix BB of size (m×k)(m \times k) . If m≥nm \geq n , lstsq() solves the least-squares problem: min⁡X∥AX−B∥2.\begin{array}{ll} \min_X & \|AX-B\|_2. \end{array} If m<nm < n , lstsq() solves ...
doc_3188
Index Attribute Meaning 0 sp_namp Login name 1 sp_pwdp Encrypted password 2 sp_lstchg Date of last change 3 sp_min Minimal number of days between changes 4 sp_max Maximum number of days between changes 5 sp_warn Number of days before password expires to warn user about it 6 sp_inact Number of days after ...
doc_3189
A quantized linear module with quantized tensor as inputs and outputs. We adopt the same interface as torch.nn.Linear, please see https://pytorch.org/docs/stable/nn.html#torch.nn.Linear for documentation. Similar to Linear, attributes will be randomly initialized at module creation time and will be overwritten later ...
doc_3190
Draws samples in [0, 1] from a power distribution with positive exponent a - 1. Also known as the power function distribution. Parameters afloat or array_like of floats Parameter of the distribution. Must be non-negative. sizeint or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k...
doc_3191
Called when the mouse moves during a pan operation. Parameters buttonMouseButton The pressed mouse button. keystr or None The pressed key, if any. x, yfloat The mouse coordinates in display coords. Notes This is intended to be overridden by new projection types.
doc_3192
Data-type of the array’s elements. Parameters None Returns dnumpy dtype object See also numpy.dtype Examples >>> x array([[0, 1], [2, 3]]) >>> x.dtype dtype('int32') >>> type(x.dtype) <type 'numpy.dtype'>
doc_3193
See Migration guide for more details. tf.compat.v1.raw_ops.Assert tf.raw_ops.Assert( condition, data, summarize=3, name=None ) If condition evaluates to false, print the list of tensors in data. summarize determines how many entries of the tensors to print. Args condition A Tensor of type bool. The cond...
doc_3194
The inverse of format_datetime(). Performs the same function as parsedate(), but on success returns a datetime. If the input date has a timezone of -0000, the datetime will be a naive datetime, and if the date is conforming to the RFCs it will represent a time in UTC but with no indication of the actual source timezone...
doc_3195
Singular Value Decomposition. When a is a 2D array, it is factorized as u @ np.diag(s) @ vh = (u * s) @ vh, where u and vh are 2D unitary arrays and s is a 1D array of a’s singular values. When a is higher-dimensional, SVD is applied in stacked mode as explained below. Parameters a(…, M, N) array_like A real or...
doc_3196
python:bind ^I rl_complete Init file The following functions relate to the init file and user configuration: readline.parse_and_bind(string) Execute the init line provided in the string argument. This calls rl_parse_and_bind() in the underlying library. readline.read_init_file([filename]) Execute a readline...
doc_3197
See Migration guide for more details. tf.compat.v1.raw_ops.StackV2 tf.raw_ops.StackV2( max_size, elem_type, stack_name='', name=None ) Args max_size A Tensor of type int32. The maximum size of the stack if non-negative. If negative, the stack size is unlimited. elem_type A tf.DType. The type of th...
doc_3198
Set the projection type. Parameters proj_type{'persp', 'ortho'}
doc_3199
The configuration dictionary as Config. This behaves exactly like a regular dictionary but supports additional methods to load a config from files.