_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_9400
Adds a buffer to the module. This is typically used to register a buffer that should not to be considered a model parameter. For example, BatchNorm’s running_mean is not a parameter, but is part of the module’s state. Buffers, by default, are persistent and will be saved alongside parameters. This behavior can be chang...
doc_9401
Divide data into n continuous intervals with equal probability. Returns a list of n - 1 cut points separating the intervals. Set n to 4 for quartiles (the default). Set n to 10 for deciles. Set n to 100 for percentiles which gives the 99 cuts points that separate data into 100 equal sized groups. Raises StatisticsError...
doc_9402
Return the current time, as a float value, according to the event loop’s internal monotonic clock.
doc_9403
Update the model with a single iteration over the given data. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input data. yndarray of shape (n_samples,) The target values. Returns selfreturns a trained MLP model.
doc_9404
select.kqueue()-based selector. fileno() This returns the file descriptor used by the underlying select.kqueue() object.
doc_9405
In-place version of i0()
doc_9406
Sets the value of the spinbox to value.
doc_9407
See Migration guide for more details. tf.compat.v1.string_join, tf.compat.v1.strings.join tf.strings.join( inputs, separator='', name=None ) Given a list of string tensors of same shape, performs element-wise concatenation of the strings of the same index in all tensors. tf.strings.join(['abc','def']).numpy() b...
doc_9408
Generator.device -> device Gets the current device of the generator. Example: >>> g_cpu = torch.Generator() >>> g_cpu.device device(type='cpu')
doc_9409
Return the roots of the series polynomial. Compute the roots for the series. Note that the accuracy of the roots decrease the further outside the domain they lie. Returns rootsndarray Array containing the roots of the series.
doc_9410
See Migration guide for more details. tf.compat.v1.OpError, tf.compat.v1.errors.OpError tf.errors.OpError( node_def, op, message, error_code ) Whenever possible, the session will raise a more specific subclass of OpError from the tf.errors module. Args node_def The node_def_pb2.NodeDef proto representin...
doc_9411
True if the native OS type of the environment is bytes (eg. False on Windows). New in version 3.2.
doc_9412
Return filter function to be used for agg filter.
doc_9413
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters bbool
doc_9414
Return the current object. This is useful if you want the real object behind the proxy at a time for performance reasons or because you want to pass the object into a different context. Return type Any
doc_9415
An alternate constructor that bypasses the constructor’s cache. It is identical to the primary constructor, but returns a new object on each call. This is most likely to be useful for testing or demonstration purposes, but it can also be used to create a system with a different cache invalidation strategy. Objects crea...
doc_9416
Uses get_all_permissions() to check if user_obj has the permission string perm.
doc_9417
Reverse the transformation operation Parameters Xarray of shape [n_samples, n_selected_features] The input samples. Returns X_rarray of shape [n_samples, n_original_features] X with columns of zeros inserted where features would have been removed by transform.
doc_9418
Applies the hardswish function, element-wise, as described in the paper: Searching for MobileNetV3. Hardswish(x)={0if x≤−3,xif x≥+3,x⋅(x+3)/6otherwise\text{Hardswish}(x) = \begin{cases} 0 & \text{if~} x \le -3, \\ x & \text{if~} x \ge +3, \\ x \cdot (x + 3) /6 & \text{otherwise} \end{cases} Parameters inplace – ...
doc_9419
Implements the resilient backpropagation algorithm. Parameters params (iterable) – iterable of parameters to optimize or dicts defining parameter groups lr (float, optional) – learning rate (default: 1e-2) etas (Tuple[float, float], optional) – pair of (etaminus, etaplis), that are multiplicative increase and d...
doc_9420
alias of matplotlib.backends.backend_ps.FigureCanvasPS
doc_9421
calculates the dot- or scalar-product with the other vector dot(Vector2) -> float
doc_9422
tf.optimizers.Adamax Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.Adamax tf.keras.optimizers.Adamax( learning_rate=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-07, name='Adamax', **kwargs ) It is a variant of Adam based on the infinity norm. Default paramete...
doc_9423
Test if two strings are equal. If the given strings are equal, assert_string_equal does nothing. If they are not equal, an AssertionError is raised, and the diff between the strings is shown. Parameters actualstr The string to test for equality against the expected string. desiredstr The expected string. ...
doc_9424
Returns a random permutation of integers from 0 to n - 1. Parameters n (int) – the upper bound (exclusive) Keyword Arguments generator (torch.Generator, optional) – a pseudorandom number generator for sampling out (Tensor, optional) – the output tensor. dtype (torch.dtype, optional) – the desired data type of r...
doc_9425
Create a pipe. Return a pair of file descriptors (r, w) usable for reading and writing, respectively. The new file descriptor is non-inheritable. Availability: Unix, Windows. Changed in version 3.4: The new file descriptors are now non-inheritable.
doc_9426
Return a list of the weeks in the month month of the year as full weeks. Weeks are lists of seven day numbers.
doc_9427
The maximum number of decimal places permitted.
doc_9428
You can change this attribute to a callable that accepts the cursor and the original row as a tuple and will return the real result row. This way, you can implement more advanced ways of returning results, such as returning an object that can also access columns by name. Example: import sqlite3 def dict_factory(cursor...
doc_9429
Reset the axes stack.
doc_9430
See Migration guide for more details. tf.compat.v1.raw_ops.SparseReshape tf.raw_ops.SparseReshape( input_indices, input_shape, new_shape, name=None ) This operation has the same semantics as reshape on the represented dense tensor. The input_indices are recomputed based on the requested new_shape. If one compone...
doc_9431
exception audioop.error This exception is raised on all errors, such as unknown number of bytes per sample, etc. audioop.add(fragment1, fragment2, width) Return a fragment which is the addition of the two samples passed as parameters. width is the sample width in bytes, either 1, 2, 3 or 4. Both fragments shoul...
doc_9432
Signal end of drag when the release pattern is triggered.
doc_9433
Recursive directory creation function. Like mkdir(), but makes all intermediate-level directories needed to contain the leaf directory. The mode parameter is passed to mkdir() for creating the leaf directory; see the mkdir() description for how it is interpreted. To set the file permission bits of any newly-created par...
doc_9434
Upper triangle of an array. Return a copy of an array with the elements below the k-th diagonal zeroed. For arrays with ndim exceeding 2, triu will apply to the final two axes. Please refer to the documentation for tril for further details. See also tril lower triangle of an array Examples >>> np.triu([[1,2,3],...
doc_9435
Load an image from file. Parameters fnamestring Image file name, e.g. test.jpg or URL. as_graybool, optional If True, convert color images to gray-scale (64-bit floats). Images that are already in gray-scale format are not converted. pluginstr, optional Name of plugin to use. By default, the different p...
doc_9436
See Migration guide for more details. tf.compat.v1.linalg.lstsq, tf.compat.v1.matrix_solve_ls tf.linalg.lstsq( matrix, rhs, l2_regularizer=0.0, fast=True, name=None ) matrix is a tensor of shape [..., M, N] whose inner-most 2 dimensions form M-by-N matrices. Rhs is a tensor of shape [..., M, K] whose inner-most ...
doc_9437
True if the end-of-stream marker has been reached. New in version 3.3.
doc_9438
A recursive lock object: a close analog of threading.RLock. A recursive lock must be released by the process or thread that acquired it. Once a process or thread has acquired a recursive lock, the same process or thread may acquire it again without blocking; that process or thread must release it once for each time it ...
doc_9439
Return a string, which includes extension, suitable for use as a default filename.
doc_9440
Remove any unhandled source text from the input buffer.
doc_9441
Return whether the call completed without raising an exception. Will raise ValueError if the result is not ready. Changed in version 3.7: If the result is not ready, ValueError is raised instead of AssertionError.
doc_9442
Duplicate each string in the Series or Index. Parameters repeats:int or sequence of int Same value for all (int) or different value per (sequence). Returns Series or Index of object Series or Index of repeated string objects specified by input parameter repeats. Examples >>> s = pd.Series(['a', 'b', ...
doc_9443
Set and validate the parameters of estimator. Parameters **kwargsdict Estimator parameters. Returns selfobject Estimator instance.
doc_9444
Skip the decorated test if condition is true.
doc_9445
See Migration guide for more details. tf.compat.v1.raw_ops.Enter tf.raw_ops.Enter( data, frame_name, is_constant=False, parallel_iterations=10, name=None ) This op is used together with Exit to create loops in the graph. The unique frame_name is used by the Executor to identify frames. If is_constant is true, ou...
doc_9446
Suspend execution of the calling thread until the delivery of one of the signals specified in the signal set sigset. The function accepts the signal (removes it from the pending list of signals), and returns the signal number. Availability: Unix. See the man page sigwait(3) for further information. See also pause(), pt...
doc_9447
The domain portion of the address.
doc_9448
Convert the ETags object into a python set. Per default all the weak etags are not part of this set.
doc_9449
Return a new view of the underlying mapping’s values.
doc_9450
Check whether the provided array or dtype is of the datetime64 dtype. Parameters arr_or_dtype:array-like or dtype The array or dtype to check. Returns bool Whether or not the array or dtype is of the datetime64 dtype. Examples >>> is_datetime64_any_dtype(str) False >>> is_datetime64_any_dtype(int) Fa...
doc_9451
Alias for get_edgecolor.
doc_9452
See Migration guide for more details. tf.compat.v1.ragged.cross tf.ragged.cross( inputs, name=None ) The input tensors must have rank=2, and must all have the same number of rows. The result is a RaggedTensor with the same number of rows as the inputs, where result[row] contains a list of all combinations of val...
doc_9453
Dictionary mapping names accepted by confstr() to the integer values defined for those names by the host operating system. This can be used to determine the set of names known to the system. Availability: Unix.
doc_9454
The mode as given in the constructor.
doc_9455
Transform multi-class labels to binary labels. The output of transform is sometimes referred to by some authors as the 1-of-K coding scheme. Parameters y{array, sparse matrix} of shape (n_samples,) or (n_samples, n_classes) Target values. The 2-d matrix should only contain 0 and 1, represents multilabel classif...
doc_9456
count how many times this Sound is playing get_num_channels() -> count Return the number of active channels this sound is playing on.
doc_9457
Return True if the argument is a finite number, and False if the argument is an infinity or a NaN.
doc_9458
See Migration guide for more details. tf.compat.v1.keras.constraints.Constraint Methods get_config View source get_config() __call__ View source __call__( w ) Call self as a function.
doc_9459
Socket.
doc_9460
Bases: mpl_toolkits.axisartist.axislines.GridHelperBase aux_trans : a transform from the source (curved) coordinate to target (rectilinear) coordinate. An instance of MPL's Transform (inverse transform should be defined) or a tuple of two callable objects which defines the transform and its inverse. The callables nee...
doc_9461
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalThreadPoolDataset tf.raw_ops.ExperimentalThreadPoolDataset( input_dataset, thread_pool, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. thread_pool A Tensor of type resource. A resource pro...
doc_9462
find the smallest rect containing data get_bounding_rect(min_alpha = 1) -> Rect Returns the smallest rectangular region that contains all the pixels in the surface that have an alpha value greater than or equal to the minimum alpha value. This function will temporarily lock and unlock the Surface as needed. New in p...
doc_9463
Check for availability of Fortran 90 compiler. Use it inside source generating function to ensure that setup distribution instance has been initialized. Notes True if a Fortran 90 compiler is available (because a simple Fortran 90 code was able to be compiled successfully)
doc_9464
sklearn.linear_model.PassiveAggressiveRegressor(*, C=1.0, fit_intercept=True, max_iter=1000, tol=0.001, early_stopping=False, validation_fraction=0.1, n_iter_no_change=5, shuffle=True, verbose=0, loss='epsilon_insensitive', epsilon=0.1, random_state=None, warm_start=False, average=False) [source] Passive Aggressive R...
doc_9465
See Migration guide for more details. tf.compat.v1.raw_ops.ReverseV2 tf.raw_ops.ReverseV2( tensor, axis, name=None ) NOTE tf.reverse has now changed behavior in preparation for 1.0. tf.reverse_v2 is currently an alias that will be deprecated before TF 1.0. Given a tensor, and a int32 tensor axis representing the...
doc_9466
Similar to enter_context() but expects an asynchronous context manager.
doc_9467
Computes input≥other\text{input} \geq \text{other} element-wise. The second argument can be a number or a tensor whose shape is broadcastable with the first argument. Parameters input (Tensor) – the tensor to compare other (Tensor or float) – the tensor or value to compare Keyword Arguments out (Tensor, option...
doc_9468
Base class for warning categories.
doc_9469
Draw samples from a log-normal distribution. Draw samples from a log-normal distribution with specified mean, standard deviation, and array shape. Note that the mean and standard deviation are not the values for the distribution itself, but of the underlying normal distribution it is derived from. Note New code shou...
doc_9470
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_9471
Alias for get_edgecolor.
doc_9472
See Migration guide for more details. tf.compat.v1.linalg.logm tf.linalg.logm( input, name=None ) \(log(exp(A)) = A\) This op is only defined for complex matrices. If A is positive-definite and real, then casting to a complex matrix, taking the logarithm and casting back to a real matrix will give the correct re...
doc_9473
If cookie has the named cookie-attribute, return its value. Otherwise, return default.
doc_9474
Calculate the rolling quantile. Parameters quantile:float Quantile to compute. 0 <= quantile <= 1. interpolation:{‘linear’, ‘lower’, ‘higher’, ‘midpoint’, ‘nearest’} This optional parameter specifies the interpolation method to use, when the desired quantile lies between two data points i and j: linear: ...
doc_9475
This class is used to declare a new Context Variable, e.g.: var: ContextVar[int] = ContextVar('var', default=42) The required name parameter is used for introspection and debug purposes. The optional keyword-only default parameter is returned by ContextVar.get() when no value for the variable is found in the current c...
doc_9476
See Migration guide for more details. tf.compat.v1.io.matching_files, tf.compat.v1.matching_files tf.io.matching_files( pattern, name=None ) Note that this routine only supports wildcard characters in the basename portion of the pattern, not in the directory portion. Note also that the order of filenames returne...
doc_9477
Rather than being a function, list is actually a mutable sequence type, as documented in Lists and Sequence Types — list, tuple, range.
doc_9478
class sklearn.svm.OneClassSVM(*, kernel='rbf', degree=3, gamma='scale', coef0=0.0, tol=0.001, nu=0.5, shrinking=True, cache_size=200, verbose=False, max_iter=- 1) [source] Unsupervised Outlier Detection. Estimate the support of a high-dimensional distribution. The implementation is based on libsvm. Read more in the U...
doc_9479
See Migration guide for more details. tf.compat.v1.data.experimental.from_variant tf.data.experimental.from_variant( variant, structure ) Args variant A scalar tf.variant tensor representing a dataset. structure A tf.data.experimental.Structure object representing the structure of each element in ...
doc_9480
A day archive page showing all objects in a given day. Days in the future throw a 404 error, regardless of whether any objects exist for future days, unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django...
doc_9481
Called when the test case test succeeds. The default implementation does nothing.
doc_9482
See Migration guide for more details. tf.compat.v1.keras.layers.Bidirectional tf.keras.layers.Bidirectional( layer, merge_mode='concat', weights=None, backward_layer=None, **kwargs ) Arguments layer keras.layers.RNN instance, such as keras.layers.LSTM or keras.layers.GRU. It could also be a keras.la...
doc_9483
get all track information get_all() -> [(audio, start, end, length), ...] Return a list with information for every track on the cdrom. The information consists of a tuple with four values. The audio value is True if the track contains audio data. The start, end, and length values are floating point numbers in seconds...
doc_9484
Note: Functions taking Tensor arguments can also take anything accepted by tf.convert_to_tensor. Note: Elementwise binary operations in TensorFlow follow numpy-style broadcasting. TensorFlow provides a variety of math functions including: Basic arithmetic operators and trigonometric functions. Special math function...
doc_9485
tf.experimental.numpy.geomspace( start, stop, num=50, endpoint=True, dtype=None, axis=0 ) See the NumPy documentation for numpy.geomspace.
doc_9486
Mean shift clustering using a flat kernel. Mean shift clustering aims to discover “blobs” in a smooth density of samples. It is a centroid-based algorithm, which works by updating candidates for centroids to be the mean of the points within a given region. These candidates are then filtered in a post-processing stage...
doc_9487
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_9488
Similar to parse(), but parses from a buffer string received as a parameter. string must be a str instance or a bytes-like object. Changed in version 3.5: Added support of str instances.
doc_9489
Return the underline thickness as float.
doc_9490
Return True if given object is float. Returns bool
doc_9491
The file should not be displayed in a GUI (Mac OS X 10.5+).
doc_9492
Check for __torch_function__ implementations in the elements of an iterable. Considers exact Tensor s and Parameter s non-dispatchable. :param relevant_args: Iterable or aguments to check for __torch_function__ methods. :type relevant_args: iterable Returns True if any of the elements of relevant_args have __torch_fu...
doc_9493
For each element in self, return a list of the words in the string, using sep as the delimiter string. See also char.rsplit
doc_9494
Sets the current object instance (self.object) to None.
doc_9495
See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingProximalYogiParameters tf.raw_ops.LoadTPUEmbeddingProximalYogiParameters( parameters, v, m, num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) Args parameters A Tensor of type float32. v A Tensor o...
doc_9496
Attributes base Returns a copy of the calling offset object with n=1 and all other attributes equal. delta freqstr kwds n name nanos normalize rule_code Methods __call__(*args, **kwargs) Call self as a function. rollback Roll provided date backward to next offset onl...
doc_9497
Return filter function to be used for agg filter.
doc_9498
The element type name. In a namespace-using document it may have colons in it. The value is a string.
doc_9499
Fit OneHotEncoder to X. Parameters Xarray-like, shape [n_samples, n_features] The data to determine the categories of each feature. yNone Ignored. This parameter exists only for compatibility with Pipeline. Returns self