_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_7800
This operation is identical to the compare() method, except that all NaNs signal. That is, if neither operand is a signaling NaN then any quiet NaN operand is treated as though it were a signaling NaN.
doc_7801
Set the antialiasing state for rendering. Parameters aabool or list of bools
doc_7802
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Keys are corresponding parameter and buffer names. Returns a dictionary containing a whole state of the module Return type dict Example: >>> module.state_dict().keys() ['bias',...
doc_7803
Return the font weight as a string or a number. See also font_manager.FontProperties.get_weight
doc_7804
A generic version of np.ndarray[Any, np.dtype[+ScalarType]]. Can be used during runtime for typing arrays with a given dtype and unspecified shape. New in version 1.21. Examples >>> import numpy as np >>> import numpy.typing as npt >>> print(npt.NDArray) numpy.ndarray[typing.Any, numpy.dtype[+ScalarType]] >>> pri...
doc_7805
Create an inset axes with a given width and height. Both sizes used can be specified either in inches or percentage. For example,: inset_axes(parent_axes, width='40%', height='30%', loc='lower left') creates in inset axes in the lower left corner of parent_axes which spans over 30% in height and 40% in width of the ...
doc_7806
Define the picking behavior of the artist. Parameters pickerNone or bool or float or callable This can be one of the following: None: Picking is disabled for this artist (default). A boolean: If True then picking will be enabled and the artist will fire a pick event if the mouse event is over the artist. A fl...
doc_7807
Plot horizontal lines at each y from xmin to xmax. Parameters yfloat or array-like y-indexes where to plot the lines. xmin, xmaxfloat or array-like Respective beginning and end of each line. If scalars are provided, all lines will have same length. colorslist of colors, default: rcParams["lines.color"] (d...
doc_7808
tf.compat.v1.keras.layers.CuDNNLSTM( units, kernel_initializer='glorot_uniform', recurrent_initializer='orthogonal', bias_initializer='zeros', unit_forget_bias=True, kernel_regularizer=None, recurrent_regularizer=None, bias_regularizer=None, activity_regularizer=None, kernel_constraint=None, recurre...
doc_7809
display two different custom cursors cursors.main() -> None Display an arrow or circle with crossbar cursor.
doc_7810
File-based ffmpeg writer. Frames are written to temporary files on disk and then stitched together at the end. __init__(*args, **kwargs)[source] Methods __init__(*args, **kwargs) bin_path() Return the binary path to the commandline tool used by a specific subclass. cleanup() [Deprecated] finish() Finish ...
doc_7811
Get a set containing all the valid keys for IANA time zones available anywhere on the time zone path. This is recalculated on every call to the function. This function only includes canonical zone names and does not include “special” zones such as those under the posix/ and right/ directories, or the posixrules zone. ...
doc_7812
This method is a WSGI application to generate an error page for the user. It is only invoked if an error occurs before headers are sent to the client. This method can access the current error information using sys.exc_info(), and should pass that information to start_response when calling it (as described in the “Error...
doc_7813
Return the ASCII value corresponding to the low 7 bits of c.
doc_7814
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_7815
Send data to the sock socket. Asynchronous version of socket.sendall(). This method continues to send to the socket until either all data in data has been sent or an error occurs. None is returned on success. On error, an exception is raised. Additionally, there is no way to determine how much data, if any, was success...
doc_7816
winsound.Beep(frequency, duration) Beep the PC’s speaker. The frequency parameter specifies frequency, in hertz, of the sound, and must be in the range 37 through 32,767. The duration parameter specifies the number of milliseconds the sound should last. If the system is not able to beep the speaker, RuntimeError is r...
doc_7817
Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning (AAAI 2017) Functions InceptionResNetV2(...): Instantiates the Inception-ResNet v2 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a...
doc_7818
sys.ps2 Strings specifying the primary and secondary prompt of the interpreter. These are only defined if the interpreter is in interactive mode. Their initial values in this case are '>>> ' and '... '. If a non-string object is assigned to either variable, its str() is re-evaluated each time the interpreter prepares...
doc_7819
The name of the Python codec used to convert Unicode to the output_charset. If no conversion codec is necessary, this attribute will have the same value as the input_codec.
doc_7820
The type of the time value sequence returned by gmtime(), localtime(), and strptime(). It is an object with a named tuple interface: values can be accessed by index and by attribute name. The following values are present: Index Attribute Values 0 tm_year (for example, 1993) 1 tm_mon range [1, 12] 2 tm_mday ra...
doc_7821
items() Return an iterator over (key, message) pairs, where key is a key and message is a message representation, if called as iteritems() or return a list of such pairs if called as items(). The messages are represented as instances of the appropriate format-specific Message subclass unless a custom message factory ...
doc_7822
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArraySplit tf.raw_ops.TensorArraySplit( handle, value, lengths, flow_in, name=None ) Args handle A Tensor of type mutable string. value A Tensor. lengths A Tensor of type int64. flow_in A Tensor of type float32. name ...
doc_7823
Raised to signal an error from the underlying setitimer() or getitimer() implementation. Expect this error if an invalid interval timer or a negative time is passed to setitimer(). This error is a subtype of OSError. New in version 3.3: This error used to be a subtype of IOError, which is now an alias of OSError.
doc_7824
See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingStochasticGradientDescentParameters tf.raw_ops.LoadTPUEmbeddingStochasticGradientDescentParameters( parameters, num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that loads optimization parameters into HBM...
doc_7825
Return the list of children.
doc_7826
Delete all breakpoints in filename. If none were set, an error message is returned.
doc_7827
The WSGI input stream. In general it’s a bad idea to use this one because you can easily read past the boundary. Use the stream instead.
doc_7828
Return filter function to be used for agg filter.
doc_7829
Return e raised to the power x, where e is the base of natural logarithms.
doc_7830
>>> apps.get_app_config('admin').verbose_name 'Administration' Projects and applications The term project describes a Django web application. The project Python package is defined primarily by a settings module, but it usually contains other things. For example, when you run django-admin startproject mysite you’ll get...
doc_7831
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju...
doc_7832
Dict {group name -> group labels}.
doc_7833
Derived from RuntimeError, this exception class is raised when an executor is broken for some reason, and cannot be used to submit or execute new tasks. New in version 3.7.
doc_7834
See Migration guide for more details. tf.compat.v1.keras.utils.normalize tf.keras.utils.normalize( x, axis=-1, order=2 ) Arguments x Numpy array to normalize. axis axis along which to normalize. order Normalization order (e.g. order=2 for L2 norm). Returns A normalized copy of the ...
doc_7835
See Migration guide for more details. tf.compat.v1.get_logger tf.get_logger()
doc_7836
tf.compat.v1.saved_model.main_op.main_op() Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: This function will only be available through the v1 compatibility library as tf.compat.v1.saved_model.main_op.main_op. Returns the main op including the group of ops that ...
doc_7837
The earliest representable date, date(MINYEAR, 1, 1).
doc_7838
Copy object to the system clipboard. Write a text representation of object to the system clipboard. This can be pasted into Excel, for example. Parameters excel:bool, default True Produce output in a csv format for easy pasting into excel. True, use the provided separator for csv pasting. False, write a string...
doc_7839
Shortcut for route() with methods=["DELETE"]. New in version 2.0. Parameters rule (str) – options (Any) – Return type Callable
doc_7840
lon_values, lat_valueslist of grid values. if integer is given, rough number of grids in each direction.
doc_7841
A decorator to ensure that any global state is reset before running a test. Parameters stylestr, dict, or list, optional The style(s) to apply. Defaults to ["classic", "_classic_test_patch"].
doc_7842
The masked constant is a special case of MaskedArray, with a float datatype and a null shape. It is used to test whether a specific entry of a masked array is masked, or to mask one or several entries of a masked array: >>> x = ma.array([1, 2, 3], mask=[0, 1, 0]) >>> x[1] is ma.masked True >>> x[-1] = ma.masked >>> x...
doc_7843
Compute minimum distances between one point and a set of points. This function computes for each row in X, the index of the row of Y which is closest (according to the specified distance). The minimal distances are also returned. This is mostly equivalent to calling: (pairwise_distances(X, Y=Y, metric=metric).argmin...
doc_7844
Whether the server will allow the reuse of an address. This defaults to False, and can be set in subclasses to change the policy.
doc_7845
Build a text report showing the rules of a decision tree. Note that backwards compatibility may not be supported. Parameters decision_treeobject The decision tree estimator to be exported. It can be an instance of DecisionTreeClassifier or DecisionTreeRegressor. feature_nameslist of str, default=None A list...
doc_7846
Iterate over the file yielding “chunks” of a given size. chunk_size defaults to 64 KB. This is especially useful with very large files since it allows them to be streamed off disk and avoids storing the whole file in memory.
doc_7847
Determine language value (c,f77,f90) from sources
doc_7848
The number of lines read from the source iterator. This is not the same as the number of records returned, as records can span multiple lines.
doc_7849
See Migration guide for more details. tf.compat.v1.raw_ops.ApproximateEqual tf.raw_ops.ApproximateEqual( x, y, tolerance=1e-05, name=None ) Args x A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, complex64, int64, qint8, quint8, qint32, bfloat16, uint16, complex...
doc_7850
The protocol version chosen when constructing the context. This attribute is read-only.
doc_7851
Returns an iterator over all modules in the network, yielding both the name of the module as well as the module itself. Yields (string, Module) – Tuple of name and module Note Duplicate modules are returned only once. In the following example, l will be returned only once. Example: >>> l = nn.Linear(2, 2) >>> n...
doc_7852
bytearray.isascii() Return True if the sequence is empty or all bytes in the sequence are ASCII, False otherwise. ASCII bytes are in the range 0-0x7F. New in version 3.7.
doc_7853
operator.__not__(obj) Return the outcome of not obj. (Note that there is no __not__() method for object instances; only the interpreter core defines this operation. The result is affected by the __bool__() and __len__() methods.)
doc_7854
Compute the one-dimensional discrete Fourier Transform. This function computes the one-dimensional n-point discrete Fourier Transform (DFT) with the efficient Fast Fourier Transform (FFT) algorithm [CT]. Parameters aarray_like Input array, can be complex. nint, optional Length of the transformed axis of the...
doc_7855
Alias for get_linewidth.
doc_7856
Encoding used to encode method arguments (Unicode strings and characters). The encoding attribute is inherited from the parent window when a subwindow is created, for example with window.subwin(). By default, the locale encoding is used (see locale.getpreferredencoding()). New in version 3.3.
doc_7857
Casts all parameters and buffers to dst_type. Parameters dst_type (type or string) – the desired type Returns self Return type Module
doc_7858
See Migration guide for more details. tf.compat.v1.estimator.Head Head sits on top of the model network and handles computing the outputs of the network. Given logits (or output of a hidden layer), a Head knows how to compute predictions, loss, train_op, metrics and export outputs. It is meant to: Simplify writing mo...
doc_7859
foo bar bletch and bar.pth contains: # bar package configuration bar Then the following version-specific directories are added to sys.path, in this order: /usr/local/lib/pythonX.Y/site-packages/bar /usr/local/lib/pythonX.Y/site-packages/foo Note that bletch is omitted because it doesn’t exist; the bar directory pr...
doc_7860
Run the command described by args. Wait for command to complete, then return the returncode attribute. Code needing to capture stdout or stderr should use run() instead: run(...).returncode To suppress stdout or stderr, supply a value of DEVNULL. The arguments shown above are merely some common ones. The full function...
doc_7861
Remove the specified option from the specified section. If the section does not exist, raise NoSectionError. If the option existed to be removed, return True; otherwise return False.
doc_7862
Render a string representation of the Index.
doc_7863
See torch.any()
doc_7864
The time value as returned by gmtime(), localtime(), and strptime(), and accepted by asctime(), mktime() and strftime(), is a sequence of 9 integers. The return values of gmtime(), localtime(), and strptime() also offer attribute names for individual fields. See struct_time for a description of these objects. Changed ...
doc_7865
The object the codec was attempting to encode or decode.
doc_7866
If you’d like to manually authenticate a user by comparing a plain-text password to the hashed password in the database, use the convenience function check_password(). It takes two arguments: the plain-text password to check, and the full value of a user’s password field in the database to check against, and returns Tr...
doc_7867
Return a new partialmethod descriptor which behaves like partial except that it is designed to be used as a method definition rather than being directly callable. func must be a descriptor or a callable (objects which are both, like normal functions, are handled as descriptors). When func is a descriptor (such as a nor...
doc_7868
The command or option attempted is not supported by the server. New in version 3.5.
doc_7869
bytearray.rsplit(sep=None, maxsplit=-1) Split the binary sequence into subsequences of the same type, using sep as the delimiter string. If maxsplit is given, at most maxsplit splits are done, the rightmost ones. If sep is not specified or None, any subsequence consisting solely of ASCII whitespace is a separator. Ex...
doc_7870
Bases: matplotlib.backends._backend_pdf_ps.RendererPDFPSBase The renderer handles all the drawing primitives using a graphics context instance that controls the colors/styles. create_hatch(hatch)[source] draw_gouraud_triangle(gc, points, colors, trans)[source] Draw a Gouraud-shaded triangle. Parameters gc...
doc_7871
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_7872
Casts this storage to complex double type
doc_7873
Wait until a condition evaluates to true. predicate should be a callable which result will be interpreted as a boolean value. A timeout may be provided giving the maximum time to wait. This utility method may call wait() repeatedly until the predicate is satisfied, or until a timeout occurs. The return value is the las...
doc_7874
Look up the codec for the given encoding and return its incremental decoder class or factory function. Raises a LookupError in case the encoding cannot be found or the codec doesn’t support an incremental decoder.
doc_7875
Base class for all tarfile exceptions.
doc_7876
Save an array to a binary file in NumPy .npy format. Parameters filefile, str, or pathlib.Path File or filename to which the data is saved. If file is a file-object, then the filename is unchanged. If file is a string or Path, a .npy extension will be appended to the filename if it does not already have one. ...
doc_7877
Computes the 2 dimensional discrete Fourier transform of input. Equivalent to fftn() but FFTs only the last two dimensions by default. Note The Fourier domain representation of any real signal satisfies the Hermitian property: X[i, j] = conj(X[-i, -j]). This function always returns all positive and negative frequency ...
doc_7878
bytearray.expandtabs(tabsize=8) Return a copy of the sequence where all ASCII tab characters are replaced by one or more ASCII spaces, depending on the current column and the given tab size. Tab positions occur every tabsize bytes (default is 8, giving tab positions at columns 0, 8, 16 and so on). To expand the seque...
doc_7879
The week ordinal of the year.
doc_7880
sklearn.utils.check_X_y(X, y, accept_sparse=False, *, accept_large_sparse=True, dtype='numeric', order=None, copy=False, force_all_finite=True, ensure_2d=True, allow_nd=False, multi_output=False, ensure_min_samples=1, ensure_min_features=1, y_numeric=False, estimator=None) [source] Input validation for standard estim...
doc_7881
The token buffer. It may be useful to examine this when catching exceptions.
doc_7882
Lists the contents of the specified path, returning a 2-tuple of lists; the first item being directories, the second item being files. For storage systems that aren’t able to provide such a listing, this will raise a NotImplementedError instead.
doc_7883
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_7884
>>> thing = ProductionClass() >>> thing.method = MagicMock(return_value=3) >>> thing.method(3, 4, 5, key='value') 3 >>> thing.method.assert_called_with(3, 4, 5, key='value') side_effect allows you to perform side effects, including raising an exception when a mock is called: >>> mock = Mock(side_effect=KeyError('foo')...
doc_7885
Returns a copy of x with the sign set to 0.
doc_7886
Function decorator to apply certain suppressions to a whole function.
doc_7887
class sklearn.linear_model.MultiTaskElasticNet(alpha=1.0, *, l1_ratio=0.5, fit_intercept=True, normalize=False, copy_X=True, max_iter=1000, tol=0.0001, warm_start=False, random_state=None, selection='cyclic') [source] Multi-task ElasticNet model trained with L1/L2 mixed-norm as regularizer. The optimization objective...
doc_7888
See Migration guide for more details. tf.compat.v1.string_strip, tf.compat.v1.strings.strip tf.strings.strip( input, name=None ) Args input A Tensor of type string. A string Tensor of any shape. name A name for the operation (optional). Returns A Tensor of type string.
doc_7889
See Migration guide for more details. tf.compat.v1.raw_ops.BroadcastGradientArgs tf.raw_ops.BroadcastGradientArgs( s0, s1, name=None ) This is typically used by gradient computations for a broadcasting operation. Args s0 A Tensor. Must be one of the following types: int32, int64. s1 A Tensor. Must...
doc_7890
Controls how instances of quotechar appearing inside a field should themselves be quoted. When True, the character is doubled. When False, the escapechar is used as a prefix to the quotechar. It defaults to True. On output, if doublequote is False and no escapechar is set, Error is raised if a quotechar is found in a f...
doc_7891
Return the frequency object as a string if its set, otherwise None.
doc_7892
Returns a tuple with the location of the file in the form (server, location). If the netloc is empty in the URL or points to localhost, it’s represented as None. The pathformat by default is autodetection but needs to be set when working with URLs of a specific system. The supported values are 'windows' when working wi...
doc_7893
Returns a clone of self with given hyperparameters theta. Parameters thetandarray of shape (n_dims,) The hyperparameters
doc_7894
Return the yaxis' tick lines as a list of Line2Ds.
doc_7895
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_7896
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
doc_7897
Replace headers in this object with items from another headers object and keyword arguments. To extend existing keys instead of replacing, use extend() instead. If provided, the first argument can be another Headers object, a MultiDict, dict, or iterable of pairs. Changelog New in version 1.0.
doc_7898
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_7899
Set the Figure for the OffsetBox and all its children. Parameters figFigure