_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_29600 | See Migration guide for more details. tf.compat.v1.raw_ops.PrintV2
tf.raw_ops.PrintV2(
input, output_stream='stderr', end='\n', name=None
)
Prints a string scalar to the desired output_stream.
Args
input A Tensor of type string. The string scalar to print.
output_stream An optional string. Default... | |
doc_29601 |
Dataset wrapping tensors. Each sample will be retrieved by indexing tensors along the first dimension. Parameters
*tensors (Tensor) – tensors that have the same size of the first dimension. | |
doc_29602 | Returns the (real) processor name, e.g. 'amdk6'. An empty string is returned if the value cannot be determined. Note that many platforms do not provide this information or simply return the same value as for machine(). NetBSD does this. | |
doc_29603 | Convert the header set into an HTTP header string. | |
doc_29604 | A generator can be annotated by the generic type Generator[YieldType, SendType, ReturnType]. For example: def echo_round() -> Generator[int, float, str]:
sent = yield 0
while sent >= 0:
sent = yield round(sent)
return 'Done'
Note that unlike many other generics in the typing module, the SendType of... | |
doc_29605 | Checks for an ASCII control character (in the range 0x00 to 0x1f or 0x7f). | |
doc_29606 |
Update offset of the children and return the extent of the box. Parameters
rendererRendererBase subclass
Returns
width
height
xdescent
ydescent
list of (xoffset, yoffset) pairs | |
doc_29607 | tf.compat.v1.losses.huber_loss(
labels, predictions, weights=1.0, delta=1.0, scope=None,
loss_collection=tf.GraphKeys.LOSSES, reduction=Reduction.SUM_BY_NONZERO_WEIGHTS
)
For each value x in error=labels-predictions, the following is calculated: 0.5 * x^2 if |x| <= d
0.5 * d^2 + d * (|x| - d) ... | |
doc_29608 | This method should be called from handlers when an exception is encountered during an emit() call. If the module-level attribute raiseExceptions is False, exceptions get silently ignored. This is what is mostly wanted for a logging system - most users will not care about errors in the logging system, they are more inte... | |
doc_29609 | See Migration guide for more details. tf.compat.v1.QueueBase, tf.compat.v1.io.QueueBase, tf.compat.v1.queue.QueueBase
tf.queue.QueueBase(
dtypes, shapes, names, queue_ref
)
A queue is a TensorFlow data structure that stores tensors across multiple steps, and exposes operations that enqueue and dequeue tensors. E... | |
doc_29610 | See Migration guide for more details. tf.compat.v1.raw_ops.ArgMin
tf.raw_ops.ArgMin(
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(inpu... | |
doc_29611 | Remove func from the list of functions to be run at interpreter shutdown. After calling unregister(), func is guaranteed not to be called when the interpreter shuts down, even if it was registered more than once. unregister() silently does nothing if func was not previously registered. | |
doc_29612 |
Returns the number of splitting iterations in the cross-validator Parameters
Xobject
Always ignored, exists for compatibility.
yobject
Always ignored, exists for compatibility.
groupsobject
Always ignored, exists for compatibility. Returns
n_splitsint
Returns the number of splitting iterations i... | |
doc_29613 | tf.experimental.numpy.round(
a, decimals=0
)
Unsupported arguments: out. See the NumPy documentation for numpy.round. | |
doc_29614 |
Alias for set_linewidth. | |
doc_29615 |
Transform a count matrix to a tf or tf-idf representation Parameters
Xsparse matrix of (n_samples, n_features)
a matrix of term/token counts
copybool, default=True
Whether to copy X and operate on the copy or perform in-place operations. Returns
vectorssparse matrix of shape (n_samples, n_features) | |
doc_29616 |
Return a list of AxesImages contained by the Axes. | |
doc_29617 | tf.compat.v1.report_uninitialized_variables(
var_list=None, name='report_uninitialized_variables'
)
When run, it returns a 1-D tensor containing the names of uninitialized variables if there are any, or an empty array if there are none.
Args
var_list List of Variable objects to check. Defaults to the valu... | |
doc_29618 |
Return the path of this patch. | |
doc_29619 | The DocTest object that was being run when the example failed. | |
doc_29620 | See Migration guide for more details. tf.compat.v1.image.adjust_brightness
tf.image.adjust_brightness(
image, delta
)
This is a convenience method that converts RGB images to float representation, adjusts their brightness, and then converts them back to the original data type. If several adjustments are chained,... | |
doc_29621 | See Migration guide for more details. tf.compat.v1.raw_ops.ReaderResetV2
tf.raw_ops.ReaderResetV2(
reader_handle, name=None
)
Args
reader_handle A Tensor of type resource. Handle to a Reader.
name A name for the operation (optional).
Returns The created Operation. | |
doc_29622 |
Definition of the core elements a generalized ufunc operates on. The signature determines how the dimensions of each input/output array are split into core and loop dimensions: Each dimension in the signature is matched to a dimension of the corresponding passed-in array, starting from the end of the shape tuple. Co... | |
doc_29623 | Return the message’s sub-content type. This is the subtype part of the string returned by get_content_type(). | |
doc_29624 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_29625 | Similar to escape(), but also prepares data to be used as an attribute value. The return value is a quoted version of data with any additional required replacements. quoteattr() will select a quote character based on the content of data, attempting to avoid encoding any quote characters in the string. If both single- a... | |
doc_29626 | Close the connection. This is called automatically when the connection is garbage collected. | |
doc_29627 |
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"
So what did that code do? First we imported the Flask class. An instance of this class will be our WSGI application. Next we create an instance of this class. The first argument is the name of the application’s module or pack... | |
doc_29628 |
Print loops of cyclic references in the given objects. It is often useful to pass in gc.garbage to find the cycles that are preventing some objects from being garbage collected. Parameters
objects
A list of objects to find cycles in. outstream
The stream for output.
show_progressbool
If True, print the numb... | |
doc_29629 |
Compute the ‘inverse’ of an N-dimensional array. The result is an inverse for a relative to the tensordot operation tensordot(a, b, ind), i. e., up to floating-point accuracy, tensordot(tensorinv(a), a, ind) is the “identity” tensor for the tensordot operation. Parameters
aarray_like
Tensor to ‘invert’. Its sha... | |
doc_29630 | This iterates over all the payloads in all the subparts of msg, returning the string payloads line-by-line. It skips over all the subpart headers, and it skips over any subpart with a payload that isn’t a Python string. This is somewhat equivalent to reading the flat text representation of the message from a file using... | |
doc_29631 |
Return an period of which this timestamp is an observation. Examples
>>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651')
>>> # Year end frequency
>>> ts.to_period(freq='Y')
Period('2020', 'A-DEC')
>>> # Month end frequency
>>> ts.to_period(freq='M')
Period('2020-03', 'M')
>>> # Weekly frequency
>>> ts.to_pe... | |
doc_29632 |
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned. | |
doc_29633 | Should return True if adding an object is permitted, False otherwise. | |
doc_29634 |
Set the url for the artist. Parameters
urlstr | |
doc_29635 |
When this colormap exists on a scalar mappable and colorbar_extend is not False, colorbar creation will pick up colorbar_extend as the default value for the extend keyword in the matplotlib.colorbar.Colorbar constructor. | |
doc_29636 | gets a copy of an image with an interior area removed chop(Surface, rect) -> Surface Extracts a portion of an image. All vertical and horizontal pixels surrounding the given rectangle area are removed. The corner areas (diagonal to the rect) are then brought together. (The original image is not altered by this operat... | |
doc_29637 |
Check if the object is a named tuple. Parameters
obj:The object to check
Returns
is_named_tuple:bool
Whether obj is a named tuple. Examples
>>> from collections import namedtuple
>>> Point = namedtuple("Point", ["x", "y"])
>>> p = Point(1, 2)
>>>
>>> is_named_tuple(p)
True
>>> is_named_tuple((1, 2))
... | |
doc_29638 | The delete_model method is given the HttpRequest and a model instance. Overriding this method allows doing pre- or post-delete operations. Call super().delete_model() to delete the object using Model.delete(). | |
doc_29639 | This method serves a similar purpose as __getnewargs_ex__(), but supports only positional arguments. It must return a tuple of arguments args which will be passed to the __new__() method upon unpickling. __getnewargs__() will not be called if __getnewargs_ex__() is defined. Changed in version 3.6: Before Python 3.6, _... | |
doc_29640 | The base class of all multiprocessing exceptions. | |
doc_29641 |
Return a tuple width, height, xdescent, ydescent of the box. | |
doc_29642 | The name of the file including the relative path from MEDIA_ROOT. | |
doc_29643 | Close the watcher. This method has to be called to ensure that underlying resources are cleaned-up. | |
doc_29644 | tf.compat.v1.nn.sigmoid_cross_entropy_with_logits(
_sentinel=None, labels=None, logits=None, name=None
)
Measures the probability error in discrete classification tasks in which each class is independent and not mutually exclusive. For instance, one could perform multilabel classification where a picture can conta... | |
doc_29645 |
Compute threshold value by Li’s iterative Minimum Cross Entropy method. Parameters
imagendarray
Input image.
tolerancefloat, optional
Finish the computation when the change in the threshold in an iteration is less than this value. By default, this is half the smallest difference between intensity values in ... | |
doc_29646 | class sklearn.feature_selection.SelectKBest(score_func=<function f_classif>, *, k=10) [source]
Select features according to the k highest scores. Read more in the User Guide. Parameters
score_funccallable, default=f_classif
Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues) or ... | |
doc_29647 |
Return the axis label as a Text instance.
Examples using matplotlib.axis.Axis.get_label
Parasite Simple | |
doc_29648 | Performs a batch matrix-matrix product of matrices stored in batch1 and batch2, with a reduced add step (all matrix multiplications get accumulated along the first dimension). input is added to the final result. batch1 and batch2 must be 3-D tensors each containing the same number of matrices. If batch1 is a (b×n×m)(b ... | |
doc_29649 | An abstract method for finding a loader for the specified module. Originally specified in PEP 302, this method was meant for use in sys.meta_path and in the path-based import subsystem. Changed in version 3.4: Returns None when called instead of raising NotImplementedError. | |
doc_29650 |
Number of elements in the array. Equal to np.prod(a.shape), i.e., the product of the array’s dimensions. Notes a.size returns a standard arbitrary precision Python integer. This may not be the case with other methods of obtaining the same value (like the suggested np.prod(a.shape), which returns an instance of np.int... | |
doc_29651 | Decorator for the minimum version when running test on FreeBSD. If the FreeBSD version is less than the minimum, raise unittest.SkipTest. | |
doc_29652 | Default widget: TimeInput
Empty value: None
Normalizes to: A Python datetime.time object. Validates that the given value is either a datetime.time or string formatted in a particular time format. Error message keys: required, invalid
Takes one optional argument:
input_formats
A list of formats used to attempt ... | |
doc_29653 |
Update the location and the size of the bbox. This method should be used when the position and size of the bbox needs to be updated before actually drawing the bbox. | |
doc_29654 |
Bases: matplotlib.backends.backend_agg.FigureCanvasAgg, matplotlib.backends._backend_tk.FigureCanvasTk blit(bbox=None)[source]
Blit the canvas in bbox (default entire canvas).
draw()[source]
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced beca... | |
doc_29655 |
Return the cached TexManager instance. | |
doc_29656 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_29657 | See Migration guide for more details. tf.compat.v1.nn.max_pool_v2
tf.nn.max_pool(
input, ksize, strides, padding, data_format=None, name=None
)
Args
input Tensor of rank N+2, of shape [batch_size] + input_spatial_shape + [num_channels] if data_format does not start with "NC" (default), or [batch_size, n... | |
doc_29658 | specialized image doubler scale2x(Surface, DestSurface = None) -> Surface This will return a new image that is double the size of the original. It uses the AdvanceMAME Scale2X algorithm which does a 'jaggie-less' scale of bitmap graphics. This really only has an effect on simple images with solid colors. On photograp... | |
doc_29659 | __enter__()
__exit__ View source
__exit__(
type_arg, value_arg, traceback_arg
) | |
doc_29660 | The WSGIRequest instance generated by the test handler that generated the response. | |
doc_29661 | class sklearn.linear_model.LassoLars(alpha=1.0, *, fit_intercept=True, verbose=False, normalize=True, precompute='auto', max_iter=500, eps=2.220446049250313e-16, copy_X=True, fit_path=True, positive=False, jitter=None, random_state=None) [source]
Lasso model fit with Least Angle Regression a.k.a. Lars It is a Linear ... | |
doc_29662 | 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_29663 | tf.compat.v1.initializers.he_normal(
seed=None
)
It draws samples from a truncated normal distribution centered on 0 with standard deviation (after truncation) given by stddev = sqrt(2 / fan_in) where fan_in is the number of input units in the weight tensor.
Arguments
seed A Python integer. Used to seed t... | |
doc_29664 | Specifies an email.message.Message-like class to parse HTTP headers. Typically, this is not overridden, and it defaults to http.client.HTTPMessage. | |
doc_29665 |
Generate missing values indicator for X. Parameters
X{array-like, sparse matrix}, shape (n_samples, n_features)
The input data to complete. Returns
Xt{ndarray or sparse matrix}, shape (n_samples, n_features) or (n_samples, n_features_with_missing)
The missing indicator for input data. The data type of X... | |
doc_29666 | The first call to add for a given key creates a counter associated with key in the store, initialized to amount. Subsequent calls to add with the same key increment the counter by the specified amount. Calling add() with a key that has already been set in the store by set() will result in an exception. Parameters
k... | |
doc_29667 | If this is set (not None), Python will write bytecode-cache .pyc files to (and read them from) a parallel directory tree rooted at this directory, rather than from __pycache__ directories in the source code tree. Any __pycache__ directories in the source code tree will be ignored and new .pyc files written within the p... | |
doc_29668 | Uses django.utils.ipv6 to check the validity of an IPv6 address. | |
doc_29669 | Returns the median of the values in input. Note The median is not unique for input tensors with an even number of elements. In this case the lower of the two medians is returned. To compute the mean of both medians, use torch.quantile() with q=0.5 instead. Warning This function produces deterministic (sub)gradients ... | |
doc_29670 | Stop the child. On POSIX OSs the method sends SIGTERM to the child. On Windows the Win32 API function TerminateProcess() is called to stop the child. | |
doc_29671 |
Find the shortest path through an n-d array from one side to another. Parameters
arrndarray of float64
reachint, optional
By default (reach = 1), the shortest path can only move one row up or down for every step it moves forward (i.e., the path gradient is limited to 1). reach defines the number of elements t... | |
doc_29672 | from flask import Flask
app = Flask(__name__)
...
asgi_app = WsgiToAsgi(app)
and then serving the asgi_app with the asgi server, e.g. using Hypercorn, $ hypercorn module:asgi_app | |
doc_29673 |
Set the antialiasing state for rendering. Parameters
aabool or list of bools | |
doc_29674 | Take two (non complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary arithmetic operators apply. For integers, the result is the same as (a // b, a % b). For floating point numbers the result is (q... | |
doc_29675 | BallTree for fast generalized N-point problems Read more in the User Guide. Parameters
Xarray-like of shape (n_samples, n_features)
n_samples is the number of points in the data set, and n_features is the dimension of the parameter space. Note: if X is a C-contiguous array of doubles then data will not be copied.... | |
doc_29676 |
Bases: matplotlib.transforms.Affine2DBase A mutable 2D affine transformation. Initialize an Affine transform from a 3x3 numpy float array: a c e
b d f
0 0 1
If matrix is None, initialize with the identity transform. __init__(matrix=None, **kwargs)[source]
Initialize an Affine transform from a 3x3 numpy float arr... | |
doc_29677 | Immediately unwinds the callback stack, invoking callbacks in the reverse order of registration. For any context managers and exit callbacks registered, the arguments passed in will indicate that no exception occurred. | |
doc_29678 | Return the password database entry for the given user name. | |
doc_29679 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_29680 | Returns a datetime that represents the current point in time. Exactly what’s returned depends on the value of USE_TZ: If USE_TZ is False, this will be a naive datetime (i.e. a datetime without an associated timezone) that represents the current time in the system’s local timezone. If USE_TZ is True, this will be an aw... | |
doc_29681 |
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_29682 |
Return the values (min, max) that are mapped to the colormap limits. | |
doc_29683 | Copy pixels into a 2d array array2d(Surface) -> array Copy the mapped (raw) pixels from a Surface into a 2D array. The bit depth of the surface will control the size of the integer values, and will work for any type of pixel format. This function will temporarily lock the Surface as pixels are copied (see the pygame.... | |
doc_29684 | tf.keras.constraints.min_max_norm Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.constraints.MinMaxNorm, tf.compat.v1.keras.constraints.min_max_norm
tf.keras.constraints.MinMaxNorm(
min_value=0.0, max_value=1.0, rate=1.0, axis=0
)
Constrains the weights incident to each hid... | |
doc_29685 |
Get the epoch used by dates. Returns
epochstr
String for the epoch (parsable by numpy.datetime64). | |
doc_29686 | Process and return data already in the queues (lazy). Raise EOFError if connection closed and no data available. Return b'' if no cooked data available otherwise. Do not block unless in the midst of an IAC sequence. | |
doc_29687 |
Return the unit for input to the transform used by __call__. | |
doc_29688 |
Alias for field number 0 | |
doc_29689 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedInstanceNorm
tf.raw_ops.QuantizedInstanceNorm(
x, x_min, x_max, output_range_given=False, given_y_min=0, given_y_max=0,
variance_epsilon=1e-05, min_separation=0.001, name=None
)
Args
x A Tensor. Must be one of the following types: q... | |
doc_29690 |
Implements distributed data parallelism that is based on torch.distributed package at the module level. This container parallelizes the application of the given module by splitting the input across the specified devices by chunking in the batch dimension. The module is replicated on each machine and each device, and ... | |
doc_29691 |
Divide a path into two segments at the point where inside(x, y) becomes False. | |
doc_29692 | See Migration guide for more details. tf.compat.v1.train.BytesList
Attributes
value repeated bytes value | |
doc_29693 | Sets the current object instance (self.object). | |
doc_29694 |
Draw samples from a Hypergeometric distribution. Samples are drawn from a hypergeometric distribution with specified parameters, ngood (ways to make a good selection), nbad (ways to make a bad selection), and nsample (number of items sampled, which is less than or equal to the sum ngood + nbad). Note New code should... | |
doc_29695 | Returns the system’s release version, e.g. '#3 on degas'. An empty string is returned if the value cannot be determined. | |
doc_29696 |
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_29697 |
lookup_name = 'hour' | |
doc_29698 |
Alias for set_edgecolor. | |
doc_29699 | sklearn.cluster.spectral_clustering(affinity, *, n_clusters=8, n_components=None, eigen_solver=None, random_state=None, n_init=10, eigen_tol=0.0, assign_labels='kmeans', verbose=False) [source]
Apply clustering to a projection of the normalized Laplacian. In practice Spectral Clustering is very useful when the struct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.