_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_12400
Create a new "blended" transform using x_transform to transform the x-axis and y_transform to transform the y-axis. You will generally not call this constructor directly but use the blended_transform_factory function instead, which can determine automatically which kind of blended transform to create.
doc_12401
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_12402
Mask using floating point equality. Return a MaskedArray, masked where the data in array x are approximately equal to value, determined using isclose. The default tolerances for masked_values are the same as those for isclose. For integer types, exact equality is used, in the same way as masked_equal. The fill_value ...
doc_12403
Aggregate using one or more operations over the specified axis. Parameters func:function, str, list or dict Function to use for aggregating the data. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply. Accepted combinations are: function string function name list of funct...
doc_12404
alias of flask.wrappers.Response
doc_12405
This method is called at the end of the request directly by the WSGI server.
doc_12406
Returns the system identifier of this InputSource.
doc_12407
See Migration guide for more details. tf.compat.v1.raw_ops.CacheDatasetV2 tf.raw_ops.CacheDatasetV2( input_dataset, filename, cache, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. filename A Tensor of type string. cache A Tensor of type resource. ou...
doc_12408
Returns the type of the underlying storage.
doc_12409
Windows only: Returns a textual description of the error code code. If no error code is specified, the last error code is used by calling the Windows api function GetLastError.
doc_12410
Applies spectral normalization to a parameter in the given module. WSN=Wσ(W),σ(W)=max⁡h:h≠0∥Wh∥2∥h∥2\mathbf{W}_{SN} = \dfrac{\mathbf{W}}{\sigma(\mathbf{W})}, \sigma(\mathbf{W}) = \max_{\mathbf{h}: \mathbf{h} \ne 0} \dfrac{\|\mathbf{W} \mathbf{h}\|_2}{\|\mathbf{h}\|_2} Spectral normalization stabilizes the training...
doc_12411
The name of the URL pattern to redirect to. Reversing will be done using the same args and kwargs as are passed in for this view.
doc_12412
Compute the stack effect of opcode with argument oparg. If the code has a jump target and jump is True, stack_effect() will return the stack effect of jumping. If jump is False, it will return the stack effect of not jumping. And if jump is None (default), it will return the maximal stack effect of both cases. New in ...
doc_12413
This is a Python context manager that sets the current time zone on entry with activate(), and restores the previously active time zone on exit. If the timezone argument is None, the current time zone is unset on entry with deactivate() instead. override is also usable as a function decorator.
doc_12414
Bases: matplotlib.image._ImageBase An image attached to a figure. cmap is a colors.Colormap instance norm is a colors.Normalize instance to map luminance to 0-1 kwargs are an optional list of Artist keyword args get_extent()[source] Return the image extent as tuple (left, right, bottom, top). make_image(rende...
doc_12415
Predict x-coordinates for 2D lines using the estimated model. Alias for: predict(y, axis=1)[:, 0] Parameters yarray y-coordinates. params(2, ) array, optional Optional custom parameter set in the form (origin, direction). Returns xarray Predicted x-coordinates.
doc_12416
Return the data for the specified year ready for formatting (similar to yeardatescalendar()). Entries in the week lists are tuples of day numbers and weekday numbers. Day numbers outside this month are zero.
doc_12417
Return a function to preprocess the text before tokenization. Returns preprocessor: callable A function to preprocess the text before tokenization.
doc_12418
get the color for a single entry in a palette get_palette_at(index) -> RGB Returns the red, green, and blue color values for a single index in a Surface palette. The index should be a value from 0 to 255. New in pygame 1.9: Returning Color(with length 3) instance instead of a tuple.
doc_12419
the significant bits used to convert between a color and a mapped integer get_losses() -> (R, G, B, A) Return the least significant number of bits stripped from each color in a mapped integer. This value is not needed for normal pygame usage.
doc_12420
Same as ForeignKey.related_query_name.
doc_12421
Return the approximate size of the queue. Note, qsize() > 0 doesn’t guarantee that a subsequent get() will not block.
doc_12422
Equivalent to shift without copying data. The shifted data will not include the dropped periods and the shifted axis will be smaller than the original. Deprecated since version 1.2.0: slice_shift is deprecated, use DataFrame/Series.shift instead. Parameters periods:int Number of periods to move, can be positi...
doc_12423
Return an attribute with a particular index. The order you get the attributes in is arbitrary but will be consistent for the life of a DOM. Each item is an attribute node. Get its value with the value attribute.
doc_12424
Alias for set_color.
doc_12425
The value of the choice. This value is used to render the value attribute of an HTML <option> element.
doc_12426
Return the current size of the output buffer used by the transport.
doc_12427
See torch.slogdet()
doc_12428
The default point size used in rendering size -> float size -> (float, float) Get or set the default size for text metrics and rendering. It can be a single point size, given as a Python int or float, or a font ppem (width, height) tuple. Size values are non-negative. A zero size or width represents an undefined size...
doc_12429
Round the Timestamp to the specified resolution. Parameters freq:str Frequency string indicating the rounding resolution. ambiguous:bool or {‘raise’, ‘NaT’}, default ‘raise’ The behavior is as follows: bool contains flags to determine if time is dst or not (note that this flag is only applicable for ambigu...
doc_12430
html.escape(s, quote=True) Convert the characters &, < and > in string s to HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. If the optional flag quote is true, the characters (") and (') are also translated; this helps for inclusion in an HTML attribute value deli...
doc_12431
A class used for internal typing representation of string forward references. For example, List["SomeClass"] is implicitly transformed into List[ForwardRef("SomeClass")]. This class should not be instantiated by a user, but may be used by introspection tools. Note PEP 585 generic types such as list["SomeClass"] will n...
doc_12432
Get or set the radial gridlines on the current polar plot. Call signatures: lines, labels = rgrids() lines, labels = rgrids(radii, labels=None, angle=22.5, fmt=None, **kwargs) When called with no arguments, rgrids simply returns the tuple (lines, labels). When called with arguments, the labels will appear at the spe...
doc_12433
Return True if it is a directory.
doc_12434
posixpath for UNIX-style paths ntpath for Windows paths Changed in version 3.8: exists(), lexists(), isdir(), isfile(), islink(), and ismount() now return False instead of raising an exception for paths that contain characters or bytes unrepresentable at the OS level. os.path.abspath(path) Return a normalized ...
doc_12435
Deprecated since version 3.3. FancyURLopener subclasses URLopener providing default handling for the following HTTP response codes: 301, 302, 303, 307 and 401. For the 30x response codes listed above, the Location header is used to fetch the actual URL. For 401 response codes (authentication required), basic HTTP aut...
doc_12436
The error message used by ValidationError if validation fails. Defaults to "Enter a valid email address".
doc_12437
The name to use for the relation from the related object back to this one. It’s also the default value for related_query_name (the name to use for the reverse filter name from the target model). See the related objects documentation for a full explanation and example. Note that you must set this value when defining rel...
doc_12438
A verbose description of the field, e.g. for the django.contrib.admindocs application. The description can be of the form: description = _("String (up to %(max_length)s)") where the arguments are interpolated from the field’s __dict__.
doc_12439
Plot a spectrogram. Compute and plot a spectrogram of data in x. Data are split into NFFT length segments and the spectrum of each section is computed. The windowing function window is applied to each segment, and the amount of overlap of each segment is specified with noverlap. The spectrogram is plotted as a colorm...
doc_12440
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_12441
class sklearn.linear_model.PoissonRegressor(*, alpha=1.0, fit_intercept=True, max_iter=100, tol=0.0001, warm_start=False, verbose=0) [source] Generalized Linear Model with a Poisson distribution. Read more in the User Guide. New in version 0.23. Parameters alphafloat, default=1 Constant that multiplies the pe...
doc_12442
Set to a filename (str type) that should not be able to be encoded by file system encoding in strict mode. It may be None if it’s not possible to generate such a filename.
doc_12443
Freeze all the objects tracked by gc - move them to a permanent generation and ignore all the future collections. This can be used before a POSIX fork() call to make the gc copy-on-write friendly or to speed up collection. Also collection before a POSIX fork() call may free pages for future allocation which can cause c...
doc_12444
#cython: language_level=3 from libc.stdint cimport uint32_t from cpython.pycapsule cimport PyCapsule_IsValid, PyCapsule_GetPointer import numpy as np cimport numpy as np cimport cython from numpy.random cimport bitgen_t from numpy.random import PCG64 np.import_array() @cython.boundscheck(False) @cython.wraparound...
doc_12445
Set multiple properties at once. Supported properties are Property Description 3d_properties unknown 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 backgroundcolor color bbox dict with properties for p...
doc_12446
Unload the currently loaded music to free up resources unload() -> None This closes resources like files for any music that may be loaded. New in pygame 2.0.0.
doc_12447
Prevents a TLSv1.1 connection. This option is only applicable in conjunction with PROTOCOL_TLS. It prevents the peers from choosing TLSv1.1 as the protocol version. Available only with openssl version 1.0.1+. New in version 3.4. Deprecated since version 3.7: The option is deprecated since OpenSSL 1.1.0.
doc_12448
sklearn.metrics.pairwise.paired_cosine_distances(X, Y) [source] Computes the paired cosine distances between 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,) Notes T...
doc_12449
The string of characters accepted for the command prefix.
doc_12450
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 feature are drawn from a categorical distribution. Read more in the User Guide. Parameters alphafloat, default=1.0...
doc_12451
temporarily stop playback of a channel pause() -> None Temporarily stop the playback of sound on a channel. It can be resumed at a later time with Channel.unpause()
doc_12452
Formats a floating point number using the same format as the built-in function str(float), but takes the decimal point into account.
doc_12453
get the mouse cursor position get_pos() -> (x, y) Returns the x and y position of the mouse cursor. The position is relative to the top-left corner of the display. The cursor position can be located outside of the display window, but is always constrained to the screen.
doc_12454
Insert an item at the given position. Parameters loc:int item:scalar-like Returns same type as self Notes This method should be both type and dtype-preserving. If the item cannot be held in an array of this type/dtype, either ValueError or TypeError should be raised. The default implementation relies on...
doc_12455
Evaluate a score by cross-validation Read more in the User Guide. Parameters estimatorestimator object implementing ‘fit’ The object to use to fit the data. Xarray-like of shape (n_samples, n_features) The data to fit. Can be for example a list, or an array. yarray-like of shape (n_samples,) or (n_samples...
doc_12456
Event port. New in version 3.4.
doc_12457
tf.compat.v1.test.assert_equal_graph_def( actual, expected, checkpoint_v2=False, hash_table_shared_name=False ) Compares two GraphDef protos for equality, ignoring versions and ordering of nodes, attrs, and control inputs. Node names are used to match up nodes between the graphs, so the naming of nodes must be con...
doc_12458
tf.compat.v1.nn.softmax_cross_entropy_with_logits_v2( labels, logits, axis=None, name=None, dim=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (dim). They will be removed in a future version. Instructions for updating: dim is deprecated, use axis instead Measures the probability error in discrete classification ta...
doc_12459
Make a 2D histogram plot. Parameters x, yarray-like, shape (n, ) Input values binsNone or int or [int, int] or array-like or [array, array] The bin specification: If int, the number of bins for the two dimensions (nx=ny=bins). If [int, int], the number of bins in each dimension (nx, ny = bins). If array-li...
doc_12460
Return a shallow copy of this object.
doc_12461
Set the alpha value used for blending - not supported on all backends. Parameters alphascalar or None alpha must be within the 0-1 range, inclusive.
doc_12462
See Migration guide for more details. tf.compat.v1.raw_ops.Softmax tf.raw_ops.Softmax( logits, name=None ) For each batch i and class j we have $$softmax[i, j] = exp(logits[i, j]) / sum_j(exp(logits[i, j]))$$ Args logits A Tensor. Must be one of the following types: half, bfloat16, float32, float64. 2...
doc_12463
Formats a number val according to the current LC_MONETARY settings. The returned string includes the currency symbol if symbol is true, which is the default. If grouping is true (which is not the default), grouping is done with the value. If international is true (which is not the default), the international currency s...
doc_12464
Return a random sample of items from each group. You can use random_state for reproducibility. New in version 1.1.0. Parameters n:int, optional Number of items to return for each group. Cannot be used with frac and must be no larger than the smallest group unless replace is True. Default is one if frac is Non...
doc_12465
Set the foreground color. Parameters fgcolor isRGBAbool If fg is known to be an (r, g, b, a) tuple, isRGBA can be set to True to improve performance.
doc_12466
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
doc_12467
See Migration guide for more details. tf.compat.v1.raw_ops.QueueSizeV2 tf.raw_ops.QueueSizeV2( handle, name=None ) Args handle A Tensor of type resource. The handle to a queue. name A name for the operation (optional). Returns A Tensor of type int32.
doc_12468
__delitem__(key) discard(key) Delete the message corresponding to key from the mailbox. If no such message exists, a KeyError exception is raised if the method was called as remove() or __delitem__() but no exception is raised if the method was called as discard(). The behavior of discard() may be preferred if the ...
doc_12469
Return the values (min, max) that are mapped to the colormap limits.
doc_12470
Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
doc_12471
Erases a mask from another erase(othermask, offset) -> None Erases (clears) all bits set in othermask from this mask. Parameters: othermask (Mask) -- the mask to erase from this mask offset (tuple(int, int) or list[int, int]) -- the offset of othermask from this mask, for more details refer to the Mask offse...
doc_12472
Alias for set_facecolor.
doc_12473
kind = 'minute'
doc_12474
See Migration guide for more details. tf.compat.v1.raw_ops.TensorListPopBack tf.raw_ops.TensorListPopBack( input_handle, element_shape, element_dtype, name=None ) Fails if the list is empty. input_handle: the input list tensor: the withdrawn last element of the list element_dtype: the type of elements in the lis...
doc_12475
Convert coefficient matrix to sparse format. Converts the coef_ member to a scipy.sparse matrix, which for L1-regularized models can be much more memory- and storage-efficient than the usual numpy.ndarray representation. The intercept_ member is not converted. Returns self Fitted estimator. Notes For non-spar...
doc_12476
See Migration guide for more details. tf.compat.v1.Operation tf.Operation( node_def, g, inputs=None, output_types=None, control_inputs=None, input_types=None, original_op=None, op_def=None ) An Operation is a node in a tf.Graph that takes zero or more Tensor objects as input, and produces zero or more Tensor...
doc_12477
Calculate the rolling Fisher’s definition of kurtosis without bias. Parameters **kwargs For NumPy compatibility and will not have an effect on the result. Returns Series or DataFrame Return type is the same as the original object with np.float64 dtype. See also scipy.stats.kurtosis Reference SciPy me...
doc_12478
tf.experimental.numpy.tanh( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.tanh.
doc_12479
See Migration guide for more details. tf.compat.v1.image.grayscale_to_rgb tf.image.grayscale_to_rgb( images, name=None ) Outputs a tensor of the same DType and rank as images. The size of the last dimension of the output is 3, containing the RGB value of the pixels. The input images' last dimension must be size ...
doc_12480
A data structure of functions to call at the beginning of each request, in the format {scope: [functions]}. The scope key is the name of a blueprint the functions are active for, or None for all requests. To register a function, use the before_request() decorator. This data structure is internal. It should not be modif...
doc_12481
Set the artist's visibility. Parameters bbool
doc_12482
Method called prior to get_db_prep_save() to prepare the value before being saved (e.g. for DateField.auto_now). model_instance is the instance this field belongs to and add is whether the instance is being saved to the database for the first time. It should return the value of the appropriate attribute from model_inst...
doc_12483
Context manager for temporarily redirecting sys.stdout to another file or file-like object. This tool adds flexibility to existing functions or classes whose output is hardwired to stdout. For example, the output of help() normally is sent to sys.stdout. You can capture that output in a string by redirecting the output...
doc_12484
class sklearn.preprocessing.LabelEncoder [source] Encode target labels with value between 0 and n_classes-1. This transformer should be used to encode target values, i.e. y, and not the input X. Read more in the User Guide. New in version 0.12. Attributes classes_ndarray of shape (n_classes,) Holds the label ...
doc_12485
Returns an explanatory string for a given error number errno.
doc_12486
type_comment is an optional string with the type annotation as a comment.
doc_12487
Alias for output, for symmetry with stderr.
doc_12488
Get Greater than of dataframe and other, element-wise (binary operator gt). Among flexible wrappers (eq, ne, le, lt, ge, gt) to comparison operators. Equivalent to ==, !=, <=, <, >=, > with support to choose axis (rows or columns) and level for comparison. Parameters other:scalar, sequence, Series, or DataFrame ...
doc_12489
Class used to represent information about a member of an archive. Instances of this class are returned by the getinfo() and infolist() methods of ZipFile objects. Most users of the zipfile module will not need to create these, but only use those created by this module. filename should be the full name of the archive me...
doc_12490
Predict class probabilities for X. The predicted class probabilities of an input sample is computed as the weighted mean predicted class probabilities of the classifiers in the ensemble. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Sparse matrix can be CSC...
doc_12491
The strftime() format to use when parsing the week. By default, this is '%U', which means the week starts on Sunday. Set it to '%W' or '%V' (ISO 8601 week) if your week starts on Monday. New in Django 3.2: Support for the '%V' week format was added.
doc_12492
Return self>>=value.
doc_12493
Return a copy of self.
doc_12494
See Migration guide for more details. tf.compat.v1.sparse.SparseConditionalAccumulator tf.compat.v1.SparseConditionalAccumulator( dtype, shape=None, shared_name=None, name='sparse_conditional_accumulator', reduction_type='MEAN' ) Sparse gradients are represented by IndexedSlices. Up-to-date gradients (i.e., ...
doc_12495
Set executor as the default executor used by run_in_executor(). executor should be an instance of ThreadPoolExecutor. Deprecated since version 3.8: Using an executor that is not an instance of ThreadPoolExecutor is deprecated and will trigger an error in Python 3.9. executor must be an instance of concurrent.futures....
doc_12496
Set the url for the artist. Parameters urlstr
doc_12497
To log out a user who has been logged in via django.contrib.auth.login(), use django.contrib.auth.logout() within your view. It takes an HttpRequest object and has no return value. Example: from django.contrib.auth import logout def logout_view(request): logout(request) # Redirect to a success page. Note that...
doc_12498
See Migration guide for more details. tf.compat.v1.distribute.ReductionToOneDevice tf.distribute.ReductionToOneDevice( reduce_to_device=None, accumulation_fn=None ) This implementation always copies values to one device to reduce them, then broadcast reduced values to the destinations. It doesn't support efficie...
doc_12499
Like Artist.get_window_extent, but includes any clipping. Parameters rendererRendererBase subclass renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns Bbox The enclosing bounding box (in figure pixel coordinates).