_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_11300
Exception raised when the source text into which substitutions are made does not conform to the required syntax. Subclass of InterpolationError.
doc_11301
sklearn.metrics.calinski_harabasz_score(X, labels) [source] Compute the Calinski and Harabasz score. It is also known as the Variance Ratio Criterion. The score is defined as ratio between the within-cluster dispersion and the between-cluster dispersion. Read more in the User Guide. Parameters Xarray-like of shap...
doc_11302
Computes the element-wise greatest common divisor (GCD) of input and other. Both input and other must have integer types. Note This defines gcd(0,0)=0gcd(0, 0) = 0 . Parameters input (Tensor) – the input tensor. other (Tensor) – the second input tensor Keyword Arguments out (Tensor, optional) – the output ten...
doc_11303
Return unbiased standard error of the mean over requested axis. Normalized by N-1 by default. This can be changed using the ddof argument Parameters axis:{index (0), columns (1)} skipna:bool, default True Exclude NA/null values. If an entire row/column is NA, the result will be NA. level:int or level name, ...
doc_11304
Return a dictionary of all the properties of the artist.
doc_11305
Return a tuple of the array dimensions.
doc_11306
See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.KubernetesClusterResolver tf.distribute.cluster_resolver.KubernetesClusterResolver( job_to_label_mapping=None, tf_server_port=8470, rpc_layer='grpc', override_client=None ) This is an implementation of cluster resolvers for Kubern...
doc_11307
Calculate the per-pixel errors, then compute the root mean square error.
doc_11308
Returns the type that results from applying the NumPy type promotion rules to the arguments. Type promotion in NumPy works similarly to the rules in languages like C++, with some slight differences. When both scalars and arrays are used, the array’s type takes precedence and the actual value of the scalar is taken in...
doc_11309
tf.cumsum Compat aliases for migration See Migration guide for more details. tf.compat.v1.cumsum, tf.compat.v1.math.cumsum tf.math.cumsum( x, axis=0, exclusive=False, reverse=False, name=None ) By default, this op performs an inclusive cumsum, which means that the first element of the input is identical to the f...
doc_11310
Find control points of the Bezier curve passing through (c1x, c1y), (mmx, mmy), and (c2x, c2y), at parametric values 0, 0.5, and 1.
doc_11311
Load the filenames and data from the 20 newsgroups dataset (classification). Download it if necessary. Classes 20 Samples total 18846 Dimensionality 1 Features text Read more in the User Guide. Parameters data_homestr, default=None Specify a download and cache folder for the datasets. If None, all sci...
doc_11312
Required. The absolute filesystem path to a directory from which this FilePathField should get its choices. Example: "/home/images". path may also be a callable, such as a function to dynamically set the path at runtime. Example: import os from django.conf import settings from django.db import models def images_path()...
doc_11313
tf.keras.layers.GlobalAvgPool3D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.GlobalAveragePooling3D, tf.compat.v1.keras.layers.GlobalAvgPool3D tf.keras.layers.GlobalAveragePooling3D( data_format=None, **kwargs ) Arguments data_format A string, one of chann...
doc_11314
tf.square Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.square, tf.compat.v1.square tf.math.square( x, name=None ) I.e., \(y = x * x = x^2\). tf.math.square([-2., 0., 3.]) <tf.Tensor: shape=(3,), dtype=float32, numpy=array([4., 0., 9.], dtype=float32)> Args x A T...
doc_11315
tf.compat.v1.image.resize_image_with_pad( image, target_height, target_width, method=ResizeMethodV1.BILINEAR, align_corners=False ) Resizes an image to a target width and height by keeping the aspect ratio the same without distortion. If the target dimensions don't match the image dimensions, the image is resi...
doc_11316
Return the iterator object itself. This is required to allow both containers and iterators to be used with the for and in statements. This method corresponds to the tp_iter slot of the type structure for Python objects in the Python/C API.
doc_11317
Add audio data to summary. Parameters tag (string) – Data identifier snd_tensor (torch.Tensor) – Sound data global_step (int) – Global step value to record sample_rate (int) – sample rate in Hz walltime (float) – Optional override default walltime (time.time()) seconds after epoch of event Shape: snd_ten...
doc_11318
See torch.nanquantile()
doc_11319
A dotted import path to the default admin site’s class or to a callable that returns a site instance. Defaults to 'django.contrib.admin.sites.AdminSite'. See Overriding the default admin site for usage.
doc_11320
Controls the migration framework’s reaction if this ForeignKey is pointing at a swappable model. If it is True - the default - then if the ForeignKey is pointing at a model which matches the current value of settings.AUTH_USER_MODEL (or another swappable model setting) the relationship will be stored in the migration u...
doc_11321
A context manager to force import to return a new module reference. This is useful for testing module-level behaviors, such as the emission of a DeprecationWarning on import. Example usage: with CleanImport('foo'): importlib.import_module('foo') # New reference.
doc_11322
what exactly seq is. Is it a single value to be altered in-place? Is it an array, and if so what is its length? Is it input-only? Output-only? Input-output? SWIG cannot determine these details, and does not attempt to do so. If we designed rms, we probably made it a routine that takes an input-only array of length n o...
doc_11323
The content of the processing instruction up to the first whitespace character. This is a read-only attribute.
doc_11324
Width of the terminal window in characters.
doc_11325
The class used to build the test suite. By default it is set to unittest.TestSuite. This can be overridden if you wish to implement different logic for collecting tests.
doc_11326
Compute the bit-wise XOR of two arrays element-wise. Computes the bit-wise XOR of the underlying binary representation of the integers in the input arrays. This ufunc implements the C/Python operator ^. Parameters x1, x2array_like Only integer and boolean types are handled. If x1.shape != x2.shape, they must be...
doc_11327
Alias for get_linestyle.
doc_11328
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_11329
Number of memory blocks (int).
doc_11330
Set the font style. Values are: 'normal', 'italic' or 'oblique'.
doc_11331
A StackSummary representing the traceback.
doc_11332
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_11333
Class implementing bounded semaphore objects. A bounded semaphore checks to make sure its current value doesn’t exceed its initial value. If it does, ValueError is raised. In most situations semaphores are used to guard resources with limited capacity. If the semaphore is released too many times it’s a sign of a bug. I...
doc_11334
Compute max of group values. Parameters numeric_only:bool, default False Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. min_count:int, default -1 The required number of valid values to perform the operation. If fewer than min_count non-NA value...
doc_11335
Return the text angle in degrees between 0 and 360.
doc_11336
tf.losses.cosine_similarity Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.cosine, tf.compat.v1.keras.losses.cosine_proximity, tf.compat.v1.keras.losses.cosine_similarity, tf.compat.v1.keras.metrics.cosine, tf.compat.v1.keras.metrics.cosine_proximity tf.keras.losses.cosin...
doc_11337
Transform a sequence of documents to a document-term matrix. Parameters Xiterable over raw text documents, length = n_samples Samples. Each sample must be a text document (either bytes or unicode strings, file name or file object depending on the constructor argument) which will be tokenized and hashed. Retu...
doc_11338
The entry’s full path name: equivalent to os.path.join(scandir_path, entry.name) where scandir_path is the scandir() path argument. The path is only absolute if the scandir() path argument was absolute. If the scandir() path argument was a file descriptor, the path attribute is the same as the name attribute. The path ...
doc_11339
Return threshold value based on Otsu’s method. Either image or hist must be provided. If hist is provided, the actual histogram of the image is ignored. Parameters image(N, M) ndarray, optional Grayscale input image. nbinsint, optional Number of bins used to calculate histogram. This value is ignored for in...
doc_11340
Predicate: does the path need to be filled? An optional argument can be used to specify an alternative _fillcolor, as needed by RendererPdf.draw_markers.
doc_11341
A base transport for read-only connections. Instances of the ReadTransport class are returned from the loop.connect_read_pipe() event loop method and are also used by subprocess-related methods like loop.subprocess_exec().
doc_11342
Raises RuntimeError if ninja build system is not available on the system, does nothing otherwise.
doc_11343
Similar to CGIHandler, but instead of using the sys and os modules, the CGI environment and I/O streams are specified explicitly. The multithread and multiprocess values are used to set the wsgi.multithread and wsgi.multiprocess flags for any applications run by the handler instance. This class is a subclass of SimpleH...
doc_11344
Set a parameter in the Content-Type header. If the parameter already exists in the header, its value will be replaced with value. If the Content-Type header as not yet been defined for this message, it will be set to text/plain and the new parameter value will be appended as per RFC 2045. Optional header specifies an a...
doc_11345
See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNParamsToCanonical tf.raw_ops.CudnnRNNParamsToCanonical( num_layers, num_units, input_size, params, num_params, rnn_mode='lstm', input_mode='linear_input', direction='unidirectional', dropout=0, seed=0, seed2=0, name=None ) Retrieves a set...
doc_11346
The date and time of the action.
doc_11347
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_11348
Returns the current strategy for sharing CPU tensors.
doc_11349
Return the “identity” of an object. This is an integer which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same id() value. CPython implementation detail: This is the address of the object in memory. Raises an auditing event builti...
doc_11350
See Migration guide for more details. tf.compat.v1.raw_ops.DebugGradientIdentity tf.raw_ops.DebugGradientIdentity( input, name=None ) This op is hidden from public in Python. It is used by TensorFlow Debugger to register gradient tensors for gradient debugging. This op operates on non-reference-type tensors. ...
doc_11351
The excel_tab class defines the usual properties of an Excel-generated TAB-delimited file. It is registered with the dialect name 'excel-tab'.
doc_11352
Sends the record to the Web server as a URL-encoded dictionary. The mapLogRecord() method is used to convert the record to the dictionary to be sent.
doc_11353
See torch.divide()
doc_11354
Bases: matplotlib.colors.Normalize Linearly map a given value to the 0-1 range and then apply a power-law normalization over that range. Parameters vmin, vmaxfloat or None If vmin and/or vmax is not given, they are initialized from the minimum and maximum value, respectively, of the first input processed; i.e.,...
doc_11355
Alias for set_xlim3d.
doc_11356
tf.data.experimental.save( dataset, path, compression=None, shard_func=None ) Example usage: import tempfile path = os.path.join(tempfile.gettempdir(), "saved_data") # Save a dataset dataset = tf.data.Dataset.range(2) tf.data.experimental.save(dataset, path) new_dataset = tf.data.experimental.load(path, tf.Te...
doc_11357
Create a 3D contour plot. Parameters X, Y, Zarray-like, Input data. See contour for acceptable data shapes. extend3dbool, default: False Whether to extend contour in 3D. strideint Step size for extending contour. zdir{'x', 'y', 'z'}, default: 'z' The direction to use. offsetfloat, optional If sp...
doc_11358
Return the path to Matplotlib data.
doc_11359
Bases: matplotlib.projections.geo.GeoAxes Build an Axes in a figure. Parameters figFigure The Axes is built in the Figure fig. rect[left, bottom, width, height] The Axes is built in the rectangle rect. rect is in Figure coordinates. sharex, shareyAxes, optional The x or y axis is shared with the x or y ...
doc_11360
See Migration guide for more details. tf.compat.v1.fill tf.fill( dims, value, name=None ) See also tf.ones, tf.zeros, tf.one_hot, tf.eye. This operation creates a tensor of shape dims and fills it with value. For example: tf.fill([2, 3], 9) <tf.Tensor: shape=(2, 3), dtype=int32, numpy= array([[9, 9, 9], ...
doc_11361
Return True if sys.executable interpreter requires environment variables in order to be able to run at all. This is designed to be used with @unittest.skipIf() to annotate tests that need to use an assert_python*() function to launch an isolated mode (-I) or no environment mode (-E) sub-interpreter process. A normal bu...
doc_11362
Determine whether code is in tableC.2.2 (Non-ASCII control characters).
doc_11363
Reorder categories as specified in new_categories. new_categories need to include all old categories and no new category items. Parameters new_categories:Index-like The categories in new order. ordered:bool, optional Whether or not the categorical is treated as a ordered categorical. If not given, do not ch...
doc_11364
Selects the specified tab_id. The associated child window will be displayed, and the previously-selected window (if different) is unmapped. If tab_id is omitted, returns the widget name of the currently selected pane.
doc_11365
Stop the process used by the manager. This is only available if start() has been used to start the server process. This can be called multiple times.
doc_11366
NONE: This is the default, giving an error if you use a variable-update operation with multiple replicas. SUM: Add the updates across replicas. MEAN: Take the arithmetic mean ("average") of the updates across replicas. ONLY_FIRST_REPLICA: This is for when every replica is performing the same update, but we only want...
doc_11367
This is the quantized version of GroupNorm. Additional args: scale - quantization scale of the output, type: double. zero_point - quantization zero point of the output, type: long.
doc_11368
A convenient way to execute examples is the %doctest_mode mode of IPython, which allows for pasting of multi-line examples and preserves indentation. Array creation routines From shape or value From existing data Creating record arrays (numpy.rec) Creating character arrays (numpy.char) Numerical ranges Building matr...
doc_11369
Return whether y values increase from top to bottom. Note that this only affects drawing of texts and images.
doc_11370
remove all Sprites empty() -> None Removes all Sprites from this Group.
doc_11371
Return the alpha value used for blending - not supported on all backends.
doc_11372
Return a view of the array with axis1 and axis2 interchanged. Refer to numpy.swapaxes for full documentation. See also numpy.swapaxes equivalent function
doc_11373
'blogs.blog': lambda o: "/blogs/%s/" % o.slug, 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), } The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti...
doc_11374
See Migration guide for more details. tf.compat.v1.data.experimental.bytes_produced_stats tf.data.experimental.bytes_produced_stats( tag ) To consume the statistics, associate a StatsAggregator with the output dataset. Args tag String. All statistics recorded by the returned transformation will be assoc...
doc_11375
See Migration guide for more details. tf.compat.v1.raw_ops.BandedTriangularSolve tf.raw_ops.BandedTriangularSolve( matrix, rhs, lower=True, adjoint=False, name=None ) Args matrix A Tensor. Must be one of the following types: float64, float32, half, complex64, complex128. rhs A Tensor. Must have th...
doc_11376
Round towards zero.
doc_11377
Add a SubFigure to the figure as part of a subplot arrangement. Parameters subplotspecgridspec.SubplotSpec Defines the region in a parent gridspec where the subfigure will be placed. Returns figure.SubFigure Other Parameters **kwargs Are passed to the SubFigure object. See also Figure.subfigures
doc_11378
The size, in bytes, of the exported buffer. length -> int The number of valid bytes of data exported. For discontinuous data, that is data which is not a single block of memory, the bytes within the gaps are excluded from the count. This property is equivalent to the Py_buffer C struct len field.
doc_11379
List a directory in a standardized format by using MLSD command (RFC 3659). If path is omitted the current directory is assumed. facts is a list of strings representing the type of information desired (e.g. ["type", "size", "perm"]). Return a generator object yielding a tuple of two elements for every file found in pat...
doc_11380
Return True if the event queue is empty.
doc_11381
Make the response conditional to the request. This method works best if an etag was defined for the response already. The add_etag method can be used to do that. If called without etag just the date header is set. This does nothing if the request method in the request or environ is anything but GET or HEAD. For optimal...
doc_11382
The name of the last matched capturing group, or None if the group didn’t have a name, or if no group was matched at all.
doc_11383
Send a LIST or LIST ACTIVE command. Return a pair (response, list) where list is a list of tuples representing all the groups available from this NNTP server, optionally matching the pattern string group_pattern. Each tuple has the form (group, last, first, flag), where group is a group name, last and first are the las...
doc_11384
See Migration guide for more details. tf.compat.v1.estimator.LoggingTensorHook, tf.compat.v1.train.LoggingTensorHook tf.estimator.LoggingTensorHook( tensors, every_n_iter=None, every_n_secs=None, at_end=False, formatter=None ) The tensors will be printed to the log, with INFO severity. If you are not seeing the ...
doc_11385
Current line number in the parser input.
doc_11386
Generate config.py file containing system_info information used during building the package. Usage: config[‘py_modules’].append((packagename, ‘__config__’,generate_config_py))
doc_11387
See Migration guide for more details. tf.compat.v1.linalg.matvec tf.linalg.matvec( a, b, transpose_a=False, adjoint_a=False, a_is_sparse=False, b_is_sparse=False, name=None ) The matrix a must, following any transpositions, be a tensor of rank >= 2, with shape(a)[-1] == shape(b)[-1], and shape(a)[:-2] able t...
doc_11388
Calculate all normalized central image moments up to a certain order. Note that normalized central moments are translation and scale invariant but not rotation invariant. Parameters mu(M,[ …,] M) array Central image moments, where M must be greater than or equal to order. orderint, optional Maximum order of...
doc_11389
Alias for get_linewidth.
doc_11390
Result of a Signature.bind() or Signature.bind_partial() call. Holds the mapping of arguments to the function’s parameters. arguments A mutable mapping of parameters’ names to arguments’ values. Contains only explicitly bound arguments. Changes in arguments will reflect in args and kwargs. Should be used in conjunc...
doc_11391
Return random bytes. Parameters lengthint Number of random bytes. Returns outbytes String of length length. Examples >>> np.random.default_rng().bytes(10) b'\xfeC\x9b\x86\x17\xf2\xa1\xafcp' # random
doc_11392
This is the repr() method of aRepr. It returns a string similar to that returned by the built-in function of the same name, but with limits on most sizes.
doc_11393
A BaseSelector is used to wait for I/O event readiness on multiple file objects. It supports file stream registration, unregistration, and a method to wait for I/O events on those streams, with an optional timeout. It’s an abstract base class, so cannot be instantiated. Use DefaultSelector instead, or one of SelectSele...
doc_11394
Draw samples from a uniform distribution. Samples are uniformly distributed over the half-open interval [low, high) (includes low, but excludes high). In other words, any value within the given interval is equally likely to be drawn by uniform. Note New code should use the uniform method of a default_rng() instance ...
doc_11395
Returns False if set_unusable_password() has been called for this user.
doc_11396
Set default values for missing arguments. For variable-positional arguments (*args) the default is an empty tuple. For variable-keyword arguments (**kwargs) the default is an empty dict. >>> def foo(a, b='ham', *args): pass >>> ba = inspect.signature(foo).bind('spam') >>> ba.apply_defaults() >>> ba.arguments {'a': 'spa...
doc_11397
An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctyp...
doc_11398
A json.JSONEncoder subclass to serialize data types not supported by the standard JSON serializer (e.g. datetime.datetime or UUID). For example, you can use the DjangoJSONEncoder class. Defaults to json.JSONEncoder.
doc_11399
Returns a field of the given array as a certain type. A field is a view of the array data with a given data-type. The values in the view are determined by the given type and the offset into the current array in bytes. The offset needs to be such that the view dtype fits in the array dtype; for example an array of dty...