_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_6300
A timedelta stored as a 64-bit integer. See Datetimes and Timedeltas for more information. Character code 'm'
doc_6301
Create a default information message box.
doc_6302
tf.reduce_sum tf.math.reduce_sum( input_tensor, axis=None, keepdims=False, name=None ) Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which must be unique. If keepdims is true, the reduced dimensions are re...
doc_6303
Set the pick radius used for containment tests. Parameters prfloat Pick radius, in points.
doc_6304
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_6305
Recursively descend through args and look up the concrete value for each Node in the current execution environment. Parameters args (Argument) – Data structure within which to look up concrete values n (Node) – Node to which args belongs. This is only used for error reporting.
doc_6306
Translate a host name to IPv4 address format, extended interface. Return a triple (hostname, aliaslist, ipaddrlist) where hostname is the primary host name responding to the given ip_address, aliaslist is a (possibly empty) list of alternative host names for the same address, and ipaddrlist is a list of IPv4 addresses ...
doc_6307
Get a child process watcher object. Return a watcher object implementing the AbstractChildWatcher interface. This function is Unix specific.
doc_6308
In-place version of bitwise_not()
doc_6309
Return the group id.
doc_6310
Return fast binary morphological dilation of an image. This function returns the same result as greyscale dilation but performs faster for binary images. Morphological dilation sets a pixel at (i,j) to the maximum over all pixels in the neighborhood centered at (i,j). Dilation enlarges bright regions and shrinks dark...
doc_6311
Return a random element from the non-empty sequence seq. If seq is empty, raises IndexError.
doc_6312
Install an OpenerDirector instance as the default global opener. Installing an opener is only necessary if you want urlopen to use that opener; otherwise, simply call OpenerDirector.open() instead of urlopen(). The code does not check for a real OpenerDirector, and any class with the appropriate interface will work.
doc_6313
Reserved for system use.
doc_6314
See Migration guide for more details. tf.compat.v1.raw_ops.UnbatchGrad tf.raw_ops.UnbatchGrad( original_input, batch_index, grad, id, container='', shared_name='', name=None ) Acts like Batch but using the given batch_index index of batching things as they become available. This ensures that the gradients ar...
doc_6315
Return True if resize_term() would modify the window structure, False otherwise.
doc_6316
operator.__getitem__(a, b) Return the value of a at index b.
doc_6317
Print a comparison between a and b and common immediate subdirectories.
doc_6318
Returns a new tensor with the negative of the elements of input. out=−1×input\text{out} = -1 \times \text{input} Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(5) >>> a tensor([ 0.0090, -0.2262, -0.0682, -0.2866, 0.3940]...
doc_6319
tf.add Compat aliases for migration See Migration guide for more details. tf.compat.v1.add, tf.compat.v1.math.add tf.math.add( x, y, name=None ) Note: math.add supports broadcasting. AddN does not. More about broadcasting here Given two input tensors, the tf.add operation computes the sum for every element in ...
doc_6320
This is identical to the creation of a normal socket, and will use the same options for creation. Refer to the socket documentation for information on creating sockets. Changed in version 3.3: family and type arguments can be omitted.
doc_6321
A Unicode symbolic link.
doc_6322
Return the intensity profile of an image measured along a scan line. Parameters imagendarray, shape (M, N[, C]) The image, either grayscale (2D array) or multichannel (3D array, where the final axis contains the channel information). srcarray_like, shape (2, ) The coordinates of the start point of the scan ...
doc_6323
Retrieve the file filter currently in use.
doc_6324
Return True if the specified line was modified since the last call to refresh(); otherwise return False. Raise a curses.error exception if line is not valid for the given window.
doc_6325
Filter an image with the Meijering neuriteness filter. This filter can be used to detect continuous ridges, e.g. neurites, wrinkles, rivers. It can be used to calculate the fraction of the whole image containing such objects. Calculates the eigenvectors of the Hessian to compute the similarity of an image region to n...
doc_6326
Draw samples from a Wald, or inverse Gaussian, distribution. As the scale approaches infinity, the distribution becomes more like a Gaussian. Some references claim that the Wald is an inverse Gaussian with mean equal to 1, but this is by no means universal. The inverse Gaussian distribution was first studied in relat...
doc_6327
Return the value for key if key is in the dictionary, else default. Parameters key (str) – default (Optional[Any]) – Return type Any
doc_6328
Number of seconds (>= 0 and less than 1 day).
doc_6329
class ast.NotEq class ast.Lt class ast.LtE class ast.Gt class ast.GtE class ast.Is class ast.IsNot class ast.In class ast.NotIn Comparison operator tokens.
doc_6330
The array-protocol typestring of this data-type object.
doc_6331
Alias for Distance class.
doc_6332
An override to the verbose_name_plural from the model’s inner Meta class. If this isn’t given and the InlineModelAdmin.verbose_name is defined, Django will use InlineModelAdmin.verbose_name + 's'. Changed in Django 4.0: The fallback to InlineModelAdmin.verbose_name was added.
doc_6333
Interpret the input as a matrix. Unlike matrix, asmatrix does not make a copy if the input is already a matrix or an ndarray. Equivalent to matrix(data, copy=False). Parameters dataarray_like Input data. dtypedata-type Data-type of the output matrix. Returns matmatrix data interpreted as a matrix. ...
doc_6334
Returns the Python version as string 'major.minor.patchlevel'. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0).
doc_6335
The subset of drawn samples for each base estimator. Returns a dynamically generated list of indices identifying the samples used for fitting each member of the ensemble, i.e., the in-bag samples. Note: the list is re-created at each call to the property in order to reduce the object memory footprint by not storing the...
doc_6336
See Migration guide for more details. tf.compat.v1.errors.InvalidArgumentError tf.errors.InvalidArgumentError( node_def, op, message ) This may occur, for example, if an operation receives an input tensor that has an invalid value or shape. For example, the tf.matmul op will raise this error if it receives an in...
doc_6337
Set length of the ticks in points.
doc_6338
Browsers will only send cookies with requests over HTTPS if the cookie is marked “secure”. The application must be served over HTTPS for this to make sense. Default: False
doc_6339
See Migration guide for more details. tf.compat.v1.keras.utils.get_registered_name tf.keras.utils.get_registered_name( obj ) This function is part of the Keras serialization and deserialization framework. It maps objects to the string names associated with those objects for serialization/deserialization. Ar...
doc_6340
template_name: 'django/forms/widgets/textarea.html' Renders as: <textarea>...</textarea>
doc_6341
Get parameters for this estimator. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns paramsdict Parameter names mapped to their values.
doc_6342
Specifies a format string that should be used by send_error() method for building an error response to the client. The string is filled by default with variables from responses based on the status code that passed to send_error().
doc_6343
See Migration guide for more details. tf.compat.v1.raw_ops.CollectiveReduceV2 tf.raw_ops.CollectiveReduceV2( input, group_size, group_key, instance_key, merge_op, final_op, communication_hint='auto', timeout_seconds=0, name=None ) Args input A Tensor. Must be one of the following types: float32, hal...
doc_6344
Matrix product of two arrays. Parameters x1, x2array_like Input arrays, scalars not allowed. outndarray, optional A location into which the result is stored. If provided, it must have a shape that matches the signature (n,k),(k,m)->(n,m). If not provided or None, a freshly-allocated array is returned. **kw...
doc_6345
Online VB with Mini-Batch update. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Document word matrix. yIgnored Returns self
doc_6346
The concatenation of the ascii_lowercase and ascii_uppercase constants described below. This value is not locale-dependent.
doc_6347
Stack tensors in sequence depthwise (along third axis). This is equivalent to concatenation along the third axis after 1-D and 2-D tensors have been reshaped by torch.atleast_3d(). Parameters tensors (sequence of Tensors) – sequence of tensors to concatenate Keyword Arguments out (Tensor, optional) – the output ten...
doc_6348
The name of the view that matches the URL, including the namespace if there is one.
doc_6349
In-place version of erfinv()
doc_6350
Return the image value at the event position or None if the event is outside the image. See also matplotlib.artist.Artist.get_cursor_data
doc_6351
Construct an iterator from those elements of iterable for which function returns true. iterable may be either a sequence, a container which supports iteration, or an iterator. If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed. Note that filter(function, ...
doc_6352
Impute all missing values in X. Parameters Xarray-like of shape (n_samples, n_features) The input data to complete. Returns Xarray-like of shape (n_samples, n_output_features) The imputed dataset. n_output_features is the number of features that is not always missing during fit.
doc_6353
This object is a wrapper for the OGR Geometry class. These objects are instantiated directly from the given geom_input parameter, which may be a string containing WKT, HEX, GeoJSON, a buffer containing WKB data, or an OGRGeomType object. These objects are also returned from the Feature.geom attribute, when reading vect...
doc_6354
After getch() returns KEY_MOUSE to signal a mouse event, this method should be called to retrieve the queued mouse event, represented as a 5-tuple (id, x, y, z, bstate). id is an ID value used to distinguish multiple devices, and x, y, z are the event’s coordinates. (z is currently unused.) bstate is an integer value w...
doc_6355
Return an IPv4Network or IPv6Network object depending on the IP address passed as argument. address is a string or integer representing the IP network. Either IPv4 or IPv6 networks may be supplied; integers less than 2**32 will be considered to be IPv4 by default. strict is passed to IPv4Network or IPv6Network construc...
doc_6356
class sklearn.cluster.MiniBatchKMeans(n_clusters=8, *, init='k-means++', max_iter=100, batch_size=100, verbose=0, compute_labels=True, random_state=None, tol=0.0, max_no_improvement=10, init_size=None, n_init=3, reassignment_ratio=0.01) [source] Mini-Batch K-Means clustering. Read more in the User Guide. Parameters ...
doc_6357
Draws samples in [0, 1] from a power distribution with positive exponent a - 1. Also known as the power function distribution. Note New code should use the power method of a default_rng() instance instead; please see the Quick Start. Parameters afloat or array_like of floats Parameter of the distribution. Mus...
doc_6358
class type(name, bases, dict, **kwds) With one argument, return the type of an object. The return value is a type object and generally the same object as returned by object.__class__. The isinstance() built-in function is recommended for testing the type of an object, because it takes subclasses into account. With th...
doc_6359
Return whether if this path intersects another given path. If filled is True, then this also returns True if one path completely encloses the other (i.e., the paths are treated as filled).
doc_6360
Selects SSL version 2 as the channel encryption protocol. This protocol is not available if OpenSSL is compiled with the OPENSSL_NO_SSL2 flag. Warning SSL version 2 is insecure. Its use is highly discouraged. Deprecated since version 3.6: OpenSSL has removed support for SSLv2.
doc_6361
Return self&=value.
doc_6362
Optional. Either True or False. Default is False. Specifies whether folders in the specified location should be included. Either this or allow_files must be True.
doc_6363
Scalar method identical to the corresponding array attribute. Please see ndarray.any.
doc_6364
Return whether a MovieWriter subclass is actually available.
doc_6365
get the color value at a single pixel get_at((x, y)) -> Color Return a copy of the RGBA Color value at the given pixel. If the Surface has no per pixel alpha, then the alpha value will always be 255 (opaque). If the pixel position is outside the area of the Surface an IndexError exception will be raised. Getting and ...
doc_6366
Fit the radius neighbors classifier from the training dataset. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples, n_samples) if metric=’precomputed’ Training data. y{array-like, sparse matrix} of shape (n_samples,) or (n_samples, n_outputs) Target values. Returns s...
doc_6367
Return the id of the current process group. Availability: Unix.
doc_6368
Compute error rates for different probability thresholds. Note This metric is used for evaluation of ranking and error tradeoffs of a binary classification task. Read more in the User Guide. New in version 0.24. Parameters y_truendarray of shape (n_samples,) True binary labels. If labels are not either {-1,...
doc_6369
class sklearn.gaussian_process.kernels.Product(k1, k2) [source] The Product kernel takes two kernels \(k_1\) and \(k_2\) and combines them via \[k_{prod}(X, Y) = k_1(X, Y) * k_2(X, Y)\] Note that the __mul__ magic method is overridden, so Product(RBF(), RBF()) is equivalent to using the * operator with RBF() * RBF()...
doc_6370
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
doc_6371
Reset the internal flag to false. Subsequently, threads calling wait() will block until set() is called to set the internal flag to true again.
doc_6372
Set the artist transform. Parameters tTransform
doc_6373
The version number used to form registry keys on Windows platforms. This is stored as string resource 1000 in the Python DLL. The value is normally the first three characters of version. It is provided in the sys module for informational purposes; modifying this value has no effect on the registry keys used by Python. ...
doc_6374
Differentiate. Return a series instance of that is the derivative of the current series. Parameters mnon-negative int Find the derivative of order m. Returns new_seriesseries A new series representing the derivative. The domain is the same as the domain of the differentiated series.
doc_6375
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_6376
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_6377
sklearn.linear_model.orthogonal_mp_gram(Gram, Xy, *, n_nonzero_coefs=None, tol=None, norms_squared=None, copy_Gram=True, copy_Xy=True, return_path=False, return_n_iter=False) [source] Gram Orthogonal Matching Pursuit (OMP). Solves n_targets Orthogonal Matching Pursuit problems using only the Gram matrix X.T * X and t...
doc_6378
Set the semi-minor axis b of the annulus. Parameters bfloat
doc_6379
Return the arc sine of x, in radians. The result is between -pi/2 and pi/2.
doc_6380
draw a pie pie(surface, x, y, r, start_angle, stop_angle, color) -> None Draws an unfilled pie on the given surface. A pie is an arc() with its endpoints connected to its center. The two angle arguments are given in degrees and indicate the start and stop positions of the pie. The pie is drawn in a clockwise directio...
doc_6381
binascii.unhexlify(hexstr) Return the binary data represented by the hexadecimal string hexstr. This function is the inverse of b2a_hex(). hexstr must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise an Error exception is raised. Similar functionality (accepting only text str...
doc_6382
tf.compat.v1.convert_to_tensor_or_indexed_slices( value, dtype=None, name=None ) If value is an IndexedSlices or SparseTensor it is returned unmodified. Otherwise, it is converted to a Tensor using convert_to_tensor(). Args value An IndexedSlices, SparseTensor, or an object that can be consumed by convert...
doc_6383
Return a ctypes array allocated from shared memory. By default the return value is actually a synchronized wrapper for the array. typecode_or_type determines the type of the elements of the returned array: it is either a ctypes type or a one character typecode of the kind used by the array module. If size_or_initialize...
doc_6384
Set size thresholds for scientific notation. Parameters lims(int, int) A tuple (min_exp, max_exp) containing the powers of 10 that determine the switchover threshold. For a number representable as \(a \times 10^\mathrm{exp}\) with \(1 <= |a| < 10\), scientific notation will be used if exp <= min_exp or exp >= m...
doc_6385
codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE codecs.BOM_UTF32_LE These constants define various byte sequences, being Unicode byte order marks (BOMs) for several encodings. They are used in UTF-16 and UTF-32 d...
doc_6386
Lasso model fit with Lars using BIC or AIC for model selection The optimization objective for Lasso is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1 AIC is the Akaike information criterion and BIC is the Bayes Information criterion. Such criteria are useful to select the value of the regularization param...
doc_6387
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_6388
. (Dot.) In the default mode, this matches any character except a newline. If the DOTALL flag has been specified, this matches any character including a newline. ^ (Caret.) Matches the start of the string, and in MULTILINE mode also matches immediately after each newline. $ Matches the end of the string o...
doc_6389
Adjust a range as needed to avoid singularities. This method gets called during autoscaling, with (v0, v1) set to the data limits on the axes if the axes contains any data, or (-inf, +inf) if not. If v0 == v1 (possibly up to some floating point slop), this method returns an expanded interval around this value. If (v...
doc_6390
tf.compat.v1.layers.MaxPooling1D( pool_size, strides, padding='valid', data_format='channels_last', name=None, **kwargs ) Arguments pool_size An integer or tuple/list of a single integer, representing the size of the pooling window. strides An integer or tuple/list of a single integer, specifyin...
doc_6391
Attaches the callable fn to the future. fn will be called, with the future as its only argument, when the future is cancelled or finishes running. Added callables are called in the order that they were added and are always called in a thread belonging to the process that added them. If the callable raises an Exception ...
doc_6392
Construct a FeatureUnion from the given transformers. This is a shorthand for the FeatureUnion constructor; it does not require, and does not permit, naming the transformers. Instead, they will be given names automatically based on their types. It also does not allow weighting. Parameters *transformerslist of est...
doc_6393
Cross-validated Orthogonal Matching Pursuit model (OMP). See glossary entry for cross-validation estimator. Read more in the User Guide. Parameters copybool, default=True Whether the design matrix X must be copied by the algorithm. A false value is only helpful if X is already Fortran-ordered, otherwise a copy ...
doc_6394
tokenize.tokenize(readline) The tokenize() generator requires one argument, readline, which must be a callable object which provides the same interface as the io.IOBase.readline() method of file objects. Each call to the function should return one line of input as bytes. The generator produces 5-tuples with these mem...
doc_6395
exception asyncio.TimeoutError The operation has exceeded the given deadline. Important This exception is different from the builtin TimeoutError exception. exception asyncio.CancelledError The operation has been cancelled. This exception can be caught to perform custom operations when asyncio Tasks are cance...
doc_6396
numpy.uint16 numpy.uint32 numpy.uint64 Alias for the unsigned integer types (one of numpy.ubyte, numpy.ushort, numpy.uintc, numpy.uint and numpy.ulonglong) with the specified number of bits. Compatible with the C99 uint8_t, uint16_t, uint32_t, and uint64_t, respectively.
doc_6397
Return the path of this patch.
doc_6398
This class method is not implemented for Counter objects.
doc_6399
time_raised = models.DateTimeField(default=timezone.now, editable=False) reference = models.CharField(unique=True, max_length=20) description = models.TextField() Here's a basic ModelSerializer that we can use for creating or updating instances of CustomerReportRecord: class CustomerReportSerializer(serial...