_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_17100 | Called on listening channels (passive openers) when a connection has been established with a new remote endpoint that has issued a connect() call for the local endpoint. sock is a new socket object usable to send and receive data on the connection, and addr is the address bound to the socket on the other end of the con... | |
doc_17101 | Returns the ID of the parent of item, or ‘’ if item is at the top level of the hierarchy. | |
doc_17102 | See Migration guide for more details. tf.compat.v1.lite.RepresentativeDataset
tf.lite.RepresentativeDataset(
input_gen
)
A representative dataset that can be used to evaluate optimizations by the converter. E.g. converter can use these examples to estimate (min, max) ranges by calibrating the model on inputs. Th... | |
doc_17103 | Tries to remove anything that looks like an HTML tag from the string, that is anything contained within <>. Absolutely NO guarantee is provided about the resulting string being HTML safe. So NEVER mark safe the result of a strip_tag call without escaping it first, for example with escape(). For example: strip_tags(valu... | |
doc_17104 | tf.compat.v1.experimental.output_all_intermediates(
state
)
The "default" behavior to is to output all intermediates when using v2 control flow inside Keras models in graph mode (possibly inside Estimators). This is needed to support taking gradients of v2 control flow. In graph mode, Keras can sometimes freeze th... | |
doc_17105 |
Find the vertical edges of an image using the Farid transform. Parameters
image2-D array
Image to process.
mask2-D array, optional
An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. ... | |
doc_17106 | Handle an error of the given protocol. This will call the registered error handlers for the given protocol with the given arguments (which are protocol specific). The HTTP protocol is a special case which uses the HTTP response code to determine the specific error handler; refer to the http_error_<type>() methods of th... | |
doc_17107 |
Invalidate this TransformNode and triggers an invalidation of its ancestors. Should be called any time the transform changes. | |
doc_17108 | operator.__ilshift__(a, b)
a = ilshift(a, b) is equivalent to a <<= b. | |
doc_17109 | See Migration guide for more details. tf.compat.v1.raw_ops.Tile
tf.raw_ops.Tile(
input, multiples, name=None
)
This operation creates a new tensor by replicating input multiples times. The output tensor's i'th dimension has input.dims(i) * multiples[i] elements, and the values of input are replicated multiples[i... | |
doc_17110 |
Element-wise maximum of array elements. Compare two arrays and returns a new array containing the element-wise maxima. If one of the elements being compared is a NaN, then that element is returned. If both elements are NaNs then the first is returned. The latter distinction is important for complex NaNs, which are de... | |
doc_17111 | Integer expiry date in seconds since epoch, or None. See also the is_expired() method. | |
doc_17112 |
Predict using the linear model. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
Carray, shape (n_samples,)
Returns predicted values. | |
doc_17113 | Sets a new string as response. The value must be a string or bytes. If a string is set it’s encoded to the charset of the response (utf-8 by default). Changelog New in version 0.9. Parameters
value (Union[bytes, str]) – Return type
None | |
doc_17114 | test if the program is sharing input devices get_grab() -> bool Returns True when the input events are grabbed for this application. | |
doc_17115 | See Migration guide for more details. tf.compat.v1.broadcast_to
tf.broadcast_to(
input, shape, name=None
)
Broadcasting is the process of making arrays to have compatible shapes for arithmetic operations. Two shapes are compatible if for each dimension pair they are either equal or one of them is one. When tryin... | |
doc_17116 | This should not be reported to Python applications. | |
doc_17117 |
Calculate the ewm (exponential weighted moment) sum. Parameters
*args
For NumPy compatibility and will not have an effect on the result.
engine:str, default None
'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba.
None : Defaults... | |
doc_17118 | alias of torch.distributions.constraints._Stack | |
doc_17119 |
Scalar attribute identical to the corresponding array attribute. Please see ndarray.T. | |
doc_17120 | Represents a blueprint, a collection of routes and other app-related functions that can be registered on a real application later. A blueprint is an object that allows defining application functions without requiring an application object ahead of time. It uses the same decorators as Flask, but defers the need for an a... | |
doc_17121 |
Add a translation in place. Returns self, so this method can easily be chained with more calls to rotate(), rotate_deg(), translate() and scale(). | |
doc_17122 |
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters
valuesarray
The input v... | |
doc_17123 | Reserved for NCS compatibility. | |
doc_17124 | Asserts that a response produced the given status_code and that text appears in its content. If count is provided, text must occur exactly count times in the response. Set html to True to handle text as HTML. The comparison with the response content will be based on HTML semantics instead of character-by-character equa... | |
doc_17125 |
Return whether the artist uses clipping. | |
doc_17126 |
Compute Kitchen and Rosenfeld corner measure response image. The corner measure is calculated as follows: (imxx * imy**2 + imyy * imx**2 - 2 * imxy * imx * imy)
/ (imx**2 + imy**2)
Where imx and imy are the first and imxx, imxy, imyy the second derivatives. Parameters
imagendarray
Input image.
mode{‘cons... | |
doc_17127 | A read-only property. Characters that will be considered punctuation. Runs of punctuation characters will be returned as a single token. However, note that no semantic validity checking will be performed: for example, ‘>>>’ could be returned as a token, even though it may not be recognised as such by shells. New in ve... | |
doc_17128 | tf.compat.v1.saved_model.signature_def_utils.MethodNameUpdater(
export_dir
)
The MethodNameUpdater class provides the functionality to update the method name field in the signature_defs of the given SavedModel. For example, it can be used to replace the predict method_name to regress. Typical usages of the MethodN... | |
doc_17129 | os.MFD_ALLOW_SEALING
os.MFD_HUGETLB
os.MFD_HUGE_SHIFT
os.MFD_HUGE_MASK
os.MFD_HUGE_64KB
os.MFD_HUGE_512KB
os.MFD_HUGE_1MB
os.MFD_HUGE_2MB
os.MFD_HUGE_8MB
os.MFD_HUGE_16MB
os.MFD_HUGE_32MB
os.MFD_HUGE_256MB
os.MFD_HUGE_512MB
os.MFD_HUGE_1GB
os.MFD_HUGE_2GB
os.MFD_HUGE_16GB
These flags can... | |
doc_17130 | Called when the buffer was updated with the received data. nbytes is the total number of bytes that were written to the buffer. | |
doc_17131 | Process HTTPS error responses. The behavior is same as http_response(). | |
doc_17132 | Probability estimates. This method is only available for log loss and modified Huber loss. Multiclass probability estimates are derived from binary (one-vs.-rest) estimates by simple normalization, as recommended by Zadrozny and Elkan. Binary probability estimates for loss=”modified_huber” are given by (clip(decision_f... | |
doc_17133 |
Return the values (min, max) that are mapped to the colormap limits. | |
doc_17134 |
Alias for set_linestyle. | |
doc_17135 | If True, the field accepts Unicode letters in addition to ASCII letters. Defaults to False. | |
doc_17136 | This method returns an instance of StatsProfile, which contains a mapping of function names to instances of FunctionProfile. Each FunctionProfile instance holds information related to the function’s profile such as how long the function took to run, how many times it was called, etc… New in version 3.9: Added the foll... | |
doc_17137 |
Make a box plot from DataFrame columns. Make a box-and-whisker plot from DataFrame columns, optionally grouped by some other columns. A box plot is a method for graphically depicting groups of numerical data through their quartiles. The box extends from the Q1 to Q3 quartile values of the data, with a line at the med... | |
doc_17138 | tf.compat.v1.train.basic_train_loop(
supervisor, train_step_fn, args=None, kwargs=None, master=''
)
Calls train_step_fn in a loop to train a model. The function is called as: train_step_fn(session, *args, **kwargs)
It is passed a tf.compat.v1.Session in addition to args and kwargs. The function typically runs one... | |
doc_17139 |
Neighborhood Components Analysis Neighborhood Component Analysis (NCA) is a machine learning algorithm for metric learning. It learns a linear transformation in a supervised fashion to improve the classification accuracy of a stochastic nearest neighbors rule in the transformed space. Read more in the User Guide. Pa... | |
doc_17140 |
Write a DataFrame to the binary Feather format. Parameters
path:str, path object, file-like object
String, path object (implementing os.PathLike[str]), or file-like object implementing a binary write() function. If a string or a path, it will be used as Root Directory path when writing a partitioned dataset. *... | |
doc_17141 | Raises a ValidationError with a code of 'min_value' if value is less than limit_value, which may be a callable. | |
doc_17142 |
Interchange axes and swap values axes appropriately. Returns
y:same as input | |
doc_17143 |
Set the norm limits for image scaling. Parameters
vmin, vmaxfloat
The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument. | |
doc_17144 | Find all sprites that collide between two groups. groupcollide(group1, group2, dokill1, dokill2, collided = None) -> Sprite_dict This will find collisions between all the Sprites in two groups. Collision is determined by comparing the Sprite.rect attribute of each Sprite or by using the collided function if it is not... | |
doc_17145 |
Adds precision recall curve. Plotting a precision-recall curve lets you understand your model’s performance under different threshold settings. With this function, you provide the ground truth labeling (T/F) and prediction confidence (usually the output of your model) for each target. The TensorBoard UI will let you ... | |
doc_17146 | Return True if the argument has a negative sign and False otherwise. Note that zeros and NaNs can both carry signs. | |
doc_17147 | Get a character, returning a string instead of an integer, as getch() does. Function keys, keypad keys and other special keys return a multibyte string containing the key name. In no-delay mode, raise an exception if there is no input. | |
doc_17148 | A thread-safe store implementation based on an underlying hashmap. This store can be used within the same process (for example, by other threads), but cannot be used across processes. Example::
>>> import torch.distributed as dist
>>> store = dist.HashStore()
>>> # store can be used from other threads
>>> # Use any o... | |
doc_17149 | Proxy objects are instances of subclasses of BaseProxy.
_callmethod(methodname[, args[, kwds]])
Call and return the result of a method of the proxy’s referent. If proxy is a proxy whose referent is obj then the expression proxy._callmethod(methodname, args, kwds)
will evaluate the expression getattr(obj, methodnam... | |
doc_17150 | tf.compat.v1.train.get_global_step(
graph=None
)
The global step tensor must be an integer variable. We first try to find it in the collection GLOBAL_STEP, or by name global_step:0.
Args
graph The graph to find the global step in. If missing, use default graph.
Returns The global step variable, ... | |
doc_17151 | Polygon objects may be instantiated by passing in parameters that represent the rings of the polygon. The parameters must either be LinearRing instances, or a sequence that may be used to construct a LinearRing: >>> ext_coords = ((0, 0), (0, 1), (1, 1), (1, 0), (0, 0))
>>> int_coords = ((0.4, 0.4), (0.4, 0.6), (0.6, 0.... | |
doc_17152 |
Set whether the resize filter normalizes the weights. See help for imshow. Parameters
filternormbool | |
doc_17153 |
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_17154 | Don’t add Cookie2 header to requests (the presence of this header indicates to the server that we understand RFC 2965 cookies). | |
doc_17155 | Remove any common leading whitespace from every line in text. This can be used to make triple-quoted strings line up with the left edge of the display, while still presenting them in the source code in indented form. Note that tabs and spaces are both treated as whitespace, but they are not equal: the lines " hello" a... | |
doc_17156 |
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ... | |
doc_17157 |
Alias for set_antialiased. | |
doc_17158 | save an image to file (or file-like object) save(Surface, filename) -> None save(Surface, fileobj, namehint="") -> None This will save your Surface as either a BMP, TGA, PNG, or JPEG image. If the filename extension is unrecognized it will default to TGA. Both TGA, and BMP file formats create uncompressed files. You ... | |
doc_17159 | window.addnstr(y, x, str, n[, attr])
Paint at most n characters of the character string str at (y, x) with attributes attr, overwriting anything previously on the display. | |
doc_17160 | tf.compat.v1.train.Checkpoint(
**kwargs
)
Checkpoint's constructor accepts keyword arguments whose values are types that contain trackable state, such as tf.compat.v1.train.Optimizer implementations, tf.Variable, tf.keras.Layer implementations, or tf.keras.Model implementations. It saves these values with a checkp... | |
doc_17161 | Determines the type of sound data stored in a file based on the file header. The name of the file is given by filename. This function returns a namedtuple as described above on success, or None. Changed in version 3.5: Result changed from a tuple to a namedtuple. | |
doc_17162 |
Pseudo-Vandermonde matrix of given degrees. Returns the pseudo-Vandermonde matrix of degrees deg and sample points (x, y). The pseudo-Vandermonde matrix is defined by \[V[..., (deg[1] + 1)*i + j] = T_i(x) * T_j(y),\] where 0 <= i <= deg[0] and 0 <= j <= deg[1]. The leading indices of V index the points (x, y) and th... | |
doc_17163 |
Return numpy datetime64 format in nanoseconds. Examples
>>> ts = pd.Timestamp(2020, 3, 14, 15)
>>> ts.asm8
numpy.datetime64('2020-03-14T15:00:00.000000000') | |
doc_17164 | Update the full display Surface to the screen flip() -> None This will update the contents of the entire display. If your display mode is using the flags pygame.HWSURFACE and pygame.DOUBLEBUF, this will wait for a vertical retrace and swap the surfaces. If you are using a different type of display mode, it will simpl... | |
doc_17165 | os.POSIX_FADV_SEQUENTIAL
os.POSIX_FADV_RANDOM
os.POSIX_FADV_NOREUSE
os.POSIX_FADV_WILLNEED
os.POSIX_FADV_DONTNEED
Flags that can be used in advice in posix_fadvise() that specify the access pattern that is likely to be used. Availability: Unix. New in version 3.3. | |
doc_17166 | See Migration guide for more details. tf.compat.v1.raw_ops.PlaceholderWithDefault
tf.raw_ops.PlaceholderWithDefault(
input, shape, name=None
)
Args
input A Tensor. The default value to produce when output is not fed.
shape A tf.TensorShape or list of ints. The (possibly partial) shape of the tenso... | |
doc_17167 |
Bases: matplotlib.collections.LineCollection A collection of 3D lines. Parameters
segmentslist of array-like
A sequence of (line0, line1, line2), where: linen = (x0, y0), (x1, y1), ... (xm, ym)
or the equivalent numpy array with two columns. Each line can have a different number of segments.
linewidthsfloat ... | |
doc_17168 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_17169 | See Migration guide for more details. tf.compat.v1.raw_ops.MatrixSetDiagV3
tf.raw_ops.MatrixSetDiagV3(
input, diagonal, k, align='RIGHT_LEFT', name=None
)
Given input and diagonal, this operation returns a tensor with the same shape and values as input, except for the specified diagonals of the innermost matrice... | |
doc_17170 |
Attributes
id_to_string repeated IdToStringEntry id_to_string
log_entries repeated OpLogEntry log_entries Child Classes class IdToStringEntry | |
doc_17171 | Type Attribute Description
module __doc__ documentation string
__file__ filename (missing for built-in modules)
class __doc__ documentation string
__name__ name with which this class was defined
__qualname__ qualified name
__module__ name of module in which this class was defined
method __doc__ docum... | |
doc_17172 | Returns a partial view of input with the its diagonal elements with respect to dim1 and dim2 appended as a dimension at the end of the shape. The argument offset controls which diagonal to consider: If offset = 0, it is the main diagonal. If offset > 0, it is above the main diagonal. If offset < 0, it is below the mai... | |
doc_17173 | If flag is True, any change in the window image automatically causes the window to be refreshed; you no longer have to call refresh() yourself. However, it may degrade performance considerably, due to repeated calls to wrefresh. This option is disabled by default. | |
doc_17174 | tf.experimental.numpy.all(
a, axis=None, keepdims=None
)
Unsupported arguments: out. See the NumPy documentation for numpy.all. | |
doc_17175 | alias of werkzeug.datastructures.ImmutableList | |
doc_17176 | Return the stateth completion for text. If called for text that doesn’t include a period character ('.'), it will complete from names currently defined in __main__, builtins and keywords (as defined by the keyword module). If called for a dotted name, it will try to evaluate anything without obvious side-effects (funct... | |
doc_17177 |
Apply a CSS-styling function to the index or column headers, elementwise. Updates the HTML representation with the result. New in version 1.4.0. Parameters
func:function
func should take a scalar and return a string.
axis:{0, 1, “index”, “columns”}
The headers over which to apply the function.
level:int... | |
doc_17178 |
Force the mask to soft. Whether the mask of a masked array is hard or soft is determined by its hardmask property. soften_mask sets hardmask to False. See also ma.MaskedArray.hardmask | |
doc_17179 |
Return cumulative minimum over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative minimum. Parameters
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
The index or the name of the axis. 0 is equivalent to None or ‘index’.
skipna:bool, default True
Exclude NA/n... | |
doc_17180 | Report that the given example failed. This method is provided to allow subclasses of DocTestRunner to customize their output; it should not be called directly. example is the example about to be processed. got is the actual output from the example. test is the test containing example. out is the output function that wa... | |
doc_17181 |
Return whether the artist is animated. | |
doc_17182 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_17183 | tf.strings.to_hash_bucket(
input, num_buckets, name=None
)
The hash function is deterministic on the content of the string within the process. Note that the hash function may change from time to time. This functionality will be deprecated and it's recommended to use tf.strings.to_hash_bucket_fast() or tf.strings.t... | |
doc_17184 | Acts just like HttpResponse but uses a 500 status code. | |
doc_17185 | A float indicating the timeout to use for all RPCs. If an RPC does not complete in this timeframe, it will complete with an exception indicating that it has timed out. | |
doc_17186 | See Migration guide for more details. tf.compat.v1.raw_ops.BarrierTakeMany
tf.raw_ops.BarrierTakeMany(
handle, num_elements, component_types, allow_small_batch=False,
wait_for_incomplete=False, timeout_ms=-1, name=None
)
This operation concatenates completed-element component tensors along the 0th dimension ... | |
doc_17187 | Feed some text to the parser. It is processed insofar as it consists of complete elements; incomplete data is buffered until more data is fed or close() is called. data must be str. | |
doc_17188 | bisect.bisect(a, x, lo=0, hi=len(a))
Similar to bisect_left(), but returns an insertion point which comes after (to the right of) any existing entries of x in a. The returned insertion point i partitions the array a into two halves so that all(val <= x for val in a[lo:i]) for the left side and all(val > x for val in ... | |
doc_17189 | Return a tuple (address, length) giving the current memory address and the length in elements of the buffer used to hold array’s contents. The size of the memory buffer in bytes can be computed as array.buffer_info()[1] *
array.itemsize. This is occasionally useful when working with low-level (and inherently unsafe) I/... | |
doc_17190 | Return an iterator of the collapsed IPv4Network or IPv6Network objects. addresses is an iterator of IPv4Network or IPv6Network objects. A TypeError is raised if addresses contains mixed version objects. >>> [ipaddr for ipaddr in
... ipaddress.collapse_addresses([ipaddress.IPv4Network('192.0.2.0/25'),
... ipaddress.IPv4... | |
doc_17191 | The type for cell objects: such objects are used as containers for a function’s free variables. New in version 3.8. | |
doc_17192 | tf.experimental.numpy.concatenate(
arys, axis=0
)
See the NumPy documentation for numpy.concatenate. | |
doc_17193 | Like HttpResponse, but uses a 405 status code. The first argument to the constructor is required: a list of permitted methods (e.g. ['GET', 'POST']). | |
doc_17194 | See Migration guide for more details. tf.compat.v1.train.queue_runner.start_queue_runners
tf.compat.v1.train.start_queue_runners(
sess=None, coord=None, daemon=True, start=True,
collection=tf.GraphKeys.QUEUE_RUNNERS
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions ... | |
doc_17195 |
Mask the array x where the data are exactly equal to value. This function is similar to masked_values, but only suitable for object arrays: for floating point, use masked_values instead. Parameters
xarray_like
Array to mask
valueobject
Comparison value
copy{True, False}, optional
Whether to return a cop... | |
doc_17196 | New in Django 4.0. A hook for customizing the keyword arguments passed to the constructor of a formset. For example, to pass request to formset forms: class MyModelAdmin(admin.ModelAdmin):
def get_formset_kwargs(self, request, obj, inline, prefix):
return {
**super().get_formset_kwargs(request... | |
doc_17197 |
Return the values (min, max) that are mapped to the colormap limits. | |
doc_17198 | Returns a new tensor with each of the elements of input converted from angles in radians to degrees. Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> a = torch.tensor([[3.142, -3.142], [6.283, -6.283], [1.570, -1.570]])
>>> torch.rad2deg(a)
t... | |
doc_17199 | Return an iterator for the week day numbers that will be used for one week. The first value from the iterator will be the same as the value of the firstweekday property. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.