_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_1400
Return a new view of the dictionary’s values. See the documentation of view objects. An equality comparison between one dict.values() view and another will always return False. This also applies when comparing dict.values() to itself: >>> d = {'a': 1} >>> d.values() == d.values() False
doc_1401
Alias for set_fontstretch.
doc_1402
Set the vertices of the polygon. Parameters xy(N, 2) array-like The coordinates of the vertices. Notes Unlike Path, we do not ignore the last input vertex. If the polygon is meant to be closed, and the last point of the polygon is not equal to the first, we assume that the user has not explicitly passed a C...
doc_1403
Return a frame object from the call stack. If optional integer depth is given, return the frame object that many calls below the top of the stack. If that is deeper than the call stack, ValueError is raised. The default for depth is zero, returning the frame at the top of the call stack. Raises an auditing event sys._g...
doc_1404
Bind function func to event s. Parameters sstr One of the following events ids: 'button_press_event' 'button_release_event' 'draw_event' 'key_press_event' 'key_release_event' 'motion_notify_event' 'pick_event' 'resize_event' 'scroll_event' 'figure_enter_event', 'figure_leave_event', 'axes_enter_event', 'axes_l...
doc_1405
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct...
doc_1406
Pop an item from the dict.
doc_1407
Set the canvas that contains the figure Parameters canvasFigureCanvas
doc_1408
class sklearn.random_projection.SparseRandomProjection(n_components='auto', *, density='auto', eps=0.1, dense_output=False, random_state=None) [source] Reduce dimensionality through sparse random projection. Sparse random matrix is an alternative to dense random projection matrix that guarantees similar embedding qua...
doc_1409
See Migration guide for more details. tf.compat.v1.app.flags.EnumParser tf.compat.v1.flags.EnumParser( enum_values, case_sensitive=True ) Args enum_values [str], a non-empty list of string values in the enum. case_sensitive bool, whether or not the enum is to be case-sensitive. Raises Va...
doc_1410
Return True if the symbol is created from an import statement.
doc_1411
[Deprecated] Notes Deprecated since version 3.5:
doc_1412
See Migration guide for more details. tf.compat.v1.raw_ops.MultiDeviceIteratorToStringHandle tf.raw_ops.MultiDeviceIteratorToStringHandle( multi_device_iterator, name=None ) Args multi_device_iterator A Tensor of type resource. A MultiDeviceIterator resource. name A name for the operation (optiona...
doc_1413
Flush the GUI events for the figure. Interactive backends need to reimplement this method.
doc_1414
Performs DBSCAN extraction for an arbitrary epsilon. Extracting the clusters runs in linear time. Note that this results in labels_ which are close to a DBSCAN with similar settings and eps, only if eps is close to max_eps. Parameters reachabilityarray of shape (n_samples,) Reachability distances calculated by ...
doc_1415
Draw samples from a noncentral chi-square distribution. The noncentral \(\chi^2\) distribution is a generalization of the \(\chi^2\) distribution. Parameters dffloat or array_like of floats Degrees of freedom, must be > 0. Changed in version 1.10.0: Earlier NumPy versions required dfnum > 1. noncfloat or ar...
doc_1416
Sets whether PyTorch operations must use “deterministic” algorithms. That is, algorithms which, given the same input, and when run on the same software and hardware, always produce the same output. When True, operations will use deterministic algorithms when available, and if only nondeterministic algorithms are avai...
doc_1417
If newindex is specified, sets the combobox value to the element position newindex. Otherwise, returns the index of the current value or -1 if the current value is not in the values list.
doc_1418
This is similar to str.format(), except that it is appropriate for building up HTML fragments. All args and kwargs are passed through conditional_escape() before being passed to str.format(). For the case of building up small HTML fragments, this function is to be preferred over string interpolation using % or str.form...
doc_1419
tf.compat.v1.keras.layers.LSTM( units, activation='tanh', recurrent_activation='hard_sigmoid', use_bias=True, kernel_initializer='glorot_uniform', recurrent_initializer='orthogonal', bias_initializer='zeros', unit_forget_bias=True, kernel_regularizer=None, recurrent_regularizer=None, bias_regula...
doc_1420
Start a new thread and return its identifier. The thread executes the function function with the argument list args (which must be a tuple). The optional kwargs argument specifies a dictionary of keyword arguments. When the function returns, the thread silently exits. When the function terminates with an unhandled exce...
doc_1421
start time of a cdrom track get_track_start(track) -> seconds Return the absolute time in seconds where at start of the cdrom track. Note, track 0 is the first track on the CD. Track numbers start at zero.
doc_1422
Return an iterator object. The object is required to support the iterator protocol described below. If a container supports different types of iteration, additional methods can be provided to specifically request iterators for those iteration types. (An example of an object supporting multiple forms of iteration would ...
doc_1423
Returns the value specified for option in style. If state is specified, it is expected to be a sequence of one or more states. If the default argument is set, it is used as a fallback value in case no specification for option is found. To check what font a Button uses by default: from tkinter import ttk print(ttk.Styl...
doc_1424
Returns the current value of the configuration option given by option. Option may be any of the configuration options.
doc_1425
This property returns the data for this BoundField extracted by the widget’s value_from_datadict() method, or None if it wasn’t given: >>> unbound_form = ContactForm() >>> print(unbound_form['subject'].data) None >>> bound_form = ContactForm(data={'subject': 'My Subject'}) >>> print(bound_form['subject'].data) My Subje...
doc_1426
Return whether the artist is animated.
doc_1427
Installs activation scripts appropriate to the platform into the virtual environment.
doc_1428
math.ceil(x) Return the ceiling of x, the smallest integer greater than or equal to x. If x is not a float, delegates to x.__ceil__(), which should return an Integral value. math.comb(n, k) Return the number of ways to choose k items from n items without repetition and without order. Evaluates to n! / (k! * (n ...
doc_1429
Given a Tensor quantized by linear (affine) per-channel quantization, returns the index of dimension on which per-channel quantization is applied.
doc_1430
Return the set of valid signal numbers on this platform. This can be less than range(1, NSIG) if some signals are reserved by the system for internal use. New in version 3.8.
doc_1431
See Migration guide for more details. tf.compat.v1.raw_ops.Reciprocal tf.raw_ops.Reciprocal( x, name=None ) I.e., \(y = 1 / x\). Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, int8, int16, int32, int64, complex64, complex128. name A name for the operation (o...
doc_1432
A legacy method for finding a loader for the specified module. If this is a top-level import, path will be None. Otherwise, this is a search for a subpackage or module and path will be the value of __path__ from the parent package. If a loader cannot be found, None is returned. If find_spec() is defined, backwards-comp...
doc_1433
Compute the balanced accuracy. The balanced accuracy in binary and multiclass classification problems to deal with imbalanced datasets. It is defined as the average of recall obtained on each class. The best value is 1 and the worst value is 0 when adjusted=False. Read more in the User Guide. New in version 0.20. ...
doc_1434
Return True if it is a hard link.
doc_1435
[Deprecated] Notes Deprecated since version 3.5:
doc_1436
Resample time-series data. Convenience method for frequency conversion and resampling of time series. The object must have a datetime-like index (DatetimeIndex, PeriodIndex, or TimedeltaIndex), or the caller must pass the label of a datetime-like series/index to the on/level keyword parameter. Parameters rule:Dat...
doc_1437
Execute the SQL query of the view, through MSIViewExecute(). If params is not None, it is a record describing actual values of the parameter tokens in the query.
doc_1438
In-place version of digamma()
doc_1439
async def tcp_echo_client(message): reader, writer = await asyncio.open_connection( '127.0.0.1', 8888) print(f'Send: {message!r}') writer.write(message.encode()) await writer.drain() data = await reader.read(100) print(f'Received: {data.decode()!r}') print('Close the connection')...
doc_1440
Decorator for skipping tests if gzip doesn’t exist.
doc_1441
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_1442
Registers a backward hook on the module. The hook will be called every time the gradients with respect to module inputs are computed. The hook should have the following signature: hook(module, grad_input, grad_output) -> tuple(Tensor) or None The grad_input and grad_output are tuples that contain the gradients with re...
doc_1443
Return an instance of the test result class that should be used for this test case class (if no other result instance is provided to the run() method). For TestCase instances, this will always be an instance of TestResult; subclasses of TestCase should override this as necessary.
doc_1444
Return the default fill value for the argument object. The default filling value depends on the datatype of the input array or the type of the input scalar: datatype default bool True int 999999 float 1.e20 complex 1.e20+0j object ‘?’ string ‘N/A’ For structured types, a structured scalar is returne...
doc_1445
Check whether module is pruned by looking for forward_pre_hooks in its modules that inherit from the BasePruningMethod. Parameters module (nn.Module) – object that is either pruned or unpruned Returns binary answer to whether module is pruned. Examples >>> m = nn.Linear(5, 7) >>> print(prune.is_pruned(m)) False...
doc_1446
Return e raised to the power x, where e = 2.718281… is the base of natural logarithms. This is usually more accurate than math.e ** x or pow(math.e, x).
doc_1447
Returns the greatest common divisor of |x1| and |x2| Parameters x1, x2array_like, int Arrays of values. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). Returns yndarray or scalar The greatest common divisor of the absolute value of the input...
doc_1448
This content manager provides only a minimum interface beyond that provided by Message itself: it deals only with text, raw byte strings, and Message objects. Nevertheless, it provides significant advantages compared to the base API: get_content on a text part will return a unicode string without the application needin...
doc_1449
Return the height of the rectangle.
doc_1450
Draw samples from a Rayleigh distribution. The \(\chi\) and Weibull distributions are generalizations of the Rayleigh. Parameters scalefloat or array_like of floats, optional Scale, also equals the mode. Must be non-negative. Default is 1. sizeint or tuple of ints, optional Output shape. If the given shape ...
doc_1451
See Migration guide for more details. tf.compat.v1.estimator.LogisticRegressionHead tf.estimator.LogisticRegressionHead( weight_column=None, loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, name=None ) Uses sigmoid_cross_entropy_with_logits loss, which is the same as BinaryClassHead. The differen...
doc_1452
A compatibility alias for tobytes, with exactly the same behavior. Despite its name, it returns bytes not strs. Deprecated since version 1.19.0.
doc_1453
Mapping class that references keys weakly. Entries in the dictionary will be discarded when there is no longer a strong reference to the key. This can be used to associate additional data with an object owned by other parts of an application without adding attributes to those objects. This can be especially useful with...
doc_1454
Create a new WSGI environ dict based on the values passed. The first parameter should be the path of the request which defaults to ‘/’. The second one can either be an absolute path (in that case the host is localhost:80) or a full path to the request with scheme, netloc port and the path to the script. This accepts th...
doc_1455
Load and return the breast cancer wisconsin dataset (classification). The breast cancer dataset is a classic and very easy binary classification dataset. Classes 2 Samples per class 212(M),357(B) Samples total 569 Dimensionality 30 Features real, positive Read more in the User Guide. Parameters return...
doc_1456
Set the markevery property to subsample the plot when using markers. e.g., if every=5, every 5-th marker will be plotted. Parameters everyNone or int or (int, int) or slice or list[int] or float or (float, float) or list[bool] Which markers to plot. every=None: every point will be plotted. every=N: every N-t...
doc_1457
Insert scalar into an array (scalar is cast to array’s dtype, if possible) There must be at least 1 argument, and define the last argument as item. Then, a.itemset(*args) is equivalent to but faster than a[args] = item. The item should be a scalar value and args must select a single item in the array a. Parameters ...
doc_1458
Return True if the string ends with the specified suffix, otherwise return False. suffix can also be a tuple of suffixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position.
doc_1459
Difference of number of memory blocks between the old and the new snapshots (int): 0 if the memory blocks have been allocated in the new snapshot.
doc_1460
Allow an application to set the locale for errors and warnings. SAX parsers are not required to provide localization for errors and warnings; if they cannot support the requested locale, however, they must raise a SAX exception. Applications may request a locale change in the middle of a parse.
doc_1461
tf.compat.v1.metrics.recall( labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None ) The recall function creates two local variables, true_positives and false_negatives, that are used to compute the recall. This value is ultimately returned as recall, an idempotent op...
doc_1462
Construct a StackSummary object from a supplied list of FrameSummary objects or old-style list of tuples. Each tuple should be a 4-tuple with filename, lineno, name, line as the elements.
doc_1463
Return True if automatic collection is enabled.
doc_1464
Fit the model according to the given training data and parameters. Changed in version 0.19: store_covariances has been moved to main constructor as store_covariance Changed in version 0.19: tol has been moved to main constructor. Parameters Xarray-like of shape (n_samples, n_features) Training vector, where...
doc_1465
Returns True if semaphore can not be acquired immediately.
doc_1466
sklearn.datasets.make_friedman1(n_samples=100, n_features=10, *, noise=0.0, random_state=None) [source] Generate the “Friedman #1” regression problem. This dataset is described in Friedman [1] and Breiman [2]. Inputs X are independent features uniformly distributed on the interval [0, 1]. The output y is created acco...
doc_1467
The version string of the OpenSSL library loaded by the interpreter: >>> ssl.OPENSSL_VERSION 'OpenSSL 1.0.2k 26 Jan 2017' New in version 3.2.
doc_1468
Create an object used to boxcar method calls. server is the eventual target of the call. Calls can be made to the result object, but they will immediately return None, and only store the call name and parameters in the MultiCall object. Calling the object itself causes all stored calls to be transmitted as a single sys...
doc_1469
The differences between consecutive elements of an array. Parameters aryarray_like If necessary, will be flattened before the differences are taken. to_endarray_like, optional Number(s) to append at the end of the returned differences. to_beginarray_like, optional Number(s) to prepend at the beginning o...
doc_1470
Called on listening channels (passive openers) when a connection can be established with a new remote endpoint that has issued a connect() call for the local endpoint. Deprecated in version 3.2; use handle_accepted() instead. Deprecated since version 3.2.
doc_1471
Axes(*args[, grid_helper]) Build an Axes in a figure. AxesZero(*args[, grid_helper]) Build an Axes in a figure. AxisArtistHelper() AxisArtistHelper should define following method with given APIs. Note that the first axes argument will be axes attribute of the caller artist.::. AxisArtistHelperRectlinear() Grid...
doc_1472
Reduces the tensor data across all machines in such a way that all get the final result. After the call tensor is going to be bitwise identical in all processes. Complex tensors are supported. Parameters tensor (Tensor) – Input and output of the collective. The function operates in-place. op (optional) – One of ...
doc_1473
Make an entry into the EventMapping table for this control.
doc_1474
Round an array to the given number of decimals. See also around equivalent function; see for details.
doc_1475
This is the base class for exceptions raised by the Parser class. It is derived from MessageError. This class is also used internally by the parser used by headerregistry.
doc_1476
class sklearn.naive_bayes.ComplementNB(*, alpha=1.0, fit_prior=True, class_prior=None, norm=False) [source] The Complement Naive Bayes classifier described in Rennie et al. (2003). The Complement Naive Bayes classifier was designed to correct the “severe assumptions” made by the standard Multinomial Naive Bayes class...
doc_1477
Return vertical sizes.
doc_1478
See Migration guide for more details. tf.compat.v1.saved_model.signature_def_utils.predict_signature_def tf.compat.v1.saved_model.predict_signature_def( inputs, outputs ) This function produces signatures intended for use with the TensorFlow Serving Predict API (tensorflow_serving/apis/prediction_service.proto)....
doc_1479
Map character sets to their email properties. This class provides information about the requirements imposed on email for a specific character set. It also provides convenience routines for converting between character sets, given the availability of the applicable codecs. Given a character set, it will do its best to ...
doc_1480
Tix maintains a list of directories under which the tix_getimage() and tix_getbitmap() methods will search for image files. The standard bitmap directory is $TIX_LIBRARY/bitmaps. The tix_addbitmapdir() method adds directory into this list. By using this method, the image files of an applications can also be located usi...
doc_1481
Send a pickled byte-string to a socket. The format of the sent byte-string is as described in the documentation for SocketHandler.makePickle().
doc_1482
Return handles and labels for legend ax.legend() is equivalent to h, l = ax.get_legend_handles_labels() ax.legend(h, l) Examples using matplotlib.axes.Axes.get_legend_handles_labels Legend guide
doc_1483
See Migration guide for more details. tf.compat.v1.experimental.function_executor_type @tf_contextlib.contextmanager tf.experimental.function_executor_type( executor_type ) Eager defined functions are functions decorated by tf.contrib.eager.defun. Args executor_type a string for the name of the executor...
doc_1484
Fit the hierarchical clustering from features or distance matrix, and return cluster labels. Parameters Xarray-like of shape (n_samples, n_features) or (n_samples, n_samples) Training instances to cluster, or distances between instances if affinity='precomputed'. yIgnored Not used, present here for API cons...
doc_1485
Convert sound fragments in u-LAW encoding to linearly encoded sound fragments. u-LAW encoding always uses 8 bits samples, so width refers only to the sample width of the output fragment here.
doc_1486
Get Bbox of the path. Parameters transformmatplotlib.transforms.Transform, optional Transform to apply to path before computing extents, if any. **kwargs Forwarded to iter_bezier. Returns matplotlib.transforms.Bbox The extents of the path Bbox([[xmin, ymin], [xmax, ymax]])
doc_1487
The week ordinal of the year. Deprecated since version 1.1.0. weekofyear and week have been deprecated. Please use DatetimeIndex.isocalendar().week instead.
doc_1488
Return immediately, allowing sounds to play asynchronously.
doc_1489
Returns the given text with ampersands, quotes and angle brackets encoded for use in HTML. The input is first coerced to a string and the output has mark_safe() applied.
doc_1490
Generate synthetic binary image with several rounded blob-like objects. Parameters lengthint, optional Linear size of output image. blob_size_fractionfloat, optional Typical linear size of blob, as a fraction of length, should be smaller than 1. n_dimint, optional Number of dimensions of output image. ...
doc_1491
Takes the power of each element in input with exponent and returns a tensor with the result. exponent can be either a single float number or a Tensor with the same number of elements as input. When exponent is a scalar value, the operation applied is: outi=xiexponent\text{out}_i = x_i ^ \text{exponent} When exponent...
doc_1492
Default return value for get_permission_denied_message(). Defaults to an empty string.
doc_1493
Registry entries subordinate to this key define the default user configuration for new users on the local computer and the user configuration for the current user.
doc_1494
tf.compat.v1.distributions.kl_divergence( distribution_a, distribution_b, allow_nan_stats=True, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed after 2019-01-01. Instructions for updating: The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/p...
doc_1495
[Deprecated] Get the subplot geometry, e.g., (2, 2, 3). Notes Deprecated since version 3.4.
doc_1496
Predict the closest cluster each sample in X belongs to. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) New data to predict. Returns labelsndarray of shape (n_samples,) Index of the cluster each sample belongs to.
doc_1497
Called when the test case test is about to be run.
doc_1498
Extract all members from the archive to the current working directory. path specifies a different directory to extract to. members is optional and must be a subset of the list returned by namelist(). pwd is the password used for encrypted files. Warning Never extract archives from untrusted sources without prior inspe...
doc_1499
Device inode resides on.