_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_12200
Autoscale the scalar limits on the norm instance using the current array
doc_12201
The impurity-based feature importances. The higher, the more important the feature. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardin...
doc_12202
Copy the colorkey values into a 2d array array_colorkey(Surface) -> array Create a new array with the colorkey transparency value from each pixel. If the pixel matches the colorkey it will be fully transparent; otherwise it will be fully opaque. This will work on any type of Surface format. If the image has no colork...
doc_12203
This class implements reentrant lock objects. A reentrant lock must be released by the thread that acquired it. Once a thread has acquired a reentrant lock, the same thread may acquire it again without blocking; the thread must release it once for each time it has acquired it. Note that RLock is actually a factory func...
doc_12204
Update keyword parameters of the plugin itself. These parameters will typically be implemented as class properties so that they update the image or some other component.
doc_12205
A first in, first out (FIFO) queue. If maxsize is less than or equal to zero, the queue size is infinite. If it is an integer greater than 0, then await put() blocks when the queue reaches maxsize until an item is removed by get(). Unlike the standard library threading queue, the size of the queue is always known and c...
doc_12206
A document introducing theming support for Tk Using Ttk To start using Ttk, import its module: from tkinter import ttk To override the basic Tk widgets, the import should follow the Tk import: from tkinter import * from tkinter.ttk import * That code causes several tkinter.ttk widgets (Button, Checkbutton, Entry,...
doc_12207
class sklearn.mixture.GaussianMixture(n_components=1, *, covariance_type='full', tol=0.001, reg_covar=1e-06, max_iter=100, n_init=1, init_params='kmeans', weights_init=None, means_init=None, precisions_init=None, random_state=None, warm_start=False, verbose=0, verbose_interval=10) [source] Gaussian Mixture. Represent...
doc_12208
Localize tz-naive index of a Series or DataFrame to target time zone. This operation localizes the Index. To localize the values in a timezone-naive Series, use Series.dt.tz_localize(). Parameters tz:str or tzinfo axis:the axis to localize level:int, str, default None If axis ia a MultiIndex, localize a spe...
doc_12209
Equivalent to get(False).
doc_12210
Return the numeric string left-filled with zeros in a string of length width. See also char.zfill
doc_12211
Fit the model using X, y as training data. Parameters Xarray-like of shape (n_samples, n_features) Training data. yarray-like of shape (n_samples,) or (n_samples, n_targets) Target values. Xyarray-like of shape (n_samples,) or (n_samples, n_targets), default=None Xy = np.dot(X.T, y) that can be precompu...
doc_12212
See Migration guide for more details. tf.compat.v1.raw_ops.StridedSliceAssign tf.raw_ops.StridedSliceAssign( ref, begin, end, strides, value, begin_mask=0, end_mask=0, ellipsis_mask=0, new_axis_mask=0, shrink_axis_mask=0, name=None ) The values of value are assigned to the positions in the variable ref that ...
doc_12213
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_12214
Bases: matplotlib.projections.geo._GeoTransform The base Lambert transform. Create a new Lambert transform. Resolution is the number of steps to interpolate between each input line segment to approximate its path in curved Lambert space. has_inverse=True True if this transform has a corresponding inverse transfor...
doc_12215
tf.compat.v1.image.draw_bounding_boxes( images, boxes, name=None, colors=None ) Outputs a copy of images but draws on top of the pixels zero or more bounding boxes specified by the locations in boxes. The coordinates of the each bounding box in boxes are encoded as [y_min, x_min, y_max, x_max]. The bounding box co...
doc_12216
Scroll the screen or scrolling region upward by lines lines.
doc_12217
See Migration guide for more details. tf.compat.v1.betainc, tf.compat.v1.math.betainc tf.math.betainc( a, b, x, name=None ) The regularized incomplete beta integral is defined as: \(I_x(a, b) = \frac{B(x; a, b)}{B(a, b)}\) where \(B(x; a, b) = \int_0^x t^{a-1} (1 - t)^{b-1} dt\) is the incomplete beta function a...
doc_12218
Pop the list for a key from the dict. If the key is not in the dict an empty list is returned. Changelog Changed in version 0.5: If the key does no longer exist a list is returned instead of raising an error.
doc_12219
Context manager catching threading.Thread exception using threading.excepthook(). Attributes set when an exception is catched: exc_type exc_value exc_traceback thread See threading.excepthook() documentation. These attributes are deleted at the context manager exit. Usage: with support.catch_threading_exception() as ...
doc_12220
Find the edge magnitude using the Scharr transform. Parameters imagearray The input image. maskarray of bool, optional Clip the output image to this mask. (Values where mask=0 will be set to 0.) axisint or sequence of int, optional Compute the edge filter along this axis. If not provided, the edge magni...
doc_12221
Return the clipbox.
doc_12222
If datetime instance d is naive, this is the same as d.timetuple() except that tm_isdst is forced to 0 regardless of what d.dst() returns. DST is never in effect for a UTC time. If d is aware, d is normalized to UTC time, by subtracting d.utcoffset(), and a time.struct_time for the normalized time is returned. tm_isdst...
doc_12223
See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingRMSPropParametersGradAccumDebug tf.raw_ops.LoadTPUEmbeddingRMSPropParametersGradAccumDebug( parameters, ms, mom, gradient_accumulators, num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that loads optimiza...
doc_12224
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_12225
Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each minute. Mark every minute in byminute; byminute can be an int or sequence. Default is to tick every minute: byminute=range(60) interval is the interval between each iteration. For example, if interval=2, mark every second occurrence.
doc_12226
os.MFD_ALLOW_SEALING os.MFD_HUGETLB os.MFD_HUGE_SHIFT os.MFD_HUGE_MASK os.MFD_HUGE_64KB os.MFD_HUGE_512KB os.MFD_HUGE_1MB os.MFD_HUGE_2MB os.MFD_HUGE_8MB os.MFD_HUGE_16MB os.MFD_HUGE_32MB os.MFD_HUGE_256MB os.MFD_HUGE_512MB os.MFD_HUGE_1GB os.MFD_HUGE_2GB os.MFD_HUGE_16GB These flags can...
doc_12227
Return the dot product of two vectors. The vdot(a, b) function handles complex numbers differently than dot(a, b). If the first argument is complex the complex conjugate of the first argument is used for the calculation of the dot product. Note that vdot handles multidimensional arrays differently than dot: it does n...
doc_12228
See Migration guide for more details. tf.compat.v1.raw_ops.ReadVariableOp tf.raw_ops.ReadVariableOp( resource, dtype, name=None ) The tensor returned by this operation is immutable. The value returned by this operation is guaranteed to be influenced by all the writes on which this operation depends directly or i...
doc_12229
Set the url for the artist. Parameters urlstr
doc_12230
Route attribute access on a class to __getattr__. This is a descriptor, used to define attributes that act differently when accessed through an instance and through a class. Instance access remains normal, but access to an attribute through a class will be routed to the class’s __getattr__ method; this is done by raisi...
doc_12231
See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.apply_channel_shift tf.keras.preprocessing.image.apply_channel_shift( x, intensity, channel_axis=0 ) Arguments x Input tensor. Must be 3D. intensity Transformation intensity. channel_axis Index of axis for channels ...
doc_12232
Replace special characters in string using the %xx escape. Letters, digits, and the characters '_.-~' are never quoted. By default, this function is intended for quoting the path section of a URL. The optional safe parameter specifies additional ASCII characters that should not be quoted — its default value is '/'. str...
doc_12233
Return the current collection thresholds as a tuple of (threshold0, threshold1, threshold2).
doc_12234
queue a sound file to follow the current queue(filename) -> None This will load a sound file and queue it. A queued sound file will begin as soon as the current sound naturally ends. Only one sound can be queued at a time. Queuing a new sound while another sound is queued will result in the new sound becoming the que...
doc_12235
The last colorbar associated with this ScalarMappable. May be None.
doc_12236
Like AddConstraint, but avoids validating the constraint on existing rows.
doc_12237
Set focus on TurtleScreen (in order to collect key-events). Dummy arguments are provided in order to be able to pass listen() to the onclick method.
doc_12238
Return whether this Text object uses TeX for rendering.
doc_12239
Fit estimator and transform dataset. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Input data used to build forests. Use dtype=np.float32 for maximum efficiency. yIgnored Not used, present for API consistency by convention. sample_weightarray-like of shape (n_samples,), default=...
doc_12240
See Migration guide for more details. tf.compat.v1.test.is_built_with_cuda tf.test.is_built_with_cuda()
doc_12241
Like RemoveIndex, but removes the index with the CONCURRENTLY option. This has a few caveats to be aware of when using this option, see the PostgreSQL documentation.
doc_12242
See Migration guide for more details. tf.compat.v1.raw_ops.MutexLock tf.raw_ops.MutexLock( mutex, name=None ) is alive, any other request to use MutexLock with this mutex will wait. This is particularly useful for creating a critical section when used in conjunction with MutexLockIdentity: mutex = mutex_v2( s...
doc_12243
Applies a bilinear transformation to the incoming data: y=x1TAx2+by = x_1^T A x_2 + b Shape: input1: (N,∗,Hin1)(N, *, H_{in1}) where Hin1=in1_featuresH_{in1}=\text{in1\_features} and ∗* means any number of additional dimensions. All but the last dimension of the inputs should be the same. input2: (N,∗,Hin2)(N, *...
doc_12244
tf.math.special.bessel_i0e Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.bessel_i0e, tf.compat.v1.math.special.bessel_i0e tf.math.bessel_i0e( x, name=None ) Modified Bessel function of order 0. tf.math.special.bessel_i0e([-1., -0.5, 0.5, 1.]).numpy() array([0.46575961, 0.6...
doc_12245
See Migration guide for more details. tf.compat.v1.raw_ops.Stack tf.raw_ops.Stack( elem_type, stack_name='', name=None ) Args elem_type A tf.DType. stack_name An optional string. Defaults to "". name A name for the operation (optional). Returns A Tensor of type mutable string.
doc_12246
os.SEEK_CUR os.SEEK_END Parameters to the lseek() function. Their values are 0, 1, and 2, respectively. New in version 3.3: Some operating systems could support additional values, like os.SEEK_HOLE or os.SEEK_DATA.
doc_12247
See Migration guide for more details. tf.compat.v1.raw_ops.SerializeIterator tf.raw_ops.SerializeIterator( resource_handle, external_state_policy=0, name=None ) Args resource_handle A Tensor of type resource. A handle to an iterator resource. external_state_policy An optional int. Defaults to 0. ...
doc_12248
This method modifies the Stats object by sorting it according to the supplied criteria. The argument can be either a string or a SortKey enum identifying the basis of a sort (example: 'time', 'name', SortKey.TIME or SortKey.NAME). The SortKey enums argument have advantage over the string argument in that it is more rob...
doc_12249
Returns the number of overlapping set bits overlap_area(othermask, offset) -> numbits Returns the number of overlapping set bits between between this mask and othermask. This can be useful for collision detection. An approximate collision normal can be found by calculating the gradient of the overlapping area through...
doc_12250
Copies parameters and buffers from state_dict into this module and its descendants. If strict is True, then the keys of state_dict must exactly match the keys returned by this module’s state_dict() function. Parameters state_dict (dict) – a dict containing parameters and persistent buffers. strict (bool, optiona...
doc_12251
Find local maxima of n-dimensional array. The local maxima are defined as connected sets of pixels with equal gray level (plateaus) strictly greater than the gray levels of all pixels in the neighborhood. Parameters imagendarray An n-dimensional array. selemndarray, optional A structuring element used to de...
doc_12252
Closes associated resources of this request object. This closes all file handles explicitly. You can also use the request object in a with statement which will automatically close it. Changelog New in version 0.9. Return type None
doc_12253
Return a string with information about a stack entry, identified by a (frame, lineno) tuple: The canonical form of the filename which contains the frame. The function name, or "<lambda>". The input arguments. The return value. The line of code (if it exists).
doc_12254
Compute the embedding vectors for data X and transform X. Parameters Xarray-like of shape [n_samples, n_features] training set. yIgnored Returns X_newarray-like, shape (n_samples, n_components)
doc_12255
Bases: torch.distributions.distribution.Distribution Creates a one-hot categorical distribution parameterized by probs or logits. Samples are one-hot coded vectors of size probs.size(-1). Note The probs argument must be non-negative, finite and have a non-zero sum, and it will be normalized to sum to 1 along the las...
doc_12256
tf.atan2 Compat aliases for migration See Migration guide for more details. tf.compat.v1.atan2, tf.compat.v1.math.atan2 tf.math.atan2( y, x, name=None ) This is the angle ( \theta \in [-\pi, \pi] ) such that [ x = r \cos(\theta) ] and [ y = r \sin(\theta) ] where (r = \sqrt(x^2 + y^2) ). Args y A Tensor...
doc_12257
Create a boolean mask from an array. Return m as a boolean mask, creating a copy if necessary or requested. The function can accept any sequence that is convertible to integers, or nomask. Does not require that contents must be 0s and 1s, values of 0 are interpreted as False, everything else as True. Parameters m...
doc_12258
See Migration guide for more details. tf.compat.v1.nn.selu tf.nn.selu( features, name=None ) if < 0, scale * features otherwise. To be used together with initializer = tf.variance_scaling_initializer(factor=1.0, mode='FAN_IN'). For correct dropout, use tf.contrib.nn.alpha_dropout. See Self-Normalizing Neural Net...
doc_12259
Set the positions of the events.
doc_12260
Applies Instance Normalization over a 4D input (a mini-batch of 2D inputs with additional channel dimension) as described in the paper Instance Normalization: The Missing Ingredient for Fast Stylization. y=x−E[x]Var[x]+ϵ∗γ+βy = \frac{x - \mathrm{E}[x]}{ \sqrt{\mathrm{Var}[x] + \epsilon}} * \gamma + \beta The mean a...
doc_12261
Return len(self).
doc_12262
Transform discretized data back to original feature space. Note that this function does not regenerate the original data due to discretization rounding. Parameters Xtarray-like of shape (n_samples, n_features) Transformed data in the binned space. Returns Xinvndarray, dtype={np.float32, np.float64} Data...
doc_12263
Apply function func group-wise and combine the results together. The function passed to apply must take a dataframe as its first argument and return a DataFrame, Series or scalar. apply will then take care of combining the results back together into a single dataframe or series. apply is therefore a highly flexible g...
doc_12264
Boolean value that is normally False, but is set to True if an enable() command is successfully issued for the UTF8=ACCEPT capability. New in version 3.5.
doc_12265
See torch.topk()
doc_12266
@tf_contextlib.contextmanager tf.compat.v1.tpu.bfloat16_scope( name=None ) This enables variables to be read as bfloat16 type when using get_variable.
doc_12267
See Migration guide for more details. tf.compat.v1.raw_ops.CloseSummaryWriter tf.raw_ops.CloseSummaryWriter( writer, name=None ) Args writer A Tensor of type resource. name A name for the operation (optional). Returns The created Operation.
doc_12268
Rename messages in the mailbox as necessary to eliminate gaps in numbering. Entries in the sequences list are updated correspondingly. Note Already-issued keys are invalidated by this operation and should not be subsequently used.
doc_12269
bytearray.startswith(prefix[, start[, end]]) Return True if the binary data starts with the specified prefix, otherwise return False. prefix can also be a tuple of prefixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position. The prefix(es) to search f...
doc_12270
Return the current hatching pattern.
doc_12271
The path to the bytecode file.
doc_12272
Non-Negative Matrix Factorization (NMF). Find two non-negative matrices (W, H) whose product approximates the non- negative matrix X. This factorization can be used for example for dimensionality reduction, source separation or topic extraction. The objective function is: \[ \begin{align}\begin{aligned}0.5 * ||X - W...
doc_12273
bytearray.swapcase() Return a copy of the sequence with all the lowercase ASCII characters converted to their corresponding uppercase counterpart and vice-versa. For example: >>> b'Hello World'.swapcase() b'hELLO wORLD' Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyz'. U...
doc_12274
Required to query the values of a registry key.
doc_12275
Set whether to redraw after every plotting command (e.g. pyplot.xlabel).
doc_12276
See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixOrderingAMD tf.raw_ops.SparseMatrixOrderingAMD( input, name=None ) Computes the Approximate Minimum Degree (AMD) ordering for a sparse matrix. The returned permutation may be used to permute the rows and columns of the given sparse matrix. Th...
doc_12277
Bases: matplotlib.patches.Patch An arrow patch. Draws an arrow from (x, y) to (x + dx, y + dy). The width of the arrow is scaled by width. Parameters xfloat x coordinate of the arrow tail. yfloat y coordinate of the arrow tail. dxfloat Arrow length in the x direction. dyfloat Arrow length in the y d...
doc_12278
See Migration guide for more details. tf.compat.v1.audio.encode_wav tf.audio.encode_wav( audio, sample_rate, name=None ) This operation will generate a string suitable to be saved out to create a .wav audio file. It will be encoded in the 16-bit PCM format. It takes in float values in the range -1.0f to 1.0f, an...
doc_12279
__delitem__(key) discard(key) These methods immediately delete the message. The MH convention of marking a message for deletion by prepending a comma to its name is not used.
doc_12280
Efficient multi-dimensional iterator object to iterate over arrays. To get started using this object, see the introductory guide to array iteration. Parameters opndarray or sequence of array_like The array(s) to iterate over. flagssequence of str, optional Flags to control the behavior of the iterator. bu...
doc_12281
In-place version of remainder()
doc_12282
Return the string representation of a scalar dtype. Parameters sctypescalar dtype or object If a scalar dtype, the corresponding string character is returned. If an object, sctype2char tries to infer its scalar type and then return the corresponding string character. Returns typecharstr The string chara...
doc_12283
Deprecates a function and includes the deprecation in its docstring. This function is used as a decorator. It returns an object that can be used to issue a DeprecationWarning, by passing the to-be decorated function as argument, this adds warning to the to-be decorated function’s docstring and returns the new functio...
doc_12284
The get_urls method on a ModelAdmin returns the URLs to be used for that ModelAdmin in the same way as a URLconf. Therefore you can extend them as documented in URL dispatcher: from django.contrib import admin from django.template.response import TemplateResponse from django.urls import path class MyModelAdmin(admin.M...
doc_12285
Full Python path to the application, e.g. 'django.contrib.admin'. This attribute defines which application the configuration applies to. It must be set in all AppConfig subclasses. It must be unique across a Django project.
doc_12286
Return the current process-wide policy.
doc_12287
Whether the OpenSSL library has built-in support for the Next Protocol Negotiation as described in the Application Layer Protocol Negotiation. When true, you can use the SSLContext.set_npn_protocols() method to advertise which protocols you want to support. New in version 3.3.
doc_12288
Evaluates the decision function for the samples in X. Parameters Xarray-like of shape (n_samples, n_features) Returns Xndarray of shape (n_samples, n_classes * (n_classes-1) / 2) Returns the decision function of the sample for each class in the model. If decision_function_shape=’ovr’, the shape is (n_samp...
doc_12289
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
doc_12290
Fit label binarizer and transform multi-class labels to binary labels. The output of transform is sometimes referred to as the 1-of-K coding scheme. Parameters y{ndarray, sparse matrix} of shape (n_samples,) or (n_samples, n_classes) Target values. The 2-d matrix should only contain 0 and 1, represents multilab...
doc_12291
This is the base class for all exceptions that the email package can raise. It is derived from the standard Exception class and defines no additional methods.
doc_12292
Convert series to series of this class. The series is expected to be an instance of some polynomial series of one of the types supported by by the numpy.polynomial module, but could be some other class that supports the convert method. New in version 1.7.0. Parameters seriesseries The series instance to be co...
doc_12293
tf.estimator.DNNLinearCombinedEstimator( head, model_dir=None, linear_feature_columns=None, linear_optimizer='Ftrl', dnn_feature_columns=None, dnn_optimizer='Adagrad', dnn_hidden_units=None, dnn_activation_fn=tf.nn.relu, dnn_dropout=None, config=None, linear_sparse_combiner='sum' ) Note: This esti...
doc_12294
Ridge regression with built-in cross-validation. See glossary entry for cross-validation estimator. By default, it performs efficient Leave-One-Out Cross-Validation. Read more in the User Guide. Parameters alphasndarray of shape (n_alphas,), default=(0.1, 1.0, 10.0) Array of alpha values to try. Regularization ...
doc_12295
Read SAS files stored as either XPORT or SAS7BDAT format files. Parameters filepath_or_buffer:str, path object, or file-like object String, path object (implementing os.PathLike[str]), or file-like object implementing a binary read() function. The string could be a URL. Valid URL schemes include http, ftp, s3, ...
doc_12296
A subclass of HTTPException, raised if a port is given and is either non-numeric or empty.
doc_12297
sklearn.feature_selection.mutual_info_classif(X, y, *, discrete_features='auto', n_neighbors=3, copy=True, random_state=None) [source] Estimate mutual information for a discrete target variable. Mutual information (MI) [1] between two random variables is a non-negative value, which measures the dependency between the...
doc_12298
from myapp.serializers import UserSerializer from rest_framework import generics from rest_framework.permissions import IsAdminUser class UserList(generics.ListCreateAPIView): queryset = User.objects.all() serializer_class = UserSerializer permission_classes = [IsAdminUser] For more complex cases you migh...
doc_12299
Scale each feature to the [-1, 1] range without breaking the sparsity. This estimator scales each feature individually such that the maximal absolute value of each feature in the training set will be 1.0. This scaler can also be applied to sparse CSR or CSC matrices. Parameters X{array-like, sparse matrix} of sha...