_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_11400
Alias for get_facecolor.
doc_11401
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_11402
Return the aspect ratio of the data itself.
doc_11403
An abstract class that provides methods to execute calls asynchronously. It should not be used directly, but through its concrete subclasses. submit(fn, /, *args, **kwargs) Schedules the callable, fn, to be executed as fn(*args **kwargs) and returns a Future object representing the execution of the callable. with T...
doc_11404
Return the shape of an array. Parameters aarray_like Input array. Returns shapetuple of ints The elements of the shape tuple give the lengths of the corresponding array dimensions. See also len ndarray.shape Equivalent array method. Examples >>> np.shape(np.eye(3)) (3, 3) >>> np.shape([[1, 2]]...
doc_11405
Return the name of the module named by the file path, without including the names of enclosing packages. The file extension is checked against all of the entries in importlib.machinery.all_suffixes(). If it matches, the final path component is returned with the extension removed. Otherwise, None is returned. Note that ...
doc_11406
tf.compat.v1.shape( input, name=None, out_type=tf.dtypes.int32 ) This operation returns a 1-D integer tensor representing the shape of input. For example: t = tf.constant([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]) tf.shape(t) # [2, 2, 3] Args input A Tensor or SparseTensor. name A name for ...
doc_11407
Remove pandas formatters and converters. Removes the custom converters added by register(). This attempts to set the state of the registry back to the state before pandas registered its own units. Converters for pandas’ own types like Timestamp and Period are removed completely. Converters for types pandas overwrites...
doc_11408
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_11409
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g...
doc_11410
tf.experimental.numpy.int16( *args, **kwargs ) Character code: 'h'. Canonical name: np.short. Alias on this platform: np.int16: 16-bit signed integer (-32768 to 32767). Methods all all() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemen...
doc_11411
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_11412
Extended header setting. This method is similar to __setitem__() except that additional header parameters can be provided as keyword arguments. _name is the header field to add and _value is the primary value for the header. For each item in the keyword argument dictionary _params, the key is taken as the parameter nam...
doc_11413
This is the same as the DefaultHandler(), but doesn’t inhibit expansion of internal entities. The entity reference will not be passed to the default handler.
doc_11414
Bases: matplotlib.image._ImageBase An image attached to an Axes. Parameters axAxes The axes the image will belong to. cmapstr or Colormap, default: rcParams["image.cmap"] (default: 'viridis') The Colormap instance or registered colormap name used to map scalar data to colors. normNormalize Maps luminanc...
doc_11415
For each element, return the lowest index in the string where substring sub is found. See also char.find
doc_11416
Return whether plots are updated after every plotting command. The interactive mode is mainly useful if you build plots from the command line and want to see the effect of each command while you are building the figure. In interactive mode: newly created figures will be shown immediately; figures will automatically ...
doc_11417
When raise_exception is True, this method can be used to control the error message passed to the error handler for display to the user. Returns the permission_denied_message attribute by default.
doc_11418
Convert Decimals to floats. The unit and axis arguments are not used. Parameters valuedecimal.Decimal or iterable Decimal or list of Decimal need to be converted
doc_11419
Fit Naive Bayes classifier according to X, y Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training vectors, where n_samples is the number of samples and n_features is the number of features. yarray-like of shape (n_samples,) Target values. sample_weightarray-like of shape (n_sa...
doc_11420
tf.experimental.numpy.logaddexp( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.logaddexp.
doc_11421
Return a transformed point. This function is only kept for backcompatibility; the more general transform method is capable of transforming both a list of points and a single point. The point is given as a sequence of length input_dims. The transformed point is returned as a sequence of length output_dims.
doc_11422
Bases: matplotlib.patches.BoxStyle._Base A box with rounded edges. Parameters padfloat, default: 0.3 The amount of padding around the original box. rounding_sizefloat, default: pad/2 Rounding of edges. __call__(x0, y0, width, height, mutation_size, mutation_aspect=<deprecated parameter>)[source] Giv...
doc_11423
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_11424
Label a bar plot. Adds labels to bars in the given BarContainer. You may need to adjust the axis limits to fit the labels. Parameters containerBarContainer Container with all the bars and optionally errorbars, likely returned from bar or barh. labelsarray-like, optional A list of label texts, that should be...
doc_11425
Parse address – which should be the value of some address-containing field such as To or Cc – into its constituent realname and email address parts. Returns a tuple of that information, unless the parse fails, in which case a 2-tuple of ('', '') is returned.
doc_11426
The inverse of parseaddr(), this takes a 2-tuple of the form (realname, email_address) and returns the string value suitable for a To or Cc header. If the first element of pair is false, then the second element is returned unmodified. Optional charset is the character set that will be used in the RFC 2047 encoding of t...
doc_11427
Fills the {3, 4, 5}-dimensional input Tensor with the Dirac delta function. Preserves the identity of the inputs in Convolutional layers, where as many input channels are preserved as possible. In case of groups>1, each group of channels preserves identity Parameters tensor – a {3, 4, 5}-dimensional torch.Tensor ...
doc_11428
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_11429
RGB to YUV color space conversion. Parameters rgb(…, 3) array_like The image in RGB format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in YUV format. Same dimensions as input. Raises ValueError If rgb is not at least 2-D with shape (…, 3). Notes Y is between 0 and 1....
doc_11430
Return offset of the container.
doc_11431
class sklearn.gaussian_process.kernels.Kernel [source] Base class for all kernels. New in version 0.18. Attributes bounds Returns the log-transformed bounds on the theta. hyperparameters Returns a list of all hyperparameter specifications. n_dims Returns the number of non-fixed hyperparameters of the ...
doc_11432
Returns the pickle of the array as a string. pickle.loads will convert the string back to an array. Parameters None
doc_11433
type_comment is an optional string with the type annotation as a comment.
doc_11434
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedMatMulWithBiasAndReluAndRequantize tf.raw_ops.QuantizedMatMulWithBiasAndReluAndRequantize( a, b, bias, min_a, max_a, min_b, max_b, min_freezed_output, max_freezed_output, Toutput=tf.dtypes.quint8, transpose_a=False, transpose_b=False, inp...
doc_11435
os.spawnle(mode, path, ..., env) os.spawnlp(mode, file, ...) os.spawnlpe(mode, file, ..., env) os.spawnv(mode, path, args) os.spawnve(mode, path, args, env) os.spawnvp(mode, file, args) os.spawnvpe(mode, file, args, env) Execute the program path in a new process. (Note that the subprocess module provides ...
doc_11436
The internal block size of the hash algorithm in bytes. New in version 3.4.
doc_11437
See Migration guide for more details. tf.compat.v1.raw_ops.InitializeTableV2 tf.raw_ops.InitializeTableV2( table_handle, keys, values, name=None ) Args table_handle A Tensor of type resource. Handle to a table which will be initialized. keys A Tensor. Keys of type Tkey. values A Tensor. Valu...
doc_11438
URL name: password_change Allows a user to change their password. Attributes: success_url The URL to redirect to after a successful password change. Defaults to 'password_change_done'. form_class A custom “change password” form which must accept a user keyword argument. The form is responsible for actually ch...
doc_11439
Altered an exponent to fit representation constraints. Typically, clamping occurs when an exponent falls outside the context’s Emin and Emax limits. If possible, the exponent is reduced to fit by adding zeros to the coefficient.
doc_11440
Returns a dictionary containing a subset of configuration options that match the specified namespace/prefix. Example usage: app.config['IMAGE_STORE_TYPE'] = 'fs' app.config['IMAGE_STORE_PATH'] = '/var/app/images' app.config['IMAGE_STORE_BASE_URL'] = 'http://img.website.com' image_store_config = app.config.get_namespace...
doc_11441
Compute Normalized Discounted Cumulative Gain. Sum the true scores ranked in the order induced by the predicted scores, after applying a logarithmic discount. Then divide by the best possible score (Ideal DCG, obtained for a perfect ranking) to obtain a score between 0 and 1. This ranking metric yields a high value i...
doc_11442
Set the pick radius used for containment tests. Parameters prfloat Pick radius, in points.
doc_11443
This method always returns only one value associated with form field name. The method returns only the first value in case that more values were posted under such name. Please note that the order in which the values are received may vary from browser to browser and should not be counted on. 1 If no such form field or v...
doc_11444
Applies the element-wise function Hardsigmoid(x)={0if x≤−3,1if x≥+3,x/6+1/2otherwise\text{Hardsigmoid}(x) = \begin{cases} 0 & \text{if~} x \le -3, \\ 1 & \text{if~} x \ge +3, \\ x / 6 + 1 / 2 & \text{otherwise} \end{cases} Parameters inplace – If set to True, will do this operation in-place. Default: False See...
doc_11445
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None
doc_11446
(default: None) If not None, then the output will contain at most max_lines lines, with placeholder appearing at the end of the output. New in version 3.4.
doc_11447
Behaves the same way as process_lhs(), for the right-hand side.
doc_11448
Removes the specified model objects from the related object set: >>> b = Blog.objects.get(id=1) >>> e = Entry.objects.get(id=234) >>> b.entry_set.remove(e) # Disassociates Entry e from Blog b. Similar to add(), e.save() is called in the example above to perform the update. Using remove() with a many-to-many relationsh...
doc_11449
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_11450
sklearn.metrics.adjusted_rand_score(labels_true, labels_pred) [source] Rand index adjusted for chance. The Rand Index computes a similarity measure between two clusterings by considering all pairs of samples and counting pairs that are assigned in the same or different clusters in the predicted and true clusterings. ...
doc_11451
tf.keras.layers.GlobalAvgPool1D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.GlobalAveragePooling1D, tf.compat.v1.keras.layers.GlobalAvgPool1D tf.keras.layers.GlobalAveragePooling1D( data_format='channels_last', **kwargs ) Examples: input_shape = (2, 3, 4) x = tf....
doc_11452
Constructs a form, checks the form for validity, and handles it accordingly.
doc_11453
Perform one epoch of stochastic gradient descent on given samples. Internally, this method uses max_iter = 1. Therefore, it is not guaranteed that a minimum of the cost function is reached after calling it once. Matters such as objective convergence and early stopping should be handled by the user. Parameters X{a...
doc_11454
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_11455
See Migration guide for more details. tf.compat.v1.compat.as_str tf.compat.as_str( bytes_or_text, encoding='utf-8' )
doc_11456
Feature selector that removes all low-variance features. This feature selection algorithm looks only at the features (X), not the desired outputs (y), and can thus be used for unsupervised learning. Read more in the User Guide. Parameters thresholdfloat, default=0 Features with a training-set variance lower tha...
doc_11457
Returns a list of all hyperparameter specifications.
doc_11458
See Migration guide for more details. tf.compat.v1.raw_ops.BesselJ1 tf.raw_ops.BesselJ1( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_11459
Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ImageViewer. For example: viewer += Plugin(...) Also note that attach automatically calls the filter function so that the image matches the filtered value specified by attached widgets.
doc_11460
Convert DataFrame from DatetimeIndex to PeriodIndex. Convert DataFrame from DatetimeIndex to PeriodIndex with desired frequency (inferred from index if not passed). Parameters freq:str, default Frequency of the PeriodIndex. axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The axis to convert (the index by def...
doc_11461
Predict intersection of the estimated line model with a hyperplane orthogonal to a given axis. Parameters x(n, 1) array Coordinates along an axis. axisint Axis orthogonal to the hyperplane intersecting the line. params(2, ) array, optional Optional custom parameter set in the form (origin, direction). ...
doc_11462
Read at most n bytes from file descriptor fd. Return a bytestring containing the bytes read. If the end of the file referred to by fd has been reached, an empty bytes object is returned. Note This function is intended for low-level I/O and must be applied to a file descriptor as returned by os.open() or pipe(). To rea...
doc_11463
Attributes collective_graph_key int64 collective_graph_key run_handler_pool_options RunHandlerPoolOptions run_handler_pool_options use_run_handler_pool bool use_run_handler_pool Child Classes class RunHandlerPoolOptions
doc_11464
See Migration guide for more details. tf.compat.v1.raw_ops.ConsumeMutexLock tf.raw_ops.ConsumeMutexLock( mutex_lock, name=None ) This op exists to consume a tensor created by MutexLock (other than direct control dependencies). It should be the only that consumes the tensor, and will raise an error if it is not. ...
doc_11465
Generates ellipsoid with semimajor axes aligned with grid dimensions on grid with specified spacing. Parameters afloat Length of semimajor axis aligned with x-axis. bfloat Length of semimajor axis aligned with y-axis. cfloat Length of semimajor axis aligned with z-axis. spacingtuple of floats, length ...
doc_11466
Call self as a function.
doc_11467
Buffer size in bytes for sending a file-like message body. New in version 3.7.
doc_11468
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_11469
Don’t allow setting cookies whose path doesn’t path-match request URI.
doc_11470
See Migration guide for more details. tf.compat.v1.keras.layers.GaussianDropout tf.keras.layers.GaussianDropout( rate, **kwargs ) As it is a regularization layer, it is only active at training time. Arguments rate Float, drop probability (as with Dropout). The multiplicative noise will have standard dev...
doc_11471
Returns whether the user is allowed to authenticate. This method returns False for users with is_active=False. Custom user models that don’t have an is_active field are allowed.
doc_11472
The form class to instantiate.
doc_11473
class sklearn.linear_model.Lasso(alpha=1.0, *, fit_intercept=True, normalize=False, precompute=False, copy_X=True, max_iter=1000, tol=0.0001, warm_start=False, positive=False, random_state=None, selection='cyclic') [source] Linear Model trained with L1 prior as regularizer (aka the Lasso) The optimization objective f...
doc_11474
Return the shape of an array. Parameters aarray_like Input array. Returns shapetuple of ints The elements of the shape tuple give the lengths of the corresponding array dimensions. See also len ndarray.shape Equivalent array method. Examples >>> np.shape(np.eye(3)) (3, 3) >>> np.shape([[1, 2]]...
doc_11475
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_11476
tf.experimental.numpy.ndim( a )
doc_11477
Fit the Kernel Density model on the data. Parameters Xarray-like of shape (n_samples, n_features) List of n_features-dimensional data points. Each row corresponds to a single data point. yNone Ignored. This parameter exists only for compatibility with Pipeline. sample_weightarray-like of shape (n_samples,...
doc_11478
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_11479
Return the snap setting. See set_snap for details.
doc_11480
Fit the nearest neighbors estimator from the training dataset. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples, n_samples) if metric=’precomputed’ Training data. yIgnored Not used, present for API consistency by convention. Returns selfNearestNeighbors The fitt...
doc_11481
Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
doc_11482
See Migration guide for more details. tf.compat.v1.raw_ops.SparseSoftmax tf.raw_ops.SparseSoftmax( sp_indices, sp_values, sp_shape, name=None ) The inputs represent an N-D SparseTensor with logical shape [..., B, C] (where N >= 2), and with indices sorted in the canonical lexicographic order. This op is equivale...
doc_11483
Query or modify vertical position of the treeview.
doc_11484
Fit the model according to the given training data. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training vector, where n_samples is the number of samples and n_features is the number of features. yarray-like of shape (n_samples,) Target values. **fit_paramsdict Parameters pa...
doc_11485
Close the dumbdbm database.
doc_11486
bytearray.decode(encoding="utf-8", errors="strict") Return a string decoded from the given bytes. Default encoding is 'utf-8'. errors may be given to set a different error handling scheme. The default for errors is 'strict', meaning that encoding errors raise a UnicodeError. Other possible values are 'ignore', 'repla...
doc_11487
Return whether the artist uses clipping.
doc_11488
See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.CenterCrop tf.keras.layers.experimental.preprocessing.CenterCrop( height, width, name=None, **kwargs ) Input shape: 4D tensor with shape: (samples, height, width, channels), data_format='channels_last'. Output shape: 4D te...
doc_11489
Return True for non-terminal token values.
doc_11490
Write the header for an array using the 2.0 format. The 2.0 format allows storing very large structured arrays. New in version 1.9.0. Parameters fpfilelike object ddict This has the appropriate entries for writing its string representation to the header of the file.
doc_11491
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None
doc_11492
See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingADAMParameters tf.raw_ops.LoadTPUEmbeddingADAMParameters( parameters, momenta, velocities, num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that loads optimization parameters into HBM for embedding. Must ...
doc_11493
Strip library names and some prefixes from function strings. When comparing two different sets of instruction counts, on stumbling block can be path prefixes. Callgrind includes the full filepath when reporting a function (as it should). However, this can cause issues when diffing profiles. If a key component such as...
doc_11494
Asynchronous version of socket.getnameinfo().
doc_11495
See torch.bmm()
doc_11496
Return the values of the matrix as an (a, b, c, d, e, f) tuple.
doc_11497
Find peaks in corner measure response image. This differs from skimage.feature.peak_local_max in that it suppresses multiple connected peaks with the same accumulator value. Parameters imagendarray Input image. min_distanceint, optional The minimal allowed distance separating peaks. ** See skimage.featu...
doc_11498
Set the dash sequence. The dash sequence is a sequence of floats of even length describing the length of dashes and spaces in points. For example, (5, 2, 1, 2) describes a sequence of 5 point and 1 point dashes separated by 2 point spaces. Parameters seqsequence of floats (on/off ink in points) or (None, None) ...
doc_11499
Return whether the artist is to be rasterized.