_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_15200 |
Set the JoinStyle for the collection (for all its elements). Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_15201 | skimage.color.combine_stains(stains, conv_matrix) Stain to RGB color space conversion.
skimage.color.convert_colorspace(arr, …) Convert an image array to a new color space.
skimage.color.deltaE_cie76(lab1, lab2) Euclidean distance between two points in Lab color space
skimage.color.deltaE_ciede2000(lab1, lab2[, …... | |
doc_15202 |
Set multiple properties at once. Supported properties are
Property Description
3d_properties unknown
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha array-like or scalar or None
animated bool
antialiased or aa or antialiaseds bool or... | |
doc_15203 |
Completeness metric of a cluster labeling given a ground truth. A clustering result satisfies completeness if all the data points that are members of a given class are elements of the same cluster. This metric is independent of the absolute values of the labels: a permutation of the class or cluster label values won’... | |
doc_15204 | When specified, an ellipsis marker (...) in the expected output can match any substring in the actual output. This includes substrings that span line boundaries, and empty substrings, so it’s best to keep usage of this simple. Complicated uses can lead to the same kinds of “oops, it matched too much!” surprises that .*... | |
doc_15205 | sklearn.metrics.homogeneity_score(labels_true, labels_pred) [source]
Homogeneity metric of a cluster labeling given a ground truth. A clustering result satisfies homogeneity if all of its clusters contain only data points which are members of a single class. This metric is independent of the absolute values of the la... | |
doc_15206 |
Transform the given bounding box. For smarter transforms including caching (a common requirement in Matplotlib), see TransformedBbox. | |
doc_15207 | The mathematical constant e, as a float. | |
doc_15208 | Computes the inverse of rfft2(). Equivalent to irfftn() but IFFTs only the last two dimensions by default. input is interpreted as a one-sided Hermitian signal in the Fourier domain, as produced by rfft2(). By the Hermitian property, the output will be real-valued. Note Some input frequencies must be real-valued to sa... | |
doc_15209 | Returns the product of all elements in the input tensor. Parameters
input (Tensor) – the input tensor. Keyword Arguments
dtype (torch.dtype, optional) – the desired data type of returned tensor. If specified, the input tensor is casted to dtype before the operation is performed. This is useful for preventing data t... | |
doc_15210 | See Migration guide for more details. tf.compat.v1.raw_ops.FakeQuantWithMinMaxVarsGradient
tf.raw_ops.FakeQuantWithMinMaxVarsGradient(
gradients, inputs, min, max, num_bits=8, narrow_range=False, name=None
)
Args
gradients A Tensor of type float32. Backpropagated gradients above the FakeQuantWithMinMaxV... | |
doc_15211 | Set UID bit. | |
doc_15212 | Very simple object that represents the If-Range header in parsed form. It will either have neither a etag or date or one of either but never both. Changelog New in version 0.7.
date
The date in parsed format or None.
etag
The etag parsed and unquoted. Ranges always operate on strong etags so the weakness in... | |
doc_15213 |
Set the normalization instance. Parameters
normNormalize or None
Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default. | |
doc_15214 |
Return the sum of the array elements over the given axis. Refer to numpy.sum for full documentation. See also numpy.sum
equivalent function | |
doc_15215 | See Migration guide for more details. tf.compat.v1.keras.experimental.SequenceFeatures
tf.keras.experimental.SequenceFeatures(
feature_columns, trainable=True, name=None, **kwargs
)
All feature_columns must be sequence dense columns with the same sequence_length. The output of this method can be fed into sequenc... | |
doc_15216 | String used as the terminator when writing a formatted record to a stream. Default value is '\n'. If you don’t want a newline termination, you can set the handler instance’s terminator attribute to the empty string. In earlier versions, the terminator was hardcoded as '\n'. New in version 3.2. | |
doc_15217 | The network (IPv4Network) this interface belongs to. >>> interface = IPv4Interface('192.0.2.5/24')
>>> interface.network
IPv4Network('192.0.2.0/24') | |
doc_15218 | Number of links to the inode. | |
doc_15219 | tf.summary.text(
name, data, step=None, description=None
)
Arguments
name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scopes.
data A UTF-8 string tensor value.
step Explicit int64-castable monotonic step value for this summary. If... | |
doc_15220 | tf.experimental.numpy.identity(
n, dtype=float
)
See the NumPy documentation for numpy.identity. | |
doc_15221 | Run the given subprocess.Popen process until completion and return stdout. | |
doc_15222 | tf.losses.Hinge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.Hinge
tf.keras.losses.Hinge(
reduction=losses_utils.ReductionV2.AUTO, name='hinge'
)
loss = maximum(1 - y_true * y_pred, 0) y_true values are expected to be -1 or 1. If binary (0 or 1) labels are provided... | |
doc_15223 |
Finds the K-neighbors of a point. Returns indices of and distances to the neighbors of each point. Parameters
Xarray-like, shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’, default=None
The query point or points. If not provided, neighbors of each indexed point are returned. I... | |
doc_15224 |
Add extension to configuration. Create and add an Extension instance to the ext_modules list. This method also takes the following optional keyword arguments that are passed on to the Extension constructor. Parameters
namestr
name of the extension
sourcesseq
list of the sources. The list of sources may cont... | |
doc_15225 |
Return the (min, max) data limits of this axis. | |
doc_15226 |
Create a scatter plot. Parameters
xs, ysarray-like
The data positions.
zsfloat or array-like, default: 0
The z-positions. Either an array of the same length as xs and ys or a single value to place all points in the same plane.
zdir{'x', 'y', 'z', '-x', '-y', '-z'}, default: 'z'
The axis direction for th... | |
doc_15227 | See Migration guide for more details. tf.compat.v1.raw_ops.LookupTableInsert
tf.raw_ops.LookupTableInsert(
table_handle, keys, values, name=None
)
The tensor keys must be of the same type as the keys of the table. The tensor values must be of the type of the table values.
Args
table_handle A Tensor of t... | |
doc_15228 | bytearray.join(iterable)
Return a bytes or bytearray object which is the concatenation of the binary data sequences in iterable. A TypeError will be raised if there are any values in iterable that are not bytes-like objects, including str objects. The separator between elements is the contents of the bytes or bytearr... | |
doc_15229 | unlock the Surface memory from pixel access unlock() -> None Unlock the Surface pixel data after it has been locked. The unlocked Surface can once again be drawn and managed by pygame. See the lock() documentation for more details. All pygame functions will automatically lock and unlock the Surface data as needed. If... | |
doc_15230 | Returns the current terminator for the channel. | |
doc_15231 |
Compute the pseudo-likelihood of X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Values of the visible layer. Must be all-boolean (not checked). Returns
pseudo_likelihoodndarray of shape (n_samples,)
Value of the pseudo-likelihood (proxy for likelihood). Notes This method... | |
doc_15232 | See Migration guide for more details. tf.compat.v1.saved_model.signature_def_utils.regression_signature_def
tf.compat.v1.saved_model.regression_signature_def(
examples, predictions
)
This function produces signatures intended for use with the TensorFlow Serving Regress API (tensorflow_serving/apis/prediction_ser... | |
doc_15233 |
Compute last of group values. Parameters
numeric_only:bool, default False
Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data.
min_count:int, default -1
The required number of valid values to perform the operation. If fewer than min_count non-NA valu... | |
doc_15234 |
Getter for the precision matrix. Returns
precision_array-like of shape (n_features, n_features)
The precision matrix associated to the current covariance object. | |
doc_15235 |
Align the xlabels of subplots in the same subplot column 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. If a label is on the bottom, it is aligned with labels on Axes that also have their label on the bottom and th... | |
doc_15236 | Remove items from the selection. Changed in version 3.6: items can be passed as separate arguments, not just as a single tuple. | |
doc_15237 | Create a mutually exclusive group. argparse will make sure that only one of the arguments in the mutually exclusive group was present on the command line: >>> parser = argparse.ArgumentParser(prog='PROG')
>>> group = parser.add_mutually_exclusive_group()
>>> group.add_argument('--foo', action='store_true')
>>> group.ad... | |
doc_15238 | Return the default value if the requested data doesn’t exist. If type is provided and is a callable it should convert the value, return it or raise a ValueError if that is not possible. In this case the function will return the default as if the value was not found: >>> d = Headers([('Content-Length', '42')])
>>> d.get... | |
doc_15239 | Computes the bitwise XOR of input and other. The input tensor must be of integral or Boolean types. For bool tensors, it computes the logical XOR. Parameters
input – the first input tensor
other – the second input tensor Keyword Arguments
out (Tensor, optional) – the output tensor. Example >>> torch.bitwise_x... | |
doc_15240 | Return new instance of the current font. | |
doc_15241 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConcat
tf.raw_ops.QuantizedConcat(
concat_dim, values, input_mins, input_maxes, name=None
)
Args
concat_dim A Tensor of type int32. 0-D. The dimension along which to concatenate. Must be in the range [0, rank(values)).
values A li... | |
doc_15242 | See Migration guide for more details. tf.compat.v1.raw_ops.QueueIsClosedV2
tf.raw_ops.QueueIsClosedV2(
handle, name=None
)
This operation returns true if the queue is closed and false if the queue is open.
Args
handle A Tensor of type resource. The handle to a queue.
name A name for the operation ... | |
doc_15243 | Return a copy of the string in which each character has been mapped through the given translation table. The table must be an object that implements indexing via __getitem__(), typically a mapping or sequence. When indexed by a Unicode ordinal (an integer), the table object can do any of the following: return a Unicode... | |
doc_15244 |
Return whether the artist uses clipping. | |
doc_15245 |
Bases: object A callable object which returns the position and size of a given AxesDivider cell. Parameters
axes_dividerAxesDivider
nx, nx1int
Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (bu... | |
doc_15246 | Defaults to True, meaning Django will create the appropriate database tables in migrate or as part of migrations and remove them as part of a flush management command. That is, Django manages the database tables’ lifecycles. If False, no database table creation, modification, or deletion operations will be performed fo... | |
doc_15247 |
Repeat elements of a ExtensionArray. Returns a new ExtensionArray where each element of the current ExtensionArray is repeated consecutively a given number of times. Parameters
repeats:int or array of ints
The number of repetitions for each element. This should be a non-negative integer. Repeating 0 times will ... | |
doc_15248 | Adjust the WSGI environ based on X-Forwarded- that proxies in front of the application may set.
X-Forwarded-For sets REMOTE_ADDR.
X-Forwarded-Proto sets wsgi.url_scheme.
X-Forwarded-Host sets HTTP_HOST, SERVER_NAME, and SERVER_PORT.
X-Forwarded-Port sets HTTP_HOST and SERVER_PORT.
X-Forwarded-Prefix sets SCRIPT_N... | |
doc_15249 |
Return whether any artists have been added to the Axes. This should not be used to determine whether the dataLim need to be updated, and may not actually be useful for anything. | |
doc_15250 | class typing.TextIO
class typing.BinaryIO
Generic type IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such as returned by open(). These types are also in the typing.io namespace. | |
doc_15251 | This function returns the wide character string starting at memory address address as a string. If size is specified, it is used as the number of characters of the string, otherwise the string is assumed to be zero-terminated. Raises an auditing event ctypes.wstring_at with arguments address, size. | |
doc_15252 |
Return a new sequence of frame information. | |
doc_15253 | Add a new rule or factory to the map and bind it. Requires that the rule is not bound to another map. Parameters
rulefactory (werkzeug.routing.RuleFactory) – a Rule or RuleFactory Return type
None | |
doc_15254 | ABC for asynchronous generator classes that implement the protocol defined in PEP 525 and PEP 492. New in version 3.6. | |
doc_15255 | Given a certificate as a DER-encoded blob of bytes, returns a PEM-encoded string version of the same certificate. | |
doc_15256 | bytearray.endswith(suffix[, start[, end]])
Return True if the binary data ends with the specified suffix, otherwise return False. suffix can also be a tuple of suffixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position. The suffix(es) to search for m... | |
doc_15257 | Shortcut for route() with methods=["GET"]. New in version 2.0. Parameters
rule (str) –
options (Any) – Return type
Callable | |
doc_15258 | Raises input to the power of exponent, elementwise, in double precision. If neither input is complex returns a torch.float64 tensor, and if one or more inputs is complex returns a torch.complex128 tensor. Note This function always computes in double precision, unlike torch.pow(), which implements more typical type pro... | |
doc_15259 |
Split strings around given separator/delimiter. Splits the string in the Series/Index from the beginning, at the specified delimiter string. Parameters
pat:str or compiled regex, optional
String or regular expression to split on. If not specified, split on whitespace.
n:int, default -1 (all)
Limit number of... | |
doc_15260 | This is called in the serve_forever() loop. This method can be overridden by subclasses or mixin classes to perform actions specific to a given service, such as cleanup actions. New in version 3.3. | |
doc_15261 |
Calculate Hu’s set of image moments (2D-only). Note that this set of moments is proofed to be translation, scale and rotation invariant. Parameters
nu(M, M) array
Normalized central image moments, where M must be >= 4. Returns
nu(7,) array
Hu’s set of image moments. References
1
M. K. Hu, “Visua... | |
doc_15262 |
Coherence (normalized cross spectral density) csd
Cross spectral density using Welch's average periodogram detrend
Remove the mean or best fit line from an array psd
Power spectral density using Welch's average periodogram specgram
Spectrogram (spectrum over segments of time) complex_spectrum
Return the comp... | |
doc_15263 |
Predict log probability for each possible outcome. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Array representing the data. Returns
yndarray of shape (n_samples, n_features)
Array with log prediction probabilities. | |
doc_15264 | Test examples associated with object f; for example, f may be a string, a module, a function, or a class object. A shallow copy of dictionary argument globs is used for the execution context. Optional argument name is used in failure messages, and defaults to "NoName". If optional argument verbose is true, output is ge... | |
doc_15265 | tf.io.decode_csv(
records, record_defaults, field_delim=',', use_quote_delim=True,
na_value='', select_cols=None, name=None
)
RFC 4180 format is expected for the CSV records. (https://tools.ietf.org/html/rfc4180) Note that we allow leading and trailing spaces with int or float field.
Args
records A Te... | |
doc_15266 |
Truncate series to length size. Reduce the series to length size by discarding the high degree terms. The value of size must be a positive integer. This can be useful in least squares where the coefficients of the high degree terms may be very small. Parameters
sizepositive int
The series is reduced to length s... | |
doc_15267 | See Migration guide for more details. tf.compat.v1.lite.Interpreter
tf.lite.Interpreter(
model_path=None, model_content=None, experimental_delegates=None,
num_threads=None
)
This makes the TensorFlow Lite interpreter accessible in Python. It is possible to use this interpreter in a multithreaded Python envir... | |
doc_15268 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchFFT2D
tf.raw_ops.BatchFFT2D(
input, name=None
)
Args
input A Tensor of type complex64.
name A name for the operation (optional).
Returns A Tensor of type complex64. | |
doc_15269 |
Compute the dot product between the Series and the columns of other. This method computes the dot product between the Series and another one, or the Series and each columns of a DataFrame, or the Series and each columns of an array. It can also be called using self @ other in Python >= 3.5. Parameters
other:Serie... | |
doc_15270 | Create a WSGIServer instance. server_address should be a (host,port) tuple, and RequestHandlerClass should be the subclass of http.server.BaseHTTPRequestHandler that will be used to process requests. You do not normally need to call this constructor, as the make_server() function can handle all the details for you. WSG... | |
doc_15271 |
Django provides a built-in class specifically for images. django.core.files.images.ImageFile inherits all the attributes and methods of File, and additionally provides the following:
width
Width of the image in pixels.
height
Height of the image in pixels. | |
doc_15272 | '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_15273 |
Calculate the exponential of all elements in the input array. Parameters
xarray_like
Input values.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated... | |
doc_15274 | This is the abstract base class for all policy classes. It provides default implementations for a couple of trivial methods, as well as the implementation of the immutability property, the clone() method, and the constructor semantics. The constructor of a policy class can be passed various keyword arguments. The argum... | |
doc_15275 | Boolean that should be set before handle_one_request() returns, indicating if another request may be expected, or if the connection should be shut down. | |
doc_15276 |
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass. | |
doc_15277 |
Index based on an underlying Categorical. CategoricalIndex, like Categorical, can only take on a limited, and usually fixed, number of possible values (categories). Also, like Categorical, it might have an order, but numerical operations (additions, divisions, …) are not possible. Parameters
data:array-like (1-di... | |
doc_15278 |
Returns the score on the given data, if the estimator has been refit. This uses the score defined by scoring where provided, and the best_estimator_.score method otherwise. Parameters
Xarray-like of shape (n_samples, n_features)
Input data, where n_samples is the number of samples and n_features is the number o... | |
doc_15279 | Exception raised when there is some error in the response data. | |
doc_15280 | tf.experimental.numpy.rad2deg(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.rad2deg. | |
doc_15281 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DWithBiasSignedSumAndReluAndRequantize
tf.raw_ops.QuantizedConv2DWithBiasSignedSumAndReluAndRequantize(
input, filter, bias, min_input, max_input, min_filter, max_filter,
min_freezed_output, max_freezed_output, summand, min_summand, max_... | |
doc_15282 | See Migration guide for more details. tf.compat.v1.nn.log_uniform_candidate_sampler, tf.compat.v1.random.log_uniform_candidate_sampler
tf.random.log_uniform_candidate_sampler(
true_classes, num_true, num_sampled, unique, range_max, seed=None, name=None
)
This operation randomly samples a tensor of sampled classe... | |
doc_15283 | See Migration guide for more details. tf.compat.v1.raw_ops.IteratorGetNextSync
tf.raw_ops.IteratorGetNextSync(
iterator, output_types, output_shapes, name=None
)
This operation is a synchronous version IteratorGetNext. It should only be used in situations where the iterator does not block the calling thread, or ... | |
doc_15284 |
factor is ignored if value is found in the dictionary | |
doc_15285 | Read from a file descriptor fd into a number of mutable bytes-like objects buffers. Transfer data into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. Return the total number of bytes actually read which can be less than the total capacity of all the object... | |
doc_15286 | Remove the old values for a key and add new ones. Note that the list you pass the values in will be shallow-copied before it is inserted in the dictionary. >>> d = MultiDict()
>>> d.setlist('foo', ['1', '2'])
>>> d['foo']
'1'
>>> d.getlist('foo')
['1', '2']
Parameters
key – The key for which the values are set.
n... | |
doc_15287 | Wide char variant of getche(), returning a Unicode value. | |
doc_15288 | See Migration guide for more details. tf.compat.v1.saved_model.utils.get_tensor_from_tensor_info
tf.compat.v1.saved_model.get_tensor_from_tensor_info(
tensor_info, graph=None, import_scope=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: This functio... | |
doc_15289 | Special type indicating an unconstrained type. Every type is compatible with Any.
Any is compatible with every type. | |
doc_15290 | the union of many rectangles, in place unionall_ip(Rect_sequence) -> None The same as the Rect.unionall() method, but operates in place. | |
doc_15291 |
Select a scale for the range from vmin to vmax. Subclasses should override this method to change locator behaviour. | |
doc_15292 |
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_15293 |
Calculate the rolling custom aggregation function. Parameters
func:function
Must produce a single value from an ndarray input if raw=True or a single value from a Series if raw=False. Can also accept a Numba JIT function with engine='numba' specified. Changed in version 1.0.0.
raw:bool, default False
Fal... | |
doc_15294 | Source line number (count of newlines seen so far plus one). | |
doc_15295 | Converts a float tensor to a quantized tensor with given scale and zero point. Parameters
input (Tensor) – float tensor to quantize
scale (float) – scale to apply in quantization formula
zero_point (int) – offset in integer value that maps to float zero
dtype (torch.dtype) – the desired data type of returned ten... | |
doc_15296 | The underlying object of the memoryview: >>> b = bytearray(b'xyz')
>>> m = memoryview(b)
>>> m.obj is b
True
New in version 3.3. | |
doc_15297 |
Generates indices to split data into training and test set. Parameters
Xarray-like of shape (n_samples, n_features)
Training data, where n_samples is the number of samples and n_features is the number of features.
yarray-like of shape (n_samples,)
The target variable for supervised learning problems.
grou... | |
doc_15298 | >>> big_end_buffer
bytearray(b'\\x00\\x01\\x03\\x02')
We might want to use an ndarray to access these integers. In that case, we can create an array around this memory, and tell numpy that there are two integers, and that they are 16 bit and big-endian: >>> import numpy as np
>>> big_end_arr = np.ndarray(shape=(2,),dt... | |
doc_15299 |
Observer that doesn’t do anything and just passes its configuration to the quantized module’s .from_float(). Primarily used for quantization to float16 which doesn’t require determining ranges. Parameters
dtype – Quantized data type
custom_op_name – (temporary) specify this observer for an operator that doesn’t ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.