_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_7300
Return a tuple (fg, bg) containing the colors for the requested color pair. The value of pair_number must be between 0 and COLOR_PAIRS - 1.
doc_7301
The maximum number of digits (those before the decimal point plus those after the decimal point, with leading zeros stripped) permitted in the value.
doc_7302
rotates a vector around the z-axis by the angle in radians. rotate_z_rad(angle) -> Vector3 Returns a vector which has the same length as self but is rotated counterclockwise around the z-axis by the given angle in radians. New in pygame 2.0.0.
doc_7303
The earliest representable datetime, datetime(MINYEAR, 1, 1, tzinfo=None).
doc_7304
tf.debugging.assert_type( tensor, tf_type, message=None, name=None ) This can always be checked statically, so this method returns nothing. Args tensor A Tensor or SparseTensor. tf_type A tensorflow type (dtypes.float32, tf.int64, dtypes.bool, etc). message A string to prefix to the default me...
doc_7305
Raised when the interpreter finds an internal error, but the situation does not look so serious to cause it to abandon all hope. The associated value is a string indicating what went wrong (in low-level terms). You should report this to the author or maintainer of your Python interpreter. Be sure to report the version ...
doc_7306
See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.PreprocessingLayer tf.keras.layers.experimental.preprocessing.PreprocessingLayer( trainable=True, name=None, dtype=None, dynamic=False, **kwargs ) Methods adapt View source adapt( data, reset_state=True ) Fits the st...
doc_7307
Return a copy of the string with all the cased characters 4 converted to lowercase. The lowercasing algorithm used is described in section 3.13 of the Unicode Standard.
doc_7308
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_7309
Acts just like HttpResponse but uses a 404 status code.
doc_7310
If you want to specify a subject line which is record-dependent, override this method.
doc_7311
Applies a 3D transposed convolution operator over an input image composed of several input planes. The transposed convolution operator multiplies each input value element-wise by a learnable kernel, and sums over the outputs from all input feature planes. This module can be seen as the gradient of Conv3d with respect...
doc_7312
Bases: skimage.viewer.canvastools.base.CanvasToolBase Widget for painting on top of a plot. Parameters managerViewer or PlotPlugin. Skimage viewer or plot plugin object. overlay_shapeshape tuple 2D shape tuple used to initialize overlay image. radiusint The size of the paint cursor. alphafloat (betwee...
doc_7313
name The path to the template as returned by the template loader. For loaders that read from the file system, this is the full path to the template. If the template is instantiated directly rather than through a template loader, this is a string value of <unknown_source>. template_name The relative path to th...
doc_7314
tf.losses.Huber Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.Huber tf.keras.losses.Huber( delta=1.0, reduction=losses_utils.ReductionV2.AUTO, name='huber_loss' ) For each value x in error = y_true - y_pred: loss = 0.5 * x^2 if |x| <= d loss = 0.5 *...
doc_7315
Return an array whose values are limited to [min, max]. One of max or min must be given. Refer to numpy.clip for full documentation. See also numpy.clip equivalent function
doc_7316
Sends a message to the user using the django.contrib.messages backend. See the custom ModelAdmin example. Keyword arguments allow you to change the message level, add extra CSS tags, or fail silently if the contrib.messages framework is not installed. These keyword arguments match those for django.contrib.messages.add_...
doc_7317
Exit code that means some system file did not exist, could not be opened, or had some other kind of error. Availability: Unix.
doc_7318
Set to a filename (bytes type) that should not be able to be decoded by file system encoding in strict mode. It may be None if it’s not possible to generate such a filename.
doc_7319
Multi-task L1/L2 ElasticNet with built-in cross-validation. See glossary entry for cross-validation estimator. The optimization objective for MultiTaskElasticNet is: (1 / (2 * n_samples)) * ||Y - XW||^Fro_2 + alpha * l1_ratio * ||W||_21 + 0.5 * alpha * (1 - l1_ratio) * ||W||_Fro^2 Where: ||W||_21 = \sum_i \sqrt{\sum...
doc_7320
Specifies whether or not inline objects can be deleted in the inline. Defaults to True.
doc_7321
Return whether the artist is to be rasterized.
doc_7322
A generator returning chunks of the file. If multiple_chunks() is True, you should use this method in a loop instead of read(). In practice, it’s often easiest to use chunks() all the time. Looping over chunks() instead of using read() ensures that large files don’t overwhelm your system’s memory.
doc_7323
tf.compat.v1.metrics.true_positives( labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None ) If weights is None, weights default to 1. Use weights of 0 to mask values. Args labels The ground truth values, a Tensor whose dimensions must match predictions. Will...
doc_7324
Return rotation normalized to an angle between 0 and 360 degrees. Parameters rotationfloat or {None, 'horizontal', 'vertical'} Rotation angle in degrees. None and 'horizontal' equal 0, 'vertical' equals 90. Returns float
doc_7325
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_7326
Returns True if there’s a previous page.
doc_7327
See Migration guide for more details. tf.compat.v1.app.flags.get_help_width tf.compat.v1.flags.get_help_width()
doc_7328
Bases: skimage.transform._geometric.GeometricTransform 2D polynomial transformation. Has the following form: X = sum[j=0:order]( sum[i=0:j]( a_ji * x**(j - i) * y**i )) Y = sum[j=0:order]( sum[i=0:j]( b_ji * x**(j - i) * y**i )) Parameters params(2, N) array, optional Polynomial coefficients where N * 2 = (ord...
doc_7329
Get Subtraction of dataframe and other, element-wise (binary operator sub). Equivalent to dataframe - other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, rsub. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //, %,...
doc_7330
Return a list of (ind0, ind1) such that mask[ind0:ind1].all() is True and we cover all such regions.
doc_7331
Subtract other from self in-place.
doc_7332
urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=False, context=None) Open the URL url, which can be either a string or a Request object. data must be an object specifying additional data to be sent to the server, or None if no such data is needed. See Request for details. urll...
doc_7333
Supports arbitrary Python objects, but, as described above, can lead to a remote code execution vulnerability if SECRET_KEY becomes known by an attacker.
doc_7334
Called when a pan operation completes (when the mouse button is up.) Notes This is intended to be overridden by new projection types.
doc_7335
Exception raised when the relational integrity of the database is affected, e.g. a foreign key check fails. It is a subclass of DatabaseError.
doc_7336
Returns True if autoescaping should be active for the given template name. If no template name is given, returns True. Changelog New in version 0.5. Parameters filename (str) – Return type bool
doc_7337
Represents the C 8-bit unsigned int datatype. Usually an alias for c_ubyte.
doc_7338
The text value of the attribute. This is a synonym for the nodeValue attribute.
doc_7339
set_transform is ignored.
doc_7340
Remove trailing coefficients Remove trailing coefficients until a coefficient is reached whose absolute value greater than tol or the beginning of the series is reached. If all the coefficients would be removed the series is set to [0]. A new series instance is returned with the new coefficients. The current instance...
doc_7341
Set multiple properties at once. Supported properties are Property Description adjustable {'box', 'datalim'} agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}...
doc_7342
See Migration guide for more details. tf.compat.v1.raw_ops.EditDistance tf.raw_ops.EditDistance( hypothesis_indices, hypothesis_values, hypothesis_shape, truth_indices, truth_values, truth_shape, normalize=True, name=None ) The inputs are variable-length sequences provided by SparseTensors (hypothesis_indice...
doc_7343
Return an encoded version of the string as a bytes object. Default encoding is 'utf-8'. errors may be given to set a different error handling scheme. The default for errors is 'strict', meaning that encoding errors raise a UnicodeError. Other possible values are 'ignore', 'replace', 'xmlcharrefreplace', 'backslashrepla...
doc_7344
If the origin_server attribute is set, this attribute’s value is used to set the default SERVER_SOFTWARE WSGI environment variable, and also to set a default Server: header in HTTP responses. It is ignored for handlers (such as BaseCGIHandler and CGIHandler) that are not HTTP origin servers. Changed in version 3.3: Th...
doc_7345
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_7346
Permanently remove deleted items from selected mailbox. Generates an EXPUNGE response for each deleted message. Returned data contains a list of EXPUNGE message numbers in order received.
doc_7347
tf.experimental.numpy.argmax( a, axis=None ) Unsupported arguments: out. See the NumPy documentation for numpy.argmax.
doc_7348
See Migration guide for more details. tf.compat.v1.raw_ops.NonMaxSuppressionV5 tf.raw_ops.NonMaxSuppressionV5( boxes, scores, max_output_size, iou_threshold, score_threshold, soft_nms_sigma, pad_to_max_output_size=False, name=None ) pruning away boxes that have high intersection-over-union (IOU) overlap with...
doc_7349
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool axis_direction unknown backgroundcolor color bbox dict with properties for ...
doc_7350
tf.distribute.experimental.partitioners.MinSizePartitioner( min_shard_bytes=(256 << 10), max_shards=1, bytes_per_string=16 ) This partitioner ensures each shard has at least min_shard_bytes, and tries to allocate as many shards as possible, i.e., keeping shard size as small as possible. The maximum number of such ...
doc_7351
See Migration guide for more details. tf.compat.v1.raw_ops.SparseSegmentMean tf.raw_ops.SparseSegmentMean( data, indices, segment_ids, name=None ) See tf.sparse.segment_sum for usage examples. Like SegmentMean, but segment_ids can have rank less than data's first dimension, selecting a subset of dimension 0, spe...
doc_7352
class xdrlib.Packer Packer is the class for packing data into XDR representation. The Packer class is instantiated with no arguments. class xdrlib.Unpacker(data) Unpacker is the complementary class which unpacks XDR data values from a string buffer. The input buffer is given as data. See also RFC 1014 - XD...
doc_7353
turtle.getpen() Return the Turtle object itself. Only reasonable use: as a function to return the “anonymous turtle”: >>> pet = getturtle() >>> pet.fd(50) >>> pet <turtle.Turtle object at 0x...>
doc_7354
tf.experimental.tensorrt.ConversionParams( rewriter_config_template=None, max_workspace_size_bytes=DEFAULT_TRT_MAX_WORKSPACE_SIZE_BYTES, precision_mode=TrtPrecisionMode.FP32, minimum_segment_size=3, is_dynamic_op=True, maximum_cached_engines=1, use_calibration=True, max_batch_size=1, allow_build_at_...
doc_7355
Loader for species distribution dataset from Phillips et. al. (2006) Read more in the User Guide. Parameters data_homestr, default=None Specify another download and cache folder for the datasets. By default all scikit-learn data is stored in ‘~/scikit_learn_data’ subfolders. download_if_missingbool, default=T...
doc_7356
Context manager and decorator doing much the same as warnings.catch_warnings. However, it also provides a filter mechanism to work around https://bugs.python.org/issue4180. This bug causes Python before 3.4 to not reliably show warnings again after they have been ignored once (even within catch_warnings). It means th...
doc_7357
See Migration guide for more details. tf.compat.v1.raw_ops.TFRecordReader tf.raw_ops.TFRecordReader( container='', shared_name='', compression_type='', name=None ) Args container An optional string. Defaults to "". If non-empty, this reader is placed in the given container. Otherwise, a default cont...
doc_7358
Predict confidence scores for samples. The confidence score for a sample is proportional to the signed distance of that sample to the hyperplane. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns array, shape=(n_samples,) if n_classes == 2 else (n_samples, n_classes) ...
doc_7359
class sklearn.neighbors.RadiusNeighborsClassifier(radius=1.0, *, weights='uniform', algorithm='auto', leaf_size=30, p=2, metric='minkowski', outlier_label=None, metric_params=None, n_jobs=None, **kwargs) [source] Classifier implementing a vote among neighbors within a given radius Read more in the User Guide. Parame...
doc_7360
Takes a producer object and adds it to the producer queue associated with the channel. When all currently-pushed producers have been exhausted the channel will consume this producer’s data by calling its more() method and send the data to the remote endpoint.
doc_7361
tf.compat.v1.feature_column.make_parse_example_spec( feature_columns ) The returned dictionary can be used as arg 'features' in tf.io.parse_example. Typical usage example: # Define features and transformations feature_a = categorical_column_with_vocabulary_file(...) feature_b = numeric_column(...) feature_c_bucket...
doc_7362
Enable the toggle tool. trigger calls this method when toggled is False.
doc_7363
Inspect an Artist class (using ArtistInspector) and return information about its settable properties and their current values. Parameters artistArtist or an iterable of Artists Returns str The settable properties of artist, as plain text if rcParams["docstring.hardcopy"] (default: False) is False and as a r...
doc_7364
Initializes a thread lock which can be used to serialize access to underlying I/O functionality which may not be threadsafe.
doc_7365
Identical to the split() function, using the compiled pattern.
doc_7366
Multiply a Laguerre series by x. Multiply the Laguerre series c by x, where x is the independent variable. Parameters carray_like 1-D array of Laguerre series coefficients ordered from low to high. Returns outndarray Array representing the result of the multiplication. See also lagadd, lagsub, la...
doc_7367
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_7368
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_7369
Wraps the single paragraph in text (a string) so every line is at most width characters long. All wrapping options are taken from instance attributes of the TextWrapper instance. Returns a list of output lines, without final newlines. If the wrapped output has no content, the returned list is empty.
doc_7370
name and value are passed to BaseHeader from the header_factory call. The string value of any header object is the value fully decoded to unicode. This base class defines the following read-only properties: name The name of the header (the portion of the field before the ‘:’). This is exactly the value passed in th...
doc_7371
[Deprecated] Set the current cursor to one of the Cursors enums values. If required by the backend, this method should trigger an update in the backend event loop after the cursor is set, as this method may be called e.g. before a long-running task during which the GUI is not updated. Notes Deprecated since version ...
doc_7372
All methods on PreparedGeometry take an other argument, which must be a GEOSGeometry instance. contains(other) contains_properly(other) covers(other) crosses(other) disjoint(other) intersects(other) overlaps(other) touches(other) within(other)
doc_7373
By defining the class attribute name, the projection axes can be registered with matplotlib.projections.register_projection and subsequently simply invoked by name: fig.add_subplot(projection="my_proj_name") For more complex, parameterisable projections, a generic "projection" object may be defined which includes th...
doc_7374
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessTruncatedNormal tf.raw_ops.StatelessTruncatedNormal( shape, seed, dtype=tf.dtypes.float32, name=None ) The generated values follow a normal distribution with mean 0 and standard deviation 1, except that values whose magnitude is more than 2 stan...
doc_7375
Returns numpy array of datetime.time objects. The time part of the Timestamps.
doc_7376
See Migration guide for more details. tf.compat.v1.raw_ops.Stage tf.raw_ops.Stage( values, capacity=0, memory_limit=0, container='', shared_name='', name=None ) The basic functionality of this Op is similar to a queue with many fewer capabilities and options. This Op is optimized for performance. Args ...
doc_7377
Represents a duration, the difference between two dates or times. Timedelta is the pandas equivalent of python’s datetime.timedelta and is interchangeable with it in most cases. Parameters value:Timedelta, timedelta, np.timedelta64, str, or int unit:str, default ‘ns’ Denote the unit of the input, if input is ...
doc_7378
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayConcat tf.raw_ops.TensorArrayConcat( handle, flow_in, dtype, element_shape_except0=None, name=None ) Args handle A Tensor of type mutable string. flow_in A Tensor of type float32. dtype A tf.DType. element_shape_except...
doc_7379
Return an array of triangles that are not masked.
doc_7380
This exception is raised when a string parameter contains a character that is not permitted in the context it’s being used in by the XML 1.0 recommendation. For example, attempting to create an Element node with a space in the element type name will cause this error to be raised.
doc_7381
Captured stdout from the child process. A bytes sequence, or a string if run() was called with an encoding, errors, or text=True. None if stdout was not captured. If you ran the process with stderr=subprocess.STDOUT, stdout and stderr will be combined in this attribute, and stderr will be None.
doc_7382
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_7383
Return the file system path representation of the object. The method should only return a str or bytes object, with the preference being for str.
doc_7384
Fill the area between two horizontal curves. The curves are defined by the points (x, y1) and (x, y2). This creates one or multiple polygons describing the filled area. You may exclude some horizontal sections from filling using where. By default, the edges connect the given points directly. Use step if the filling s...
doc_7385
Returns a tensor filled with uninitialized data. The shape of the tensor is defined by the variable argument size. Parameters size (int...) – a sequence of integers defining the shape of the output tensor. Can be a variable number of arguments or a collection like a list or tuple. Keyword Arguments out (Tensor, o...
doc_7386
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters valuesarray The input v...
doc_7387
Set the box style. Most box styles can be further configured using attributes. Attributes from the previous box style are not reused. Without argument (or with boxstyle=None), the available box styles are returned as a human-readable string. Parameters boxstylestr or matplotlib.patches.BoxStyle The style of the...
doc_7388
'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', ] } You can also set the renderers used for an individual view, or viewset, using the APIView class-based views. from django.contrib.auth.models import User from rest_framewor...
doc_7389
Block device.
doc_7390
Get Integer division of dataframe and other, element-wise (binary operator rfloordiv). Equivalent to other // dataframe, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, floordiv. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +,...
doc_7391
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event.
doc_7392
Mixin class for all density estimators in scikit-learn. Methods score(X[, y]) Return the score of the model on the data X. score(X, y=None) [source] Return the score of the model on the data X. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yIgnored Not used, present for API c...
doc_7393
Return True if the watcher is ready to use. Spawning a subprocess with inactive current child watcher raises RuntimeError. New in version 3.8.
doc_7394
self.half() is equivalent to self.to(torch.float16). See to(). Parameters memory_format (torch.memory_format, optional) – the desired memory format of returned Tensor. Default: torch.preserve_format.
doc_7395
RGB to YDbDr color space conversion. Parameters rgb(…, 3) array_like The image in RGB format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in YDbDr format. Same dimensions as input. Raises ValueError If rgb is not at least 2-D with shape (…, 3). Notes This is the color...
doc_7396
Return an iterator object. The first argument is interpreted very differently depending on the presence of the second argument. Without a second argument, object must be a collection object which supports the iteration protocol (the __iter__() method), or it must support the sequence protocol (the __getitem__() method ...
doc_7397
Module: email.mime.text A subclass of MIMENonMultipart, the MIMEText class is used to create MIME objects of major type text. _text is the string for the payload. _subtype is the minor type and defaults to plain. _charset is the character set of the text and is passed as an argument to the MIMENonMultipart constructor;...
doc_7398
Return a contiguous flattened array. A 1-D array, containing the elements of the input, is returned. A copy is made only if needed. As of NumPy 1.10, the returned array will have the same type as the input array. (for example, a masked array will be returned for a masked array input) Parameters aarray_like Inpu...
doc_7399
Draw a collection of paths selecting drawing properties from the lists facecolors, edgecolors, linewidths, linestyles and antialiaseds. offsets is a list of offsets to apply to each of the paths. The offsets in offsets are first transformed by offsetTrans before being applied. offset_position is unused now, but the a...