_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_22500
A subclass of Mailbox for mailboxes in MH format. Parameter factory is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If factory is None, MHMessage is used as the default message representation. If create is True, the ma...
doc_22501
duplicate the Group copy() -> Group Creates a new Group with all the same Sprites as the original. If you have subclassed Group, the new object will have the same (sub-)class as the original. This only works if the derived class's constructor takes the same arguments as the Group class's.
doc_22502
Set the url for the artist. Parameters urlstr
doc_22503
Convenient way to get row and column indicators together. Returns the rows_ and columns_ members.
doc_22504
Return a string representing the date and time in ISO 8601 format: YYYY-MM-DDTHH:MM:SS.ffffff, if microsecond is not 0 YYYY-MM-DDTHH:MM:SS, if microsecond is 0 If utcoffset() does not return None, a string is appended, giving the UTC offset: YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS[.ffffff]], if microsecond is not 0 ...
doc_22505
Bases: object Event for tool manipulation (add/remove). classmatplotlib.backend_managers.ToolManager(figure=None)[source] Bases: object Manager for actions triggered by user interactions (key press, toolbar clicks, ...) on a Figure. Attributes figureFigure Figure that holds the canvas. keypresslockLockD...
doc_22506
Return the sketch parameters for the artist. Returns tuple or None A 3-tuple with the following elements: scale: The amplitude of the wiggle perpendicular to the source line. length: The length of the wiggle along the line. randomness: The scale factor by which the length is shrunken or expanded. Returns Non...
doc_22507
Return the value of the filename parameter of the Content-Disposition header of the message. If the header does not have a filename parameter, this method falls back to looking for the name parameter on the Content-Type header. If neither is found, or the header is missing, then failobj is returned. The returned string...
doc_22508
'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_22509
Mask an array where greater than or equal to a given value. This function is a shortcut to masked_where, with condition = (x >= value). See also masked_where Mask where a condition is met. Examples >>> import numpy.ma as ma >>> a = np.arange(4) >>> a array([0, 1, 2, 3]) >>> ma.masked_greater_equal(a, 2) masked_...
doc_22510
Create a twin of Axes with no shared axis. While self will have ticks on the left and bottom axis, the returned axes will have ticks on the top and right axis.
doc_22511
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_22512
Try to switch to UTF-8 mode. Returns the server response if successful, raises error_proto if not. Specified in RFC 6856. New in version 3.5.
doc_22513
Median absolute error regression loss. Median absolute error output is non-negative floating point. The best value is 0.0. Read more in the User Guide. Parameters y_truearray-like of shape = (n_samples) or (n_samples, n_outputs) Ground truth (correct) target values. y_predarray-like of shape = (n_samples) or ...
doc_22514
Return a callable object that calls the method name on its operand. If additional arguments and/or keyword arguments are given, they will be given to the method as well. For example: After f = methodcaller('name'), the call f(b) returns b.name(). After f = methodcaller('name', 'foo', bar=1), the call f(b) returns b.na...
doc_22515
Return True if the path points to a directory (or a symbolic link pointing to a directory), False if it points to another kind of file. False is also returned if the path doesn’t exist or is a broken symlink; other errors (such as permission errors) are propagated.
doc_22516
Set the categories to the specified new_categories. new_categories can include new categories (which will result in unused categories) or remove old categories (which results in values set to NaN). If rename==True, the categories will simple be renamed (less or more items than in old categories will result in values ...
doc_22517
Alias for get_linestyle.
doc_22518
A process pool object which controls a pool of worker processes to which jobs can be submitted. It supports asynchronous results with timeouts and callbacks and has a parallel map implementation. processes is the number of worker processes to use. If processes is None then the number returned by os.cpu_count() is used....
doc_22519
Return a new lock object. Methods of locks are described below. The lock is initially unlocked.
doc_22520
Online computation of min and max on X for later scaling. All of X is processed as a single batch. This is intended for cases when fit is not feasible due to very large number of n_samples or because X is read from a continuous stream. Parameters Xarray-like of shape (n_samples, n_features) The data used to com...
doc_22521
Generate random samples from the fitted Gaussian distribution. Parameters n_samplesint, default=1 Number of samples to generate. Returns Xarray, shape (n_samples, n_features) Randomly generated sample yarray, shape (nsamples,) Component labels
doc_22522
Stack arrays in sequence vertically (row wise). This is equivalent to concatenation along the first axis after 1-D arrays of shape (N,) have been reshaped to (1,N). Rebuilds arrays divided by vsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (first a...
doc_22523
Add one or more events at the specified positions.
doc_22524
Reset the time conversion rules used by the library routines. The environment variable TZ specifies how this is done. It will also set the variables tzname (from the TZ environment variable), timezone (non-DST seconds West of UTC), altzone (DST seconds west of UTC) and daylight (to 0 if this timezone does not have any ...
doc_22525
Check whether an array-like is a Categorical instance. Parameters arr:array-like The array-like to check. Returns boolean Whether or not the array-like is of a Categorical instance. Examples >>> is_categorical([1, 2, 3]) False Categoricals, Series Categoricals, and CategoricalIndex will return True...
doc_22526
Set the alpha value used for blending - not supported on all backends. Parameters alphaarray-like or scalar or None All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
doc_22527
Returns True if the user is allowed to have access to the admin site.
doc_22528
'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_22529
tf.keras.applications.efficientnet.EfficientNetB6 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.EfficientNetB6, tf.compat.v1.keras.applications.efficientnet.EfficientNetB6 tf.keras.applications.EfficientNetB6( include_top=True, weights='imagenet', input_tensor=...
doc_22530
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
doc_22531
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyCenteredRMSProp tf.raw_ops.ResourceSparseApplyCenteredRMSProp( var, mg, ms, mom, lr, rho, momentum, epsilon, grad, indices, use_locking=False, name=None ) The centered RMSProp algorithm uses an estimate of the centered second momen...
doc_22532
Write data to the output file. This method can only be called after the audio file parameters have been set. Changed in version 3.4: Any bytes-like object is now accepted.
doc_22533
Convert the color from HSV coordinates to RGB coordinates.
doc_22534
Image of human cells undergoing mitosis. Returns human_mitosis: (512, 512) uint8 ndimage Data of human cells undergoing mitosis taken during the preperation of the manuscript in [1]. Notes Copyright David Root. Licensed under CC-0 [2]. References 1 Moffat J, Grueneberg DA, Yang X, Kim SY, Kloepfer AM, Hin...
doc_22535
Check whether the provided array or dtype is of an unsigned integer dtype. The nullable Integer dtypes (e.g. pandas.UInt64Dtype) are also considered as integer by this function. Parameters arr_or_dtype:array-like or dtype The array or dtype to check. Returns boolean Whether or not the array or dtype is of...
doc_22536
Bases: object get_gridlines(which, axis)[source] Return list of grid lines as a list of paths (list of points). which : "major" or "minor" axis : "both", "x" or "y" invalidate()[source] [Deprecated] Notes Deprecated since version 3.4: new_gridlines(ax)[source] Create and return a new GridlineCollec...
doc_22537
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 antialiased or aa bool or None capstyle CapStyle or {'butt', 'projecting', 'r...
doc_22538
Construct an IPv4 interface. The meaning of address is as in the constructor of IPv4Network, except that arbitrary host addresses are always accepted. IPv4Interface is a subclass of IPv4Address, so it inherits all the attributes from that class. In addition, the following attributes are available: ip The address (I...
doc_22539
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterNdAdd tf.raw_ops.ResourceScatterNdAdd( ref, indices, updates, use_locking=True, name=None ) ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indices into ref. It must be shape [d_0, ...
doc_22540
Return the current contents of history item at index. The item index is one-based. This calls history_get() in the underlying library.
doc_22541
Set the parameters of this kernel. The method works on simple kernels as well as on nested kernels. The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Returns self
doc_22542
Define default roll function to be called in apply method.
doc_22543
Return sample standard deviation over requested axis. Normalized by N-1 by default. This can be changed using the ddof argument. Parameters axis:{index (0), columns (1)} skipna:bool, default True Exclude NA/null values. If an entire row/column is NA, the result will be NA. level:int or level name, default N...
doc_22544
tf.compat.v1.feature_column.shared_embedding_columns( categorical_columns, dimension, combiner='mean', initializer=None, shared_embedding_collection_name=None, ckpt_to_load_from=None, tensor_name_in_ckpt=None, max_norm=None, trainable=True, use_safe_embedding_lookup=True ) This is similar to embedding_...
doc_22545
Returns a new tensor with the ceil of the elements of input, the smallest integer greater than or equal to each element. outi=⌈inputi⌉=⌊inputi⌋+1\text{out}_{i} = \left\lceil \text{input}_{i} \right\rceil = \left\lfloor \text{input}_{i} \right\rfloor + 1 Parameters input (Tensor) – the input tensor. Keyword Argume...
doc_22546
See torch.quantile()
doc_22547
Log in as the given user. The passwd and acct parameters are optional and default to the empty string. If no user is specified, it defaults to 'anonymous'. If user is 'anonymous', the default passwd is 'anonymous@'. This function should be called only once for each instance, after a connection has been established; it ...
doc_22548
Round to the nearest integer, signaling Inexact or Rounded as appropriate if rounding occurs. The rounding mode is determined by the rounding parameter if given, else by the given context. If neither parameter is given then the rounding mode of the current context is used.
doc_22549
Set multiple properties at once. Supported properties are Property Description adjustable {'box', 'datalim'} 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 anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}...
doc_22550
See Migration guide for more details. tf.compat.v1.image.resize_images tf.compat.v1.image.resize( images, size, method=ResizeMethodV1.BILINEAR, align_corners=False, preserve_aspect_ratio=False, name=None ) Resized images will be distorted if their original aspect ratio is not the same as size. To avoid disto...
doc_22551
The signal corresponding to the Ctrl+C keystroke event. This signal can only be used with os.kill(). Availability: Windows. New in version 3.2.
doc_22552
Machine limits for integer types. Parameters int_typeinteger type, dtype, or instance The kind of integer data type to get information about. See also finfo The equivalent for floating point data types. Examples With types: >>> ii16 = np.iinfo(np.int16) >>> ii16.min -32768 >>> ii16.max 32767 >>> ii32 ...
doc_22553
Scalar method identical to the corresponding array attribute. Please see ndarray.put.
doc_22554
Set the legend title. Fontproperties can be optionally set with prop parameter.
doc_22555
Return the message’s main content type. This is the maintype part of the string returned by get_content_type().
doc_22556
Alias for set_facecolor.
doc_22557
Set the boundary parameter of the Content-Type header to boundary. set_boundary() will always quote boundary if necessary. A HeaderParseError is raised if the message object has no Content-Type header. Note that using this method is subtly different than deleting the old Content-Type header and adding a new one with th...
doc_22558
If the message is a multipart/related, create a new message object, pass all of the arguments to its set_content() method, and attach() it to the multipart. If the message is a non-multipart, call make_related() and then proceed as above. If the message is any other type of multipart, raise a TypeError. If content_mana...
doc_22559
Return a list of the values. These are each a scalar type, which is a Python scalar (for str, int, float) or a pandas scalar (for Timestamp/Timedelta/Interval/Period) Returns list
doc_22560
Predict class labels for samples in X. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape [n_samples] Predicted class label per sample.
doc_22561
Check elementwise if an Interval overlaps the values in the IntervalArray. Two intervals overlap if they share a common point, including closed endpoints. Intervals that only have an open endpoint in common do not overlap. Parameters other:IntervalArray Interval to check against for an overlap. Returns nda...
doc_22562
Length of one array element in bytes. Examples >>> x = np.array([1,2,3], dtype=np.float64) >>> x.itemsize 8 >>> x = np.array([1,2,3], dtype=np.complex128) >>> x.itemsize 16
doc_22563
Change the mode of the file descriptor fd to raw. If when is omitted, it defaults to termios.TCSAFLUSH, and is passed to termios.tcsetattr().
doc_22564
Access a member of the archive as a binary file-like object. name can be either the name of a file within the archive or a ZipInfo object. The mode parameter, if included, must be 'r' (the default) or 'w'. pwd is the password used to decrypt encrypted ZIP files. open() is also a context manager and therefore supports t...
doc_22565
See Migration guide for more details. tf.compat.v1.io.gfile.listdir tf.io.gfile.listdir( path ) The list is in arbitrary order. It does not contain the special entries "." and "..". Args path string, path to a directory Returns [filename1, filename2, ... filenameN] as strings Raises ...
doc_22566
The name of the module that this loader will handle.
doc_22567
Return the label used for this artist in the legend.
doc_22568
sklearn.utils.extmath.randomized_range_finder(A, *, size, n_iter, power_iteration_normalizer='auto', random_state=None) [source] Computes an orthonormal matrix whose range approximates the range of A. Parameters A2D array The input data matrix. sizeint Size of the return array. n_iterint Number of power...
doc_22569
Returns the DE-9IM intersection matrix (a string) representing the topological relationship between this geometry and the other.
doc_22570
See torch.amax()
doc_22571
Set the antialiasing state for rendering. Parameters aabool or list of bools
doc_22572
>>> import readline >>> readline.parse_and_bind("tab: complete") >>> readline. <TAB PRESSED> readline.__doc__ readline.get_line_buffer( readline.read_init_file( readline.__file__ readline.insert_text( readline.set_completer( readline.__name__ readline.parse_and_bind( >>> readline. The rl...
doc_22573
tf.linalg.norm tf.norm( tensor, ord='euclidean', axis=None, keepdims=None, name=None ) This function can compute several different vector norms (the 1-norm, the Euclidean or 2-norm, the inf-norm, and in general the p-norm for p > 0) and matrix norms (Frobenius, 1-norm, 2-norm and inf-norm). Args tensor ...
doc_22574
Computes the orthogonal matrix Q of a QR factorization, from the (input, input2) tuple returned by torch.geqrf(). This directly calls the underlying LAPACK function ?orgqr. See LAPACK documentation for orgqr for further details. Parameters input (Tensor) – the a from torch.geqrf(). input2 (Tensor) – the tau from t...
doc_22575
Bases: skimage.transform._geometric.GeometricTransform Fundamental matrix transformation. The fundamental matrix relates corresponding points between a pair of uncalibrated images. The matrix transforms homogeneous image points in one image to epipolar lines in the other image. The fundamental matrix is only defined ...
doc_22576
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_22577
Deserialize an object from JSON read from a file object. Takes the same arguments as the built-in json.load(), with some defaults from application configuration. Parameters fp (IO[str]) – File object to read JSON from. app (Optional[Flask]) – Use this app’s config instead of the active app context or defaults. kw...
doc_22578
tf.compat.v1.executing_eagerly() Eager execution is typically enabled via tf.compat.v1.enable_eager_execution, but may also be enabled within the context of a Python function via tf.contrib.eager.py_func. When eager execution is enabled, returns True in most cases. However, this API might return False in the following...
doc_22579
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred) ** 2).sum() and \(v\) is the total sum of squares ((y_true - y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c...
doc_22580
Return whether the screensaver is allowed to run. get_allow_screensaver() -> bool Return whether screensaver is allowed to run whilst the app is running. Default is False. By default pygame does not allow the screensaver during game play. Note Some platforms do not have a screensaver or support disabling the screens...
doc_22581
There is really only one valid value for the MIME-Version header, and that is 1.0. For future proofing, this header class supports other valid version numbers. If a version number has a valid value per RFC 2045, then the header object will have non-None values for the following attributes: version The version numbe...
doc_22582
tf.compat.v1.load_file_system_library( library_filename ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.load_library instead. Pass library_filename to a platform-specific mechanism for dynamically loading a library. The rules for determining the exa...
doc_22583
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalSleepDataset tf.raw_ops.ExperimentalSleepDataset( input_dataset, sleep_microseconds, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. sleep_microseconds A Tensor of type int64. output_ty...
doc_22584
Called after the handle() method to perform any clean-up actions required. The default implementation does nothing. If setup() raises an exception, this function will not be called.
doc_22585
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_22586
Called if get_json() parsing fails and isn’t silenced. If this method returns a value, it is used as the return value for get_json(). The default implementation raises BadRequest. Parameters e (ValueError) – Return type Any
doc_22587
Base class for form range fields. base_field The form field to use. range_type The psycopg2 range type to use.
doc_22588
bytearray.count(sub[, start[, end]]) Return the number of non-overlapping occurrences of subsequence sub in the range [start, end]. Optional arguments start and end are interpreted as in slice notation. The subsequence to search for may be any bytes-like object or an integer in the range 0 to 255. Changed in version...
doc_22589
Insert an output Node into the Graph. An output node represents a return statement in Python code. result is the value that should be returned. Parameters result (Argument) – The value to be returned. type_expr (Optional[Any]) – an optional type annotation representing the Python type the output of this node wil...
doc_22590
The response class to be returned by render_to_response method. Default is TemplateResponse. The template and context of TemplateResponse instances can be altered later (e.g. in template response middleware). If you need custom template loading or custom context object instantiation, create a TemplateResponse subclass ...
doc_22591
Return a string specifying the flags that are currently set. If the message complies with the conventional format, the result is the concatenation in the following order of zero or one occurrence of each of 'R', 'O', 'D', 'F', and 'A'.
doc_22592
Highlight a defined range 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 before applying th...
doc_22593
Calculate window boundaries based on a non-fixed offset such as a BusinessDay. Methods get_window_bounds([num_values, min_periods, ...]) Computes the bounds of a window.
doc_22594
Integrate a Laguerre series. Returns the Laguerre series coefficients c integrated m times from lbnd along axis. At each iteration the resulting series is multiplied by scl and an integration constant, k, is added. The scaling factor is for use in a linear change of variable. (“Buyer beware”: note that, depending on ...
doc_22595
[Deprecated] Notes Deprecated since version 3.4:
doc_22596
Selects TLS version 1.0 as the channel encryption protocol. Deprecated since version 3.6: OpenSSL has deprecated all version specific protocols. Use the default protocol PROTOCOL_TLS with flags like OP_NO_SSLv3 instead.
doc_22597
Compute cosine distance between samples in X and Y. Cosine distance is defined as 1.0 minus the cosine similarity. Read more in the User Guide. Parameters X{array-like, sparse matrix} of shape (n_samples_X, n_features) Matrix X. Y{array-like, sparse matrix} of shape (n_samples_Y, n_features), default=None M...
doc_22598
tf.compat.v1.DeviceSpec( job=None, replica=None, task=None, device_type=None, device_index=None ) DeviceSpecs are used throughout TensorFlow to describe where state is stored and computations occur. Using DeviceSpec allows you to parse device spec strings to verify their validity, merge them or compose them progra...
doc_22599
Same as pygame.sprite.Group This class is an alias to pygame.sprite.Group(). It has no additional functionality.