_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_26300
See Migration guide for more details. tf.compat.v1.raw_ops.TensorListLength tf.raw_ops.TensorListLength( input_handle, name=None ) input_handle: the input list length: the number of tensors in the list Args input_handle A Tensor of type variant. name A name for the operation (optional). Re...
doc_26301
Returns a human-readable printout of the current memory allocator statistics for a given device. This can be useful to display periodically during training, or when handling out-of-memory exceptions. Parameters device (torch.device or int, optional) – selected device. Returns printout for the current device, give...
doc_26302
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 rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_26303
See Migration guide for more details. tf.compat.v1.debugging.is_inf, tf.compat.v1.is_inf, tf.compat.v1.math.is_inf tf.math.is_inf( x, name=None ) Example: x = tf.constant([5.0, np.inf, 6.8, np.inf]) tf.math.is_inf(x) ==> [False, True, False, True] Args x A Tensor. Must be one of the following types: bf...
doc_26304
Display minor ticks on the Axes. Displaying minor ticks may reduce performance; you may turn them off using minorticks_off() if drawing speed is a problem.
doc_26305
A form that lets a user change their password without entering the old password.
doc_26306
A dictionary containing extra parameters passed to the content-type header. This is typically provided by services, such as Google App Engine, that intercept and handle file uploads on your behalf. As a result your handler may not receive the uploaded file content, but instead a URL or other pointer to the file (see RF...
doc_26307
Return a string which is the concatenation of the strings in the sequence seq. Calls str.join element-wise. Parameters separray_like of str or unicode seqarray_like of str or unicode Returns outndarray Output array of str or unicode, depending on input types See also str.join
doc_26308
Return the path to the resource as an actual file system path. This function returns a context manager for use in a with statement. The context manager provides a pathlib.Path object. Exiting the context manager cleans up any temporary file created when the resource needs to be extracted from e.g. a zip file. package i...
doc_26309
Returns the data type with the smallest size and smallest scalar kind to which both type1 and type2 may be safely cast. The returned data type is always in native byte order. This function is symmetric, but rarely associative. Parameters type1dtype or dtype specifier First data type. type2dtype or dtype speci...
doc_26310
See Migration guide for more details. tf.compat.v1.io.gfile.isdir tf.io.gfile.isdir( path ) Args path string, path to a potential directory Returns True, if the path is a directory; False otherwise
doc_26311
Draw random samples from a normal (Gaussian) distribution. The probability density function of the normal distribution, first derived by De Moivre and 200 years later by both Gauss and Laplace independently [2], is often called the bell curve because of its characteristic shape (see the example below). The normal dis...
doc_26312
Finalize this object, making the underlying file a complete PDF file.
doc_26313
Return the cumulative sum of the array elements over the given axis. Masked values are set to 0 internally during the computation. However, their position is saved, and the result will be masked at the same locations. Refer to numpy.cumsum for full documentation. See also numpy.ndarray.cumsum corresponding functio...
doc_26314
Deprecated since version 3.9: Deprecated in favor of headers.
doc_26315
Call matplotlib.backend_managers.ToolManager.message_event.
doc_26316
The tuple should be (nchannels, sampwidth, framerate, nframes, comptype, compname), with values valid for the set*() methods. Sets all parameters.
doc_26317
Returns a list of all hyperparameter specifications.
doc_26318
Escape special characters in pattern. This is useful if you want to match an arbitrary literal string that may have regular expression metacharacters in it. For example: >>> print(re.escape('http://www.python.org')) http://www\.python\.org >>> legal_chars = string.ascii_lowercase + string.digits + "!#$%&'*+-.^_`|~:" >...
doc_26319
Return the text string.
doc_26320
Constructor for an IncrementalDecoder instance. All incremental decoders must provide this constructor interface. They are free to add additional keyword arguments, but only the ones defined here are used by the Python codec registry. The IncrementalDecoder may implement different error handling schemes by providing th...
doc_26321
Retrieve the form class to instantiate. If form_class is provided, that class will be used. Otherwise, a ModelForm will be instantiated using the model associated with the queryset, or with the model, depending on which attribute is provided.
doc_26322
Number of elements in the array. Equal to np.prod(a.shape), i.e., the product of the array’s dimensions. Notes a.size returns a standard arbitrary precision Python integer. This may not be the case with other methods of obtaining the same value (like the suggested np.prod(a.shape), which returns an instance of np.int...
doc_26323
Subset of data from the University of North Carolina Volume Rendering Test Data Set. The full dataset is available at [1]. Returns image(10, 256, 256) uint16 ndarray Notes The 3D volume consists of 10 layers from the larger volume. References 1 https://graphics.stanford.edu/data/voldata/
doc_26324
Which line number in the file the error occurred in. This is 1-indexed: the first line in the file has a lineno of 1.
doc_26325
Bases: matplotlib.tri.triinterpolate.TriInterpolator Linear interpolator on a triangular grid. Each triangle is represented by a plane so that an interpolated value at point (x, y) lies on the plane of the triangle containing (x, y). Interpolated values are therefore continuous across the triangulation, but their fir...
doc_26326
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_26327
Alias for get_linestyle.
doc_26328
Add batched image data to summary. Note that this requires the pillow package. Parameters tag (string) – Data identifier img_tensor (torch.Tensor, numpy.array, or string/blobname) – Image data global_step (int) – Global step value to record walltime (float) – Optional override default walltime (time.time()) se...
doc_26329
class sklearn.metrics.RocCurveDisplay(*, fpr, tpr, roc_auc=None, estimator_name=None, pos_label=None) [source] ROC Curve visualization. It is recommend to use plot_roc_curve to create a visualizer. All parameters are stored as attributes. Read more in the User Guide. Parameters fprndarray False positive rate. ...
doc_26330
Return the transform for linear scaling, which is just the IdentityTransform.
doc_26331
tf.experimental.numpy.signbit( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.signbit.
doc_26332
changes the layer of the sprite change_layer(sprite, new_layer) -> None sprite must have been added to the renderer. It is not checked.
doc_26333
See Migration guide for more details. tf.compat.v1.VariableSynchronization AUTO: Indicates that the synchronization will be determined by the current DistributionStrategy (eg. With MirroredStrategy this would be ON_WRITE). NONE: Indicates that there will only be one copy of the variable, so there is no need to sync...
doc_26334
marker symbol description "." point "," pixel "o" circle "v" triangle_down "^" triangle_up "<" triangle_left ">" triangle_right "1" tri_down "2" tri_up "3" tri_left "4" tri_right "8" octagon "s" square "p" pentagon "P" plus (filled) "*" star "h" hexagon1 "H" hexago...
doc_26335
Special value that can be used as the stdin, stdout or stderr argument to process creation functions. It indicates that the special file os.devnull will be used for the corresponding subprocess stream.
doc_26336
Return a Font representation of a tk named font.
doc_26337
Conform Series/DataFrame to new index with optional filling logic. Places NA/NaN in locations having no value in the previous index. A new object is produced unless the new index is equivalent to the current one and copy=False. Parameters keywords for axes:array-like, optional New labels / index to conform to, ...
doc_26338
Compute the Haversine distance between samples in X and Y. The Haversine (or great circle) distance is the angular distance between two points on the surface of a sphere. The first coordinate of each point is assumed to be the latitude, the second is the longitude, given in radians. The dimension of the data must be ...
doc_26339
Animation subclass for time-based animation. A new frame is drawn every interval milliseconds. Note You must store the created Animation in a variable that lives as long as the animation should run. Otherwise, the Animation object will be garbage-collected and the animation stops. Parameters figFigure The fig...
doc_26340
Sets the terminating condition to be recognized on the channel. term may be any of three types of value, corresponding to three different ways to handle incoming protocol data. term Description string Will call found_terminator() when the string is found in the input stream integer Will call found_terminator() ...
doc_26341
Cause the process to sleep until a signal is received; the appropriate handler will then be called. Returns nothing. Availability: Unix. See the man page signal(2) for further information. See also sigwait(), sigwaitinfo(), sigtimedwait() and sigpending().
doc_26342
Weekly offset. Parameters weekday:int or None, default None Always generate specific day of week. 0 for Monday. Attributes base Returns a copy of the calling offset object with n=1 and all other attributes equal. freqstr kwds n name nanos normalize rule_code weekday ...
doc_26343
Return the font size as an integer. See also font_manager.FontProperties.get_size_in_points
doc_26344
time_raised = models.DateTimeField(default=timezone.now, editable=False) reference = models.CharField(unique=True, max_length=20) description = models.TextField() Here's a basic ModelSerializer that we can use for creating or updating instances of CustomerReportRecord: class CustomerReportSerializer(serial...
doc_26345
Gets the cuda capability of a device. Parameters device (torch.device or int, optional) – device for which to return the device capability. This function is a no-op if this argument is a negative integer. It uses the current device, given by current_device(), if device is None (default). Returns the major and min...
doc_26346
This method generates an error message leader in the format of a Unix C compiler error label; the format is '"%s", line %d: ', where the %s is replaced with the name of the current source file and the %d with the current input line number (the optional arguments can be used to override these). This convenience is provi...
doc_26347
Reverse the transformation operation Parameters Xarray of shape [n_samples, n_selected_features] The input samples. Returns X_rarray of shape [n_samples, n_original_features] X with columns of zeros inserted where features would have been removed by transform.
doc_26348
col_offset end_lineno end_col_offset Instances of ast.expr and ast.stmt subclasses have lineno, col_offset, lineno, and col_offset attributes. The lineno and end_lineno are the first and last line numbers of source text span (1-indexed so the first line is line 1) and the col_offset and end_col_offset are the cor...
doc_26349
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_26350
Return the name of the directory used for temporary files. This defines the default value for the dir argument to all functions in this module. Python searches a standard list of directories to find one which the calling user can create files in. The list is: The directory named by the TMPDIR environment variable. The...
doc_26351
Set this bounding box from the "frozen" bounds of another Bbox.
doc_26352
Set the artist's visibility. Parameters bbool
doc_26353
tf.compat.v1.nn.batch_norm_with_global_normalization( t=None, m=None, v=None, beta=None, gamma=None, variance_epsilon=None, scale_after_normalization=None, name=None, input=None, mean=None, variance=None ) This op is deprecated. See tf.nn.batch_normalization. Args t A 4D input Tensor. m A 1D mea...
doc_26354
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_26355
tf.math.bincount( arr, weights=None, minlength=None, maxlength=None, dtype=tf.dtypes.int32, name=None, axis=None, binary_output=False ) If minlength and maxlength are not given, returns a vector with length tf.reduce_max(arr) + 1 if arr is non-empty, and length 0 otherwise. If weights are non-None, then index ...
doc_26356
Returns True or False based on a case-insensitive check for a header with the given name.
doc_26357
Computes the element-wise minimum of input and other. Note If one of the elements being compared is a NaN, then that element is returned. minimum() is not supported for tensors with complex dtypes. Parameters input (Tensor) – the input tensor. other (Tensor) – the second input tensor Keyword Arguments out (Te...
doc_26358
The type object for weak references objects.
doc_26359
An ExtensionDtype for uint8 integer data. Changed in version 1.0.0: Now uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
doc_26360
An SMTP_SSL instance behaves exactly the same as instances of SMTP. SMTP_SSL should be used for situations where SSL is required from the beginning of the connection and using starttls() is not appropriate. If host is not specified, the local host is used. If port is zero, the standard SMTP-over-SSL port (465) is used....
doc_26361
Alias for self._offset.
doc_26362
Computes the element-wise logical NOT of the given input tensor. If not specified, the output tensor will have the bool dtype. If the input tensor is not a bool tensor, zeros are treated as False and non-zeros are treated as True. Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional...
doc_26363
Return the indices of the elements that are non-zero. Returns a tuple of arrays, one for each dimension of a, containing the indices of the non-zero elements in that dimension. The values in a are always tested and returned in row-major, C-style order. To group the indices by element, rather than dimension, use argwh...
doc_26364
Call decision_function on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports decision_function. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_26365
Like remove() but ignores errors. Parameters header – the header to be discarded.
doc_26366
Return the Canvas of this TurtleScreen. Useful for insiders who know what to do with a Tkinter Canvas. >>> cv = screen.getcanvas() >>> cv <turtle.ScrolledCanvas object ...>
doc_26367
Computes the discrete Fourier Transform sample frequencies for a signal of size n. Note By convention, fft() returns positive frequency terms first, followed by the negative frequencies in reverse order, so that f[-i] for all 0<i≤n/20 < i \leq n/2 in Python gives the negative frequency terms. For an FFT of length n a...
doc_26368
See Migration guide for more details. tf.compat.v1.app.flags.mark_flag_as_required tf.compat.v1.flags.mark_flag_as_required( flag_name, flag_values=_flagvalues.FLAGS ) Registers a flag validator, which will follow usual validator rules. Important note: validator will pass for any non-None value, such as False, 0...
doc_26369
Returns a decompression object, to be used for decompressing data streams that won’t fit into memory at once. The wbits parameter controls the size of the history buffer (or the “window size”), and what header and trailer format is expected. It has the same meaning as described for decompress(). The zdict parameter spe...
doc_26370
The Age response-header field conveys the sender’s estimate of the amount of time since the response (or its revalidation) was generated at the origin server. Age values are non-negative decimal integers, representing time in seconds.
doc_26371
In-place version of multiply().
doc_26372
Convert c to a (n, 4) array of RGBA colors. Parameters cMatplotlib color or array of colors If c is a masked array, an ndarray is returned with a (0, 0, 0, 0) row for each masked value or row in c. alphafloat or sequence of floats, optional If alpha is given, force the alpha value of the returned RGBA tuple...
doc_26373
Remove “small” “trailing” coefficients from a polynomial. “Small” means “small in absolute value” and is controlled by the parameter tol; “trailing” means highest order coefficient(s), e.g., in [0, 1, 1, 0, 0] (which represents 0 + x + x**2 + 0*x**3 + 0*x**4) both the 3-rd and 4-th order coefficients would be “trimme...
doc_26374
Takes the logging configuration from a dictionary. The contents of this dictionary are described in Configuration dictionary schema below. If an error is encountered during configuration, this function will raise a ValueError, TypeError, AttributeError or ImportError with a suitably descriptive message. The following i...
doc_26375
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_26376
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_26377
Return (maximum - minimum) along the given dimension (i.e. peak-to-peak value). Warning ptp preserves the data type of the array. This means the return value for an input of signed integers with n bits (e.g. np.int8, np.int16, etc) is also a signed integer with n bits. In that case, peak-to-peak values greater than ...
doc_26378
class pprint.PrettyPrinter(indent=1, width=80, depth=None, stream=None, *, compact=False, sort_dicts=True) Construct a PrettyPrinter instance. This constructor understands several keyword parameters. An output stream may be set using the stream keyword; the only method used on the stream object is the file protocol’s...
doc_26379
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g...
doc_26380
Creates a comment with the given target name and text. If insert_pis is true, this will also add it to the tree. New in version 3.8.
doc_26381
the session interface to use. By default an instance of SecureCookieSessionInterface is used here. Changelog New in version 0.8.
doc_26382
Bartlett window function. w[n]=1−∣2nN−1−1∣={2nN−1if 0≤n≤N−122−2nN−1if N−12<n<N,w[n] = 1 - \left| \frac{2n}{N-1} - 1 \right| = \begin{cases} \frac{2n}{N - 1} & \text{if } 0 \leq n \leq \frac{N - 1}{2} \\ 2 - \frac{2n}{N - 1} & \text{if } \frac{N - 1}{2} < n < N \\ \end{cases}, where NN is the full window size. The i...
doc_26383
Initialize self. See help(type(self)) for accurate signature.
doc_26384
Try to match reference as well as possible to a portion of fragment (which should be the longer fragment). This is (conceptually) done by taking slices out of fragment, using findfactor() to compute the best match, and minimizing the result. The fragments should both contain 2-byte samples. Return a tuple (offset, fact...
doc_26385
Checks if a given byte content range is valid for the given length. Changelog New in version 0.7. Parameters start (Optional[int]) – stop (Optional[int]) – length (Optional[int]) – Return type bool
doc_26386
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_26387
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_26388
Like Artist.get_window_extent, but includes any clipping. Parameters rendererRendererBase subclass renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns Bbox The enclosing bounding box (in figure pixel coordinates).
doc_26389
Compute the outer product of two vectors. Given two vectors, a = [a0, a1, ..., aM] and b = [b0, b1, ..., bN], the outer product [1] is: [[a0*b0 a0*b1 ... a0*bN ] [a1*b0 . [ ... . [aM*b0 aM*bN ]] Parameters a(M,) array_like First input vector. Input is flattened if not already 1-dimen...
doc_26390
See Migration guide for more details. tf.compat.v1.raw_ops.AnonymousIterator tf.raw_ops.AnonymousIterator( output_types, output_shapes, name=None ) Args output_types A list of tf.DTypes that has length >= 1. output_shapes A list of shapes (each a tf.TensorShape or list of ints) that has length >= ...
doc_26391
Returns a new tensor with the hyperbolic sine of the elements of input. outi=sinh⁡(inputi)\text{out}_{i} = \sinh(\text{input}_{i}) Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4) >>> a tensor([ 0.5380, -0.8632, -0.1265,...
doc_26392
The widget class to be used for GeometryField. Defaults to OSMWidget.
doc_26393
class sklearn.svm.LinearSVC(penalty='l2', loss='squared_hinge', *, dual=True, tol=0.0001, C=1.0, multi_class='ovr', fit_intercept=True, intercept_scaling=1, class_weight=None, verbose=0, random_state=None, max_iter=1000) [source] Linear Support Vector Classification. Similar to SVC with parameter kernel=’linear’, but...
doc_26394
Return a bitmask of the audio output formats supported by the soundcard. Some of the formats supported by OSS are: Format Description AFMT_MU_LAW a logarithmic encoding (used by Sun .au files and /dev/audio) AFMT_A_LAW a logarithmic encoding AFMT_IMA_ADPCM a 4:1 compressed format defined by the Interactive Mu...
doc_26395
sklearn.linear_model.enet_path(X, y, *, l1_ratio=0.5, eps=0.001, n_alphas=100, alphas=None, precompute='auto', Xy=None, copy_X=True, coef_init=None, verbose=False, return_n_iter=False, positive=False, check_input=True, **params) [source] Compute elastic net path with coordinate descent. The elastic net optimization f...
doc_26396
os.O_NOINHERIT os.O_SHORT_LIVED os.O_TEMPORARY os.O_RANDOM os.O_SEQUENTIAL os.O_TEXT The above constants are only available on Windows.
doc_26397
Set the sizes of each member of the collection. Parameters sizesndarray or None The size to set for each element of the collection. The value is the 'area' of the element. dpifloat, default: 72 The dpi of the canvas.
doc_26398
Interpret the input as a matrix. Unlike matrix, asmatrix does not make a copy if the input is already a matrix or an ndarray. Equivalent to matrix(data, copy=False). Parameters dataarray_like Input data. dtypedata-type Data-type of the output matrix. Returns matmatrix data interpreted as a matrix. ...
doc_26399
Compute the inverse FFT of a signal that has Hermitian symmetry. Parameters aarray_like Input array. nint, optional Length of the inverse FFT, the number of points along transformation axis in the input to use. If n is smaller than the length of the input, the input is cropped. If it is larger, the input is...