_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_22100
Create axes that can act as a hosts to parasitic axes. Parameters figurematplotlib.figure.Figure Figure to which the axes will be added. Defaults to the current figure pyplot.gcf(). *args, **kwargs Will be passed on to the underlying Axes object creation.
doc_22101
The string '01234567'.
doc_22102
Returns the list of elements defined in the current theme.
doc_22103
False if the decompress() method can provide more decompressed data before requiring new uncompressed input. New in version 3.5.
doc_22104
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_22105
See Migration guide for more details. tf.compat.v1.raw_ops.SelfAdjointEigV2 tf.raw_ops.SelfAdjointEigV2( input, compute_v=True, name=None ) Computes the eigenvalues and (optionally) eigenvectors of each inner matrix in input such that input[..., :, :] = v[..., :, :] * diag(e[..., :]). The eigenvalues are sorted ...
doc_22106
Round to nearest with ties going towards zero.
doc_22107
Identity function. If p is the returned series, then p(x) == x for all values of x. Parameters domain{None, array_like}, optional If given, the array must be of the form [beg, end], where beg and end are the endpoints of the domain. If None is given then the class domain is used. The default is None. window{N...
doc_22108
Return a dictionary of all the properties of the artist.
doc_22109
Represents the C 32-bit unsigned int datatype. Usually an alias for c_uint.
doc_22110
See Migration guide for more details. tf.compat.v1.keras.backend.is_keras_tensor tf.keras.backend.is_keras_tensor( x ) A "Keras tensor" is a tensor that was returned by a Keras layer, (Layer class) or by Input. Arguments x A candidate tensor. Returns A boolean: Whether the argument is a Keras ...
doc_22111
Computes the element-wise least common multiple (LCM) of input and other. Both input and other must have integer types. Note This defines lcm(0,0)=0lcm(0, 0) = 0 and lcm(0,a)=0lcm(0, a) = 0 . Parameters input (Tensor) – the input tensor. other (Tensor) – the second input tensor Keyword Arguments out (Tensor,...
doc_22112
Mask an array where greater than a given value. This function is a shortcut to masked_where, with condition = (x > value). See also masked_where Mask where a condition is met. Examples >>> import numpy.ma as ma >>> a = np.arange(4) >>> a array([0, 1, 2, 3]) >>> ma.masked_greater(a, 2) masked_array(data=[0, 1, 2...
doc_22113
Returns the k largest elements of the given input tensor along a given dimension. If dim is not given, the last dimension of the input is chosen. If largest is False then the k smallest elements are returned. A namedtuple of (values, indices) is returned, where the indices are the indices of the elements in the origina...
doc_22114
True if this transform has a corresponding inverse transform.
doc_22115
Write out the PDF trailer.
doc_22116
If the given section exists, set the given option to the specified value; otherwise raise NoSectionError. option and value must be strings; if not, TypeError is raised.
doc_22117
Fit model to data. Parameters Xarray-like of shape (n_samples, n_features) Training vectors, where n_samples is the number of samples and n_features is the number of predictors. Yarray-like of shape (n_samples,) or (n_samples, n_targets) Target vectors, where n_samples is the number of samples and n_targets...
doc_22118
Capture enough detail about a non-file-based module to permit getting its lines later via getline() even if module_globals is None in the later call. This avoids doing I/O until a line is actually needed, without having to carry the module globals around indefinitely. New in version 3.5.
doc_22119
See Migration guide for more details. tf.compat.v1.raw_ops.Substr tf.raw_ops.Substr( input, pos, len, unit='BYTE', name=None ) For each string in the input Tensor, creates a substring starting at index pos with a total length of len. If len defines a substring that would extend beyond the length of the input str...
doc_22120
Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ImageViewer. For example: viewer += Plugin(...) Also note that attach automatically calls the filter function so that the image matches the filtered value specified by attached widgets.
doc_22121
See Migration guide for more details. tf.compat.v1.raw_ops.HistogramSummary tf.raw_ops.HistogramSummary( tag, values, name=None ) The generated Summary has one summary value containing a histogram for values. This op reports an InvalidArgument error if any value is not finite. Args tag A Tensor of type ...
doc_22122
The ordinal day of the year.
doc_22123
Get Multiplication of dataframe and other, element-wise (binary operator mul). Equivalent to dataframe * other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, rmul. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //,...
doc_22124
Fill the array with a scalar value. Parameters valuescalar All elements of a will be assigned this value. Examples >>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([1., 1.])
doc_22125
Deactivates the currently active translation object so that further _ calls will resolve against the default translation object, again.
doc_22126
Find the point in the contour plot that is closest to (x, y). Parameters x, yfloat The reference point. indiceslist of int or None, default: None Indices of contour levels to consider. If None (the default), all levels are considered. pixelbool, default: True If True, measure distance in pixel (screen) ...
doc_22127
Add the file with the pathname full to the CAB file, under the name logical. If there is already a file named logical, a new file name is created. Return the index of the file in the CAB file, and the new name of the file inside the CAB file.
doc_22128
Get or set the theta gridlines on the current polar plot. Call signatures: lines, labels = thetagrids() lines, labels = thetagrids(angles, labels=None, fmt=None, **kwargs) When called with no arguments, thetagrids simply returns the tuple (lines, labels). When called with arguments, the labels will appear at the spe...
doc_22129
Query or modify the configuration options of the Tix application context. If no option is specified, returns a dictionary all of the available options. If option is specified with no value, then the method returns a list describing the one named option (this list will be identical to the corresponding sublist of the va...
doc_22130
Restrict the features to those in support using feature selection. This function modifies the estimator in-place. Parameters supportarray-like Boolean mask or list of indices (as returned by the get_support member of feature selectors). indicesbool, default=False Whether support is a list of indices. Ret...
doc_22131
Return the offset of the lines used to mark each event.
doc_22132
[Deprecated] Set minimumdescent. If True, extent of the single line text is adjusted so that its descent is at least the one of the glyph "p". Notes Deprecated since version 3.4.
doc_22133
A page acts like a sequence of Page.object_list when using len() or iterating it directly.
doc_22134
Compute Adapted Rand error as defined by the SNEMI3D contest. [1] Parameters image_truendarray of int Ground-truth label image, same shape as im_test. image_testndarray of int Test image. tablescipy.sparse array in crs format, optional A contingency table built with skimage.evaluate.contingency_table. I...
doc_22135
Resets all of the flags to 0.
doc_22136
A callable (typically a form class) to use for authentication. Defaults to AuthenticationForm.
doc_22137
See torch.float_power()
doc_22138
Render a DataFrame to a console-friendly tabular output. Parameters buf:str, Path or StringIO-like, optional, default None Buffer to write to. If None, the output is returned as a string. columns:sequence, optional, default None The subset of columns to write. Writes all columns by default. col_space:int,...
doc_22139
See Migration guide for more details. tf.compat.v1.estimator.WarmStartSettings tf.estimator.WarmStartSettings( ckpt_to_initialize_from, vars_to_warm_start='.*', var_name_to_vocab_info=None, var_name_to_prev_var_name=None ) Example Use with canned tf.estimator.DNNEstimator: emb_vocab_file = tf.feature_column....
doc_22140
A Legendre series class. The Legendre class provides the standard Python numerical methods ‘+’, ‘-’, ‘*’, ‘//’, ‘%’, ‘divmod’, ‘**’, and ‘()’ as well as the attributes and methods listed in the ABCPolyBase documentation. Parameters coefarray_like Legendre coefficients in order of increasing degree, i.e., (1, 2,...
doc_22141
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_22142
A dictionary mapping module names to modules. See Example usage of ModuleFinder.
doc_22143
Set the alpha value used for blending - not supported on all backends. Parameters alphascalar or None alpha must be within the 0-1 range, inclusive.
doc_22144
Returns the centroid of the set bits centroid() -> (x, y) Finds the centroid (the center mass of the set bits) for this mask. Returns: a coordinate tuple indicating the centroid of the mask, it will return (0, 0) if the mask has no bits set Return type: tuple(int, int)
doc_22145
operator.attrgetter(*attrs) Return a callable object that fetches attr from its operand. If more than one attribute is requested, returns a tuple of attributes. The attribute names can also contain dots. For example: After f = attrgetter('name'), the call f(b) returns b.name. After f = attrgetter('name', 'date'), th...
doc_22146
Select values between particular times of the day (e.g., 9:00-9:30 AM). By setting start_time to be later than end_time, you can get the times that are not between the two times. Parameters start_time:datetime.time or str Initial time as a time filter limit. end_time:datetime.time or str End time as a time ...
doc_22147
tf.image.decode_jpeg Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_jpeg, tf.compat.v1.io.decode_jpeg tf.io.decode_jpeg( contents, channels=0, ratio=1, fancy_upscaling=True, try_recover_truncated=False, acceptable_fraction=1, dct_method='', name=None ) The at...
doc_22148
Convert an image array to a new color space. Valid color spaces are: ‘RGB’, ‘HSV’, ‘RGB CIE’, ‘XYZ’, ‘YUV’, ‘YIQ’, ‘YPbPr’, ‘YCbCr’, ‘YDbDr’ Parameters arr(…, 3) array_like The image to convert. Final dimension denotes channels. fromspacestr The color space to convert from. Can be specified in lower cas...
doc_22149
Use Matplotlib style settings from a style specification. The style name of 'default' is reserved for reverting back to the default style settings. Note This updates the rcParams with the settings from the style. rcParams not defined in the style are kept. Parameters stylestr, dict, Path or list A style speci...
doc_22150
tf.compat.v1.ConditionalAccumulatorBase( dtype, shape, accumulator_ref ) Up-to-date gradients (i.e., time step at which gradient was computed is equal to the accumulator's time step) are added to the accumulator. Extraction of the average gradient is blocked until the required number of gradients has been accumula...
doc_22151
See Migration guide for more details. tf.compat.v1.app.flags.WhitespaceSeparatedListParser tf.compat.v1.flags.WhitespaceSeparatedListParser( comma_compat=False ) Args comma_compat bool, whether to support comma as an additional separator. If False then only whitespace is supported. This is intended only...
doc_22152
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_22153
stat.FILE_ATTRIBUTE_COMPRESSED stat.FILE_ATTRIBUTE_DEVICE stat.FILE_ATTRIBUTE_DIRECTORY stat.FILE_ATTRIBUTE_ENCRYPTED stat.FILE_ATTRIBUTE_HIDDEN stat.FILE_ATTRIBUTE_INTEGRITY_STREAM stat.FILE_ATTRIBUTE_NORMAL stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED stat.FILE_ATTRIBUTE_NO_SCRUB_DATA stat.FILE_ATTRIBUTE...
doc_22154
Returns the indices that would partition this array. Refer to numpy.argpartition for full documentation. New in version 1.8.0. See also numpy.argpartition equivalent function
doc_22155
A factory function for constructing a new empty message object. Used by the parser when building messages. Defaults to None, in which case Message is used. New in version 3.6.
doc_22156
rotates a vector by a given angle in radians. rotate_rad(angle) -> Vector2 Returns a vector which has the same length as self but is rotated counterclockwise by the given angle in radians. New in pygame 2.0.0.
doc_22157
Read one line, where “line” is a sequence of bytes ending with \n. If EOF is received and \n was not found, the method returns partially read data. If EOF is received and the internal buffer is empty, return an empty bytes object.
doc_22158
Names of levels in MultiIndex. Examples >>> mi = pd.MultiIndex.from_arrays( ... [[1, 2], [3, 4], [5, 6]], names=['x', 'y', 'z']) >>> mi MultiIndex([(1, 3, 5), (2, 4, 6)], names=['x', 'y', 'z']) >>> mi.names FrozenList(['x', 'y', 'z'])
doc_22159
Loads the optimizer state. Parameters state_dict (dict) – optimizer state. Should be an object returned from a call to state_dict().
doc_22160
See Migration guide for more details. tf.compat.v1.math.unsorted_segment_min, tf.compat.v1.unsorted_segment_min tf.math.unsorted_segment_min( data, segment_ids, num_segments, name=None ) Read the section on segmentation for an explanation of segments. This operator is similar to the unsorted segment sum operator...
doc_22161
Extend the left side of the deque by appending elements from iterable. Note, the series of left appends results in reversing the order of elements in the iterable argument.
doc_22162
Bases: object PDF reference object. Use PdfFile.reserveObject() to create References. pdfRepr()[source] write(contents, file)[source]
doc_22163
In-place version of addmm()
doc_22164
Add an Axes to the figure as part of a subplot arrangement. Call signatures: add_subplot(nrows, ncols, index, **kwargs) add_subplot(pos, **kwargs) add_subplot(ax) add_subplot() Parameters *argsint, (int, int, index), or SubplotSpec, default: (1, 1, 1) The position of the subplot described by one of Three inte...
doc_22165
Don’t pop the request context when an exception occurs. If not set, this is true if DEBUG is true. This allows debuggers to introspect the request data on errors, and should normally not need to be set directly. Default: None
doc_22166
hit the moving chimp chimp.main() -> None This simple example is derived from the line-by-line tutorial that comes with pygame. It is based on a 'popular' web banner. Note there are comments here, but for the full explanation, follow along in the tutorial.
doc_22167
Computes the logarithm of the gamma function on input. outi=log⁡Γ(inputi)\text{out}_{i} = \log \Gamma(\text{input}_{i}) Parameters input (Tensor) – the input tensor. out (Tensor, optional) – the output tensor. Example: >>> a = torch.arange(0.5, 2, 0.5) >>> torch.lgamma(a) tensor([ 0.5724, 0.0000, -0.1208])
doc_22168
Copy properties from gc to self.
doc_22169
New in Django 3.2. An optional boolean argument that determines if array values will be distinct. Defaults to False.
doc_22170
Least squares fit of Laguerre series to data. Return the coefficients of a Laguerre series of degree deg that is the least squares fit to the data values y given at points x. If y is 1-D the returned coefficients will also be 1-D. If y is 2-D multiple fits are done, one for each column of y, and the resulting coeffic...
doc_22171
tkinter.messagebox.askokcancel(title=None, message=None, **options) tkinter.messagebox.askretrycancel(title=None, message=None, **options) tkinter.messagebox.askyesno(title=None, message=None, **options) tkinter.messagebox.askyesnocancel(title=None, message=None, **options)
doc_22172
select.epoll()-based selector. fileno() This returns the file descriptor used by the underlying select.epoll() object.
doc_22173
See Migration guide for more details. tf.compat.v1.ragged.cross_hashed tf.ragged.cross_hashed( inputs, num_buckets=0, hash_key=None, name=None ) The input tensors must have rank=2, and must all have the same number of rows. The result is a RaggedTensor with the same number of rows as the inputs, where result[row...
doc_22174
sklearn.datasets.make_circles(n_samples=100, *, shuffle=True, noise=None, random_state=None, factor=0.8) [source] Make a large circle containing a smaller circle in 2d. A simple toy dataset to visualize clustering and classification algorithms. Read more in the User Guide. Parameters n_samplesint or tuple of shap...
doc_22175
Return a new SSLContext object with default settings for the given purpose. The settings are chosen by the ssl module, and usually represent a higher security level than when calling the SSLContext constructor directly. cafile, capath, cadata represent optional CA certificates to trust for certificate verification, as ...
doc_22176
Saves given tensors for a future call to backward(). This should be called at most once, and only from inside the forward() method. Later, saved tensors can be accessed through the saved_tensors attribute. Before returning them to the user, a check is made to ensure they weren’t used in any in-place operation that mo...
doc_22177
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayGatherV3 tf.raw_ops.TensorArrayGatherV3( handle, indices, flow_in, dtype, element_shape=None, name=None ) All elements selected by indices must have the same shape. Args handle A Tensor of type resource. The handle to a TensorArray. ...
doc_22178
Pad left and right side of strings in the Series/Index. Equivalent to str.center(). Parameters width:int Minimum width of resulting string; additional characters will be filled with fillchar. fillchar:str Additional character for filling, default is whitespace. Returns filled:Series/Index of objects.
doc_22179
Returns a new copy of the mask copy() -> Mask Returns: a new copy of this mask, the new mask will have the same width, height, and set/unset bits as the original Return type: Mask Note If a mask subclass needs to copy any instance specific attributes then it should override the __copy__() method. The overr...
doc_22180
See torch.logit()
doc_22181
Compute decision function of X for each iteration. This method allows monitoring (i.e. determine error on testing set) after each stage. Parameters Xarray-like of shape (n_samples, n_features) The input samples. Yields decisiongenerator of ndarray of shape (n_samples,) or (n_samples, n_trees_per_iteration...
doc_22182
Samples from the Gumbel-Softmax distribution (Link 1 Link 2) and optionally discretizes. Parameters logits – […, num_features] unnormalized log probabilities tau – non-negative scalar temperature hard – if True, the returned samples will be discretized as one-hot vectors, but will be differentiated as if it is ...
doc_22183
termios.tcgetattr(fd) Return a list containing the tty attributes for file descriptor fd, as follows: [iflag, oflag, cflag, lflag, ispeed, ospeed, cc] where cc is a list of the tty special characters (each a string of length 1, except the items with indices VMIN and VTIME, which are integers when these fields are def...
doc_22184
Add a radio button named name to the group, at the coordinates x, y, width, height, and with the label text. If value is None, it defaults to name.
doc_22185
Returns True if x is a normal number; otherwise returns False.
doc_22186
See Migration guide for more details. tf.compat.v1.keras.applications.inception_v3.preprocess_input tf.keras.applications.inception_v3.preprocess_input( x, data_format=None ) Usage example with applications.MobileNet: i = tf.keras.layers.Input([None, None, 3], dtype = tf.uint8) x = tf.cast(i, tf.float32) x = tf....
doc_22187
tf.compat.v1.metrics.sparse_average_precision_at_k( labels, predictions, k, weights=None, metrics_collections=None, updates_collections=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use average_precision_at_k instead
doc_22188
Token value for "%=".
doc_22189
“Byteswap” all items of the array. This is only supported for values which are 1, 2, 4, or 8 bytes in size; for other types of values, RuntimeError is raised. It is useful when reading data from a file written on a machine with a different byte order.
doc_22190
Convert a dtype into a ctypes type. Parameters dtypedtype The dtype to convert Returns ctype A ctype scalar, union, array, or struct Raises NotImplementedError If the conversion is not possible Notes This function does not losslessly round-trip in either direction. np.dtype(as_ctypes_type(dt)) w...
doc_22191
Remove the specified categories. removals must be included in the old categories. Values which were in the removed categories will be set to NaN Parameters removals:category or list of categories The categories which should be removed. inplace:bool, default False Whether or not to remove the categories inpl...
doc_22192
tf.experimental.numpy.vstack( tup ) See the NumPy documentation for numpy.vstack.
doc_22193
See Migration guide for more details. tf.compat.v1.raw_ops.StatefulUniformFullInt tf.raw_ops.StatefulUniformFullInt( resource, algorithm, shape, dtype=tf.dtypes.uint64, name=None ) The generated values are uniform integers covering the whole range of dtype. Args resource A Tensor of type resource. The h...
doc_22194
Creates a one-dimensional tensor of size steps whose values are evenly spaced from start to end, inclusive. That is, the value are: (start,start+end−startsteps−1,…,start+(steps−2)∗end−startsteps−1,end)(\text{start}, \text{start} + \frac{\text{end} - \text{start}}{\text{steps} - 1}, \ldots, \text{start} + (\text{steps}...
doc_22195
tf.compat.v1.nn.nce_loss( weights, biases, labels, inputs, num_sampled, num_classes, num_true=1, sampled_values=None, remove_accidental_hits=False, partition_strategy='mod', name='nce_loss' ) A common use case is to use this method for training, and calculate the full sigmoid loss for evaluation or inferen...
doc_22196
The http.cookiejar.CookieJar in which cookies are stored.
doc_22197
This attribute is set to 'RANGE'.
doc_22198
Read one value from the open file and return it. If no valid value is read (e.g. because the data has a different Python version’s incompatible marshal format), raise EOFError, ValueError or TypeError. The file must be a readable binary file. Note If an object containing an unsupported type was marshalled with dump(),...
doc_22199
Create a chararray. Note This class is provided for numarray backward-compatibility. New code (not concerned with numarray compatibility) should use arrays of type string_ or unicode_ and use the free functions in numpy.char for fast vectorized string operations instead. Versus a regular NumPy array of type str or ...