_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_21100
Random values in a given shape. Note This is a convenience function for users porting code from Matlab, and wraps random_sample. That function takes a tuple to specify the size of the output, which is consistent with other NumPy functions like numpy.zeros and numpy.ones. Create an array of the given shape and popul...
doc_21101
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array.
doc_21102
The offset of the local DST timezone, in seconds west of UTC, if one is defined. This is negative if the local DST timezone is east of UTC (as in Western Europe, including the UK). Only use this if daylight is nonzero. See note below.
doc_21103
Returns True if the data type of self is a signed data type.
doc_21104
Boolean flag that indicates if the field was automatically created, such as the OneToOneField used by model inheritance.
doc_21105
The path to the template as returned by the template loader. For loaders that read from the file system, this is the full path to the template. If the template is instantiated directly rather than through a template loader, this is a string value of <unknown_source>.
doc_21106
If tzinfo is None, returns None, else returns self.tzinfo.utcoffset(None), and raises an exception if the latter doesn’t return None or a timedelta object with magnitude less than one day. Changed in version 3.7: The UTC offset is not restricted to a whole number of minutes.
doc_21107
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_21108
tf.compat.v1.resource_loader.readahead_file_path( path, readahead='128M' )
doc_21109
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorCirculant3D tf.linalg.LinearOperatorCirculant3D( spectrum, input_output_dtype=tf.dtypes.complex64, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=True, name='LinearOperatorCirculant3D' ) This operato...
doc_21110
tf.experimental.numpy.outer( a, b ) Unsupported arguments: out. See the NumPy documentation for numpy.outer.
doc_21111
See Migration guide for more details. tf.compat.v1.keras.applications.efficientnet.decode_predictions tf.keras.applications.efficientnet.decode_predictions( preds, top=5 ) Arguments preds Numpy array encoding a batch of predictions. top Integer, how many top-guesses to return. Defaults to 5. ...
doc_21112
Bases: skimage.viewer.widgets.core.BaseWidget CheckBox widget Parameters namestr Name of CheckBox parameter. If this parameter is passed as a keyword argument, it must match the name of that keyword argument (spaces are replaced with underscores). In addition, this name is displayed as the name of the CheckBox....
doc_21113
The LogEntry class tracks additions, changes, and deletions of objects done through the admin interface.
doc_21114
See Migration guide for more details. tf.compat.v1.raw_ops.FusedBatchNormGrad tf.raw_ops.FusedBatchNormGrad( y_backprop, x, scale, reserve_space_1, reserve_space_2, epsilon=0.0001, data_format='NHWC', is_training=True, name=None ) Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". The s...
doc_21115
Draw samples from a chi-square distribution. When df independent random variables, each with standard normal distributions (mean 0, variance 1), are squared and summed, the resulting distribution is chi-square (see Notes). This distribution is often used in hypothesis testing. Note New code should use the chisquare ...
doc_21116
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_21117
Check if a host matches a list of trusted names. Parameters hostname (str) – The name to check. trusted_list (Iterable[str]) – A list of valid names to match. If a name starts with a dot it will match all subdomains. Return type bool Changelog New in version 0.9.
doc_21118
Return a Request or None in response to a redirect. This is called by the default implementations of the http_error_30*() methods when a redirection is received from the server. If a redirection should take place, return a new Request to allow http_error_30*() to perform the redirect to newurl. Otherwise, raise HTTPErr...
doc_21119
Generate an array with constant block diagonal structure for biclustering. Read more in the User Guide. Parameters shapeiterable of shape (n_rows, n_cols) The shape of the result. n_clustersint The number of biclusters. noisefloat, default=0.0 The standard deviation of the gaussian noise. minvalint, d...
doc_21120
Get the list of quota roots for the named mailbox. This method is part of the IMAP4 QUOTA extension defined in rfc2087.
doc_21121
Check the cache for validity. Use this function if files in the cache may have changed on disk, and you require the updated version. If filename is omitted, it will check all the entries in the cache.
doc_21122
Return the underlying artist that actually defines some properties (e.g., color) of this artist.
doc_21123
sklearn.datasets.load_wine(*, return_X_y=False, as_frame=False) [source] Load and return the wine dataset (classification). New in version 0.18. The wine dataset is a classic and very easy multi-class classification dataset. Classes 3 Samples per class [59,71,48] Samples total 178 Dimensionality 13 Featur...
doc_21124
Transform X using the forward function. Parameters Xarray-like, shape (n_samples, n_features) Input array. Returns X_outarray-like, shape (n_samples, n_features) Transformed input.
doc_21125
socket.SOCK_DGRAM socket.SOCK_RAW socket.SOCK_RDM socket.SOCK_SEQPACKET These constants represent the socket types, used for the second argument to socket(). More constants may be available depending on the system. (Only SOCK_STREAM and SOCK_DGRAM appear to be generally useful.)
doc_21126
Remove the Axes ax from the figure; update the current Axes.
doc_21127
Estimate clustering structure from vector array. OPTICS (Ordering Points To Identify the Clustering Structure), closely related to DBSCAN, finds core sample of high density and expands clusters from them [1]. Unlike DBSCAN, keeps cluster hierarchy for a variable neighborhood radius. Better suited for usage on large d...
doc_21128
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters Xarray-like of shape (n_samples_X, n_features) or list of object Argument to the kernel. Returns K_diagndar...
doc_21129
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or list of bools array a...
doc_21130
tf.experimental.numpy.einsum( subscripts, *operands, **kwargs ) See the NumPy documentation for numpy.einsum.
doc_21131
Simple matching of version numbers, for use in CCompiler and FCompiler. Parameters patstr, optional A regular expression matching version numbers. Default is r'[-.\d]+'. ignorestr, optional A regular expression matching patterns to skip. Default is '', in which case nothing is skipped. startstr, optional ...
doc_21132
tf.compat.v1.test.compute_gradient_error( x, x_shape, y, y_shape, x_init_value=None, delta=0.001, init_targets=None, extra_feed_dict=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.test.compute_gradient in 2.0, which has better support for ...
doc_21133
Alias for get_linewidth.
doc_21134
tf.experimental.numpy.mean( a, axis=None, dtype=None, keepdims=None ) Unsupported arguments: out. See the NumPy documentation for numpy.mean.
doc_21135
Makes a DELETE request on the provided path and returns a Response object. Useful for testing RESTful interfaces. When data is provided, it is used as the request body, and a Content-Type header is set to content_type. The follow, secure and extra arguments act the same as for Client.get().
doc_21136
Returns the current value of the combobox.
doc_21137
Returns path.
doc_21138
class sklearn.linear_model.RidgeClassifierCV(alphas=0.1, 1.0, 10.0, *, fit_intercept=True, normalize=False, scoring=None, cv=None, class_weight=None, store_cv_values=False) [source] Ridge classifier with built-in cross-validation. See glossary entry for cross-validation estimator. By default, it performs Leave-One-Ou...
doc_21139
class sklearn.decomposition.MiniBatchSparsePCA(n_components=None, *, alpha=1, ridge_alpha=0.01, n_iter=100, callback=None, batch_size=3, verbose=False, shuffle=True, n_jobs=None, method='lars', random_state=None) [source] Mini-batch Sparse Principal Components Analysis Finds the set of sparse components that can opti...
doc_21140
Like transfercmd(), but returns a tuple of the data connection and the expected size of the data. If the expected size could not be computed, None will be returned as the expected size. cmd and rest means the same thing as in transfercmd().
doc_21141
'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_21142
The name of the GDAL driver used to handle the input file. For GDALRasters created from a file, the driver type is detected automatically. The creation of rasters from scratch is an in-memory raster by default ('MEM'), but can be altered as needed. For instance, use GTiff for a GeoTiff file. For a list of file types, s...
doc_21143
See torch.gcd()
doc_21144
Globally unique id to identify the worker.
doc_21145
The numpy array interface. Returns numpy.array A numpy array of either the specified dtype or, if dtype==None (default), the same dtype as categorical.categories.dtype.
doc_21146
See torch.arcsinh()
doc_21147
Escapes the unsafe characters from the path portion of a Uniform Resource Identifier (URI).
doc_21148
Interaction function, emulates a very dumb Telnet client.
doc_21149
In range(1000000).
doc_21150
tf.image.crop_and_resize( image, boxes, box_indices, crop_size, method='bilinear', extrapolation_value=0, name=None ) Extracts crops from the input image tensor and resizes them using bilinear sampling or nearest neighbor sampling (possibly with aspect ratio change) to a common output size specified by crop_si...
doc_21151
Return the snap setting. See set_snap for details.
doc_21152
This is an implementation of the Attributes interface (see section The Attributes Interface). This is a dictionary-like object which represents the element attributes in a startElement() call. In addition to the most useful dictionary operations, it supports a number of other methods as described by the interface. Obje...
doc_21153
Repeat elements of a Index. Returns a new Index where each element of the current Index is repeated consecutively a given number of times. Parameters repeats:int or array of ints The number of repetitions for each element. This should be a non-negative integer. Repeating 0 times will return an empty Index. ax...
doc_21154
>>> 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_21155
Return the label used for this artist in the legend.
doc_21156
Set the normalization instance. Parameters normNormalize or None Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.
doc_21157
See Migration guide for more details. tf.compat.v1.raw_ops.SqrtGrad tf.raw_ops.SqrtGrad( y, dy, name=None ) Specifically, grad = dy * 0.5 / y, where y = sqrt(x), and dy is the corresponding input gradient. Args y A Tensor. Must be one of the following types: bfloat16, half, float32, float64, complex64, ...
doc_21158
The relative path to the template as passed into the template loader. If the template is instantiated directly rather than through a template loader, this is None.
doc_21159
The match mode for regex. Defaults to False.
doc_21160
See Migration guide for more details. tf.compat.v1.realdiv tf.realdiv( x, y, name=None ) If x and y are reals, this will return the floating-point division. Note: Div supports broadcasting. More about broadcasting here Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float...
doc_21161
Returns an iterable of Model classes for this application. Requires the app registry to be fully populated.
doc_21162
Whether the index type is compatible with the provided type.
doc_21163
Returns a set of permission strings that the user has, through their groups. If obj is passed in, only returns the group permissions for this specific object.
doc_21164
The annotation for the parameter. If the parameter has no annotation, this attribute is set to Parameter.empty.
doc_21165
sklearn.metrics.mutual_info_score(labels_true, labels_pred, *, contingency=None) [source] Mutual Information between two clusterings. The Mutual Information is a measure of the similarity between two labels of the same data. Where \(|U_i|\) is the number of the samples in cluster \(U_i\) and \(|V_j|\) is the number o...
doc_21166
tf.compat.v1.layers.Conv2D( filters, kernel_size, strides=(1, 1), padding='valid', data_format='channels_last', dilation_rate=(1, 1), activation=None, use_bias=True, kernel_initializer=None, bias_initializer=tf.zeros_initializer(), kernel_regularizer=None, bias_regularizer=None, activity_regularizer=Non...
doc_21167
Compute the outer product of two vectors. Given two vectors, a = [a0, a1, ..., aM] and b = [b0, b1, ..., bN], the outer product [1] is: [[a0*b0 a0*b1 ... a0*bN ] [a1*b0 . [ ... . [aM*b0 aM*bN ]] Parameters a(M,) array_like First input vector. Input is flattened if not already 1-dimen...
doc_21168
class asyncio.Queue(maxsize=0, *, loop=None) A first in, first out (FIFO) queue. If maxsize is less than or equal to zero, the queue size is infinite. If it is an integer greater than 0, then await put() blocks when the queue reaches maxsize until an item is removed by get(). Unlike the standard library threading que...
doc_21169
Check if the interval is open on the left side. For the meaning of closed and open see Interval. Returns bool True if the Interval is closed on the left-side.
doc_21170
See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNV2 tf.raw_ops.CudnnRNNV2( input, input_h, input_c, params, rnn_mode='lstm', input_mode='linear_input', direction='unidirectional', dropout=0, seed=0, seed2=0, is_training=True, name=None ) Computes the RNN from the input and initial state...
doc_21171
Pads the input tensor using replication of the input boundary. For N-dimensional padding, use torch.nn.functional.pad(). Parameters padding (int, tuple) – the size of the padding. If is int, uses the same padding in all boundaries. If a 6-tuple, uses (padding_left\text{padding\_left} , padding_right\text{padding\_r...
doc_21172
This class attribute determines what happens when a custom failure message is passed as the msg argument to an assertXYY call that fails. True is the default value. In this case, the custom message is appended to the end of the standard failure message. When set to False, the custom message replaces the standard messag...
doc_21173
Color difference according to CIEDE 94 standard Accommodates perceptual non-uniformities through the use of application specific scale factors (kH, kC, kL, k1, and k2). Parameters lab1array_like reference color (Lab colorspace) lab2array_like comparison color (Lab colorspace) kHfloat, optional Hue scale...
doc_21174
Clear the Axes.
doc_21175
Multi-block local binary pattern (MB-LBP). The features are calculated similarly to local binary patterns (LBPs), (See local_binary_pattern()) except that summed blocks are used instead of individual pixel values. MB-LBP is an extension of LBP that can be computed on multiple scales in constant time using the integra...
doc_21176
Performs the operation. This function is to be overridden by all subclasses. It must accept a context ctx as the first argument, followed by any number of arguments (tensors or other types). The context can be used to store tensors that can be then retrieved during the backward pass.
doc_21177
multi_margin_loss(input, target, p=1, margin=1, weight=None, size_average=None, reduce=None, reduction=’mean’) -> Tensor See MultiMarginLoss for details.
doc_21178
The asynchronous output buffer size (default 4096).
doc_21179
Pseudo-Vandermonde matrix of given degree. Returns the pseudo-Vandermonde matrix of degree deg and sample points x. The pseudo-Vandermonde matrix is defined by \[V[..., i] = L_i(x)\] where 0 <= i <= deg. The leading indices of V index the elements of x and the last index is the degree of the Legendre polynomial. If ...
doc_21180
Calculates the sign and natural logarithm of the absolute value of a square matrix’s determinant, or of the absolute values of the determinants of a batch of square matrices input. The determinant can be computed with sign * exp(logabsdet). Supports input of float, double, cfloat and cdouble datatypes. Note When given...
doc_21181
See Migration guide for more details. tf.compat.v1.raw_ops.BiasAddGrad tf.raw_ops.BiasAddGrad( out_backprop, data_format='NHWC', name=None ) It accumulates all the values from out_backprop into the feature dimension. For NHWC data format, the feature dimension is the last. For NCHW data format, the feature dimen...
doc_21182
Set 3D vertices.
doc_21183
Raise self to the power other, masking the potential NaNs/Infs
doc_21184
cleansed_substitute The string value to replace sensitive value with. By default it replaces the values of sensitive variables with stars (**********). hidden_settings A compiled regular expression object used to match settings and request.META values considered as sensitive. By default equivalent to: import ...
doc_21185
Return whether the artist uses clipping.
doc_21186
Another Modular Crypt Format method with 22 character salt and 31 character hash based on the Blowfish cipher. New in version 3.7.
doc_21187
The BSD name for RLIMIT_NOFILE.
doc_21188
Return True if path is an absolute pathname. On Unix, that means it begins with a slash, on Windows that it begins with a (back)slash after chopping off a potential drive letter. Changed in version 3.6: Accepts a path-like object.
doc_21189
See Migration guide for more details. tf.compat.v1.data.experimental.latency_stats tf.data.experimental.latency_stats( tag ) To consume the statistics, associate a StatsAggregator with the output dataset. Args tag String. All statistics recorded by the returned transformation will be associated with the...
doc_21190
mailcap.findmatch(caps, MIMEtype, key='view', filename='/dev/null', plist=[]) Return a 2-tuple; the first element is a string containing the command line to be executed (which can be passed to os.system()), and the second element is the mailcap entry for a given MIME type. If no matching MIME type can be found, (None...
doc_21191
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_21192
Call func on self producing a Series with the same axis shape as self. Parameters func:function, str, list-like or dict-like Function to use for transforming the data. If a function, must either work when passed a Series or when passed to Series.apply. If func is both list-like and dict-like, dict-like behavior...
doc_21193
tf.compat.v1.tpu.core( num ) Args num the virtual core number within each replica to which operators should be assigned. Returns A device name, suitable for passing to tf.device().
doc_21194
Return True if any element of the iterable is true. If the iterable is empty, return False. Equivalent to: def any(iterable): for element in iterable: if element: return True return False
doc_21195
Required to enumerate the subkeys of a registry key.
doc_21196
tf.nn.fixed_unigram_candidate_sampler Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.fixed_unigram_candidate_sampler, tf.compat.v1.random.fixed_unigram_candidate_sampler tf.random.fixed_unigram_candidate_sampler( true_classes, num_true, num_sampled, unique, range_max, vocab_fil...
doc_21197
Use this scheme for generating external URLs when not in a request context. Default: 'http'
doc_21198
Indicate whether the date is the last day of the year. Returns Series or DatetimeIndex The same type as the original data with boolean values. Series will have the same name and index. DatetimeIndex will have the same name. See also is_year_start Similar property indicating the start of the year. Exampl...
doc_21199
Parameters mode – one of the strings “standard”, “logo” or “world” Set turtle mode (“standard”, “logo” or “world”) and perform reset. If mode is not given, current mode is returned. Mode “standard” is compatible with old turtle. Mode “logo” is compatible with most Logo turtle graphics. Mode “world” uses user-define...