_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_30500
Draw the text instance. Parameters gcGraphicsContextBase The graphics context. xfloat The x location of the text in display coords. yfloat The y location of the text baseline in display coords. sstr The text string. propmatplotlib.font_manager.FontProperties The font properties. anglefloat T...
doc_30501
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterSub tf.raw_ops.ResourceScatterSub( resource, indices, updates, name=None ) This operation computes # Scalar indices ref[indices, ...] -= updates[...] # Vector indices (for each i) ref[indices[i], ...] -= updates[i, ...] # High rank indic...
doc_30502
Convert a tuple or struct_time representing a time as returned by gmtime() or localtime() to a string as specified by the format argument. If t is not provided, the current time as returned by localtime() is used. format must be a string. ValueError is raised if any field in t is outside of the allowed range. 0 is a le...
doc_30503
tf.compat.v1.keras.initializers.lecun_uniform( seed=None ) With distribution="truncated_normal" or "untruncated_normal", samples are drawn from a truncated/untruncated normal distribution with a mean of zero and a standard deviation (after truncation, if used) stddev = sqrt(scale / n) where n is: number of input ...
doc_30504
Returns whether the user_obj has any permissions on the app app_label.
doc_30505
tf.experimental.numpy.dstack( tup ) See the NumPy documentation for numpy.dstack.
doc_30506
tf.initializers.Zeros, tf.initializers.zeros, tf.keras.initializers.zeros Also available via the shortcut function tf.keras.initializers.zeros. Examples: # Standalone usage: initializer = tf.keras.initializers.Zeros() values = initializer(shape=(2, 2)) # Usage in a Keras layer: initializer = tf.keras.initializers.Z...
doc_30507
Encodes the object input and returns a tuple (output object, length consumed). For instance, text encoding converts a string object to a bytes object using a particular character set encoding (e.g., cp1252 or iso-8859-1). The errors argument defines the error handling to apply. It defaults to 'strict' handling. The met...
doc_30508
Look up the codec for the given encoding and return its StreamReader class or factory function. Raises a LookupError in case the encoding cannot be found.
doc_30509
YPbPr to RGB color space conversion. Parameters ypbpr(…, 3) array_like The image in YPbPr format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in RGB format. Same dimensions as input. Raises ValueError If ypbpr is not at least 2-D with shape (…, 3). References 1 ht...
doc_30510
tf.compat.v1.keras.layers.CuDNNGRU( units, kernel_initializer='glorot_uniform', recurrent_initializer='orthogonal', bias_initializer='zeros', kernel_regularizer=None, recurrent_regularizer=None, bias_regularizer=None, activity_regularizer=None, kernel_constraint=None, recurrent_constraint=None, bias...
doc_30511
Verify that cert (in decoded format as returned by SSLSocket.getpeercert()) matches the given hostname. The rules applied are those for checking the identity of HTTPS servers as outlined in RFC 2818, RFC 5280 and RFC 6125. In addition to HTTPS, this function should be suitable for checking the identity of servers in va...
doc_30512
Return the current EntityResolver.
doc_30513
See Migration guide for more details. tf.compat.v1.raw_ops.RaggedTensorFromVariant tf.raw_ops.RaggedTensorFromVariant( encoded_ragged, input_ragged_rank, output_ragged_rank, Tvalues, Tsplits=tf.dtypes.int64, name=None ) Decodes the given variant Tensor and returns a RaggedTensor. The input could be a scalar,...
doc_30514
See Migration guide for more details. tf.compat.v1.feature_column.categorical_column_with_hash_bucket tf.feature_column.categorical_column_with_hash_bucket( key, hash_bucket_size, dtype=tf.dtypes.string ) Use this when your sparse features are in string or integer format, and you want to distribute your inputs i...
doc_30515
K-fold iterator variant with non-overlapping groups. The same group will not appear in two different folds (the number of distinct groups has to be at least equal to the number of folds). The folds are approximately balanced in the sense that the number of distinct groups is approximately the same in each fold. Read ...
doc_30516
class sklearn.preprocessing.LabelBinarizer(*, neg_label=0, pos_label=1, sparse_output=False) [source] Binarize labels in a one-vs-all fashion. Several regression and binary classification algorithms are available in scikit-learn. A simple way to extend these algorithms to the multi-class classification case is to use...
doc_30517
The Content-Encoding entity-header field is used as a modifier to the media-type. When present, its value indicates what additional content codings have been applied to the entity-body, and thus what decoding mechanisms must be applied in order to obtain the media-type referenced by the Content-Type header field.
doc_30518
sklearn.metrics.coverage_error(y_true, y_score, *, sample_weight=None) [source] Coverage error measure. Compute how far we need to go through the ranked scores to cover all true labels. The best value is equal to the average number of labels in y_true per sample. Ties in y_scores are broken by giving maximal rank tha...
doc_30519
List of database features that the current connection should have so that the model is considered during the migration phase. For example, if you set this list to ['gis_enabled'], the model will only be synchronized on GIS-enabled databases. It’s also useful to skip some models when testing with several database backen...
doc_30520
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo...
doc_30521
Gets the currently active array type. get_arraytype () -> str DEPRECATED: Returns the currently active array type. This will be a value of the get_arraytypes() tuple and indicates which type of array module is used for the array creation. New in pygame 1.8.
doc_30522
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_30523
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
doc_30524
The Date general-header field represents the date and time at which the message was originated, having the same semantics as orig-date in RFC 822. Changed in version 2.0: The datetime object is timezone-aware.
doc_30525
A short description of the command, which will be printed in the help message when the user runs the command python manage.py help <command>.
doc_30526
Return the current hatching pattern.
doc_30527
Return a list with the n smallest elements from the dataset defined by iterable. key, if provided, specifies a function of one argument that is used to extract a comparison key from each element in iterable (for example, key=str.lower). Equivalent to: sorted(iterable, key=key)[:n].
doc_30528
Returns a date string as per RFC 2822, e.g.: Fri, 09 Nov 2001 01:08:47 -0000 Optional timeval if given is a floating point time value as accepted by time.gmtime() and time.localtime(), otherwise the current time is used. Optional localtime is a flag that when True, interprets timeval, and returns a date relative to th...
doc_30529
The flag is set when the code object is a generator function, i.e. a generator object is returned when the code object is executed.
doc_30530
The name of the table to create for storing the many-to-many data. If this is not provided, Django will assume a default name based upon the names of: the table for the model defining the relationship and the name of the field itself.
doc_30531
Registers a namespace prefix. The registry is global, and any existing mapping for either the given prefix or the namespace URI will be removed. prefix is a namespace prefix. uri is a namespace uri. Tags and attributes in this namespace will be serialized with the given prefix, if at all possible. New in version 3.2.
doc_30532
Raised when an invalid or illegal string is specified.
doc_30533
tf.experimental.numpy.deg2rad( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.deg2rad.
doc_30534
Set the path effects. Parameters path_effectsAbstractPathEffect
doc_30535
Surface of the moon. This low-contrast image of the surface of the moon is useful for illustrating histogram equalization and contrast stretching. Returns moon(512, 512) uint8 ndarray Moon image.
doc_30536
Copy properties of other into self.
doc_30537
Set the artist transform. Parameters tTransform
doc_30538
sys.__stdout__ sys.__stderr__ These objects contain the original values of stdin, stderr and stdout at the start of the program. They are used during finalization, and could be useful to print to the actual standard stream no matter if the sys.std* object has been redirected. It can also be used to restore the actu...
doc_30539
See Migration guide for more details. tf.compat.v1.keras.activations.get tf.keras.activations.get( identifier ) Arguments identifier Function or string Returns Function corresponding to the input string or input function. For example: tf.keras.activations.get('softmax') <function softmax ...
doc_30540
Group identifier of the file owner.
doc_30541
Return font-specific data. Options include: ascent - distance between baseline and highest point that a character of the font can occupy descent - distance between baseline and lowest point that a character of the font can occupy linespace - minimum vertical separation necessary between any two characters of t...
doc_30542
Draw samples from an F distribution. Samples are drawn from an F distribution with specified parameters, dfnum (degrees of freedom in numerator) and dfden (degrees of freedom in denominator), where both parameters must be greater than zero. The random variate of the F distribution (also known as the Fisher distributi...
doc_30543
tf.experimental.numpy.random.seed( s ) Sets the seed for the random number generator. Uses tf.set_random_seed. Args: s: an integer. See the NumPy documentation for numpy.random.seed.
doc_30544
tf.experimental.numpy.roll( a, shift, axis=None ) See the NumPy documentation for numpy.roll.
doc_30545
Convenience method for controlling tick locators. See matplotlib.axes.Axes.locator_params() for full documentation. Note that this is for Axes3D objects, therefore, setting axis to 'both' will result in the parameters being set for all three axes. Also, axis can also take a value of 'z' to apply parameters to the z a...
doc_30546
Determine if the first argument is a subclass of the second argument. Parameters arg1, arg2dtype or dtype specifier Data-types. Returns outbool The result. See also issctype, issubdtype, obj2sctype Examples >>> np.issubsctype('S8', str) False >>> np.issubsctype(np.array([1]), int) True >>> np....
doc_30547
Parse data as JSON. Useful during testing. If the mimetype does not indicate JSON (application/json, see is_json()), this returns None. Unlike Request.get_json(), the result is not cached. Parameters force (bool) – Ignore the mimetype and always try to parse JSON. silent (bool) – Silence parsing errors and return ...
doc_30548
Used if copy.copy is called on an array. Returns a copy of the array. Equivalent to a.copy(order='K').
doc_30549
Return True if date is last day of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_year_end False >>> ts = pd.Timestamp(2020, 12, 31) >>> ts.is_year_end True
doc_30550
Return the current local datetime, with tzinfo None. Equivalent to: datetime.fromtimestamp(time.time()) See also now(), fromtimestamp(). This method is functionally equivalent to now(), but without a tz parameter.
doc_30551
See Migration guide for more details. tf.compat.v1.image.transpose, tf.compat.v1.image.transpose_image tf.image.transpose( image, name=None ) Usage Example: x = [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]], [[7.0, 8.0, 9.0], [10.0, 11.0, 12.0]]] tf.image.transpose(x) <tf.Tensor: shape=(2, 2, 3), dtype=fl...
doc_30552
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_30553
See Migration guide for more details. tf.compat.v1.math.unsorted_segment_max, tf.compat.v1.unsorted_segment_max tf.math.unsorted_segment_max( data, segment_ids, num_segments, name=None ) Read the section on segmentation for an explanation of segments. This operator is similar to the unsorted segment sum operator...
doc_30554
Bases: matplotlib.patheffects.AbstractPathEffect A line based PathEffect which re-draws a stroke. The path will be stroked with its gc updated with the given keyword arguments, i.e., the keyword arguments should be valid gc parameter values. draw_path(renderer, gc, tpath, affine, rgbFace)[source] Draw the path wi...
doc_30555
Construct an IPv6 interface. The meaning of address is as in the constructor of IPv6Network, except that arbitrary host addresses are always accepted. IPv6Interface is a subclass of IPv6Address, so it inherits all the attributes from that class. In addition, the following attributes are available: ip network ...
doc_30556
window.addch(y, x, ch[, attr]) Paint character ch at (y, x) with attributes attr, overwriting any character previously painted at that location. By default, the character position and attributes are the current settings for the window object. Note Writing outside the window, subwindow, or pad raises a curses.error. ...
doc_30557
Bases: object A decorator that performs %-substitution on an object's docstring. This decorator should be robust even if obj.__doc__ is None (for example, if -OO was passed to the interpreter). Usage: construct a docstring.Substitution with a sequence or dictionary suitable for performing substitution; then decorate ...
doc_30558
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_30559
Marks given tensors as modified in an in-place operation. This should be called at most once, only from inside the forward() method, and all arguments should be inputs. Every tensor that’s been modified in-place in a call to forward() should be given to this function, to ensure correctness of our checks. It doesn’t m...
doc_30560
See Migration guide for more details. tf.compat.v1.math.multiply_no_nan tf.math.multiply_no_nan( x, y, name=None ) Args x A Tensor. Must be one of the following types: float32, float64. y A Tensor whose dtype is compatible with x. name A name for the operation (optional). Returns T...
doc_30561
Send a HELP command. Return a pair (response, list) where list is a list of help strings.
doc_30562
Convert the color from HLS coordinates to RGB coordinates.
doc_30563
True or False. Determines whether or not a user object is created if not already in the database Defaults to True.
doc_30564
Filter action. Constant Meaning KQ_EV_ADD Adds or modifies an event KQ_EV_DELETE Removes an event from the queue KQ_EV_ENABLE Permitscontrol() to returns the event KQ_EV_DISABLE Disablesevent KQ_EV_ONESHOT Removes event after first occurrence KQ_EV_CLEAR Reset the state after an event is retrieved KQ_...
doc_30565
For each element in self, return a list of the words in the string, using sep as the delimiter string. See also char.split
doc_30566
class smtpd.SMTPServer(localaddr, remoteaddr, data_size_limit=33554432, map=None, enable_SMTPUTF8=False, decode_data=False) Create a new SMTPServer object, which binds to local address localaddr. It will treat remoteaddr as an upstream SMTP relayer. Both localaddr and remoteaddr should be a (host, port) tuple. The ob...
doc_30567
class socketserver.DatagramRequestHandler These BaseRequestHandler subclasses override the setup() and finish() methods, and provide self.rfile and self.wfile attributes. The self.rfile and self.wfile attributes can be read or written, respectively, to get the request data or return data to the client. The rfile attr...
doc_30568
Draw samples from a von Mises distribution. Samples are drawn from a von Mises distribution with specified mode (mu) and dispersion (kappa), on the interval [-pi, pi]. The von Mises distribution (also known as the circular normal distribution) is a continuous probability distribution on the unit circle. It may be tho...
doc_30569
unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf() system calls. For MH mailboxes, locking the mailbox means locking the .mh_sequences file and, only for the duration of any operations that affect them, locking individual message files.
doc_30570
See Migration guide for more details. tf.compat.v1.keras.backend.clear_session tf.keras.backend.clear_session() Keras manages a global state, which it uses to implement the Functional model-building API and to uniquify autogenerated layer names. If you are creating many models in a loop, this global state will consu...
doc_30571
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_30572
Expands the dimension dim of the self tensor over multiple dimensions of sizes given by sizes. sizes is the new shape of the unflattened dimension and it can be a Tuple[int] as well as torch.Size if self is a Tensor, or namedshape (Tuple[(name: str, size: int)]) if self is a NamedTensor. The total number of element...
doc_30573
Compute the normalized root mean-squared error (NRMSE) between two images. Parameters image_truendarray Ground-truth image, same shape as im_test. image_testndarray Test image. normalization{‘euclidean’, ‘min-max’, ‘mean’}, optional Controls the normalization method to use in the denominator of the NRMS...
doc_30574
Enables support for PEP 484 and PEP 526 style type comments (# type: <type>, # type: ignore <stuff>). New in version 3.8.
doc_30575
tf.nn.moments( x, axes, shift=None, keepdims=False, name=None ) The mean and variance are calculated by aggregating the contents of x across axes. If x is 1-D and axes = [0] this is just the mean and variance of a vector. Note: shift is currently not used; the true mean is computed and used. When using these mom...
doc_30576
Raises a ValidationError with a code of 'invalid_extension' if the extension of value.name (value is a File) isn’t found in allowed_extensions. The extension is compared case-insensitively with allowed_extensions. Warning Don’t rely on validation of the file extension to determine a file’s type. Files can be renamed t...
doc_30577
Create a UUID from either a string of 32 hexadecimal digits, a string of 16 bytes in big-endian order as the bytes argument, a string of 16 bytes in little-endian order as the bytes_le argument, a tuple of six integers (32-bit time_low, 16-bit time_mid, 16-bit time_hi_version, 8-bit clock_seq_hi_variant, 8-bit clock_se...
doc_30578
Load the type map given in the file filename, if it exists. The type map is returned as a dictionary mapping filename extensions, including the leading dot ('.'), to strings of the form 'type/subtype'. If the file filename does not exist or cannot be read, None is returned.
doc_30579
Return a fragment that has all samples in the original fragment multiplied by the floating-point value factor. Samples are truncated in case of overflow.
doc_30580
Merge in data from another CoverageResults object.
doc_30581
The class of the original traceback.
doc_30582
Return the MIME part that is the best candidate to be the “body” of the message. preferencelist must be a sequence of strings from the set related, html, and plain, and indicates the order of preference for the content type of the part returned. Start looking for candidate matches with the object on which the get_body ...
doc_30583
Do a keyword search on docstrings. A list of objects that matched the search is displayed, sorted by relevance. All given keywords need to be found in the docstring for it to be returned as a result, but the order does not matter. Parameters whatstr String containing words to look for. modulestr or list, opti...
doc_30584
Return the xaxis' major tick labels, as a list of Text.
doc_30585
Example: >>> from django.contrib.gis.geos import WKBReader >>> wkb_r = WKBReader() >>> wkb_r.read('0101000000000000000000F03F000000000000F03F') <Point object at 0x103a88910>
doc_30586
See Migration guide for more details. tf.compat.v1.manip.tile, tf.compat.v1.tile tf.tile( input, multiples, name=None ) This operation creates a new tensor by replicating input multiples times. The output tensor's i'th dimension has input.dims(i) * multiples[i] elements, and the values of input are replicated mu...
doc_30587
Extract a diagonal or construct a diagonal array. This function is the equivalent of numpy.diag that takes masked values into account, see numpy.diag for details. See also numpy.diag Equivalent function for ndarrays.
doc_30588
See Migration guide for more details. tf.compat.v1.raw_ops.SdcaShrinkL1 tf.raw_ops.SdcaShrinkL1( weights, l1, l2, name=None ) Args weights A list of Tensor objects with type mutable float32. a list of vectors where each value is the weight associated with a feature group. l1 A float. Symmetric l1 ...
doc_30589
Weight function of the Hermite polynomials. The weight function is \(\exp(-x^2)\) and the interval of integration is \([-\inf, \inf]\). the Hermite polynomials are orthogonal, but not normalized, with respect to this weight function. Parameters xarray_like Values at which the weight function will be computed. ...
doc_30590
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedDepthwiseConv2DWithBiasAndRelu tf.raw_ops.QuantizedDepthwiseConv2DWithBiasAndRelu( input, filter, bias, min_input, max_input, min_filter, max_filter, strides, padding, out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1], padding_list=[], na...
doc_30591
Return x factorial as an integer. Raises ValueError if x is not integral or is negative. Deprecated since version 3.9: Accepting floats with integral values (like 5.0) is deprecated.
doc_30592
Return the sizes ('areas') of the elements in the collection. Returns array The 'area' of each element.
doc_30593
Update the is_authenticated flag for the given uri or list of URIs.
doc_30594
tf.compat.v1.keras.initializers.he_uniform( seed=None ) With distribution="truncated_normal" or "untruncated_normal", samples are drawn from a truncated/untruncated normal distribution with a mean of zero and a standard deviation (after truncation, if used) stddev = sqrt(scale / n) where n is: number of input uni...
doc_30595
Single-precision floating-point number type, compatible with C float. Character code 'f' Alias on this platform (Linux x86_64) numpy.float32: 32-bit-precision floating-point number type: sign bit, 8 bits exponent, 23 bits mantissa.
doc_30596
Allows the model to jointly attend to information from different representation subspaces. See Attention Is All You Need MultiHead(Q,K,V)=Concat(head1,…,headh)WO\text{MultiHead}(Q, K, V) = \text{Concat}(head_1,\dots,head_h)W^O where headi=Attention(QWiQ,KWiK,VWiV)head_i = \text{Attention}(QW_i^Q, KW_i^K, VW_i^V) ....
doc_30597
A string indicating the fault type.
doc_30598
Build a decision tree classifier from the training set (X, y). Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csc_matrix. yarray-like of shape (n_samples,) ...