_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_4400 | The maximum number of processes the current process may create. | |
doc_4401 |
Set the offsets for the collection. Parameters
offsets(N, 2) or (2,) array-like | |
doc_4402 | See Migration guide for more details. tf.compat.v1.keras.layers.ActivityRegularization
tf.keras.layers.ActivityRegularization(
l1=0.0, l2=0.0, **kwargs
)
Arguments
l1 L1 regularization factor (positive float).
l2 L2 regularization factor (positive float). Input shape: Arbitrary. Use the keyword... | |
doc_4403 | Returns the ContentType instance uniquely identified by the given application label and model name. The primary purpose of this method is to allow ContentType objects to be referenced via a natural key during deserialization. | |
doc_4404 | Returns a tensor with the same size as input that is filled with random numbers from a uniform distribution on the interval [0,1)[0, 1) . torch.rand_like(input) is equivalent to torch.rand(input.size(), dtype=input.dtype, layout=input.layout, device=input.device). Parameters
input (Tensor) – the size of input will de... | |
doc_4405 |
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None | |
doc_4406 |
Evaluate a 3-D HermiteE series on the Cartesian product of x, y, and z. This function returns the values: \[p(a,b,c) = \sum_{i,j,k} c_{i,j,k} * He_i(a) * He_j(b) * He_k(c)\] where the points (a, b, c) consist of all triples formed by taking a from x, b from y, and c from z. The resulting points form a grid with x in... | |
doc_4407 | A Fault object encapsulates the content of an XML-RPC fault tag. Fault objects have the following attributes:
faultCode
A string indicating the fault type.
faultString
A string containing a diagnostic message associated with the fault. | |
doc_4408 | Return an iterator which yields the same values as glob() without actually storing them all simultaneously. Raises an auditing event glob.glob with arguments pathname, recursive. | |
doc_4409 |
Computes the gradient of current tensor w.r.t. graph leaves. The graph is differentiated using the chain rule. If the tensor is non-scalar (i.e. its data has more than one element) and requires gradient, the function additionally requires specifying gradient. It should be a tensor of matching type and location, that ... | |
doc_4410 | Try to set the current audio format to format—see getfmts() for a list. Returns the audio format that the device was set to, which may not be the requested format. May also be used to return the current audio format—do this by passing an “audio format” of AFMT_QUERY. | |
doc_4411 |
Find the coefficients of a polynomial with the given sequence of roots. Note This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in numpy.polynomial is preferred. A summary of the differences can be found in the transition guide. Returns the coefficients of the polynomial wh... | |
doc_4412 |
Set the color for masked values. | |
doc_4413 | False
The false value of the bool type. Assignments to False are illegal and raise a SyntaxError.
True
The true value of the bool type. Assignments to True are illegal and raise a SyntaxError.
None
The sole value of the type NoneType. None is frequently used to represent the absence of a value, as when de... | |
doc_4414 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedDepthwiseConv2D
tf.raw_ops.QuantizedDepthwiseConv2D(
input, filter, min_input, max_input, min_filter, max_filter, strides, padding,
out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1], name=None
)
Args
input A Tensor. Must be one of t... | |
doc_4415 | Return True if the terminal has insert- and delete-character capabilities. This function is included for historical reasons only, as all modern software terminal emulators have such capabilities. | |
doc_4416 | tf.compat.v1.arg_min(
input, dimension, output_type=tf.dtypes.int64, name=None
)
Note that in case of ties the identity of the return value is not guaranteed. Usage: import tensorflow as tf
a = [1, 10, 26.9, 2.8, 166.32, 62.3]
b = tf.math.argmin(input = a)
c = tf.keras.backend.eval(b)
# c = 0
# here a[0] = 1 which... | |
doc_4417 | See Migration guide for more details. tf.compat.v1.angle, tf.compat.v1.math.angle
tf.math.angle(
input, name=None
)
Given a tensor input, this operation returns a tensor of type float that is the argument of each element in input considered as a complex number. The elements in input are considered to be complex ... | |
doc_4418 |
Reload the style library. | |
doc_4419 |
Draw a glyph described by info to the reference point (ox, oy). | |
doc_4420 | (1, 2)
$ python -m pickletools x.pickle
0: \x80 PROTO 3
2: K BININT1 1
4: K BININT1 2
6: \x86 TUPLE2
7: q BINPUT 0
9: . STOP
highest protocol among opcodes = 2
Command line options
-a, --annotate
Annotate each line with a short opcode description.
-o, --outpu... | |
doc_4421 | Instances of this class represent loaded shared libraries. Functions in these libraries use the standard C calling convention, and are assumed to return int. On Windows creating a CDLL instance may fail even if the DLL name exists. When a dependent DLL of the loaded DLL is not found, a OSError error is raised with the ... | |
doc_4422 | This class works like AdminConfig, except it doesn’t call autodiscover().
default_site
A dotted import path to the default admin site’s class or to a callable that returns a site instance. Defaults to 'django.contrib.admin.sites.AdminSite'. See Overriding the default admin site for usage. | |
doc_4423 | See Migration guide for more details. tf.compat.v1.keras.layers.Average
tf.keras.layers.Average(
**kwargs
)
It takes as input a list of tensors, all of the same shape, and returns a single tensor (also of the same shape). Example:
x1 = np.ones((2, 2))
x2 = np.zeros((2, 2))
y = tf.keras.layers.Average()([x1, x2]... | |
doc_4424 | Receive data from the socket. The return value is a bytes object representing the data received. The maximum amount of data to be received at once is specified by bufsize. See the Unix manual page recv(2) for the meaning of the optional argument flags; it defaults to zero. Note For best match with hardware and network... | |
doc_4425 |
Alias for set_edgecolor. | |
doc_4426 | This exception is raised when a weak reference proxy, created by the weakref.proxy() function, is used to access an attribute of the referent after it has been garbage collected. For more information on weak references, see the weakref module. | |
doc_4427 | Sent with a preflight request to indicate which headers will be sent with the cross origin request. Set access_control_allow_headers on the response to indicate which headers are allowed. | |
doc_4428 | See Migration guide for more details. tf.compat.v1.nn.compute_average_loss
tf.nn.compute_average_loss(
per_example_loss, sample_weight=None, global_batch_size=None
)
Usage with distribution strategy and custom training loop: with strategy.scope():
def compute_loss(labels, predictions, sample_weight=None):
... | |
doc_4429 | Convert the color from RGB coordinates to HSV coordinates. | |
doc_4430 |
Compute a mask from polygon. Parameters
image_shapetuple of size 2.
The shape of the mask.
polygonarray_like.
The polygon coordinates of shape (N, 2) where N is the number of points. Returns
mask2-D ndarray of type ‘bool’.
The mask that corresponds to the input polygon. Notes This function does ... | |
doc_4431 | See Migration guide for more details. tf.compat.v1.raw_ops.CrossReplicaSum
tf.raw_ops.CrossReplicaSum(
input, group_assignment, name=None
)
Each instance supplies its own input. For example, suppose there are 8 TPU instances: [A, B, C, D, E, F, G, H]. Passing group_assignment=[[0,2,4,6],[1,3,5,7]] sets A, C, E, ... | |
doc_4432 |
Return the log-likelihood of each sample. See. “Pattern Recognition and Machine Learning” by C. Bishop, 12.2.1 p. 574 or http://www.miketipping.com/papers/met-mppca.pdf Parameters
Xarray-like of shape (n_samples, n_features)
The data. Returns
llndarray of shape (n_samples,)
Log-likelihood of each sample... | |
doc_4433 |
Get Floating division of dataframe and other, element-wise (binary operator truediv). Equivalent to dataframe / other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, rtruediv. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -... | |
doc_4434 | Register a Blueprint on this blueprint. Keyword arguments passed to this method will override the defaults set on the blueprint. New in version 2.0. Parameters
blueprint (flask.blueprints.Blueprint) –
options (Any) – Return type
None | |
doc_4435 | The FileEntry widget can be used to input a filename. The user can type in the filename manually. Alternatively, the user can press the button widget that sits next to the entry, which will bring up a file selection dialog. | |
doc_4436 | The string '0123456789'. | |
doc_4437 | Send data to the remote end-point of the socket. | |
doc_4438 | Returns a named tuple with paths to OpenSSL’s default cafile and capath. The paths are the same as used by SSLContext.set_default_verify_paths(). The return value is a named tuple DefaultVerifyPaths:
cafile - resolved path to cafile or None if the file doesn’t exist,
capath - resolved path to capath or None if the d... | |
doc_4439 | Return a complete message of byte data sent from the other end of the connection as a string. Blocks until there is something to receive. Raises EOFError if there is nothing left to receive and the other end has closed. If maxlength is specified and the message is longer than maxlength then OSError is raised and the co... | |
doc_4440 |
Return the AxisInfo for unit. unit is a tzinfo instance or None. The axis argument is required but not used. | |
doc_4441 | Accept: application/json
Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed
Content-Type: application/json
Content-Length: 42
{"detail": "Method 'DELETE' not allowed."}
Validation errors are handled slightly differently, and will include... | |
doc_4442 | See Migration guide for more details. tf.compat.v1.saved_model.loader.load
tf.compat.v1.saved_model.load(
sess, tags, export_dir, import_scope=None, **saver_kwargs
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: This function will only be available throu... | |
doc_4443 | Get statistics as a sorted list of Statistic instances grouped by key_type:
key_type description
'filename' filename
'lineno' filename and line number
'traceback' traceback If cumulative is True, cumulate size and count of memory blocks of all frames of the traceback of a trace, not only the most recent fra... | |
doc_4444 |
Close all open figures and set the Matplotlib backend. The argument is case-insensitive. Switching to an interactive backend is possible only if no event loop for another interactive backend has started. Switching to and from non-interactive backends is always possible. Parameters
newbackendstr
The name of the ... | |
doc_4445 |
Check that left and right Series are equal. Parameters
left:Series
right:Series
check_dtype:bool, default True
Whether to check the Series dtype is identical.
check_index_type:bool or {‘equiv’}, default ‘equiv’
Whether to check the Index class, dtype and inferred_type are identical.
check_series_type:... | |
doc_4446 | Input is used to get midi input from midi devices. Input(device_id) -> None Input(device_id, buffer_size) -> None
Parameters:
device_id (int) -- midi device id
buffer_size (int) -- (optional) the number of input events to be buffered close()
closes a midi stream, flushing any pending buffers. close(... | |
doc_4447 |
Register a new colormap. The colormap name can then be used as a string argument to any cmap parameter in Matplotlib. It is also available in pyplot.get_cmap. The colormap registry stores a copy of the given colormap, so that future changes to the original colormap instance do not affect the registered colormap. Thin... | |
doc_4448 | class sklearn.kernel_approximation.RBFSampler(*, gamma=1.0, n_components=100, random_state=None) [source]
Approximates feature map of an RBF kernel by Monte Carlo approximation of its Fourier transform. It implements a variant of Random Kitchen Sinks.[1] Read more in the User Guide. Parameters
gammafloat, default... | |
doc_4449 | Return struct.calcsize() for nPn{fmt}0n or, if gettotalrefcount exists, 2PnPn{fmt}0P. | |
doc_4450 | See Migration guide for more details. tf.compat.v1.config.experimental.ClusterDeviceFilters
tf.config.experimental.ClusterDeviceFilters()
Note: this is an experimental API and subject to changes.
Set device filters for selective jobs and tasks. For each remote worker, the device filters are a list of strings. When... | |
doc_4451 | See Migration guide for more details. tf.compat.v1.estimator.experimental.build_raw_supervised_input_receiver_fn
tf.estimator.experimental.build_raw_supervised_input_receiver_fn(
features, labels, default_batch_size=None
)
This function wraps tensor placeholders in a supervised_receiver_fn with the expectation t... | |
doc_4452 |
Set the left coordinate of the rectangle. | |
doc_4453 |
Bases: tornado.web.RequestHandler get()[source] | |
doc_4454 | Display the syntax error that just occurred. This does not display a stack trace because there isn’t one for syntax errors. If filename is given, it is stuffed into the exception instead of the default filename provided by Python’s parser, because it always uses '<string>' when reading from a string. The output is writ... | |
doc_4455 | New in Django 3.2. A translatable string used as a substitute for elided page numbers in the page range returned by get_elided_page_range(). Default is '…'. | |
doc_4456 | tf.compat.v1.tpu.replicate(
computation, inputs=None, infeed_queue=None, device_assignment=None, name=None,
maximum_shapes=None, padding_spec=None, xla_options=None
)
Example for the basic usage that inputs has static shape:
def computation(x):
x = x + 1
return tf.math.reduce_mean(x)
x = tf.convert_to_te... | |
doc_4457 | tf.compat.v1.nn.rnn_cell.GRUCell(
num_units, activation=None, reuse=None, kernel_initializer=None,
bias_initializer=None, name=None, dtype=None, **kwargs
)
Note that this cell is not optimized for performance. Please use tf.contrib.cudnn_rnn.CudnnGRU for better performance on GPU, or tf.contrib.rnn.GRUBlockCel... | |
doc_4458 |
Return the distutils distribution object for self. | |
doc_4459 |
Computes the paired euclidean distances between X and Y. Read more in the User Guide. Parameters
Xarray-like of shape (n_samples, n_features)
Yarray-like of shape (n_samples, n_features)
Returns
distancesndarray of shape (n_samples,) | |
doc_4460 | Eliminates all but the first element from every consecutive group of equivalent elements. Note This function is different from torch.unique() in the sense that this function only eliminates consecutive duplicate values. This semantics is similar to std::unique in C++. Parameters
input (Tensor) – the input tensor ... | |
doc_4461 | mmap.MADV_RANDOM
mmap.MADV_SEQUENTIAL
mmap.MADV_WILLNEED
mmap.MADV_DONTNEED
mmap.MADV_REMOVE
mmap.MADV_DONTFORK
mmap.MADV_DOFORK
mmap.MADV_HWPOISON
mmap.MADV_MERGEABLE
mmap.MADV_UNMERGEABLE
mmap.MADV_SOFT_OFFLINE
mmap.MADV_HUGEPAGE
mmap.MADV_NOHUGEPAGE
mmap.MADV_DONTDUMP
mmap.MADV_DODUMP
m... | |
doc_4462 |
Compute data precision matrix with the generative model. Equals the inverse of the covariance but computed with the matrix inversion lemma for efficiency. Returns
precisionarray, shape=(n_features, n_features)
Estimated precision of data. | |
doc_4463 | Revert control channel back to plaintext. This can be useful to take advantage of firewalls that know how to handle NAT with non-secure FTP without opening fixed ports. New in version 3.3. | |
doc_4464 |
Equivalent to shift without copying data. The shifted data will not include the dropped periods and the shifted axis will be smaller than the original. Deprecated since version 1.2.0: slice_shift is deprecated, use DataFrame/Series.shift instead. Parameters
periods:int
Number of periods to move, can be positi... | |
doc_4465 | See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNN
tf.raw_ops.CudnnRNN(
input, input_h, input_c, params, rnn_mode='lstm',
input_mode='linear_input', direction='unidirectional',
dropout=0, seed=0, seed2=0, is_training=True, name=None
)
Computes the RNN from the input and initial states, w... | |
doc_4466 |
Run score function on (X, y) and get the appropriate features. Parameters
Xarray-like of shape (n_samples, n_features)
The training input samples.
yarray-like of shape (n_samples,)
The target values (class labels in classification, real numbers in regression). Returns
selfobject | |
doc_4467 | class ast.USub
class ast.Not
class ast.Invert
Unary operator tokens. Not is the not keyword, Invert is the ~ operator. >>> print(ast.dump(ast.parse('not x', mode='eval'), indent=4))
Expression(
body=UnaryOp(
op=Not(),
operand=Name(id='x', ctx=Load()))) | |
doc_4468 | class sklearn.linear_model.ElasticNetCV(*, l1_ratio=0.5, eps=0.001, n_alphas=100, alphas=None, fit_intercept=True, normalize=False, precompute='auto', max_iter=1000, tol=0.0001, cv=None, copy_X=True, verbose=0, n_jobs=None, positive=False, random_state=None, selection='cyclic') [source]
Elastic Net model with iterati... | |
doc_4469 |
Return probability estimates for the test data X. Parameters
Xarray-like of shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’
Test samples. Returns
pndarray of shape (n_queries, n_classes), or a list of n_outputs
of such arrays if n_outputs > 1. The class probabilities ... | |
doc_4470 |
Scalar method identical to the corresponding array attribute. Please see ndarray.clip. | |
doc_4471 |
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also
set_picker, get_picker, pickable | |
doc_4472 |
Implement a function with checks for __torch_function__ overrides. See torch::autograd::handle_torch_function for the equivalent of this function in the C++ implementation. Parameters
public_api (function) – Function exposed by the public torch API originally called like public_api(*args, **kwargs) on which argum... | |
doc_4473 | Convert the array to an ordinary list with the same items. | |
doc_4474 |
Return whether x, y is in the bounding box, but not on its edge. | |
doc_4475 | New in version 3.2. Deprecated since version 3.3: It is now possible to use staticmethod with abstractmethod(), making this decorator redundant. A subclass of the built-in staticmethod(), indicating an abstract staticmethod. Otherwise it is similar to abstractmethod(). This special case is deprecated, as the static... | |
doc_4476 | An integer giving the value of the largest Unicode code point, i.e. 1114111 (0x10FFFF in hexadecimal). Changed in version 3.3: Before PEP 393, sys.maxunicode used to be either 0xFFFF or 0x10FFFF, depending on the configuration option that specified whether Unicode characters were stored as UCS-2 or UCS-4. | |
doc_4477 | codecs.BOM_BE
codecs.BOM_LE
codecs.BOM_UTF8
codecs.BOM_UTF16
codecs.BOM_UTF16_BE
codecs.BOM_UTF16_LE
codecs.BOM_UTF32
codecs.BOM_UTF32_BE
codecs.BOM_UTF32_LE
These constants define various byte sequences, being Unicode byte order marks (BOMs) for several encodings. They are used in UTF-16 and UTF-32 d... | |
doc_4478 | Updates the config like update() ignoring items with non-upper keys. Changelog New in version 0.11. Parameters
mapping (Optional[Mapping[str, Any]]) –
kwargs (Any) – Return type
bool | |
doc_4479 | tf.experimental.numpy.heaviside(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.heaviside. | |
doc_4480 |
Compute structure tensor using sum of squared differences. The (2-dimensional) structure tensor A is defined as: A = [Arr Arc]
[Arc Acc]
which is approximated by the weighted sum of squared differences in a local window around each pixel in the image. This formula can be extended to a larger number of dimensions... | |
doc_4481 |
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_4482 |
Compute the symmetric difference of two Index objects. Parameters
other:Index or array-like
result_name:str
sort:False or None, default None
Whether to sort the resulting index. By default, the values are attempted to be sorted, but any TypeError from incomparable elements is caught by pandas. None : Attem... | |
doc_4483 |
Return self//value. | |
doc_4484 |
Draw samples from a multinomial distribution. The multinomial distribution is a multivariate generalization of the binomial distribution. Take an experiment with one of p possible outcomes. An example of such an experiment is throwing a dice, where the outcome can be 1 through 6. Each sample drawn from the distributi... | |
doc_4485 |
related_query_name
The relation on the related object back to this object doesn’t exist by default. Setting related_query_name creates a relation from the related object back to this one. This allows querying and filtering from the related object. | |
doc_4486 | bytearray.decode(encoding="utf-8", errors="strict")
Return a string decoded from the given bytes. Default encoding is 'utf-8'. errors may be given to set a different error handling scheme. The default for errors is 'strict', meaning that encoding errors raise a UnicodeError. Other possible values are 'ignore', 'repla... | |
doc_4487 | Return a string representation suitable to be sent as HTTP headers. attrs and header are sent to each Morsel’s output() method. sep is used to join the headers together, and is by default the combination '\r\n' (CRLF). | |
doc_4488 | Registers a backward hook on the module. This function is deprecated in favor of nn.Module.register_full_backward_hook() and the behavior of this function will change in future versions. Returns
a handle that can be used to remove the added hook by calling handle.remove() Return type
torch.utils.hooks.RemovableHand... | |
doc_4489 |
Align the xlabels and ylabels of subplots with the same subplots row or column (respectively) if label alignment is being done automatically (i.e. the label position is not manually set). Alignment persists for draw events after this is called. Parameters
axslist of Axes
Optional list (or ndarray) of Axes to al... | |
doc_4490 | Required to create a subkey of a registry key. | |
doc_4491 |
Return a numpy.datetime64 object with ‘ns’ precision. | |
doc_4492 |
Function to reset the SobolEngine to base state. | |
doc_4493 | Format a datetime object or timestamp into an RFC 2822 date string for Set-Cookie expires. Deprecated since version 2.0: Will be removed in Werkzeug 2.1. Use http_date() instead. Parameters
expires (Optional[Union[datetime.datetime, datetime.date, int, float, time.struct_time]]) – Return type
str | |
doc_4494 | See Migration guide for more details. tf.compat.v1.CriticalSection
tf.CriticalSection(
name=None, shared_name=None, critical_section_def=None, import_scope=None
)
A CriticalSection object is a resource in the graph which executes subgraphs in serial order. A common example of a subgraph one may wish to run exclu... | |
doc_4495 |
Return the yaxis' minor tick labels, as a list of Text. | |
doc_4496 | tf.metrics.MeanAbsolutePercentageError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.MeanAbsolutePercentageError
tf.keras.metrics.MeanAbsolutePercentageError(
name='mean_absolute_percentage_error', dtype=None
)
Args
name (Optional) string name of the metri... | |
doc_4497 | Exception raised when a specified option is not found in the specified section. | |
doc_4498 |
Return an iterable of the ModuleDict keys. | |
doc_4499 |
Bases: matplotlib.backend_tools.ToolBase Send message with the current pointer position. This tool runs in the background reporting the position of the cursor. send_message(event)[source]
Call matplotlib.backend_managers.ToolManager.message_event.
set_figure(figure)[source] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.