_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_8100 | Traces of all memory blocks allocated by Python: sequence of Trace instances. The sequence has an undefined order. Use the Snapshot.statistics() method to get a sorted list of statistics. | |
doc_8101 |
Creates a criterion that optimizes a multi-class classification hinge loss (margin-based loss) between input xx (a 2D mini-batch Tensor) and output yy (which is a 1D tensor of target class indices, 0≤y≤x.size(1)−10 \leq y \leq \text{x.size}(1)-1 ): For each mini-batch sample, the loss in terms of the 1D input xx a... | |
doc_8102 |
Return a dict of savefig file formats supported by this backend, where the keys are a file type name, such as 'Joint Photographic Experts Group', and the values are a list of filename extensions used for that filetype, such as ['jpg', 'jpeg']. | |
doc_8103 |
Disable interactive mode. See pyplot.isinteractive for more details. See also ion
Enable interactive mode. isinteractive
Whether interactive mode is enabled. show
Show all figures (and maybe block). pause
Show all figures, and block for a time. Notes For a temporary change, this can be used as a context m... | |
doc_8104 |
Set the JoinStyle for the collection (for all its elements). Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_8105 |
Perform mean shift clustering of data using a flat kernel. Read more in the User Guide. Parameters
Xarray-like of shape (n_samples, n_features)
Input data.
bandwidthfloat, default=None
Kernel bandwidth. If bandwidth is not given, it is determined using a heuristic based on the median of all pairwise distanc... | |
doc_8106 |
Bases: matplotlib.ticker.TickHelper Create a string based on a tick value and location. staticfix_minus(s)[source]
Some classes may want to replace a hyphen for minus with the proper unicode symbol (U+2212) for typographical correctness. This is a helper method to perform such a replacement when it is enabled via... | |
doc_8107 |
Return the name of the font family used for math text. The default font is rcParams["mathtext.fontset"] (default: 'dejavusans'). | |
doc_8108 | Remove all elements from the set. | |
doc_8109 | See Migration guide for more details. tf.compat.v1.keras.utils.deserialize_keras_object
tf.keras.utils.deserialize_keras_object(
identifier, module_objects=None, custom_objects=None,
printable_module_name='object'
) | |
doc_8110 | See Migration guide for more details. tf.compat.v1.raw_ops.StackPopV2
tf.raw_ops.StackPopV2(
handle, elem_type, name=None
)
Args
handle A Tensor of type resource. The handle to a stack.
elem_type A tf.DType. The type of the elem that is popped.
name A name for the operation (optional).
... | |
doc_8111 | Returns False if set_unusable_password() has been called for this user. | |
doc_8112 | operator.__neg__(obj)
Return obj negated (-obj). | |
doc_8113 |
Scalar method identical to the corresponding array attribute. Please see ndarray.var. | |
doc_8114 | resume pause playback of a channel unpause() -> None Resume the playback on a paused channel. | |
doc_8115 |
Return a measure of the triangulation triangles flatness. The ratio of the incircle radius over the circumcircle radius is a widely used indicator of a triangle flatness. It is always <= 0.5 and == 0.5 only for equilateral triangles. Circle ratios below 0.01 denote very flat triangles. To avoid unduly low values due ... | |
doc_8116 | This has a different meaning for each node type; see the DOM specification for details. You can always get the information you would get here from another property such as the tagName property for elements or the name property for attributes. For all node types, the value of this attribute will be either a string or No... | |
doc_8117 | Get a list of records for a frame and all higher (calling) and lower frames, and the size of the higher part. | |
doc_8118 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_8119 | tf.initializers.get Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.initializers.get
tf.keras.initializers.get(
identifier
) | |
doc_8120 |
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_8121 |
Add a set of subplots to this figure. This utility wrapper makes it convenient to create common layouts of subplots in a single call. Parameters
nrows, ncolsint, default: 1
Number of rows/columns of the subplot grid.
sharex, shareybool or {'none', 'all', 'row', 'col'}, default: False
Controls sharing of x-a... | |
doc_8122 | Print the byte string char to the console without buffering. | |
doc_8123 |
Construct Python bytes containing the raw data bytes in the array. Constructs Python bytes showing a copy of the raw contents of data memory. The bytes object is produced in C-order by default. This behavior is controlled by the order parameter. New in version 1.9.0. Parameters
order{‘C’, ‘F’, ‘A’}, optional
... | |
doc_8124 | Return the time zone name corresponding to the datetime object dt, as a string. Nothing about string names is defined by the datetime module, and there’s no requirement that it mean anything in particular. For example, “GMT”, “UTC”, “-500”, “-5:00”, “EDT”, “US/Eastern”, “America/New York” are all valid replies. Return ... | |
doc_8125 |
Switch the orientation of the event line, either from vertical to horizontal or vice versus. | |
doc_8126 | sklearn.cluster.affinity_propagation(S, *, preference=None, convergence_iter=15, max_iter=200, damping=0.5, copy=True, verbose=False, return_n_iter=False, random_state='warn') [source]
Perform Affinity Propagation Clustering of data. Read more in the User Guide. Parameters
Sarray-like of shape (n_samples, n_sampl... | |
doc_8127 | See Migration guide for more details. tf.compat.v1.raw_ops.Betainc
tf.raw_ops.Betainc(
a, b, x, name=None
)
The regularized incomplete beta integral is defined as: \(I_x(a, b) = \frac{B(x; a, b)}{B(a, b)}\) where \(B(x; a, b) = \int_0^x t^{a-1} (1 - t)^{b-1} dt\) is the incomplete beta function and \(B(a, b)\) i... | |
doc_8128 | A class attribute that denotes the character used to join the list of expressions together. Defaults to ', '. | |
doc_8129 |
Set the maximum theta limit in degrees. | |
doc_8130 | Returns a new tensor with the exponential of the elements minus 1 of input. yi=exi−1y_{i} = e^{x_{i}} - 1
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> torch.expm1(torch.tensor([0, math.log(2.)]))
tensor([ 0., 1.]) | |
doc_8131 | Write the modified properties to the summary information stream, using MsiSummaryInfoPersist(). | |
doc_8132 |
Fallback implementation of draw_quad_mesh() that generates paths and then calls draw_path_collection(). | |
doc_8133 | 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_8134 |
Set the figure's background patch visibility, i.e. whether the figure background will be drawn. Equivalent to Figure.patch.set_visible(). Parameters
bbool | |
doc_8135 |
Return list of subpackage configurations. Parameters
subpackage_namestr or None
Name of the subpackage to get the configuration. ‘*’ in subpackage_name is handled as a wildcard.
subpackage_pathstr
If None, then the path is assumed to be the local path plus the subpackage_name. If a setup.py file is not foun... | |
doc_8136 | Enable UCS-4 mode ucs4 -> bool Gets or sets the decoding of Unicode text. By default, the freetype module performs UTF-16 surrogate pair decoding on Unicode text. This allows 32-bit escape sequences ('Uxxxxxxxx') between 0x10000 and 0x10FFFF to represent their corresponding UTF-32 code points on Python interpreters b... | |
doc_8137 |
Return the CapStyle. | |
doc_8138 |
Detect missing values for an array-like object. This function takes a scalar or array-like object and indicates whether values are missing (NaN in numeric arrays, None or NaN in object arrays, NaT in datetimelike). Parameters
obj:scalar or array-like
Object to check for null or missing values. Returns
bool... | |
doc_8139 |
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass. | |
doc_8140 | When True, raise exception Error on bad CSV input. The default is False. | |
doc_8141 |
Generates a flat, rectangular-shaped structuring element. Every pixel in the rectangle generated for a given width and given height belongs to the neighborhood. Parameters
nrowsint
The number of rows of the rectangle.
ncolsint
The number of columns of the rectangle. Returns
selemndarray
A structurin... | |
doc_8142 |
Comouter RAG based on region boundaries Given an image’s initial segmentation and its edge map this method constructs the corresponding Region Adjacency Graph (RAG). Each node in the RAG represents a set of pixels within the image with the same label in labels. The weight between two adjacent regions is the average v... | |
doc_8143 | Acquire the underlying lock. This method calls the corresponding method on the underlying lock; the return value is whatever that method returns. | |
doc_8144 |
set_transform is ignored. | |
doc_8145 | Insert key with a value of default if key is not in the dictionary. Return the value for key if key is in the dictionary, else default. Parameters
key (str) –
default (Optional[Any]) – Return type
Any | |
doc_8146 | A regular expression pattern; only files with names matching this expression will be allowed as choices. | |
doc_8147 |
Read SQL query into a DataFrame. Returns a DataFrame corresponding to the result set of the query string. Optionally provide an index_col parameter to use one of the columns as the index, otherwise default integer index will be used. Parameters
sql:str SQL query or SQLAlchemy Selectable (select or text object)
... | |
doc_8148 |
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_8149 |
Return the visibility. | |
doc_8150 |
Returns the state of the scheduler as a dict. It contains an entry for every variable in self.__dict__ which is not the optimizer. The learning rate lambda functions will only be saved if they are callable objects and not if they are functions or lambdas. | |
doc_8151 | Response subclass that provides extra information about requests made with the test Client. Test client requests will always return an instance of this class. If a custom response class is passed to the client, it is subclassed along with this to support test information. If the test request included large files, or if... | |
doc_8152 |
Draw a glyph described by info to the reference point (ox, oy). | |
doc_8153 |
Return greyscale morphological closing of an image. The morphological closing on an image is defined as a dilation followed by an erosion. Closing can remove small dark spots (i.e. “pepper”) and connect small bright cracks. This tends to “close” up (dark) gaps between (bright) features. Parameters
imagendarray
... | |
doc_8154 |
Set the colormap for luminance data. Parameters
cmapColormap or str or None | |
doc_8155 |
Computes batched the p-norm distance between each pair of the two collections of row vectors. Parameters
x1 (Tensor) – input tensor of shape B×P×MB \times P \times M .
x2 (Tensor) – input tensor of shape B×R×MB \times R \times M .
p – p value for the p-norm distance to calculate between each vector pair ∈[0,∞]\... | |
doc_8156 | The strength associated with the strong or wide font styles strength -> float The amount by which a font glyph's size is enlarged for the strong or wide transformations, as a fraction of the untransformed size. For the wide style only the horizontal dimension is increased. For strong text both the horizontal and vert... | |
doc_8157 | Set the current process’ group id. Availability: Unix. | |
doc_8158 |
Subtract one Legendre series from another. Returns the difference of two Legendre series c1 - c2. The sequences of coefficients are from lowest order term to highest, i.e., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters
c1, c2array_like
1-D arrays of Legendre series coefficients ordered from low ... | |
doc_8159 |
Return the roots of the series polynomial. Compute the roots for the series. Note that the accuracy of the roots decrease the further outside the domain they lie. Returns
rootsndarray
Array containing the roots of the series. | |
doc_8160 |
See torch.norm() | |
doc_8161 | See Migration guide for more details. tf.compat.v1.debugging.assert_none_equal
tf.compat.v1.assert_none_equal(
x, y, data=None, summarize=None, message=None, name=None
)
This condition holds if for every pair of (possibly broadcast) elements x[i], y[i], we have x[i] != y[i]. If both x and y are empty, this is tr... | |
doc_8162 |
Return all the non-masked data as a 1-D array. Returns
datandarray
A new ndarray holding the non-masked data is returned. Notes The result is not a MaskedArray! Examples >>> x = np.ma.array(np.arange(5), mask=[0]*2 + [1]*3)
>>> x.compressed()
array([0, 1])
>>> type(x.compressed())
<class 'numpy.ndarray'> | |
doc_8163 | See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorPermutation
tf.linalg.LinearOperatorPermutation(
perm, dtype=tf.dtypes.float32, is_non_singular=None, is_self_adjoint=None,
is_positive_definite=None, is_square=None,
name='LinearOperatorPermutation'
)
This operator acts like a [batc... | |
doc_8164 | Constructs the target URL for redirection. The args and kwargs arguments are positional and/or keyword arguments captured from the URL pattern, respectively. The default implementation uses url as a starting string and performs expansion of % named parameters in that string using the named groups captured in the URL. I... | |
doc_8165 |
Wait for all the kernels in this stream to complete. Note This is a wrapper around cudaStreamSynchronize(): see CUDA Stream documentation for more info. | |
doc_8166 |
Set the latitude(s) at which to stop drawing the longitude grids. | |
doc_8167 | Set the process group associated with the terminal given by fd (an open file descriptor as returned by os.open()) to pg. Availability: Unix. | |
doc_8168 | Set all the above parameters at once. The argument is a tuple consisting of the various parameters. This means that it is possible to use the result of a getparams() call as argument to setparams(). | |
doc_8169 |
Set Default behavior for copy the limbo. | |
doc_8170 | msvcrt.LK_RLCK
Locks the specified bytes. If the bytes cannot be locked, the program immediately tries again after 1 second. If, after 10 attempts, the bytes cannot be locked, OSError is raised. | |
doc_8171 |
Classic marching cubes algorithm to find surfaces in 3d volumetric data. Note that the marching_cubes() algorithm is recommended over this algorithm, because it’s faster and produces better results. Parameters
volume(M, N, P) array of doubles
Input data volume to find isosurfaces. Will be cast to np.float64.
... | |
doc_8172 | A subclass of BaseManager which can be used for the management of shared memory blocks across processes. A call to start() on a SharedMemoryManager instance causes a new process to be started. This new process’s sole purpose is to manage the life cycle of all shared memory blocks created through it. To trigger the rele... | |
doc_8173 | Return True if the values a and b are close to each other and False otherwise. Whether or not two values are considered close is determined according to given absolute and relative tolerances. rel_tol is the relative tolerance – it is the maximum allowed difference between a and b, relative to the larger absolute value... | |
doc_8174 |
Bases: matplotlib.backend_tools.ToolBase Tool to call the figure manager destroy method. default_keymap=['ctrl+w', 'cmd+w', 'q']
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.
description='Quit the figure'
Descr... | |
doc_8175 |
Check for a complex type or an array of complex numbers. The type of the input is checked, not the value. Even if the input has an imaginary part equal to zero, iscomplexobj evaluates to True. Parameters
xany
The input can be of any type and shape. Returns
iscomplexobjbool
The return value, True if x is... | |
doc_8176 | copyreg.constructor(object)
Declares object to be a valid constructor. If object is not callable (and hence not valid as a constructor), raises TypeError.
copyreg.pickle(type, function, constructor=None)
Declares that function should be used as a “reduction” function for objects of type type. function should re... | |
doc_8177 | The minimum pixel value of the band (excluding the “no data” value). | |
doc_8178 |
Set pixel color in the image at the given coordinates. Note that this function modifies the color of the image in-place. Coordinates that exceed the shape of the image will be ignored. Parameters
image(M, N, D) ndarray
Image
coordstuple of ((P,) ndarray, (P,) ndarray)
Row and column coordinates of pixels to... | |
doc_8179 | sklearn.metrics.silhouette_samples(X, labels, *, metric='euclidean', **kwds) [source]
Compute the Silhouette Coefficient for each sample. The Silhouette Coefficient is a measure of how well samples are clustered with samples that are similar to themselves. Clustering models with a high Silhouette Coefficient are said... | |
doc_8180 |
Applies a 2D nearest neighbor upsampling to an input signal composed of several input channels. To specify the scale, it takes either the size or the scale_factor as it’s constructor argument. When size is given, it is the output size of the image (h, w). Parameters
size (int or Tuple[int, int], optional) – outpu... | |
doc_8181 | Registers a forward pre-hook on the module. The hook will be called every time before forward() is invoked. It should have the following signature: hook(module, input) -> None or modified input
The input contains only the positional arguments given to the module. Keyword arguments won’t be passed to the hooks and only... | |
doc_8182 |
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_8183 |
Base class for writing movies. This is a base class for MovieWriter subclasses that write a movie frame data to a pipe. You cannot instantiate this class directly. See examples for how to use its subclasses. Attributes
frame_formatstr
The format used in writing frame data, defaults to 'rgba'.
figFigure
The ... | |
doc_8184 |
Parameters
pathPath
transformTransform | |
doc_8185 |
Set the label for the y-axis. Parameters
ylabelstr
The label text.
labelpadfloat, default: rcParams["axes.labelpad"] (default: 4.0)
Spacing in points from the Axes bounding box including ticks and tick labels. If None, the previous value is left as is.
loc{'bottom', 'center', 'top'}, default: rcParams["ya... | |
doc_8186 |
An Index containing the unique categories allowed. | |
doc_8187 | tf.compat.v1.Dimension(
value
)
Attributes
value The value of this dimension, or None if it is unknown. Methods assert_is_compatible_with View source
assert_is_compatible_with(
other
)
Raises an exception if other is not compatible with this Dimension.
Args
other Another Dimension.
... | |
doc_8188 | Read-only attribute which is always False. This is a way of differentiating User and AnonymousUser objects. Generally, you should prefer using is_authenticated to this attribute. | |
doc_8189 |
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy. | |
doc_8190 | skimage.feature.blob_dog(image[, min_sigma, …]) Finds blobs in the given grayscale image.
skimage.feature.blob_doh(image[, min_sigma, …]) Finds blobs in the given grayscale image.
skimage.feature.blob_log(image[, min_sigma, …]) Finds blobs in the given grayscale image.
skimage.feature.canny(image[, sigma, …]) Edg... | |
doc_8191 |
Restore the graphics context from the stack - needed only for backends that save graphics contexts on a stack. | |
doc_8192 |
Issues a DeprecationWarning, adds warning to old_name’s docstring, rebinds old_name.__name__ and returns the new function object. This function may also be used as a decorator. Parameters
funcfunction
The function to be deprecated.
old_namestr, optional
The name of the function to be deprecated. Default is ... | |
doc_8193 |
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. | |
doc_8194 |
Performs inductive inference across the model. Parameters
Xarray-like of shape (n_samples, n_features)
The data matrix. Returns
yndarray of shape (n_samples,)
Predictions for input data. | |
doc_8195 | tf.compat.v1.estimator.DNNLinearCombinedRegressor(
model_dir=None, linear_feature_columns=None, linear_optimizer='Ftrl',
dnn_feature_columns=None, dnn_optimizer='Adagrad',
dnn_hidden_units=None, dnn_activation_fn=tf.nn.relu, dnn_dropout=None,
label_dimension=1, weight_column=None, input_layer_partitione... | |
doc_8196 |
Update the subplot parameters of the grid. Parameters that are not explicitly given are not changed. Setting a parameter to None resets it to rcParams["figure.subplot.*"]. Parameters
left, right, top, bottomfloat or None, optional
Extent of the subplots as a fraction of figure width or height.
wspace, hspacef... | |
doc_8197 |
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_8198 | A subclass of OSError, this exception is raised for address-related errors, i.e. for functions that use h_errno in the POSIX C API, including gethostbyname_ex() and gethostbyaddr(). The accompanying value is a pair (h_errno, string) representing an error returned by a library call. h_errno is a numeric value, while str... | |
doc_8199 | Insert text into the line buffer at the cursor position. This calls rl_insert_text() in the underlying library, but ignores the return value. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.