_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_16500
Return the memory usage of the Series. The memory usage can optionally include the contribution of the index and of elements of object dtype. Parameters index:bool, default True Specifies whether to include the memory usage of the Series index. deep:bool, default False If True, introspect the data deeply by...
doc_16501
See Migration guide for more details. tf.compat.v1.tensor_scatter_nd_sub, tf.compat.v1.tensor_scatter_sub tf.tensor_scatter_nd_sub( tensor, indices, updates, name=None ) This operation creates a new tensor by subtracting sparse updates from the passed in tensor. This operation is very similar to tf.scatter_nd_su...
doc_16502
Load MIME type information from an open file fp. The file must have the format of the standard mime.types files. If strict is True, information will be added to the list of standard types, else to the list of non-standard types.
doc_16503
Produce a matrix that scales homogeneous coords in the specified ranges to [0, 1], or [0, pb_aspect[i]] if the plotbox aspect ratio is specified.
doc_16504
See Migration guide for more details. tf.compat.v1.raw_ops.StaticRegexReplace tf.raw_ops.StaticRegexReplace( input, pattern, rewrite, replace_global=True, name=None ) It follows the re2 syntax (https://github.com/google/re2/wiki/Syntax) Args input A Tensor of type string. The text to be processed. p...
doc_16505
See Migration guide for more details. tf.compat.v1.raw_ops.GreaterEqual tf.raw_ops.GreaterEqual( x, y, name=None ) Note: math.greater_equal supports broadcasting. More about broadcasting here Example: x = tf.constant([5, 4, 6, 7]) y = tf.constant([5, 2, 5, 10]) tf.math.greater_equal(x, y) ==> [True, True, True...
doc_16506
Return the 8-bit character corresponding to the given ASCII character (the character bit value is bitwise-ored with 0x80).
doc_16507
class sklearn.model_selection.GridSearchCV(estimator, param_grid, *, scoring=None, n_jobs=None, refit=True, cv=None, verbose=0, pre_dispatch='2*n_jobs', error_score=nan, return_train_score=False) [source] Exhaustive search over specified parameter values for an estimator. Important members are fit, predict. GridSearc...
doc_16508
Check if given writer is available by name. Parameters namestr Returns bool
doc_16509
Return a list of command line arguments reproducing the current settings in sys.flags and sys.warnoptions.
doc_16510
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_16511
Variational Bayesian estimation of a Gaussian mixture. This class allows to infer an approximate posterior distribution over the parameters of a Gaussian mixture distribution. The effective number of components can be inferred from the data. This class implements two types of prior for the weights distribution: a fin...
doc_16512
Bases: skimage.viewer.plugins.overlayplugin.OverlayPlugin Canny filter plugin to show edges of an image. __init__(*args, **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 automati...
doc_16513
See Migration guide for more details. tf.compat.v1.keras.datasets.imdb.get_word_index tf.keras.datasets.imdb.get_word_index( path='imdb_word_index.json' ) Arguments path where to cache the data (relative to ~/.keras/dataset). Returns The word index dictionary. Keys are word strings, values are...
doc_16514
Saves the form instance, sets the current object for the view, and redirects to get_success_url().
doc_16515
Format a stack trace and the exception information. The arguments have the same meaning as the corresponding arguments to print_exception(). The return value is a list of strings, each ending in a newline and some containing internal newlines. When these lines are concatenated and printed, exactly the same text is prin...
doc_16516
Applies a softmax function followed by logarithm. See softmax for more details. Parameters input (Tensor) – input dim (int) – A dimension along which softmax will be computed. dtype (torch.dtype, optional) – the desired data type of returned tensor. If specified, the input tensor is casted to dtype before the o...
doc_16517
Return whether the artist is animated.
doc_16518
Return a fresh copy graph with the same data structure. A fresh copy has no nodes, edges or graph attributes. It is the same data structure as the current graph. This method is typically used to create an empty version of the graph. This is required when subclassing Graph with networkx v2 and does not cause problems ...
doc_16519
Return True if the object is a data descriptor. Data descriptors have a __set__ or a __delete__ method. Examples are properties (defined in Python), getsets, and members. The latter two are defined in C and there are more specific tests available for those types, which is robust across Python implementations. Typically...
doc_16520
Whether writes are passed immediately to the underlying binary buffer. New in version 3.7.
doc_16521
This is a legacy API retained for backwards compatibility. When possible, you should use sni_callback instead. The given server_name_callback is similar to sni_callback, except that when the server hostname is an IDN-encoded internationalized domain name, the server_name_callback receives a decoded U-label ("pythön.org...
doc_16522
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalBytesProducedStatsDataset tf.raw_ops.ExperimentalBytesProducedStatsDataset( input_dataset, tag, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. tag A Tensor of type string. output_types...
doc_16523
Characters that will be considered as escape. This will be only used in POSIX mode, and includes just '\' by default.
doc_16524
set the bitmasks needed to convert between a color and a mapped integer set_masks((r,g,b,a)) -> None This is not needed for normal pygame usage. Note In SDL2, the masks are read-only and accordingly this method will raise an AttributeError if called. New in pygame 1.8.1.
doc_16525
Decode the contents of the input file and write the resulting decoded binary data to the output file. input and output must be binary file objects. If the optional argument header is present and true, underscore will be decoded as space. This is used to decode “Q”-encoded headers as described in RFC 1522: “MIME (Multip...
doc_16526
See Migration guide for more details. tf.compat.v1.keras.preprocessing.sequence.make_sampling_table tf.keras.preprocessing.sequence.make_sampling_table( size, sampling_factor=1e-05 ) Used for generating the sampling_table argument for skipgrams. sampling_table[i] is the probability of sampling the word i-th most...
doc_16527
Compute the Region Adjacency Graph using mean colors. Given an image and its initial segmentation, this method constructs the corresponding Region Adjacency Graph (RAG). Each node in the RAG represents a set of pixels within image with the same label in labels. The weight between two adjacent regions represents how s...
doc_16528
Exit code that means that a protocol exchange was illegal, invalid, or not understood. Availability: Unix.
doc_16529
Return True if the queue is full, False otherwise. If full() returns True it doesn’t guarantee that a subsequent call to get() will not block. Similarly, if full() returns False it doesn’t guarantee that a subsequent call to put() will not block.
doc_16530
Set the instance’s debugging level. This controls the amount of debugging output printed. The default, 0, produces no debugging output. A value of 1 produces a moderate amount of debugging output, generally a single line per request. A value of 2 or higher produces the maximum amount of debugging output, logging each l...
doc_16531
Owner has execute permission.
doc_16532
the name of the itsdangerous supported key derivation. The default is hmac.
doc_16533
Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses that belong to the network, except the network address itself and the network broadcast address. For networks with a mask length of 31, the network address and network broadcast address are also included in the result. N...
doc_16534
Base object if memory is from some other object. Examples The base of an array that owns its memory is None: >>> x = np.array([1,2,3,4]) >>> x.base is None True Slicing creates a view, whose memory is shared with x: >>> y = x[2:] >>> y.base is x True
doc_16535
A sequence of null-terminated strings, terminated by two null characters. (Python handles this termination automatically.)
doc_16536
The end user guide for installing Python packages PEP 453: Explicit bootstrapping of pip in Python installations The original rationale and specification for this module. Command line interface The command line interface is invoked using the interpreter’s -m switch. The simplest possible invocation is: python -m...
doc_16537
Create a dynamic quantized module from a float module or qparams_dict Parameters mod (Module) – a float module, either produced by torch.quantization utilities or provided by the user
doc_16538
Returns a random password with the given length and given string of allowed characters. Note that the default value of allowed_chars doesn’t contain letters that can cause user confusion, including: i, l, I, and 1 (lowercase letter i, lowercase letter L, uppercase letter i, and the number one) o, O, and 0 (lowercase...
doc_16539
Upsamples the input, using nearest neighbours’ pixel values. Warning This function is deprecated in favor of torch.nn.functional.interpolate(). This is equivalent with nn.functional.interpolate(..., mode='nearest'). Currently spatial and volumetric upsampling are supported (i.e. expected inputs are 4 or 5 dimension...
doc_16540
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_16541
Returns the indices of the minimum values along an axis. Parameters aarray_like Input array. axisint, optional By default, the index is into the flattened array, otherwise along the specified axis. outarray, optional If provided, the result will be inserted into this array. It should be of the appropria...
doc_16542
Tuple of bytes to step in each dimension when traversing an array. The byte offset of element (i[0], i[1], ..., i[n]) in an array a is: offset = sum(np.array(i) * a.strides) A more detailed explanation of strides can be found in the “ndarray.rst” file in the NumPy reference guide. See also numpy.lib.stride_tricks....
doc_16543
Grab the image information from the figure and save as a movie frame. All keyword arguments in savefig_kwargs are passed on to the savefig call that saves the figure.
doc_16544
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_16545
Wrapper around a CUDA stream. A CUDA stream is a linear sequence of execution that belongs to a specific device, independent from other streams. See CUDA semantics for details. Parameters device (torch.device or int, optional) – a device on which to allocate the stream. If device is None (default) or a negative i...
doc_16546
Clear the Axes.
doc_16547
sklearn.metrics.matthews_corrcoef(y_true, y_pred, *, sample_weight=None) [source] Compute the Matthews correlation coefficient (MCC). The Matthews correlation coefficient is used in machine learning as a measure of the quality of binary and multiclass classifications. It takes into account true and false positives an...
doc_16548
Return a string representing the date and time: >>> from datetime import datetime >>> datetime(2002, 12, 4, 20, 30, 40).ctime() 'Wed Dec 4 20:30:40 2002' The output string will not include time zone information, regardless of whether the input is aware or naive. d.ctime() is equivalent to: time.ctime(time.mktime(d.ti...
doc_16549
operator.__abs__(obj) Return the absolute value of obj.
doc_16550
Copy an element of an array to a standard Python scalar and return it. Parameters *argsArguments (variable number and type) none: in this case, the method only works for arrays with one element (a.size == 1), which element is copied into a standard Python scalar object and returned. int_type: this argument is ...
doc_16551
get the a touch device id for a given index get_device(index) -> touchid Parameters: index (int) -- This number is at least 0 and less than the number of devices. Return an integer id associated with the given index.
doc_16552
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArray tf.raw_ops.TensorArray( size, dtype, dynamic_size=False, clear_after_read=True, tensor_array_name='', element_shape=None, name=None ) Args size A Tensor of type int32. dtype A tf.DType. dynamic_size An optional bool. ...
doc_16553
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.tf_stack Classes class CurrentModuleFilter: Filters stack frames from the module where this is used (best effort). class FrameSummary class StackSummary class StackTraceFilter: Allows filtering traceback information by removing superfluous frame...
doc_16554
In-place version of addr()
doc_16555
Return a tensor of elements selected from either x or y, depending on condition. The operation is defined as: outi={xiif conditioniyiotherwise\text{out}_i = \begin{cases} \text{x}_i & \text{if } \text{condition}_i \\ \text{y}_i & \text{otherwise} \\ \end{cases} Note The tensors condition, x, y must be broadcastable...
doc_16556
The url template tag will use its value as the current_app argument to reverse().
doc_16557
Stores a range of floating point values. Based on a DecimalField. Represented by a numrange in the database and a NumericRange in Python.
doc_16558
(Windows version) Maps length bytes from the file specified by the file handle fileno, and creates a mmap object. If length is larger than the current size of the file, the file is extended to contain length bytes. If length is 0, the maximum length of the map is the current size of the file, except that if the file is...
doc_16559
Add graph data to summary. Parameters model (torch.nn.Module) – Model to draw. input_to_model (torch.Tensor or list of torch.Tensor) – A variable or a tuple of variables to be fed. verbose (bool) – Whether to print graph structure in console.
doc_16560
Token value for "!=".
doc_16561
Remove any parents.
doc_16562
See Migration guide for more details. tf.compat.v1.sysconfig.get_include tf.sysconfig.get_include() Returns The directory as string.
doc_16563
sklearn.metrics.pairwise.laplacian_kernel(X, Y=None, gamma=None) [source] Compute the laplacian kernel between X and Y. The laplacian kernel is defined as: K(x, y) = exp(-gamma ||x-y||_1) for each pair of rows x in X and y in Y. Read more in the User Guide. New in version 0.17. Parameters Xndarray of shape (n_...
doc_16564
Return self>value.
doc_16565
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
doc_16566
Setup for writing the movie file. Parameters figFigure The figure object that contains the information for frames. outfilestr The filename of the resulting movie file. dpifloat, default: fig.dpi The DPI (or resolution) for the file. This controls the size in pixels of the resulting movie file.
doc_16567
Swap level i with level j. Calling this method does not change the ordering of the values. Parameters i:int, str, default -2 First level of index to be swapped. Can pass level name as string. Type of parameters can be mixed. j:int, str, default -1 Second level of index to be swapped. Can pass level name as ...
doc_16568
Returns whether the user is allowed to authenticate. To match the behavior of AuthenticationForm which prohibits inactive users from logging in, this method returns False for users with is_active=False. Custom user models that don’t have an is_active field are allowed.
doc_16569
Attributes b repeated bool b f repeated float f func repeated NameAttrList func i repeated int64 i s repeated bytes s shape repeated TensorShapeProto shape tensor repeated TensorProto tensor type repeated DataType type
doc_16570
Autoscale the scalar limits on the norm instance using the current array
doc_16571
Bases: object A reader for a dvi ("device-independent") file, as produced by TeX. The current implementation can only iterate through pages in order, and does not even attempt to verify the postamble. This class can be used as a context manager to close the underlying file upon exit. Pages can be read via iteration. ...
doc_16572
Optional (blank=True). 150 characters or fewer.
doc_16573
Return whether y values increase from top to bottom. Note that this only affects drawing of texts and images.
doc_16574
Pseudo-Vandermonde matrix of given degrees. Returns the pseudo-Vandermonde matrix of degrees deg and sample points (x, y, z). If l, m, n are the given degrees in x, y, z, then The pseudo-Vandermonde matrix is defined by \[V[..., (m+1)(n+1)i + (n+1)j + k] = L_i(x)*L_j(y)*L_k(z),\] where 0 <= i <= l, 0 <= j <= m, and ...
doc_16575
'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_16576
Add one Laguerre series to another. Returns the sum of two Laguerre series c1 + c2. The arguments are sequences of coefficients ordered from lowest order term to highest, i.e., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters c1, c2array_like 1-D arrays of Laguerre series coefficients ordered from ...
doc_16577
Return an iterator yielding match objects over all non-overlapping matches for the RE pattern in string. The string is scanned left-to-right, and matches are returned in the order found. Empty matches are included in the result. Changed in version 3.7: Non-empty matches can now start just after a previous empty match.
doc_16578
This is an alias of random_sample. See random_sample for the complete documentation.
doc_16579
Returns a view of the original tensor which contains all slices of size size from self tensor in the dimension dimension. Step between two slices is given by step. If sizedim is the size of dimension dimension for self, the size of dimension dimension in the returned tensor will be (sizedim - size) / step + 1. An addit...
doc_16580
Overlay the window on top of destwin. The windows need not be the same size, only the overlapping region is copied. This copy is non-destructive, which means that the current background character does not overwrite the old contents of destwin. To get fine-grained control over the copied region, the second form of overl...
doc_16581
Path to the user site-packages for the running Python. Can be None if getusersitepackages() hasn’t been called yet. Default value is ~/.local/lib/pythonX.Y/site-packages for UNIX and non-framework Mac OS X builds, ~/Library/Python/X.Y/lib/python/site-packages for Mac framework builds, and %APPDATA%\Python\PythonXY\site...
doc_16582
The name of the function.
doc_16583
Encodes the payload into quoted-printable form and sets the Content-Transfer-Encoding header to quoted-printable 1. This is a good encoding to use when most of your payload is normal printable data, but contains a few unprintable characters.
doc_16584
Return a function to preprocess the text before tokenization. Returns preprocessor: callable A function to preprocess the text before tokenization.
doc_16585
Returns True if any of the elements of a evaluate to True. Masked values are considered as False during computation. Refer to numpy.any for full documentation. See also numpy.ndarray.any corresponding function for ndarrays numpy.any equivalent function
doc_16586
Morphological Active Contours without Edges (MorphACWE) Active contours without edges implemented with morphological operators. It can be used to segment objects in images and volumes without well defined borders. It is required that the inside of the object looks different on average than the outside (i.e., the inne...
doc_16587
See torch.svd()
doc_16588
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_16589
Return a tuple in the form (app_iter, status, headers) of the application output. This works best if you pass it an application that returns an iterator all the time. Sometimes applications may use the write() callable returned by the start_response function. This tries to resolve such edge cases automatically. But if ...
doc_16590
Bases: object A base class of GridSpec that specifies the geometry of the grid that a subplot will be placed. Parameters nrows, ncolsint The number of rows and columns of the grid. width_ratiosarray-like of length ncols, optional Defines the relative widths of the columns. Each column gets a relative width ...
doc_16591
See Migration guide for more details. tf.compat.v1.raw_ops.CollectiveBcastRecv tf.raw_ops.CollectiveBcastRecv( T, group_size, group_key, instance_key, shape, communication_hint='auto', timeout_seconds=0, name=None ) Args T A tf.DType from: tf.bool, tf.float32, tf.half, tf.float64, tf.int32, tf.int64...
doc_16592
tf.experimental.numpy.amax( a, axis=None, keepdims=None ) Unsupported arguments: out, initial, where. See the NumPy documentation for numpy.amax.
doc_16593
Add a sub-package to the current Configuration instance. This is useful in a setup.py script for adding sub-packages to a package. Parameters subpackage_namestr name of the subpackage subpackage_pathstr if given, the subpackage path such as the subpackage is in subpackage_path / subpackage_name. If None,the...
doc_16594
See Migration guide for more details. tf.compat.v1.raw_ops.BesselK1e tf.raw_ops.BesselK1e( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_16595
Called for the start of every element. name is a string containing the element name, and attributes is the element attributes. If ordered_attributes is true, this is a list (see ordered_attributes for a full description). Otherwise it’s a dictionary mapping names to values.
doc_16596
Gets the properties of a device. Parameters device (torch.device or int or str) – device for which to return the properties of the device. Returns the properties of the device Return type _CudaDeviceProperties
doc_16597
See Migration guide for more details. tf.compat.v1.raw_ops.NonMaxSuppression tf.raw_ops.NonMaxSuppression( boxes, scores, max_output_size, iou_threshold=0.5, name=None ) pruning away boxes that have high intersection-over-union (IOU) overlap with previously selected boxes. Bounding boxes are supplied as [y1, x1,...
doc_16598
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_16599
Perform round operation on the data to the specified freq. Parameters freq:str or Offset The frequency level to round the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possible freq values. ambiguous:‘infer’, bool-ndarray, ‘NaT’, default ‘raise...