_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_25900 | Subclasses can override this method to disallow the access to certain files. However by providing disallow in the constructor this method is overwritten. Parameters
filename (str) – Return type
bool | |
doc_25901 | See Migration guide for more details. tf.compat.v1.keras.layers.AdditiveAttention
tf.keras.layers.AdditiveAttention(
use_scale=True, **kwargs
)
Inputs are query tensor of shape [batch_size, Tq, dim], value tensor of shape [batch_size, Tv, dim] and key tensor of shape [batch_size, Tv, dim]. The calculation follow... | |
doc_25902 |
Get or set the current tick locations and labels of the y-axis. Pass no arguments to return the current values without modifying them. Parameters
ticksarray-like, optional
The list of ytick locations. Passing an empty list removes all yticks.
labelsarray-like, optional
The labels to place at the given ticks... | |
doc_25903 |
alias of matplotlib.colorbar.Colorbar | |
doc_25904 |
Sets the default floating point dtype to d. This dtype is: The inferred dtype for python floats in torch.tensor(). Used to infer dtype for python complex numbers. The default complex dtype is set to torch.complex128 if default floating point dtype is torch.float64, otherwise it’s set to torch.complex64
The default... | |
doc_25905 | Return the current local date. This is equivalent to date.fromtimestamp(time.time()). | |
doc_25906 | draw all sprites in the right order onto the passed surface. draw(surface, bgd=None) -> Rect_list You can pass the background too. If a background is already set, then the bgd argument has no effect. | |
doc_25907 | This is always True. | |
doc_25908 | See torch.flipud() | |
doc_25909 | Class that simulates a dictionary. The instance’s contents are kept in a regular dictionary, which is accessible via the data attribute of UserDict instances. If initialdata is provided, data is initialized with its contents; note that a reference to initialdata will not be kept, allowing it be used for other purposes.... | |
doc_25910 | The keyword arguments that will be supplied when the partial object is called. | |
doc_25911 |
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_25912 |
Define the picking behavior of the artist. Parameters
pickerNone or bool or float or callable
This can be one of the following:
None: Picking is disabled for this artist (default). A boolean: If True then picking will be enabled and the artist will fire a pick event if the mouse event is over the artist. A fl... | |
doc_25913 |
Return whether the artist uses clipping. | |
doc_25914 |
Bases: torch.distributions.transformed_distribution.TransformedDistribution Samples from a two-parameter Weibull distribution. Example >>> m = Weibull(torch.tensor([1.0]), torch.tensor([1.0]))
>>> m.sample() # sample from a Weibull distribution with scale=1, concentration=1
tensor([ 0.4784])
Parameters
scale (f... | |
doc_25915 | Return the number of bytes currently in the memory buffer. | |
doc_25916 | A context manager to test that at least one message is logged on the logger or one of its children, with at least the given level. If given, logger should be a logging.Logger object or a str giving the name of a logger. The default is the root logger, which will catch all messages that were not blocked by a non-propaga... | |
doc_25917 |
Resample an array with steps - 1 points between original point pairs. Along each column of a, (steps - 1) points are introduced between each original values; the values are linearly interpolated. Parameters
aarray, shape (n, ...)
stepsint
Returns
array
shape ((n - 1) * steps + 1, ...) | |
doc_25918 | Return an iterator of (key, value) pairs. Parameters
multi – If set to True the iterator returned will have a pair for each value of each key. Otherwise it will only contain pairs for the first value of each key. | |
doc_25919 |
Alias for get_linestyle. | |
doc_25920 | sklearn.metrics.check_scoring(estimator, scoring=None, *, allow_none=False) [source]
Determine scorer from user options. A TypeError will be thrown if the estimator cannot be scored. Parameters
estimatorestimator object implementing ‘fit’
The object to use to fit the data.
scoringstr or callable, default=None... | |
doc_25921 | Same as st2list(st, line_info, col_info). | |
doc_25922 |
Convert an image to 16-bit signed integer format. Parameters
imagendarray
Input image.
force_copybool, optional
Force a copy of the data, irrespective of its current dtype. Returns
outndarray of int16
Output image. Notes The values are scaled between -32768 and 32767. If the input data-type is p... | |
doc_25923 | Return a fully qualified domain name for name. If name is omitted or empty, it is interpreted as the local host. To find the fully qualified name, the hostname returned by gethostbyaddr() is checked, followed by aliases for the host, if available. The first name which includes a period is selected. In case no fully qua... | |
doc_25924 | A keyword argument to a function call or class definition. arg is a raw string of the parameter name, value is a node to pass in. | |
doc_25925 |
Base observer Module. Any observer implementation should derive from this class. Concrete observers should follow the same API. In forward, they will update the statistics of the observed Tensor. And they should provide a calculate_qparams function that computes the quantization parameters given the collected statist... | |
doc_25926 | It’s a relatively common task to check whether a user has a particular permission. For that reason, Django provides a shortcut for that case: the permission_required() decorator.: from django.contrib.auth.decorators import permission_required
@permission_required('polls.add_choice')
def my_view(request):
...
Just... | |
doc_25927 | See Migration guide for more details. tf.compat.v1.raw_ops.MatrixDiagPartV3
tf.raw_ops.MatrixDiagPartV3(
input, k, padding_value, align='RIGHT_LEFT', name=None
)
Returns a tensor with the k[0]-th to k[1]-th diagonals of the batched input. Assume input has r dimensions [I, J, ..., L, M, N]. Let max_diag_len be th... | |
doc_25928 |
Applies a 3D convolution over a quantized input signal composed of several quantized input planes. For details on input arguments, parameters, and implementation see Conv3d. Note Only zeros is supported for the padding_mode argument. Note Only torch.quint8 is supported for the input data type. Variables
~Conv... | |
doc_25929 |
Return unique values based on a hash table. Uniques are returned in order of appearance. This does NOT sort. Significantly faster than numpy.unique for long enough sequences. Includes NA values. Parameters
values:1d array-like
Returns
numpy.ndarray or ExtensionArray
The return can be: Index : when the inpu... | |
doc_25930 |
kind = 'hour' | |
doc_25931 | A cache control for requests. This is immutable and gives access to all the request-relevant cache control headers. To get a header of the RequestCacheControl object again you can convert the object into a string or call the to_header() method. If you plan to subclass it and add your own items have a look at the source... | |
doc_25932 |
Returns the current GPU memory managed by the caching allocator in bytes for a given device. Parameters
device (torch.device or int, optional) – selected device. Returns statistic for the current device, given by current_device(), if device is None (default). Note See Memory management for more details about GPU... | |
doc_25933 | See Migration guide for more details. tf.compat.v1.ragged.segment_ids_to_row_splits
tf.ragged.segment_ids_to_row_splits(
segment_ids, num_segments=None, out_type=None, name=None
)
Returns an integer vector splits, where splits[0] = 0 and splits[i] = splits[i-1] + count(segment_ids==i). Example:
print(tf.ragged.... | |
doc_25934 | Size of the compressed data. | |
doc_25935 | See Migration guide for more details. tf.compat.v1.raw_ops.Prod
tf.raw_ops.Prod(
input, axis, keep_dims=False, name=None
)
Reduces input along the dimensions given in axis. Unless keep_dims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keep_dims is true, the reduced dimensions are re... | |
doc_25936 |
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_25937 |
Reverse the transformation operation Parameters
Xarray of shape [n_samples, n_selected_features]
The input samples. Returns
X_rarray of shape [n_samples, n_original_features]
X with columns of zeros inserted where features would have been removed by transform. | |
doc_25938 | tf.compat.v1.nn.softmax_cross_entropy_with_logits(
_sentinel=None, labels=None, logits=None, dim=-1, name=None, axis=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Future major versions of TensorFlow will allow gradients to flow into the labels input... | |
doc_25939 | Create a C runtime file descriptor from the file handle handle. The flags parameter should be a bitwise OR of os.O_APPEND, os.O_RDONLY, and os.O_TEXT. The returned file descriptor may be used as a parameter to os.fdopen() to create a file object. Raises an auditing event msvcrt.open_osfhandle with arguments handle, fla... | |
doc_25940 | tf.experimental.numpy.power(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.power. | |
doc_25941 | Create a shallow copy of the deque. New in version 3.5. | |
doc_25942 | tf.optimizers.Adadelta Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.Adadelta
tf.keras.optimizers.Adadelta(
learning_rate=0.001, rho=0.95, epsilon=1e-07, name='Adadelta',
**kwargs
)
Adadelta optimization is a stochastic gradient descent method that is based ... | |
doc_25943 |
Set the CapStyle for the collection (for all its elements). Parameters
csCapStyle or {'butt', 'projecting', 'round'} | |
doc_25944 | See Migration guide for more details. tf.compat.v1.raw_ops.FloorMod
tf.raw_ops.FloorMod(
x, y, name=None
)
true, this follows Python semantics in that the result here is consistent with a flooring divide. E.g. floor(x / y) * y + mod(x, y) = x.
Note: math.floormod supports broadcasting. More about broadcasting h... | |
doc_25945 | See Migration guide for more details. tf.compat.v1.signal.ifftshift
tf.signal.ifftshift(
x, axes=None, name=None
)
Although identical for even-length x, the functions differ by one sample for odd-length x. For example: x = tf.signal.ifftshift([[ 0., 1., 2.],[ 3., 4., -4.],[-3., -2., -1.]])
x.numpy() # array([... | |
doc_25946 | Return True if the buffer is up to capacity. This method can be overridden to implement custom flushing strategies. | |
doc_25947 | See Migration guide for more details. tf.compat.v1.raw_ops.TPUReplicatedInput
tf.raw_ops.TPUReplicatedInput(
inputs, is_mirrored_variable=False, index=-1, is_packed=False, name=None
)
This operation holds a replicated input to a tpu.replicate() computation subgraph. Each replicated input has the same shape and t... | |
doc_25948 | Offset Length Contents
0 4 Chunk ID
4 4 Size of chunk in big-endian byte order, not including the header
8 n Data bytes, where n is the size given in the preceding field
8 + n 0 or 1 Pad byte needed if n is odd and chunk alignment is used The ID is a 4-byte string which identifies the type of chunk. The size... | |
doc_25949 | See Migration guide for more details. tf.compat.v1.raw_ops.RandomPoissonV2
tf.raw_ops.RandomPoissonV2(
shape, rate, seed=0, seed2=0, dtype=tf.dtypes.int64, name=None
)
This op uses two algorithms, depending on rate. If rate >= 10, then the algorithm by Hormann is used to acquire samples via transformation-reject... | |
doc_25950 |
Set the pick radius used for containment tests. Parameters
prfloat
Pick radius, in points. | |
doc_25951 |
Compute Foerstner corner measure response image. This corner detector uses information from the auto-correlation matrix A: A = [(imx**2) (imx*imy)] = [Axx Axy]
[(imx*imy) (imy**2)] [Axy Ayy]
Where imx and imy are first derivatives, averaged with a gaussian filter. The corner measure is then defined as: w =... | |
doc_25952 | Constructor for an unbounded FIFO queue. Simple queues lack advanced functionality such as task tracking. New in version 3.7. | |
doc_25953 | make custom user event type custom_type() -> int Reserves a pygame.USEREVENT for a custom use. If too many events are made a pygame.error is raised. New in pygame 2.0.0.dev3. | |
doc_25954 | exception xml.parsers.expat.ExpatError
The exception raised when Expat reports an error. See section ExpatError Exceptions for more information on interpreting Expat errors.
exception xml.parsers.expat.error
Alias for ExpatError.
xml.parsers.expat.XMLParserType
The type of the return values from the Parse... | |
doc_25955 | Subclass of xml.sax.handler.ContentHandler. | |
doc_25956 |
Equalize image using local histogram. Parameters
image([P,] M, N) ndarray (uint8, uint16)
Input image.
selemndarray
The neighborhood expressed as an ndarray of 1’s and 0’s.
out([P,] M, N) array (same dtype as input)
If None, a new array is allocated.
maskndarray (integer or float), optional
Mask arr... | |
doc_25957 | See Migration guide for more details. tf.compat.v1.raw_ops.ReaderRead
tf.raw_ops.ReaderRead(
reader_handle, queue_handle, name=None
)
Will dequeue from the input queue if necessary (e.g. when the Reader needs to start reading from a new file since it has finished with the previous file).
Args
reader_handl... | |
doc_25958 | See Migration guide for more details. tf.compat.v1.raw_ops.RequantizePerChannel
tf.raw_ops.RequantizePerChannel(
input, input_min, input_max, requested_output_min, requested_output_max,
out_type=tf.dtypes.quint8, name=None
)
Args
input A Tensor. Must be one of the following types: qint8, quint8, qin... | |
doc_25959 | Restore the terminal to “shell” mode, as previously saved by def_shell_mode(). | |
doc_25960 | Call the function (a function or method object, not a string) with the given arguments. When runcall() returns, it returns whatever the function call returned. The debugger prompt appears as soon as the function is entered. | |
doc_25961 | Remove the event from the queue. If event is not an event currently in the queue, this method will raise a ValueError. | |
doc_25962 | Set an ACL for mailbox. The method is non-standard, but is supported by the Cyrus server. | |
doc_25963 | See Migration guide for more details. tf.compat.v1.raw_ops.Tan
tf.raw_ops.Tan(
x, name=None
)
Given an input tensor, this function computes tangent of every element in the tensor. Input range is (-inf, inf) and output range is (-inf, inf). If input lies outside the boundary, nan is returned. x = tf.constant([-fl... | |
doc_25964 |
Applies a multi-layer Elman RNN with tanh\tanh or ReLU\text{ReLU} non-linearity to an input sequence. For each element in the input sequence, each layer computes the following function: ht=tanh(Wihxt+bih+Whhh(t−1)+bhh)h_t = \tanh(W_{ih} x_t + b_{ih} + W_{hh} h_{(t-1)} + b_{hh})
where hth_t is the hidden state... | |
doc_25965 | Applies the logical operation or between each operand’s digits. | |
doc_25966 | tf.compat.v1.profiler.profile(
graph=None, run_meta=None, op_log=None, cmd='scope',
options=_DEFAULT_PROFILE_OPTIONS
)
Tutorials and examples can be found in: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/profiler/g3doc/python_api.md
Args
graph tf.Graph. If None and eager execut... | |
doc_25967 |
Returns
float
The inner radial limit. | |
doc_25968 | A string denoting the charset in which the response will be encoded. If not given at HttpResponse instantiation time, it will be extracted from content_type and if that is unsuccessful, the DEFAULT_CHARSET setting will be used. | |
doc_25969 | Sends and logs a complete error reply to the client. The numeric code specifies the HTTP error code, with message as an optional, short, human readable description of the error. The explain argument can be used to provide more detailed information about the error; it will be formatted using the error_message_format att... | |
doc_25970 | tf.compat.v1.nn.xw_plus_b(
x, weights, biases, name=None
)
Args
x a 2D tensor. Dimensions typically: batch, in_units
weights a 2D tensor. Dimensions typically: in_units, out_units
biases a 1D tensor. Dimensions: out_units
name A name for the operation (optional). If not specified "xw_plu... | |
doc_25971 | Create a code object from Python source. The data argument can be whatever the compile() function supports (i.e. string or bytes). The path argument should be the “path” to where the source code originated from, which can be an abstract concept (e.g. location in a zip file). With the subsequent code object one can exec... | |
doc_25972 |
Return the lower and upper x-axis bounds, in increasing order. See also set_xbound
get_xlim, set_xlim
invert_xaxis, xaxis_inverted | |
doc_25973 |
Natural logarithm, element-wise. The natural logarithm log is the inverse of the exponential function, so that log(exp(x)) = x. The natural logarithm is logarithm in base e. Parameters
xarray_like
Input value.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is store... | |
doc_25974 |
Alias for set_antialiased. | |
doc_25975 | Begin the scope of a prefix-URI Namespace mapping. The information from this event is not necessary for normal Namespace processing: the SAX XML reader will automatically replace prefixes for element and attribute names when the feature_namespaces feature is enabled (the default). There are cases, however, when applica... | |
doc_25976 |
Return the array as an a.ndim-levels deep nested list of Python scalars. Return a copy of the array data as a (nested) Python list. Data items are converted to the nearest compatible builtin Python type, via the item function. If a.ndim is 0, then since the depth of the nested list is 0, it will not be a list at all,... | |
doc_25977 | See Migration guide for more details. tf.compat.v1.errors.DeadlineExceededError
tf.errors.DeadlineExceededError(
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_25978 | Tests if all elements in input evaluate to True. Note This function matches the behaviour of NumPy in returning output of dtype bool for all supported dtypes except uint8. For uint8 the dtype of output is uint8 itself. Example: >>> a = torch.rand(1, 2).bool()
>>> a
tensor([[False, True]], dtype=torch.bool)
>>> torch.... | |
doc_25979 |
alias of matplotlib.backends.backend_agg.FigureCanvasAgg | |
doc_25980 | get the color index palette for an 8-bit Surface get_palette() -> [RGB, RGB, RGB, ...] Return a list of up to 256 color elements that represent the indexed colors used in an 8-bit Surface. The returned list is a copy of the palette, and changes will have no effect on the Surface. Returning a list of Color(with length... | |
doc_25981 |
Return the scaled companion matrix of c. The basis polynomials are scaled so that the companion matrix is symmetric when c is an Hermite basis polynomial. This provides better eigenvalue estimates than the unscaled case and for basis polynomials the eigenvalues are guaranteed to be real if numpy.linalg.eigvalsh is us... | |
doc_25982 | The same as http_error_301(), but called for the ‘temporary redirect’ response. | |
doc_25983 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessParameterizedTruncatedNormal
tf.raw_ops.StatelessParameterizedTruncatedNormal(
shape, seed, means, stddevs, minvals, maxvals, name=None
)
Args
shape A Tensor. Must be one of the following types: int32, int64. The shape of the output ten... | |
doc_25984 | Set list_max_show_all to control how many items can appear on a “Show all” admin change list page. The admin will display a “Show all” link on the change list only if the total result count is less than or equal to this setting. By default, this is set to 200. | |
doc_25985 |
Data loader. Combines a dataset and a sampler, and provides an iterable over the given dataset. The DataLoader supports both map-style and iterable-style datasets with single- or multi-process loading, customizing loading order and optional automatic batching (collation) and memory pinning. See torch.utils.data docum... | |
doc_25986 |
Set the current rcParams. group is the grouping for the rc, e.g., for lines.linewidth the group is lines, for axes.facecolor, the group is axes, and so on. Group may also be a list or tuple of group names, e.g., (xtick, ytick). kwargs is a dictionary attribute name/value pairs, e.g.,: rc('lines', linewidth=2, color='... | |
doc_25987 |
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_25988 | Returns a 4-tuple with enough information to recreate the field: The name of the field on the model. The import path of the field (e.g. "django.db.models.IntegerField"). This should be the most portable version, so less specific may be better. A list of positional arguments. A dict of keyword arguments. This method m... | |
doc_25989 |
Bayesian information criterion for the current model on the input X. Parameters
Xarray of shape (n_samples, n_dimensions)
Returns
bicfloat
The lower the better. | |
doc_25990 | class sklearn.model_selection.RandomizedSearchCV(estimator, param_distributions, *, n_iter=10, scoring=None, n_jobs=None, refit=True, cv=None, verbose=0, pre_dispatch='2*n_jobs', random_state=None, error_score=nan, return_train_score=False) [source]
Randomized search on hyper parameters. RandomizedSearchCV implements... | |
doc_25991 | Return the datetime corresponding to the proleptic Gregorian ordinal, where January 1 of year 1 has ordinal 1. ValueError is raised unless 1
<= ordinal <= datetime.max.toordinal(). The hour, minute, second and microsecond of the result are all 0, and tzinfo is None. | |
doc_25992 | class sklearn.calibration.CalibratedClassifierCV(base_estimator=None, *, method='sigmoid', cv=None, n_jobs=None, ensemble=True) [source]
Probability calibration with isotonic regression or logistic regression. This class uses cross-validation to both estimate the parameters of a classifier and subsequently calibrate ... | |
doc_25993 |
Toggle the pan/zoom tool. Pan with left button, zoom with right. | |
doc_25994 |
Bases: object A class which, when called, linearly normalizes data into the [0.0, 1.0] interval. Parameters
vmin, vmaxfloat or None
If vmin and/or vmax is not given, they are initialized from the minimum and maximum value, respectively, of the first input processed; i.e., __call__(A) calls autoscale_None(A).
... | |
doc_25995 |
Set the title text of the window containing the figure. This has no effect for non-GUI (e.g., PS) backends. | |
doc_25996 | Class that implements the default pseudo-random number generator used by the random module. Deprecated since version 3.9: In the future, the seed must be one of the following types: NoneType, int, float, str, bytes, or bytearray. | |
doc_25997 |
Provide exponentially weighted (EW) calculations. Exactly one parameter: com, span, halflife, or alpha must be provided. Parameters
com:float, optional
Specify decay in terms of center of mass \(\alpha = 1 / (1 + com)\), for \(com \geq 0\).
span:float, optional
Specify decay in terms of span \(\alpha = 2 / ... | |
doc_25998 | Returns the number of seconds until this session expires. For sessions with no custom expiration (or those set to expire at browser close), this will equal SESSION_COOKIE_AGE. This function accepts two optional keyword arguments:
modification: last modification of the session, as a datetime object. Defaults to the cu... | |
doc_25999 | turtle.seth(to_angle)
Parameters
to_angle – a number (integer or float) Set the orientation of the turtle to to_angle. Here are some common directions in degrees:
standard mode logo mode
0 - east 0 - north
90 - north 90 - east
180 - west 180 - south
270 - south 270 - west >>> turtle.setheading(90)
>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.