_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_22400 |
Return a copy of a DataFrame excluding filtered elements. Elements from groups are filtered if they do not satisfy the boolean criterion specified by func. Parameters
func:function
Function to apply to each subframe. Should return True or False.
dropna:Drop groups that do not pass the filter. True by default;... | |
doc_22401 |
run(test)
Run test and return the result. | |
doc_22402 |
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_22403 | See Migration guide for more details. tf.compat.v1.manip.gather_nd
tf.compat.v1.gather_nd(
params, indices, name=None, batch_dims=0
)
indices is an K-dimensional integer tensor, best thought of as a (K-1)-dimensional tensor of indices into params, where each element defines a slice of params: output[\\(i_0, ...,... | |
doc_22404 |
Draw a glyph described by info to the reference point (ox, oy). | |
doc_22405 | A dictionary-like object containing session information. See the session documentation for full details. To modify the session and then save it, it must be stored in a variable first (because a new SessionStore is created every time this property is accessed): def test_something(self):
session = self.client.session... | |
doc_22406 |
Plot the values of a 2D matrix or array as color-coded image. The matrix will be shown the way it would be printed, with the first row at the top. Row and column numbering is zero-based. Parameters
Z(M, N) array-like
The matrix to be displayed. Returns
AxesImage
Other Parameters
**kwargsimshow argumen... | |
doc_22407 | os.POSIX_FADV_SEQUENTIAL
os.POSIX_FADV_RANDOM
os.POSIX_FADV_NOREUSE
os.POSIX_FADV_WILLNEED
os.POSIX_FADV_DONTNEED
Flags that can be used in advice in posix_fadvise() that specify the access pattern that is likely to be used. Availability: Unix. New in version 3.3. | |
doc_22408 | Resizes a mask scale((width, height)) -> Mask Creates a new Mask of the requested size with its bits scaled from this mask.
Parameters:
size (tuple(int, int) or list[int, int]) -- the width and height (size) of the mask to create
Returns:
a new Mask object with its bits scaled from this mask
Return type:
Ma... | |
doc_22409 | Defaults to True, in which case a required validation error will be raised if no value is supplied for any field. When set to False, the Field.required attribute can be set to False for individual fields to make them optional. If no value is supplied for a required field, an incomplete validation error will be raised. ... | |
doc_22410 |
Return a new array of given shape and type, filled with ones. Parameters
shapeint or sequence of ints
Shape of the new array, e.g., (2, 3) or 2.
dtypedata-type, optional
The desired data-type for the array, e.g., numpy.int8. Default is numpy.float64.
order{‘C’, ‘F’}, optional, default: C
Whether to stor... | |
doc_22411 |
Set the sketch parameters. Parameters
scalefloat, optional
The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided.
lengthfloat, optional
The length of the wiggle along the line, in pixels (default 128.0)
randomnessfloat... | |
doc_22412 |
Draw samples from an exponential distribution. Its probability density function is \[f(x; \frac{1}{\beta}) = \frac{1}{\beta} \exp(-\frac{x}{\beta}),\] for x > 0 and 0 elsewhere. \(\beta\) is the scale parameter, which is the inverse of the rate parameter \(\lambda = 1/\beta\). The rate parameter is an alternative, w... | |
doc_22413 | Handle uncaught exception raised by Thread.run(). The args argument has the following attributes:
exc_type: Exception type.
exc_value: Exception value, can be None.
exc_traceback: Exception traceback, can be None.
thread: Thread which raised the exception, can be None. If exc_type is SystemExit, the exception is ... | |
doc_22414 | Similar to BaseCGIHandler, but designed for use with HTTP origin servers. If you are writing an HTTP server implementation, you will probably want to subclass this instead of BaseCGIHandler. This class is a subclass of BaseHandler. It overrides the __init__(), get_stdin(), get_stderr(), add_cgi_vars(), _write(), and _f... | |
doc_22415 | Generate a UUID from a host ID, sequence number, and the current time. If node is not given, getnode() is used to obtain the hardware address. If clock_seq is given, it is used as the sequence number; otherwise a random 14-bit sequence number is chosen. | |
doc_22416 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseTensorToCSRSparseMatrix
tf.raw_ops.SparseTensorToCSRSparseMatrix(
indices, values, dense_shape, name=None
)
Args
indices A Tensor of type int64. SparseTensor indices.
values A Tensor. Must be one of the following types: float32, floa... | |
doc_22417 | Write the bytes from buf to the memory BIO. The buf argument must be an object supporting the buffer protocol. The return value is the number of bytes written, which is always equal to the length of buf. | |
doc_22418 | When st_file_attributes has the FILE_ATTRIBUTE_REPARSE_POINT set, this field contains the tag identifying the type of reparse point. See the IO_REPARSE_TAG_* constants in the stat module. | |
doc_22419 |
Disconnect the callback registered with callback id cid. No error is raised if such a callback does not exist. | |
doc_22420 | Returns a date object containing the next valid day after the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future. | |
doc_22421 | Determine if the formatted representation of the object is “readable,” or can be used to reconstruct the value using eval(). Note that this returns False for recursive objects. If the depth parameter of the PrettyPrinter is set and the object is deeper than allowed, this returns False. | |
doc_22422 | tf.keras.layers.SeparableConvolution2D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.SeparableConv2D, tf.compat.v1.keras.layers.SeparableConvolution2D
tf.keras.layers.SeparableConv2D(
filters, kernel_size, strides=(1, 1), padding='valid',
data_format=None, dilati... | |
doc_22423 | Returns a sparse copy of the tensor. PyTorch supports sparse tensors in coordinate format. Parameters
sparseDims (int, optional) – the number of sparse dimensions to include in the new sparse tensor Example: >>> d = torch.tensor([[0, 0, 0], [9, 0, 10], [0, 0, 0]])
>>> d
tensor([[ 0, 0, 0],
[ 9, 0, 10],
... | |
doc_22424 | Return the value of the extended filesystem attribute attribute for path. attribute can be bytes or str (directly or indirectly through the PathLike interface). If it is str, it is encoded with the filesystem encoding. This function can support specifying a file descriptor and not following symlinks. Raises an auditing... | |
doc_22425 |
Return a new Index of the values set with the mask. Returns
Index
See also numpy.ndarray.putmask
Changes elements of an array based on conditional and input values. | |
doc_22426 |
IEEE 754 floating point representation of (positive) infinity. Use inf because Inf, Infinity, PINF and infty are aliases for inf. For more details, see inf. See Also inf
numpy.Infinity
IEEE 754 floating point representation of (positive) infinity. Use inf because Inf, Infinity, PINF and infty are aliases for in... | |
doc_22427 | Reverse the order of the items in the array. | |
doc_22428 | See Migration guide for more details. tf.compat.v1.saved_model.experimental.VariablePolicy NONE No policy applied: Distributed variables are saved as one variable, with no device attached. SAVE_VARIABLE_DEVICES When saving variables, also save their device assignment. This is useful if one wants to hardcode devices in... | |
doc_22429 | Always False. This method makes an HttpResponse instance a stream-like object. | |
doc_22430 | Report that the given example ran successfully. This method is provided to allow subclasses of DocTestRunner to customize their output; it should not be called directly. example is the example about to be processed. got is the actual output from the example. test is the test containing example. out is the output functi... | |
doc_22431 |
Alias for get_linewidth. | |
doc_22432 | Concrete implementation of InspectLoader.get_code(). | |
doc_22433 |
Draw samples from an exponential distribution. Its probability density function is \[f(x; \frac{1}{\beta}) = \frac{1}{\beta} \exp(-\frac{x}{\beta}),\] for x > 0 and 0 elsewhere. \(\beta\) is the scale parameter, which is the inverse of the rate parameter \(\lambda = 1/\beta\). The rate parameter is an alternative, w... | |
doc_22434 | Format the shell environment in HTML. | |
doc_22435 | Computes the QR decomposition of a matrix or a batch of matrices input, and returns a namedtuple (Q, R) of tensors such that input=QR\text{input} = Q R with QQ being an orthogonal matrix or batch of orthogonal matrices and RR being an upper triangular matrix or batch of upper triangular matrices. Depending on the va... | |
doc_22436 | Add a TestCase or TestSuite to the suite. | |
doc_22437 | tf.atanh Compat aliases for migration See Migration guide for more details. tf.compat.v1.atanh, tf.compat.v1.math.atanh
tf.math.atanh(
x, name=None
)
Given an input tensor, this function computes inverse hyperbolic tangent for every element in the tensor. Input range is [-1,1] and output range is [-inf, inf]. If... | |
doc_22438 | The content of the processing instruction following the first whitespace character. | |
doc_22439 | The smallest possible difference between non-equal time objects, timedelta(microseconds=1), although note that arithmetic on time objects is not supported. | |
doc_22440 |
Bases: object PDF name object. statichexify(match)[source]
name
pdfRepr()[source] | |
doc_22441 | High-resolution per-process timer from the CPU. Availability: FreeBSD, NetBSD 7 or later, OpenBSD. New in version 3.7. | |
doc_22442 | See Migration guide for more details. tf.compat.v1.raw_ops.Polygamma
tf.raw_ops.Polygamma(
a, x, name=None
)
The polygamma function is defined as: \(\psi^{(a)}(x) = \frac{d^a}{dx^a} \psi(x)\) where \(\psi(x)\) is the digamma function. The polygamma function is defined only for non-negative integer orders \a\.
... | |
doc_22443 | tf.random_uniform_initializer(
minval=-0.05, maxval=0.05, seed=None
)
Initializers allow you to pre-specify an initialization strategy, encoded in the Initializer object, without knowing the shape and dtype of the variable being initialized. Examples:
def make_variables(k, initializer):
return (tf.Variable(init... | |
doc_22444 | Base class for creating enumerated constants that can be combined using the bitwise operations without losing their Flag membership. | |
doc_22445 |
List all entrypoints available in github hubconf. Parameters
github (string) – a string with format “repo_owner/repo_name[:tag_name]” with an optional tag/branch. The default branch is master if not specified. Example: ‘pytorch/vision[:hub]’
force_reload (bool, optional) – whether to discard the existing cache a... | |
doc_22446 | See Migration guide for more details. tf.compat.v1.estimator.SessionRunValues, tf.compat.v1.train.SessionRunValues
tf.estimator.SessionRunValues(
results, options, run_metadata
)
In the future we may use this object to add more information about result of run without changing the Hook API.
Args
results ... | |
doc_22447 | Yield finder objects for the given module name. If fullname contains a ‘.’, the finders will be for the package containing fullname, otherwise they will be all registered top level finders (i.e. those on both sys.meta_path and sys.path_hooks). If the named module is in a package, that package is imported as a side effe... | |
doc_22448 | Returns a single line, starting at the current file position and up to the next newline. The file position is updated to point after the bytes that were returned. | |
doc_22449 | The view function used to serve files from static_folder. A route is automatically registered for this view at static_url_path if static_folder is set. Changelog New in version 0.5. Parameters
filename (str) – Return type
Response | |
doc_22450 | Record the function handler as the handler for key. For the possible values of key, see get_content(). | |
doc_22451 | A ChainMap groups multiple dicts or other mappings together to create a single, updateable view. If no maps are specified, a single empty dictionary is provided so that a new chain always has at least one mapping. The underlying mappings are stored in a list. That list is public and can be accessed or updated using the... | |
doc_22452 | In-place version of ne(). | |
doc_22453 | Adds the specified filter filter to this handler. | |
doc_22454 |
Calls str.encode element-wise. See also char.encode | |
doc_22455 |
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array. | |
doc_22456 |
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_22457 |
Alias for set_facecolor. | |
doc_22458 | See Migration guide for more details. tf.compat.v1.audio.decode_wav
tf.audio.decode_wav(
contents, desired_channels=-1, desired_samples=-1, name=None
)
The -32768 to 32767 signed 16-bit values will be scaled to -1.0 to 1.0 in float. When desired_channels is set, if the input contains fewer channels than this the... | |
doc_22459 |
Cast to DatetimeArray/Index. Parameters
freq:str or DateOffset, optional
Target frequency. The default is ‘D’ for week or longer, ‘S’ otherwise.
how:{‘s’, ‘e’, ‘start’, ‘end’}
Whether to use the start or end of the time period being converted. Returns
DatetimeArray/Index | |
doc_22460 | See Migration guide for more details. tf.compat.v1.raw_ops.ParseSequenceExample
tf.raw_ops.ParseSequenceExample(
serialized, debug_name, context_dense_defaults,
feature_list_dense_missing_assumed_empty, context_sparse_keys,
context_dense_keys, feature_list_sparse_keys, feature_list_dense_keys,
Ncontex... | |
doc_22461 | tf.debugging.assert_scalar(
tensor, message=None, name=None
)
This function raises ValueError unless it can be certain that the given tensor is a scalar. ValueError is also raised if the shape of tensor is unknown. This is always checked statically, so this method returns nothing.
Args
tensor A Tensor.
... | |
doc_22462 |
Add library to configuration. Parameters
namestr
Name of the extension.
sourcessequence
List of the sources. The list of sources may contain functions (called source generators) which must take an extension instance and a build directory as inputs and return a source file or list of source files or None. If... | |
doc_22463 | Module symbol
Useful constants representing internal nodes of the parse tree.
Module token
Useful constants representing leaf nodes of the parse tree and functions for testing node values. Creating ST Objects ST objects may be created from source code or from a parse tree. When creating an ST object from sourc... | |
doc_22464 | Return True if it is a FIFO. | |
doc_22465 | tf.compat.v1.layers.AveragePooling2D(
pool_size, strides, padding='valid',
data_format='channels_last', name=None, **kwargs
)
Arguments
pool_size An integer or tuple/list of 2 integers: (pool_height, pool_width) specifying the size of the pooling window. Can be a single integer to specify the same val... | |
doc_22466 |
Get the width of the character from a type1 character name. | |
doc_22467 |
Create an array. Parameters
objectarray_like
An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0-dimensional array containing object is returned.
dtypedata-type, optional
The desired data-type for the arra... | |
doc_22468 |
Read SQL database table into a DataFrame. Given a table name and a SQLAlchemy connectable, returns a DataFrame. This function does not support DBAPI connections. Parameters
table_name:str
Name of SQL table in database.
con:SQLAlchemy connectable or str
A database URI could be provided as str. SQLite DBAPI c... | |
doc_22469 | Abstract. Retrieves the imaginary component of this number. | |
doc_22470 | Casts all floating point parameters and buffers to half datatype. Returns
self Return type
Module | |
doc_22471 |
Get padding for constrained_layout. Returns a list of w_pad, h_pad in inches and wspace and hspace as fractions of the subplot. See Constrained Layout Guide. Parameters
relativebool
If True, then convert from inches to figure relative. | |
doc_22472 | tempfile.TemporaryFile(mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None)
Return a file-like object that can be used as a temporary storage area. The file is created securely, using the same rules as mkstemp(). It will be destroyed as soon as it is closed (inclu... | |
doc_22473 | A module or other object that has dumps and loads functions that match the API of the built-in json module. | |
doc_22474 |
Return random integers from low (inclusive) to high (exclusive). Return random integers from the “discrete uniform” distribution of the specified dtype in the “half-open” interval [low, high). If high is None (the default), then results are from [0, low). Note New code should use the integers method of a default_rng... | |
doc_22475 |
Length of one array element in bytes. Examples >>> x = np.array([1,2,3], dtype=np.float64)
>>> x.itemsize
8
>>> x = np.array([1,2,3], dtype=np.complex128)
>>> x.itemsize
16 | |
doc_22476 | The Formatter class has the following public methods:
format(format_string, /, *args, **kwargs)
The primary API method. It takes a format string and an arbitrary set of positional and keyword arguments. It is just a wrapper that calls vformat(). Changed in version 3.7: A format string argument is now positional-on... | |
doc_22477 | Register a rule for routing incoming requests and building URLs. The route() decorator is a shortcut to call this with the view_func argument. These are equivalent: @app.route("/")
def index():
...
def index():
...
app.add_url_rule("/", view_func=index)
See URL Route Registrations. The endpoint name for the ... | |
doc_22478 | set smoothscale filter version to one of: 'GENERIC', 'MMX', or 'SSE' set_smoothscale_backend(type) -> None Sets smoothscale acceleration. Takes a string argument. A value of 'GENERIC' turns off acceleration. 'MMX' uses MMX instructions only. 'SSE' allows SSE extensions as well. A value error is raised if type is not ... | |
doc_22479 |
See torch.nn.PairwiseDistance for details | |
doc_22480 | This is either None (if the mock hasn’t been called), or the arguments that the mock was last called with. This will be in the form of a tuple: the first member, which can also be accessed through the args property, is any ordered arguments the mock was called with (or an empty tuple) and the second member, which can a... | |
doc_22481 | See Migration guide for more details. tf.compat.v1.raw_ops.Svd
tf.raw_ops.Svd(
input, compute_uv=True, full_matrices=False, name=None
)
Computes the SVD of each inner matrix in input such that input[..., :, :] = u[..., :, :] * diag(s[..., :, :]) * transpose(v[..., :, :]) # a is a tensor containing a batch of mat... | |
doc_22482 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixAdd
tf.raw_ops.SparseMatrixAdd(
a, b, alpha, beta, name=None
)
The gradients of SparseMatrixAdd outputs with respect to alpha and beta are not currently defined (TensorFlow will return zeros for these entries).
Args
a A Tensor of typ... | |
doc_22483 | tf.not_equal Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.not_equal, tf.compat.v1.not_equal
tf.math.not_equal(
x, y, name=None
)
Performs a broadcast with the arguments and then an element-wise inequality comparison, returning a Tensor of boolean values. For example:
x = ... | |
doc_22484 | A dictionary containing the element’s attributes. Note that while the attrib value is always a real mutable Python dictionary, an ElementTree implementation may choose to use another internal representation, and create the dictionary only if someone asks for it. To take advantage of such implementations, use the dictio... | |
doc_22485 | Fetch and/or change the signal mask of the calling thread. The signal mask is the set of signals whose delivery is currently blocked for the caller. Return the old signal mask as a set of signals. The behavior of the call is dependent on the value of how, as follows.
SIG_BLOCK: The set of blocked signals is the union... | |
doc_22486 | The URL scheme of the protocol the request used, such as https or wss. | |
doc_22487 |
Warning used to notify the user of inefficient computation. This warning notifies the user that the efficiency may not be optimal due to some reason which may be included as a part of the warning message. This may be subclassed into a more specific Warning class. New in version 0.18. Attributes
args
Methods ... | |
doc_22488 | tf.summary.histogram(
name, data, step=None, buckets=None, 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 of any shape. Must be castable to float64.
step Explicit int64-castable... | |
doc_22489 | Checks whether an application with the given name exists in the registry. app_name is the full name of the app, e.g. 'django.contrib.admin'. | |
doc_22490 |
Parameters
urlslist of str or None
Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends. | |
doc_22491 | Unsubscribe from old mailbox. | |
doc_22492 | Writes an element tree or element structure to sys.stdout. This function should be used for debugging only. The exact output format is implementation dependent. In this version, it’s written as an ordinary XML file. elem is an element tree or an individual element. Changed in version 3.8: The dump() function now prese... | |
doc_22493 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyMomentum
tf.raw_ops.ResourceSparseApplyMomentum(
var, accum, lr, grad, indices, momentum, use_locking=False, use_nesterov=False,
name=None
)
Set use_nesterov = True if you want to use Nesterov momentum. That is for rows we have gra... | |
doc_22494 | See Migration guide for more details. tf.compat.v1.slice
tf.slice(
input_, begin, size, name=None
)
See also tf.strided_slice. This operation extracts a slice of size size from a tensor input_ starting at the location specified by begin. The slice size is represented as a tensor shape, where size[i] is the numbe... | |
doc_22495 | Returns a new Tensor, detached from the current graph. The result will never require gradient. Note Returned Tensor shares the same storage with the original one. In-place modifications on either of them will be seen, and may trigger errors in correctness checks. IMPORTANT NOTE: Previously, in-place size / stride / st... | |
doc_22496 |
Alias for get_linestyle. | |
doc_22497 | A subclass of Path and PurePosixPath, this class represents concrete non-Windows filesystem paths: >>> PosixPath('/etc')
PosixPath('/etc')
pathsegments is specified similarly to PurePath. | |
doc_22498 |
Make a compound path from a list of Path objects. Blindly removes all Path.STOP control points. | |
doc_22499 | Return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute. Objects such as modules and instances have an updateable __dict__ attribute; however, other objects may have write restrictions on their __dict__ attributes (for example, classes use a types.MappingProxyType to p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.