_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_9800 | tf.summary.image(
name, data, step=None, max_outputs=3, description=None
)
Arguments
name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scopes.
data A Tensor representing pixel data with shape [k, h, w, c], where k is the number of images... | |
doc_9801 | See Migration guide for more details. tf.compat.v1.raw_ops.DebugIdentity
tf.raw_ops.DebugIdentity(
input, device_name='', tensor_name='', debug_urls=[],
gated_grpc=False, name=None
)
Provides an identity mapping of the non-Ref type input tensor for debugging.
Args
input A Tensor. Input tensor, non-R... | |
doc_9802 | Boolean value specifying if a textarea input showing the serialized representation of the current geometry is visible, mainly for debugging purposes (default is False). | |
doc_9803 |
Return a scalar type which is common to the input arrays. The return type will always be an inexact (i.e. floating point) scalar type, even if all the arrays are integer arrays. If one of the inputs is an integer array, the minimum precision type that is returned is a 64-bit floating point dtype. All input arrays exc... | |
doc_9804 |
Return terms per document with nonzero entries in X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Document-term matrix. Returns
X_invlist of arrays of shape (n_samples,)
List of arrays of terms. | |
doc_9805 | TemplateResponse is a subclass of SimpleTemplateResponse that knows about the current HttpRequest. | |
doc_9806 | Extended header setting. This method is similar to __setitem__() except that additional header parameters can be provided as keyword arguments. _name is the header field to add and _value is the primary value for the header. For each item in the keyword argument dictionary _params, the key is taken as the parameter nam... | |
doc_9807 | tf.lookup.StaticHashTable(
initializer, default_value, name=None
)
Example usage:
keys_tensor = tf.constant(['a', 'b', 'c'])
vals_tensor = tf.constant([7, 8, 9])
input_tensor = tf.constant(['a', 'f'])
table = tf.lookup.StaticHashTable(
tf.lookup.KeyValueTensorInitializer(keys_tensor, vals_tensor),
default... | |
doc_9808 | socket.IOCTL_VM_SOCKETS_GET_LOCAL_CID
VMADDR*
SO_VM*
Constants for Linux host/guest communication. Availability: Linux >= 4.8. New in version 3.7. | |
doc_9809 |
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_9810 | This is the inverse function of localtime(). Its argument is the struct_time or full 9-tuple (since the dst flag is needed; use -1 as the dst flag if it is unknown) which expresses the time in local time, not UTC. It returns a floating point number, for compatibility with time(). If the input value cannot be represente... | |
doc_9811 | Returns the p-norm of (input - other) The shapes of input and other must be broadcastable. Parameters
input (Tensor) – the input tensor.
other (Tensor) – the Right-hand-side input tensor
p (float, optional) – the norm to be computed Example: >>> x = torch.randn(4)
>>> x
tensor([-1.5393, -0.8675, 0.5916, 1.63... | |
doc_9812 |
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_9813 |
Apply transforms, and score_samples of the final estimator. Parameters
Xiterable
Data to predict on. Must fulfill input requirements of first step of the pipeline. Returns
y_scorendarray of shape (n_samples,) | |
doc_9814 |
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_9815 |
Returns a bool indicating whether this instance is enabled. | |
doc_9816 | When True, whitespace immediately following the delimiter is ignored. The default is False. | |
doc_9817 | Exception raised on errors. These are usually programming errors. | |
doc_9818 | Return a tuple containing names of parameters to this function. | |
doc_9819 |
Set the unit for input to the transform used by __call__. Parameters
unit{'points', 'pixels'} | |
doc_9820 | If flag is True, allow 8-bit characters to be input. If flag is False, allow only 7-bit chars. | |
doc_9821 | See Migration guide for more details. tf.compat.v1.raw_ops.LeftShift
tf.raw_ops.LeftShift(
x, y, name=None
)
If y is negative, or greater than or equal to the width of x in bits the result is implementation defined. Example: import tensorflow as tf
from tensorflow.python.ops import bitwise_ops
import numpy as np... | |
doc_9822 |
Reset the slider to the initial value. | |
doc_9823 | Write coverage results. Set show_missing to show lines that had no hits. Set summary to include in the output the coverage summary per module. coverdir specifies the directory into which the coverage result files will be output. If None, the results for each source file are placed in its directory. | |
doc_9824 |
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned. | |
doc_9825 |
Parameters
nx, nx1int
Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (but excluding nx1-th column) is specified.
ny, ny1int
Same as nx and nx1, but for row positions. axes
renderer | |
doc_9826 | See Migration guide for more details. tf.compat.v1.raw_ops.IRFFT3D
tf.raw_ops.IRFFT3D(
input, fft_length, Treal=tf.dtypes.float32, name=None
)
Computes the inverse 3-dimensional discrete Fourier transform of a real-valued signal over the inner-most 3 dimensions of input. The inner-most 3 dimensions of input are ... | |
doc_9827 | See Migration guide for more details. tf.compat.v1.raw_ops.StatsAggregatorHandle
tf.raw_ops.StatsAggregatorHandle(
container='', shared_name='', name=None
)
Args
container An optional string. Defaults to "".
shared_name An optional string. Defaults to "".
name A name for the operation (optio... | |
doc_9828 |
Loads a PyTorch C++ extension just-in-time (JIT). To load an extension, a Ninja build file is emitted, which is used to compile the given sources into a dynamic library. This library is subsequently loaded into the current Python process as a module and returned from this function, ready for use. By default, the dire... | |
doc_9829 | See Migration guide for more details. tf.compat.v1.keras.layers.Reshape
tf.keras.layers.Reshape(
target_shape, **kwargs
)
Input shape: Arbitrary, although all dimensions in the input shape must be known/fixed. Use the keyword argument input_shape (tuple of integers, does not include the samples/batch size axis) ... | |
doc_9830 | See Migration guide for more details. tf.compat.v1.math.reduce_variance
tf.math.reduce_variance(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which mus... | |
doc_9831 | The base class for those built-in exceptions that are raised for various arithmetic errors: OverflowError, ZeroDivisionError, FloatingPointError. | |
doc_9832 | This is the class that loads tests, whether from TestCases or modules or otherwise and bundles them into test suites for the runner to execute. By default it is set to unittest.defaultTestLoader. You can override this attribute if your tests are going to be loaded in unusual ways. | |
doc_9833 |
Remove a suffix from an object series. If the suffix is not present, the original string will be returned. Parameters
suffix:str
Remove the suffix of the string. Returns
Series/Index: object
The Series or Index with given suffix removed. See also Series.str.removeprefix
Remove a prefix from an obje... | |
doc_9834 | Return the code object for the specified module. Raise ZipImportError if the module couldn’t be found. | |
doc_9835 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseSegmentSumWithNumSegments
tf.raw_ops.SparseSegmentSumWithNumSegments(
data, indices, segment_ids, num_segments, name=None
)
Like SparseSegmentSum, but allows missing ids in segment_ids. If an id is missing, the output tensor at that position will b... | |
doc_9836 | A class attribute determining whether or not this aggregate function allows passing a distinct keyword argument. If set to False (default), TypeError is raised if distinct=True is passed. | |
doc_9837 | test if all rectangles in a list intersect collidelistall(list) -> indices Returns a list of all the indices that contain rectangles that collide with the Rect. If no intersecting rectangles are found, an empty list is returned. | |
doc_9838 |
Reset one or more options to their default value. Pass “all” as argument to reset all options. Available options: compute.[use_bottleneck, use_numba, use_numexpr] display.[chop_threshold, colheader_justify, column_space, date_dayfirst, date_yearfirst, encoding, expand_frame_repr, float_format] display.html.[border, ... | |
doc_9839 | Determine whether code is in tableC.2.1 (ASCII control characters). | |
doc_9840 | Print up to limit stack trace entries (starting from the invocation point) if limit is positive. Otherwise, print the last abs(limit) entries. If limit is omitted or None, all entries are printed. The optional f argument can be used to specify an alternate stack frame to start. The optional file argument has the same m... | |
doc_9841 | tf.experimental.numpy.uint8(
*args, **kwargs
)
Character code: 'B'. Canonical name: np.ubyte. Alias on this platform: np.uint8: 8-bit unsigned integer (0 to 255). Methods all
all()
Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, a... | |
doc_9842 |
Return the extent of the box as (width, height, x, y). This is the extent of the child plus the padding. | |
doc_9843 | Returns a set of permission strings that the user has directly. If obj is passed in, only returns the user permissions for this specific object. | |
doc_9844 | tf.compat.v1.image.extract_glimpse(
input, size, offsets, centered=True, normalized=True, uniform_noise=True,
name=None
)
Returns a set of windows called glimpses extracted at location offsets from the input tensor. If the windows only partially overlaps the inputs, the non-overlapping areas will be filled wit... | |
doc_9845 |
Computes a truncated randomized SVD. Parameters
M{ndarray, sparse matrix}
Matrix to decompose.
n_componentsint
Number of singular values and vectors to extract.
n_oversamplesint, default=10
Additional number of random vectors to sample the range of M so as to ensure proper conditioning. The total number... | |
doc_9846 | tf.compat.v1.train.get_checkpoint_mtimes(
checkpoint_prefixes
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use standard file utilities to get mtimes. Globs for the checkpoints pointed to by checkpoint_prefixes. If the files exist, collect their mtime. B... | |
doc_9847 | @classmethod
from_frozen_graph(
graph_def_file, input_arrays, output_arrays, input_shapes=None
)
Creates a TocoConverter class from a file containing a frozen graph. (deprecated) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use lite.TFLiteConverter.from_f... | |
doc_9848 |
Subtract other from self, and return a new masked array. | |
doc_9849 | | NASNet-A (4 @ 1056) | 74.0 % | 91.6 % | 564 M | 5.3 | | NASNet-A (6 @ 4032) | 82.7 % | 96.2 % | 23.8 B | 88.9 | Reference:
Learning Transferable Architectures for Scalable Image Recognition (CVPR 2018) Functions NASNetLarge(...): Instantiates a NASNet model in ImageNet mode. NASNetMobile(...): Instantiates a Mobi... | |
doc_9850 | See torch.sort() | |
doc_9851 | A shorthand for format_list(extract_stack(f, limit)). | |
doc_9852 |
Return feature names for output features. Parameters
input_featureslist of str of shape (n_features,)
String names for input features if available. By default, “x0”, “x1”, … “xn_features” is used. Returns
output_feature_namesndarray of shape (n_output_features,)
Array of feature names. | |
doc_9853 | A helper function to indicate a distinct type to a typechecker, see NewType. At runtime it returns a function that returns its argument. Usage: UserId = NewType('UserId', int)
first_user = UserId(1)
New in version 3.5.2. | |
doc_9854 |
Get day of the month that a Period falls on. Returns
int
See also Period.dayofweek
Get the day of the week. Period.dayofyear
Get the day of the year. Examples
>>> p = pd.Period("2018-03-11", freq='H')
>>> p.day
11 | |
doc_9855 | operator.__ilshift__(a, b)
a = ilshift(a, b) is equivalent to a <<= b. | |
doc_9856 | true if the cdrom track has audio data get_track_audio(track) -> bool Determine if a track on a cdrom contains audio data. You can also call CD.num_tracks() and CD.get_all() to determine more information about the cdrom. Note, track 0 is the first track on the CD. Track numbers start at zero. | |
doc_9857 | query the tree for the k nearest neighbors Parameters
Xarray-like of shape (n_samples, n_features)
An array of points to query
kint, default=1
The number of nearest neighbors to return
return_distancebool, default=True
if True, return a tuple (d, i) of distances and indices if False, return array i
dual... | |
doc_9858 | Returns byte offsets for each array dimension. strides -> tuple of int's A tuple or length ndim byte counts. When a stride is multiplied by the corresponding index it gives the offset of that index from the start of the array. A stride is negative for an array that has is inverted (has a negative step). New in pygam... | |
doc_9859 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_9860 | A tuple containing the exceptions that can be raised by each of the supported modules, with a unique exception also named dbm.error as the first item — the latter is used when dbm.error is raised. | |
doc_9861 | The browser language, if it could be parsed from the string. | |
doc_9862 |
Return value&self. | |
doc_9863 |
Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each weekday. Mark every weekday in byweekday; byweekday can be a number or sequence. Elements of byweekday must be one of MO, TU, WE, TH, FR, SA, SU, the constants from dateutil.rrule, which have been imported into the matplotlib.dates namespace. inte... | |
doc_9864 | Set whether the screensaver may run set_allow_screensaver(bool) -> None Change whether screensavers should be allowed whilst the app is running. The default is False. By default pygame does not allow the screensaver during game play. If the screensaver has been disallowed due to this function, it will automatically b... | |
doc_9865 | draw a background over the Sprites clear(Surface_dest, background) -> None Erases the Sprites used in the last Group.draw() call. The destination Surface is cleared by filling the drawn Sprite positions with the background. The background is usually a Surface image the same dimensions as the destination Surface. Howe... | |
doc_9866 | Return a JSON string representation of a Python data structure, o. For example: >>> json.JSONEncoder().encode({"foo": ["bar", "baz"]})
'{"foo": ["bar", "baz"]}' | |
doc_9867 |
Return x, y values at equally spaced points in domain. Returns the x, y values at n linearly spaced points across the domain. Here y is the value of the polynomial at the points x. By default the domain is the same as that of the series instance. This method is intended mostly as a plotting aid. New in version 1.5.0... | |
doc_9868 | There is also a decorator for registering your ModelAdmin classes: from django.contrib import admin
from .models import Author
@admin.register(Author)
class AuthorAdmin(admin.ModelAdmin):
pass
It’s given one or more model classes to register with the ModelAdmin. If you’re using a custom AdminSite, pass it using t... | |
doc_9869 | Returns whether this RRef has been confirmed by the owner. OwnerRRef always returns true, while UserRRef only returns true when the owner knowns about this UserRRef. | |
doc_9870 | Acquires the thread lock created with createLock(). | |
doc_9871 | Prepare a record for handling. This implementation just returns the passed-in record. You may want to override this method if you need to do any custom marshalling or manipulation of the record before passing it to the handlers. | |
doc_9872 | Shortcut for route() with methods=["POST"]. New in version 2.0. Parameters
rule (str) –
options (Any) – Return type
Callable | |
doc_9873 |
How to draw the end caps if the line is is_dashed. Parameters
sCapStyle or {'butt', 'projecting', 'round'} | |
doc_9874 | Called when the child process writes data into its stdout or stderr pipe. fd is the integer file descriptor of the pipe. data is a non-empty bytes object containing the received data. | |
doc_9875 | See Migration guide for more details. tf.compat.v1.raw_ops.MatchingFilesDataset
tf.raw_ops.MatchingFilesDataset(
patterns, name=None
)
Args
patterns A Tensor of type string.
name A name for the operation (optional).
Returns A Tensor of type variant. | |
doc_9876 |
Apply chainable functions that expect Series or DataFrames. Parameters
func:function
Function to apply to the Series/DataFrame. args, and kwargs are passed into func. Alternatively a (callable, data_keyword) tuple where data_keyword is a string indicating the keyword of callable that expects the Series/DataFram... | |
doc_9877 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesQuantileStreamResourceDeserialize
tf.raw_ops.BoostedTreesQuantileStreamResourceDeserialize(
quantile_stream_resource_handle, bucket_boundaries, name=None
)
An op that deserializes bucket boundaries and are boundaries ready flag into current Q... | |
doc_9878 | Formats the record and sends it to the specified addressees. | |
doc_9879 | Called before the handle() method to perform any initialization actions required. The default implementation does nothing. | |
doc_9880 | This controls the maximum number of forms to show in the inline. This doesn’t directly correlate to the number of objects, but can if the value is small enough. See Limiting the number of editable objects for more information. InlineModelAdmin.get_max_num() also allows you to customize the maximum number of extra forms... | |
doc_9881 |
Return intensity limits, i.e. (min, max) tuple, of the image’s dtype. Parameters
imagendarray
Input image.
clip_negativebool, optional
If True, clip the negative range (i.e. return 0 for min intensity) even if the image dtype allows negative values. Returns
imin, imaxtuple
Lower and upper intensity ... | |
doc_9882 | tkinter.filedialog.askopenfilenames(**options)
The above two functions create an Open dialog and return the selected filename(s) that correspond to existing file(s). | |
doc_9883 |
DateOffset increments between the last business day of each Quarter. startingMonth = 1 corresponds to dates like 1/31/2007, 4/30/2007, … startingMonth = 2 corresponds to dates like 2/28/2007, 5/31/2007, … startingMonth = 3 corresponds to dates like 3/30/2007, 6/29/2007, … Examples
>>> from pandas.tseries.offsets imp... | |
doc_9884 | >>> ftp = FTP('ftp.us.debian.org') # connect to host, default port
>>> ftp.login() # user anonymous, passwd anonymous@
'230 Login successful.'
>>> ftp.cwd('debian') # change into "debian" directory
>>> ftp.retrlines('LIST') # list directory contents
-rw-rw-r-- 1 1176 ... | |
doc_9885 | Debug the doctests for an object. The module and name arguments are the same as for function testsource() above. The synthesized Python script for the named object’s docstring is written to a temporary file, and then that file is run under the control of the Python debugger, pdb. A shallow copy of module.__dict__ is us... | |
doc_9886 |
Return a new Timedelta ceiled to this resolution. Parameters
freq:str
Frequency string indicating the ceiling resolution. | |
doc_9887 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_9888 | Provides the chance to do any pre-processing or validation of the expression before it’s added to the query. resolve_expression() must also be called on any nested expressions. A copy() of self should be returned with any necessary transformations. query is the backend query implementation. allow_joins is a boolean tha... | |
doc_9889 | See Migration guide for more details. tf.compat.v1.estimator.BoostedTreesRegressor
tf.estimator.BoostedTreesRegressor(
feature_columns, n_batches_per_layer, model_dir=None, label_dimension=1,
weight_column=None, n_trees=100, max_depth=6, learning_rate=0.1,
l1_regularization=0.0, l2_regularization=0.0, tre... | |
doc_9890 |
Alias for get_edgecolor. | |
doc_9891 | See Migration guide for more details. tf.compat.v1.raw_ops.DeleteMemoryCache
tf.raw_ops.DeleteMemoryCache(
handle, deleter, name=None
)
Args
handle A Tensor of type resource.
deleter A Tensor of type variant.
name A name for the operation (optional).
Returns The created Operation. | |
doc_9892 | Tests grouped by a TestSuite are always accessed by iteration. Subclasses can lazily provide tests by overriding __iter__(). Note that this method may be called several times on a single suite (for example when counting tests or comparing for equality) so the tests returned by repeated iterations before TestSuite.run()... | |
doc_9893 |
Solve the ridge equation by the method of normal equations. Read more in the User Guide. Parameters
X{ndarray, sparse matrix, LinearOperator} of shape (n_samples, n_features)
Training data
yndarray of shape (n_samples,) or (n_samples, n_targets)
Target values
alphafloat or array-like of shape (n_targets,)... | |
doc_9894 |
Convert points to display units. You need to override this function (unless your backend doesn't have a dpi, e.g., postscript or svg). Some imaging systems assume some value for pixels per inch: points to pixels = points * pixels_per_inch/72 * dpi/72
Parameters
pointsfloat or array-like
a float or a numpy arra... | |
doc_9895 |
Incremental fit on a batch of samples. This method is expected to be called several times consecutively on different chunks of a dataset so as to implement out-of-core or online learning. This is especially useful when the whole dataset is too big to fit in memory at once. This method has some performance overhead he... | |
doc_9896 | Subclass of AuthenticationForm that will be used by the admin site login view. | |
doc_9897 | If flag is True, cursor is left where it is on update, instead of being at “cursor position.” This reduces cursor movement where possible. If possible the cursor will be made invisible. If flag is False, cursor will always be at “cursor position” after an update. | |
doc_9898 | See Migration guide for more details. tf.compat.v1.raw_ops.RebatchDataset
tf.raw_ops.RebatchDataset(
input_dataset, num_replicas, output_types, output_shapes, use_fallback=True,
name=None
)
Creates a dataset that changes the batch size of the dataset to current batch size // num_workers.
Args
input_da... | |
doc_9899 |
A context manager to be used in conjunction with an instance of torch.nn.parallel.DistributedDataParallel to be able to train with uneven inputs across participating processes. This context manager will keep track of already-joined DDP processes, and “shadow” the forward and backward passes by inserting collective co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.