_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_0
Return the visibility.
doc_1
Bases: object Stack of elements with a movable cursor. Mimics home/back/forward in a web browser. back()[source] Move the position back and return the current element. bubble(o)[source] Raise all references of o to the top of the stack, and return it. Raises ValueError If o is not in the stack. ...
doc_2
Base class for figure.Figure and figure.SubFigure containing the methods that add artists to the figure or subfigure, create Axes, etc. add_artist(artist, clip=False)[source] 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 whe...
doc_3
The object passed as the tzinfo argument to the datetime constructor, or None if none was passed.
doc_4
Reads and returns at most n frames of audio, as a bytes object.
doc_5
Check if windows match. New in version 1.6.0. Parameters otherclass instance The other class must have the window attribute. Returns boolboolean True if the windows are the same, False otherwise.
doc_6
The maximum number of frames to include in tracebacks output by the default log_exception() method. If None, all frames are included.
doc_7
class collections.abc.MutableMapping ABCs for read-only and mutable mappings.
doc_8
Set the result for this Future, which will mark this Future as completed and trigger all attached callbacks. Note that a Future cannot be marked completed twice. Parameters result (object) – the result object of this Future. Example:: >>> import threading >>> import time >>> import torch >>> >>> def slow_set_fu...
doc_9
Return the names of the available scales.
doc_10
Efficiently redraw Axes data, but not axis ticks, labels, etc. This method can only be used after an initial draw which caches the renderer.
doc_11
Concrete implementation of InspectLoader.is_package(). A module is determined to be a package if its file path (as provided by ExecutionLoader.get_filename()) is a file named __init__ when the file extension is removed and the module name itself does not end in __init__.
doc_12
Return cumulative distribution function (cdf) for the given image. Parameters imagearray Image array. nbinsint, optional Number of bins for image histogram. Returns img_cdfarray Values of cumulative distribution function. bin_centersarray Centers of bins. See also histogram References ...
doc_13
Bases: skimage.viewer.plugins.base.Plugin __init__(max_radius=20, **kwargs) [source] Initialize self. See help(type(self)) for accurate signature. attach(image_viewer) [source] Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ...
doc_14
__delitem__(key) discard(key) These methods immediately delete the message. The MH convention of marking a message for deletion by prepending a comma to its name is not used.
doc_15
Convert an IRI to a URI. All non-ASCII and unsafe characters are quoted. If the URL has a domain, it is encoded to Punycode. >>> iri_to_uri('http://\u2603.net/p\xe5th?q=\xe8ry%DF') 'http://xn--n3h.net/p%C3%A5th?q=%C3%A8ry%DF' Parameters iri (Union[str, Tuple[str, str, str, str, str]]) – The IRI to convert. charse...
doc_16
A function that checks if django.contrib.sites is installed and returns either the current Site object or a RequestSite object based on the request. It looks up the current site based on request.get_host() if the SITE_ID setting is not defined. Both a domain and a port may be returned by request.get_host() when the Hos...
doc_17
Find indices where elements of v should be inserted in a to maintain order. For full documentation, see numpy.searchsorted See also numpy.searchsorted equivalent function
doc_18
Legendre series whose graph is a straight line. Parameters off, sclscalars The specified line is given by off + scl*x. Returns yndarray This module’s representation of the Legendre series for off + scl*x. See also numpy.polynomial.polynomial.polyline numpy.polynomial.chebyshev.chebline numpy.polyn...
doc_19
Applies Instance Normalization over a 5D input (a mini-batch of 3D inputs with additional channel dimension) as described in the paper Instance Normalization: The Missing Ingredient for Fast Stylization. y=x−E[x]Var[x]+ϵ∗γ+βy = \frac{x - \mathrm{E}[x]}{ \sqrt{\mathrm{Var}[x] + \epsilon}} * \gamma + \beta The mean a...
doc_20
Alias for get_linewidth.
doc_21
Conversion from the sRGB color space (IEC 61966-2-1:1999) to the CIE Lab colorspace under the given illuminant and observer. Parameters rgb(…, 3) array_like The image in RGB format. Final dimension denotes channels. illuminant{“A”, “D50”, “D55”, “D65”, “D75”, “E”}, optional The name of the illuminant (the f...
doc_22
See Migration guide for more details. tf.compat.v1.raw_ops.BatchFFT tf.raw_ops.BatchFFT( input, name=None ) Args input A Tensor of type complex64. name A name for the operation (optional). Returns A Tensor of type complex64.
doc_23
Raised by any of the functions when an error is detected.
doc_24
Find indices where elements should be inserted to maintain order. Find the indices into a sorted array self (a) such that, if the corresponding elements in value were inserted before the indices, the order of self would be preserved. Assuming that self is sorted: side returned index i satisfies left self[i...
doc_25
A subclass of ConnectionError, raised when a connection attempt is refused by the peer. Corresponds to errno ECONNREFUSED.
doc_26
Path to the extension module.
doc_27
Filter an image with the Sato tubeness filter. This filter can be used to detect continuous ridges, e.g. tubes, wrinkles, rivers. It can be used to calculate the fraction of the whole image containing such objects. Defined only for 2-D and 3-D images. Calculates the eigenvectors of the Hessian to compute the similari...
doc_28
Return a tuple containing names of nonlocals in this function.
doc_29
sys.stdout sys.stderr File objects used by the interpreter for standard input, output and errors: stdin is used for all interactive input (including calls to input()); stdout is used for the output of print() and expression statements and for the prompts of input(); The interpreter’s own prompts and its error me...
doc_30
Return series instance that has the specified roots. Returns a series representing the product (x - r[0])*(x - r[1])*...*(x - r[n-1]), where r is a list of roots. Parameters rootsarray_like List of roots. domain{[], None, array_like}, optional Domain for the resulting series. If None the domain is the inter...
doc_31
input_type: 'number' template_name: 'django/forms/widgets/number.html' Renders as: <input type="number" ...> Beware that not all browsers support entering localized numbers in number input types. Django itself avoids using them for fields having their localize property set to True.
doc_32
The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET.
doc_33
Fills self tensor with elements drawn from the exponential distribution: f(x)=λe−λxf(x) = \lambda e^{-\lambda x}
doc_34
Schedule all currently open asynchronous generator objects to close with an aclose() call. After calling this method, the event loop will issue a warning if a new asynchronous generator is iterated. This should be used to reliably finalize all scheduled asynchronous generators. Note that there is no need to call this f...
doc_35
Return True if the event is set.
doc_36
os.R_OK os.W_OK os.X_OK Values to pass as the mode parameter of access() to test the existence, readability, writability and executability of path, respectively.
doc_37
Call self as a function.
doc_38
Returns the name of the field that contains the date data that this view will operate on. Returns date_field by default.
doc_39
Restore the graphics context from the stack - needed only for backends that save graphics contexts on a stack.
doc_40
Bases: object The LatexManager opens an instance of the LaTeX application for determining the metrics of text elements. The LaTeX environment can be modified by setting fonts and/or a custom preamble in rcParams. get_width_height_descent(text, prop)[source] Get the width, total height, and descent (in TeX points)...
doc_41
tf.compat.v1.estimator.tpu.TPUEstimator( model_fn=None, model_dir=None, config=None, params=None, use_tpu=True, train_batch_size=None, eval_batch_size=None, predict_batch_size=None, batch_axis=None, eval_on_tpu=True, export_to_tpu=True, export_to_cpu=True, warm_start_from=None, embedding_config_spec=Non...
doc_42
Prompt the user for a password without echoing. The user is prompted using the string prompt, which defaults to 'Password: '. On Unix, the prompt is written to the file-like object stream using the replace error handler if needed. stream defaults to the controlling terminal (/dev/tty) or if that is unavailable to sys.s...
doc_43
exception os.error An alias for the built-in OSError exception. os.name The name of the operating system dependent module imported. The following names have currently been registered: 'posix', 'nt', 'java'. See also sys.platform has a finer granularity. os.uname() gives system-dependent version information. Th...
doc_44
Time of file creation.
doc_45
Resets the counter used to generate unique savepoint IDs.
doc_46
If rawdata is a string, parse it as an HTTP_COOKIE and add the values found there as Morsels. If it is a dictionary, it is equivalent to: for k, v in rawdata.items(): cookie[k] = v
doc_47
Called to allocate a new receive buffer. sizehint is the recommended minimum size for the returned buffer. It is acceptable to return smaller or larger buffers than what sizehint suggests. When set to -1, the buffer size can be arbitrary. It is an error to return a buffer with a zero size. get_buffer() must return an o...
doc_48
Encode bytes-like object s using the standard Base64 alphabet and return the encoded bytes.
doc_49
Same as st2tuple(st, line_info, col_info).
doc_50
create a new copy of a Surface copy() -> Surface Makes a duplicate copy of a Surface. The new surface will have the same pixel formats, color palettes, transparency settings, and class as the original. If a Surface subclass also needs to copy any instance specific attributes then it should override copy().
doc_51
Register the browser type name. Once a browser type is registered, the get() function can return a controller for that browser type. If instance is not provided, or is None, constructor will be called without parameters to create an instance when needed. If instance is provided, constructor will never be called, and ma...
doc_52
Send an OVER command, or an XOVER command on legacy servers. message_spec can be either a string representing a message id, or a (first, last) tuple of numbers indicating a range of articles in the current group, or a (first, None) tuple indicating a range of articles starting from first to the last article in the curr...
doc_53
Check if the Index holds Interval objects. Returns bool Whether or not the Index holds Interval objects. See also IntervalIndex Index for Interval objects. is_boolean Check if the Index only consists of booleans. is_integer Check if the Index only consists of integers. is_floating Check if the Index ...
doc_54
Return a list of the child Artists of this Artist.
doc_55
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters valuesarray The input v...
doc_56
returns the topmost sprite get_top_sprite() -> Sprite
doc_57
nd_grid instance which returns a dense multi-dimensional “meshgrid”. An instance of numpy.lib.index_tricks.nd_grid which returns an dense (or fleshed out) mesh-grid when indexed, so that each returned argument has the same shape. The dimensions and number of the output arrays are equal to the number of indexing dimen...
doc_58
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_59
Set the parameters of this estimator. Valid parameter keys can be listed with get_params(). Note that you can directly set the parameters of the estimators contained in transformers of ColumnTransformer. Returns self
doc_60
Return the user-specified font directory for Win32. This is looked up from the registry key \\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts If the key is not found, %WINDIR%\Fonts will be returned.
doc_61
Compares the values numerically with their sign ignored.
doc_62
Return the path of this patch.
doc_63
>>> serializer = AccountSerializer() >>> print(repr(serializer)) AccountSerializer(): id = IntegerField(label='ID', read_only=True) name = CharField(allow_blank=True, max_length=100, required=False) owner = PrimaryKeyRelatedField(queryset=User.objects.all()) API Reference In order to explain the various ty...
doc_64
Return the minimum of an array or minimum along an axis. Parameters aarray_like Input data. axisNone or int or tuple of ints, optional Axis or axes along which to operate. By default, flattened input is used. New in version 1.7.0. If this is a tuple of ints, the minimum is selected over multiple axes, ins...
doc_65
numpy.int16 numpy.int32 numpy.int64 Aliases for the signed integer types (one of numpy.byte, numpy.short, numpy.intc, numpy.int_ and numpy.longlong) with the specified number of bits. Compatible with the C99 int8_t, int16_t, int32_t, and int64_t, respectively.
doc_66
See Migration guide for more details. tf.compat.v1.encode_base64, tf.compat.v1.io.encode_base64 tf.io.encode_base64( input, pad=False, name=None ) Refer to the following article for more information on base64 format: en.wikipedia.org/wiki/Base64. Base64 strings may have padding with '=' at the end so that the en...
doc_67
ABC for classes that provide __aiter__ method. See also the definition of asynchronous iterable. New in version 3.5.
doc_68
tf.metrics.Precision Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.Precision tf.keras.metrics.Precision( thresholds=None, top_k=None, class_id=None, name=None, dtype=None ) The metric creates two local variables, true_positives and false_positives that are used to ...
doc_69
tf.compat.v1.ReaderBase( reader_ref, supports_serialize=False ) Conceptually, Readers convert string 'work units' into records (key, value pairs). Typically the 'work units' are filenames and the records are extracted from the contents of those files. We want a single record produced per step, but a work unit can ...
doc_70
See Migration guide for more details. tf.compat.v1.raw_ops.DecodeCSV tf.raw_ops.DecodeCSV( records, record_defaults, field_delim=',', use_quote_delim=True, na_value='', select_cols=[], name=None ) RFC 4180 format is expected for the CSV records. (https://tools.ietf.org/html/rfc4180) Note that we allow leadin...
doc_71
Convert continuous line to post-steps. Given a set of N points convert to 2N + 1 points, which when connected linearly give a step function which changes values at the end of the intervals. Parameters xarray The x location of the steps. May be empty. y1, ..., yparray y arrays to be turned into steps; all mu...
doc_72
Set padding for constrained_layout. Tip: The parameters can be passed from a dictionary by using fig.set_constrained_layout(**pad_dict). See Constrained Layout Guide. Parameters w_padfloat, default: rcParams["figure.constrained_layout.w_pad"] (default: 0.04167) Width padding in inches. This is the pad around Ax...
doc_73
Return non-zero if the mode is from a directory.
doc_74
Return cumulative maximum over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative maximum. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The index or the name of the axis. 0 is equivalent to None or ‘index’. skipna:bool, default True Exclude NA/n...
doc_75
class sklearn.linear_model.MultiTaskElasticNetCV(*, l1_ratio=0.5, eps=0.001, n_alphas=100, alphas=None, fit_intercept=True, normalize=False, max_iter=1000, tol=0.0001, cv=None, copy_X=True, verbose=0, n_jobs=None, random_state=None, selection='cyclic') [source] Multi-task L1/L2 ElasticNet with built-in cross-validati...
doc_76
See Migration guide for more details. tf.compat.v1.raw_ops.SelfAdjointEig tf.raw_ops.SelfAdjointEig( input, name=None ) The input is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices, with the same constraints as the single matrix SelfAdjointEig. The result is a [..., M+1, M] matri...
doc_77
Return or set the pencolor. Four input formats are allowed: pencolor() Return the current pencolor as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor call. pencolor(colorstring) Set pencolor to colorstring, which is a Tk color specification string...
doc_78
Set the styles on the current Styler. Possibly uses styles from Styler.export. Parameters styles:dict(str, Any) List of attributes to add to Styler. Dict keys should contain only: “apply”: list of styler functions, typically added with apply or applymap. “table_attributes”: HTML attributes, typically added w...
doc_79
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_80
A LinearReLU module fused from Linear and ReLU modules, attached with FakeQuantize modules for weight, used in quantization aware training. We adopt the same interface as torch.nn.Linear. Similar to torch.nn.intrinsic.LinearReLU, with FakeQuantize modules initialized to default. Variables ~LinearReLU.weight – fake ...
doc_81
Bases: skimage.viewer.widgets.core.BaseWidget __init__(name=None, text='') [source] Initialize self. See help(type(self)) for accurate signature. property text
doc_82
Same as isexpr(st).
doc_83
Request contexts disappear when the response is started on the server. This is done for efficiency reasons and to make it less likely to encounter memory leaks with badly written WSGI middlewares. The downside is that if you are using streamed responses, the generator cannot access request bound information any more. T...
doc_84
Return the JoinStyle for dashed lines. See also set_dash_joinstyle.
doc_85
Asserts that a queryset qs matches a particular iterable of values values. If transform is provided, values is compared to a list produced by applying transform to each member of qs. By default, the comparison is also ordering dependent. If qs doesn’t provide an implicit ordering, you can set the ordered parameter to F...
doc_86
Set the offset of the container. Parameters xy(float, float) The (x, y) coordinates of the offset in display units.
doc_87
Return int position of the smallest value in the Series. If the minimum is achieved in multiple locations, the first row position is returned. Parameters axis:{None} Dummy argument for consistency with Series. skipna:bool, default True Exclude NA/null values when showing the result. *args, **kwargs Additi...
doc_88
See Migration guide for more details. tf.compat.v1.raw_ops.RepeatDataset tf.raw_ops.RepeatDataset( input_dataset, count, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. count A Tensor of type int64. A scalar representing the number of times that input_dataset ...
doc_89
Update null elements with value in the same location in ‘other’. Combine two Series objects by filling null values in one Series with non-null values from the other Series. Result index will be the union of the two indexes. Parameters other:Series The value(s) to be used for filling null values. Returns Se...
doc_90
Alias for set_linewidth.
doc_91
Returns the set of permission strings the user_obj has from their own user permissions. Returns an empty set if is_anonymous or is_active is False.
doc_92
Computes the numerical rank of a matrix input, or of each matrix in a batched input. The matrix rank is computed as the number of singular values (or absolute eigenvalues when hermitian is True) that are greater than the specified tol threshold. If tol is not specified, tol is set to S.max(dim=-1)*max(input.shape[-2:])...
doc_93
The category codes of this categorical. Codes are an array of integers which are the positions of the actual values in the categories array. There is no setter, use the other categorical methods and the normal item setter to change values in the categorical. Returns ndarray[int] A non-writable view of the codes a...
doc_94
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedBiasAdd tf.raw_ops.QuantizedBiasAdd( input, bias, min_input, max_input, min_bias, max_bias, out_type, name=None ) Broadcasts the values of bias on dimensions 0..N-2 of 'input'. Args input A Tensor. Must be one of the following types: qi...
doc_95
Set the default content type. ctype should either be text/plain or message/rfc822, although this is not enforced. The default content type is not stored in the Content-Type header, so it only affects the return value of the get_content_type methods when no Content-Type header is present in the message.
doc_96
Calculate texture properties of a GLCM. Compute a feature of a grey level co-occurrence matrix to serve as a compact summary of the matrix. The properties are computed as follows: ‘contrast’: \(\sum_{i,j=0}^{levels-1} P_{i,j}(i-j)^2\) ‘dissimilarity’: \(\sum_{i,j=0}^{levels-1}P_{i,j}|i-j|\) ‘homogeneity’: \(\sum_{...
doc_97
Return a string containing linesep characters as required to correctly fold the header according to policy. A cte_type of 8bit will be treated as if it were 7bit, since headers may not contain arbitrary binary data. If utf8 is False, non-ASCII data will be RFC 2047 encoded.
doc_98
Resets an element. This function removes all subelements, clears all attributes, and sets the text and tail attributes to None.
doc_99
Return a contiguous flattened tensor. A copy is made only if needed. Parameters input (Tensor) – the input tensor. Example: >>> t = torch.tensor([[[1, 2], ... [3, 4]], ... [[5, 6], ... [7, 8]]]) >>> torch.ravel(t) tensor([1, 2, 3, 4, 5, 6, 7, 8])