_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_10800 | Update the physical screen. The curses library keeps two data structures, one representing the current physical screen contents and a virtual screen representing the desired next state. The doupdate() ground updates the physical screen to match the virtual screen. The virtual screen may be updated by a noutrefresh() ca... | |
doc_10801 | Equivalent to as_string(). Allows str(msg) to produce a string containing the formatted message. | |
doc_10802 | The Age response-header field conveys the sender’s estimate of the amount of time since the response (or its revalidation) was generated at the origin server. Age values are non-negative decimal integers, representing time in seconds. | |
doc_10803 |
Find the appropriate plugin of ‘kind’ and execute it. Parameters
kind{‘imshow’, ‘imsave’, ‘imread’, ‘imread_collection’}
Function to look up.
pluginstr, optional
Plugin to load. Defaults to None, in which case the first matching plugin is used.
*args, **kwargsarguments and keyword arguments
Passed to th... | |
doc_10804 | Parameters
pen – a dictionary with some or all of the below listed keys
pendict – one or more keyword-arguments with the below listed keys as keywords Return or set the pen’s attributes in a “pen-dictionary” with the following key/value pairs: “shown”: True/False “pendown”: True/False “pencolor”: color-string ... | |
doc_10805 | Create an AIFF-C file. The default is that an AIFF-C file is created, unless the name of the file ends in '.aiff' in which case the default is an AIFF file. | |
doc_10806 | Create a new Sound object from a file or buffer object Sound(filename) -> Sound Sound(file=filename) -> Sound Sound(buffer) -> Sound Sound(buffer=buffer) -> Sound Sound(object) -> Sound Sound(file=object) -> Sound Sound(array=object) -> Sound Load a new sound buffer from a filename, a python file object or a readable... | |
doc_10807 | Add a (possibly multi-valued) header, with optional MIME parameters specified via keyword arguments. name is the header field to add. Keyword arguments can be used to set MIME parameters for the header field. Each parameter must be a string or None. Underscores in parameter names are converted to dashes, since dashes a... | |
doc_10808 |
Return the estimated number of ticks that can fit on the axis. | |
doc_10809 | A generic version of collections.abc.MappingView. Deprecated since version 3.9: collections.abc.MappingView now supports []. See PEP 585 and Generic Alias Type. | |
doc_10810 | class collections.abc.MutableSequence
class collections.abc.ByteString
ABCs for read-only and mutable sequences. Implementation note: Some of the mixin methods, such as __iter__(), __reversed__() and index(), make repeated calls to the underlying __getitem__() method. Consequently, if __getitem__() is implemented w... | |
doc_10811 | A Counter is a dict subclass for counting hashable objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The Counter class is similar to bags or multisets in other languages... | |
doc_10812 | See Migration guide for more details. tf.compat.v1.initializers.identity, tf.compat.v1.keras.initializers.identity
tf.compat.v1.keras.initializers.Identity(
gain=1.0, dtype=tf.dtypes.float32
)
Only use for 2D matrices.
Args
gain Multiplicative factor to apply to the identity matrix.
dtype Default ... | |
doc_10813 |
Sets the random number generator state. Parameters
new_state (torch.ByteTensor) – The desired state | |
doc_10814 | test if a point is inside a rectangle collidepoint(x, y) -> bool collidepoint((x,y)) -> bool Returns true if the given point is inside the rectangle. A point along the right or bottom edge is not considered to be inside the rectangle. Note For collision detection between a rect and a line the clipline() method can b... | |
doc_10815 | Registers a callable to convert the custom Python type type into one of SQLite’s supported types. The callable callable accepts as single parameter the Python value, and must return a value of the following types: int, float, str or bytes. | |
doc_10816 |
Mini-batch dictionary learning Finds a dictionary (a set of atoms) that can best be used to represent data using a sparse code. Solves the optimization problem: (U^*,V^*) = argmin 0.5 || X - U V ||_2^2 + alpha * || U ||_1
(U,V)
with || V_k ||_2 = 1 for all 0 <= k < n_components
Read more i... | |
doc_10817 |
Parameters:
message – If not None, overrides message.
code – If not None, overrides code.
allowlist – If not None, overrides allowlist.
message
The error message used by ValidationError if validation fails. Defaults to "Enter a valid email address".
code
The error code used by ValidationError if ... | |
doc_10818 |
Generates a flat, disk-shaped structuring element. A pixel is within the neighborhood if the Euclidean distance between it and the origin is no greater than radius. Parameters
radiusint
The radius of the disk-shaped structuring element. Returns
selemndarray
The structuring element where elements of the ... | |
doc_10819 | Sets the module in training mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc. Parameters
mode (bool) – whether to set training mode (True) or evaluation mode (False... | |
doc_10820 |
Spawns nprocs processes that run fn with args. If one of the processes exits with a non-zero exit status, the remaining processes are killed and an exception is raised with the cause of termination. In the case an exception was caught in the child process, it is forwarded and its traceback is included in the exceptio... | |
doc_10821 | Check if an etag is part of the set including weak and strong tags. | |
doc_10822 |
Return random integers from low (inclusive) to high (exclusive), or if endpoint=True, low (inclusive) to high (inclusive). Replaces RandomState.randint (with endpoint=False) and RandomState.random_integers (with endpoint=True) Return random integers from the “discrete uniform” distribution of the specified dtype. If ... | |
doc_10823 | tf.metrics.LogCoshError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.LogCoshError
tf.keras.metrics.LogCoshError(
name='logcosh', dtype=None
)
logcosh = log((exp(x) + exp(-x))/2), where x is the error (y_pred - y_true)
Args
name (Optional) string name of t... | |
doc_10824 |
Bases: matplotlib.patches.BoxStyle.LArrow A box in the shape of a right-pointing 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, ... | |
doc_10825 | This returns the file descriptor used by the underlying select.epoll() object. | |
doc_10826 |
Set the colormap to 'flag'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | |
doc_10827 |
Save the current figure. Call signature: savefig(fname, *, dpi='figure', format=None, metadata=None,
bbox_inches=None, pad_inches=0.1,
facecolor='auto', edgecolor='auto',
backend=None, **kwargs
)
The available output formats depend on the backend being used. Parameters
fnamestr or ... | |
doc_10828 |
Use an index array to construct a new array from a set of choices. Refer to numpy.choose for full documentation. See also numpy.choose
equivalent function | |
doc_10829 |
Compute the Silhouette Coefficient for each sample. The Silhouette Coefficient is a measure of how well samples are clustered with samples that are similar to themselves. Clustering models with a high Silhouette Coefficient are said to be dense, where samples in the same cluster are similar to each other, and well se... | |
doc_10830 | Returns users that have the given permission perm either in the "<app label>.<permission codename>" format or as a Permission instance. Returns an empty queryset if no users who have the perm found. If is_active is True (default), returns only active users, or if False, returns only inactive users. Use None to return a... | |
doc_10831 | tf.compat.v1.metrics.true_negatives(
labels, predictions, weights=None, metrics_collections=None,
updates_collections=None, name=None
)
If weights is None, weights default to 1. Use weights of 0 to mask values.
Args
labels The ground truth values, a Tensor whose dimensions must match predictions. Will... | |
doc_10832 | Object yielded by scandir() to expose the file path and other file attributes of a directory entry. scandir() will provide as much of this information as possible without making additional system calls. When a stat() or lstat() system call is made, the os.DirEntry object will cache the result. os.DirEntry instances are... | |
doc_10833 |
Draw samples from a noncentral chi-square distribution. The noncentral \(\chi^2\) distribution is a generalization of the \(\chi^2\) distribution. Note New code should use the noncentral_chisquare method of a default_rng() instance instead; please see the Quick Start. Parameters
dffloat or array_like of floats
... | |
doc_10834 | See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNBackpropV3
tf.raw_ops.CudnnRNNBackpropV3(
input, input_h, input_c, params, sequence_lengths, output, output_h, output_c,
output_backprop, output_h_backprop, output_c_backprop, reserve_space,
host_reserved, rnn_mode='lstm', input_mode='line... | |
doc_10835 | Exit dialog returning filename, if any. | |
doc_10836 |
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
angle float
animated bool
antialiased or aa bool or None
capstyle CapStyle or {'butt', 'p... | |
doc_10837 | This function is a decorator that is used to add generated special methods to classes, as described below. The dataclass() decorator examines the class to find fields. A field is defined as class variable that has a type annotation. With two exceptions described below, nothing in dataclass() examines the type specified... | |
doc_10838 |
Perform an area opening of the image. Area opening removes all bright structures of an image with a surface smaller than area_threshold. The output image is thus the largest image smaller than the input for which all local maxima have at least a surface of area_threshold pixels. Area openings are similar to morpholog... | |
doc_10839 | Return True if the symbol is declared global with a global statement. | |
doc_10840 |
Callback processing for mouse button press events. Backend derived classes should call this function on any mouse button press. (x, y) are the canvas coords ((0, 0) is lower left). button and key are as defined in MouseEvent. This method will call all functions connected to the 'button_press_event' with a MouseEvent ... | |
doc_10841 |
Draw samples from a negative binomial distribution. Samples are drawn from a negative binomial distribution with specified parameters, n successes and p probability of success where n is > 0 and p is in the interval [0, 1]. Note New code should use the negative_binomial method of a default_rng() instance instead; pl... | |
doc_10842 |
Generate the feature map approximation for X. Parameters
X{array-like}, shape (n_samples, n_features)
New data, where n_samples in the number of samples and n_features is the number of features. Returns
X_newarray-like, shape (n_samples, n_components) | |
doc_10843 |
Naive Bayes classifier for multivariate Bernoulli models. Like MultinomialNB, this classifier is suitable for discrete data. The difference is that while MultinomialNB works with occurrence counts, BernoulliNB is designed for binary/boolean features. Read more in the User Guide. Parameters
alphafloat, default=1.0... | |
doc_10844 | Inspect area below mouse for target objects while drag is performed. | |
doc_10845 | A subclass of DocTestRunner that raises an exception as soon as a failure is encountered. If an unexpected exception occurs, an UnexpectedException exception is raised, containing the test, the example, and the original exception. If the output doesn’t match, then a DocTestFailure exception is raised, containing the te... | |
doc_10846 | Return True if the element has an attribute named by namespaceURI and localName. | |
doc_10847 | tf.experimental.numpy.sinh(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.sinh. | |
doc_10848 |
Calculate the expanding 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 ... | |
doc_10849 |
Event handler; will be passed to the current figure to retrieve events. | |
doc_10850 |
Return filter function to be used for agg filter. | |
doc_10851 | See Migration guide for more details. tf.compat.v1.fake_quant_with_min_max_vars_per_channel_gradient, tf.compat.v1.quantization.fake_quant_with_min_max_vars_per_channel_gradient
tf.quantization.fake_quant_with_min_max_vars_per_channel_gradient(
gradients, inputs, min, max, num_bits=8, narrow_range=False, name=Non... | |
doc_10852 | A possibly empty tuple of Address objects representing the addresses in the group. | |
doc_10853 |
Return the CapStyle. | |
doc_10854 | tf.nn.lrn Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.local_response_normalization, tf.compat.v1.nn.lrn
tf.nn.local_response_normalization(
input, depth_radius=5, bias=1, alpha=1, beta=0.5, name=None
)
The 4-D input tensor is treated as a 3-D array of 1-D vectors (along the... | |
doc_10855 | Alias for torch.ge(). | |
doc_10856 | Represents a parsed user agent header value. This uses a basic parser to try to extract some information from the header. Parameters
environ_or_string (t.Union[str, WSGIEnvironment]) – The header value to parse, or a WSGI environ containing the header. Return type
None Deprecated since version 2.0: Will be remov... | |
doc_10857 | See Migration guide for more details. tf.compat.v1.raw_ops.ReaderReadUpToV2
tf.raw_ops.ReaderReadUpToV2(
reader_handle, queue_handle, num_records, name=None
)
Will dequeue from the input queue if necessary (e.g. when the Reader needs to start reading from a new file since it has finished with the previous file).... | |
doc_10858 | tf.compat.v1.tpu.initialize_system(
embedding_config=None, job=None, compilation_failure_closes_chips=True
)
Args
embedding_config If not None, a TPUEmbeddingConfiguration proto describing the desired configuration of the hardware embedding lookup tables. If embedding_config is None, no hardware embedding... | |
doc_10859 |
Set the learning rate of each parameter group using a cosine annealing schedule, where ηmax\eta_{max} is set to the initial lr, TcurT_{cur} is the number of epochs since the last restart and TiT_{i} is the number of epochs between two warm restarts in SGDR: ηt=ηmin+12(ηmax−ηmin)(1+cos(TcurTiπ))\eta_t = \eta_{min... | |
doc_10860 |
Array of boolean (True/False) data with missing values. This is a pandas Extension array for boolean data, under the hood represented by 2 numpy arrays: a boolean array with the data and a boolean array with the mask (True indicating missing). BooleanArray implements Kleene logic (sometimes called three-value logic) ... | |
doc_10861 | Save cookies to a file. This base class raises NotImplementedError. Subclasses may leave this method unimplemented. filename is the name of file in which to save cookies. If filename is not specified, self.filename is used (whose default is the value passed to the constructor, if any); if self.filename is None, ValueEr... | |
doc_10862 |
Predict data using the centroids_ of subclusters. Avoid computation of the row norms of X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Input data. Returns
labelsndarray of shape(n_samples,)
Labelled data. | |
doc_10863 | Makes a GET request on the provided path and returns a Response object, which is documented below. The key-value pairs in the data dictionary are used to create a GET data payload. For example: >>> c = Client()
>>> c.get('/customers/details/', {'name': 'fred', 'age': 7})
…will result in the evaluation of a GET request... | |
doc_10864 | Pops the app context. Parameters
exc (Optional[BaseException]) – Return type
None | |
doc_10865 | Defines the class this transformation outputs. It must be a Field instance. By default is the same as its lhs.output_field. | |
doc_10866 |
Set the artist's visibility. Parameters
bbool | |
doc_10867 | The attribute name of the manager, for example, 'objects', to use for the model’s _base_manager. | |
doc_10868 | Returns information about a key, as a tuple. key is an already open key, or one of the predefined HKEY_* constants. The result is a tuple of 3 items:
Index Meaning
0 An integer giving the number of sub keys this key has.
1 An integer giving the number of values this key has.
2 An integer giving when the key w... | |
doc_10869 |
Perform an indirect stable sort using a sequence of keys. Given multiple sorting keys, which can be interpreted as columns in a spreadsheet, lexsort returns an array of integer indices that describes the sort order by multiple columns. The last key in the sequence is used for the primary sort order, the second-to-las... | |
doc_10870 |
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_10871 | Set a Cookie, without checking with policy to see whether or not it should be set. | |
doc_10872 |
Call predict_log_proba on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict_log_proba. Parameters
Xindexable, length n_samples
Must fulfill the input assumptions of the underlying estimator. | |
doc_10873 |
Render the figure to hardcopy. Set the figure patch face and edge colors. This is useful because some of the GUIs have a gray figure face color background and you'll probably want to override this on hardcopy. Parameters
filenamestr or path-like or file-like
The file where the figure is saved.
dpifloat, defau... | |
doc_10874 |
Return whether this axes supports the pan/zoom button functionality. For polar axes, this is slightly misleading. Both panning and zooming are performed by the same button. Panning is performed in azimuth while zooming is done along the radial. | |
doc_10875 | Return the base-10 logarithm of x. This has the same branch cut as log(). | |
doc_10876 | Return the current DTDHandler. | |
doc_10877 |
Perform is_fitted validation for estimator. Checks if the estimator is fitted by verifying the presence of fitted attributes (ending with a trailing underscore) and otherwise raises a NotFittedError with the given message. This utility is meant to be used internally by estimators themselves, typically in their own pr... | |
doc_10878 |
Alias for set_facecolor. | |
doc_10879 | Return True if the message object has a field named name. Matching is done without regard to case and name does not include the trailing colon. Used for the in operator. For example: if 'message-id' in myMessage:
print('Message-ID:', myMessage['message-id']) | |
doc_10880 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_10881 |
Reduces, then scatters a list of tensors to all processes in a group. Parameters
output (Tensor) – Output tensor.
input_list (list[Tensor]) – List of tensors to reduce and scatter.
group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used.
async_op (bool, op... | |
doc_10882 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_10883 |
Bin continuous data into intervals. Read more in the User Guide. New in version 0.20. Parameters
n_binsint or array-like of shape (n_features,), default=5
The number of bins to produce. Raises ValueError if n_bins < 2.
encode{‘onehot’, ‘onehot-dense’, ‘ordinal’}, default=’onehot’
Method used to encode the... | |
doc_10884 | This defaults to ['/cgi-bin', '/htbin'] and describes directories to treat as containing CGI scripts. | |
doc_10885 | Return information about the transport or underlying resources it uses. name is a string representing the piece of transport-specific information to get. default is the value to return if the information is not available, or if the transport does not support querying it with the given third-party event loop implementat... | |
doc_10886 | See Migration guide for more details. tf.compat.v1.diag, tf.compat.v1.linalg.tensor_diag
tf.linalg.tensor_diag(
diagonal, name=None
)
Given a diagonal, this operation returns a tensor with the diagonal and everything else padded with zeros. The diagonal is computed as follows: Assume diagonal has dimensions [D1,... | |
doc_10887 |
Get the total number of days of the month that the Period falls in. Returns
int
See also Period.days_in_month
Return the days of the month. Period.dayofyear
Return the day of the year. Examples
>>> p = pd.Period("2018-03-11", freq='H')
>>> p.daysinmonth
31 | |
doc_10888 |
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal. | |
doc_10889 | Uses get_user_permissions() and get_group_permissions() to get the set of permission strings the user_obj has. | |
doc_10890 |
Divide one polynomial by another. Returns the quotient-with-remainder of two polynomials c1 / c2. The arguments are sequences of coefficients, from lowest order term to highest, e.g., [1,2,3] represents 1 + 2*x + 3*x**2. Parameters
c1, c2array_like
1-D arrays of polynomial coefficients ordered from low to high.... | |
doc_10891 |
Decode character string in the Series/Index using indicated encoding. Equivalent to str.decode() in python2 and bytes.decode() in python3. Parameters
encoding:str
errors:str, optional
Returns
Series or Index | |
doc_10892 |
Return proleptic Gregorian ordinal. January 1 of year 1 is day 1. | |
doc_10893 |
Attributes
allow_soft_placement bool allow_soft_placement
cluster_def ClusterDef cluster_def
device_count repeated DeviceCountEntry device_count
device_filters repeated string device_filters
experimental Experimental experimental
gpu_options GPUOptions gpu_options
graph_option... | |
doc_10894 | exception OSError(errno, strerror[, filename[, winerror[, filename2]]])
This exception is raised when a system function returns a system-related error, including I/O failures such as “file not found” or “disk full” (not for illegal argument types or other incidental errors). The second form of the constructor sets th... | |
doc_10895 | sklearn.metrics.ndcg_score(y_true, y_score, *, k=None, sample_weight=None, ignore_ties=False) [source]
Compute Normalized Discounted Cumulative Gain. Sum the true scores ranked in the order induced by the predicted scores, after applying a logarithmic discount. Then divide by the best possible score (Ideal DCG, obtai... | |
doc_10896 | See Migration guide for more details. tf.compat.v1.raw_ops.ConfigureDistributedTPU
tf.raw_ops.ConfigureDistributedTPU(
embedding_config='', tpu_embedding_config='',
is_global_init=False, enable_whole_mesh_compilations=False,
compilation_failure_closes_chips=True, name=None
)
Args
embedding_config ... | |
doc_10897 | Used for half-delay mode, which is similar to cbreak mode in that characters typed by the user are immediately available to the program. However, after blocking for tenths tenths of seconds, raise an exception if nothing has been typed. The value of tenths must be a number between 1 and 255. Use nocbreak() to leave hal... | |
doc_10898 | Matches one of the items provided. Items can either be Python identifiers or strings: Rule('/<any(about, help, imprint, class, "foo,bar"):page_name>')
Parameters
map (Map) – the Map.
items (str) – this function accepts the possible items as positional arguments. Return type
None | |
doc_10899 | tf.experimental.numpy.bitwise_not(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.bitwise_not. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.