_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_23800
Maildir instances do not keep any open files and the underlying mailboxes do not support locking, so this method does nothing.
doc_23801
Call self as a function.
doc_23802
See Migration guide for more details. tf.compat.v1.raw_ops.FakeQuantWithMinMaxArgsGradient tf.raw_ops.FakeQuantWithMinMaxArgsGradient( gradients, inputs, min=-6, max=6, num_bits=8, narrow_range=False, name=None ) Args gradients A Tensor of type float32. Backpropagated gradients above the FakeQuantWithMi...
doc_23803
Pad right side of strings in the Series/Index. Equivalent to str.ljust(). 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_23804
Duplicate the socket. The newly created socket is non-inheritable. Changed in version 3.4: The socket is now non-inheritable.
doc_23805
See torch.logaddexp()
doc_23806
Simple example of how to use the MCP and MCP_Geometric classes. See the MCP and MCP_Geometric class documentation for explanation of the path-finding algorithm. Parameters arrayndarray Array of costs. startiterable n-d index into array defining the starting point enditerable n-d index into array definin...
doc_23807
Compute the approximate Hessian Determinant over an image. The 2D approximate method uses box filters over integral images to compute the approximate Hessian Determinant, as described in [1]. Parameters imagearray The image over which to compute Hessian Determinant. sigmafloat, optional Standard deviation u...
doc_23808
Put item into the queue.
doc_23809
Initialize self. See help(type(self)) for accurate signature.
doc_23810
Set the font size, in points, of the cell text. Parameters sizefloat Notes As long as auto font size has not been disabled, the value will be clipped such that the text fits horizontally into the cell. You can disable this behavior using auto_set_font_size. >>> the_table.auto_set_font_size(False) >>> the_tabl...
doc_23811
Point objects are instantiated using arguments that represent the component coordinates of the point or with a single sequence coordinates. For example, the following are equivalent: >>> pnt = Point(5, 23) >>> pnt = Point([5, 23]) Empty Point objects may be instantiated by passing no arguments or an empty sequence. Th...
doc_23812
Return a function that splits a string into a sequence of tokens. Returns tokenizer: callable A function to split a string into a sequence of tokens.
doc_23813
Shape of the i’th bicluster. Parameters iint The index of the cluster. Returns n_rowsint Number of rows in the bicluster. n_colsint Number of columns in the bicluster.
doc_23814
Bases: matplotlib.gridspec.GridSpecBase A grid layout to place subplots within a figure. The location of the grid cells is determined in a similar way to SubplotParams using left, right, top, bottom, wspace and hspace. Parameters nrows, ncolsint The number of rows and columns of the grid. figureFigure, option...
doc_23815
See Migration guide for more details. tf.compat.v1.io.parse_example tf.compat.v1.parse_example( serialized, features, name=None, example_names=None ) Parses a number of serialized Example protos given in serialized. We refer to serialized as a batch with batch_size many entries of individual Example protos. exam...
doc_23816
Delete the folder whose name is folder. If the folder contains any messages, a NotEmptyError exception will be raised and the folder will not be deleted.
doc_23817
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_23818
This is a dictionary that maps module names to modules which have already been loaded. This can be manipulated to force reloading of modules and other tricks. However, replacing the dictionary will not necessarily work as expected and deleting essential items from the dictionary may cause Python to fail.
doc_23819
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedRelu tf.raw_ops.QuantizedRelu( features, min_features, max_features, out_type=tf.dtypes.quint8, name=None ) Args features A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16. min_features A Tensor ...
doc_23820
Compare to another Series and show the differences. New in version 1.1.0. Parameters other:Series Object to compare with. align_axis:{0 or ‘index’, 1 or ‘columns’}, default 1 Determine which axis to align the comparison on. 0, or ‘index’:Resulting differences are stacked vertically with rows drawn al...
doc_23821
>>> numpy.test(label='slow') The test method may take two or more arguments; the first label is a string specifying what should be tested and the second verbose is an integer giving the level of output verbosity. See the docstring numpy.test for details. The default value for label is ‘fast’ - which will run the stand...
doc_23822
Fits the imputer on X and return self. Parameters Xarray-like, shape (n_samples, n_features) Input data, where “n_samples” is the number of samples and “n_features” is the number of features. yignored Returns selfobject Returns self.
doc_23823
See Migration guide for more details. tf.compat.v1.xla.experimental.jit_scope @contextlib.contextmanager tf.xla.experimental.jit_scope( compile_ops=True, separate_compiled_gradients=False ) Note: This is an experimental feature. The compilation is a hint and only supported on a best-effort basis. Example usage...
doc_23824
Construct a full (“absolute”) URL by combining a “base URL” (base) with another URL (url). Informally, this uses components of the base URL, in particular the addressing scheme, the network location and (part of) the path, to provide missing components in the relative URL. For example: >>> from urllib.parse import urlj...
doc_23825
Function to calculate only the edges of the bins used by the histogram function. Parameters aarray_like Input data. The histogram is computed over the flattened array. binsint or sequence of scalars or str, optional If bins is an int, it defines the number of equal-width bins in the given range (10, by defa...
doc_23826
The backend options class for ProcessGroupAgent, which is derived from RpcBackendOptions. Parameters num_send_recv_threads (int, optional) – The number of threads in the thread-pool used by ProcessGroupAgent (default: 4). rpc_timeout (float, optional) – The default timeout, in seconds, for RPC requests (default: 6...
doc_23827
Remove all HTTP/1.1 “Hop-by-Hop” headers from a list or Headers object. This operation works in-place. Changelog New in version 0.5. Parameters headers (Union[werkzeug.datastructures.Headers, List[Tuple[str, str]]]) – a list or Headers object. Return type None
doc_23828
Fit the model from data in X and transform X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training vector, where n_samples is the number of samples and n_features is the number of features. If affinity is “precomputed” X : {array-like, sparse matrix} of shape (n_samples, n_samples),...
doc_23829
tf.compat.v1.distribute.experimental.CentralStorageStrategy( compute_devices=None, parameter_device=None ) Variables are assigned to local CPU or the only GPU. If there is more than one GPU, compute operations (other than variable update operations) will be replicated across all GPUs. For Example: strategy = tf.di...
doc_23830
returns a spherical interpolation to the given vector. slerp(Vector2, float) -> Vector2 Calculates the spherical interpolation from self to the given Vector. The second argument - often called t - must be in the range [-1, 1]. It parametrizes where - in between the two vectors - the result should be. If a negative va...
doc_23831
Accept: application/json Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed Content-Type: application/json Content-Length: 42 {"detail": "Method 'DELETE' not allowed."} Validation errors are handled slightly differently, and will include...
doc_23832
In [0, 1]. Used to disambiguate wall times during a repeated interval. (A repeated interval occurs when clocks are rolled back at the end of daylight saving time or when the UTC offset for the current zone is decreased for political reasons.) The value 0 (1) represents the earlier (later) of the two moments with the sa...
doc_23833
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_23834
Base class for content managers. Provides the standard registry mechanisms to register converters between MIME content and other representations, as well as the get_content and set_content dispatch methods. get_content(msg, *args, **kw) Look up a handler function based on the mimetype of msg (see next paragraph), c...
doc_23835
Calls enable or disable based on toggled value.
doc_23836
Bases: torch.distributions.distribution.Distribution Generates uniformly distributed random samples from the half-open interval [low, high). Example: >>> m = Uniform(torch.tensor([0.0]), torch.tensor([5.0])) >>> m.sample() # uniformly distributed in the range [0.0, 5.0) tensor([ 2.3418]) Parameters low (float o...
doc_23837
Abstract base class for arrays. The recommended way to create concrete array types is by multiplying any ctypes data type with a positive integer. Alternatively, you can subclass this type and define _length_ and _type_ class variables. Array elements can be read and written using standard subscript and slice accesses;...
doc_23838
Series basis polynomial of degree deg. Returns the series representing the basis polynomial of degree deg. New in version 1.7.0. Parameters degint Degree of the basis polynomial for the series. Must be >= 0. domain{None, array_like}, optional If given, the array must be of the form [beg, end], where beg a...
doc_23839
Return a callable which is used to create a LogRecord. New in version 3.2: This function has been provided, along with setLogRecordFactory(), to allow developers more control over how the LogRecord representing a logging event is constructed. See setLogRecordFactory() for more information about the how the factory is...
doc_23840
Default exception handler. This is called when an exception occurs and no exception handler is set. This can be called by a custom exception handler that wants to defer to the default handler behavior. context parameter has the same meaning as in call_exception_handler().
doc_23841
Stop autoincrement mode: cancels any recurring timer event initiated by Progressbar.start() for this progress bar.
doc_23842
See Migration guide for more details. tf.compat.v1.manip.scatter_nd, tf.compat.v1.scatter_nd tf.scatter_nd( indices, updates, shape, name=None ) Creates a new tensor by applying sparse updates to individual values or slices within a tensor (initially zero for numeric, empty for string) of the given shape accordi...
doc_23843
See Migration guide for more details. tf.compat.v1.raw_ops.LookupTableImport tf.raw_ops.LookupTableImport( table_handle, keys, values, name=None ) The tensor keys must be of the same type as the keys of the table. The tensor values must be of the type of the table values. Args table_handle A Tensor of t...
doc_23844
tf.compat.v1.errors.error_code_from_exception_type()
doc_23845
Return the label used for this artist in the legend.
doc_23846
Refer to the corresponding attribute documentation in IPv4Network.
doc_23847
Return a view of the array with axis1 and axis2 interchanged. Refer to numpy.swapaxes for full documentation. See also numpy.swapaxes equivalent function
doc_23848
Alias for set_facecolor.
doc_23849
A wrapper around the JSON serializer from django.core.signing. Can only serialize basic data types. In addition, as JSON supports only string keys, note that using non-string keys in request.session won’t work as expected: >>> # initial assignment >>> request.session[0] = 'bar' >>> # subsequent requests following seria...
doc_23850
Write object to a comma-separated values (csv) file. Parameters path_or_buf:str, path object, file-like object, or None, default None String, path object (implementing os.PathLike[str]), or file-like object implementing a write() function. If None, the result is returned as a string. If a non-binary file object...
doc_23851
Attempt to find the spec to handle fullname within path. New in version 3.4.
doc_23852
Closes the underlying Windows handle. If the handle is already closed, no error is raised.
doc_23853
See Migration guide for more details. tf.compat.v1.raw_ops.Square tf.raw_ops.Square( x, name=None ) I.e., \(y = x * x = x^2\). tf.math.square([-2., 0., 3.]) <tf.Tensor: shape=(3,), dtype=float32, numpy=array([4., 0., 9.], dtype=float32)> Args x A Tensor. Must be one of the following types: bfloat16, h...
doc_23854
The get_search_results method modifies the list of objects displayed into those that match the provided search term. It accepts the request, a queryset that applies the current filters, and the user-provided search term. It returns a tuple containing a queryset modified to implement the search, and a boolean indicating...
doc_23855
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_23856
Given a dictionary of data and this widget’s name, returns the value of this widget. files may contain data coming from request.FILES. Returns None if a value wasn’t provided. Note also that value_from_datadict may be called more than once during handling of form data, so if you customize it and add expensive processin...
doc_23857
See Migration guide for more details. tf.compat.v1.raw_ops.Tanh tf.raw_ops.Tanh( x, name=None ) Given an input tensor, this function computes hyperbolic tangent of every element in the tensor. Input range is [-inf, inf] and output range is [-1,1]. x = tf.constant([-float("inf"), -5, -0.5, 1, 1.2, 2, 3, float("i...
doc_23858
Return the first element of the underlying data as a Python scalar. Returns scalar The first element of %(klass)s. Raises ValueError If the data is not length-1.
doc_23859
Update this artist's properties from the dict props. Parameters propsdict
doc_23860
Return the sizes ('areas') of the elements in the collection. Returns array The 'area' of each element.
doc_23861
Attribute to group 'radio' like tools (mutually exclusive). str that identifies the group or None if not belonging to a group.
doc_23862
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesFlushQuantileSummaries tf.raw_ops.BoostedTreesFlushQuantileSummaries( quantile_stream_resource_handle, num_features, name=None ) An op that outputs a list of quantile summaries of a quantile stream resource. Each summary Tensor is rank 2, con...
doc_23863
Display pending images. Launch the event loop of the current gui plugin, and display all pending images, queued via imshow. This is required when using imshow from non-interactive scripts. A call to show will block execution of code until all windows have been closed. Examples >>> import skimage.io as io >>> for i i...
doc_23864
Same as ForeignKey.limit_choices_to.
doc_23865
Optional. Either True or False. Default is True. Specifies whether files in the specified location should be included. Either this or allow_folders must be True.
doc_23866
Return the floor of the input, element-wise. The floor of the scalar x is the largest integer i, such that i <= x. It is often denoted as \(\lfloor x \rfloor\). Parameters xarray_like Input data. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided...
doc_23867
tf.compat.v1.layers.Conv2DTranspose( filters, kernel_size, strides=(1, 1), padding='valid', data_format='channels_last', activation=None, use_bias=True, kernel_initializer=None, bias_initializer=tf.zeros_initializer(), kernel_regularizer=None, bias_regularizer=None, activity_regularizer=None, kernel...
doc_23868
You generally shouldn’t have to set or change that attribute which should be set up depending on the field class. It matches the OpenGIS standard geometry name.
doc_23869
Return an array whose values are limited to [min, max]. One of max or min must be given. Refer to numpy.clip for full documentation. See also numpy.clip equivalent function
doc_23870
alias of numpy.ma.core.MaskedArray
doc_23871
[Deprecated] Notes Deprecated since version 3.4:
doc_23872
See Migration guide for more details. tf.compat.v1.raw_ops.QueueDequeueV2 tf.raw_ops.QueueDequeueV2( handle, component_types, timeout_ms=-1, name=None ) This operation has k outputs, where k is the number of components in the tuples stored in the given queue, and output i is the ith component of the dequeued tup...
doc_23873
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_23874
tick_loc, tick_angle, tick_label, (optionally) tick_label
doc_23875
Return an n-dimensional window of a given size and dimensionality. Parameters window_typestring, float, or tuple The type of window to be created. Any window type supported by scipy.signal.get_window is allowed here. See notes below for a current list, or the SciPy documentation for the version of SciPy on your...
doc_23876
Unsupervised learner for implementing neighbor searches. Read more in the User Guide. New in version 0.9. Parameters n_neighborsint, default=5 Number of neighbors to use by default for kneighbors queries. radiusfloat, default=1.0 Range of parameter space to use by default for radius_neighbors queries. a...
doc_23877
Add a vertical span (rectangle) across the Axes. The rectangle spans from xmin to xmax horizontally, and, by default, the whole y-axis vertically. The y-span can be set using ymin (default: 0) and ymax (default: 1) which are in axis units; e.g. ymin = 0.5 always refers to the middle of the y-axis regardless of the li...
doc_23878
True if the session object detected a modification. Be advised that modifications on mutable structures are not picked up automatically, in that situation you have to explicitly set the attribute to True yourself. Here an example: # this change is not picked up because a mutable object (here # a list) is changed. sessi...
doc_23879
Store the value from stdout. It is meant to hold the stdout at the time the regrtest began.
doc_23880
Return the clip path.
doc_23881
Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each month, e.g., 1, 3, 12. Mark every month in bymonth; bymonth can be an int or sequence. Default is range(1, 13), i.e. every month. interval is the interval between each iteration. For example, if interval=2, mark every second occurrence.
doc_23882
An abstract base class for classes that implement object.__aenter__() and object.__aexit__(). A default implementation for object.__aenter__() is provided which returns self while object.__aexit__() is an abstract method which by default returns None. See also the definition of Asynchronous Context Managers. New in ve...
doc_23883
Transforms a masked array into a flexible-type array. The flexible type array that is returned will have two fields: the _data field stores the _data part of the array. the _mask field stores the _mask part of the array. Parameters None Returns recordndarray A new flexible-type ndarray with two fields: th...
doc_23884
Fills the input Tensor with a (semi) orthogonal matrix, as described in Exact solutions to the nonlinear dynamics of learning in deep linear neural networks - Saxe, A. et al. (2013). The input tensor must have at least 2 dimensions, and for tensors with more than 2 dimensions the trailing dimensions are flattened. P...
doc_23885
Set the pick radius used for containment tests. Parameters prfloat Pick radius, in points.
doc_23886
torch.linalg.cholesky(input, *, out=None) → Tensor Computes the Cholesky decomposition of a Hermitian (or symmetric for real-valued matrices) positive-definite matrix or the Cholesky decompositions for a batch of such matrices. Each decomposition has the form: input=LLH\text{input} = LL^H where LL is a lower-trian...
doc_23887
Autoscale the scalar limits on the norm instance using the current array
doc_23888
See Migration guide for more details. tf.compat.v1.keras.layers.ELU tf.keras.layers.ELU( alpha=1.0, **kwargs ) It follows: f(x) = alpha * (exp(x) - 1.) for x < 0 f(x) = x for x >= 0 Input shape: Arbitrary. Use the keyword argument input_shape (tuple of integers, does not include the samples axis) when using th...
doc_23889
For each element in a, return a copy of the string where all characters occurring in the optional argument deletechars are removed, and the remaining characters have been mapped through the given translation table. Calls str.translate element-wise. Parameters aarray-like of str or unicode tablestr of length 256...
doc_23890
Logical figure that can be placed inside a figure. Typically instantiated using Figure.add_subfigure or SubFigure.add_subfigure, or SubFigure.subfigures. A subfigure has the same methods as a figure except for those particularly tied to the size or dpi of the figure, and is confined to a prescribed region of the figu...
doc_23891
Convert an image to floating point format. This function is similar to img_as_float64, but will not convert lower-precision floating point arrays to float64. Parameters imagendarray Input image. force_copybool, optional Force a copy of the data, irrespective of its current dtype. Returns outndarray of...
doc_23892
Read exactly n bytes. Raise an IncompleteReadError if EOF is reached before n can be read. Use the IncompleteReadError.partial attribute to get the partially read data.
doc_23893
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_23894
Parameters axesmatplotlib.axes.Axes The Axes to which the created Axis belongs. pickradiusfloat The acceptance radius for containment tests. See also Axis.contains.
doc_23895
Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate.
doc_23896
Compute Lasso path with coordinate descent The Lasso optimization function varies for mono and multi-outputs. For mono-output tasks it is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1 For multi-output tasks it is: (1 / (2 * n_samples)) * ||Y - XW||^2_Fro + alpha * ||W||_21 Where: ||W||_21 = \sum_i \sqrt...
doc_23897
See Migration guide for more details. tf.compat.v1.linalg.eigh, tf.compat.v1.self_adjoint_eig tf.linalg.eigh( tensor, name=None ) Computes the eigenvalues and eigenvectors of the innermost N-by-N matrices in tensor such that tensor[...,:,:] * v[..., :,i] = e[..., i] * v[...,:,i], for i=0...N-1. Args tenso...
doc_23898
This is the factory used by EmailPolicy by default. HeaderRegistry builds the class used to create a header instance dynamically, using base_class and a specialized class retrieved from a registry that it holds. When a given header name does not appear in the registry, the class specified by default_class is used as th...
doc_23899
Return the visibility.