_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_30000
See Migration guide for more details. tf.compat.v1.image.random_contrast tf.image.random_contrast( image, lower, upper, seed=None ) Equivalent to adjust_contrast() but uses a contrast_factor randomly picked in the interval [lower, upper). Args image An image tensor with 3 or more dimensions. lower ...
doc_30001
This function works like getopt(), except that GNU style scanning mode is used by default. This means that option and non-option arguments may be intermixed. The getopt() function stops processing options as soon as a non-option argument is encountered. If the first character of the option string is '+', or if the envi...
doc_30002
DefaultStorage provides lazy access to the current default storage system as defined by DEFAULT_FILE_STORAGE. DefaultStorage uses get_storage_class() internally.
doc_30003
Dictionary mapping names accepted by pathconf() and fpathconf() to the integer values defined for those names by the host operating system. This can be used to determine the set of names known to the system. Availability: Unix.
doc_30004
See Migration guide for more details. tf.compat.v1.raw_ops.Elu tf.raw_ops.Elu( features, name=None ) See Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs) Args features A Tensor. Must be one of the following types: half, bfloat16, float32, float64. name A name for the ope...
doc_30005
Compress data (a bytes object), returning the compressed data as a bytes object. See LZMACompressor above for a description of the format, check, preset and filters arguments.
doc_30006
View inputs as arrays with at least two dimensions. Parameters arys1, arys2, …array_like One or more array-like sequences. Non-array inputs are converted to arrays. Arrays that already have two or more dimensions are preserved. Returns res, res2, …ndarray An array, or list of arrays, each with a.ndim >=...
doc_30007
Draw the text instance. Parameters gcGraphicsContextBase The graphics context. xfloat The x location of the text in display coords. yfloat The y location of the text baseline in display coords. sstr The text string. propmatplotlib.font_manager.FontProperties The font properties. anglefloat T...
doc_30008
Return the names of the attributes.
doc_30009
tf.sparse.concat( axis, sp_inputs, expand_nonconcat_dims=False, name=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (concat_dim). They will be removed in a future version. Instructions for updating: concat_dim is deprecated, use axis instead Concatenation is with respect to the dense versions of each sparse input....
doc_30010
Inverse hyperbolic cosine, element-wise. Parameters xarray_like Input array. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A ...
doc_30011
class sklearn.linear_model.ARDRegression(*, n_iter=300, tol=0.001, alpha_1=1e-06, alpha_2=1e-06, lambda_1=1e-06, lambda_2=1e-06, compute_score=False, threshold_lambda=10000.0, fit_intercept=True, normalize=False, copy_X=True, verbose=False) [source] Bayesian ARD regression. Fit the weights of a regression model, usin...
doc_30012
Compute the weighted log probabilities for each sample. Parameters Xarray-like of shape (n_samples, n_features) List of n_features-dimensional data points. Each row corresponds to a single data point. Returns log_probarray, shape (n_samples,) Log probabilities of each data point in X.
doc_30013
Set the file’s current position. whence argument is optional and defaults to os.SEEK_SET or 0 (absolute file positioning); other values are os.SEEK_CUR or 1 (seek relative to the current position) and os.SEEK_END or 2 (seek relative to the file’s end).
doc_30014
A variant of HTTPPasswordMgrWithDefaultRealm that also has a database of uri -> is_authenticated mappings. Can be used by a BasicAuth handler to determine when to send authentication credentials immediately instead of waiting for a 401 response first. New in version 3.5.
doc_30015
Test whether the mouse event occurred on the figure. Returns bool, {}
doc_30016
Try to match a single dict with the supplied arguments.
doc_30017
Write the pickled representation of obj to the open file object given in the constructor.
doc_30018
Name of the module the loader supports.
doc_30019
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_30020
Bases: skimage.viewer.widgets.core.BaseWidget Buttons to save image to io.stack or to a file. __init__(name='Save to:', default_format='png') [source] Initialize self. See help(type(self)) for accurate signature. save_to_file(filename=None) [source] save_to_stack() [source]
doc_30021
The Storage class provides a standardized API for storing files, along with a set of default behaviors that all other storage systems can inherit or override as necessary. Note When methods return naive datetime objects, the effective timezone used will be the current value of os.environ['TZ']; note that this is usual...
doc_30022
Return the group id.
doc_30023
A record of the the module’s import-system-related state. Expected to be an instance of importlib.machinery.ModuleSpec. New in version 3.4.
doc_30024
Computes the inverse of rfft. This function computes the inverse of the one-dimensional n-point discrete Fourier Transform of real input computed by rfft. In other words, irfft(rfft(a), len(a)) == a to within numerical accuracy. (See Notes below for why len(a) is necessary here.) The input is expected to be in the fo...
doc_30025
tf.compat.v1.get_default_graph() The returned graph will be the innermost graph on which a Graph.as_default() context has been entered, or a global default graph if none has been explicitly created. Note: The default graph is a property of the current thread. If you create a new thread, and wish to use the default gr...
doc_30026
tf.compat.v1.ones_like( tensor, dtype=None, name=None, optimize=True ) See also tf.ones. Given a single tensor (tensor), this operation returns a tensor of the same type and shape as tensor with all elements set to 1. Optionally, you can specify a new type (dtype) for the returned tensor. For example: tensor = tf....
doc_30027
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_30028
Remove axes of length one from a. Refer to numpy.squeeze for full documentation. See also numpy.squeeze equivalent function
doc_30029
A SelectorKey is a namedtuple used to associate a file object to its underlying file descriptor, selected event mask and attached data. It is returned by several BaseSelector methods. fileobj File object registered. fd Underlying file descriptor. events Events that must be waited for on this file object...
doc_30030
The name and value are returned unmodified.
doc_30031
Note: In TensorFlow 2.0, AutoGraph is automatically applied when using tf.function. This module contains lower-level APIs for advanced use. For more information, see the AutoGraph guide. By equivalent graph code we mean code that generates a TensorFlow graph when run. The generated graph has the same effects as the or...
doc_30032
Unset the flag(s) specified by flag without changing other flags. To remove more than one flag at a time, flag maybe a string of more than one character.
doc_30033
See Migration guide for more details. tf.compat.v1.raw_ops.LoopCond tf.raw_ops.LoopCond( input, name=None ) This operator represents the loop termination condition used by the "pivot" switches of a loop. Args input A Tensor of type bool. A boolean scalar, representing the branch predicate of the Switch ...
doc_30034
(os.POSIX_SPAWN_OPEN, fd, path, flags, mode) Performs os.dup2(os.open(path, flags, mode), fd).
doc_30035
See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixMul tf.raw_ops.SparseMatrixMul( a, b, name=None ) Returns a sparse matrix. The dense tensor b may be either a scalar; otherwise a must be a rank-3 SparseMatrix; in this case b must be shaped [batch_size, 1, 1] and the multiply operation broad...
doc_30036
Return a list of 2-tuples containing all the message’s field headers and values.
doc_30037
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_30038
bytearray.upper() Return a copy of the sequence with all the lowercase ASCII characters converted to their corresponding uppercase counterpart. For example: >>> b'Hello World'.upper() b'HELLO WORLD' Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyz'. Uppercase ASCII charac...
doc_30039
Set the locations of the ticks. This method is called before computing the tick labels because some formatters need to know all tick locations to do so.
doc_30040
Other Members CXX11_ABI_FLAG 0 MONOLITHIC_BUILD 0
doc_30041
Process this response as WSGI application. Parameters environ (WSGIEnvironment) – the WSGI environment. start_response (StartResponse) – the response callable provided by the WSGI server. Returns an application iterator Return type Iterable[bytes]
doc_30042
Parameters axAxes The parent axes for the widget. onselectfunction A callback function that is called after a selection is completed. It must have the signature: def onselect(eclick: MouseEvent, erelease: MouseEvent) where eclick and erelease are the mouse click and release MouseEvents that start and compl...
doc_30043
Set the center of the ellipse. Parameters xy(float, float)
doc_30044
get the string name from an event id event_name(type) -> string Returns a string representing the name (in CapWords style) of the given event type. "UserEvent" is returned for all values in the user event id range. "Unknown" is returned when the event type does not exist.
doc_30045
tf.compat.v1.train.RMSPropOptimizer( learning_rate, decay=0.9, momentum=0.0, epsilon=1e-10, use_locking=False, centered=False, name='RMSProp' ) 2012). References: Coursera slide 29: Hinton, 2012 (pdf) Args learning_rate A Tensor or a floating point value. The learning rate. decay Discounting fac...
doc_30046
An instance of RcParams for handling default Matplotlib values.
doc_30047
Computes the p-norm distance between every pair of row vectors in the input. This is identical to the upper triangular portion, excluding the diagonal, of torch.norm(input[:, None] - input, dim=2, p=p). This function will be faster if the rows are contiguous. If input has shape N×MN \times M then the output will have ...
doc_30048
Set the pick radius used for containment tests. Parameters prfloat Pick radius, in points.
doc_30049
Returns whether this LinearRing is counterclockwise.
doc_30050
See Migration guide for more details. tf.compat.v1.raw_ops.ImageProjectiveTransformV3 tf.raw_ops.ImageProjectiveTransformV3( images, transforms, output_shape, fill_value, interpolation, fill_mode='CONSTANT', name=None ) If one row of transforms is [a0, a1, a2, b0, b1, b2, c0, c1], then it maps the output poi...
doc_30051
Profile func(*args, **kwargs)
doc_30052
Creates a test client for this application. For information about unit testing head over to Testing Flask Applications. Note that if you are testing for assertions or exceptions in your application code, you must set app.testing = True in order for the exceptions to propagate to the test client. Otherwise, the exceptio...
doc_30053
Return a new matrix of given shape and type, without initializing entries. Parameters shapeint or tuple of int Shape of the empty matrix. dtypedata-type, optional Desired output data-type. order{‘C’, ‘F’}, optional Whether to store multi-dimensional data in row-major (C-style) or column-major (Fortran-s...
doc_30054
tf.compat.v1.summary.tensor_summary( name, tensor, summary_description=None, collections=None, summary_metadata=None, family=None, display_name=None ) Args name A name for the generated node. If display_name is not set, it will also serve as the tag name in TensorBoard. (In that case, the tag name wil...
doc_30055
Given a math expression, renders it in a closely-clipped bounding box to an image file. Parameters sstr A math expression. The math portion must be enclosed in dollar signs. filename_or_objstr or path-like or file-like Where to write the image data. propFontProperties, optional The size and style of the...
doc_30056
A string of bytes read before the end of stream was reached.
doc_30057
[Deprecated] Extract code from a piece of text, which contains either Python code or doctests. Notes Deprecated since version 3.5.
doc_30058
Set a Cookie if policy says it’s OK to do so.
doc_30059
By default, Variance returns the population variance. However, if sample=True, the return value will be the sample variance.
doc_30060
Send an object to the other end of the connection which should be read using recv(). The object must be picklable. Very large pickles (approximately 32 MiB+, though it depends on the OS) may raise a ValueError exception.
doc_30061
Return True if the current context references a file.
doc_30062
Set the artist transform. Parameters tTransform
doc_30063
Upsample and then smooth image. Parameters imagendarray Input image. upscalefloat, optional Upscale factor. sigmafloat, optional Sigma for Gaussian filter. Default is 2 * upscale / 6.0 which corresponds to a filter mask twice the size of the scale factor that covers more than 99% of the Gaussian distrib...
doc_30064
Compute the ANOVA F-value for the provided sample. Read more in the User Guide. Parameters X{array-like, sparse matrix} shape = [n_samples, n_features] The set of regressors that will be tested sequentially. yarray of shape(n_samples) The data matrix. Returns Farray, shape = [n_features,] The set of...
doc_30065
Return group values at the given quantile, a la numpy.percentile. Parameters q:float or array-like, default 0.5 (50% quantile) Value(s) between 0 and 1 providing the quantile(s) to compute. interpolation:{‘linear’, ‘lower’, ‘higher’, ‘midpoint’, ‘nearest’} Method to use when the desired quantile falls betwe...
doc_30066
Retry the request with authentication information, if available.
doc_30067
Initialize self. See help(type(self)) for accurate signature.
doc_30068
Returns a boolean array where two arrays are element-wise equal within a tolerance. The tolerance values are positive, typically very small numbers. The relative difference (rtol * abs(b)) and the absolute difference atol are added together to compare against the absolute difference between a and b. Warning The defa...
doc_30069
Computes the 2 dimensional inverse discrete Fourier transform of input. Equivalent to ifftn() but IFFTs only the last two dimensions by default. Parameters input (Tensor) – the input tensor s (Tuple[int], optional) – Signal size in the transformed dimensions. If given, each dimension dim[i] will either be zero-pad...
doc_30070
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_30071
Traceback where the memory block was allocated, Traceback instance.
doc_30072
'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', ] } You can also set the renderers used for an individual view, or viewset, using the APIView class-based views. from django.contrib.auth.models import User from rest_framewor...
doc_30073
Return the artist's zorder.
doc_30074
A string to issue as an intro or banner. May be overridden by giving the cmdloop() method an argument.
doc_30075
Abstract.
doc_30076
See Migration guide for more details. tf.compat.v1.nn.space_to_depth tf.compat.v1.space_to_depth( input, block_size, name=None, data_format='NHWC' ) Rearranges blocks of spatial data, into depth. More specifically, this op outputs a copy of the input tensor where values from the height and width dimensions are m...
doc_30077
A memoryview of contents of the shared memory block.
doc_30078
Out-of-place version of torch.Tensor.index_fill_(). tensor1 corresponds to self in torch.Tensor.index_fill_().
doc_30079
See Migration guide for more details. tf.compat.v1.nn.l2_loss tf.nn.l2_loss( t, name=None ) Computes half the L2 norm of a tensor without the sqrt: output = sum(t ** 2) / 2 Args t A Tensor. Must be one of the following types: half, bfloat16, float32, float64. Typically 2-D, but may have any dimensions....
doc_30080
Create color map from linear mapping segments segmentdata argument is a dictionary with a red, green and blue entries. Each entry should be a list of x, y0, y1 tuples, forming rows in a table. Entries for alpha are optional. Example: suppose you want red to increase from 0 to 1 over the bottom half, green to do the s...
doc_30081
Evaluate a 2-D Legendre series at points (x, y). This function returns the values: \[p(x,y) = \sum_{i,j} c_{i,j} * L_i(x) * L_j(y)\] The parameters x and y are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after conversion. In either...
doc_30082
Read SIFT or SURF features from externally generated file. This routine reads SIFT or SURF files generated by binary utilities from http://people.cs.ubc.ca/~lowe/keypoints/ and http://www.vision.ee.ethz.ch/~surf/. This routine does not generate SIFT/SURF features from an image. These algorithms are patent encumbered....
doc_30083
See Migration guide for more details. tf.compat.v1.raw_ops.IdentityReaderV2 tf.raw_ops.IdentityReaderV2( container='', shared_name='', name=None ) To use, enqueue strings in a Queue. ReaderRead will take the front work string and output (work, work). Args container An optional string. Defaults to "". If...
doc_30084
Return a list containing the names of the entries in the directory given by path. The list is in arbitrary order, and does not include the special entries '.' and '..' even if they are present in the directory. If a file is removed from or added to the directory during the call of this function, whether a name for that...
doc_30085
Add a colormap to the set recognized by get_cmap(). Register a new colormap to be accessed by name LinearSegmentedColormap('swirly', data, lut) register_cmap(cmap=swirly_cmap) Parameters namestr, optional The name that can be used in get_cmap() or rcParams["image.cmap"] (default: 'viridis') If absent, the name...
doc_30086
See Migration guide for more details. tf.compat.v1.feature_column.weighted_categorical_column tf.feature_column.weighted_categorical_column( categorical_column, weight_feature_key, dtype=tf.dtypes.float32 ) Use this when each of your sparse inputs has both an ID and a value. For example, if you're representing t...
doc_30087
Return an ndarray of the flattened values of the underlying data. Returns numpy.ndarray Flattened array. See also numpy.ndarray.ravel Return a flattened array.
doc_30088
Create a new request object based on the values provided. If environ is given missing values are filled from there. This method is useful for small scripts when you need to simulate a request from an URL. Do not use this method for unittesting, there is a full featured client object (Client) that allows to create multi...
doc_30089
Return a Document that represents the string. This method creates an io.StringIO object for the string and passes that on to parse().
doc_30090
[Deprecated] Set the title text of the window containing the figure. Note that this has no effect if there is no window (e.g., a PS backend). Notes Deprecated since version 3.4.
doc_30091
Highlight values defined by a quantile with a style. New in version 1.3.0. Parameters subset:label, array-like, IndexSlice, optional A valid 2d input to DataFrame.loc[<subset>], or, in the case of a 1d input or single key, to DataFrame.loc[:, <subset>] where the columns are prioritised, to limit data to befor...
doc_30092
Estimate line model from data. This minimizes the sum of shortest (orthogonal) distances from the given data points to the estimated line. Parameters data(N, dim) array N points in a space of dimensionality dim >= 2. Returns successbool True, if model estimation succeeds.
doc_30093
A Semaphore object. Not thread-safe. A semaphore manages an internal counter which is decremented by each acquire() call and incremented by each release() call. The counter can never go below zero; when acquire() finds that it is zero, it blocks, waiting until some task calls release(). The optional value argument give...
doc_30094
An abstract method that executes the module in its own namespace when a module is imported or reloaded. The module should already be initialized when exec_module() is called. When this method exists, create_module() must be defined. New in version 3.4. Changed in version 3.6: create_module() must also be defined.
doc_30095
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_30096
Creates a strided copy of self. Warning Throws an error if self is a strided tensor. Example: >>> s = torch.sparse_coo_tensor( ... torch.tensor([[1, 1], ... [0, 2]]), ... torch.tensor([9, 10]), ... size=(3, 3)) >>> s.to_dense() tensor([[ 0, 0, 0], [ 9, 0, 10], ...
doc_30097
Token value for ".".
doc_30098
Used internally for PIL-style arrays. The value is informational only.
doc_30099
Return Less than of series and other, element-wise (binary operator lt). Equivalent to series < other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existing missing (NaN...