_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_5400
Stop all active patches. Only stops patches started with start.
doc_5401
See torch.remainder()
doc_5402
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_5403
Return unique values of Series object. Uniques are returned in order of appearance. Hash table-based unique, therefore does NOT sort. Returns ndarray or ExtensionArray The unique values returned as a NumPy array. See Notes. See also unique Top-level unique method for any 1-d array-like object. Index.uniqu...
doc_5404
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_5405
An integer containing the number of characters written to the stream before it blocked. This attribute is available when using the buffered I/O classes from the io module.
doc_5406
IEEE 754 floating point representation of Not a Number (NaN). NaN and NAN are equivalent definitions of nan. Please use nan instead of NAN. See Also nan
doc_5407
Length of one array element in bytes. Examples >>> x = np.array([1,2,3], dtype=np.float64) >>> x.itemsize 8 >>> x = np.array([1,2,3], dtype=np.complex128) >>> x.itemsize 16
doc_5408
Adds the scalar other to each element of the input input and returns a new resulting tensor. out=input+other\text{out} = \text{input} + \text{other} If input is of type FloatTensor or DoubleTensor, other must be a real number, otherwise it should be an integer. Parameters input (Tensor) – the input tensor. valu...
doc_5409
Bases: object Information to support default axis labeling, tick labeling, and limits. An instance of this class must be returned by ConversionInterface.axisinfo. Parameters majloc, minlocLocator, optional Tick locators for the major and minor ticks. majfmt, minfmtFormatter, optional Tick formatters for the...
doc_5410
Equivalent to as_bytes(). Allows bytes(msg) to produce a bytes object containing the serialized message.
doc_5411
Decode the Base64 encoded bytes-like object or ASCII string s and return the decoded bytes. Optional altchars must be a bytes-like object or ASCII string of at least length 2 (additional characters are ignored) which specifies the alternative alphabet used instead of the + and / characters. A binascii.Error exception i...
doc_5412
Set the current rcParams. group is the grouping for the rc, e.g., for lines.linewidth the group is lines, for axes.facecolor, the group is axes, and so on. Group may also be a list or tuple of group names, e.g., (xtick, ytick). kwargs is a dictionary attribute name/value pairs, e.g.,: rc('lines', linewidth=2, color='...
doc_5413
Decode the given bytes representing source code and return it as a string with universal newlines (as required by importlib.abc.InspectLoader.get_source()). New in version 3.4.
doc_5414
Fit the FactorAnalysis model to X using SVD based approach Parameters Xarray-like of shape (n_samples, n_features) Training data. yIgnored Returns self
doc_5415
See Migration guide for more details. tf.compat.v1.print tf.print( *inputs, **kwargs ) A TensorFlow operator that prints the specified inputs to a desired output stream or logging level. The inputs may be dense or sparse Tensors, primitive python objects, data structures that contain tensors, and printable Pytho...
doc_5416
See Migration guide for more details. tf.compat.v1.raw_ops.CollectiveGather tf.raw_ops.CollectiveGather( input, group_size, group_key, instance_key, shape, communication_hint='auto', timeout_seconds=0, name=None ) Args input A Tensor. Must be one of the following types: float32, half, float64, int32...
doc_5417
Set the font variant. Parameters variant{'normal', 'small-caps'} See also font_manager.FontProperties.set_variant
doc_5418
Marks a set of nodes returned by TopologicalSorter.get_ready() as processed, unblocking any successor of each node in nodes for being returned in the future by a call to TopologicalSorter.get_ready(). Raises ValueError if any node in nodes has already been marked as processed by a previous call to this method or if a n...
doc_5419
A 1-D iterator over the array. This is a numpy.flatiter instance, which acts similarly to, but is not a subclass of, Python’s built-in iterator object. See also flatten Return a copy of the array collapsed into one dimension. flatiter Examples >>> x = np.arange(1, 7).reshape(2, 3) >>> x array([[1, 2, 3], ...
doc_5420
Run module via interpretation and return the result. Parameters *args – The arguments to the Module to run, in positional order initial_env (Optional[Dict[Node, Any]]) – An optional starting environment for execution. This is a dict mapping Node to any value. This can be used, for example, to pre-populate result...
doc_5421
Represents a parsed user agent header value. The default implementation does no parsing, only the string attribute is set. A subclass may parse the string to set the common attributes or expose other information. Set werkzeug.wrappers.Request.user_agent_class to use a subclass. Parameters string (str) – The header va...
doc_5422
A generic class that represents the system’s path flavour (instantiating it creates either a PurePosixPath or a PureWindowsPath): >>> PurePath('setup.py') # Running on a Unix machine PurePosixPath('setup.py') Each element of pathsegments can be either a string representing a path segment, an object implementing t...
doc_5423
Computes the Mean Squared Error between two covariance estimators. (In the sense of the Frobenius norm). Parameters comp_covarray-like of shape (n_features, n_features) The covariance to compare with. norm{“frobenius”, “spectral”}, default=”frobenius” The type of norm used to compute the error. Available er...
doc_5424
Rolling window view of the input n-dimensional array. Windows are overlapping views of the input array, with adjacent windows shifted by a single row or column (or an index of a higher dimension). Parameters arr_inndarray N-d input array. window_shapeinteger or tuple of length arr_in.ndim Defines the shape ...
doc_5425
Return a new sequence of saved/cached frame information.
doc_5426
Convert an IP address from its family-specific string format to a packed, binary format. inet_pton() is useful when a library or network protocol calls for an object of type struct in_addr (similar to inet_aton()) or struct in6_addr. Supported values for address_family are currently AF_INET and AF_INET6. If the IP addr...
doc_5427
Return an ndarray of indices that sort the array along the specified axis. Masked values are filled beforehand to fill_value. Parameters axisint, optional Axis along which to sort. If None, the default, the flattened array is used. Changed in version 1.13.0: Previously, the default was documented to be -1, but...
doc_5428
In-place version of arcsinh()
doc_5429
Shift the time index, using the index’s frequency if available. Deprecated since version 1.1.0: Use shift instead. Parameters periods:int Number of periods to move, can be positive or negative. freq:DateOffset, timedelta, or str, default None Increment to use from the tseries module or time rule expressed...
doc_5430
Set the default plugin for a specified operation. The plugin will be loaded if it hasn’t been already. Parameters namestr Name of plugin. kind{‘imsave’, ‘imread’, ‘imshow’, ‘imread_collection’, ‘imshow_collection’}, optional Set the plugin for this function. By default, the plugin is set for all functions. ...
doc_5431
Perform Normalized Graph cut on the Region Adjacency Graph. Given an image’s labels and its similarity RAG, recursively perform a 2-way normalized cut on it. All nodes belonging to a subgraph that cannot be cut further are assigned a unique label in the output. Parameters labelsndarray The array of labels. ra...
doc_5432
Broadcast the input shapes into a single shape. Learn more about broadcasting here. New in version 1.20.0. Parameters `*args`tuples of ints, or ints The shapes to be broadcast against each other. Returns tuple Broadcasted shape. Raises ValueError If the shapes are not compatible and cannot be broa...
doc_5433
See Migration guide for more details. tf.compat.v1.raw_ops.RemoteCall tf.raw_ops.RemoteCall( target, args, Tout, f, name=None ) Args target A Tensor of type string. A fully specified device name where we want to run the function. args A list of Tensor objects. A list of arguments for the function....
doc_5434
Sequence of bytecodes that access a free variable (note that ‘free’ in this context refers to names in the current scope that are referenced by inner scopes or names in outer scopes that are referenced from this scope. It does not include references to global or builtin scopes).
doc_5435
Fits the GraphicalLasso model to X. Parameters Xarray-like of shape (n_samples, n_features) Data from which to compute the covariance estimate yIgnored Not used, present for API consistency by convention. Returns selfobject
doc_5436
'blogs.blog': lambda o: "/blogs/%s/" % o.slug, 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), } The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti...
doc_5437
Padding between text and rectangle.
doc_5438
tf.reduce_min tf.math.reduce_min( input_tensor, axis=None, keepdims=False, name=None ) Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which must be unique. If keepdims is true, the reduced dimensions are re...
doc_5439
Read until one from a list of a regular expressions matches. The first argument is a list of regular expressions, either compiled (regex objects) or uncompiled (byte strings). The optional second argument is a timeout, in seconds; the default is to block indefinitely. Return a tuple of three items: the index in the lis...
doc_5440
Called when the asynchronous loop detects that a writable socket can be written. Often this method will implement the necessary buffering for performance. For example: def handle_write(self): sent = self.send(self.buffer) self.buffer = self.buffer[sent:]
doc_5441
Default widget: DateInput Empty value: None Normalizes to: A Python datetime.date object. Validates that the given value is either a datetime.date, datetime.datetime or string formatted in a particular date format. Error message keys: required, invalid Takes one optional argument: input_formats A list of forma...
doc_5442
The standard input device. Initially, this is the console input buffer, CONIN$.
doc_5443
Return True if path appears to be for a package.
doc_5444
Gets or sets the alpha value of the Color. a -> int The alpha value of the Color.
doc_5445
Return an array of ones with the same shape and type as a given array. Parameters aarray_like The shape and data-type of a define these same attributes of the returned array. dtypedata-type, optional Overrides the data type of the result. New in version 1.6.0. order{‘C’, ‘F’, ‘A’, or ‘K’}, optional Ov...
doc_5446
Predict class labels for samples in X. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape [n_samples] Predicted class label per sample.
doc_5447
Add an Artist to the figure. Usually artists are added to Axes objects using Axes.add_artist; this method can be used in the rare cases where one needs to add artists directly to the figure instead. Parameters artistArtist The artist to add to the figure. If the added artist has no transform previously set, its...
doc_5448
See Migration guide for more details. tf.compat.v1.raw_ops.CSVDatasetV2 tf.raw_ops.CSVDatasetV2( filenames, compression_type, buffer_size, header, field_delim, use_quote_delim, na_value, select_cols, record_defaults, exclude_cols, output_shapes, name=None ) Args filenames A Tensor of type string. ...
doc_5449
Return the companion matrix of c. The usual companion matrix of the Laguerre polynomials is already symmetric when c is a basis Laguerre polynomial, so no scaling is applied. Parameters carray_like 1-D array of Laguerre series coefficients ordered from low to high degree. Returns matndarray Companion ma...
doc_5450
Removes the specified handler hdlr from this logger.
doc_5451
Set the normalization instance. Parameters normNormalize or None Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.
doc_5452
An instance of ‘ExtensionDtype’.
doc_5453
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
doc_5454
See Migration guide for more details. tf.compat.v1.keras.applications.vgg16.preprocess_input tf.keras.applications.vgg16.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.keras.applicat...
doc_5455
Returns a new tensor with each of the elements of input converted from angles in degrees to radians. Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.tensor([[180.0, -180.0], [360.0, -360.0], [90.0, -90.0]]) >>> torch.deg2rad(a) ten...
doc_5456
imaplib.IMAP4.unselect() frees server’s resources associated with the selected mailbox and returns the server to the authenticated state. This command performs the same actions as imaplib.IMAP4.close(), except that no messages are permanently removed from the currently selected mailbox. New in version 3.9.
doc_5457
Read-only access to size in bytes of the shared memory block.
doc_5458
Wraps a given function with __torch_function__ -related functionality. Parameters dispatcher (Callable) – A callable that returns an iterable of Tensor-likes passed into the function. Note This decorator may reduce the performance of your code. Generally, it’s enough to express your code as a series of functions...
doc_5459
Force write of file with filedescriptor fd to disk. On Unix, this calls the native fsync() function; on Windows, the MS _commit() function. If you’re starting with a buffered Python file object f, first do f.flush(), and then do os.fsync(f.fileno()), to ensure that all internal buffers associated with f are written to ...
doc_5460
The Accept-Ranges header. Even though the name would indicate that multiple values are supported, it must be one string token only. The values 'bytes' and 'none' are common. Changelog New in version 0.7.
doc_5461
See Migration guide for more details. tf.compat.v1.sparse.reset_shape, tf.compat.v1.sparse_reset_shape tf.sparse.reset_shape( sp_input, new_shape=None ) If new_shape is None, returns a copy of sp_input with its shape reset to the tight bounding box of sp_input. This will be a shape consisting of all zeros if sp_...
doc_5462
IMAP4 server errors cause this exception to be raised. This is a sub-class of IMAP4.error. Note that closing the instance and instantiating a new one will usually allow recovery from this exception.
doc_5463
class sklearn.compose.ColumnTransformer(transformers, *, remainder='drop', sparse_threshold=0.3, n_jobs=None, transformer_weights=None, verbose=False) [source] Applies transformers to columns of an array or pandas DataFrame. This estimator allows different columns or column subsets of the input to be transformed sepa...
doc_5464
Bases: object classFixed(axes, loc, nth_coord=None)[source] Bases: mpl_toolkits.axisartist.axislines.AxisArtistHelper.Fixed nth_coord = along which coordinate value varies in 2D, nth_coord = 0 -> x axis, nth_coord = 1 -> y axis get_tick_iterators(axes)[source] tick_loc, tick_angle, tick_label classFloat...
doc_5465
The right-hand side - what lhs is being compared against. It can be a plain value, or something that compiles into SQL, typically an F() object or a QuerySet.
doc_5466
turtle.clearscreen() Delete all drawings and all turtles from the TurtleScreen. Reset the now empty TurtleScreen to its initial state: white background, no background image, no event bindings and tracing on. Note This TurtleScreen method is available as a global function only under the name clearscreen. The global f...
doc_5467
Makes a TRACE request on the provided path and returns a Response object. Useful for simulating diagnostic probes. Unlike the other request methods, data is not provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, an...
doc_5468
Like set_cookie(), but cryptographic signing the cookie before setting it. Use in conjunction with HttpRequest.get_signed_cookie(). You can use the optional salt argument for added key strength, but you will need to remember to pass it to the corresponding HttpRequest.get_signed_cookie() call.
doc_5469
tf.debugging.assert_non_negative( x, message=None, summarize=None, name=None ) This Op checks that x[i] >= 0 holds for every element of x. If x is empty, this is trivially satisfied. If x is not >= 0 everywhere, message, as well as the first summarize entries of x are printed, and InvalidArgumentError is raised. ...
doc_5470
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called.
doc_5471
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_5472
Make an iterator that aggregates elements from each of the iterables. Returns an iterator of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables. The iterator stops when the shortest input iterable is exhausted. With a single iterable argument, it returns an iterator ...
doc_5473
Create a new composite transform that is the result of applying transform a then transform b. Shortcut versions of the blended transform are provided for the case where both child transforms are affine, or one or the other is the identity transform. Composite transforms may also be created using the '+' operator, e.g...
doc_5474
Make an entry into the ControlEvent table for this control.
doc_5475
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_5476
Should return True if deleting an inline object is permitted, False otherwise. obj is the parent object being edited.
doc_5477
See Migration guide for more details. tf.compat.v1.raw_ops.BatchMatrixBandPart tf.raw_ops.BatchMatrixBandPart( input, num_lower, num_upper, name=None ) Args input A Tensor. num_lower A Tensor of type int64. num_upper A Tensor of type int64. name A name for the operation (optional). ...
doc_5478
Predict regression target for each iteration This method allows monitoring (i.e. determine error on testing set) after each stage. New in version 0.24. Parameters Xarray-like of shape (n_samples, n_features) The input samples. Yields ygenerator of ndarray of shape (n_samples,) The predicted values of ...
doc_5479
Return True if the call is currently being executed and cannot be cancelled.
doc_5480
ctypes interface Returns interfacenamedtuple Named tuple containing ctypes wrapper state_address - Memory address of the state struct state - pointer to the state struct next_uint64 - function pointer to produce 64 bit integers next_uint32 - function pointer to produce 32 bit integers next_double - function po...
doc_5481
tf.experimental.numpy.argmin( a, axis=None ) Unsupported arguments: out. See the NumPy documentation for numpy.argmin.
doc_5482
Exception raised when string interpolation cannot be completed because the number of iterations exceeds MAX_INTERPOLATION_DEPTH. Subclass of InterpolationError.
doc_5483
sklearn.utils.metaestimators.if_delegate_has_method(delegate) [source] Create a decorator for methods that are delegated to a sub-estimator This enables ducktyping by hasattr returning True according to the sub-estimator. Parameters delegatestring, list of strings or tuple of strings Name of the sub-estimator t...
doc_5484
Returns the logarithm of the cumulative summation of the exponentiation of elements of input in the dimension dim. For summation index jj given by dim and other indices ii , the result is logcumsumexp(x)ij=log⁡∑j=0iexp⁡(xij)\text{logcumsumexp}(x)_{ij} = \log \sum\limits_{j=0}^{i} \exp(x_{ij}) Parameters input (...
doc_5485
Set multiple properties at once. Supported properties are Property Description adjustable {'box', 'datalim'} agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}...
doc_5486
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_5487
Compute Area Under the Curve (AUC) using the trapezoidal rule. This is a general function, given points on a curve. For computing the area under the ROC-curve, see roc_auc_score. For an alternative way to summarize a precision-recall curve, see average_precision_score. Parameters xndarray of shape (n,) x coordi...
doc_5488
Adds a function to the internal list of functions that should be called as part of closing down the response. Since 0.7 this function also returns the function that was passed so that this can be used as a decorator. Changelog New in version 0.6. Parameters func (Callable[[], Any]) – Return type Callable[[], Any...
doc_5489
Acquire a lock, blocking or non-blocking. When invoked without arguments: if this thread already owns the lock, increment the recursion level by one, and return immediately. Otherwise, if another thread owns the lock, block until the lock is unlocked. Once the lock is unlocked (not owned by any thread), then grab owner...
doc_5490
Returns True if the given key is set. This lets you do, e.g., if "foo" in request.GET.
doc_5491
Exit code that means that a required service is unavailable. Availability: Unix.
doc_5492
Return a Path for a unit regular asterisk with the given numVertices and radius of 1.0, centered at (0, 0).
doc_5493
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_5494
Returns the number of dimensions. ndim -> int A pixel array can be 1 or 2 dimensional. New in pygame 1.9.2.
doc_5495
The name of a template to display for the view used to log the user in. Defaults to registration/login.html.
doc_5496
Mark the graph as finished and check for cycles in the graph. If any cycle is detected, CycleError will be raised, but get_ready() can still be used to obtain as many nodes as possible until cycles block more progress. After a call to this function, the graph cannot be modified, and therefore no more nodes can be added...
doc_5497
Clone this node. Setting deep means to clone all child nodes as well. This returns the clone.
doc_5498
Select a mailbox. Returned data is the count of messages in mailbox (EXISTS response). The default mailbox is 'INBOX'. If the readonly flag is set, modifications to the mailbox are not allowed.
doc_5499
sklearn.utils.validation.check_memory(memory) [source] Check that memory is joblib.Memory-like. joblib.Memory-like means that memory can be converted into a joblib.Memory instance (typically a str denoting the location) or has the same interface (has a cache method). Parameters memoryNone, str or object with the ...