_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_23700
Number of levels.
doc_23701
Test whether the artist contains the mouse event. Parameters mouseeventmatplotlib.backend_bases.MouseEvent Returns containsbool Whether any values are within the radius. detailsdict An artist-specific dictionary of details of the event context, such as which points are contained in the pick radius. Se...
doc_23702
Alias for get_linestyle.
doc_23703
tf.keras.losses.mean_squared_error, tf.keras.losses.mse, tf.keras.metrics.MSE, tf.keras.metrics.mean_squared_error, tf.keras.metrics.mse, tf.losses.MSE, tf.losses.mean_squared_error, tf.losses.mse, tf.metrics.MSE, tf.metrics.mean_squared_error, tf.metrics.mse Compat aliases for migration See Migration guide for more de...
doc_23704
Fills the input Tensor with values according to the method described in Delving deep into rectifiers: Surpassing human-level performance on ImageNet classification - He, K. et al. (2015), using a uniform distribution. The resulting tensor will have values sampled from U(−bound,bound)\mathcal{U}(-\text{bound}, \text{b...
doc_23705
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_23706
Get parameters of this kernel. 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_23707
Remove callback from the callbacks list. Returns the number of callbacks removed, which is typically 1, unless a callback was added more than once.
doc_23708
Prints a month’s calendar as returned by month().
doc_23709
Suspend execution of the calling thread for the given number of seconds. The argument may be a floating point number to indicate a more precise sleep time. The actual suspension time may be less than that requested because any caught signal will terminate the sleep() following execution of that signal’s catching routin...
doc_23710
See Migration guide for more details. tf.compat.v1.raw_ops.ShardedFilename tf.raw_ops.ShardedFilename( basename, shard, num_shards, name=None ) %s-%05d-of-%05d, basename, shard, num_shards. Args basename A Tensor of type string. shard A Tensor of type int32. num_shards A Tensor of type int32...
doc_23711
The Content-Security-Policy header adds an additional layer of security to help detect and mitigate certain types of attacks.
doc_23712
The default Matplotlib button actions for extra mouse buttons. Parameters are as for key_press_handler, except that event is a MouseEvent.
doc_23713
Start the thread’s activity. It must be called at most once per thread object. It arranges for the object’s run() method to be invoked in a separate thread of control. This method will raise a RuntimeError if called more than once on the same thread object.
doc_23714
Return a dict, associating each variable name a dict, associating each value its corresponding label. Returns dict
doc_23715
Applies Layer Normalization for last certain number of dimensions. See LayerNorm for details.
doc_23716
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_23717
Turn scientific notation on or off. See also ScalarFormatter.set_powerlimits
doc_23718
Repeat elements of an array. Refer to numpy.repeat for full documentation. See also numpy.repeat equivalent function
doc_23719
Get an Axes title. Get one of the three available Axes titles. The available titles are positioned above the Axes in the center, flush with the left edge, and flush with the right edge. Parameters loc{'center', 'left', 'right'}, str, default: 'center' Which title to return. Returns str The title text stri...
doc_23720
Return the value of an Artist's property, or print all of them. Parameters objArtist The queried artist; e.g., a Line2D, a Text, or an Axes. propertystr or None, default: None If property is 'somename', this function returns obj.get_somename(). If it's None (or unset), it prints all gettable properties from...
doc_23721
See Migration guide for more details. tf.compat.v1.estimator.experimental.stop_if_no_decrease_hook tf.estimator.experimental.stop_if_no_decrease_hook( estimator, metric_name, max_steps_without_decrease, eval_dir=None, min_steps=0, run_every_secs=60, run_every_steps=None ) Usage example: estimator = ... # Hoo...
doc_23722
Convert a JSON string to pandas object. Parameters path_or_buf:a valid JSON str, path object or file-like object Any valid string path is acceptable. The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a host is expected. A local file could be: file://localhost/path/to/t...
doc_23723
Write some data bytes to the transport. This method does not block; it buffers the data and arranges for it to be sent out asynchronously.
doc_23724
Label connected regions of an integer array. Two pixels are connected when they are neighbors and have the same value. In 2D, they can be neighbors either in a 1- or 2-connected sense. The value refers to the maximum number of orthogonal hops to consider a pixel/voxel a neighbor: 1-connectivity 2-connectivity ...
doc_23725
See Migration guide for more details. tf.compat.v1.raw_ops.RandomPoisson tf.raw_ops.RandomPoisson( shape, rate, seed=0, seed2=0, name=None ) Args shape A Tensor. Must be one of the following types: int32, int64. rate A Tensor. Must be one of the following types: half, float32, float64. seed ...
doc_23726
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_23727
operator.__truediv__(a, b) Return a / b where 2/3 is .66 rather than 0. This is also known as “true” division.
doc_23728
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_23729
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_23730
Alias for get_markersize.
doc_23731
Return x minus the mean(x). Parameters xarray or sequence Array or sequence containing the data Can have any dimensionality axisint The axis along which to take the mean. See numpy.mean for a description of this argument. See also detrend_linear Another detrend algorithm. detrend_none Another detre...
doc_23732
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_23733
Set the default colormap, and applies it to the current image if any. Parameters cmapColormap or str A colormap instance or the name of a registered colormap. See also colormaps matplotlib.cm.register_cmap matplotlib.cm.get_cmap
doc_23734
Optional. A regular expression, as a string, that FilePathField will use to filter filenames. Note that the regex will be applied to the base filename, not the full path. Example: "foo.*\.txt$", which will match a file called foo23.txt but not bar.txt or foo23.png.
doc_23735
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 clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None f...
doc_23736
A Popen creationflags parameter to specify that a new process will not inherit its parent’s console. This value cannot be used with CREATE_NEW_CONSOLE. New in version 3.7.
doc_23737
Return the list of values for the key if it is in the headers, otherwise set the header to the list of values given by default and return that. Unlike MultiDict.setlistdefault(), modifying the returned list will not affect the headers. Parameters key – The header key to get. default – An iterable of values to set ...
doc_23738
Subclasses have to override this method to implement the actual view function code. This method is called with all the arguments from the URL rule. Return type Union[Response, AnyStr, Dict[str, Any], Generator[AnyStr, None, None], Tuple[Union[Response, AnyStr, Dict[str, Any], Generator[AnyStr, None, None]], Union[Hea...
doc_23739
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalIteratorGetDevice tf.raw_ops.ExperimentalIteratorGetDevice( resource, name=None ) Args resource A Tensor of type resource. name A name for the operation (optional). Returns A Tensor of type string.
doc_23740
The address (IPv4Address) without network information. >>> interface = IPv4Interface('192.0.2.5/24') >>> interface.ip IPv4Address('192.0.2.5')
doc_23741
Draw samples from a Gamma distribution. Samples are drawn from a Gamma distribution with specified parameters, shape (sometimes designated “k”) and scale (sometimes designated “theta”), where both parameters are > 0. Parameters shapefloat or array_like of floats The shape of the gamma distribution. Must be non-...
doc_23742
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_23743
Opens the file given by name. Note that although the returned file is guaranteed to be a File object, it might actually be some subclass. In the case of remote file storage this means that reading/writing could be quite slow, so be warned.
doc_23744
Return a time corresponding to a time_string in one of the formats emitted by time.isoformat(). Specifically, this function supports strings in the format: HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]] Caution This does not support parsing arbitrary ISO 8601 strings. It is only intended as the inverse operation of ti...
doc_23745
Update a wrapper function to look like the wrapped function. The optional arguments are tuples to specify which attributes of the original function are assigned directly to the matching attributes on the wrapper function and which attributes of the wrapper function are updated with the corresponding attributes from the...
doc_23746
Return a possibly reshaped matrix. Refer to numpy.squeeze for more documentation. Parameters axisNone or int or tuple of ints, optional Selects a subset of the axes of length one in the shape. If an axis is selected with shape entry greater than one, an error is raised. Returns squeezedmatrix The matrix...
doc_23747
sklearn.utils.check_array(array, accept_sparse=False, *, accept_large_sparse=True, dtype='numeric', order=None, copy=False, force_all_finite=True, ensure_2d=True, allow_nd=False, ensure_min_samples=1, ensure_min_features=1, estimator=None) [source] Input validation on an array, list, sparse matrix or similar. By defa...
doc_23748
The session object works pretty much like an ordinary dict, with the difference that it keeps track of modifications. This is a proxy. See Notes On Proxies for more information. The following attributes are interesting: new True if the session is new, False otherwise. modified True if the session object detec...
doc_23749
Find indices where elements of v should be inserted in a to maintain order. For full documentation, see numpy.searchsorted See also numpy.searchsorted equivalent function
doc_23750
Plot filled contours. Call signature: contourf([X, Y,] Z, [levels], **kwargs) contour and contourf draw contour lines and filled contours, respectively. Except as noted, function signatures and return values are the same for both versions. Parameters X, Yarray-like, optional The coordinates of the values in Z....
doc_23751
Swap the bytes of the array elements Toggle between low-endian and big-endian data representation by returning a byteswapped array, optionally swapped in-place. Arrays of byte-strings are not swapped. The real and imaginary parts of a complex number are swapped individually. Parameters inplacebool, optional If ...
doc_23752
Return the drawn line and the resulting scan. Returns line_image(M, N) uint8 array, same shape as image An array of 0s with the scanned line set to 255. If the linewidth of the line tool is greater than 1, sets the values within the profiled polygon to 128. scan(P,) or (P, 3) array of int or float The line ...
doc_23753
User-defined signal 1. Availability: Unix.
doc_23754
tf.experimental.numpy.tile( a, reps ) See the NumPy documentation for numpy.tile.
doc_23755
Identical to copy() except that copy2() also attempts to preserve file metadata. When follow_symlinks is false, and src is a symbolic link, copy2() attempts to copy all metadata from the src symbolic link to the newly-created dst symbolic link. However, this functionality is not available on all platforms. On platforms...
doc_23756
Returns the indices that would partition this array. Refer to numpy.argpartition for full documentation. New in version 1.8.0. See also numpy.argpartition equivalent function
doc_23757
Return a bounding box that encloses the axis. It only accounts tick labels, axis label, and offsetText. If for_layout_only is True, then the width of the label (if this is an x-axis) or the height of the label (if this is a y-axis) is collapsed to near zero. This allows tight/constrained_layout to ignore too-long lab...
doc_23758
Returns a response object (a WSGI application) that, if called, redirects the client to the target location. Supported codes are 301, 302, 303, 305, 307, and 308. 300 is not supported because it’s not a real redirect and 304 because it’s the answer for a request with a request with defined If-Modified-Since headers. C...
doc_23759
Receive data from the socket. The return value is a pair (bytes, address) where bytes is a bytes object representing the data received and address is the address of the socket sending the data. See the Unix manual page recv(2) for the meaning of the optional argument flags; it defaults to zero. (The format of address d...
doc_23760
tf.metrics.Sum Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.Sum tf.keras.metrics.Sum( name='sum', dtype=None ) For example, if values is [1, 3, 5, 7] then the sum is 16. If the weights were specified as [1, 1, 0, 0] then the sum would be 4. This metric creates one...
doc_23761
Apply inverse transformation. Parameters coords(N, 2) array Destination coordinates. Returns coords(N, 2) array Source coordinates.
doc_23762
Return the alpha value used for blending - not supported on all backends.
doc_23763
Apply clustering to a projection of the normalized Laplacian. In practice Spectral Clustering is very useful when the structure of the individual clusters is highly non-convex or more generally when a measure of the center and spread of the cluster is not a suitable description of the complete cluster. For instance w...
doc_23764
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_23765
Parameters key, value (query,) – map a query and a set of key-value pairs to an output. See “Attention Is All You Need” for more details. key_padding_mask – if provided, specified padding elements in the key will be ignored by the attention. When given a binary mask and a value is True, the corresponding value o...
doc_23766
Return the snap setting. See set_snap for details.
doc_23767
See Migration guide for more details. tf.compat.v1.io.serialize_sparse tf.compat.v1.serialize_sparse( sp_input, name=None, out_type=tf.dtypes.string ) Args sp_input The input SparseTensor. name A name prefix for the returned tensors (optional). out_type The dtype to use for serialization. ...
doc_23768
Return successive r length permutations of elements in the iterable. If r is not specified or is None, then r defaults to the length of the iterable and all possible full-length permutations are generated. The permutation tuples are emitted in lexicographic ordering according to the order of the input iterable. So, if ...
doc_23769
A read-only description of the dialect in use by the parser.
doc_23770
See Migration guide for more details. tf.compat.v1.raw_ops.QueueEnqueueManyV2 tf.raw_ops.QueueEnqueueManyV2( handle, components, timeout_ms=-1, name=None ) This operation slices each component tensor along the 0th dimension to make multiple queue elements. All of the tuple components must have the same size in t...
doc_23771
Detect existing (non-missing) values. Return a boolean same-sized object indicating if the values are not NA. Non-missing values get mapped to True. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_inf_as_na = True). NA values, such as None or numpy...
doc_23772
See torch.msort()
doc_23773
Convert a label to ASCII, as specified in RFC 3490. UseSTD3ASCIIRules is assumed to be false.
doc_23774
Fit the model to data matrix X and target(s) y. Parameters Xndarray or sparse matrix of shape (n_samples, n_features) The input data. yndarray of shape (n_samples,) or (n_samples, n_outputs) The target values (class labels in classification, real numbers in regression). Returns selfreturns a trained M...
doc_23775
tf.keras.applications.resnet50.decode_predictions Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.resnet.decode_predictions, tf.compat.v1.keras.applications.resnet50.decode_predictions tf.keras.applications.resnet.decode_predictions( preds, top=5 ) Argument...
doc_23776
Return the base-2 logarithm of x. This is usually more accurate than log(x, 2). New in version 3.3. See also int.bit_length() returns the number of bits necessary to represent an integer in binary, excluding the sign and leading zeros.
doc_23777
Immutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. Parameters data:array-like (1-dimensional) dtype:NumPy dtype (default: object) If dtype is None, we find the dtype that best fits the data. If an actual dtype is provided, we coerce to that dtype i...
doc_23778
See torch.logsumexp()
doc_23779
See Migration guide for more details. tf.compat.v1.keras.applications.imagenet_utils.decode_predictions tf.keras.applications.imagenet_utils.decode_predictions( preds, top=5 ) Arguments preds Numpy array encoding a batch of predictions. top Integer, how many top-guesses to return. Defaults to 5. ...
doc_23780
Alias for set_antialiased.
doc_23781
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesGetEnsembleStates tf.raw_ops.BoostedTreesGetEnsembleStates( tree_ensemble_handle, name=None ) Args tree_ensemble_handle A Tensor of type resource. Handle to the tree ensemble. name A name for the operation (optional). R...
doc_23782
This function performs a call to get_logger() but in addition to returning the logger created by get_logger, it adds a handler which sends output to sys.stderr using format '[%(levelname)s/%(processName)s] %(message)s'.
doc_23783
RGBAxes(*args[, pad]) Parameters
doc_23784
Replace %xx escapes with their single-character equivalent. The optional encoding and errors parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the bytes.decode() method. string may be either a str or a bytes object. encoding defaults to 'utf-8'. errors defaults to 'repla...
doc_23785
This is raised when an unrecognized option is found in the argument list or when an option requiring an argument is given none. The argument to the exception is a string indicating the cause of the error. For long options, an argument given to an option which does not require one will also cause this exception to be ra...
doc_23786
By default the admin shows all fields as editable. Any fields in this option (which should be a list or tuple) will display its data as-is and non-editable; they are also excluded from the ModelForm used for creating and editing. Note that when specifying ModelAdmin.fields or ModelAdmin.fieldsets the read-only fields m...
doc_23787
Gauss-Laguerre quadrature. Computes the sample points and weights for Gauss-Laguerre quadrature. These sample points and weights will correctly integrate polynomials of degree \(2*deg - 1\) or less over the interval \([0, \inf]\) with the weight function \(f(x) = \exp(-x)\). Parameters degint Number of sample p...
doc_23788
Fit the shrunk covariance model according to the given training data and parameters. Parameters Xarray-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features. y: Ignored Not used, present for API consistency by convention. Retu...
doc_23789
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_23790
kwargs must consist of a single key, value pair. If key is in _mapping, return _mapping[value]; else, raise an appropriate ValueError. Examples >>> _api.check_getitem({"foo": "bar"}, arg=arg)
doc_23791
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_23792
Read text from clipboard and pass to read_csv. Parameters sep:str, default ‘s+’ A string or regex delimiter. The default of ‘s+’ denotes one or more whitespace characters. **kwargs See read_csv for the full argument list. Returns DataFrame A parsed DataFrame object.
doc_23793
In-place version of log1p()
doc_23794
See Migration guide for more details. tf.compat.v1.raw_ops.RestoreV2 tf.raw_ops.RestoreV2( prefix, tensor_names, shape_and_slices, dtypes, name=None ) For backward compatibility with the V1 format, this Op currently allows restoring from a V1 checkpoint as well: This Op first attempts to find the V2 index file ...
doc_23795
Provide exponentially weighted (EW) calculations. Exactly one parameter: com, span, halflife, or alpha must be provided. Parameters com:float, optional Specify decay in terms of center of mass \(\alpha = 1 / (1 + com)\), for \(com \geq 0\). span:float, optional Specify decay in terms of span \(\alpha = 2 / ...
doc_23796
Switch minor tick labeling on or off. Parameters labelOnlyBasebool If True, label ticks only at integer powers of base.
doc_23797
Bases: matplotlib.collections.PolyCollection Specialized PolyCollection for arrows. The only API method is set_UVC(), which can be used to change the size, orientation, and color of the arrows; their locations are fixed when the class is instantiated. Possibly this method will be useful in animations. Much of the wor...
doc_23798
See Migration guide for more details. tf.compat.v1.raw_ops.CollectiveGatherV2 tf.raw_ops.CollectiveGatherV2( input, group_size, group_key, instance_key, communication_hint='auto', timeout_seconds=0, name=None ) Args input A Tensor. Must be one of the following types: float32, half, float64, int32, i...
doc_23799
'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...