_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_17600 | The code object has a variable keyword parameter (**kwargs-like). | |
doc_17601 | Apply function of two arguments cumulatively to the items of iterable, from left to right, so as to reduce the iterable to a single value. For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates ((((1+2)+3)+4)+5). The left argument, x, is the accumulated value and the right argument, y, is the update value fr... | |
doc_17602 | os.CLD_KILLED
os.CLD_DUMPED
os.CLD_TRAPPED
os.CLD_STOPPED
os.CLD_CONTINUED
These are the possible values for si_code in the result returned by waitid(). Availability: Unix. New in version 3.3. Changed in version 3.9: Added CLD_KILLED and CLD_STOPPED values. | |
doc_17603 | See Migration guide for more details. tf.compat.v1.raw_ops.MapDataset
tf.raw_ops.MapDataset(
input_dataset, other_arguments, f, output_types, output_shapes,
use_inter_op_parallelism=True, preserve_cardinality=False, name=None
)
Args
input_dataset A Tensor of type variant.
other_arguments A lis... | |
doc_17604 | tf.compat.v1.test.StubOutForTesting()
Sample Usage: You want os.path.exists() to always return true during testing. stubs = StubOutForTesting() stubs.Set(os.path, 'exists', lambda x: 1) ... stubs.CleanUp() The above changes os.path.exists into a lambda that returns 1. Once the ... part of the code finishes, the CleanU... | |
doc_17605 | Return True if the argument is a quiet NaN, and False otherwise. | |
doc_17606 |
Set the Figure instance the artist belongs to. Parameters
figFigure | |
doc_17607 | This method is called from dispatch_exception() when stop_here() yields True. | |
doc_17608 | tf.nn.fractional_avg_pool(
value, pooling_ratio, pseudo_random=False, overlapping=False, seed=0, name=None
)
Fractional average pooling is similar to Fractional max pooling in the pooling region generation step. The only difference is that after pooling regions are generated, a mean operation is performed instead ... | |
doc_17609 |
Make a remote call to run func on worker to and return an RRef to the result value immediately. Worker to will be the owner of the returned RRef, and the worker calling remote is a user. The owner manages the global reference count of its RRef, and the owner RRef is only destructed when globally there are no living r... | |
doc_17610 | tf.compat.v1.keras.callbacks.TensorBoard(
log_dir='./logs', histogram_freq=0, batch_size=32, write_graph=True,
write_grads=False, write_images=False, embeddings_freq=0,
embeddings_layer_names=None, embeddings_metadata=None, embeddings_data=None,
update_freq='epoch', profile_batch=2
)
TensorBoard is a v... | |
doc_17611 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesCalculateBestFeatureSplitV2
tf.raw_ops.BoostedTreesCalculateBestFeatureSplitV2(
node_id_range, stats_summaries_list, split_types, candidate_feature_ids, l1, l2,
tree_complexity, min_node_weight, logits_dimension, name=None
)
The split inf... | |
doc_17612 | An abstract base class representing a path entry finder. Though it bears some similarities to MetaPathFinder, PathEntryFinder is meant for use only within the path-based import subsystem provided by PathFinder. This ABC is a subclass of Finder for compatibility reasons only. New in version 3.3.
find_spec(fullname, ... | |
doc_17613 |
Draw the path with updated gc. | |
doc_17614 |
Makes all future work submitted to the stream wait for an event. Parameters
event (Event) – an event to wait for. Note This is a wrapper around cudaStreamWaitEvent(): see CUDA Stream documentation for more info. This function returns without waiting for event: only future operations are affected. | |
doc_17615 | tf.compat.v1.boolean_mask(
tensor, mask, name='boolean_mask', axis=None
)
Numpy equivalent is tensor[mask]. In general, 0 < dim(mask) = K <= dim(tensor), and mask's shape must match the first K dimensions of tensor's shape. We then have: boolean_mask(tensor, mask)[i, j1,...,jd] = tensor[i1,...,iK,j1,...,jd] where ... | |
doc_17616 | Returns the GeoJSON representation of the geometry. Note that the result is not a complete GeoJSON structure but only the geometry key content of a GeoJSON structure. See also GeoJSON Serializer. | |
doc_17617 |
Draw samples from a noncentral chi-square distribution. The noncentral \(\chi^2\) distribution is a generalization of the \(\chi^2\) distribution. Note New code should use the noncentral_chisquare method of a default_rng() instance instead; please see the Quick Start. Parameters
dffloat or array_like of floats
... | |
doc_17618 |
Return bool array where boundaries between labeled regions are True. Parameters
label_imgarray of int or bool
An array in which different regions are labeled with either different integers or boolean values.
connectivityint in {1, …, label_img.ndim}, optional
A pixel is considered a boundary pixel if any of... | |
doc_17619 | Asserts that the strings xml1 and xml2 are not equal. The comparison is based on XML semantics. See assertXMLEqual() for details. Output in case of error can be customized with the msg argument. | |
doc_17620 |
Alias for set_linewidth. | |
doc_17621 |
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned. | |
doc_17622 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomNormalV2
tf.raw_ops.StatelessRandomNormalV2(
shape, key, counter, alg, dtype=tf.dtypes.float32, name=None
)
The generated values will have mean 0 and standard deviation 1. The outputs are a deterministic function of shape, key, counter and... | |
doc_17623 |
Set the artist's clip Bbox. Parameters
clipboxBbox | |
doc_17624 | See Migration guide for more details. tf.compat.v1.raw_ops.OrderedMapSize
tf.raw_ops.OrderedMapSize(
dtypes, capacity=0, memory_limit=0, container='',
shared_name='', name=None
)
Args
dtypes A list of tf.DTypes.
capacity An optional int that is >= 0. Defaults to 0.
memory_limit An option... | |
doc_17625 | See Migration guide for more details. tf.compat.v1.image.random_hue
tf.image.random_hue(
image, max_delta, seed=None
)
Equivalent to adjust_hue() but uses a delta randomly picked in the interval [-max_delta, max_delta). max_delta must be in the interval [0, 0.5]. Usage Example:
x = [[[1.0, 2.0, 3.0],
[4.0... | |
doc_17626 |
See torch.istft() | |
doc_17627 | See Migration guide for more details. tf.compat.v1.keras.preprocessing.text.hashing_trick
tf.keras.preprocessing.text.hashing_trick(
text, n, hash_function=None,
filters='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n',
lower=True, split=' '
)
Arguments
text Input text (string).
n Dimension of the h... | |
doc_17628 |
Return the width of the ellipse. | |
doc_17629 | Create a new directory at this given path. If mode is given, it is combined with the process’ umask value to determine the file mode and access flags. If the path already exists, FileExistsError is raised. If parents is true, any missing parents of this path are created as needed; they are created with the default perm... | |
doc_17630 | See Migration guide for more details. tf.compat.v1.raw_ops.Mul
tf.raw_ops.Mul(
x, y, name=None
)
Note: Multiply supports broadcasting. More about broadcasting here
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, uint8, int8, uint16, int16, int32, int64, complex64... | |
doc_17631 | sklearn.random_projection.johnson_lindenstrauss_min_dim(n_samples, *, eps=0.1) [source]
Find a ‘safe’ number of components to randomly project to. The distortion introduced by a random projection p only changes the distance between two points by a factor (1 +- eps) in an euclidean space with good probability. The pro... | |
doc_17632 |
Apply this transformation on the given array of values. Parameters
valuesarray
The input values as NumPy array of length input_dims or shape (N x input_dims). Returns
array
The output values as NumPy array of length input_dims or shape (N x output_dims), depending on the input. | |
doc_17633 |
Perform a swirl transformation. Parameters
imagendarray
Input image.
center(column, row) tuple or (2,) ndarray, optional
Center coordinate of transformation.
strengthfloat, optional
The amount of swirling applied.
radiusfloat, optional
The extent of the swirl in pixels. The effect dies out rapidly b... | |
doc_17634 | Class that uses the os.urandom() function for generating random numbers from sources provided by the operating system. Not available on all systems. Does not rely on software state, and sequences are not reproducible. Accordingly, the seed() method has no effect and is ignored. The getstate() and setstate() methods rai... | |
doc_17635 | Save the current terminal mode as the “program” mode, the mode when the running program is using curses. (Its counterpart is the “shell” mode, for when the program is not in curses.) Subsequent calls to reset_prog_mode() will restore this mode. | |
doc_17636 | If the whole string matches this regular expression, return a corresponding match object. Return None if the string does not match the pattern; note that this is different from a zero-length match. The optional pos and endpos parameters have the same meaning as for the search() method. >>> pattern = re.compile("o[gh]")... | |
doc_17637 | sklearn.metrics.mean_squared_error(y_true, y_pred, *, sample_weight=None, multioutput='uniform_average', squared=True) [source]
Mean squared error regression loss. Read more in the User Guide. Parameters
y_truearray-like of shape (n_samples,) or (n_samples, n_outputs)
Ground truth (correct) target values.
y_p... | |
doc_17638 | The text to put at the top of each admin page, as an <h1> (a string). By default, this is “Django administration”. | |
doc_17639 |
Compute pairwise correlation of columns, excluding NA/null values. Parameters
method:{‘pearson’, ‘kendall’, ‘spearman’} or callable
Method of correlation: pearson : standard correlation coefficient kendall : Kendall Tau correlation coefficient spearman : Spearman rank correlation
callable: callable with inpu... | |
doc_17640 | See Migration guide for more details. tf.compat.v1.raw_ops.QueueCloseV2
tf.raw_ops.QueueCloseV2(
handle, cancel_pending_enqueues=False, name=None
)
This operation signals that no more elements will be enqueued in the given queue. Subsequent Enqueue(Many) operations will fail. Subsequent Dequeue(Many) operations ... | |
doc_17641 | Convert binhex4 formatted ASCII data to binary, without doing RLE-decompression. The string should contain a complete number of binary bytes, or (in case of the last portion of the binhex4 data) have the remaining bits zero. Deprecated since version 3.9. | |
doc_17642 | See Migration guide for more details. tf.compat.v1.vectorized_map
tf.vectorized_map(
fn, elems, fallback_to_while_loop=True
)
This method works similar to tf.map_fn but is optimized to run much faster, possibly with a much larger memory footprint. The speedups are obtained by vectorization (see Auto-Vectorizing ... | |
doc_17643 | Asserts that when func is called with *args and **kwargs that num database queries are executed. If a "using" key is present in kwargs it is used as the database alias for which to check the number of queries: self.assertNumQueries(7, using='non_default_db')
If you wish to call a function with a using parameter you ca... | |
doc_17644 |
Randomly split a dataset into non-overlapping new datasets of given lengths. Optionally fix the generator for reproducible results, e.g.: >>> random_split(range(10), [3, 7], generator=torch.Generator().manual_seed(42))
Parameters
dataset (Dataset) – Dataset to be split
lengths (sequence) – lengths of splits to ... | |
doc_17645 |
Translates slice objects to concatenation along the second axis. This is short-hand for np.r_['-1,2,0', index expression], which is useful because of its common occurrence. In particular, arrays will be stacked along their last axis after being upgraded to at least 2-D with 1’s post-pended to the shape (column vector... | |
doc_17646 |
Temporarily adjust the figure so that only the specified area (bbox_inches) is saved. It modifies fig.bbox, fig.bbox_inches, fig.transFigure._boxout, and fig.patch. While the figure size changes, the scale of the original figure is conserved. A function which restores the original values are returned.
matplotlib.... | |
doc_17647 |
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters
bbool | |
doc_17648 |
tick_loc, tick_angle, tick_label, (optionally) tick_label | |
doc_17649 | Returns the log of summed exponentials of each row of the input tensor in the given dimension dim. The computation is numerically stabilized. For summation index jj given by dim and other indices ii , the result is logsumexp(x)i=log∑jexp(xij)\text{logsumexp}(x)_{i} = \log \sum_j \exp(x_{ij}) If keepdim is True, t... | |
doc_17650 |
Polynomial kernel approximation via Tensor Sketch. Implements Tensor Sketch, which approximates the feature map of the polynomial kernel: K(X, Y) = (gamma * <X, Y> + coef0)^degree
by efficiently computing a Count Sketch of the outer product of a vector with itself using Fast Fourier Transforms (FFT). Read more in th... | |
doc_17651 | Always False. This method makes an HttpResponse instance a stream-like object. | |
doc_17652 |
Applies the element-wise function Sigmoid(x)=11+exp(−x)\text{Sigmoid}(x) = \frac{1}{1 + \exp(-x)} See Sigmoid for more details. | |
doc_17653 |
Attributes
base Returns a copy of the calling offset object with n=1 and all other attributes equal.
cbday_roll Define default roll function to be called in apply method.
month_roll Define default roll function to be called in apply method.
offset Alias for self._offset.
calendar
freqstr
... | |
doc_17654 |
Do nothing, and raise a warning. Any locator class not supporting the set_params() function will call this. | |
doc_17655 |
Bases: matplotlib.ticker.LogFormatter Format values for log axis using exponent = log_base(value). | |
doc_17656 | See Migration guide for more details. tf.compat.v1.raw_ops.SdcaOptimizerV2
tf.raw_ops.SdcaOptimizerV2(
sparse_example_indices, sparse_feature_indices, sparse_feature_values,
dense_features, example_weights, example_labels, sparse_indices, sparse_weights,
dense_weights, example_state_data, loss_type, l1, l... | |
doc_17657 |
Other Members
ASSETS_DIRECTORY 'assets'
ASSETS_KEY 'saved_model_assets'
CLASSIFY_INPUTS 'inputs'
CLASSIFY_METHOD_NAME 'tensorflow/serving/classify'
CLASSIFY_OUTPUT_CLASSES 'classes'
CLASSIFY_OUTPUT_SCORES 'scores'
DEBUG_DIRECTORY 'debug'
DEBUG_INFO_FILENAME_PB 'saved_m... | |
doc_17658 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_17659 |
Extracts sliding local blocks from a batched input tensor. Warning Currently, only 4-D input tensors (batched image-like tensors) are supported. Warning More than one element of the unfolded tensor may refer to a single memory location. As a result, in-place operations (especially ones that are vectorized) may res... | |
doc_17660 | Token value for "~". | |
doc_17661 | numpy.int16
numpy.int32
numpy.int64
Aliases for the signed integer types (one of numpy.byte, numpy.short, numpy.intc, numpy.int_ and numpy.longlong) with the specified number of bits. Compatible with the C99 int8_t, int16_t, int32_t, and int64_t, respectively. | |
doc_17662 |
Return the product of the array elements over the given axis. Masked elements are set to 1 internally for computation. Refer to numpy.prod for full documentation. See also numpy.ndarray.prod
corresponding function for ndarrays numpy.prod
equivalent function Notes Arithmetic is modular when using integer types... | |
doc_17663 | Retrieves the specialized header associated with name from the registry (using default_class if name does not appear in the registry) and composes it with base_class to produce a class, calls the constructed class’s constructor, passing it the same argument list, and finally returns the class instance created thereby. | |
doc_17664 | Number of hard links. | |
doc_17665 | Exit code that means no error occurred. Availability: Unix. | |
doc_17666 | See Migration guide for more details. tf.compat.v1.raw_ops.Atanh
tf.raw_ops.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 input is -1, output will be -inf and if the input i... | |
doc_17667 | The walk() method is an all-purpose generator which can be used to iterate over all the parts and subparts of a message object tree, in depth-first traversal order. You will typically use walk() as the iterator in a for loop; each iteration returns the next subpart. Here’s an example that prints the MIME type of every ... | |
doc_17668 |
Parameters
urlslist of str or None
Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends. | |
doc_17669 | Stop monitoring the fd file descriptor for read availability. | |
doc_17670 | Metaclass for defining Abstract Base Classes (ABCs). Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as “virtual subclasses” – these and their descendants will be consider... | |
doc_17671 | Bind the args and kwds to the argument names of the Python function or method func, as if it was called with them. For bound methods, bind also the first argument (typically named self) to the associated instance. A dict is returned, mapping the argument names (including the names of the * and ** arguments, if any) to ... | |
doc_17672 |
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned. | |
doc_17673 | See Migration guide for more details. tf.compat.v1.keras.layers.SpatialDropout2D
tf.keras.layers.SpatialDropout2D(
rate, data_format=None, **kwargs
)
This version performs the same function as Dropout, however, it drops entire 2D feature maps instead of individual elements. If adjacent pixels within feature maps... | |
doc_17674 | A generic version of collections.abc.MutableSequence. Deprecated since version 3.9: collections.abc.MutableSequence now supports []. See PEP 585 and Generic Alias Type. | |
doc_17675 |
Return Integer division and modulo of series and other, element-wise (binary operator rdivmod). Equivalent to other divmod series, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters
other:Series or scalar value
fill_value:None or float value, default None (NaN)
... | |
doc_17676 | Returns a new tensor containing real values of the self tensor. The returned tensor and self share the same underlying storage. Warning real() is only supported for tensors with complex dtypes. Parameters
input (Tensor) – the input tensor. Example::
>>> x=torch.randn(4, dtype=torch.cfloat)
>>> x
tensor([(0.3100... | |
doc_17677 |
PLS regression PLSRegression is also known as PLS2 or PLS1, depending on the number of targets. Read more in the User Guide. New in version 0.8. Parameters
n_componentsint, default=2
Number of components to keep. Should be in [1, min(n_samples,
n_features, n_targets)].
scalebool, default=True
Whether to s... | |
doc_17678 | draw a line line(surface, x1, y1, x2, y2, color) -> None Draws a straight line ((x1, y1) to (x2, y2)) on the given surface. There are no endcaps.
Parameters:
surface (Surface) -- surface to draw on
x1 (int) -- x coordinate of one end of the line
y1 (int) -- y coordinate of one end of the line
x2 (int) -- x... | |
doc_17679 | Returns the number of samples that could be queued into the hardware buffer to be played without blocking. | |
doc_17680 |
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with an outward square bracket at its start. Parameters
widthAfloat, default: 1.0
Width of the bracket.
lengthAfloat, default: 0.2
Length of the bracket.
angleAfloat, default: 0 degrees
Orientation of the bracket, as a counterclockwise angle. 0 degree... | |
doc_17681 | Binary data in any form. | |
doc_17682 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_17683 |
Return threshold value based on the mean of grayscale values. Parameters
image(N, M[, …, P]) ndarray
Grayscale input image. Returns
thresholdfloat
Upper threshold value. All pixels with an intensity higher than this value are assumed to be foreground. References
1
C. A. Glasbey, “An analysis of ... | |
doc_17684 |
Add a scale in place. If sy is None, the same scale is applied in both the x- and y-directions. Returns self, so this method can easily be chained with more calls to rotate(), rotate_deg(), translate() and scale(). | |
doc_17685 |
Return the Artists contained by the table. | |
doc_17686 | tf.summary.write(
tag, tensor, step=None, metadata=None, name=None
)
This exists primarily to support the definition of type-specific summary ops like scalar() and image(), and is not intended for direct use unless defining a new type-specific summary op.
Args
tag string tag used to identify the summary (... | |
doc_17687 | See Migration guide for more details. tf.compat.v1.raw_ops.Unstage
tf.raw_ops.Unstage(
dtypes, capacity=0, memory_limit=0, container='',
shared_name='', name=None
)
The basic functionality is similar to dequeue with many fewer capabilities and options. This Op is optimized for performance.
Args
dtypes... | |
doc_17688 | Kill the subprocess. On POSIX systems, the function sends SIGKILL to the subprocess. On Windows, this method is an alias for terminate(). See also subprocess.Popen.kill(). | |
doc_17689 | tf.metrics.TopKCategoricalAccuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.TopKCategoricalAccuracy
tf.keras.metrics.TopKCategoricalAccuracy(
k=5, name='top_k_categorical_accuracy', dtype=None
)
Args
k (Optional) Number of top elements to look at for ... | |
doc_17690 | import torchvision
from torch.utils.tensorboard import SummaryWriter
from torchvision import datasets, transforms
# Writer will output to ./runs/ directory by default
writer = SummaryWriter()
transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.5,), (0.5,))])
trainset = datasets.MNIST('mnist... | |
doc_17691 | See torch.ormqr() | |
doc_17692 | Polls the set of registered file descriptors, and returns a possibly-empty list containing (fd, event) 2-tuples for the descriptors that have events or errors to report. fd is the file descriptor, and event is a bitmask with bits set for the reported events for that descriptor — POLLIN for waiting input, POLLOUT to ind... | |
doc_17693 | If the view was called with an HTTP method it doesn’t support, this method is called instead. The default implementation returns HttpResponseNotAllowed with a list of allowed methods in plain text. | |
doc_17694 |
Compute the inverse cosine of x. Return the “principal value” (for a description of this, see numpy.arccos) of the inverse cosine of x. For real x such that abs(x) <= 1, this is a real number in the closed interval \([0, \pi]\). Otherwise, the complex principle value is returned. Parameters
xarray_like or scalar
... | |
doc_17695 |
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters
**paramsdict
Estimator parameters. Returns... | |
doc_17696 |
Check whether the provided array or dtype is of a signed integer dtype. Unlike in is_any_int_dtype, timedelta64 instances will return False. The nullable Integer dtypes (e.g. pandas.Int64Dtype) are also considered as integer by this function. Parameters
arr_or_dtype:array-like or dtype
The array or dtype to che... | |
doc_17697 |
Bases: matplotlib.widgets.AxesWidget The base class for constructing Slider widgets. Not intended for direct usage. For the slider to remain responsive you must maintain a reference to it. disconnect(cid)[source]
Remove the observer with connection id cid. Parameters
cidint
Connection id of the observer to ... | |
doc_17698 | tf.compat.v1.get_session_handle(
data, name=None
)
This is EXPERIMENTAL and subject to change. Keep data "in-place" in the runtime and create a handle that can be used to retrieve data in a subsequent run(). Combined with get_session_tensor, we can keep a tensor produced in one run call in place, and use it as the... | |
doc_17699 | See torch.mvlgamma() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.