_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_7400
On close disconnect all artists and events from ImageViewer. Note that artists must be appended to self.artists.
doc_7401
Repr.maxlist Repr.maxtuple Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray Limits on the number of entries represented for the named object type. The default is 4 for maxdict, 5 for maxarray, and 6 for the others.
doc_7402
See Migration guide for more details. tf.compat.v1.raw_ops.Recv tf.raw_ops.Recv( tensor_type, tensor_name, send_device, send_device_incarnation, recv_device, client_terminated=False, name=None ) Args tensor_type A tf.DType. tensor_name A string. The name of the tensor to receive. send_devi...
doc_7403
The exception raised when Expat reports an error. See section ExpatError Exceptions for more information on interpreting Expat errors.
doc_7404
Return whether the artist uses clipping.
doc_7405
Set the label position (top or bottom) Parameters position{'top', 'bottom'} Examples using matplotlib.axis.Axis.set_label_position Title positioning
doc_7406
3D fluorescence microscopy image of cells. The returned data is a 3D multichannel array with dimensions provided in (z, c, y, x) order. Each voxel has a size of (0.29 0.26 0.26) micrometer. Channel 0 contains cell membranes, channel 1 contains nuclei. Returns cells3d: (60, 2, 256, 256) uint16 ndarray The volumetr...
doc_7407
template_name: 'django/forms/widgets/file.html' Renders as: <input type="file" ...>
doc_7408
The hours of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="h") ... ) >>> datetime_series 0 2000-01-01 00:00:00 1 2000-01-01 01:00:00 2 2000-01-01 02:00:00 dtype: datetime64[ns] >>> datetime_series.dt.hour 0 0 1 1 2 2 dtype: int64
doc_7409
Prepares a copy of the model for quantization calibration or quantization-aware training and converts it to quantized version. Quantization configuration should be assigned preemptively to individual submodules in .qconfig attribute. Parameters model – input model to be modified in-place mapping – dictionary tha...
doc_7410
Element wise squaring of array-likes and sparse matrices. Parameters X{array-like, ndarray, sparse matrix} copybool, default=True Whether to create a copy of X and operate on it or to perform inplace computation (default behaviour). Returns X ** 2element wise square
doc_7411
Create a new AxesLocator for the specified cell. Parameters nx, nx1int Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (but excluding nx1-th column) is specified.
doc_7412
Set the font stretch (horizontal condensation or expansion). Parameters stretch{a numeric value in range 0-1000, 'ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded', 'ultra-expanded'} See also font_manager.FontProperties.set_stretch
doc_7413
An object that wraps OS processes created by the create_subprocess_exec() and create_subprocess_shell() functions. This class is designed to have a similar API to the subprocess.Popen class, but there are some notable differences: unlike Popen, Process instances do not have an equivalent to the poll() method; the comm...
doc_7414
Return True if the file system for directory is case-insensitive.
doc_7415
Recursively yield all descendant nodes in the tree starting at node (including node itself), in no specified order. This is useful if you only want to modify nodes in place and don’t care about the context.
doc_7416
Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay). The Laplace distribution is similar to the Gaussian/normal distribution, but is sharper at the peak and has fatter tails. It represents the difference between two independent, identically distributed ...
doc_7417
Remove “small” “trailing” coefficients from a polynomial. “Small” means “small in absolute value” and is controlled by the parameter tol; “trailing” means highest order coefficient(s), e.g., in [0, 1, 1, 0, 0] (which represents 0 + x + x**2 + 0*x**3 + 0*x**4) both the 3-rd and 4-th order coefficients would be “trimme...
doc_7418
Return a short string version of the tick value. Defaults to the position-independent long value.
doc_7419
Add a Gouraud triangle shading. Parameters pointsnp.ndarray Triangle vertices, shape (n, 3, 2) where n = number of triangles, 3 = vertices, 2 = x, y. colorsnp.ndarray Vertex colors, shape (n, 3, 1) or (n, 3, 4) as with points, but last dimension is either (gray,) or (r, g, b, alpha). Returns Name, Refe...
doc_7420
Many-to-many field to Permission: group.permissions.set([permission_list]) group.permissions.add(permission, permission, ...) group.permissions.remove(permission, permission, ...) group.permissions.clear()
doc_7421
'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_7422
See Migration guide for more details. tf.compat.v1.raw_ops.MatMul tf.raw_ops.MatMul( a, b, transpose_a=False, transpose_b=False, name=None ) The inputs must be two-dimensional matrices and the inner dimension of "a" (after being transposed if transpose_a is true) must match the outer dimension of "b" (after bein...
doc_7423
This bytearray class method returns bytearray object, decoding the given string object. The string must contain two hexadecimal digits per byte, with ASCII whitespace being ignored. >>> bytearray.fromhex('2Ef0 F1f2 ') bytearray(b'.\xf0\xf1\xf2') Changed in version 3.7: bytearray.fromhex() now skips all ASCII whitesp...
doc_7424
Return the keymap associated with the specified tool. Parameters namestr Name of the Tool. Returns list of str List of keys associated with the tool.
doc_7425
See Migration guide for more details. tf.compat.v1.raw_ops.Placeholder tf.raw_ops.Placeholder( dtype, shape=None, name=None ) N.B. This operation will fail with an error if it is executed. It is intended as a way to represent a value that will always be fed, and to provide attrs that enable the fed value to be c...
doc_7426
A hook for customizing the deletion process of the delete_view() and the “delete selected” action. The objs argument is a homogeneous iterable of objects (a QuerySet or a list of model instances) to be deleted, and request is the HttpRequest. This method must return a 4-tuple of (deleted_objects, model_count, perms_nee...
doc_7427
Compute the qth quantile of the data along the specified axis, while ignoring nan values. Returns the qth quantile(s) of the array elements. New in version 1.15.0. Parameters aarray_like Input array or object that can be converted to an array, containing nan values to be ignored qarray_like of float Quant...
doc_7428
Alias for set_antialiased.
doc_7429
Return the Transform instance used by this artist.
doc_7430
tf.metrics Classes class AUC: Computes the approximate AUC (Area under the curve) via a Riemann sum. class Accuracy: Calculates how often predictions equal labels. class BinaryAccuracy: Calculates how often predictions match binary labels. class BinaryCrossentropy: Computes the crossentropy metric between the labels a...
doc_7431
Alias for set_antialiased.
doc_7432
See Migration guide for more details. tf.compat.v1.raw_ops.SoftplusGrad tf.raw_ops.SoftplusGrad( gradients, features, name=None ) Args gradients A Tensor. Must be one of the following types: half, bfloat16, float32, float64. The backpropagated gradients to the corresponding softplus operation. featu...
doc_7433
Shift the bits of an integer to the left. Bits are shifted to the left by appending x2 0s at the right of x1. Since the internal representation of numbers is in binary format, this operation is equivalent to multiplying x1 by 2**x2. Parameters x1array_like of integer type Input values. x2array_like of integer...
doc_7434
Return library info for the given package. Parameters pkgnamestr Name of the package (should match the name of the .ini file, without the extension, e.g. foo for the file foo.ini). dirssequence, optional If given, should be a sequence of additional directories where to look for npy-pkg-config files. Those d...
doc_7435
Return a list of 2-tuples containing all variables and their values in the context object.
doc_7436
Checks for an ASCII alphanumeric character; it is equivalent to isalpha(c) or isdigit(c).
doc_7437
Return the Axes bounding box in display space; args and kwargs are empty. This bounding box does not include the spines, ticks, ticklables, or other labels. For a bounding box including these elements use get_tightbbox. See also matplotlib.axes.Axes.get_tightbbox matplotlib.axis.Axis.get_tightbbox matplotlib.spines...
doc_7438
Compute the L1 distances between the vectors in X and Y. Read more in the User Guide. Parameters Xarray-like of shape (n_samples, n_features) Yarray-like of shape (n_samples, n_features) Returns distancesndarray of shape (n_samples,)
doc_7439
Set a.flat[n] = values[n] for all n in indices. Refer to numpy.put for full documentation. See also numpy.put equivalent function
doc_7440
Record that the package named pkg_name can be found in the specified path.
doc_7441
Draw samples from a standard Student’s t distribution with df degrees of freedom. A special case of the hyperbolic distribution. As df gets large, the result resembles that of the standard normal distribution (standard_normal). Parameters dffloat or array_like of floats Degrees of freedom, must be > 0. sizein...
doc_7442
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_7443
Returns the quantization scheme of a given QTensor.
doc_7444
'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_7445
tf.experimental.numpy.asarray( a, dtype=None ) Unsupported arguments: order. See the NumPy documentation for numpy.asarray.
doc_7446
class sklearn.metrics.ConfusionMatrixDisplay(confusion_matrix, *, display_labels=None) [source] Confusion Matrix visualization. It is recommend to use plot_confusion_matrix to create a ConfusionMatrixDisplay. All parameters are stored as attributes. Read more in the User Guide. Parameters confusion_matrixndarray ...
doc_7447
Interface for associating a SAX event with a document location. A locator object will return valid results only during calls to DocumentHandler methods; at any other time, the results are unpredictable. If information is not available, methods may return None.
doc_7448
Like gmtime() but converts to local time. If secs is not provided or None, the current time as returned by time() is used. The dst flag is set to 1 when DST applies to the given time.
doc_7449
tf.compat.v1.logging.log_if( level, msg, condition, *args )
doc_7450
Alias for get_facecolor.
doc_7451
The column labels of the DataFrame.
doc_7452
turtle.seth(to_angle) Parameters to_angle – a number (integer or float) Set the orientation of the turtle to to_angle. Here are some common directions in degrees: standard mode logo mode 0 - east 0 - north 90 - north 90 - east 180 - west 180 - south 270 - south 270 - west >>> turtle.setheading(90) >...
doc_7453
Called when this tool gets used. This method is called by ToolManager.trigger_tool. Parameters eventEvent The canvas event that caused this tool to be called. senderobject Object that requested the tool to be triggered. dataobject Extra data.
doc_7454
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_7455
See Migration guide for more details. tf.compat.v1.raw_ops.CTCLossV2 tf.raw_ops.CTCLossV2( inputs, labels_indices, labels_values, sequence_length, preprocess_collapse_repeated=False, ctc_merge_repeated=True, ignore_longer_outputs_than_inputs=False, name=None ) the gradient. This class performs the softma...
doc_7456
See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_spaceseplist tf.compat.v1.flags.DEFINE_spaceseplist( name, default, help, comma_compat=False, flag_values=_flagvalues.FLAGS, **args ) Any whitespace can be used as a separator. Args name str, the flag name. default list|str|None, ...
doc_7457
tf.keras.layers.experimental.preprocessing.Normalization( axis=-1, dtype=None, mean=None, variance=None, **kwargs ) This layer will coerce its inputs into a distribution centered around 0 with standard deviation 1. It accomplishes this by precomputing the mean and variance of the data, and calling (input-mean)/sqr...
doc_7458
A tuple giving access to the path’s various components: >>> p = PurePath('/usr/bin/python3') >>> p.parts ('/', 'usr', 'bin', 'python3') >>> p = PureWindowsPath('c:/Program Files/PSF') >>> p.parts ('c:\\', 'Program Files', 'PSF') (note how the drive and local root are regrouped in a single part)
doc_7459
Creates a criterion that measures the loss given input tensors x1x_1 , x2x_2 and a Tensor label yy with values 1 or -1. This is used for measuring whether two inputs are similar or dissimilar, using the cosine distance, and is typically used for learning nonlinear embeddings or semi-supervised learning. The loss fu...
doc_7460
Total size of memory blocks in bytes (int).
doc_7461
Alias for set_facecolor.
doc_7462
Break internal references within the DOM so that it will be garbage collected on versions of Python without cyclic GC. Even when cyclic GC is available, using this can make large amounts of memory available sooner, so calling this on DOM objects as soon as they are no longer needed is good practice. This only needs to ...
doc_7463
Return a string representing the path to which the symbolic link points. The result may be either an absolute or relative pathname; if it is relative, it may be converted to an absolute pathname using os.path.join(os.path.dirname(path), result). If the path is a string object (directly or indirectly through a PathLike ...
doc_7464
Django view for the model instance editing page. See note below.
doc_7465
Return self&=value.
doc_7466
Construct Python bytes containing the raw data bytes in the array. Constructs Python bytes showing a copy of the raw contents of data memory. The bytes object is produced in C-order by default. This behavior is controlled by the order parameter. New in version 1.9.0. Parameters order{‘C’, ‘F’, ‘A’}, optional ...
doc_7467
Raised when a mapping (dictionary) key is not found in the set of existing keys.
doc_7468
Wake up all threads waiting on this condition. This method acts like notify(), but wakes up all waiting threads instead of one. If the calling thread has not acquired the lock when this method is called, a RuntimeError is raised.
doc_7469
Alias for field number 4
doc_7470
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_7471
See Migration guide for more details. tf.compat.v1.random.poisson tf.compat.v1.random_poisson( lam, shape, dtype=tf.dtypes.float32, seed=None, name=None ) lam is the rate parameter describing the distribution(s). Example: samples = tf.random.poisson([0.5, 1.5], [10]) # samples has shape [10, 2], where each slice...
doc_7472
See Migration guide for more details. tf.compat.v1.app.flags.BooleanFlag tf.compat.v1.flags.BooleanFlag( name, default, help, short_name=None, **args ) Boolean flags do not take any arguments, and their value is either True (1) or False (0). The false value is specified on the command line by prepending the word...
doc_7473
The width of the source in pixels (X-axis). >>> GDALRaster({'width': 10, 'height': 20, 'srid': 4326}).width 10
doc_7474
Reset the Styler, removing any previously applied styles. Returns None.
doc_7475
Alias for get_linewidth.
doc_7476
The serialization function used when json is passed.
doc_7477
Sets the module in evaluation mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc. This is equivalent with self.train(False). Returns self Return type Module
doc_7478
If buffer_text is enabled, the number of bytes stored in the buffer. These bytes represent UTF-8 encoded text. This attribute has no meaningful interpretation when buffer_text is false.
doc_7479
Set the instance’s debugging level. This controls the amount of debugging output printed. The default, 0, produces no debugging output. A value of 1 produces a moderate amount of debugging output, generally a single line per request or response. A value of 2 or higher produces the maximum amount of debugging output, lo...
doc_7480
Return the least common multiple of the specified integer arguments. If all arguments are nonzero, then the returned value is the smallest positive integer that is a multiple of all arguments. If any of the arguments is zero, then the returned value is 0. lcm() without arguments returns 1. New in version 3.9.
doc_7481
Standard error stream (StreamReader) or None if the process was created with stderr=None.
doc_7482
Scalar method identical to the corresponding array attribute. Please see ndarray.round.
doc_7483
Empty masked array with all elements masked. Return an empty masked array of the given shape and dtype, where all the data are masked. Parameters shapetuple Shape of the required MaskedArray. dtypedtype, optional Data type of the output. Returns aMaskedArray A masked array with all data masked. ...
doc_7484
Sets the coordinates of the vector. update() -> None update(int) -> None update(float) -> None update(Vector3) -> None update(x, y, z) -> None update((x, y, z)) -> None Sets coordinates x, y, and z in place. New in pygame 1.9.5.
doc_7485
Return a view of the array with axis1 and axis2 interchanged. Refer to numpy.swapaxes for full documentation. See also numpy.swapaxes equivalent function
doc_7486
sklearn.metrics.homogeneity_completeness_v_measure(labels_true, labels_pred, *, beta=1.0) [source] 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 clas...
doc_7487
See Migration guide for more details. tf.compat.v1.raw_ops.RandomUniformInt tf.raw_ops.RandomUniformInt( shape, minval, maxval, seed=0, seed2=0, name=None ) The generated values are uniform integers in the range [minval, maxval). The lower bound minval is included in the range, while the upper bound maxval is ex...
doc_7488
Create a 3D filled contour plot. Parameters X, Y, Zarray-like Input data. See contourf for acceptable data shapes. zdir{'x', 'y', 'z'}, default: 'z' The direction to use. offsetfloat, optional If specified, plot a projection of the contour lines at this position in a plane normal to zdir. dataindexabl...
doc_7489
Transforms the image samples in X into a matrix of patch data. Parameters Xndarray of shape (n_samples, image_height, image_width) or (n_samples, image_height, image_width, n_channels) Array of images from which to extract patches. For color images, the last dimension specifies the channel: a RGB image would ha...
doc_7490
Set the CapStyle for the collection (for all its elements). Parameters csCapStyle or {'butt', 'projecting', 'round'}
doc_7491
Parse an IMAP4 INTERNALDATE string and return corresponding local time. The return value is a time.struct_time tuple or None if the string has wrong format.
doc_7492
Alias for get_linewidth.
doc_7493
Return a reader object which will iterate over lines in the given csvfile. csvfile can be any object which supports the iterator protocol and returns a string each time its __next__() method is called — file objects and list objects are both suitable. If csvfile is a file object, it should be opened with newline=''. 1 ...
doc_7494
Applies the Softmin function to an n-dimensional input Tensor rescaling them so that the elements of the n-dimensional output Tensor lie in the range [0, 1] and sum to 1. Softmin is defined as: Softmin(xi)=exp⁡(−xi)∑jexp⁡(−xj)\text{Softmin}(x_{i}) = \frac{\exp(-x_i)}{\sum_j \exp(-x_j)} Shape: Input: (∗)(*) whe...
doc_7495
The state of the font's oblique style flag oblique -> bool Gets or sets whether the font will be rendered as oblique. This default style value will be used for all text rendering and size calculations unless overridden specifically in a render or get_rect() call, via the style parameter. The oblique style is only sup...
doc_7496
True if the eventcollection is horizontal, False if vertical.
doc_7497
URL name: password_reset_complete Presents a view which informs the user that the password has been successfully changed. Attributes: template_name The full name of a template to display the view. Defaults to registration/password_reset_complete.html. extra_context A dictionary of context data that will be ad...
doc_7498
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_7499
Token value for "@=".