_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_2800 |
Performs a single optimization step. Parameters
closure (callable, optional) – A closure that reevaluates the model and returns the loss. | |
doc_2801 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixSoftmax
tf.raw_ops.SparseMatrixSoftmax(
logits, type, name=None
)
Calculate the softmax of the innermost dimensions of a SparseMatrix. Missing values are treated as -inf (i.e., logits of zero probability); and the output has the same sparsity... | |
doc_2802 |
Return time object with same time and tzinfo. | |
doc_2803 | If key is in the dictionary, return its value. If not, insert key with a value of default and return default. default defaults to None. | |
doc_2804 |
is_tensor
Returns True if obj is a PyTorch tensor.
is_storage
Returns True if obj is a PyTorch storage object.
is_complex
Returns True if the data type of input is a complex data type i.e., one of torch.complex64, and torch.complex128.
is_floating_point
Returns True if the data type of input is a floating... | |
doc_2805 | See Migration guide for more details. tf.compat.v1.errors.UnauthenticatedError
tf.errors.UnauthenticatedError(
node_def, op, message
)
This exception is not currently used.
Attributes
error_code The integer error code that describes the error.
message The error message that describes the error.
... | |
doc_2806 | See Migration guide for more details. tf.compat.v1.keras.layers.Masking
tf.keras.layers.Masking(
mask_value=0.0, **kwargs
)
For each timestep in the input tensor (dimension #1 in the tensor), if all values in the input tensor at that timestep are equal to mask_value, then the timestep will be masked (skipped) in... | |
doc_2807 | tf.compat.v1.layers.AveragePooling1D(
pool_size, strides, padding='valid',
data_format='channels_last', name=None, **kwargs
)
Arguments
pool_size An integer or tuple/list of a single integer, representing the size of the pooling window.
strides An integer or tuple/list of a single integer, speci... | |
doc_2808 | Close the queue: release internal resources. A queue must not be used anymore after it is closed. For example, get(), put() and empty() methods must no longer be called. New in version 3.9. | |
doc_2809 |
Return the url. | |
doc_2810 | Return a logger with the specified name or, if name is None, return a logger which is the root logger of the hierarchy. If specified, the name is typically a dot-separated hierarchical name like ‘a’, ‘a.b’ or ‘a.b.c.d’. Choice of these names is entirely up to the developer who is using logging. All calls to this functi... | |
doc_2811 | Return True if the call was successfully cancelled. | |
doc_2812 |
Get the factor by which to magnify images passed to draw_image(). Allows a backend to have images at a different resolution to other artists. | |
doc_2813 | Create and return a new event loop object. This method should never return None. | |
doc_2814 |
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_2815 |
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_2816 |
Move axes of an array to new positions. Other axes remain in their original order. New in version 1.11.0. Parameters
anp.ndarray
The array whose axes should be reordered.
sourceint or sequence of int
Original positions of the axes to move. These must be unique.
destinationint or sequence of int
Destin... | |
doc_2817 |
Return the kernel k(X, Y) and optionally its gradient. Parameters
Xarray-like of shape (n_samples_X, n_features) or list of object
Left argument of the returned kernel k(X, Y)
Yarray-like of shape (n_samples_X, n_features) or list of object, default=None
Right argument of the returned kernel k(X, Y). If Non... | |
doc_2818 |
Set the tick label pad in points Parameters
valfloat | |
doc_2819 | class ast.Sub
class ast.Mult
class ast.Div
class ast.FloorDiv
class ast.Mod
class ast.Pow
class ast.LShift
class ast.RShift
class ast.BitOr
class ast.BitXor
class ast.BitAnd
class ast.MatMult
Binary operator tokens. | |
doc_2820 | The file system permissions that the directory will receive when it is saved. Defaults to FILE_UPLOAD_DIRECTORY_PERMISSIONS. | |
doc_2821 | Token value for "@". | |
doc_2822 |
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_2823 |
Bases: mpl_toolkits.axisartist.axislines.AxisArtistHelper.Floating nth_coord = along which coordinate value varies.
nth_coord = 0 -> x axis, nth_coord = 1 -> y axis get_axislabel_pos_angle(axes)[source]
get_axislabel_transform(axes)[source]
get_line(axes)[source]
get_line_transform(axes)[source]
... | |
doc_2824 | See Migration guide for more details. tf.compat.v1.raw_ops.AudioSummaryV2
tf.raw_ops.AudioSummaryV2(
tag, tensor, sample_rate, max_outputs=3, name=None
)
The summary has up to max_outputs summary values containing audio. The audio is built from tensor which must be 3-D with shape [batch_size, frames, channels] o... | |
doc_2825 | Return a *Translations instance based on the domain, localedir, and languages, which are first passed to find() to get a list of the associated .mo file paths. Instances with identical .mo file names are cached. The actual class instantiated is class_ if provided, otherwise GNUTranslations. The class’s constructor must... | |
doc_2826 | See Migration guide for more details. tf.compat.v1.raw_ops.ApplyAddSign
tf.raw_ops.ApplyAddSign(
var, m, lr, alpha, sign_decay, beta, grad, use_locking=False, name=None
)
mt <- beta1 * m{t-1} + (1 - beta1) * g update <- (alpha + sign_decay * sign(g) *sign(m)) * g variable <- variable - lr_t * update
Args
... | |
doc_2827 |
Make sure that self.home_views has an entry for all axes present in the figure. | |
doc_2828 |
Draw samples from a Rayleigh distribution. The \(\chi\) and Weibull distributions are generalizations of the Rayleigh. Note New code should use the rayleigh method of a default_rng() instance instead; please see the Quick Start. Parameters
scalefloat or array_like of floats, optional
Scale, also equals the mo... | |
doc_2829 | tf.compat.v1.nn.pool(
input, window_shape, pooling_type, padding, dilation_rate=None, strides=None,
name=None, data_format=None, dilations=None
)
In the case that data_format does not start with "NC", computes for 0 <= b < batch_size, 0 <= x[i] < output_spatial_shape[i], 0 <= c < num_channels: output[b, x[0], ... | |
doc_2830 | A numeric handle of a system object which will become “ready” when the process ends. You can use this value if you want to wait on several events at once using multiprocessing.connection.wait(). Otherwise calling join() is simpler. On Windows, this is an OS handle usable with the WaitForSingleObject and WaitForMultiple... | |
doc_2831 |
Remove leading characters. Strip whitespaces (including newlines) or a set of specified characters from each string in the Series/Index from left side. Equivalent to str.lstrip(). Parameters
to_strip:str or None, default None
Specifying the set of characters to be removed. All combinations of this set of charac... | |
doc_2832 | tf.as_string Compat aliases for migration See Migration guide for more details. tf.compat.v1.as_string, tf.compat.v1.dtypes.as_string, tf.compat.v1.strings.as_string
tf.strings.as_string(
input, precision=-1, scientific=False, shortest=False, width=-1,
fill='', name=None
)
Supports many numeric types and boo... | |
doc_2833 | If you have code that wants to test if a request context is there or not this function can be used. For instance, you may want to take advantage of request information if the request object is available, but fail silently if it is unavailable. class User(db.Model):
def __init__(self, username, remote_addr=None):
... | |
doc_2834 | Fills self tensor with numbers sampled from the continuous uniform distribution: P(x)=1to−fromP(x) = \dfrac{1}{\text{to} - \text{from}} | |
doc_2835 | Return the number of tests represented by this test object, including all individual tests and sub-suites. | |
doc_2836 | tf.compat.v1.data.TextLineDataset(
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_2837 |
Update the location of children if necessary and draw them to the given renderer. | |
doc_2838 | stops, uninitializes, and closes the camera stop() -> None Stops recording, uninitializes the camera, and closes it. Once a camera is stopped, the below functions cannot be used until it is started again. | |
doc_2839 | reference Sound samples into an array samples(Sound) -> array Creates a new array that directly references the samples in a Sound object. Modifying the array will change the Sound. The array will always be in the format returned from pygame.mixer.get_init(). | |
doc_2840 |
Estimate the transformation from a set of corresponding points. Number of source and destination coordinates must match. Parameters
src(N, 2) array
Source coordinates.
dst(N, 2) array
Destination coordinates. Returns
successbool
True, if model estimation succeeds. | |
doc_2841 |
Complex number type composed of two double-precision floating-point numbers, compatible with Python complex. Character code
'D' Alias
numpy.cfloat Alias
numpy.complex_ Alias on this platform (Linux x86_64)
numpy.complex128: Complex number type composed of 2 64-bit-precision floating-point numbers. | |
doc_2842 | Warning This attribute is a private API. It may be changed or removed without a deprecation period in the future, for instance to accommodate changes in application loading. It’s used to optimize Django’s own test suite, which contains hundreds of models but no relations between models in different applications. By d... | |
doc_2843 | tf.compat.v1.keras.layers.enable_v2_dtype_behavior()
By default, the V2 dtype behavior is enabled in TensorFlow 2, so this function is only useful if tf.compat.v1.disable_v2_behavior has been called. Since mixed precision requires V2 dtype behavior to be enabled, this function allows you to use mixed precision in Kera... | |
doc_2844 |
Cross-correlation of two 1-dimensional sequences. This function computes the correlation as generally defined in signal processing texts: c_{av}[k] = sum_n a[n+k] * conj(v[n])
with a and v sequences being zero-padded where necessary and conj being the conjugate. Parameters
a, varray_like
Input sequences.
mod... | |
doc_2845 |
async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')
# Python 3.7+
asyncio.run(main())
asyncio is a library to write concurrent code using the async/await syntax. asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance network ... | |
doc_2846 | See Migration guide for more details. tf.compat.v1.raw_ops.CSVDataset
tf.raw_ops.CSVDataset(
filenames, compression_type, buffer_size, header, field_delim, use_quote_delim,
na_value, select_cols, record_defaults, output_shapes, name=None
)
Args
filenames A Tensor of type string.
compression_type... | |
doc_2847 |
Get the minimum theta limit in degrees. | |
doc_2848 | See torch.symeig() | |
doc_2849 |
Base class for all Samplers. Every Sampler subclass has to provide an __iter__() method, providing a way to iterate over indices of dataset elements, and a __len__() method that returns the length of the returned iterators. Note The __len__() method isn’t strictly required by DataLoader, but is expected in any calcu... | |
doc_2850 |
Check if domains match. New in version 1.6.0. Parameters
otherclass instance
The other class must have the domain attribute. Returns
boolboolean
True if the domains are the same, False otherwise. | |
doc_2851 | The error response body. This should be an HTTP response body bytestring. It defaults to the plain text, “A server error occurred. Please contact the administrator.” | |
doc_2852 | Receive up to nbytes bytes from the socket, storing the data into a buffer rather than creating a new bytestring. If nbytes is not specified (or 0), receive up to the size available in the given buffer. Returns the number of bytes received. See the Unix manual page recv(2) for the meaning of the optional argument flags... | |
doc_2853 | Module: email.mime.message A subclass of MIMENonMultipart, the MIMEMessage class is used to create MIME objects of main type message. _msg is used as the payload, and must be an instance of class Message (or a subclass thereof), otherwise a TypeError is raised. Optional _subtype sets the subtype of the message; it defa... | |
doc_2854 |
Find the horizontal edges of an image using the Farid transform. Parameters
image2-D array
Image to process.
mask2-D array, optional
An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. ... | |
doc_2855 |
Remove trailing coefficients Remove trailing coefficients until a coefficient is reached whose absolute value greater than tol or the beginning of the series is reached. If all the coefficients would be removed the series is set to [0]. A new series instance is returned with the new coefficients. The current instance... | |
doc_2856 | This is a nonstandard shortcut that creates a cursor object by calling the cursor() method, calls the cursor’s executemany() method with the parameters given, and returns the cursor. | |
doc_2857 | Return True if the process was terminated by a signal, otherwise return False. Availability: Unix. | |
doc_2858 | A generic version of collections.abc.AsyncIterator. New in version 3.5.2. Deprecated since version 3.9: collections.abc.AsyncIterator now supports []. See PEP 585 and Generic Alias Type. | |
doc_2859 | Parse the source into an AST node. Equivalent to compile(source,
filename, mode, ast.PyCF_ONLY_AST). If type_comments=True is given, the parser is modified to check and return type comments as specified by PEP 484 and PEP 526. This is equivalent to adding ast.PyCF_TYPE_COMMENTS to the flags passed to compile(). This wi... | |
doc_2860 | See Migration guide for more details. tf.compat.v1.raw_ops.DebugNanCount
tf.raw_ops.DebugNanCount(
input, device_name='', tensor_name='', debug_urls=[],
gated_grpc=False, name=None
)
Counts number of NaNs in the input tensor, for debugging.
Args
input A Tensor. Input tensor, non-Reference type.
... | |
doc_2861 | A string giving the site-specific directory prefix where the platform-dependent Python files are installed; by default, this is also '/usr/local'. This can be set at build time with the --exec-prefix argument to the configure script. Specifically, all configuration files (e.g. the pyconfig.h header file) are installed ... | |
doc_2862 | See Migration guide for more details. tf.compat.v1.keras.applications.inception_v3.decode_predictions
tf.keras.applications.inception_v3.decode_predictions(
preds, top=5
)
Arguments
preds Numpy array encoding a batch of predictions.
top Integer, how many top-guesses to return. Defaults to 5.
... | |
doc_2863 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_2864 |
Compute the determinant of an array. Parameters
a(…, M, M) array_like
Input array to compute determinants for. Returns
det(…) array_like
Determinant of a. See also slogdet
Another way to represent the determinant, more suitable for large matrices where underflow/overflow may occur. scipy.linalg.... | |
doc_2865 | Return a tuple of two integers, whose ratio is equal to the Fraction and with a positive denominator. New in version 3.8. | |
doc_2866 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_2867 | This method makes an HttpResponse instance a file-like object. | |
doc_2868 |
Copy properties from other to self. | |
doc_2869 | returns all sprites from a layer, ordered by how they where added get_sprites_from_layer(layer) -> sprites Returns all sprites from a layer, ordered by how they where added. It uses linear search and the sprites are not removed from layer. | |
doc_2870 |
Generate a sparse symmetric definite positive matrix. Read more in the User Guide. Parameters
dimint, default=1
The size of the random matrix to generate.
alphafloat, default=0.95
The probability that a coefficient is zero (see notes). Larger values enforce more sparsity. The value should be in the range 0 ... | |
doc_2871 | If provided, these arguments ensure that the string is at most or at least the given length. | |
doc_2872 |
Map a function in parallel across an array. Split an array into possibly overlapping chunks of a given depth and boundary type, call the given function in parallel on the chunks, combine the chunks and return the resulting array. Parameters
functionfunction
Function to be mapped which takes an array as an argum... | |
doc_2873 | An instance of ResolverMatch for the response. You can use the func attribute, for example, to verify the view that served the response: # my_view here is a function based view
self.assertEqual(response.resolver_match.func, my_view)
# class-based views need to be compared by name, as the functions
# generated by as_vi... | |
doc_2874 | See Migration guide for more details. tf.compat.v1.raw_ops.Sigmoid
tf.raw_ops.Sigmoid(
x, name=None
)
Specifically, y = 1 / (1 + exp(-x)).
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, complex64, complex128.
name A name for the operation (optional).
... | |
doc_2875 |
Reverse the order of elements along axis 1 (left/right). For a 2-D array, this flips the entries in each row in the left/right direction. Columns are preserved, but appear in a different order than before. Parameters
marray_like
Input array, must be at least 2-D. Returns
fndarray
A view of m with the co... | |
doc_2876 |
Returns array of indices of the maximum values along the given axis. Masked values are treated as if they had the value fill_value. Parameters
axis{None, integer}
If None, the index is into the flattened array, otherwise along the specified axis
fill_valuescalar or None, optional
Value used to fill in the m... | |
doc_2877 |
Casts all floating point parameters and buffers to double datatype. Returns
self Return type
Module | |
doc_2878 |
Set the default axis ticks and labels. Parameters
unitUnitData
object string unit information for value
axisAxis
axis for which information is being set Note axis is not used Returns
AxisInfo
Information to support default tick labeling | |
doc_2879 | This method serves the 'HEAD' request type: it sends the headers it would send for the equivalent GET request. See the do_GET() method for a more complete explanation of the possible headers. | |
doc_2880 | See Migration guide for more details. tf.compat.v1.strings.format
tf.strings.format(
template, inputs, placeholder='{}', summarize=3, name=None
)
Formats a string template using a list of tensors, abbreviating tensors by only printing the first and last summarize elements of each dimension (recursively). If form... | |
doc_2881 |
Add a rotation (in degrees) to this transform in place. Returns self, so this method can easily be chained with more calls to rotate(), rotate_deg(), translate() and scale(). | |
doc_2882 |
Set the vertices of the polygons. Parameters
vertslist of array-like
The sequence of polygons [verts0, verts1, ...] where each element verts_i defines the vertices of polygon i as a 2D array-like of shape (M, 2).
closedbool, default: True
Whether the polygon should be closed by adding a CLOSEPOLY connection... | |
doc_2883 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_2884 |
Evaluate a Chebyshev series at points x. If c is of length n + 1, this function returns the value: \[p(x) = c_0 * T_0(x) + c_1 * T_1(x) + ... + c_n * T_n(x)\] The parameter x is converted to an array only if it is a tuple or a list, otherwise it is treated as a scalar. In either case, either x or its elements must s... | |
doc_2885 |
Set the internal state of the generator from a tuple. For use if one has reason to manually (re-)set the internal state of the bit generator used by the RandomState instance. By default, RandomState uses the “Mersenne Twister”[1] pseudo-random number generating algorithm. Parameters
state{tuple(str, ndarray of 62... | |
doc_2886 | Returns True if the FreeType module is currently initialized. get_init() -> bool Returns True if the pygame.freetype module is currently initialized. New in pygame 1.9.5. | |
doc_2887 | See Migration guide for more details. tf.compat.v1.raw_ops.DeleteIterator
tf.raw_ops.DeleteIterator(
handle, deleter, name=None
)
Args
handle A Tensor of type resource. A handle to the iterator to delete.
deleter A Tensor of type variant. A variant deleter.
name A name for the operation (opt... | |
doc_2888 | This subclass of HTMLCalendar can be passed a locale name in the constructor and will return month and weekday names in the specified locale. If this locale includes an encoding all strings containing month and weekday names will be returned as unicode. | |
doc_2889 |
Trigger a tool and emit the tool_trigger_{name} event. Parameters
namestr
Name of the tool.
senderobject
Object that wishes to trigger the tool.
canvaseventEvent
Original Canvas event or None.
dataobject
Extra data to pass to the tool when triggering. | |
doc_2890 |
Getter for the precision matrix. Returns
precision_array-like of shape (n_features, n_features)
The precision matrix associated to the current covariance object. | |
doc_2891 |
Produce an object that mimics broadcasting. Parameters
in1, in2, …array_like
Input parameters. Returns
bbroadcast object
Broadcast the input parameters against one another, and return an object that encapsulates the result. Amongst others, it has shape and nd properties, and may be used as an iterator. ... | |
doc_2892 | Address space of a memory block (int). Read-only property. | |
doc_2893 | See Migration guide for more details. tf.compat.v1.global_norm, tf.compat.v1.linalg.global_norm
tf.linalg.global_norm(
t_list, name=None
)
Given a tuple or list of tensors t_list, this operation returns the global norm of the elements in all tensors in t_list. The global norm is computed as: global_norm = sqrt(s... | |
doc_2894 | This constant contains a boolean value which indicates if IPv6 is supported on this platform. | |
doc_2895 |
Compute density of a sparse vector. Parameters
warray-like
The sparse vector. Returns
float
The density of w, between 0 and 1. | |
doc_2896 |
Adjust the axes and return a list of information about the Sankey subdiagram(s). Return value is a list of subdiagrams represented with the following fields:
Field Description
patch Sankey outline (an instance of PathPatch)
flows values of the flows (positive for input, negative for output)
angles list of a... | |
doc_2897 |
Create and return a new GridlineCollection instance. which : "major" or "minor" axis : "both", "x" or "y" | |
doc_2898 |
Return the filename of the associated font. | |
doc_2899 | Subclass of SAXException raised on parse errors. Instances of this class are passed to the methods of the SAX ErrorHandler interface to provide information about the parse error. This class supports the SAX Locator interface as well as the SAXException interface. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.