_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_25200
Parameters s{'nearest', 'bilinear'} or None If None, use rcParams["image.interpolation"] (default: 'antialiased').
doc_25201
Get Addition of dataframe and other, element-wise (binary operator radd). Equivalent to other + dataframe, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, add. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //, %, **...
doc_25202
Set the colors for masked (bad) values and, when norm.clip = False, low (under) and high (over) out-of-range values.
doc_25203
String containing the name of the device file.
doc_25204
Convert series to series of this class. The series is expected to be an instance of some polynomial series of one of the types supported by by the numpy.polynomial module, but could be some other class that supports the convert method. New in version 1.7.0. Parameters seriesseries The series instance to be co...
doc_25205
Swaps two rows of a CSC/CSR matrix in-place. Parameters Xsparse matrix of shape (n_samples, n_features) Matrix whose two rows are to be swapped. It should be of CSR or CSC format. mint Index of the row of X to be swapped. nint Index of the row of X to be swapped.
doc_25206
The command to pop a skip tensor. def forward(self, input): skip = yield pop('name') return f(input) + skip Parameters name (str) – name of skip tensor Returns the skip tensor previously stashed by another layer under the same name
doc_25207
Without any optional argument, this method acquires the lock unconditionally, if necessary waiting until it is released by another thread (only one thread at a time can acquire a lock — that’s their reason for existence). If the integer waitflag argument is present, the action depends on its value: if it is zero, the l...
doc_25208
Set the linestyle(s) for the collection. linestyle description '-' or 'solid' solid line '--' or 'dashed' dashed line '-.' or 'dashdot' dash-dotted line ':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq), where onoffseq is an even length tup...
doc_25209
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_25210
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_25211
Return whether to redraw after every plotting command. Note This function is only intended for use in backends. End users should use pyplot.isinteractive instead.
doc_25212
A view that produces a JavaScript code library with functions that mimic the gettext interface, plus an array of translation strings. Attributes domain Translation domain containing strings to add in the view output. Defaults to 'djangojs'. packages A list of application names among installed applications. Th...
doc_25213
Return a copy of a with its elements centered in a string of length width. Calls str.center element-wise. Parameters aarray_like of str or unicode widthint The length of the resulting strings fillcharstr or unicode, optional The padding character to use (default is space). Returns outndarray Outpu...
doc_25214
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_25215
Rather than being a function, tuple is actually an immutable sequence type, as documented in Tuples and Sequence Types — list, tuple, range.
doc_25216
Initialize PyTorch’s CUDA state. You may need to call this explicitly if you are interacting with PyTorch via its C API, as Python bindings for CUDA functionality will not be available until this initialization takes place. Ordinary users should not need this, as all of PyTorch’s CUDA methods automatically initialize...
doc_25217
See Migration guide for more details. tf.compat.v1.raw_ops.ParseExampleDatasetV2 tf.raw_ops.ParseExampleDatasetV2( input_dataset, num_parallel_calls, dense_defaults, sparse_keys, dense_keys, sparse_types, dense_shapes, output_types, output_shapes, deterministic='default', ragged_keys=[], ragged_value_type...
doc_25218
tf.compat.v1.resource_variables_enabled() Resource variables are improved versions of TensorFlow variables with a well-defined memory model. Accessing a resource variable reads its value, and all ops which access a specific read value of the variable are guaranteed to see the same value for that tensor. Writes which h...
doc_25219
Sets gradients of all model parameters to zero. See similar function under torch.optim.Optimizer for more context. Parameters set_to_none (bool) – instead of setting to zero, set the grads to None. See torch.optim.Optimizer.zero_grad() for details.
doc_25220
Returns an iterable of strings over the contents of the package. Do note that it is not required that all names returned by the iterator be actual resources, e.g. it is acceptable to return names for which is_resource() would be false. Allowing non-resource names to be returned is to allow for situations where how a pa...
doc_25221
Compute the roots of a Hermite series. Return the roots (a.k.a. “zeros”) of the polynomial \[p(x) = \sum_i c[i] * H_i(x).\] Parameters c1-D array_like 1-D array of coefficients. Returns outndarray Array of the roots of the series. If all the roots are real, then out is also real, otherwise it is comple...
doc_25222
Append rows of other to the end of caller, returning a new object. Columns in other that are not in the caller are added as new columns. Parameters other:DataFrame or Series/dict-like object, or list of these The data to append. ignore_index:bool, default False If True, the resulting axis will be labeled 0,...
doc_25223
The HTML ID attribute for this BoundField. Returns an empty string if Form.auto_id is False.
doc_25224
Construct this type from a string. This is useful mainly for data types that accept parameters. For example, a period dtype accepts a frequency parameter that can be set as period[H] (where H means hourly frequency). By default, in the abstract class, just the name of the type is expected. But subclasses can overwrit...
doc_25225
Draw samples from a Gamma distribution. Samples are drawn from a Gamma distribution with specified parameters, shape (sometimes designated “k”) and scale (sometimes designated “theta”), where both parameters are > 0. Note New code should use the gamma method of a default_rng() instance instead; please see the Quick ...
doc_25226
Stop after one line of code.
doc_25227
Guaranteed return of an indexer even when non-unique. This dispatches to get_indexer or get_indexer_non_unique as appropriate. Returns np.ndarray[np.intp] List of indices. Examples >>> idx = pd.Index([np.nan, 'var1', np.nan]) >>> idx.get_indexer_for([np.nan]) array([0, 2])
doc_25228
Calculate 2**p for all p in the input array. Parameters xarray_like Input values. 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-allocated array is returne...
doc_25229
This call decodes uuencoded file in_file placing the result on file out_file. If out_file is a pathname, mode is used to set the permission bits if the file must be created. Defaults for out_file and mode are taken from the uuencode header. However, if the file specified in the header already exists, a uu.Error is rais...
doc_25230
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_25231
Returns the q-th quantiles of all elements in the input tensor, doing a linear interpolation when the q-th quantile lies between two data points. Parameters input (Tensor) – the input tensor. q (float or Tensor) – a scalar or 1D tensor of quantile values in the range [0, 1] Example: >>> a = torch.randn(1, 3) >>...
doc_25232
Fit the label sets binarizer and transform the given label sets. Parameters yiterable of iterables A set of labels (any orderable and hashable object) for each sample. If the classes parameter is set, y will not be iterated. Returns y_indicator{ndarray, sparse matrix} of shape (n_samples, n_classes) A m...
doc_25233
Returns the number of non-fixed hyperparameters of the kernel.
doc_25234
Return the Figure instance the artist belongs to.
doc_25235
Token value for ";".
doc_25236
Build a forest of trees from the training set (X, y). Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, its dtype will be converted to dtype=np.float32. If a sparse matrix is provided, it will be converted into a sparse csc_matrix. yarray-like of ...
doc_25237
Should return True if deleting obj is permitted, False otherwise. If obj is None, should return True or False to indicate whether deleting objects of this type is permitted in general (e.g., False will be interpreted as meaning that the current user is not permitted to delete any object of this type).
doc_25238
The imaginary part of the array. Examples >>> x = np.sqrt([1+0j, 0+1j]) >>> x.imag array([ 0. , 0.70710678]) >>> x.imag.dtype dtype('float64')
doc_25239
See Migration guide for more details. tf.compat.v1.NoGradient, tf.compat.v1.NotDifferentiable, tf.compat.v1.no_gradient tf.no_gradient( op_type ) This function should not be used for operations that have a well-defined gradient that is not yet implemented. This function is only used when defining a new op type. ...
doc_25240
Normalized sliding window histogram Parameters image2-D array (integer or float) Input image. selem2-D array (integer or float) The neighborhood expressed as a 2-D array of 1’s and 0’s. out2-D array (integer or float), optional If None, a new array is allocated. maskndarray (integer or float), optiona...
doc_25241
Initialize self. See help(type(self)) for accurate signature.
doc_25242
This attribute is a flag which controls the interpretation of blanks in the window. When it is on, trailing blanks on each line are ignored; any cursor motion that would land the cursor on a trailing blank goes to the end of that line instead, and trailing blanks are stripped when the window contents are gathered.
doc_25243
A subclass of PurePath, this class represents concrete paths of the system’s path flavour (instantiating it creates either a PosixPath or a WindowsPath): >>> Path('setup.py') PosixPath('setup.py') pathsegments is specified similarly to PurePath.
doc_25244
Detect missing values. Return a boolean same-sized object indicating if the values are NA. NA values, such as None or numpy.NaN, gets mapped to True values. Everything else gets mapped to False values. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.us...
doc_25245
Returns a new NormalDist object where mu represents the arithmetic mean and sigma represents the standard deviation. If sigma is negative, raises StatisticsError. mean A read-only property for the arithmetic mean of a normal distribution. median A read-only property for the median of a normal distribution. ...
doc_25246
Is True if the Tensor is stored on the GPU, False otherwise.
doc_25247
A legend handler that shows numpoints in the legend, and allows them to be individually offset in the y-direction. Parameters numpointsint Number of points to show in legend entry. yoffsetsarray of floats Length numpoints list of y offsets for each point in legend entry. **kwargs Keyword arguments forward...
doc_25248
Bases: object A class attribute that must be set before use. __init__(init_val=None) [source] Initialize self. See help(type(self)) for accurate signature. instances = {(<skimage.viewer.utils.core.RequiredAttr object>, None): 'Widget is not attached to a Plugin.', (<skimage.viewer.utils.core.RequiredAttr obje...
doc_25249
See Migration guide for more details. tf.compat.v1.keras.applications.mobilenet_v3.preprocess_input tf.keras.applications.mobilenet_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_25250
TransformerDecoder is a stack of N decoder layers Parameters decoder_layer – an instance of the TransformerDecoderLayer() class (required). num_layers – the number of sub-decoder-layers in the decoder (required). norm – the layer normalization component (optional). Examples:: >>> decoder_layer = nn.Transfo...
doc_25251
An event loop based on the selectors module. Uses the most efficient selector available for the given platform. It is also possible to manually configure the exact selector implementation to be used: import asyncio import selectors selector = selectors.SelectSelector() loop = asyncio.SelectorEventLoop(selector) asynci...
doc_25252
class typing.TextIO class typing.BinaryIO Generic type IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such as returned by open(). These types are also in the typing.io namespace.
doc_25253
See Migration guide for more details. tf.compat.v1.raw_ops.ScatterAdd tf.raw_ops.ScatterAdd( ref, indices, updates, use_locking=False, name=None ) This operation computes # Scalar indices ref[indices, ...] += updates[...] # Vector indices (for each i) ref[indices[i], ...] += updates[i, ...] # High rank indices...
doc_25254
The view function used to serve files from static_folder. A route is automatically registered for this view at static_url_path if static_folder is set. Changelog New in version 0.5. Parameters filename (str) – Return type Response
doc_25255
Pop the last-pushed input source from the input stack. This is the same method used internally when the lexer reaches EOF on a stacked input stream.
doc_25256
static bytearray.maketrans(from, to) This static method returns a translation table usable for bytes.translate() that will map each character in from into the character at the same position in to; from and to must both be bytes-like objects and have the same length. New in version 3.1.
doc_25257
Return the number of zero crossings in the fragment passed as an argument.
doc_25258
Cancel the drag-and-drop process.
doc_25259
Create a pseudocolor plot of an unstructured triangular grid. The triangulation can be specified in one of two ways; either: tripcolor(triangulation, ...) where triangulation is a Triangulation object, or tripcolor(x, y, ...) tripcolor(x, y, triangles, ...) tripcolor(x, y, triangles=triangles, ...) tripcolor(x, y, m...
doc_25260
A class method called after tests in an individual class have run. tearDownClass is called with the class as the only argument and must be decorated as a classmethod(): @classmethod def tearDownClass(cls): ... See Class and Module Fixtures for more details. New in version 3.2.
doc_25261
Detect missing values. Return a boolean same-sized object indicating if the values are NA. NA values, such as None, numpy.NaN or pd.NaT, get mapped to True values. Everything else get mapped to False values. Characters such as empty strings ‘’ or numpy.inf are not considered NA values (unless you set pandas.options.m...
doc_25262
draw a polygon polygon(surface, points, color) -> None Draws an unfilled polygon on the given surface. For a filled polygon use filled_polygon(). The adjacent coordinates in the points argument, as well as the first and last points, will be connected by line segments. e.g. For the points [(x1, y1), (x2, y2), (x3, y3)...
doc_25263
Header folding is controlled by the refold_source policy setting. A value is considered to be a ‘source value’ if and only if it does not have a name attribute (having a name attribute means it is a header object of some sort). If a source value needs to be refolded according to the policy, it is converted into a heade...
doc_25264
First adjusts the date to fall on a valid day according to the roll rule, then applies offsets to the given dates counted in valid days. New in version 1.7.0. Parameters datesarray_like of datetime64[D] The array of dates to process. offsetsarray_like of int The array of offsets, which is broadcast with d...
doc_25265
tf.compat.v1.get_local_variable( name, shape=None, dtype=None, initializer=None, regularizer=None, trainable=False, collections=None, caching_device=None, partitioner=None, validate_shape=True, use_resource=None, custom_getter=None, constraint=None, synchronization=tf.VariableSynchronization.AUTO, a...
doc_25266
Alias for set_facecolor.
doc_25267
Performs a single optimization step. Parameters closure (callable, optional) – A closure that reevaluates the model and returns the loss.
doc_25268
Return the frame object for the caller’s stack frame. CPython implementation detail: This function relies on Python stack frame support in the interpreter, which isn’t guaranteed to exist in all implementations of Python. If running in an implementation without Python stack frame support this function returns None.
doc_25269
This function handles an exception using the default settings (that is, show a report in the browser, but don’t log to a file). This can be used when you’ve caught an exception and want to report it using cgitb. The optional info argument should be a 3-tuple containing an exception type, exception value, and traceback ...
doc_25270
Return a reversed instance of the Colormap. Note This function is not implemented for base class. Parameters namestr, optional The name for the reversed colormap. If it's None the name will be the name of the parent colormap + "_r". See also LinearSegmentedColormap.reversed ListedColormap.reversed
doc_25271
Fit linear model with coordinate descent. Fit is on grid of alphas and best alpha estimated by cross-validation. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training data. Pass directly as Fortran-contiguous data to avoid unnecessary memory duplication. If y is mono-output, X can be...
doc_25272
Regular file.
doc_25273
marshal.dump(value, file[, version]) Write the value on the open file. The value must be a supported type. The file must be a writeable binary file. If the value has (or contains an object that has) an unsupported type, a ValueError exception is raised — but garbage data will also be written to the file. The object w...
doc_25274
kind = 'quarter'
doc_25275
Return a Series/DataFrame with absolute numeric value of each element. This function only applies to elements that are all numeric. Returns abs Series/DataFrame containing the absolute value of each element. See also numpy.absolute Calculate the absolute value element-wise. Notes For complex inputs, 1.2...
doc_25276
A bytes object representing the current version of the module. Also available as __version__.
doc_25277
Other Members bytes_or_text_types complex_types integral_types real_types
doc_25278
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_25279
torch.nn.functional.conv1d(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1) → Tensor Applies a 1D convolution over an input signal composed of several input planes. This operator supports TensorFloat32. See Conv1d for details and output shape. Note In some circumstances when given tensors on a CU...
doc_25280
Set the (group) id for the artist. Parameters gidstr
doc_25281
See Migration guide for more details. tf.compat.v1.raw_ops.VarIsInitializedOp tf.raw_ops.VarIsInitializedOp( resource, name=None ) Args resource A Tensor of type resource. the input resource handle. name A name for the operation (optional). Returns A Tensor of type bool.
doc_25282
Return the path of the scikit-learn data dir. This folder is used by some large dataset loaders to avoid downloading the data several times. By default the data dir is set to a folder named ‘scikit_learn_data’ in the user home folder. Alternatively, it can be set by the ‘SCIKIT_LEARN_DATA’ environment variable or pro...
doc_25283
Removes the pruning reparameterization from a module. The pruned parameter named name remains permanently pruned, and the parameter named name+'_orig' is removed from the parameter list. Similarly, the buffer named name+'_mask' is removed from the buffers. Note Pruning itself is NOT undone or reversed!
doc_25284
Set the font stretch or width. Options are: 'ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded' or 'ultra-expanded', or a numeric value in the range 0-1000.
doc_25285
os.O_DIRECT os.O_DIRECTORY os.O_NOFOLLOW os.O_NOATIME os.O_PATH os.O_TMPFILE os.O_SHLOCK os.O_EXLOCK The above constants are extensions and not present if they are not defined by the C library. Changed in version 3.4: Add O_PATH on systems that support it. Add O_TMPFILE, only available on Linux Kernel ...
doc_25286
Fit underlying estimators. Parameters X(sparse) array-like of shape (n_samples, n_features) Data. ynumpy array of shape [n_samples] Multi-class targets. Returns self
doc_25287
Returns a new Tensor with data as the tensor data. By default, the returned Tensor has the same torch.dtype and torch.device as this tensor. Warning new_tensor() always copies data. If you have a Tensor data and want to avoid a copy, use torch.Tensor.requires_grad_() or torch.Tensor.detach(). If you have a numpy array...
doc_25288
Set the edge color of the Figure rectangle. Parameters colorcolor
doc_25289
Simply handles the multiplication between the parameter being pruned and the generated mask. Fetches the mask and the original tensor from the module and returns the pruned version of the tensor. Parameters module (nn.Module) – module containing the tensor to prune Returns pruned version of the input tensor Return...
doc_25290
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_25291
Raises a ValidationError if str(value) contains one or more nulls characters ('\x00'). Parameters: message – If not None, overrides message. code – If not None, overrides code. message The error message used by ValidationError if validation fails. Defaults to "Null characters are not allowed.". code...
doc_25292
Bases: matplotlib.patches.Patch A scale-free ellipse. Parameters xy(float, float) xy coordinates of ellipse centre. widthfloat Total length (diameter) of horizontal axis. heightfloat Total length (diameter) of vertical axis. anglefloat, default: 0 Rotation in degrees anti-clockwise. Notes Valid ...
doc_25293
Return an upper bound on ratio() relatively quickly.
doc_25294
A shortcut that returns the referenced object.
doc_25295
Return the minimum value of the Index. Parameters axis:{None} Dummy argument for consistency with Series. skipna:bool, default True Exclude NA/null values when showing the result. *args, **kwargs Additional arguments and keywords for compatibility with NumPy. Returns scalar Minimum value. See a...
doc_25296
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_25297
This attribute contains a mapping of error code integers to two-element tuples containing a short and long message. For example, {code: (shortmessage, longmessage)}. The shortmessage is usually used as the message key in an error response, and longmessage as the explain key. It is used by send_response_only() and send_...
doc_25298
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedDepthwiseConv2DWithBias tf.raw_ops.QuantizedDepthwiseConv2DWithBias( input, filter, bias, min_input, max_input, min_filter, max_filter, strides, padding, out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1], name=None ) Args input A Te...
doc_25299
Return the alpha value used for blending - not supported on all backends.