_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_23200
Transform each element of a list-like to a row. New in version 0.25.0. Parameters ignore_index:bool, default False If True, the resulting index will be labeled 0, 1, …, n - 1. New in version 1.1.0. Returns Series Exploded lists to rows; index will be duplicated for these rows. See also Series.st...
doc_23201
See Migration guide for more details. tf.compat.v1.raw_ops.SendTPUEmbeddingGradients tf.raw_ops.SendTPUEmbeddingGradients( inputs, learning_rates, config, name=None ) Args inputs A list of at least 1 Tensor objects with type float32. A TensorList of gradients with which to update embedding tables. This ...
doc_23202
ptp(a[, axis, out, keepdims]) Range of values (maximum - minimum) along an axis. percentile(a, q[, axis, out, ...]) Compute the q-th percentile of the data along the specified axis. nanpercentile(a, q[, axis, out, ...]) Compute the qth percentile of the data along the specified axis, while ignoring nan values. qu...
doc_23203
Exit code that means a user specified output file could not be created. Availability: Unix.
doc_23204
Wait for events. timeout in seconds (float) Changed in version 3.5: The function is now retried with a recomputed timeout when interrupted by a signal, except if the signal handler raises an exception (see PEP 475 for the rationale), instead of raising InterruptedError.
doc_23205
tf.compat.v1.data.TFRecordDataset( filenames, compression_type=None, buffer_size=None, num_parallel_reads=None ) Args filenames A tf.string tensor or tf.data.Dataset containing one or more filenames. compression_type (Optional.) A tf.string scalar evaluating to one of "" (no compression), "ZLIB", or...
doc_23206
Return the Bbox bounding the text, in display units. In addition to being used internally, this is useful for specifying clickable regions in a png file on a web page. Parameters rendererRenderer, optional A renderer is needed to compute the bounding box. If the artist has already been drawn, the renderer is ca...
doc_23207
Raises an AssertionError if two array_like objects are not equal. Given two array_like objects, check that the shape is equal and all elements of these objects are equal (but see the Notes for the special handling of a scalar). An exception is raised at shape mismatch or conflicting values. In contrast to the standar...
doc_23208
Close a figure window. Parameters figNone or int or str or Figure The figure to close. There are a number of ways to specify this: None: the current figure Figure: the given Figure instance int: a figure number str: a figure name 'all': all figures Examples using matplotlib.pyplot.close Pipong...
doc_23209
A context manager that creates a temporary directory at path and yields the directory. If path is None, the temporary directory is created using tempfile.mkdtemp(). If quiet is False, the context manager raises an exception on error. Otherwise, if path is specified and cannot be created, only a warning is issued.
doc_23210
pygame object for representing images Surface((width, height), flags=0, depth=0, masks=None) -> Surface Surface((width, height), flags=0, Surface) -> Surface A pygame Surface is used to represent any image. The Surface has a fixed resolution and pixel format. Surfaces with 8-bit pixels use a color palette to map t...
doc_23211
Return a file-like representation of the message corresponding to key, or raise a KeyError exception if no such message exists. The file-like object behaves as if open in binary mode. This file should be closed once it is no longer needed. Changed in version 3.2: The file object really is a binary file; previously it ...
doc_23212
Returns either a new reference to self if dtype is not given or a new array of provided data type if dtype is different from the current dtype of the array.
doc_23213
tf.compat.v1.train.GradientDescentOptimizer( learning_rate, use_locking=False, name='GradientDescent' ) Args learning_rate A Tensor or a floating point value. The learning rate to use. use_locking If True use locks for update operations. name Optional name prefix for the operations created whe...
doc_23214
See torch.log()
doc_23215
Extract all doctest examples from the given string, and return them as a list of Example objects. Line numbers are 0-based. The optional argument name is a name identifying this string, and is only used for error messages.
doc_23216
Mean absolute error regression loss. Read more in the User Guide. Parameters y_truearray-like of shape (n_samples,) or (n_samples, n_outputs) Ground truth (correct) target values. y_predarray-like of shape (n_samples,) or (n_samples, n_outputs) Estimated target values. sample_weightarray-like of shape (n_...
doc_23217
Returns the greatest int <= self. This method can also be accessed through the math.floor() function: >>> from math import floor >>> floor(Fraction(355, 113)) 3
doc_23218
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyAdagradDA tf.raw_ops.ApplyAdagradDA( var, gradient_accumulator, gradient_squared_accumulator, grad, lr, l1, l2, global_step, use_locking=False, name=None ) Args var A mutable Tensor. Must be one of the following types: float32, float64,...
doc_23219
The Date general-header field represents the date and time at which the message was originated, having the same semantics as orig-date in RFC 822. Changed in version 2.0: The datetime object is timezone-aware.
doc_23220
TensorLike = Union[ tensorflow.python.types.core.Tensor, tensorflow.python.types.core.TensorProtocol, int, float, bool, str, complex, tuple, list, numpy.ndarray ] This definition may be used in user code. Additional types may be added in the future as more input types are suppor...
doc_23221
Inverse of fftshift(). Parameters input (Tensor) – the tensor in FFT order dim (int, Tuple[int], optional) – The dimensions to rearrange. Only dimensions specified here will be rearranged, any other dimensions will be left in their original order. Default: All dimensions of input. Example >>> f = torch.fft.fftf...
doc_23222
joins two rectangles into one, in place union_ip(Rect) -> None Same as the Rect.union() method, but operates in place.
doc_23223
Create a new "blended" transform using x_transform to transform the x-axis and y_transform to transform the y-axis. A faster version of the blended transform is returned for the case where both child transforms are affine.
doc_23224
Returns True if x is a zero; otherwise returns False.
doc_23225
The smallest possible difference between non-equal datetime objects, timedelta(microseconds=1).
doc_23226
tf.keras.applications.efficientnet.EfficientNetB7 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.EfficientNetB7, tf.compat.v1.keras.applications.efficientnet.EfficientNetB7 tf.keras.applications.EfficientNetB7( include_top=True, weights='imagenet', input_tensor=...
doc_23227
Alias for get_edgecolor.
doc_23228
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyFtrl tf.raw_ops.ResourceSparseApplyFtrl( var, accum, linear, grad, indices, lr, l1, l2, lr_power, use_locking=False, multiply_linear_by_lr=False, name=None ) That is for rows we have grad for, we update var, accum and linear as fol...
doc_23229
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called.
doc_23230
Sets the character encoding of this InputSource. The encoding must be a string acceptable for an XML encoding declaration (see section 4.3.3 of the XML recommendation). The encoding attribute of the InputSource is ignored if the InputSource also contains a character stream.
doc_23231
tf.compat.v1.losses.get_total_loss( add_regularization_losses=True, name='total_loss', scope=None ) In particular, this adds any losses you have added with tf.add_loss() to any regularization losses that have been added by regularization parameters on layers constructors e.g. tf.layers. Be very sure to use this if...
doc_23232
Returns True if the two operands have the same exponent.
doc_23233
Authenticate command — requires response processing. mechanism specifies which authentication mechanism is to be used - it should appear in the instance variable capabilities in the form AUTH=mechanism. authobject must be a callable object: data = authobject(response) It will be called to process server continuation r...
doc_23234
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.tf_stack.extract_stack tf.compat.v1.flags.tf_decorator.tf_stack.extract_stack( limit=-1 ) NOTE(mrry): traceback.extract_stack eagerly retrieves the line of code for each stack frame using linecache, which results in an abundance of stat() ...
doc_23235
Which methods can be used for the cross origin request.
doc_23236
This class allows outputting the WKT representation of a geometry. See the WKBWriter.outdim, trim, and precision attributes for details about the constructor arguments. write(geom) Returns the WKT of the given geometry. Example: >>> from django.contrib.gis.geos import Point, WKTWriter >>> pnt = Point(1, 1) >>> wkt_...
doc_23237
Returns a new 1-D tensor which indexes the input tensor according to the boolean mask mask which is a BoolTensor. The shapes of the mask tensor and the input tensor don’t need to match, but they must be broadcastable. Note The returned tensor does not use the same storage as the original tensor Parameters input (...
doc_23238
Clear the current history. This calls clear_history() in the underlying library. The Python function only exists if Python was compiled for a version of the library that supports it.
doc_23239
tf.train.experimental.enable_mixed_precision_graph_rewrite( opt, loss_scale='dynamic' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed after 2020-11-30. Instructions for updating: Use tf.keras.mixed_precision. There is a guide at https://www.tensorflow.org/guide/mixed_precision. Alternatively, tf.compat....
doc_23240
Returns a new instance of the SMTPHandler class. The instance is initialized with the from and to addresses and subject line of the email. The toaddrs should be a list of strings. To specify a non-standard SMTP port, use the (host, port) tuple format for the mailhost argument. If you use a string, the standard SMTP por...
doc_23241
Plot a spectrogram. Compute and plot a spectrogram of data in x. Data are split into NFFT length segments and the spectrum of each section is computed. The windowing function window is applied to each segment, and the amount of overlap of each segment is specified with noverlap. The spectrogram is plotted as a colorm...
doc_23242
tf.experimental.numpy.bitwise_or( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.bitwise_or.
doc_23243
class int(x, base=10) Return an integer object constructed from a number or string x, or return 0 if no arguments are given. If x defines __int__(), int(x) returns x.__int__(). If x defines __index__(), it returns x.__index__(). If x defines __trunc__(), it returns x.__trunc__(). For floating point numbers, this trun...
doc_23244
Return filter function to be used for agg filter.
doc_23245
See Migration guide for more details. tf.compat.v1.estimator.BinaryClassHead tf.estimator.BinaryClassHead( weight_column=None, thresholds=None, label_vocabulary=None, loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, loss_fn=None, name=None ) Uses sigmoid_cross_entropy_with_logits loss. The he...
doc_23246
Return a StackSummary object representing a list of “pre-processed” stack trace entries extracted from the traceback object tb. It is useful for alternate formatting of stack traces. The optional limit argument has the same meaning as for print_tb(). A “pre-processed” stack trace entry is a FrameSummary object containi...
doc_23247
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_23248
Plot the cross correlation between x and y. The correlation with lag k is defined as \(\sum_n x[n+k] \cdot y^*[n]\), where \(y^*\) is the complex conjugate of \(y\). Parameters x, yarray-like of length n detrendcallable, default: mlab.detrend_none (no detrending) A detrending function applied to x and y. It m...
doc_23249
Construct a StackSummary object from a frame generator (such as is returned by walk_stack() or walk_tb()). If limit is supplied, only this many frames are taken from frame_gen. If lookup_lines is False, the returned FrameSummary objects will not have read their lines in yet, making the cost of creating the StackSummary...
doc_23250
See Migration guide for more details. tf.compat.v1.raw_ops.PriorityQueueV2 tf.raw_ops.PriorityQueueV2( shapes, component_types=[], capacity=-1, container='', shared_name='', name=None ) Note that the PriorityQueue requires the first component of any element to be a scalar int64, in addition to the other elem...
doc_23251
Filename of the image. str: Filename of the image to use in a Toolbar. If None, the name is used as a label in the toolbar button.
doc_23252
Write Styler to a file, buffer or string in HTML-CSS format. New in version 1.3.0. Parameters buf:str, path object, file-like object, or None, default None String, path object (implementing os.PathLike[str]), or file-like object implementing a string write() function. If None, the result is returned as a stri...
doc_23253
See Migration guide for more details. tf.compat.v1.raw_ops.MutableDenseHashTable tf.raw_ops.MutableDenseHashTable( empty_key, value_dtype, container='', shared_name='', use_node_name_sharing=False, value_shape=[], initial_num_buckets=131072, max_load_factor=0.8, name=None ) It uses "open addressing" with...
doc_23254
Bases: torch.distributions.distribution.Distribution Samples from a Cauchy (Lorentz) distribution. The distribution of the ratio of independent normally distributed random variables with means 0 follows a Cauchy distribution. Example: >>> m = Cauchy(torch.tensor([0.0]), torch.tensor([1.0])) >>> m.sample() # sample f...
doc_23255
Returns a list of candidate template names. Returns the following list: the value of template_name on the view (if provided) the contents of the template_name_field field on the object instance that the view is operating upon (if available) <app_label>/<model_name><template_name_suffix>.html
doc_23256
Return the memory usage of each column in bytes. The memory usage can optionally include the contribution of the index and elements of object dtype. This value is displayed in DataFrame.info by default. This can be suppressed by setting pandas.options.display.memory_usage to False. Parameters index:bool, default ...
doc_23257
Base Class for generic BitGenerators, which provide a stream of random bits based on different algorithms. Must be overridden. Parameters seed{None, int, array_like[ints], SeedSequence}, optional A seed to initialize the BitGenerator. If None, then fresh, unpredictable entropy will be pulled from the OS. If an ...
doc_23258
tf.compat.v1.estimator.BaselineRegressor( model_dir=None, label_dimension=1, weight_column=None, optimizer='Ftrl', config=None, loss_reduction=tf.compat.v1.losses.Reduction.SUM ) This regressor ignores feature values and will learn to predict the average value of each label. Example: # Build BaselineRegre...
doc_23259
Make a plot with log scaling on the y axis. Call signatures: semilogy([x], y, [fmt], data=None, **kwargs) semilogy([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs) This is just a thin wrapper around plot which additionally changes the y-axis to log scaling. All of the concepts and parameters of plot can be used here ...
doc_23260
find the average surface from many surfaces. average_surfaces(Surfaces, DestSurface = None, palette_colors = 1) -> Surface Takes a sequence of surfaces and returns a surface with average colors from each of the surfaces. palette_colors - if true we average the colors in palette, otherwise we average the pixel values....
doc_23261
Sort the keys of JSON objects alphabetically. This is useful for caching because it ensures the data is serialized the same way no matter what Python’s hash seed is. While not recommended, you can disable this for a possible performance improvement at the cost of caching. Default: True
doc_23262
Synonym for DataFrame.fillna() with method='ffill'. Returns Series/DataFrame or None Object with missing values filled or None if inplace=True.
doc_23263
Convert binary data to a line of ASCII characters, the return value is the converted line, including a newline char. The length of data should be at most 45. If backtick is true, zeros are represented by '`' instead of spaces. Changed in version 3.7: Added the backtick parameter.
doc_23264
Return the text of the most recently opened start tag. This should not normally be needed for structured processing, but may be useful in dealing with HTML “as deployed” or for re-generating input with minimal changes (whitespace between attributes can be preserved, etc.).
doc_23265
Sets given interval timer (one of signal.ITIMER_REAL, signal.ITIMER_VIRTUAL or signal.ITIMER_PROF) specified by which to fire after seconds (float is accepted, different from alarm()) and after that every interval seconds (if interval is non-zero). The interval timer specified by which can be cleared by setting seconds...
doc_23266
Return the average peak-peak value over all samples in the fragment. No filtering is done, so the usefulness of this routine is questionable.
doc_23267
Deprecated; see max_memory_reserved().
doc_23268
Plot the sparsity pattern of a 2D array. This visualizes the non-zero values of the array. Two plotting styles are available: image and marker. Both are available for full arrays, but only the marker style works for scipy.sparse.spmatrix instances. Image style If marker and markersize are None, imshow is used. Any ex...
doc_23269
Plot the magnitude spectrum. Compute the magnitude spectrum of x. Data is padded to a length of pad_to and the windowing function window is applied to the signal. Parameters x1-D array or sequence Array or sequence containing the data. Fsfloat, default: 2 The sampling frequency (samples per time unit). It i...
doc_23270
A view that displays a form for creating an object, redisplaying the form with validation errors (if there are any) and saving the object. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.detail.SingleObjectTemplateResponseMixin django.views.generic.base.Template...
doc_23271
A data-type scalar that allows field access as attribute lookup. Attributes T Scalar attribute identical to the corresponding array attribute. base base object data Pointer to start of data. dtype dtype object flags integer value of flags flat A 1-D view of the scalar. imag The imaginary part of the s...
doc_23272
See Migration guide for more details. tf.compat.v1.imag, tf.compat.v1.math.imag tf.math.imag( input, name=None ) Given a tensor input, this operation returns a tensor of type float that is the imaginary part of each element in input considered as a complex number. If input is real, a tensor of all zeros is retur...
doc_23273
In-place version of bitwise_or()
doc_23274
Set 3D vertices with path codes.
doc_23275
locale.setlocale(locale.LC_ALL, '') code = locale.getpreferredencoding() Then use code as the encoding for str.encode() calls. See also Module curses.ascii Utilities for working with ASCII characters, regardless of your locale settings. Module curses.panel A panel stack extension that adds depth to curses wi...
doc_23276
Remove the directory named dirname on the server.
doc_23277
Compute the qr factorization of a matrix. Factor the matrix a as qr, where q is orthonormal and r is upper-triangular. Parameters aarray_like, shape (…, M, N) An array-like object with the dimensionality of at least 2. mode{‘reduced’, ‘complete’, ‘r’, ‘raw’}, optional If K = min(M, N), then ‘reduced’retu...
doc_23278
Call self as a function.
doc_23279
See torch.sgn()
doc_23280
Update the display immediately (sync actual screen with previous drawing/deleting methods). The 6 optional arguments can only be specified when the window is a pad created with newpad(). The additional parameters are needed to indicate what part of the pad and screen are involved. pminrow and pmincol specify the upper ...
doc_23281
Required to create, delete, or set a registry value.
doc_23282
Return the fractional and integer parts of x. Both results carry the sign of x and are floats.
doc_23283
rotates a vector around the z-axis by the angle in degrees. rotate_z(angle) -> Vector3 Returns a vector which has the same length as self but is rotated counterclockwise around the z-axis by the given angle in degrees.
doc_23284
Return the sample variance of data, an iterable of at least two real-valued numbers. Variance, or second moment about the mean, is a measure of the variability (spread or dispersion) of data. A large variance indicates that the data is spread out; a small variance indicates it is clustered closely around the mean. If t...
doc_23285
The list of command line arguments passed to a Python script. argv[0] is the script name (it is operating system dependent whether this is a full pathname or not). If the command was executed using the -c command line option to the interpreter, argv[0] is set to the string '-c'. If no script name was passed to the Pyth...
doc_23286
the number of available bitmap sizes for the font fixed_sizes -> int Read only. Returns the number of point sizes for which the font contains bitmap character images. If zero then the font is not a bitmap font. A scalable font may contain pre-rendered point sizes as strikes.
doc_23287
select.devpoll()-based selector. fileno() This returns the file descriptor used by the underlying select.devpoll() object. New in version 3.5.
doc_23288
Constructor for an IncrementalEncoder instance. All incremental encoders 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 IncrementalEncoder may implement different error handling schemes by providing th...
doc_23289
Isolation Forest Algorithm. Return the anomaly score of each sample using the IsolationForest algorithm The IsolationForest ‘isolates’ observations by randomly selecting a feature and then randomly selecting a split value between the maximum and minimum values of the selected feature. Since recursive partitioning can...
doc_23290
Draws samples in [0, 1] from a power distribution with positive exponent a - 1. Also known as the power function distribution. Note New code should use the power method of a default_rng() instance instead; please see the Quick Start. Parameters afloat or array_like of floats Parameter of the distribution. Mus...
doc_23291
See Migration guide for more details. tf.compat.v1.raw_ops.Dilation2D tf.raw_ops.Dilation2D( input, filter, strides, rates, padding, name=None ) The input tensor has shape [batch, in_height, in_width, depth] and the filter tensor has shape [filter_height, filter_width, depth], i.e., each input channel is process...
doc_23292
See Migration guide for more details. tf.compat.v1.raw_ops.SaveSlices tf.raw_ops.SaveSlices( filename, tensor_names, shapes_and_slices, data, name=None ) This is like Save except that tensors can be listed in the saved file as being a slice of a larger tensor. shapes_and_slices specifies the shape of the larger ...
doc_23293
Return the native integral Thread ID of the current thread assigned by the kernel. This is a non-negative integer. Its value may be used to uniquely identify this particular thread system-wide (until the thread terminates, after which the value may be recycled by the OS). Availability: Windows, FreeBSD, Linux, macOS, O...
doc_23294
Time of most recent content modification expressed in nanoseconds as an integer.
doc_23295
The value to be used for the wsgi.multithread environment variable. It defaults to true in BaseHandler, but may have a different default (or be set by the constructor) in the other subclasses.
doc_23296
Set array flags WRITEABLE, ALIGNED, (WRITEBACKIFCOPY and UPDATEIFCOPY), respectively. These Boolean-valued flags affect how numpy interprets the memory area used by a (see Notes below). The ALIGNED flag can only be set to True if the data is actually aligned according to the type. The WRITEBACKIFCOPY and (deprecated)...
doc_23297
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo...
doc_23298
Return the clipbox.
doc_23299
Indicates that an application on 64-bit Windows should operate on the 64-bit registry view.