_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_10300
Whether the interval is closed on the left-side, right-side, both or neither.
doc_10301
Set the colormap for luminance data. Parameters cmapColormap or str or None
doc_10302
Scalar method identical to the corresponding array attribute. Please see ndarray.tofile.
doc_10303
Depending on the value of raise_exception, the method either raises a PermissionDenied exception or redirects the user to the login_url, optionally including the redirect_field_name if it is set.
doc_10304
Return the depth of the decision tree. The depth of a tree is the maximum distance between the root and any leaf. Returns self.tree_.max_depthint The maximum depth of the tree.
doc_10305
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_10306
The internal URL rule that matched the request. This can be useful to inspect which methods are allowed for the URL from a before/after handler (request.url_rule.methods) etc. Though if the request’s method was invalid for the URL rule, the valid list is available in routing_exception.valid_methods instead (an attribut...
doc_10307
Integrate. Return a series instance that is the definite integral of the current series. Parameters mnon-negative int The number of integrations to perform. karray_like Integration constants. The first constant is applied to the first integration, the second to the second, and so on. The list of values must...
doc_10308
The default search path used by exec*p* and spawn*p* if the environment doesn’t have a 'PATH' key. Also available via os.path.
doc_10309
Create a 3D contour plot. Parameters X, Y, Zarray-like, Input data. See contour for acceptable data shapes. extend3dbool, default: False Whether to extend contour in 3D. strideint Step size for extending contour. zdir{'x', 'y', 'z'}, default: 'z' The direction to use. offsetfloat, optional If sp...
doc_10310
Alias for torch.sub().
doc_10311
class sklearn.covariance.EllipticEnvelope(*, store_precision=True, assume_centered=False, support_fraction=None, contamination=0.1, random_state=None) [source] An object for detecting outliers in a Gaussian distributed dataset. Read more in the User Guide. Parameters store_precisionbool, default=True Specify if...
doc_10312
Return probability estimates for the test vector X. Parameters Xarray-like of shape (n_samples, n_features) Returns Carray-like of shape (n_samples, n_classes) Returns the probability of the samples for each class in the model. The columns correspond to the classes in sorted order, as they appear in the a...
doc_10313
tf.compat.v1.train.range_input_producer( limit, num_epochs=None, shuffle=True, seed=None, capacity=32, shared_name=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Da...
doc_10314
Compute confusion matrix to evaluate the accuracy of a classification. By definition a confusion matrix \(C\) is such that \(C_{i, j}\) is equal to the number of observations known to be in group \(i\) and predicted to be in group \(j\). Thus in binary classification, the count of true negatives is \(C_{0,0}\), false...
doc_10315
sklearn.preprocessing.robust_scale(X, *, axis=0, with_centering=True, with_scaling=True, quantile_range=25.0, 75.0, copy=True, unit_variance=False) [source] Standardize a dataset along any axis Center to the median and component wise scale according to the interquartile range. Read more in the User Guide. Parameters...
doc_10316
Unpacks and returns a variable length list of homogeneous items. First, the length of the list is unpacked as an unsigned integer, then each element is unpacked as in unpack_farray() above.
doc_10317
alias of numpy.single
doc_10318
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 scalar or None animated bool clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None d...
doc_10319
Computes the bitwise AND of input and other. The input tensor must be of integral or Boolean types. For bool tensors, it computes the logical AND. Parameters input – the first input tensor other – the second input tensor Keyword Arguments out (Tensor, optional) – the output tensor. Example >>> torch.bitwise_a...
doc_10320
Deprecated since version 3.9: Deprecated in favor of status.
doc_10321
See Migration guide for more details. tf.compat.v1.raw_ops.MapStage tf.raw_ops.MapStage( key, indices, values, dtypes, capacity=0, memory_limit=0, container='', shared_name='', name=None ) Args key A Tensor of type int64. int64 indices A Tensor of type int32. values A list of Tensor obje...
doc_10322
Compute the homogeneity and completeness and V-Measure scores at once. Those metrics are based on normalized conditional entropy measures of the clustering labeling to evaluate given the knowledge of a Ground Truth class labels of the same samples. A clustering result satisfies homogeneity if all of its clusters cont...
doc_10323
Set the artist's clip Bbox. Parameters clipboxBbox
doc_10324
Return the maximum along a given axis. Parameters axis{None, int}, optional Axis along which to operate. By default, axis is None and the flattened input is used. outarray_like, optional Alternative output array in which to place the result. Must be of the same shape and buffer length as the expected output...
doc_10325
email.contentmanager.set_content(msg, <'bytes'>, maintype, subtype, cte="base64", disposition=None, filename=None, cid=None, params=None, headers=None) email.contentmanager.set_content(msg, <'EmailMessage'>, cte=None, disposition=None, filename=None, cid=None, params=None, headers=None) Add headers and payload to m...
doc_10326
tf.train.Checkpoint( root=None, **kwargs ) TensorFlow objects may contain trackable state, such as tf.Variables, tf.keras.optimizers.Optimizer implementations, tf.data.Dataset iterators, tf.keras.Layer implementations, or tf.keras.Model implementations. These are called trackable objects. A Checkpoint object can b...
doc_10327
See Migration guide for more details. tf.compat.v1.keras.layers.ZeroPadding3D tf.keras.layers.ZeroPadding3D( padding=(1, 1, 1), data_format=None, **kwargs ) Examples: input_shape = (1, 1, 2, 2, 3) x = np.arange(np.prod(input_shape)).reshape(input_shape) y = tf.keras.layers.ZeroPadding3D(padding=2)(x) print(y.sh...
doc_10328
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_10329
See Migration guide for more details. tf.compat.v1.feature_column.crossed_column tf.feature_column.crossed_column( keys, hash_bucket_size, hash_key=None ) Crossed features will be hashed according to hash_bucket_size. Conceptually, the transformation can be thought of as: Hash(cartesian product of features) % ha...
doc_10330
Act like Generator, except that for any subpart of the message passed to Generator.flatten(), if the subpart is of main type text, print the decoded payload of the subpart, and if the main type is not text, instead of printing it fill in the string fmt using information from the part and print the resulting filled-in s...
doc_10331
Return the snap setting. See set_snap for details.
doc_10332
Generates a sample_shape shaped sample or sample_shape shaped batch of samples if the distribution parameters are batched. Samples first from base distribution and applies transform() for every transform in the list.
doc_10333
Wraps a stream so that it doesn’t read more than n bytes. If the stream is exhausted and the caller tries to get more bytes from it on_exhausted() is called which by default returns an empty string. The return value of that function is forwarded to the reader function. So if it returns an empty string read() will retur...
doc_10334
Return Pearson product-moment correlation coefficients. Please refer to the documentation for cov for more detail. The relationship between the correlation coefficient matrix, R, and the covariance matrix, C, is \[R_{ij} = \frac{ C_{ij} } { \sqrt{ C_{ii} * C_{jj} } }\] The values of R are between -1 and 1, inclusive...
doc_10335
Plot a 2D field of arrows. Call signature: quiver([X, Y], U, V, [C], **kw) X, Y define the arrow locations, U, V define the arrow directions, and C optionally sets the color. Each arrow is internally represented by a filled polygon with a default edge linewidth of 0. As a result, an arrow is rather a filled area, no...
doc_10336
return smoothscale filter version in use: 'GENERIC', 'MMX', or 'SSE' get_smoothscale_backend() -> String Shows whether or not smoothscale is using MMX or SSE acceleration. If no acceleration is available then "GENERIC" is returned. For a x86 processor the level of acceleration to use is determined at runtime. This fu...
doc_10337
Returns a new tensor with the hyperbolic cosine of the elements of input. outi=cosh⁡(inputi)\text{out}_{i} = \cosh(\text{input}_{i}) Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4) >>> a tensor([ 0.1632, 1.1835, -0.697...
doc_10338
Return the FreeType version get_version() -> (int, int, int) Returns the version of the FreeType library in use by this module. Note that the freetype module depends on the FreeType 2 library. It will not compile with the original FreeType 1.0. Hence, the first element of the tuple will always be "2".
doc_10339
Asserts that the JSON fragments raw and expected_data are equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library. Output in case of error can be customized with the msg argument.
doc_10340
Detect missing values. Return a boolean same-sized object indicating if the values are NA. NA values, such as None or numpy.NaN, gets mapped to True values. Everything else gets mapped to False values. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.us...
doc_10341
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_10342
tf.data.experimental.CsvDataset( filenames, record_defaults, compression_type=None, buffer_size=None, header=False, field_delim=',', use_quote_delim=True, na_value='', select_cols=None, exclude_cols=None ) Args filenames A tf.string tensor containing one or more filenames. record_defaults A ...
doc_10343
Like pbkdf2_bin(), but returns a hex-encoded string. Parameters data (Union[str, bytes]) – the data to derive. salt (Union[str, bytes]) – the salt for the derivation. iterations (int) – the number of iterations. keylen (Optional[int]) – the length of the resulting key. If not provided, the digest size will be us...
doc_10344
tf.experimental.numpy.fliplr( m ) See the NumPy documentation for numpy.fliplr.
doc_10345
Complete the parsing of all previously fed data and return the root message object. It is undefined what happens if feed() is called after this method has been called.
doc_10346
tf.experimental.numpy.full_like( a, fill_value, dtype=None, order='K', subok=True, shape=None ) order, subok and shape arguments mustn't be changed. See the NumPy documentation for numpy.full_like.
doc_10347
Get parameters of this kernel. 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_10348
Method representing the thread's activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
doc_10349
Delete the breakpoints in filename and lineno. If none were set, an error message is returned.
doc_10350
Block until all items in the queue have been received and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer coroutine calls task_done() to indicate that the item was retrieved and all work on it is complete. When the count of unfinished task...
doc_10351
Set the figure's background patch visibility, i.e. whether the figure background will be drawn. Equivalent to Figure.patch.set_visible(). Parameters bbool
doc_10352
Save an array to a text file. Parameters fnamefilename or file handle If the filename ends in .gz, the file is automatically saved in compressed gzip format. loadtxt understands gzipped files transparently. X1D or 2D array_like Data to be saved to a text file. fmtstr or sequence of strs, optional A sing...
doc_10353
Implements Adam algorithm. It has been proposed in Adam: A Method for Stochastic Optimization. The implementation of the L2 penalty follows changes proposed in Decoupled Weight Decay Regularization. Parameters params (iterable) – iterable of parameters to optimize or dicts defining parameter groups lr (float, op...
doc_10354
Get parameters of this kernel. 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_10355
See Migration guide for more details. tf.compat.v1.keras.preprocessing.sequence.pad_sequences tf.keras.preprocessing.sequence.pad_sequences( sequences, maxlen=None, dtype='int32', padding='pre', truncating='pre', value=0.0 ) This function transforms a list (of length num_samples) of sequences (lists of integ...
doc_10356
[Deprecated] Notes Deprecated since version 3.5:
doc_10357
Return the common filling value of two masked arrays, if any. If a.fill_value == b.fill_value, return the fill value, otherwise return None. Parameters a, bMaskedArray The masked arrays for which to compare fill values. Returns fill_valuescalar or None The common fill value, or None. Examples >>> x ...
doc_10358
Conform Series to new index with optional filling logic. Places NA/NaN in locations having no value in the previous index. A new object is produced unless the new index is equivalent to the current one and copy=False. Parameters index:array-like, optional New labels / index to conform to, should be specified us...
doc_10359
Returns sampling frequency.
doc_10360
Path to the file of the module.
doc_10361
See Migration guide for more details. tf.compat.v1.keras.datasets.imdb.load_data tf.keras.datasets.imdb.load_data( path='imdb.npz', num_words=None, skip_top=0, maxlen=None, seed=113, start_char=1, oov_char=2, index_from=3, **kwargs ) This is a dataset of 25,000 movies reviews from IMDB, labeled by sentiment ...
doc_10362
Convert the JSON representation back to the correct type. The tag will already be removed. Parameters value (Any) – Return type Any
doc_10363
Insert a call_module Node into the Graph. A call_module node represents a call to the forward() function of a Module in the Module hierarchy. Parameters module_name (str) – The qualified name of the Module in the Module hierarchy to be called. For example, if the traced Module has a submodule named foo, which has...
doc_10364
Rearranges the elements in the array in such a way that the value of the element in kth position is in the position it would be in a sorted array. All elements smaller than the kth element are moved before this element and all equal or greater are moved behind it. The ordering of the elements in the two partitions is...
doc_10365
If the specified sound cannot be found, do not play the system default sound.
doc_10366
Return the attributes of the font.
doc_10367
Draw a glyph described by info to the reference point (ox, oy).
doc_10368
A context manager that replaces sys.stderr with sys.__stderr__.
doc_10369
alias of flask.templating.Environment
doc_10370
tf.compat.v1.train.batch_join( tensors_list, batch_size, capacity=32, enqueue_many=False, shapes=None, dynamic_pad=False, allow_smaller_final_batch=False, shared_name=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Queue-based input pip...
doc_10371
This is an instance of Repr which is used to provide the repr() function described below. Changing the attributes of this object will affect the size limits used by repr() and the Python debugger.
doc_10372
Add a centered suptitle to the figure. Parameters tstr The suptitle text. xfloat, default: 0.5 The x location of the text in figure coordinates. yfloat, default: 0.98 The y location of the text in figure coordinates. horizontalalignment, ha{'center', 'left', 'right'}, default: center The horizontal ...
doc_10373
Local top-hat of an image. This filter computes the morphological opening of the image and then subtracts the result from the original image. Parameters image2-D array (integer or float) Input image. selem2-D array (integer or float) The neighborhood expressed as a 2-D array of 1’s and 0’s. out2-D array (...
doc_10374
A Chebyshev series class. The Chebyshev class provides the standard Python numerical methods ‘+’, ‘-’, ‘*’, ‘//’, ‘%’, ‘divmod’, ‘**’, and ‘()’ as well as the methods listed below. Parameters coefarray_like Chebyshev coefficients in order of increasing degree, i.e., (1, 2, 3) gives 1*T_0(x) + 2*T_1(x) + 3*T_2(x...
doc_10375
This method is not defined in BaseHandler, but subclasses should define it if they want to handle URLs with the given protocol. This method, if defined, will be called by the parent OpenerDirector. Return values should be the same as for default_open().
doc_10376
This function imports and returns the named module. Unlike a normal import, this function raises unittest.SkipTest if the module cannot be imported. Module and package deprecation messages are suppressed during this import if deprecated is True. If a module is required on a platform but optional for others, set require...
doc_10377
Classmethod that converts a float to a decimal number, exactly. Note Decimal.from_float(0.1) is not the same as Decimal(‘0.1’). Since 0.1 is not exactly representable in binary floating point, the value is stored as the nearest representable value which is 0x1.999999999999ap-4. That equivalent value in decimal is 0.100...
doc_10378
Return whether face is colored.
doc_10379
Close the ndbm database.
doc_10380
Decrements interval timer only when the process is executing, and delivers SIGVTALRM upon expiration.
doc_10381
tf.gather( params, indices, validate_indices=None, axis=None, batch_dims=0, name=None ) Gather slices from params axis axis according to indices. indices must be an integer tensor of any dimension (usually 0-D or 1-D). For 0-D (scalar) indices: $$\begin{align*} output[p_0, ..., p_{axis-1}, && &&& p_{axis + 1}, .....
doc_10382
class ast.Sub class ast.Mult class ast.Div class ast.FloorDiv class ast.Mod class ast.Pow class ast.LShift class ast.RShift class ast.BitOr class ast.BitXor class ast.BitAnd class ast.MatMult Binary operator tokens.
doc_10383
Invalidates the cache for a cached_property: >>> class Test(object): ... @cached_property ... def magic_number(self): ... print("recalculating...") ... return 42 ... >>> var = Test() >>> var.magic_number recalculating... 42 >>> var.magic_number 42 >>> invalidate_cached_property(var, "magic_numbe...
doc_10384
Draw samples from the Dirichlet distribution. Draw size samples of dimension k from a Dirichlet distribution. A Dirichlet-distributed random variable can be seen as a multivariate generalization of a Beta distribution. The Dirichlet distribution is a conjugate prior of a multinomial distribution in Bayesian inference...
doc_10385
Return the number of ways to choose k items from n items without repetition and without order. Evaluates to n! / (k! * (n - k)!) when k <= n and evaluates to zero when k > n. Also called the binomial coefficient because it is equivalent to the coefficient of k-th term in polynomial expansion of the expression (1 + x) *...
doc_10386
class sklearn.naive_bayes.CategoricalNB(*, alpha=1.0, fit_prior=True, class_prior=None, min_categories=None) [source] Naive Bayes classifier for categorical features The categorical Naive Bayes classifier is suitable for classification with discrete features that are categorically distributed. The categories of each ...
doc_10387
Change the current working directory to path. This function can support specifying a file descriptor. The descriptor must refer to an opened directory, not an open file. This function can raise OSError and subclasses such as FileNotFoundError, PermissionError, and NotADirectoryError. Raises an auditing event os.chdir w...
doc_10388
Try to choose the view limits intelligently.
doc_10389
Return whether this axes supports the pan/zoom button functionality. 3D axes objects do not use the pan/zoom button.
doc_10390
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 only...
doc_10391
Subdirectories in both a and b.
doc_10392
items becomes the new selection. Changed in version 3.6: items can be passed as separate arguments, not just as a single tuple.
doc_10393
Return the label used for this artist in the legend.
doc_10394
Extend the search path for the modules which comprise a package. Intended use is to place the following code in a package’s __init__.py: from pkgutil import extend_path __path__ = extend_path(__path__, __name__) This will add to the package’s __path__ all subdirectories of directories on sys.path named after the packa...
doc_10395
import numba as nb from numpy.random import PCG64 from timeit import timeit bit_gen = PCG64() next_d = bit_gen.cffi.next_double state_addr = bit_gen.cffi.state_address def normals(n, state): out = np.empty(n) for i in range((n + 1) // 2): x1 = 2.0 * next_d(state) - 1.0 x2 = 2.0 * next_d(state...
doc_10396
Configures a newly created user. This method is called immediately after a new user is created, and can be used to perform custom setup actions, such as setting the user’s groups based on attributes in an LDAP directory. Returns the user object. request is an HttpRequest and may be None if it wasn’t provided to authent...
doc_10397
When st represents an 'eval' form, this function returns True, otherwise it returns False. This is useful, since code objects normally cannot be queried for this information using existing built-in functions. Note that the code objects created by compilest() cannot be queried like this either, and are identical to thos...
doc_10398
Computes the (weighted) graph of Neighbors for points in X Neighborhoods are restricted the points at a distance lower than radius. Read more in the User Guide. Parameters Xarray-like of shape (n_samples, n_features) or BallTree Sample data, in the form of a numpy array or a precomputed BallTree. radiusfloat ...
doc_10399
See Migration guide for more details. tf.compat.v1.PaddingFIFOQueue, tf.compat.v1.io.PaddingFIFOQueue, tf.compat.v1.queue.PaddingFIFOQueue tf.queue.PaddingFIFOQueue( capacity, dtypes, shapes, names=None, shared_name=None, name='padding_fifo_queue' ) A PaddingFIFOQueue may contain components with dynamic shap...