_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_20700
Returns a Page object with the given 1-based index. Raises PageNotAnInteger if the number cannot be converted to an integer by calling int(). Raises EmptyPage if the given page number doesn’t exist.
doc_20701
The units of this range. Usually “bytes”.
doc_20702
See Migration guide for more details. tf.compat.v1.image.pad_to_bounding_box tf.image.pad_to_bounding_box( image, offset_height, offset_width, target_height, target_width ) Adds offset_height rows of zeros on top, offset_width columns of zeros on the left, and then pads the image on the bottom and right with zer...
doc_20703
Return a string representation of the frequency.
doc_20704
The filling value of the masked array is a scalar. When setting, None will set to a default based on the data type. Examples >>> for dt in [np.int32, np.int64, np.float64, np.complex128]: ... np.ma.array([0, 1], dtype=dt).get_fill_value() ... 999999 999999 1e+20 (1e+20+0j) >>> x = np.ma.array([0, 1.], fill_value...
doc_20705
returns the top layer get_top_layer() -> layer
doc_20706
Set the url for the artist. Parameters urlstr
doc_20707
Find a ‘safe’ number of components to randomly project to. The distortion introduced by a random projection p only changes the distance between two points by a factor (1 +- eps) in an euclidean space with good probability. The projection p is an eps-embedding as defined by: (1 - eps) ||u - v||^2 < ||p(u) - p(v)||^2 <...
doc_20708
Return a context manager which executes the enclosed code block as a subtest. msg and params are optional, arbitrary values which are displayed whenever a subtest fails, allowing you to identify them clearly. A test case can contain any number of subtest declarations, and they can be arbitrarily nested. See Distinguish...
doc_20709
sklearn.metrics.balanced_accuracy_score(y_true, y_pred, *, sample_weight=None, adjusted=False) [source] Compute the balanced accuracy. The balanced accuracy in binary and multiclass classification problems to deal with imbalanced datasets. It is defined as the average of recall obtained on each class. The best value ...
doc_20710
Clear the image cache. Parameters nNone or int Clear the cache for this image only. By default, the entire cache is erased.
doc_20711
Return boolean value indicating whether cookie should be returned to server. cookie is a Cookie instance. request is an object implementing the interface defined by the documentation for CookieJar.add_cookie_header().
doc_20712
Create an axes at the given position with the same height (or width) of the main axes. position ["left"|"right"|"bottom"|"top"] size and pad should be axes_grid.axes_size compatible.
doc_20713
Return the full request URI, optionally including the query string, using the algorithm found in the “URL Reconstruction” section of PEP 3333. If include_query is false, the query string is not included in the resulting URI.
doc_20714
Returns the bounding box (relative to the treeview widget’s window) of the specified item in the form (x, y, width, height). If column is specified, returns the bounding box of that cell. If the item is not visible (i.e., if it is a descendant of a closed item or is scrolled offscreen), returns an empty string.
doc_20715
Generate a sparse random projection matrix. Parameters X{ndarray, sparse matrix} of shape (n_samples, n_features) Training set: only the shape is used to find optimal random matrix dimensions based on the theory referenced in the afore mentioned papers. y Ignored Returns self
doc_20716
Randomly masks out entire channels (a channel is a feature map, e.g. the jj -th channel of the ii -th sample in the batch input is a tensor input[i,j]\text{input}[i, j] ) of the input tensor). Instead of setting activations to zero, as in regular Dropout, the activations are set to the negative saturation value of th...
doc_20717
New in Django 4.0. Specifies the renderer to use for the formset. Defaults to the renderer specified by the FORM_RENDERER setting.
doc_20718
tf.compat.v1.logging.log_first_n( level, msg, n, *args ) Not threadsafe. Args level The level at which to log. msg The message to be logged. n The number of times this should be called before it is logged. *args The args to be substituted into the msg.
doc_20719
Get the status of a file or a file descriptor. Perform the equivalent of a stat() system call on the given path. path may be specified as either a string or bytes – directly or indirectly through the PathLike interface – or as an open file descriptor. Return a stat_result object. This function normally follows symlinks...
doc_20720
Unlocks the specified bytes, which must have been previously locked.
doc_20721
This uses the Internet TCP protocol, which provides for continuous streams of data between the client and server. If bind_and_activate is true, the constructor automatically attempts to invoke server_bind() and server_activate(). The other parameters are passed to the BaseServer base class.
doc_20722
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_20723
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_20724
Compute the bit-wise OR of two arrays element-wise. Computes the bit-wise OR of the underlying binary representation of the integers in the input arrays. This ufunc implements the C/Python operator |. Parameters x1, x2array_like Only integer and boolean types are handled. If x1.shape != x2.shape, they must be b...
doc_20725
A FTP subclass which adds TLS support to FTP as described in RFC 4217. Connect as usual to port 21 implicitly securing the FTP control connection before authenticating. Securing the data connection requires the user to explicitly ask for it by calling the prot_p() method. context is a ssl.SSLContext object which allows...
doc_20726
Return True if the transport is receiving new data. New in version 3.7.
doc_20727
Return a list of all the values for the named field. This method is compatible with the wsgiref get_all() method.
doc_20728
Tests the image data contained in the file named by filename, and returns a string describing the image type. If optional h is provided, the filename is ignored and h is assumed to contain the byte stream to test. Changed in version 3.6: Accepts a path-like object.
doc_20729
Return the timezone. Returns datetime.tzinfo, pytz.tzinfo.BaseTZInfo, dateutil.tz.tz.tzfile, or None Returns None when the array is tz-naive.
doc_20730
See Migration guide for more details. tf.compat.v1.image.non_max_suppression_with_scores tf.image.non_max_suppression_with_scores( boxes, scores, max_output_size, iou_threshold=0.5, score_threshold=float('-inf'), soft_nms_sigma=0.0, name=None ) Prunes away boxes that have high intersection-over-union (IOU) o...
doc_20731
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_20732
See Migration guide for more details. tf.compat.v1.raw_ops.MirrorPadGrad tf.raw_ops.MirrorPadGrad( input, paddings, mode, name=None ) This operation folds the padded areas of input by MirrorPad according to the paddings you specify. paddings must be the same as paddings argument given to the corresponding Mirror...
doc_20733
Enforce that the WSGI response is a response object of the current type. Werkzeug will use the Response internally in many situations like the exceptions. If you call get_response() on an exception you will get back a regular Response object, even if you are using a custom subclass. This method can enforce a given resp...
doc_20734
See Migration guide for more details. tf.compat.v1.train.ClusterDef Attributes job repeated JobDef job
doc_20735
Return the alpha value used for blending - not supported on all backends.
doc_20736
Convert a label to Unicode, as specified in RFC 3490.
doc_20737
remove the Sprite from all Groups kill() -> None The Sprite is removed from all the Groups that contain it. This won't change anything about the state of the Sprite. It is possible to continue to use the Sprite after this method has been called, including adding it to Groups.
doc_20738
tf.compat.v1.data.experimental.TensorArrayStructure( dtype, element_shape, dynamic_size, infer_shape ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.TensorArraySpec instead.
doc_20739
Return whether x is in the closed (x0, x1) interval.
doc_20740
Returns the cumulative sum of elements of input in the dimension dim. For example, if input is a vector of size N, the result will also be a vector of size N, with elements. yi=x1+x2+x3+⋯+xiy_i = x_1 + x_2 + x_3 + \dots + x_i Parameters input (Tensor) – the input tensor. dim (int) – the dimension to do the oper...
doc_20741
Get user/password for given realm and URI, if any. This method will return (None, None) if there is no matching user/password. For HTTPPasswordMgrWithDefaultRealm objects, the realm None will be searched if the given realm has no matching user/password.
doc_20742
See Migration guide for more details. tf.compat.v1.debugging.enable_check_numerics tf.debugging.enable_check_numerics( stack_height_limit=30, path_length_limit=50 ) The numerics checking mechanism will cause any TensorFlow eager execution or graph execution to error out as soon as an op's output tensor contains ...
doc_20743
Applies a 2D convolution over an input signal composed of several input planes. In the simplest case, the output value of the layer with input size (N,Cin,H,W)(N, C_{\text{in}}, H, W) and output (N,Cout,Hout,Wout)(N, C_{\text{out}}, H_{\text{out}}, W_{\text{out}}) can be precisely described as: out(Ni,Coutj)=bias(...
doc_20744
Return histogram of image. Unlike numpy.histogram, this function returns the centers of bins and does not rebin integer arrays. For integer arrays, each integer value has its own bin, which improves speed and intensity-resolution. The histogram is computed on the flattened image: for color images, the function should...
doc_20745
tf.data.TextLineDataset( filenames, compression_type=None, buffer_size=None, num_parallel_reads=None ) Args filenames A tf.string tensor or tf.data.Dataset containing one or more filenames. compression_type (Optional.) A tf.string scalar evaluating to one of "" (no compression), "ZLIB", or "GZIP". ...
doc_20746
Registers a forward pre-hook on the module. The hook will be called every time before forward() is invoked. It should have the following signature: hook(module, input) -> None or modified input The input contains only the positional arguments given to the module. Keyword arguments won’t be passed to the hooks and on...
doc_20747
A dict of default converters to be used.
doc_20748
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyGradientDescent tf.raw_ops.ApplyGradientDescent( var, alpha, delta, use_locking=False, name=None ) Args var A mutable Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, complex64, int64, qint8, quint8, ...
doc_20749
Format the text display value of index labels or column headers. New in version 1.4.0. Parameters formatter:str, callable, dict or None Object to define how values are displayed. See notes. axis:{0, “index”, 1, “columns”} Whether to apply the formatter to the index or column headers. level:int, str, lis...
doc_20750
Contrast Limited Adaptive Histogram Equalization (CLAHE). An algorithm for local contrast enhancement, that uses histograms computed over different tile regions of the image. Local details can therefore be enhanced even in regions that are darker or lighter than most of the image. Parameters image(N1, …,NN[, C]) ...
doc_20751
exception zlib.error Exception raised on compression and decompression errors. zlib.adler32(data[, value]) Computes an Adler-32 checksum of data. (An Adler-32 checksum is almost as reliable as a CRC32 but can be computed much more quickly.) The result is an unsigned 32-bit integer. If value is present, it is us...
doc_20752
Bases: mpl_toolkits.axes_grid1.axes_divider.SubplotDivider A SubplotDivider for laying out axes horizontally, while ensuring that they have equal heights. Examples (Source code, png, pdf) Parameters figmatplotlib.figure.Figure *argstuple (nrows, ncols, index) or int The array of subplots in the figure has ...
doc_20753
token.tok_name Dictionary mapping the numeric values of the constants defined in this module back to name strings, allowing more human-readable representation of parse trees to be generated. token.ISTERMINAL(x) Return True for terminal token values. token.ISNONTERMINAL(x) Return True for non-terminal toke...
doc_20754
tf.nn.dilation2d( input, filters, strides, padding, data_format, dilations, name=None ) The input tensor has shape [batch, in_height, in_width, depth] and the filters tensor has shape [filter_height, filter_width, depth], i.e., each input channel is processed independently of the others with its own structuring fu...
doc_20755
tf.nn.tanh, tf.tanh Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.tanh, tf.compat.v1.nn.tanh, tf.compat.v1.tanh tf.math.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 outpu...
doc_20756
Automatically set the widths of given columns to optimal sizes. Parameters colint or sequence of ints The indices of the columns to auto-scale.
doc_20757
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_20758
See Migration guide for more details. tf.compat.v1.raw_ops.StringFormat tf.raw_ops.StringFormat( inputs, template='%s', placeholder='%s', summarize=3, name=None ) Formats a string template using a list of tensors, pretty-printing tensor summaries. Args inputs A list of Tensor objects. The list of te...
doc_20759
View this tensor as the same size as other. self.view_as(other) is equivalent to self.view(other.size()). Please see view() for more information about view. Parameters other (torch.Tensor) – The result tensor has the same size as other.
doc_20760
Transform from unconstrained matrices to lower-triangular matrices with nonnegative diagonal entries. This is useful for parameterizing positive definite matrices in terms of their Cholesky factorization.
doc_20761
Keep a database of (realm, uri) -> (user, password) mappings.
doc_20762
Open a dumbdbm database and return a dumbdbm object. The filename argument is the basename of the database file (without any specific extensions). When a dumbdbm database is created, files with .dat and .dir extensions are created. The optional flag argument can be: Value Meaning 'r' Open existing database for re...
doc_20763
Copy the contents of the file-like object fsrc to the file-like object fdst. The integer length, if given, is the buffer size. In particular, a negative length value means to copy the data without looping over the source data in chunks; by default the data is read in chunks to avoid uncontrolled memory consumption. Not...
doc_20764
tf.compat.v1.layers.SeparableConv1D( filters, kernel_size, strides=1, padding='valid', data_format='channels_last', dilation_rate=1, depth_multiplier=1, activation=None, use_bias=True, depthwise_initializer=None, pointwise_initializer=None, bias_initializer=tf.zeros_initializer(), depthwise_regulari...
doc_20765
Deprecated since version 1.21: This decorator is retained for compatibility with the nose testing framework, which is being phased out. Please use the nose2 or pytest frameworks instead. Label a test as ‘slow’. The exact definition of a slow test is obviously both subjective and hardware-dependent, but in general a...
doc_20766
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_20767
Get the separator character for thousands (groups of three digits).
doc_20768
(default: True) If true, then words longer than width will be broken in order to ensure that no lines are longer than width. If it is false, long words will not be broken, and some lines may be longer than width. (Long words will be put on a line by themselves, in order to minimize the amount by which width is exceeded...
doc_20769
See torch.gt().
doc_20770
Set the offset for the location of 0 in radians.
doc_20771
See Migration guide for more details. tf.compat.v1.expm1, tf.compat.v1.math.expm1 tf.math.expm1( x, name=None ) i.e. exp(x) - 1 or e^(x) - 1, where x is the input tensor. e denotes Euler's number and is approximately equal to 2.718281. x = tf.constant(2.0) tf.math.expm1(x) ==> 6.389056 x = tf.constant([2.0, 8.0...
doc_20772
Transform timestamp[, tz] to tz’s local time from POSIX timestamp. Examples >>> pd.Timestamp.fromtimestamp(1584199972) Timestamp('2020-03-14 15:32:52') Note that the output may change depending on your local time.
doc_20773
os.PRIO_PGRP os.PRIO_USER Parameters for the getpriority() and setpriority() functions. Availability: Unix. New in version 3.3.
doc_20774
server_address = ('', 8000) httpd = server_class(server_address, handler_class) httpd.serve_forever() class http.server.HTTPServer(server_address, RequestHandlerClass) This class builds on the TCPServer class by storing the server address as instance variables named server_name and server_port. The ser...
doc_20775
See Migration guide for more details. tf.compat.v1.raw_ops.InfeedDequeueTuple tf.raw_ops.InfeedDequeueTuple( dtypes, shapes, name=None ) Args dtypes A list of tf.DTypes that has length >= 1. The element types of each element in outputs. shapes A list of shapes (each a tf.TensorShape or list of int...
doc_20776
Returns a 4-tuple containing (paginator, page, object_list, is_paginated). Constructed by paginating queryset into pages of size page_size. If the request contains a page argument, either as a captured URL argument or as a GET argument, object_list will correspond to the objects from that page.
doc_20777
Sort by the values along either axis. Parameters by:str or list of str Name or list of names to sort by. if axis is 0 or ‘index’ then by may contain index levels and/or column labels. if axis is 1 or ‘columns’ then by may contain column levels and/or index labels. axis:{0 or ‘index’, 1 or ‘columns’}, defaul...
doc_20778
Set tick labels. Discouraged The use of this method is discouraged, because of the dependency on tick positions. In most cases, you'll want to use set_ticks(positions, labels=labels) instead. If you are using this method, you should always fix the tick positions before, e.g. by using Colorbar.set_ticks or by explici...
doc_20779
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_20780
dis.disco(code, lasti=-1, *, file=None) Disassemble a code object, indicating the last instruction if lasti was provided. The output is divided in the following columns: the line number, for the first instruction of each line the current instruction, indicated as -->, a labelled instruction, indicated with >>, the a...
doc_20781
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_20782
sklearn.datasets.fetch_california_housing(*, data_home=None, download_if_missing=True, return_X_y=False, as_frame=False) [source] Load the California housing dataset (regression). Samples total 20640 Dimensionality 8 Features real Target real 0.15 - 5. Read more in the User Guide. Parameters data_homest...
doc_20783
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_20784
Convert the string s to vertices and codes using usetex mode.
doc_20785
Randomly permute x along axis axis. Unlike shuffle, each slice along the given axis is shuffled independently of the others. Parameters xarray_like, at least one-dimensional Array to be shuffled. axisint, optional Slices of x in this axis are shuffled. Each slice is shuffled independently of the others. If ...
doc_20786
See Migration guide for more details. tf.compat.v1.keras.layers.ZeroPadding1D tf.keras.layers.ZeroPadding1D( padding=1, **kwargs ) Examples: input_shape = (2, 2, 3) x = np.arange(np.prod(input_shape)).reshape(input_shape) print(x) [[[ 0 1 2] [ 3 4 5]] [[ 6 7 8] [ 9 10 11]]] y = tf.keras.layers.ZeroPa...
doc_20787
Prunes tensor corresponding to parameter called name in module by removing the specified amount of (currently unpruned) channels along the specified dim with the lowest L``n``-norm. Modifies module in place (and also return the modified module) by: 1) adding a named buffer called name+'_mask' corresponding to the bin...
doc_20788
See Migration guide for more details. tf.compat.v1.io.gfile.rmtree tf.io.gfile.rmtree( path ) Args path string, a path Raises errors.OpError If the operation fails.
doc_20789
Callback processing for mouse button release events. Backend derived classes should call this function on any mouse button release. This method will call all functions connected to the 'button_release_event' with a MouseEvent instance. Parameters xfloat The canvas coordinates where 0=left. yfloat The canvas...
doc_20790
Execute the command (a string) in a subshell. This is implemented by calling the Standard C function system(), and has the same limitations. Changes to sys.stdin, etc. are not reflected in the environment of the executed command. If command generates any output, it will be sent to the interpreter standard output stream...
doc_20791
See Migration guide for more details. tf.compat.v1.raw_ops.DatasetToSingleElement tf.raw_ops.DatasetToSingleElement( dataset, output_types, output_shapes, name=None ) Args dataset A Tensor of type variant. A handle to a dataset that contains a single element. output_types A list of tf.DTypes that ...
doc_20792
Draw samples from the triangular distribution over the interval [left, right]. The triangular distribution is a continuous probability distribution with lower limit left, peak at mode, and upper limit right. Unlike the other distributions, these parameters directly define the shape of the pdf. Note New code should u...
doc_20793
Call self as a function.
doc_20794
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyProximalGradientDescent tf.raw_ops.ApplyProximalGradientDescent( var, alpha, l1, l2, delta, use_locking=False, name=None ) prox_v = var - alpha * delta var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0} Args var A mutable Tensor. Mu...
doc_20795
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_20796
Array interface to get at this Transform's affine matrix.
doc_20797
Returns the latest pubdate or updateddate for all items in the feed. If no items have either of these attributes this returns the current UTC date/time.
doc_20798
Set the vertices of the polygons. Parameters vertslist of array-like The sequence of polygons [verts0, verts1, ...] where each element verts_i defines the vertices of polygon i as a 2D array-like of shape (M, 2). closedbool, default: True Whether the polygon should be closed by adding a CLOSEPOLY connection...
doc_20799
Reorder coordinates so that 2D xs, ys can be plotted in the plane orthogonal to zdir. zdir is normally x, y or z. However, if zdir starts with a '-' it is interpreted as a compensation for rotate_axes.