_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_30300
Returns a value equal to x (rounded), having the exponent of y.
doc_30301
Set the url for the artist. Parameters urlstr
doc_30302
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_30303
Is True if the Tensor is quantized, False otherwise.
doc_30304
RGB to YCbCr color space conversion. Parameters rgb(…, 3) array_like The image in RGB format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in YCbCr format. Same dimensions as input. Raises ValueError If rgb is not at least 2-D with shape (…, 3). Notes Y is between 16 a...
doc_30305
Return the Figure instance the artist belongs to.
doc_30306
Create a new ArgumentParser object. All parameters should be passed as keyword arguments. Each parameter has its own more detailed description below, but in short they are: prog - The name of the program (default: sys.argv[0]) usage - The string describing the program usage (default: generated from arguments added t...
doc_30307
Reads size bytes from the remote server. You may override this method.
doc_30308
Return the values (min, max) that are mapped to the colormap limits.
doc_30309
linecache.getline(filename, lineno, module_globals=None) Get line lineno from file named filename. This function will never raise an exception — it will return '' on errors (the terminating newline character will be included for lines that are found). If a file named filename is not found, the function first checks f...
doc_30310
Bases: matplotlib.collections.LineCollection Parameters which{"major", "minor"} axis{"both", "x", "y"} draw(renderer)[source] Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBa...
doc_30311
Backward fill the values. Parameters limit:int, optional Limit of how many values to fill. Returns Series or DataFrame Object with missing values filled. See also Series.bfill Backward fill the missing values in the dataset. DataFrame.bfill Backward fill the missing values in the dataset. Series...
doc_30312
Plot the autocorrelation of x. Parameters xarray-like detrendcallable, default: mlab.detrend_none (no detrending) A detrending function applied to x. It must have the signature detrend(x: np.ndarray) -> np.ndarray normedbool, default: True If True, input vectors are normalised to unit length. usevlines...
doc_30313
Return a Path for the unit circle wedge from angles theta1 to theta2 (in degrees). theta2 is unwrapped to produce the shortest wedge within 360 degrees. That is, if theta2 > theta1 + 360, the wedge will be from theta1 to theta2 - 360 and not a full circle plus some extra overlap. If n is provided, it is the number of...
doc_30314
streamreader Stream writer and reader classes or factory functions. These have to provide the interface defined by the base classes StreamWriter and StreamReader, respectively. Stream codecs can maintain state.
doc_30315
Describes a enum value of Parameter.kind. New in version 3.8. Example: print all descriptions of arguments: >>> def foo(a, b, *, c, d=10): ... pass >>> sig = signature(foo) >>> for param in sig.parameters.values(): ... print(param.kind.description) positional or keyword positional or keyword keyword-only key...
doc_30316
tf.estimator.Estimator( model_fn, model_dir=None, config=None, params=None, warm_start_from=None ) The Estimator object wraps a model which is specified by a model_fn, which, given inputs and a number of other parameters, returns the ops necessary to perform training, evaluation, or predictions. All outputs (check...
doc_30317
Return a representation of the message corresponding to key and delete the message. If no such message exists, return default. The message is represented as an instance of the appropriate format-specific Message subclass unless a custom message factory was specified when the Mailbox instance was initialized.
doc_30318
Call to set a new value for the context variable in the current context. The required value argument is the new value for the context variable. Returns a Token object that can be used to restore the variable to its previous value via the ContextVar.reset() method.
doc_30319
'DEFAULT_PARSER_CLASSES': [ 'rest_framework.parsers.JSONParser', ] } You can also set the parsers used for an individual view, or viewset, using the APIView class-based views. from rest_framework.parsers import JSONParser from rest_framework.response import Response from rest_framework.views import API...
doc_30320
A NamedNodeMap of attribute objects. Only elements have actual values for this; others provide None for this attribute. This is a read-only attribute.
doc_30321
tf.compat.v1.tpu.cross_replica_sum( x, group_assignment=None, name=None ) Args x The local tensor to the sum. group_assignment Optional 2d int32 lists with shape [num_groups, num_replicas_per_group]. group_assignment[i] represents the replica ids in the ith subgroup. name Optional op name. ...
doc_30322
If value is not None, this function prints repr(value) to sys.stdout, and saves value in builtins._. If repr(value) is not encodable to sys.stdout.encoding with sys.stdout.errors error handler (which is probably 'strict'), encode it to sys.stdout.encoding with 'backslashreplace' error handler. sys.displayhook is called...
doc_30323
Return a time.struct_time such as returned by time.localtime(). d.timetuple() is equivalent to: time.struct_time((d.year, d.month, d.day, d.hour, d.minute, d.second, d.weekday(), yday, dst)) where yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1 is the day number within the...
doc_30324
event type identifier. type -> int Read-only. The event type identifier. For user created event objects, this is the type argument passed to pygame.event.Event(). For example, some predefined event identifiers are QUIT and MOUSEMOTION.
doc_30325
Compute the mean and std to be used for later scaling. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data used to compute the mean and standard deviation used for later scaling along the features axis. yNone Ignored. sample_weightarray-like of shape (n_samples,), default=Non...
doc_30326
Exit code that means that an error occurred while doing I/O on some file. Availability: Unix.
doc_30327
create_user(username_field, password=None, **other_fields) The prototype of create_user() should accept the username field, plus all required fields as arguments. For example, if your user model uses email as the username field, and has date_of_birth as a required field, then create_user should be defined as: def c...
doc_30328
Set the botframe, stopframe, returnframe and quitting attributes with values ready to start debugging.
doc_30329
The current rendered value of the response content, using the current template and context data.
doc_30330
Return the font stretch as a string or a number. See also font_manager.FontProperties.get_stretch
doc_30331
Return whether the lock is currently held by an owner.
doc_30332
Return a dictionary of all the properties of the artist.
doc_30333
The get_fieldsets method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return a list of two-tuples, in which each two-tuple represents a <fieldset> on the admin form page, as described above in the ModelAdmin.fieldsets section.
doc_30334
Replace values given in to_replace with value. Values of the DataFrame are replaced with other values dynamically. This differs from updating with .loc or .iloc, which require you to specify a location to update with some value. Parameters to_replace:str, regex, list, dict, Series, int, float, or None How to fi...
doc_30335
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
doc_30336
Return the period of now’s date.
doc_30337
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_30338
An ExtensionDtype for Interval data. This is not an actual numpy dtype, but a duck type. Parameters subtype:str, np.dtype The dtype of the Interval bounds. Examples >>> pd.IntervalDtype(subtype='int64', closed='both') interval[int64, both] Attributes subtype The dtype of the Interval bounds. Me...
doc_30339
Return the current UTC date and time, with tzinfo None. This is like now(), but returns the current UTC date and time, as a naive datetime object. An aware current UTC datetime can be obtained by calling datetime.now(timezone.utc). See also now(). Warning Because naive datetime objects are treated by many datetime met...
doc_30340
The calculated size of the struct (and hence of the bytes object produced by the pack() method) corresponding to format.
doc_30341
Provide data to the compressor object. Returns a chunk of compressed data if possible, or an empty byte string otherwise. When you have finished providing data to the compressor, call the flush() method to finish the compression process.
doc_30342
Stop the timer, and cancel the execution of the timer’s action. This will only work if the timer is still in its waiting stage.
doc_30343
Label Propagation classifier Read more in the User Guide. Parameters kernel{‘knn’, ‘rbf’} or callable, default=’rbf’ String identifier for kernel function to use or the kernel function itself. Only ‘rbf’ and ‘knn’ strings are valid inputs. The function passed should take two inputs, each of shape (n_samples, n_...
doc_30344
Join lists contained as elements in the Series/Index with passed delimiter. If the elements of a Series are lists themselves, join the content of these lists using the delimiter passed to the function. This function is an equivalent to str.join(). Parameters sep:str Delimiter to use between list entries. Ret...
doc_30345
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_30346
assertTupleEqual(first, second, msg=None) Tests that two lists or tuples are equal. If not, an error message is constructed that shows only the differences between the two. An error is also raised if either of the parameters are of the wrong type. These methods are used by default when comparing lists or tuples with ...
doc_30347
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters Xndarray of shape (n_samples_X, n_features) Left argument of the returned kernel k(X, Y) Returns K_diagndar...
doc_30348
Sets gradients of all model parameters to zero. See similar function under torch.optim.Optimizer for more context. Parameters set_to_none (bool) – instead of setting to zero, set the grads to None. See torch.optim.Optimizer.zero_grad() for details.
doc_30349
See Migration guide for more details. tf.compat.v1.raw_ops.IteratorV2 tf.raw_ops.IteratorV2( shared_name, container, output_types, output_shapes, name=None ) Args shared_name A string. container A string. output_types A list of tf.DTypes that has length >= 1. output_shapes A list of sh...
doc_30350
Return True if it is a block device.
doc_30351
Returns a new equivalent pickle string after eliminating unused PUT opcodes. The optimized pickle is shorter, takes less transmission time, requires less storage space, and unpickles more efficiently.
doc_30352
Finds blobs in the given grayscale image. Blobs are found using the Difference of Gaussian (DoG) method [1]. For each blob found, the method returns its coordinates and the standard deviation of the Gaussian kernel that detected the blob. Parameters image2D or 3D ndarray Input grayscale image, blobs are assumed...
doc_30353
Decorate a view function to register it with the given URL rule and options. Calls add_url_rule(), which has more details about the implementation. @app.route("/") def index(): return "Hello, World!" See URL Route Registrations. The endpoint name for the route defaults to the name of the view function if the endpo...
doc_30354
tf.initializers.GlorotNormal, tf.initializers.glorot_normal, tf.keras.initializers.glorot_normal tf.keras.initializers.GlorotNormal( seed=None ) Also available via the shortcut function tf.keras.initializers.glorot_normal. Draws samples from a truncated normal distribution centered on 0 with stddev = sqrt(2 / (f...
doc_30355
The new process has a new console, instead of inheriting its parent’s console (the default).
doc_30356
Autoscale the scalar limits on the norm instance using the current array
doc_30357
Set the artist's clip Bbox. Parameters clipboxBbox
doc_30358
See Migration guide for more details. tf.compat.v1.raw_ops.Xlogy tf.raw_ops.Xlogy( x, y, name=None ) Args x A Tensor. Must be one of the following types: half, float32, float64, complex64, complex128. y A Tensor. Must have the same type as x. name A name for the operation (optional). ...
doc_30359
Bases: skimage.transform._geometric.EuclideanTransform 2D similarity transformation. Has the following form: X = a0 * x - b0 * y + a1 = = s * x * cos(rotation) - s * y * sin(rotation) + a1 Y = b0 * x + a0 * y + b1 = = s * x * sin(rotation) + s * y * cos(rotation) + b1 where s is a scale factor and the homogeneo...
doc_30360
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_30361
Given the location and size of the box, return the path of the box around it. Parameters x0, y0, width, heightfloat Location and size of the box. mutation_sizefloat A reference scale for the mutation. Returns Path
doc_30362
Remove and return an item from the queue. If optional args block is true and timeout is None (the default), block if necessary until an item is available. If timeout is a positive number, it blocks at most timeout seconds and raises the Empty exception if no item was available within that time. Otherwise (block is fals...
doc_30363
Initialize self. See help(type(self)) for accurate signature.
doc_30364
Creates a null session which acts as a replacement object if the real session support could not be loaded due to a configuration error. This mainly aids the user experience because the job of the null session is to still support lookup without complaining but modifications are answered with a helpful error message of w...
doc_30365
See torch.acosh()
doc_30366
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_30367
tf.compat.v1.autograph.to_code( entity, recursive=True, arg_values=None, arg_types=None, indentation=' ', experimental_optional_features=None ) Example usage: def f(x): if x < 0: x = -x return x tf.autograph.to_code(f) "...def tf__f(x):..." Also see: tf.autograph.to_graph. Note: If a function has be...
doc_30368
Determine if a class is a subclass of a second class. issubclass_ is equivalent to the Python built-in issubclass, except that it returns False instead of raising a TypeError if one of the arguments is not a class. Parameters arg1class Input class. True is returned if arg1 is a subclass of arg2. arg2class or ...
doc_30369
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_30370
Write some data on the stream.
doc_30371
Return a list of the visible child Artists.
doc_30372
Return True if the element has an attribute named by name.
doc_30373
Returns the machine type, e.g. 'i386'. An empty string is returned if the value cannot be determined.
doc_30374
True if the polling object is closed. New in version 3.4.
doc_30375
Same as the standard C memmove library function: copies count bytes from src to dst. dst and src must be integers or ctypes instances that can be converted to pointers.
doc_30376
Transform X into a (weighted) graph of k nearest neighbors The transformed data is a sparse graph as returned by kneighbors_graph. Read more in the User Guide. New in version 0.22. Parameters mode{‘distance’, ‘connectivity’}, default=’distance’ Type of returned matrix: ‘connectivity’ will return the connectiv...
doc_30377
See Migration guide for more details. tf.compat.v1.keras.applications.vgg19.preprocess_input tf.keras.applications.vgg19.preprocess_input( x, data_format=None ) Usage example with applications.MobileNet: i = tf.keras.layers.Input([None, None, 3], dtype = tf.uint8) x = tf.cast(i, tf.float32) x = tf.keras.applicat...
doc_30378
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
doc_30379
Compute the inertia tensor of the input image. Parameters imagearray The input image. muarray, optional The pre-computed central moments of image. The inertia tensor computation requires the central moments of the image. If an application requires both the central moments and the inertia tensor (for example...
doc_30380
Get the matrix for the affine part of this transform.
doc_30381
returns a spherical interpolation to the given vector. slerp(Vector3, float) -> Vector3 Calculates the spherical interpolation from self to the given Vector. The second argument - often called t - must be in the range [-1, 1]. It parametrizes where - in between the two vectors - the result should be. If a negative va...
doc_30382
Return True if the object is a coroutine function (a function defined with an async def syntax). New in version 3.5. Changed in version 3.8: Functions wrapped in functools.partial() now return True if the wrapped function is a coroutine function.
doc_30383
The type of methods of user-defined class instances.
doc_30384
The email package calls this method with the name and value currently stored in the Message when that header is requested by the application program, and whatever the method returns is what is passed back to the application as the value of the header being retrieved. Note that there may be more than one header with the...
doc_30385
See Migration guide for more details. tf.compat.v1.lite.TargetSpec tf.lite.TargetSpec( supported_ops=None, supported_types=None ) Details about target device. Converter optimizes the generated model for specific device. Attributes supported_ops Experimental flag, subject to change. Set of OpsSet options...
doc_30386
The tuple of arguments to this Node. The interpretation of arguments depends on the node’s opcode. See the Node docstring for more information. Assignment to this property is allowed. All accounting of uses and users is updated automatically on assignment.
doc_30387
Return an integer file descriptor for the socket on which the server is listening. This function is most commonly passed to selectors, to allow monitoring multiple servers in the same process.
doc_30388
Alias of torch.vstack().
doc_30389
Request the size of the file named filename on the server. On success, the size of the file is returned as an integer, otherwise None is returned. Note that the SIZE command is not standardized, but is supported by many common server implementations.
doc_30390
Call self as a function.
doc_30391
Returns the field instance given a name of a field. field_name can be the name of a field on the model, a field on an abstract or inherited model, or a field defined on another model that points to the model. In the latter case, the field_name will be (in order of preference) the related_query_name set by the user, the...
doc_30392
Call self as a function.
doc_30393
Outputs the record to the file.
doc_30394
Return a new string which is an unquoted version of str. If str ends and begins with double quotes, they are stripped off. Likewise if str ends and begins with angle brackets, they are stripped off.
doc_30395
Compute the Haar-like features for a region of interest (ROI) of an integral image. Haar-like features have been successfully used for image classification and object detection [1]. It has been used for real-time face detection algorithm proposed in [2]. Parameters int_image(M, N) ndarray Integral image for whi...
doc_30396
Works like a TypeConversionDict but does not support modifications. Changelog New in version 0.5. copy() Return a shallow mutable copy of this object. Keep in mind that the standard library’s copy() function is a no-op for this class like for any other python immutable type (eg: tuple).
doc_30397
This property returns the area of the Geometry.
doc_30398
True if this transform is separable in the x- and y- dimensions.
doc_30399
Removes a named value from a registry key. key is an already open key, or one of the predefined HKEY_* constants. value is a string that identifies the value to remove. Raises an auditing event winreg.DeleteValue with arguments key, value.