_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_27400 | Add an etag for the current response if there is none yet. Changed in version 2.0: SHA-1 is used to generate the value. MD5 may not be available in some environments. Parameters
overwrite (bool) –
weak (bool) – Return type
None | |
doc_27401 | The number of threads in the thread-pool used by ProcessGroupAgent. | |
doc_27402 |
The number of days in the month. | |
doc_27403 |
Get the offset for the location of 0 in radians. | |
doc_27404 | tf.compat.v1.data.experimental.sample_from_datasets(
datasets, weights=None, seed=None
)
Args
datasets A list of tf.data.Dataset objects with compatible structure.
weights (Optional.) A list of len(datasets) floating-point values where weights[i] represents the probability with which an element shou... | |
doc_27405 |
Return the Discrete Fourier Transform sample frequencies. The returned float array f contains the frequency bin centers in cycles per unit of the sample spacing (with zero at the start). For instance, if the sample spacing is in seconds, then the frequency unit is cycles/second. Given a window length n and a sample s... | |
doc_27406 |
Represent a categorical variable in classic R / S-plus fashion. Categoricals can only take on only a limited, and usually fixed, number of possible values (categories). In contrast to statistical categorical variables, a Categorical might have an order, but numerical operations (additions, divisions, …) are not possi... | |
doc_27407 | In-place version of igamma() | |
doc_27408 | Represents the C size_t datatype. | |
doc_27409 | Note: Functions taking Tensor arguments can also take anything accepted by tf.convert_to_tensor.
Note: Elementwise binary operations in TensorFlow follow numpy-style broadcasting.
TensorFlow provides a variety of math functions including: Basic arithmetic operators and trigonometric functions. Special math function... | |
doc_27410 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseTensorSliceDataset
tf.raw_ops.SparseTensorSliceDataset(
indices, values, dense_shape, name=None
)
Args
indices A Tensor of type int64.
values A Tensor.
dense_shape A Tensor of type int64.
name A name for the operation (op... | |
doc_27411 | Scheduling policy for CPU-intensive processes that tries to preserve interactivity on the rest of the computer. | |
doc_27412 | sklearn.datasets.fetch_species_distributions(*, data_home=None, download_if_missing=True) [source]
Loader for species distribution dataset from Phillips et. al. (2006) Read more in the User Guide. Parameters
data_homestr, default=None
Specify another download and cache folder for the datasets. By default all sc... | |
doc_27413 | Return True if the object is an asynchronous generator function, for example: >>> async def agen():
... yield 1
...
>>> inspect.isasyncgenfunction(agen)
True
New in version 3.6. Changed in version 3.8: Functions wrapped in functools.partial() now return True if the wrapped function is a asynchronous generator f... | |
doc_27414 | class sklearn.linear_model.LassoLarsCV(*, fit_intercept=True, verbose=False, max_iter=500, normalize=True, precompute='auto', cv=None, max_n_alphas=1000, n_jobs=None, eps=2.220446049250313e-16, copy_X=True, positive=False) [source]
Cross-validated Lasso, using the LARS algorithm. See glossary entry for cross-validati... | |
doc_27415 | This function creates a mutable character buffer. The returned object is a ctypes array of c_char. init_or_size must be an integer which specifies the size of the array, or a bytes object which will be used to initialize the array items. If a bytes object is specified as first argument, the buffer is made one item larg... | |
doc_27416 |
Handler for Errorbars. Parameters
marker_padfloat
Padding between points in legend entry.
numpointsint
Number of points to show in legend entry. **kwargs
Keyword arguments forwarded to HandlerNpoints. create_artists(legend, orig_handle, xdescent, ydescent, width, height, fontsize, trans)[source]
... | |
doc_27417 | Return the first operand with exponent adjusted by the second. Equivalently, return the first operand multiplied by 10**other. The second operand must be an integer. | |
doc_27418 |
Return the sum along diagonals of the array. If a is 2-D, the sum along its diagonal with the given offset is returned, i.e., the sum of elements a[i,i+offset] for all i. If a has more than two dimensions, then the axes specified by axis1 and axis2 are used to determine the 2-D sub-arrays whose traces are returned. T... | |
doc_27419 | See Migration guide for more details. tf.compat.v1.distribute.NcclAllReduce
tf.distribute.NcclAllReduce(
num_packs=1
)
It uses Nvidia NCCL for all-reduce. For the batch API, tensors will be repacked or aggregated for more efficient cross-device transportation. For reduces that are not all-reduce, it falls back t... | |
doc_27420 | tf.compat.v1.logging.TaskLevelStatusMessage(
msg
) | |
doc_27421 | Merge multiple sorted inputs into a single sorted output (for example, merge timestamped entries from multiple log files). Returns an iterator over the sorted values. Similar to sorted(itertools.chain(*iterables)) but returns an iterable, does not pull the data into memory all at once, and assumes that each of the inpu... | |
doc_27422 |
Remove this colorbar from the figure. If the colorbar was created with use_gridspec=True the previous gridspec is restored. | |
doc_27423 |
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_27424 | Write all data associated with the window into the provided file object. This information can be later retrieved using the getwin() function. | |
doc_27425 | Returns the size of the self tensor. The returned value is a subclass of tuple. Example: >>> torch.empty(3, 4, 5).size()
torch.Size([3, 4, 5]) | |
doc_27426 | Return the complementary error function at x. The complementary error function is defined as 1.0 - erf(x). It is used for large values of x where a subtraction from one would cause a loss of significance. New in version 3.2. | |
doc_27427 |
Set the position to use for z-sorting. | |
doc_27428 | The default ordering for the object, for use when obtaining lists of objects: ordering = ['-order_date']
This is a tuple or list of strings and/or query expressions. Each string is a field name with an optional “-” prefix, which indicates descending order. Fields without a leading “-” will be ordered ascending. Use th... | |
doc_27429 | Return True if s is a Python soft keyword. New in version 3.9. | |
doc_27430 | Create a RequestContext representing a WSGI environment. Use a with block to push the context, which will make request point at this request. See The Request Context. Typically you should not call this from your own code. A request context is automatically pushed by the wsgi_app() when handling a request. Use test_requ... | |
doc_27431 |
Get parameters of this kernel. 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_27432 | Create and return a pointer to a new pad data structure with the given number of lines and columns. Return a pad as a window object. A pad is like a window, except that it is not restricted by the screen size, and is not necessarily associated with a particular part of the screen. Pads can be used when a large window i... | |
doc_27433 |
Indicates if an interval is empty, meaning it contains no points. New in version 0.25.0. Returns
bool or ndarray
A boolean indicating if a scalar Interval is empty, or a boolean ndarray positionally indicating if an Interval in an IntervalArray or IntervalIndex is empty. Examples An Interval that contains p... | |
doc_27434 |
Pointer to start of data. | |
doc_27435 |
Set the artist's clip Bbox. Parameters
clipboxBbox | |
doc_27436 | See Migration guide for more details. tf.compat.v1.bitwise.invert
tf.bitwise.invert(
x, name=None
)
Flip each bit of supported types. For example, type int8 (decimal 2) binary 00000010 becomes (decimal -3) binary 11111101. This operation is performed on each element of the tensor argument x. Example: import tens... | |
doc_27437 | See Migration guide for more details. tf.compat.v1.raw_ops.DeserializeIterator
tf.raw_ops.DeserializeIterator(
resource_handle, serialized, name=None
)
Args
resource_handle A Tensor of type resource. A handle to an iterator resource.
serialized A Tensor of type variant. A variant tensor storing th... | |
doc_27438 | Return:
obj argument as is, if obj is a Future, a Task, or a Future-like object (isfuture() is used for the test.) a Task object wrapping obj, if obj is a coroutine (iscoroutine() is used for the test); in this case the coroutine will be scheduled by ensure_future(). a Task object that would await on obj, if obj is a... | |
doc_27439 | Create a virtual environment by specifying the target directory (absolute or relative to the current directory) which is to contain the virtual environment. The create method will either create the environment in the specified directory, or raise an appropriate exception. The create method of the EnvBuilder class illus... | |
doc_27440 | skimage.viewer.canvastools.LineTool(manager) Widget for line selection in a plot.
skimage.viewer.canvastools.PaintTool(…[, …]) Widget for painting on top of a plot.
skimage.viewer.canvastools.RectangleTool(manager) Widget for selecting a rectangular region in a plot.
skimage.viewer.canvastools.ThickLineTool(manag... | |
doc_27441 | Registry entries subordinate to this key define types (or classes) of documents and the properties associated with those types. Shell and COM applications use the information stored under this key. | |
doc_27442 |
Apply decision function to an array of samples. The decision function is equal (up to a constant factor) to the log-posterior of the model, i.e. log p(y = k | x). In a binary classification setting this instead corresponds to the difference log p(y = 1 | x) - log p(y = 0 | x). See Mathematical formulation of the LDA ... | |
doc_27443 | Estimate ∫ydx\int y\,dx along dim, using the trapezoid rule. Parameters
y (Tensor) – The values of the function to integrate
x (Tensor) – The points at which the function y is sampled. If x is not in ascending order, intervals on which it is decreasing contribute negatively to the estimated integral (i.e., the co... | |
doc_27444 | turtle.pu()
turtle.up()
Pull the pen up – no drawing when moving. | |
doc_27445 |
Return the maximum along a given axis. Refer to numpy.amax for full documentation. See also numpy.amax
equivalent function | |
doc_27446 |
Bases: object A series of possibly disconnected, possibly closed, line and curve segments. The underlying storage is made up of two parallel numpy arrays:
vertices: an Nx2 float array of vertices
codes: an N-length uint8 array of path codes, or None These two arrays always have the same length in the first dimens... | |
doc_27447 | tf.data.experimental.service.DispatchServer(
config=None, start=True
)
A tf.data.experimental.service.DispatchServer coordinates a cluster of tf.data.experimental.service.WorkerServers. When the workers start, they register themselves with the dispatcher.
dispatcher = tf.data.experimental.service.DispatchServer()... | |
doc_27448 |
Applies a 2D bilinear upsampling to an input signal composed of several input channels. To specify the scale, it takes either the size or the scale_factor as it’s constructor argument. When size is given, it is the output size of the image (h, w). Parameters
size (int or Tuple[int, int], optional) – output spatia... | |
doc_27449 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListScatterIntoExistingList
tf.raw_ops.TensorListScatterIntoExistingList(
input_handle, tensor, indices, name=None
)
Each member of the TensorList corresponds to one row of the input tensor, specified by the given index (see tf.gather). input_handl... | |
doc_27450 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseReduceSumSparse
tf.raw_ops.SparseReduceSumSparse(
input_indices, input_values, input_shape, reduction_axes, keep_dims=False,
name=None
)
This Op takes a SparseTensor and is the sparse counterpart to tf.reduce_sum(). In contrast to SparseReduceS... | |
doc_27451 |
Insert x after this node in the list of nodes in the graph. Equvalent to self.next.prepend(x) Parameters
x (Node) – The node to put after this node. Must be a member of the same graph. | |
doc_27452 | Get the status of the file descriptor fd. Return a stat_result object. As of Python 3.3, this is equivalent to os.stat(fd). See also The stat() function. | |
doc_27453 | The django.contrib.sitemaps.GenericSitemap class allows you to create a sitemap by passing it a dictionary which has to contain at least a queryset entry. This queryset will be used to generate the items of the sitemap. It may also have a date_field entry that specifies a date field for objects retrieved from the query... | |
doc_27454 | Return the Charset instance associated with the message’s payload. This is a legacy method. On the EmailMessage class it always returns None. | |
doc_27455 |
Returns True if any of the elements of a evaluate to True. Refer to numpy.any for full documentation. See also numpy.any
equivalent function | |
doc_27456 |
Given a dictionary of key/value pairs, generates a fontconfig pattern string. | |
doc_27457 |
Return arrays with the results of pyfunc broadcast (vectorized) over args and kwargs not in excluded. | |
doc_27458 | See torch.nonzero() | |
doc_27459 | The address from which the last accepted connection came. If this is unavailable then it is None. | |
doc_27460 | A single interactive example, consisting of a Python statement and its expected output. The constructor arguments are used to initialize the attributes of the same names. Example defines the following attributes. They are initialized by the constructor, and should not be modified directly.
source
A string containin... | |
doc_27461 | Run the test suite. test_labels allows you to specify which tests to run and supports several formats (see DiscoverRunner.build_suite() for a list of supported formats). Deprecated since version 4.0: extra_tests is a list of extra TestCase instances to add to the suite that is executed by the test runner. These extra ... | |
doc_27462 | Default behaviour adds OK and Cancel buttons. Override for custom button layouts. | |
doc_27463 |
Partially fit underlying estimators Should be used when memory is inefficient to train all data. Chunks of data can be passed in several iteration. Parameters
X(sparse) array-like of shape (n_samples, n_features)
Data.
y(sparse) array-like of shape (n_samples,) or (n_samples, n_classes)
Multi-class targets.... | |
doc_27464 | class sklearn.feature_selection.SelectFpr(score_func=<function f_classif>, *, alpha=0.05) [source]
Filter: Select the pvalues below alpha based on a FPR test. FPR test stands for False Positive Rate test. It controls the total amount of false detections. Read more in the User Guide. Parameters
score_funccallable,... | |
doc_27465 |
Return the product of the values over the requested axis. Parameters
axis:{index (0), columns (1)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result.
level:int or level name, default None
If the axis is a MultiIndex (hierarchical), count a... | |
doc_27466 | See Migration guide for more details. tf.compat.v1.raw_ops.Unique
tf.raw_ops.Unique(
x, out_idx=tf.dtypes.int32, name=None
)
This operation returns a tensor y containing all of the unique elements of x sorted in the same order that they occur in x; x does not need to be sorted. This operation also returns a tens... | |
doc_27467 | Raised when some mailbox-related condition beyond the control of the program causes it to be unable to proceed, such as when failing to acquire a lock that another program already holds a lock, or when a uniquely-generated file name already exists. | |
doc_27468 | Deprecated since version 3.9: Deprecated in favor of headers. | |
doc_27469 |
Return the Hanning window. The Hanning window is a taper formed by using a weighted cosine. Parameters
Mint
Number of points in the output window. If zero or less, an empty array is returned. Returns
outndarray, shape(M,)
The window, with the maximum value normalized to one (the value one appears only i... | |
doc_27470 | Derived from BrokenExecutor (formerly RuntimeError), this exception class is raised when one of the workers of a ProcessPoolExecutor has terminated in a non-clean fashion (for example, if it was killed from the outside). New in version 3.3. | |
doc_27471 |
Alias for get_linestyle. | |
doc_27472 |
same as ‘feature_ahead()’ but if both features implied each other and keep the highest interest. Parameters
‘names’: sequence
sequence of CPU feature names in uppercase. Returns
list of CPU features sorted as-is ‘names’
Examples >>> self.feature_untied(["SSE2", "SSE3", "SSE41"])
["SSE2", "SSE3", "SSE41"]
... | |
doc_27473 |
Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parameters
module (nn.Module) – module containing the tensor to prune
name (str) – parameter name within module on which pruning will act.
amount (int or float) –... | |
doc_27474 | Open a gdbm database and return a gdbm object. The filename argument is the name of the database file. The optional flag argument can be:
Value Meaning
'r' Open existing database for reading only (default)
'w' Open existing database for reading and writing
'c' Open database for reading and writing, creating i... | |
doc_27475 |
Alias for set_linewidth. | |
doc_27476 | Token objects are returned by the ContextVar.set() method. They can be passed to the ContextVar.reset() method to revert the value of the variable to what it was before the corresponding set.
Token.var
A read-only property. Points to the ContextVar object that created the token.
Token.old_value
A read-only pr... | |
doc_27477 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayConcatV3
tf.raw_ops.TensorArrayConcatV3(
handle, flow_in, dtype, element_shape_except0=None, name=None
)
Takes T elements of shapes (n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)
and concatenates them into a Tensor ... | |
doc_27478 | 'DEFAULT_RENDERER_CLASSES': [
'rest_framework.renderers.JSONRenderer',
],
'DEFAULT_PARSER_CLASSES': [
'rest_framework.parsers.JSONParser',
]
}
Accessing settings If you need to access the values of REST framework's API settings in your project, you should use the api_settings object. Fo... | |
doc_27479 |
Alias for set_facecolor. | |
doc_27480 |
Bases: torch.distributions.distribution.Distribution Creates a Binomial distribution parameterized by total_count and either probs or logits (but not both). total_count must be broadcastable with probs/logits. Example: >>> m = Binomial(100, torch.tensor([0 , .2, .8, 1]))
>>> x = m.sample()
tensor([ 0., 22., 71.... | |
doc_27481 | Rotate the deque n steps to the right. If n is negative, rotate to the left. When the deque is not empty, rotating one step to the right is equivalent to d.appendleft(d.pop()), and rotating one step to the left is equivalent to d.append(d.popleft()). | |
doc_27482 | string.ascii_letters
The concatenation of the ascii_lowercase and ascii_uppercase constants described below. This value is not locale-dependent.
string.ascii_lowercase
The lowercase letters 'abcdefghijklmnopqrstuvwxyz'. This value is not locale-dependent and will not change.
string.ascii_uppercase
The upp... | |
doc_27483 |
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters
Xarray-like of shape (n_samples, n_features)
Test samples.
yarray-like of shap... | |
doc_27484 | If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised. Example: >>> s = input('--> ')
--> Monty Python's Flying Circus
>>>... | |
doc_27485 | A dictionary mapping suffixes into MIME types, contains custom overrides for the default system mappings. The mapping is used case-insensitively, and so should contain only lower-cased keys. Changed in version 3.9: This dictionary is no longer filled with the default system mappings, but only contains overrides. | |
doc_27486 | Protect an awaitable object from being cancelled. If aw is a coroutine it is automatically scheduled as a Task. The statement: res = await shield(something())
is equivalent to: res = await something()
except that if the coroutine containing it is cancelled, the Task running in something() is not cancelled. From the p... | |
doc_27487 | See Migration guide for more details. tf.compat.v1.raw_ops.SpaceToBatch
tf.raw_ops.SpaceToBatch(
input, paddings, block_size, name=None
)
This is a legacy version of the more general SpaceToBatchND. Zero-pads and then rearranges (permutes) blocks of spatial data into batch. More specifically, this op outputs a c... | |
doc_27488 | Return the Python representation of s (a str instance containing a JSON document). JSONDecodeError will be raised if the given JSON document is not valid. | |
doc_27489 | tf.experimental.numpy.split(
ary, indices_or_sections, axis=0
)
See the NumPy documentation for numpy.split. | |
doc_27490 | Look up the codec for the given encoding and return its decoder function. Raises a LookupError in case the encoding cannot be found. | |
doc_27491 | enum.IntEnum collection of ALERT_DESCRIPTION_* constants. New in version 3.6. | |
doc_27492 |
Format specified values of self and return them. Deprecated since version 1.2.0. Parameters
slicer:int, array-like
An indexer into self that specifies which values are used in the formatting process.
kwargs:dict
Options for specifying how the values should be formatted. These options include the following... | |
doc_27493 | Return the source code for the specified module. Raise ZipImportError if the module couldn’t be found, return None if the archive does contain the module, but has no source for it. | |
doc_27494 | Return a bytes array convertible to a human-readable description of the type of compression used in the audio file. For AIFF files, the returned value is b'not compressed'. | |
doc_27495 | The suffix to append to the auto-generated candidate template name. Default suffix is _detail. | |
doc_27496 | Iterates over all blueprints by the order they were registered. Changelog New in version 0.11. Return type
ValuesView[Blueprint] | |
doc_27497 |
Return the Axes box aspect, i.e. the ratio of height to width. The box aspect is None (i.e. chosen depending on the available figure space) unless explicitly specified. See also matplotlib.axes.Axes.set_box_aspect
for a description of box aspect. matplotlib.axes.Axes.set_aspect
for a description of aspect handli... | |
doc_27498 | tf.compat.v1.TFRecordReader(
name=None, options=None
)
See ReaderBase for supported methods.
Args
name A name for the operation (optional).
options A TFRecordOptions object (optional). Eager Compatibility Readers are not compatible with eager execution. Instead, please use tf.data to get data int... | |
doc_27499 | Convert the bytes-like object to a value. If no valid value is found, raise EOFError, ValueError or TypeError. Extra bytes in the input are ignored. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.