_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_20600
See Migration guide for more details. tf.compat.v1.raw_ops.SplitV tf.raw_ops.SplitV( value, size_splits, axis, num_split, name=None ) Args value A Tensor. The tensor to split. size_splits A Tensor. Must be one of the following types: int32, int64. list containing the sizes of each output tensor al...
doc_20601
socket.SIO_KEEPALIVE_VALS socket.SIO_LOOPBACK_FAST_PATH RCVALL_* Constants for Windows’ WSAIoctl(). The constants are used as arguments to the ioctl() method of socket objects. Changed in version 3.6: SIO_LOOPBACK_FAST_PATH was added.
doc_20602
Compute the negative Mahalanobis distances. Parameters Xarray-like of shape (n_samples, n_features) The data matrix. Returns negative_mahal_distancesarray-like of shape (n_samples,) Opposite of the Mahalanobis distances.
doc_20603
See Migration guide for more details. tf.compat.v1.raw_ops.Real tf.raw_ops.Real( input, Tout=tf.dtypes.float32, name=None ) Given a tensor input of complex numbers, this operation returns a tensor of type float that is the real part of each element in input. All elements in input must be complex numbers of the f...
doc_20604
Approximate a polygonal chain with the specified tolerance. It is based on the Douglas-Peucker algorithm. Note that the approximated polygon is always within the convex hull of the original polygon. Parameters coords(N, 2) array Coordinate array. tolerancefloat Maximum distance from original points of polyg...
doc_20605
tf.compat.v1.train.replica_device_setter( ps_tasks=0, ps_device='/job:ps', worker_device='/job:worker', merge_devices=True, cluster=None, ps_ops=None, ps_strategy=None ) Device Functions are used in with tf.device(device_function): statement to automatically assign devices to Operation objects as they are ...
doc_20606
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None
doc_20607
Compares the values numerically with their sign ignored.
doc_20608
Returns a list with types grouped input->output. Data attribute listing the data-type “Domain-Range” groupings the ufunc can deliver. The data-types are given using the character codes. See also numpy.ufunc.ntypes Examples >>> np.add.types ['??->?', 'bb->b', 'BB->B', 'hh->h', 'HH->H', 'ii->i', 'II->I', 'll->l', '...
doc_20609
Return reshaped DataFrame organized by given index / column values. Reshape data (produce a “pivot” table) based on column values. Uses unique values from specified index / columns to form axes of the resulting DataFrame. This function does not support data aggregation, multiple values will result in a MultiIndex in ...
doc_20610
Compute the L1 distances between the vectors in X and Y. With sum_over_features equal to False it returns the componentwise distances. Read more in the User Guide. Parameters Xarray-like of shape (n_samples_X, n_features) Yarray-like of shape (n_samples_Y, n_features), default=None sum_over_featuresbool, defa...
doc_20611
get the volume of the playing channel get_volume() -> value Return the volume of the channel for the current playing sound. This does not take into account stereo separation used by Channel.set_volume(). The Sound object also has its own volume which is mixed with the channel.
doc_20612
Return whether drawing is available to o.
doc_20613
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyPowerSign tf.raw_ops.ResourceApplyPowerSign( var, m, lr, logbase, sign_decay, beta, grad, use_locking=False, name=None ) mt <- beta1 * m{t-1} + (1 - beta1) * g update <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g variable <- variabl...
doc_20614
tf.pad( tensor, paddings, mode='CONSTANT', constant_values=0, name=None ) This operation pads a tensor according to the paddings you specify. paddings is an integer tensor with shape [n, 2], where n is the rank of tensor. For each dimension D of input, paddings[D, 0] indicates how many values to add before the con...
doc_20615
A dictionary containing key-value pairs of an associated pax extended header.
doc_20616
bfloat16() Casts this storage to bfloat16 type bool() Casts this storage to bool type byte() Casts this storage to byte type char() Casts this storage to char type clone() Returns a copy of this storage complex_double() Casts this storage to complex double type complex_float() ...
doc_20617
Concrete implementation of Loader.exec_module(). New in version 3.4.
doc_20618
Constructor arguments should be passed as keyword arguments only. blocked_domains is a sequence of domain names that we never accept cookies from, nor return cookies to. allowed_domains if not None, this is a sequence of the only domains for which we accept and return cookies. secure_protocols is a sequence of protocol...
doc_20619
Handle authentication with the remote host. password_mgr, if given, should be something that is compatible with HTTPPasswordMgr; refer to section HTTPPasswordMgr Objects for information on the interface that must be supported. When both Digest Authentication Handler and Basic Authentication Handler are both added, Dige...
doc_20620
See Migration guide for more details. tf.compat.v1.nn.normalize_moments tf.nn.normalize_moments( counts, mean_ss, variance_ss, shift, name=None ) Args counts A Tensor containing the total count of the data (one value). mean_ss A Tensor containing the mean sufficient statistics: the (possibly shift...
doc_20621
Set the flag(s) specified by flag without changing other flags. To add more than one flag at a time, flag may be a string of more than one character. The current “info” is overwritten whether or not it contains experimental information rather than flags.
doc_20622
Set SpanSelector to operate on a new Axes.
doc_20623
Returns the standard deviation of the distribution.
doc_20624
Set the normalization instance. Parameters normNormalize or None Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.
doc_20625
ossaudiodev.open(device, mode) Open an audio device and return an OSS audio device object. This object supports many file-like methods, such as read(), write(), and fileno() (although there are subtle differences between conventional Unix read/write semantics and those of OSS audio devices). It also supports a number...
doc_20626
Test whether the artist contains the mouse event. Parameters mouseeventmatplotlib.backend_bases.MouseEvent Returns containsbool Whether any values are within the radius. detailsdict An artist-specific dictionary of details of the event context, such as which points are contained in the pick radius. Se...
doc_20627
A container class to hold and manage multiple Sprite objects. Group(*sprites) -> Group A simple container for Sprite objects. This class can be inherited to create containers with more specific behaviors. The constructor takes any number of Sprite arguments to add to the Group. The group supports the following standa...
doc_20628
A real str object used to store the contents of the UserString class.
doc_20629
Return True if there are any NaNs. Enables various performance speedups.
doc_20630
Synonym for DataFrame.fillna() with method='bfill'. Returns Series/DataFrame or None Object with missing values filled or None if inplace=True.
doc_20631
A boolean indicating if this raster is stored in GDAL’s virtual filesystem.
doc_20632
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_20633
Deep Residual Learning for Image Recognition (CVPR 2015) Functions ResNet101(...): Instantiates the ResNet101 architecture. ResNet152(...): Instantiates the ResNet152 architecture. ResNet50(...): Instantiates the ResNet50 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_in...
doc_20634
Just like a MultipleChoiceField, except TypedMultipleChoiceField takes two extra arguments, coerce and empty_value. Default widget: SelectMultiple Empty value: Whatever you’ve given as empty_value Normalizes to: A list of values of the type provided by the coerce argument. Validates that the given values exists in t...
doc_20635
Identical to the subn() function, using the compiled pattern.
doc_20636
Computes the Cholesky decomposition of a symmetric positive-definite matrix AA or for batches of symmetric positive-definite matrices. If upper is True, the returned matrix U is upper-triangular, and the decomposition has the form: A=UTUA = U^TU If upper is False, the returned matrix L is lower-triangular, and the d...
doc_20637
Returns the numpy.distutils config command instance.
doc_20638
Wraps a file. This uses the WSGI server’s file wrapper if available or otherwise the generic FileWrapper. Changelog New in version 0.5. If the file wrapper from the WSGI server is used it’s important to not iterate over it from inside the application but to pass it through unchanged. If you want to pass out a file wr...
doc_20639
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_20640
Logs a message with level INFO on the root logger. The arguments are interpreted as for debug().
doc_20641
Casts this storage to long type
doc_20642
When the line is picked, update the set of selected indices.
doc_20643
See Migration guide for more details. tf.compat.v1.raw_ops.DecodeAndCropJpeg tf.raw_ops.DecodeAndCropJpeg( contents, crop_window, channels=0, ratio=1, fancy_upscaling=True, try_recover_truncated=False, acceptable_fraction=1, dct_method='', name=None ) The attr channels indicates the desired number of col...
doc_20644
Encodes the facility and priority into an integer. You can pass in strings or integers - if strings are passed, internal mapping dictionaries are used to convert them to integers. The symbolic LOG_ values are defined in SysLogHandler and mirror the values defined in the sys/syslog.h header file. Priorities Name (str...
doc_20645
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
doc_20646
call() is a helper object for making simpler assertions, for comparing with call_args, call_args_list, mock_calls and method_calls. call() can also be used with assert_has_calls(). >>> m = MagicMock(return_value=None) >>> m(1, 2, a='foo', b='bar') >>> m() >>> m.call_args_list == [call(1, 2, a='foo', b='bar'), call()] T...
doc_20647
pygame module to work with the keyboard This module contains functions for dealing with the keyboard. The pygame.event queue gets pygame.KEYDOWN and pygame.KEYUP events when the keyboard buttons are pressed and released. Both events have key and mod attributes. key: an integer ID representing every key on the ...
doc_20648
Returns a normalized locale code for the given locale name. The returned locale code is formatted for use with setlocale(). If normalization fails, the original name is returned unchanged. If the given encoding is not known, the function defaults to the default encoding for the locale code just like setlocale().
doc_20649
Computes and returns a return code based on a test suite, and the result from that test suite.
doc_20650
See Migration guide for more details. tf.compat.v1.raw_ops.GenerateBoundingBoxProposals tf.raw_ops.GenerateBoundingBoxProposals( scores, bbox_deltas, image_info, anchors, nms_threshold, pre_nms_topn, min_size, post_nms_topn=300, name=None ) The op selects top `pre_nms_topn` scoring boxes, decodes them with r...
doc_20651
Expression( body=NamedExpr( target=Name(id='x', ctx=Store()), value=Constant(value=4)))
doc_20652
Divide self by other in-place.
doc_20653
See Migration guide for more details. tf.compat.v1.raw_ops.IteratorGetDevice tf.raw_ops.IteratorGetDevice( resource, name=None ) Args resource A Tensor of type resource. name A name for the operation (optional). Returns A Tensor of type string.
doc_20654
Returns NVCC gencode flags this library were compiled with.
doc_20655
Font anti-aliasing mode antialiased -> bool Gets or sets the font's anti-aliasing mode. This defaults to True on all fonts, which are rendered with full 8 bit blending. Set to False to do monochrome rendering. This should provide a small speed gain and reduce cache memory size.
doc_20656
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_20657
See Migration guide for more details. tf.compat.v1.image.random_flip_up_down tf.image.random_flip_up_down( image, seed=None ) With a 1 in 2 chance, outputs the contents of image flipped along the first dimension, which is height. Otherwise, output the image as-is. When passing a batch of images, each image will ...
doc_20658
import matplotlib.dates as dates import matplotlib.ticker as ticker import datetime class DateConverter(units.ConversionInterface): @staticmethod def convert(value, unit, axis): "Convert a datetime value to a scalar or array." return dates.date2num(value) @staticmethod def axisinfo(un...
doc_20659
Total bytes consumed by the elements of the array. Notes Does not include memory consumed by non-element attributes of the array object. Examples >>> x = np.zeros((3,5,2), dtype=np.complex128) >>> x.nbytes 480 >>> np.prod(x.shape) * x.itemsize 480
doc_20660
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_20661
The hour of the period.
doc_20662
Stores data in the value field of an open registry key. key is an already open key, or one of the predefined HKEY_* constants. value_name is a string that names the subkey with which the value is associated. reserved can be anything – zero is always passed to the API. type is an integer that specifies the type of the d...
doc_20663
See Migration guide for more details. tf.compat.v1.nn.depthwise_conv2d_backprop_input, tf.compat.v1.nn.depthwise_conv2d_native_backprop_input tf.nn.depthwise_conv2d_backprop_input( input_sizes, filter, out_backprop, strides, padding, data_format='NHWC', dilations=[1, 1, 1, 1], name=None ) Args input_s...
doc_20664
The LabelEntry widget packages an entry widget and a label into one mega widget. It can be used to simplify the creation of “entry-form” type of interface.
doc_20665
See torch.logical_and()
doc_20666
Returns the input stream from the WSGI environment and wraps it in the most sensible way possible. The stream returned is not the raw WSGI stream in most cases but one that is safe to read from without taking into account the content length. If content length is not set, the stream will be empty for safety reasons. If ...
doc_20667
Path to a custom template that will be used by the admin site app index view.
doc_20668
display animated objects on the screen moveit.main() -> None This is the full and final example from the Pygame Tutorial, "How Do I Make It Move". It creates 10 objects and animates them on the screen. Note it's a bit scant on error checking, but it's easy to read. :] Fortunately, this is python, and we needn't wrest...
doc_20669
tf.compat.v1.metrics.recall_at_top_k( labels, predictions_idx, k=None, class_id=None, weights=None, metrics_collections=None, updates_collections=None, name=None ) Differs from recall_at_k in that predictions must be in the form of top k class indices, whereas recall_at_k expects logits. Refer to recall_at_k f...
doc_20670
Form the intersection of two Index objects. This returns a new Index with elements common to the index and other. Parameters other:Index or array-like sort:False or None, default False Whether to sort the resulting index. False : do not sort the result. None : sort the result, except when self and other are ...
doc_20671
See Migration guide for more details. tf.compat.v1.raw_ops.RFFT3D tf.raw_ops.RFFT3D( input, fft_length, Tcomplex=tf.dtypes.complex64, name=None ) Computes the 3-dimensional discrete Fourier transform of a real-valued signal over the inner-most 3 dimensions of input. Since the DFT of a real signal is Hermitian-sy...
doc_20672
Return a view on the array. Parameters dtype:str, np.dtype, or ExtensionDtype, optional Default None. Returns ExtensionArray or np.ndarray A view on the ExtensionArray’s data.
doc_20673
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyAdagradV2 tf.raw_ops.ApplyAdagradV2( var, accum, lr, epsilon, grad, use_locking=False, update_slots=True, name=None ) accum += grad * grad var -= lr * grad * (1 / sqrt(accum)) Args var A mutable Tensor. Must be one of the following types: f...
doc_20674
If item is specified, returns 1 or 0 depending on whether the specified item has the given tagname. Otherwise, returns a list of all items that have the specified tag. Availability: Tk 8.6
doc_20675
class ast.Store class ast.Del Variable references can be used to load the value of a variable, to assign a new value to it, or to delete it. Variable references are given a context to distinguish these cases. >>> print(ast.dump(ast.parse('a'), indent=4)) Module( body=[ Expr( value=Name(id='a...
doc_20676
An optional sequence that lists the names of unnamed (anonymous) fields. _anonymous_ must be already defined when _fields_ is assigned, otherwise it will have no effect. The fields listed in this variable must be structure or union type fields. ctypes will create descriptors in the structure type that allows accessing ...
doc_20677
See torch.roll()
doc_20678
class sklearn.model_selection.LeaveOneOut [source] Leave-One-Out cross-validator Provides train/test indices to split data in train/test sets. Each sample is used once as a test set (singleton) while the remaining samples form the training set. Note: LeaveOneOut() is equivalent to KFold(n_splits=n) and LeavePOut(p=1)...
doc_20679
Apply the affine part of this transform to Path path, returning a new Path. transform_path(path) is equivalent to transform_path_affine(transform_path_non_affine(values)).
doc_20680
Select initial periods of time series data based on a date offset. When having a DataFrame with dates as index, this function can select the first few rows based on a date offset. Parameters offset:str, DateOffset or dateutil.relativedelta The offset length of the data that will be selected. For instance, ‘1M’ ...
doc_20681
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_20682
Return a string representation of data. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ...
doc_20683
Returns a set of permission strings that the user has, through their groups. If obj is passed in, only returns the group permissions for this specific object.
doc_20684
tf.compat.v1.tpu.outside_compilation( computation, *args, **kwargs ) tf.tpu.outside_compilation() is used to run ops in computation on CPU instead of running on TPU. For example, users can run ops that are not supported on TPU's (e.g. tf.summary.write()) by explicitly placing those ops on CPU's. Below usage of out...
doc_20685
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_20686
Timeout in seconds to mark a test as failed if the test takes “too long”. The timeout value depends on the regrtest --timeout command line option. If a test using SHORT_TIMEOUT starts to fail randomly on slow buildbots, use LONG_TIMEOUT instead. Its default value is 30 seconds.
doc_20687
Convert a collection of raw documents to a matrix of TF-IDF features. Equivalent to CountVectorizer followed by TfidfTransformer. Read more in the User Guide. Parameters input{‘filename’, ‘file’, ‘content’}, default=’content’ If ‘filename’, the sequence passed as an argument to fit is expected to be a list of f...
doc_20688
See Migration guide for more details. tf.compat.v1.keras.datasets.mnist.load_data tf.keras.datasets.mnist.load_data( path='mnist.npz' ) This is a dataset of 60,000 28x28 grayscale images of the 10 digits, along with a test set of 10,000 images. More info can be found at the MNIST homepage. Arguments path ...
doc_20689
Returns a tensor of the same size as input with each element sampled from a Poisson distribution with rate parameter given by the corresponding element in input i.e., outi∼Poisson(inputi)\text{out}_i \sim \text{Poisson}(\text{input}_i) Parameters input (Tensor) – the input tensor containing the rates of the Poisso...
doc_20690
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_20691
See Migration guide for more details. tf.compat.v1.train.load_variable tf.train.load_variable( ckpt_dir_or_file, name ) Args ckpt_dir_or_file Directory with checkpoints file or path to checkpoint. name Name of the variable to return. Returns A numpy ndarray with a copy of the value of th...
doc_20692
The name of the database table to use for the model: db_table = 'music_album'
doc_20693
Convert obj using unit for the specified axis. If obj is a sequence, return the converted sequence. The output must be a sequence of scalars that can be used by the numpy array layer.
doc_20694
Create a new request handler instance. This request handler supports XML-RPC POST requests, documentation GET requests, and modifies logging so that the logRequests parameter to the DocXMLRPCServer constructor parameter is honored.
doc_20695
See Migration guide for more details. tf.compat.v1.random.stateless_gamma tf.random.stateless_gamma( shape, seed, alpha, beta=None, dtype=tf.dtypes.float32, name=None ) The generated values follow a gamma distribution with specified concentration (alpha) and inverse scale (beta) parameters. This is a stateless v...
doc_20696
Return list of group ids that user belongs to. If group is not in the list, it is included; typically, group is specified as the group ID field from the password record for user. Availability: Unix. New in version 3.3.
doc_20697
operator.__matmul__(a, b) Return a @ b. New in version 3.5.
doc_20698
See torch.xlogy()
doc_20699
Return the Transform instance mapping patch coordinates to data coordinates. For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5.