_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_8900
Get the color for masked values.
doc_8901
Returns an int of the number of input rows in which both expressions are not null. Note The default argument is not supported.
doc_8902
If policy is specified (it must be an instance of a policy class) use the rules it specifies to update and serialize the representation of the message. If policy is not set, use the compat32 policy, which maintains backward compatibility with the Python 3.2 version of the email package. For more information see the pol...
doc_8903
An optional json.JSONEncoder subclass to serialize data types not supported by the standard JSON serializer (e.g. datetime.datetime or UUID). For example, you can use the DjangoJSONEncoder class. Defaults to json.JSONEncoder.
doc_8904
Create a new zipimporter instance. archivepath must be a path to a ZIP file, or to a specific path within a ZIP file. For example, an archivepath of foo/bar.zip/lib will look for modules in the lib directory inside the ZIP file foo/bar.zip (provided that it exists). ZipImportError is raised if archivepath doesn’t point...
doc_8905
Tuple of bytes to step in each dimension when traversing an array. The byte offset of element (i[0], i[1], ..., i[n]) in an array a is: offset = sum(np.array(i) * a.strides) A more detailed explanation of strides can be found in the “ndarray.rst” file in the NumPy reference guide. See also numpy.lib.stride_tricks....
doc_8906
Print statistics during collection. This information can be useful when tuning the collection frequency.
doc_8907
Set whether the x-axis is autoscaled on the next draw or call to Axes.autoscale_view. Parameters bbool
doc_8908
Set Matplotlib's root logger and root logger handler level, creating the handler if it does not exist yet. Typically, one should call set_loglevel("info") or set_loglevel("debug") to get additional debugging information. Parameters level{"notset", "debug", "info", "warning", "error", "critical"} The log level o...
doc_8909
Return the absolute value of x.
doc_8910
Bases: matplotlib.offsetbox.DraggableBase get_loc_in_canvas()[source] save_offset()[source] update_offset(dx, dy)[source]
doc_8911
Register an object which is used to expose method names which have not been registered using register_function(). If instance contains a _dispatch() method, it is called with the requested method name and the parameters from the request. Its API is def _dispatch(self, method, params) (note that params does not represen...
doc_8912
start handling Unicode text input events start_text_input() -> None Start receiving pygame.TEXTEDITING and pygame.TEXTINPUT events. A pygame.TEXTEDITING event is received when an IME composition is started or changed. It contains the composition text, length, and editing start position within the composition (attribu...
doc_8913
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).
doc_8914
See Migration guide for more details. tf.compat.v1.VarLenFeature, tf.compat.v1.io.VarLenFeature tf.io.VarLenFeature( dtype ) Fields: dtype: Data type of input. Attributes dtype
doc_8915
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_8916
See Migration guide for more details. tf.compat.v1.raw_ops.Sin tf.raw_ops.Sin( x, name=None ) Given an input tensor, this function computes sine of every element in the tensor. Input range is (-inf, inf) and output range is [-1,1]. x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10, float("inf")]) tf.math...
doc_8917
Return the portion of the file’s mode that describes the file type (used by the S_IS*() functions above).
doc_8918
preset the mixer init arguments pre_init(frequency=44100, size=-16, channels=2, buffer=512, devicename=None) -> None Call pre_init to change the defaults used when the real pygame.mixer.init() is called. Keyword arguments are accepted. The best way to set custom mixer playback values is to call pygame.mixer.pre_init(...
doc_8919
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters Xarray-like of shape (n_samples_X, n_features) or list of object Argument to the kernel. Returns K_diagndar...
doc_8920
Least squares fit of Hermite series to data. Return the coefficients of a Hermite series of degree deg that is the least squares fit to the data values y given at points x. If y is 1-D the returned coefficients will also be 1-D. If y is 2-D multiple fits are done, one for each column of y, and the resulting coefficie...
doc_8921
If this attribute is set to a callable, the rotation_filename() method delegates to this callable. The parameters passed to the callable are those passed to rotation_filename(). Note The namer function is called quite a few times during rollover, so it should be as simple and as fast as possible. It should also return...
doc_8922
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_8923
Estimate probability. Parameters Xarray-like of shape (n_samples, n_features) Input data. Returns Cndarray of shape (n_samples, n_classes) Estimated probabilities.
doc_8924
Return the current number of pages in the multipage pdf file.
doc_8925
See Migration guide for more details. tf.compat.v1.raw_ops.GRUBlockCellGrad tf.raw_ops.GRUBlockCellGrad( x, h_prev, w_ru, w_c, b_ru, b_c, r, u, c, d_h, name=None ) Args x: Input to the GRU cell. h_prev: State input from the previous GRU cell. w_ru: Weight matrix for the reset and update gate. w_c: Weight matrix ...
doc_8926
$ wget https://raw.githubusercontent.com/django/django/main/tests/gis_tests/data/rasters/raster.tif Vector Data Source Objects DataSource DataSource is a wrapper for the OGR data source object that supports reading data from a variety of OGR-supported geospatial file formats and data sources using a consistent interfa...
doc_8927
Update this artist's properties from the dict props. Parameters propsdict
doc_8928
Return the full string representation of the value with the position unspecified.
doc_8929
Returns a ModelForm class for the given model. You can optionally pass a form argument to use as a starting point for constructing the ModelForm. fields is an optional list of field names. If provided, only the named fields will be included in the returned fields. exclude is an optional list of field names. If provided...
doc_8930
See Migration guide for more details. tf.compat.v1.linalg.triangular_solve, tf.compat.v1.matrix_triangular_solve tf.linalg.triangular_solve( matrix, rhs, lower=True, adjoint=False, name=None ) matrix is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. If lower is True then the st...
doc_8931
If False (default), the upper bound is exclusive ')', otherwise it’s inclusive ']'.
doc_8932
Execute a call_module node and return the result. Parameters target (Target) – The call target for this node. See Node for details on semantics args (Tuple) – Tuple of positional args for this invocation kwargs (Dict) – Dict of keyword arguments for this invocation Return Any: The value returned by the mod...
doc_8933
assertNotAlmostEqual(first, second, places=7, msg=None, delta=None) Test that first and second are approximately (or not approximately) equal by computing the difference, rounding to the given number of decimal places (default 7), and comparing to zero. Note that these methods round the values to the given number of ...
doc_8934
Average hinge loss (non-regularized). In binary class case, assuming labels in y_true are encoded with +1 and -1, when a prediction mistake is made, margin = y_true * pred_decision is always negative (since the signs disagree), implying 1 - margin is always greater than 1. The cumulated hinge loss is therefore an upp...
doc_8935
SimpleTestCase.assertRaisesMessage(expected_exception, expected_message) Asserts that execution of callable raises expected_exception and that expected_message is found in the exception’s message. Any other outcome is reported as a failure. It’s a simpler version of unittest.TestCase.assertRaisesRegex() with the diff...
doc_8936
Apply linear map to input points. The linear map offset + scale*x that maps the domain old to the domain new is applied to the points x. Parameters xarray_like Points to be mapped. If x is a subtype of ndarray the subtype will be preserved. old, newarray_like The two domains that determine the map. Each mus...
doc_8937
Process an input source, producing SAX events. The source object can be a system identifier (a string identifying the input source – typically a file name or a URL), a pathlib.Path or path-like object, or an InputSource object. When parse() returns, the input is completely processed, and the parser object can be discar...
doc_8938
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk.
doc_8939
Measures the loss given an input tensor xx and a labels tensor yy (containing 1 or -1). This is usually used for measuring whether two inputs are similar or dissimilar, e.g. using the L1 pairwise distance as xx , and is typically used for learning nonlinear embeddings or semi-supervised learning. The loss function ...
doc_8940
(default: True) If true, then all tab characters in text will be expanded to spaces using the expandtabs() method of text.
doc_8941
pygame module for accessing sound sample data Functions to convert between NumPy arrays and Sound objects. This module will only be available when pygame can use the external NumPy package. Sound data is made of thousands of samples per second, and each sample is the amplitude of the wave at a particular moment in...
doc_8942
See Migration guide for more details. tf.compat.v1.raw_ops.FractionalAvgPool tf.raw_ops.FractionalAvgPool( value, pooling_ratio, pseudo_random=False, overlapping=False, deterministic=False, seed=0, seed2=0, name=None ) Fractional average pooling is similar to Fractional max pooling in the pooling region gene...
doc_8943
Take a key value ch, and return True if the current terminal type recognizes a key with that value.
doc_8944
See torch.vdot()
doc_8945
For each element in self, return a copy with the leading and trailing characters removed. See also char.strip
doc_8946
sklearn.preprocessing.label_binarize(y, *, classes, neg_label=0, pos_label=1, sparse_output=False) [source] Binarize labels in a one-vs-all fashion. Several regression and binary classification algorithms are available in scikit-learn. A simple way to extend these algorithms to the multi-class classification case is ...
doc_8947
Return current position in the file, with the same disclaimer for the Wave_read.tell() and Wave_read.setpos() methods.
doc_8948
Perform fit on X and returns labels for X. Returns -1 for outliers and 1 for inliers. Parameters X{array-like, sparse matrix, dataframe} of shape (n_samples, n_features) yIgnored Not used, present for API consistency by convention. Returns yndarray of shape (n_samples,) 1 for inliers, -1 for outliers.
doc_8949
Function to draw a sequence of n points from a Sobol sequence. Note that the samples are dependent on the previous samples. The size of the result is (n,dimension)(n, dimension) . Parameters n (Int, optional) – The length of sequence of points to draw. Default: 1 out (Tensor, optional) – The output tensor dtype...
doc_8950
Bases: skimage.graph._mcp.MCP Find distance-weighted minimum cost paths through an n-d costs array. See the documentation for MCP for full details. This class differs from MCP in that the cost of a path is not simply the sum of the costs along that path. This class instead assumes that the costs array contains at each ...
doc_8951
Flags that apply to pandas objects. New in version 1.2.0. Parameters obj:Series or DataFrame The object these flags are associated with. allows_duplicate_labels:bool, default True Whether to allow duplicate labels in this object. By default, duplicate labels are permitted. Setting this to False will cause...
doc_8952
Convert a non-multipart message into a multipart/related message, moving any existing Content- headers and payload into a (new) first part of the multipart. If boundary is specified, use it as the boundary string in the multipart, otherwise leave the boundary to be automatically created when it is needed (for example, ...
doc_8953
Depending upon the host platform, it may not be possible to modify or remove the underlying message while the returned file remains open.
doc_8954
Assert that running the interpreter with args and optional environment variables env_vars succeeds (rc == 0) and return a (return code, stdout, stderr) tuple. If the __cleanenv keyword is set, env_vars is used as a fresh environment. Python is started in isolated mode (command line option -I), except if the __isolated ...
doc_8955
bytearray.removesuffix(suffix, /) If the binary data ends with the suffix string and that suffix is not empty, return bytes[:-len(suffix)]. Otherwise, return a copy of the original binary data: >>> b'MiscTests'.removesuffix(b'Tests') b'Misc' >>> b'TmpDirMixin'.removesuffix(b'Tests') b'TmpDirMixin' The suffix may be ...
doc_8956
Compute true and predicted probabilities for a calibration curve. The method assumes the inputs come from a binary classifier, and discretize the [0, 1] interval into bins. Calibration curves may also be referred to as reliability diagrams. Read more in the User Guide. Parameters y_truearray-like of shape (n_samp...
doc_8957
Holds submodules in a dictionary. ModuleDict can be indexed like a regular Python dictionary, but modules it contains are properly registered, and will be visible by all Module methods. ModuleDict is an ordered dictionary that respects the order of insertion, and in update(), the order of the merged OrderedDict, dic...
doc_8958
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_8959
See torch.min()
doc_8960
Compare two sequences of lines, and generate the delta (a sequence of lines). Each sequence must contain individual single-line strings ending with newlines. Such sequences can be obtained from the readlines() method of file-like objects. The delta generated also consists of newline-terminated strings, ready to be prin...
doc_8961
Validates a password. If all validators find the password valid, returns None. If one or more validators reject the password, raises a ValidationError with all the error messages from the validators. The user object is optional: if it’s not provided, some validators may not be able to perform any validation and will ac...
doc_8962
Returns the lower triangular part of the matrix (2-D tensor) or batch of matrices input, the other elements of the result tensor out are set to 0. The lower triangular part of the matrix is defined as the elements on and below the diagonal. The argument diagonal controls which diagonal to consider. If diagonal = 0, all...
doc_8963
Equivalent to the corresponding functions without the l prefix (gettext(), dgettext(), ngettext() and dngettext()), but the translation is returned as a byte string encoded in the preferred system encoding if no other encoding was explicitly set with bind_textdomain_codeset(). Warning These functions should be avoided...
doc_8964
Insert a blank line under the cursor. All following lines are moved down by one line.
doc_8965
If the debugger should stop on this function return, invoke the user_return() method (which should be overridden in subclasses). Raise a BdbQuit exception if the Bdb.quitting flag is set (which can be set from user_return()). Return a reference to the trace_dispatch() method for further tracing in that scope.
doc_8966
Return all of the items joined with a, including itself.
doc_8967
A string containing the copyright pertaining to the Python interpreter.
doc_8968
See Migration guide for more details. tf.compat.v1.raw_ops.SoftmaxCrossEntropyWithLogits tf.raw_ops.SoftmaxCrossEntropyWithLogits( features, labels, name=None ) Inputs are the logits, not probabilities. Args features A Tensor. Must be one of the following types: half, bfloat16, float32, float64. batch_s...
doc_8969
For CUDA tensors, this function returns the device ordinal of the GPU on which the tensor resides. For CPU tensors, an error is thrown. Example: >>> x = torch.randn(3, 4, 5, device='cuda:0') >>> x.get_device() 0 >>> x.cpu().get_device() # RuntimeError: get_device is not implemented for type torch.FloatTensor
doc_8970
Returns the application iterator for the given environ. Depending on the request method and the current status code the return value might be an empty response rather than the one from the response. If the request method is HEAD or the status code is in a range where the HTTP specification requires an empty response, a...
doc_8971
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_8972
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_8973
Bases: matplotlib.patches.Patch Create a shadow of the given patch. By default, the shadow will have the same face color as the patch, but darkened. Parameters patchPatch The patch to create the shadow for. ox, oyfloat The shift of the shadow in data coordinates, scaled by a factor of dpi/72. **kwargs Pro...
doc_8974
Return the different font families.
doc_8975
Reverse of dumps(), raises BadSignature if signature fails. Checks max_age (in seconds) if given.
doc_8976
tf.compat.v1.clip_by_average_norm( t, clip_norm, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: clip_by_average_norm is deprecated in TensorFlow 2.0. Please use clip_by_norm(t, clip_norm * tf.cast(tf.size(t), tf.float32), name) instead. Given a ...
doc_8977
Opposite of the value of X on the K-means objective. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) New data. yIgnored Not used, present here for API consistency by convention. sample_weightarray-like of shape (n_samples,), default=None The weights for each observation in X. If...
doc_8978
See Migration guide for more details. tf.compat.v1.raw_ops.InterleaveDataset tf.raw_ops.InterleaveDataset( input_dataset, other_arguments, cycle_length, block_length, f, output_types, output_shapes, name=None ) Unlike MapDataset, the f in InterleaveDataset is expected to return a Dataset variant, and Interle...
doc_8979
A ProtocolError object describes a protocol error in the underlying transport layer (such as a 404 ‘not found’ error if the server named by the URI does not exist). It has the following attributes: url The URI or URL that triggered the error. errcode The error code. errmsg The error message or diagnosti...
doc_8980
Create an object which operates like a regular writer but maps dictionaries onto output rows. The fieldnames parameter is a sequence of keys that identify the order in which values in the dictionary passed to the writerow() method are written to file f. The optional restval parameter specifies the value to be written i...
doc_8981
ROC Curve visualization. It is recommend to use plot_roc_curve to create a visualizer. All parameters are stored as attributes. Read more in the User Guide. Parameters fprndarray False positive rate. tprndarray True positive rate. roc_aucfloat, default=None Area under ROC curve. If None, the roc_auc sco...
doc_8982
class ast.Store class ast.Del Variable references can be used to load the value of a variable, to assign a new value to it, or to delete it. Variable references are given a context to distinguish these cases. >>> print(ast.dump(ast.parse('a'), indent=4)) Module( body=[ Expr( value=Name(id='a...
doc_8983
See Migration guide for more details. tf.compat.v1.raw_ops.RealDiv tf.raw_ops.RealDiv( x, y, name=None ) If x and y are reals, this will return the floating-point division. Note: Div supports broadcasting. More about broadcasting here Args x A Tensor. Must be one of the following types: bfloat16, half...
doc_8984
'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_8985
Meta-estimator to regress on a transformed target. Useful for applying a non-linear transformation to the target y in regression problems. This transformation can be given as a Transformer such as the QuantileTransformer or as a function and its inverse such as log and exp. The computation during fit is: regressor.fi...
doc_8986
Create a ball kernel for restoration.rolling_ball. Parameters radiusint Radius of the ball. ndimint Number of dimensions of the ball. ndim should match the dimensionality of the image the kernel will be applied to. Returns kernelndarray The kernel containing the surface intensity of the top half of ...
doc_8987
URL encode a single string with a given encoding. Parameters s – the string to quote. charset (str) – the charset to be used. safe (Union[str, bytes]) – an optional sequence of safe characters. unsafe (Union[str, bytes]) – an optional sequence of unsafe characters. string (Union[str, bytes]) – errors (str) – ...
doc_8988
class sklearn.metrics.PrecisionRecallDisplay(precision, recall, *, average_precision=None, estimator_name=None, pos_label=None) [source] Precision Recall visualization. It is recommend to use plot_precision_recall_curve to create a visualizer. All parameters are stored as attributes. Read more in the User Guide. Par...
doc_8989
The minimum or maximum supported SSL or TLS version. These are magic constants. Their values don’t reflect the lowest and highest available TLS/SSL versions.
doc_8990
Insert x before this node in the list of nodes in the graph. Example: Before: p -> self bx -> x -> ax After: p -> x -> self bx -> ax Parameters x (Node) – The node to put before this node. Must be a member of the same graph.
doc_8991
See Migration guide for more details. tf.compat.v1.raw_ops.ScatterNdAdd tf.raw_ops.ScatterNdAdd( ref, indices, updates, use_locking=False, 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, ..., d_{Q-2}, K...
doc_8992
Calculate the width and height for a figure with a specified aspect ratio. While the height is taken from rcParams["figure.figsize"] (default: [6.4, 4.8]), the width is adjusted to match the desired aspect ratio. Additionally, it is ensured that the width is in the range [4., 16.] and the height is in the range [2., ...
doc_8993
Write the row parameter to the writer’s file object, formatted according to the current dialect. Return the return value of the call to the write method of the underlying file object. Changed in version 3.5: Added support of arbitrary iterables.
doc_8994
See Migration guide for more details. tf.compat.v1.keras.callbacks.ReduceLROnPlateau tf.keras.callbacks.ReduceLROnPlateau( monitor='val_loss', factor=0.1, patience=10, verbose=0, mode='auto', min_delta=0.0001, cooldown=0, min_lr=0, **kwargs ) Models often benefit from reducing the learning rate by a factor o...
doc_8995
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_8996
Bases: matplotlib.patches.BoxStyle._Base A box in the shape of a two-way arrow. Parameters padfloat, default: 0.3 The amount of padding around the original box. __call__(x0, y0, width, height, mutation_size, mutation_aspect=<deprecated parameter>)[source] Given the location and size of the box, return t...
doc_8997
Returns True if the DE-9IM intersection matrix for the two geometries is T*F**FFF*.
doc_8998
Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
doc_8999
Returns the year for which this view will display data, as a string. Tries the following sources, in order: The value of the YearMixin.year attribute. The value of the year argument captured in the URL pattern. The value of the year GET query argument. Raises a 404 if no valid year specification can be found.