_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_8600
Returns a non-negative Python integer with k random bits. This method is supplied with the MersenneTwister generator and some other generators may also provide it as an optional part of the API. When available, getrandbits() enables randrange() to handle arbitrarily large ranges. Changed in version 3.9: This method no...
doc_8601
tf.keras.applications.inception_v3.InceptionV3 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.InceptionV3, tf.compat.v1.keras.applications.inception_v3.InceptionV3 tf.keras.applications.InceptionV3( include_top=True, weights='imagenet', input_tensor=None, in...
doc_8602
os.POSIX_FADV_SEQUENTIAL os.POSIX_FADV_RANDOM os.POSIX_FADV_NOREUSE os.POSIX_FADV_WILLNEED os.POSIX_FADV_DONTNEED Flags that can be used in advice in posix_fadvise() that specify the access pattern that is likely to be used. Availability: Unix. New in version 3.3.
doc_8603
Return whether the artist is to be rasterized.
doc_8604
tf.compat.v1.nn.rnn_cell.DropoutWrapper( *args, **kwargs ) Args cell an RNNCell, a projection to output_size is added to it. input_keep_prob unit Tensor or float between 0 and 1, input keep probability; if it is constant and 1, no input dropout will be added. output_keep_prob unit Tensor or fl...
doc_8605
Return (x1 < x2) element-wise. Unlike numpy.greater, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters x1, x2array_like of str or unicode Input arrays of the same shape. Returns o...
doc_8606
A decorator to conditionally mark tests with unittest.expectedFailure(). Any use of this decorator should have an associated comment identifying the relevant tracker issue.
doc_8607
See Migration guide for more details. tf.compat.v1.raw_ops.BatchMatrixSetDiag tf.raw_ops.BatchMatrixSetDiag( input, diagonal, name=None ) Args input A Tensor. diagonal A Tensor. Must have the same type as input. name A name for the operation (optional). Returns A Tensor. Has the sa...
doc_8608
Returns the lowercased class name of the wrapped field’s widget, with any trailing input or widget removed. This may be used when building forms where the layout is dependent upon the widget type. For example: {% for field in form %} {% if field.widget_type == 'checkbox' %} # render one way {% else %} ...
doc_8609
Latent Dirichlet Allocation with online variational Bayes algorithm New in version 0.17. Read more in the User Guide. Parameters n_componentsint, default=10 Number of topics. Changed in version 0.19: n_topics was renamed to n_components doc_topic_priorfloat, default=None Prior of document topic distribu...
doc_8610
The Solaris OS has a CLOCK_HIGHRES timer that attempts to use an optimal hardware source, and may give close to nanosecond resolution. CLOCK_HIGHRES is the nonadjustable, high-resolution clock. Availability: Solaris. New in version 3.3.
doc_8611
Construct a dtype description list from a given dtype. Returns a new dtype object, with the type of all fields in ndtype to a boolean type. Field names are not altered. Parameters ndtypedtype The dtype to convert. Returns resultdtype A dtype that looks like ndtype, the type of all fields is boolean. ...
doc_8612
Other Members GPU 'gpu' SERVING 'serve' TPU 'tpu' TRAINING 'train'
doc_8613
Performs Gamma Correction on the input image. Also known as Power Law Transform. This function transforms the input image pixelwise according to the equation O = I**gamma after scaling each pixel to the range 0 to 1. Parameters imagendarray Input image. gammafloat, optional Non negative real number. Default...
doc_8614
Context manager for using style settings temporarily. Parameters stylestr, dict, Path or list A style specification. Valid options are: str The name of a style or a path/URL to a style file. For a list of available style names, see style.available. dict Dictionary with valid key/value pairs for matplotlib.r...
doc_8615
Process signal s. All of the functions registered to receive callbacks on s will be called with *args and **kwargs.
doc_8616
Implements Averaged Stochastic Gradient Descent. It has been proposed in Acceleration of stochastic approximation by averaging. Parameters params (iterable) – iterable of parameters to optimize or dicts defining parameter groups lr (float, optional) – learning rate (default: 1e-2) lambd (float, optional) – deca...
doc_8617
line started by this opcode (if any), otherwise None
doc_8618
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 clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None d...
doc_8619
Sets a cookie. The parameters are the same as in the Morsel cookie object in the Python standard library. max_age should be an integer number of seconds, or None (default) if the cookie should last only as long as the client’s browser session. If expires is not specified, it will be calculated. expires should eithe...
doc_8620
Set the Axes position. Axes have two position attributes. The 'original' position is the position allocated for the Axes. The 'active' position is the position the Axes is actually drawn at. These positions are usually the same unless a fixed aspect is set to the Axes. See Axes.set_aspect for details. Parameters ...
doc_8621
Return True if all cased characters 4 in the string are lowercase and there is at least one cased character, False otherwise.
doc_8622
Bases: matplotlib.ticker.Locator Used to locate radius ticks. Ensures that all ticks are strictly positive. For all other tasks, it delegates to the base Locator (which may be different depending on the scale of the r-axis). nonsingular(vmin, vmax)[source] Adjust a range as needed to avoid singularities. This met...
doc_8623
Return a tuple width, height, xdescent, ydescent of the box.
doc_8624
This exception is raised when a writable mailbox has its status changed by the server. This is a sub-class of IMAP4.error. Some other client now has write permission, and the mailbox will need to be re-opened to re-obtain write permission.
doc_8625
See Migration guide for more details. tf.compat.v1.io.gfile.walk tf.io.gfile.walk( top, topdown=True, onerror=None ) Args top string, a Directory name topdown bool, Traverse pre order if True, post order if False. onerror optional handler for errors. Should be a function, it will be called w...
doc_8626
Deprecated function. Use skimage.registration.phase_cross_correlation instead.
doc_8627
Returns true if self.data stored on a gpu
doc_8628
This is called from the default datetime.astimezone() implementation. When called from that, dt.tzinfo is self, and dt’s date and time data are to be viewed as expressing a UTC time. The purpose of fromutc() is to adjust the date and time data, returning an equivalent datetime in self’s local time. Most tzinfo subclass...
doc_8629
Copy properties from other to self.
doc_8630
remove the sprite from groups remove(*groups) -> None Any number of Group instances can be passed as arguments. The Sprite will be removed from the Groups it is currently a member of.
doc_8631
True divide self by other in-place.
doc_8632
To log a user in, from a view, use login(). It takes an HttpRequest object and a User object. login() saves the user’s ID in the session, using Django’s session framework. Note that any data set during the anonymous session is retained in the session after a user logs in. This example shows how you might use both authe...
doc_8633
See Migration guide for more details. tf.compat.v1.keras.callbacks.BaseLogger tf.keras.callbacks.BaseLogger( stateful_metrics=None ) This callback is automatically applied to every Keras model. Arguments stateful_metrics Iterable of string names of metrics that should not be averaged over an epoch. Metr...
doc_8634
Plot 2D or 3D data. Parameters xs1D array-like x coordinates of vertices. ys1D array-like y coordinates of vertices. zsfloat or 1D array-like z coordinates of vertices; either one for all points or one for each point. zdir{'x', 'y', 'z'}, default: 'z' When plotting 2D data, the direction to use as z...
doc_8635
class sklearn.cluster.KMeans(n_clusters=8, *, init='k-means++', n_init=10, max_iter=300, tol=0.0001, precompute_distances='deprecated', verbose=0, random_state=None, copy_x=True, n_jobs='deprecated', algorithm='auto') [source] K-Means clustering. Read more in the User Guide. Parameters n_clustersint, default=8 ...
doc_8636
Euler’s constant, base of natural logarithms, Napier’s constant. e = 2.71828182845904523536028747135266249775724709369995... See Also exp : Exponential function log : Natural logarithm References https://en.wikipedia.org/wiki/E_%28mathematical_constant%29
doc_8637
See Migration guide for more details. tf.compat.v1.nn.batch_normalization tf.nn.batch_normalization( x, mean, variance, offset, scale, variance_epsilon, name=None ) Normalizes a tensor by mean and variance, and applies (optionally) a scale \(\gamma\) to it, as well as an offset \(\beta\): \(\frac{\gamma(x-\mu)}{...
doc_8638
See Migration guide for more details. tf.compat.v1.random.stateless_uniform tf.random.stateless_uniform( shape, seed, minval=0, maxval=None, dtype=tf.dtypes.float32, name=None ) This is a stateless version of tf.random.uniform: if run twice with the same seeds and shapes, it will produce the same pseudorandom nu...
doc_8639
Return the artist's zorder.
doc_8640
Return the pickled representation of the object obj as a bytes object, instead of writing it to a file. Arguments protocol, fix_imports and buffer_callback have the same meaning as in the Pickler constructor. Changed in version 3.8: The buffer_callback argument was added.
doc_8641
class ast.Tuple(elts, ctx) A list or tuple. elts holds a list of nodes representing the elements. ctx is Store if the container is an assignment target (i.e. (x,y)=something), and Load otherwise. >>> print(ast.dump(ast.parse('[1, 2, 3]', mode='eval'), indent=4)) Expression( body=List( elts=[ C...
doc_8642
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_8643
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_8644
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalLMDBDataset tf.raw_ops.ExperimentalLMDBDataset( filenames, output_types, output_shapes, name=None ) Args filenames A Tensor of type string. output_types A list of tf.DTypes that has length >= 1. output_shapes A list of sh...
doc_8645
The FileSystemStorage class implements basic file storage on a local filesystem. It inherits from Storage and provides implementations for all the public methods thereof. location Absolute path to the directory that will hold the files. Defaults to the value of your MEDIA_ROOT setting. base_url URL that serve...
doc_8646
Add an infinitely long straight line. The line can be defined either by two points xy1 and xy2, or by one point xy1 and a slope. This draws a straight line "on the screen", regardless of the x and y scales, and is thus also suitable for drawing exponential decays in semilog plots, power laws in loglog plots, etc. How...
doc_8647
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
doc_8648
A list of indexes that you want to define on the model: from django.db import models class Customer(models.Model): first_name = models.CharField(max_length=100) last_name = models.CharField(max_length=100) class Meta: indexes = [ models.Index(fields=['last_name', 'first_name']), ...
doc_8649
Casts this storage to byte type
doc_8650
Generate random samples from the fitted Gaussian distribution. Parameters n_samplesint, default=1 Number of samples to generate. Returns Xarray, shape (n_samples, n_features) Randomly generated sample yarray, shape (nsamples,) Component labels
doc_8651
Draw samples from a logistic distribution. Samples are drawn from a logistic distribution with specified parameters, loc (location or mean, also median), and scale (>0). Note New code should use the logistic method of a default_rng() instance instead; please see the Quick Start. Parameters locfloat or array_lik...
doc_8652
Set the artist offset transform. Parameters transOffsetTransform
doc_8653
Produce a directory listing as returned by the LIST command, printing it to standard output. The optional argument is a directory to list (default is the current server directory). Multiple arguments can be used to pass non-standard options to the LIST command. If the last argument is a function, it is used as a callba...
doc_8654
See Migration guide for more details. tf.compat.v1.raw_ops.DebugNumericSummary tf.raw_ops.DebugNumericSummary( input, device_name='', tensor_name='', debug_urls=[], lower_bound=float('-inf'), upper_bound=float('inf'), mute_if_healthy=False, gated_grpc=False, name=None ) Provide a basic summary of numeric...
doc_8655
A CDATA marked section was not closed.
doc_8656
See Migration guide for more details. tf.compat.v1.raw_ops.Acosh tf.raw_ops.Acosh( x, name=None ) Given an input tensor, the function computes inverse hyperbolic cosine of every element. Input range is [1, inf]. It returns nan if the input lies outside the range. x = tf.constant([-2, -0.5, 1, 1.2, 200, 10000, fl...
doc_8657
Returns the computer’s network name (may not be fully qualified!). An empty string is returned if the value cannot be determined.
doc_8658
Returns a list of bounding rects of connected components get_bounding_rects() -> [Rect, ...] Provides a list containing a bounding rect for each connected component. Returns: a list containing a bounding rect for each connected component, an empty list is returned if the mask has no bits set Return type: list[...
doc_8659
alias of numpy.uint8
doc_8660
Get the image as RGB bytes. draw must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.
doc_8661
Series basis polynomial of degree deg. Returns the series representing the basis polynomial of degree deg. New in version 1.7.0. Parameters degint Degree of the basis polynomial for the series. Must be >= 0. domain{None, array_like}, optional If given, the array must be of the form [beg, end], where beg a...
doc_8662
Return the socket’s file descriptor (a small integer), or -1 on failure. This is useful with select.select(). Under Windows the small integer returned by this method cannot be used where a file descriptor can be used (such as os.fdopen()). Unix does not have this limitation.
doc_8663
Return self^=value.
doc_8664
Translate a host name to IPv4 address format. The IPv4 address is returned as a string, such as '100.50.200.5'. If the host name is an IPv4 address itself it is returned unchanged. See gethostbyname_ex() for a more complete interface. gethostbyname() does not support IPv6 name resolution, and getaddrinfo() should be us...
doc_8665
Write the bytestring in str to file descriptor fd. Return the number of bytes actually written. Note This function is intended for low-level I/O and must be applied to a file descriptor as returned by os.open() or pipe(). To write a “file object” returned by the built-in function open() or by popen() or fdopen(), or s...
doc_8666
Superseded by TraversableReader An abstract base class to provide the ability to read resources. From the perspective of this ABC, a resource is a binary artifact that is shipped within a package. Typically this is something like a data file that lives next to the __init__.py file of the package. The purpose of this cl...
doc_8667
A dictionary mapping parameter names to parameter values.
doc_8668
A mixin that can be used to retrieve and provide parsing information for a week component of a date. Methods and Attributes week_format The strftime() format to use when parsing the week. By default, this is '%U', which means the week starts on Sunday. Set it to '%W' or '%V' (ISO 8601 week) if your week starts on M...
doc_8669
This is always False. This attribute exists so middleware can treat streaming responses differently from regular responses.
doc_8670
turtle.onkeyrelease(fun, key) Parameters fun – a function with no arguments or None key – a string: key (e.g. “a”) or key-symbol (e.g. “space”) Bind fun to key-release event of key. If fun is None, event bindings are removed. Remark: in order to be able to register key-events, TurtleScreen must have the focu...
doc_8671
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_8672
display multiple images bounce off each other using collision detection mask.main(*args) -> None Positional arguments: one or more image file names. This pygame.masks demo will display multiple moving sprites bouncing off each other. More than one sprite image can be provided. If run as a program then mask.py takes o...
doc_8673
Upsamples the input, using bilinear upsampling. Warning This function is deprecated in favor of torch.nn.functional.interpolate(). This is equivalent with nn.functional.interpolate(..., mode='bilinear', align_corners=True). Expected inputs are spatial (4 dimensional). Use upsample_trilinear fo volumetric (5 dimensi...
doc_8674
Return the string representing a character whose Unicode code point is the integer i. For example, chr(97) returns the string 'a', while chr(8364) returns the string '€'. This is the inverse of ord(). The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in base 16). ValueError will be raised if i is o...
doc_8675
Default tools
doc_8676
Marks a middleware as asynchronous-only. Django will wrap it in an asynchronous event loop when it is called from the WSGI request path.
doc_8677
Chelsea the cat. An example with texture, prominent edges in horizontal and diagonal directions, as well as features of differing scales. Returns chelsea(300, 451, 3) uint8 ndarray Chelsea image. Notes No copyright restrictions. CC0 by the photographer (Stefan van der Walt).
doc_8678
Write a byte string to the socket, doubling any IAC characters. This can block if the connection is blocked. May raise OSError if the connection is closed. Raises an auditing event telnetlib.Telnet.write with arguments self, buffer. Changed in version 3.3: This method used to raise socket.error, which is now an alias ...
doc_8679
Performs a batch matrix-matrix product of matrices in batch1 and batch2. input is added to the final result. batch1 and batch2 must be 3-D tensors each containing the same number of matrices. If batch1 is a (b×n×m)(b \times n \times m) tensor, batch2 is a (b×m×p)(b \times m \times p) tensor, then input must be broadc...
doc_8680
ABC Inherits from Abstract Methods Mixin Methods Container __contains__ Hashable __hash__ Iterable __iter__ Iterator Iterable __next__ __iter__ Reversible Iterable __reversed__ Generator Iterator send, throw close, __iter__, __next__ Sized __len__ Callable __call__ Collection Sized, Iterab...
doc_8681
Return lines from a progressive probabilistic line Hough transform. Parameters image(M, N) ndarray Input image with nonzero values representing edges. thresholdint, optional Threshold line_lengthint, optional Minimum accepted length of detected lines. Increase the parameter to extract longer lines. li...
doc_8682
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_8683
Return fast binary morphological closing of an image. This function returns the same result as greyscale closing but performs faster for binary images. The morphological closing on an image is defined as a dilation followed by an erosion. Closing can remove small dark spots (i.e. “pepper”) and connect small bright cr...
doc_8684
Applies the latest method by computing the new partial masks and returning its combination with the default_mask. The new partial mask should be computed on the entries or channels that were not zeroed out by the default_mask. Which portions of the tensor t the new mask will be calculated from depends on the PRUNING_...
doc_8685
Return the artist's zorder.
doc_8686
... dtype=[('name', 'U10'), ('age', 'i4'), ('weight', 'f4')]) >>> x array([('Rex', 9, 81.), ('Fido', 3, 27.)], dtype=[('name', 'U10'), ('age', '<i4'), ('weight', '<f4')]) Here x is a one-dimensional array of length two whose datatype is a structure with three fields: 1. A string of length 10 or less...
doc_8687
Transform a function into a single-dispatch generic function. To define a generic function, decorate it with the @singledispatch decorator. Note that the dispatch happens on the type of the first argument, create your function accordingly: >>> from functools import singledispatch >>> @singledispatch ... def fun(arg, ve...
doc_8688
YUV to RGB color space conversion. Parameters yuv(…, 3) array_like The image in YUV format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in RGB format. Same dimensions as input. Raises ValueError If yuv is not at least 2-D with shape (…, 3). References 1 https://en...
doc_8689
Default widget: DateTimeInput Empty value: None Normalizes to: A Python datetime.datetime object. Validates that the given value is either a datetime.datetime, datetime.date or string formatted in a particular datetime format. Error message keys: required, invalid Takes one optional argument: input_formats A l...
doc_8690
Out-of-place version of torch.Tensor.scatter_()
doc_8691
Show ImageViewer and attached plugins. This behaves much like matplotlib.pyplot.show and QWidget.show.
doc_8692
Return the arc sine of x. This has the same branch cuts as acos().
doc_8693
Set the CapStyle for the collection (for all its elements). Parameters csCapStyle or {'butt', 'projecting', 'round'}
doc_8694
alias of pandas._libs.tslibs.offsets.BusinessDay
doc_8695
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_8696
tf.compat.v1.data.experimental.map_and_batch_with_legacy_function( map_func, batch_size, num_parallel_batches=None, drop_remainder=False, num_parallel_calls=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use `tf.data.experimental.map_and_batch() ...
doc_8697
class turtle.RawPen(canvas) Parameters canvas – a tkinter.Canvas, a ScrolledCanvas or a TurtleScreen Create a turtle. The turtle has all methods described above as “methods of Turtle/RawTurtle”.
doc_8698
Issue an SMTP AUTH command for the specified authentication mechanism, and handle the challenge response via authobject. mechanism specifies which authentication mechanism is to be used as argument to the AUTH command; the valid values are those listed in the auth element of esmtp_features. authobject must be a callabl...
doc_8699
An ABC with one abstract method __float__.