_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_27000 |
Draw the math text using matplotlib.mathtext. | |
doc_27001 |
Call decision_function on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports decision_function. Parameters
Xindexable, length n_samples
Must fulfill the input assumptions of the underlying estimator. | |
doc_27002 | See Migration guide for more details. tf.compat.v1.nn.scale_regularization_loss
tf.nn.scale_regularization_loss(
regularization_loss
)
Usage with distribution strategy and custom training loop: with strategy.scope():
def compute_loss(self, label, predictions):
per_example_loss = tf.keras.losses.sparse_cate... | |
doc_27003 |
Create a new figure manager instance. | |
doc_27004 |
Return the group id. | |
doc_27005 | Pretend the whole window has been changed, for purposes of drawing optimizations. | |
doc_27006 | See torch.mul(). | |
doc_27007 | This signal is sent right before the response is sent to the client. It is passed the response to be sent named response. Example subscriber: def log_response(sender, response, **extra):
sender.logger.debug('Request context is about to close down. '
'Response: %s', response)
from flask imp... | |
doc_27008 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.Hashing
tf.keras.layers.experimental.preprocessing.Hashing(
num_bins, salt=None, name=None, **kwargs
)
This layer transforms single or multiple categorical inputs to hashed output. It converts a sequence of int or string t... | |
doc_27009 | Return the higher-level protocol that was selected during the TLS/SSL handshake. If SSLContext.set_npn_protocols() was not called, or if the other party does not support NPN, or if the handshake has not yet happened, this will return None. New in version 3.3. | |
doc_27010 |
Bases: skimage.viewer.viewers.core.ImageViewer Viewer for displaying image collections. Select the displayed frame of the image collection using the slider or with the following keyboard shortcuts: left/right arrows
Previous/next image in collection. number keys, 0–9
0% to 90% of collection. For example, “5” goes... | |
doc_27011 | Create a pipe with flags set atomically. flags can be constructed by ORing together one or more of these values: O_NONBLOCK, O_CLOEXEC. Return a pair of file descriptors (r, w) usable for reading and writing, respectively. Availability: some flavors of Unix. New in version 3.3. | |
doc_27012 | os.O_RSYNC
os.O_SYNC
os.O_NDELAY
os.O_NONBLOCK
os.O_NOCTTY
os.O_CLOEXEC
The above constants are only available on Unix. Changed in version 3.3: Add O_CLOEXEC constant. | |
doc_27013 |
Return the clipping behavior. See set_annotation_clip for the meaning of the return value. | |
doc_27014 | Convert the color from RGB coordinates to HLS coordinates. | |
doc_27015 | See Migration guide for more details. tf.compat.v1.raw_ops.OptimizeDatasetV2
tf.raw_ops.OptimizeDatasetV2(
input_dataset, optimizations_enabled, optimizations_disabled,
optimizations_default, output_types, output_shapes, optimization_configs=[],
name=None
)
Creates a dataset by applying related optimizat... | |
doc_27016 |
Abstract base class for classes used to find the triangles of a Triangulation in which (x, y) points lie. Rather than instantiate an object of a class derived from TriFinder, it is usually better to use the function Triangulation.get_trifinder. Derived classes implement __call__(x, y) where x and y are array-like poi... | |
doc_27017 |
Set halfrange to max(abs(A-vcenter)), then set vmin and vmax. | |
doc_27018 | Enter the debugger at the calling stack frame. This is useful to hard-code a breakpoint at a given point in a program, even if the code is not otherwise being debugged (e.g. when an assertion fails). If given, header is printed to the console just before debugging begins. Changed in version 3.7: The keyword-only argum... | |
doc_27019 |
Return the sizes ('areas') of the elements in the collection. Returns
array
The 'area' of each element. | |
doc_27020 |
Add meshes or 3D point clouds to TensorBoard. The visualization is based on Three.js, so it allows users to interact with the rendered object. Besides the basic definitions such as vertices, faces, users can further provide camera parameter, lighting condition, etc. Please check https://threejs.org/docs/index.html#ma... | |
doc_27021 | Returns a GEOSGeometry representing all the points in this geometry and the other. | |
doc_27022 | See Migration guide for more details. tf.compat.v1.raw_ops.Squeeze
tf.raw_ops.Squeeze(
input, axis=[], name=None
)
Given a tensor input, this operation returns a tensor of the same type with all dimensions of size 1 removed. If you don't want to remove all size 1 dimensions, you can remove specific size 1 dimens... | |
doc_27023 |
Alias for is_monotonic. | |
doc_27024 | skimage.metrics.adapted_rand_error([…]) Compute Adapted Rand error as defined by the SNEMI3D contest.
skimage.metrics.contingency_table(im_true, …) Return the contingency table for all regions in matched segmentations.
skimage.metrics.hausdorff_distance(image0, …) Calculate the Hausdorff distance between nonzero el... | |
doc_27025 | ArrayLike: objects that can be converted to arrays
DTypeLike: objects that can be converted to dtypes Mypy plugin New in version 1.21. A mypy plugin for managing a number of platform-specific annotations. Its functionality can be split into three distinct parts: Assigning the (platform-dependent) precisions of ce... | |
doc_27026 | Validates whether the password is not entirely numeric. | |
doc_27027 | Return True if there is a Content-Disposition header and its (case insensitive) value is attachment, False otherwise. Changed in version 3.4.2: is_attachment is now a method instead of a property, for consistency with is_multipart(). | |
doc_27028 |
Extension array for string data in a pyarrow.ChunkedArray. New in version 1.2.0. Warning ArrowStringArray is considered experimental. The implementation and parts of the API may change without warning. Parameters
values:pyarrow.Array or pyarrow.ChunkedArray
The array of data. See also array
The recom... | |
doc_27029 |
Sparse coding Each row of the result is the solution to a sparse coding problem. The goal is to find a sparse array code such that: X ~= code * dictionary
Read more in the User Guide. Parameters
Xndarray of shape (n_samples, n_features)
Data matrix.
dictionaryndarray of shape (n_components, n_features)
The... | |
doc_27030 |
Dot-Product kernel. The DotProduct kernel is non-stationary and can be obtained from linear regression by putting \(N(0, 1)\) priors on the coefficients of \(x_d (d = 1, . . . , D)\) and a prior of \(N(0, \sigma_0^2)\) on the bias. The DotProduct kernel is invariant to a rotation of the coordinates about the origin, ... | |
doc_27031 |
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event. | |
doc_27032 |
Checkerboard image. Checkerboards are often used in image calibration, since the corner-points are easy to locate. Because of the many parallel edges, they also visualise distortions particularly well. Returns
checkerboard(200, 200) uint8 ndarray
Checkerboard image. | |
doc_27033 |
Computes and returns a pruned version of input tensor t according to the pruning rule specified in compute_mask(). Parameters
t (torch.Tensor) – tensor to prune (of same dimensions as default_mask).
importance_scores (torch.Tensor) – tensor of importance scores (of same shape as t) used to compute mask for pruni... | |
doc_27034 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseCrossHashed
tf.raw_ops.SparseCrossHashed(
indices, values, shapes, dense_inputs, num_buckets, strong_hash, salt, name=None
)
The op takes two lists, one of 2D SparseTensor and one of 2D Tensor, each representing features of one feature column. It o... | |
doc_27035 | codeop.compile_command(source, filename="<input>", symbol="single")
Tries to compile source, which should be a string of Python code and return a code object if source is valid Python code. In that case, the filename attribute of the code object will be filename, which defaults to '<input>'. Returns None if source is... | |
doc_27036 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalAutoShardDataset
tf.raw_ops.ExperimentalAutoShardDataset(
input_dataset, num_workers, index, output_types, output_shapes,
auto_shard_policy=0, name=None
)
Creates a dataset that shards the input dataset by num_workers, returning a sharded... | |
doc_27037 |
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy. | |
doc_27038 | Test that two dictionaries are equal. If not, an error message is constructed that shows the differences in the dictionaries. This method will be used by default to compare dictionaries in calls to assertEqual(). New in version 3.1. | |
doc_27039 |
Greek coins from Pompeii. This image shows several coins outlined against a gray background. It is especially useful in, e.g. segmentation tests, where individual objects need to be identified against a background. The background shares enough grey levels with the coins that a simple segmentation is not sufficient. ... | |
doc_27040 | Set the key, value and coded_value attributes. | |
doc_27041 | See Migration guide for more details. tf.compat.v1.image.random_saturation
tf.image.random_saturation(
image, lower, upper, seed=None
)
Equivalent to adjust_saturation() but uses a saturation_factor randomly picked in the interval [lower, upper). Usage Example:
x = [[[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0]],
... | |
doc_27042 | New in Django 4.0. The name of the template used when calling as_ul(). By default this is 'django/forms/formsets/ul.html'. This template renders the formset’s management form and then each form in the formset as per the form’s as_ul() method. | |
doc_27043 | Return a representation of the message corresponding to key as an instance of the appropriate format-specific Message subclass, or raise a KeyError exception if no such message exists. | |
doc_27044 | turtle.onscreenclick(fun, btn=1, add=None)
Parameters
fun – a function with two arguments which will be called with the coordinates of the clicked point on the canvas
btn – number of the mouse-button, defaults to 1 (left mouse button)
add – True or False – if True, a new binding will be added, otherwise it will... | |
doc_27045 | get the playback volume get_volume() -> value Return a value from 0.0 to 1.0 representing the volume for this Sound. | |
doc_27046 |
Set the parameters Parameters
Xarray-like, shape (n_samples, n_features)
Training data, where n_samples in the number of samples and n_features is the number of features. Returns
selfobject
Returns the transformer. | |
doc_27047 | Get the given distance metric from the string identifier. See the docstring of DistanceMetric for a list of available metrics. Parameters
metricstring or class name
The distance metric to use **kwargs
additional arguments will be passed to the requested metric | |
doc_27048 |
Set the Figure instance the artist belongs to. Parameters
figFigure | |
doc_27049 |
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also
set_picker, get_picker, pickable | |
doc_27050 | tf.compat.v1.add_to_collection(
name, value
)
See tf.Graph.add_to_collection for more details.
Args
name The key for the collection. For example, the GraphKeys class contains many standard names for collections.
value The value to add to the collection. Eager Compatibility Collections are only su... | |
doc_27051 | Exit code that means a specified host did not exist. Availability: Unix. | |
doc_27052 | """
May be applied as a `default=...` value on a serializer field.
Returns the current user.
"""
requires_context = True
def __call__(self, serializer_field):
return serializer_field.context['request'].user
When serializing the instance, default will be used if the object attribute or ... | |
doc_27053 | Return the context variable name that will be used to contain the list of data that this view is manipulating. If object_list is a queryset of Django objects and context_object_name is not set, the context name will be the model_name of the model that the queryset is composed from, with postfix '_list' appended. For ex... | |
doc_27054 | re.LOCALE
Make \w, \W, \b, \B and case-insensitive matching dependent on the current locale. This flag can be used only with bytes patterns. The use of this flag is discouraged as the locale mechanism is very unreliable, it only handles one “culture” at a time, and it only works with 8-bit locales. Unicode matching i... | |
doc_27055 | Called if the XML document hasn’t been declared as being a standalone document. This happens when there is an external subset or a reference to a parameter entity, but the XML declaration does not set standalone to yes in an XML declaration. If this handler returns 0, then the parser will raise an XML_ERROR_NOT_STANDAL... | |
doc_27056 |
Return True if given object is complex. Returns
bool | |
doc_27057 |
Perform one Gibbs sampling step. Parameters
vndarray of shape (n_samples, n_features)
Values of the visible layer to start from. Returns
v_newndarray of shape (n_samples, n_features)
Values of the visible layer after one Gibbs step. | |
doc_27058 |
Predict multi-class targets using underlying estimators. Parameters
X(sparse) array-like of shape (n_samples, n_features)
Data. Returns
y(sparse) array-like of shape (n_samples,) or (n_samples, n_classes)
Predicted multi-class targets. | |
doc_27059 | tf.metrics.CosineSimilarity Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.CosineSimilarity
tf.keras.metrics.CosineSimilarity(
name='cosine_similarity', dtype=None, axis=-1
)
cosine similarity = (a . b) / ||a|| ||b|| See: Cosine Similarity. This metric keeps the ave... | |
doc_27060 | testing.assert_raises(exception_class) → None
Fail unless an exception of class exception_class is thrown by callable when invoked with arguments args and keyword arguments kwargs. If a different type of exception is thrown, it will not be caught, and the test case will be deemed to have suffered an error, exactly ... | |
doc_27061 | See Migration guide for more details. tf.compat.v1.math.special.bessel_y1
tf.math.special.bessel_y1(
x, name=None
)
Modified Bessel function of order 1.
tf.math.special.bessel_y1([0.5, 1., 2., 4.]).numpy()
array([-1.47147239, -0.78121282, -0.10703243, 0.39792571], dtype=float32)
Args
x A Tensor or Sp... | |
doc_27062 | Equivalent to as_string(policy=self.policy.clone(utf8=True)). Allows str(msg) to produce a string containing the serialized message in a readable format. Changed in version 3.4: the method was changed to use utf8=True, thus producing an RFC 6531-like message representation, instead of being a direct alias for as_strin... | |
doc_27063 | This can either be a function to be called when the mock is called, an iterable or an exception (class or instance) to be raised. If you pass in a function it will be called with same arguments as the mock and unless the function returns the DEFAULT singleton the call to the mock will then return whatever the function ... | |
doc_27064 |
Return indices of the minimum values along the given axis. Refer to numpy.argmin for detailed documentation. See also numpy.argmin
equivalent function | |
doc_27065 |
Return a string representation of data. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ... | |
doc_27066 | Resets the string buffer with the given data. | |
doc_27067 | Creates a new Surface from the current PixelArray. make_surface() -> Surface Creates a new Surface from the current PixelArray. Depending on the current PixelArray the size, pixel order etc. will be different from the original Surface. # Create a new surface flipped around the vertical axis.
sf = pxarray[:,::-1].make... | |
doc_27068 | os.SF_MNOWAIT
os.SF_SYNC
Parameters to the sendfile() function, if the implementation supports them. Availability: Unix. New in version 3.3. | |
doc_27069 | queue a Sound object to follow the current queue(Sound) -> None When a Sound is queued on a Channel, it will begin playing immediately after the current Sound is finished. Each channel can only have a single Sound queued at a time. The queued Sound will only play if the current playback finished automatically. It is ... | |
doc_27070 | See Migration guide for more details. tf.compat.v1.raw_ops.TopK
tf.raw_ops.TopK(
input, k, sorted=True, name=None
)
If the input is a vector (rank-1), finds the k largest entries in the vector and outputs their values and indices as vectors. Thus values[j] is the j-th largest entry in input, and its index is ind... | |
doc_27071 | Return the natural (base e) logarithm of the operand. The result is correctly rounded using the ROUND_HALF_EVEN rounding mode. | |
doc_27072 | tf.logical_or Compat aliases for migration See Migration guide for more details. tf.compat.v1.logical_or, tf.compat.v1.math.logical_or
tf.math.logical_or(
x, y, name=None
)
Note: math.logical_or supports broadcasting. More about broadcasting here
Args
x A Tensor of type bool.
y A Tensor of type ... | |
doc_27073 |
Predict class or regression value for X. For a classification model, the predicted class for each sample in X is returned. For a regression model, the predicted value based on X is returned. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be conver... | |
doc_27074 |
Return (x1 <= x2) element-wise. Unlike numpy.less_equal, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters
x1, x2array_like of str or unicode
Input arrays of the same shape. Returns ... | |
doc_27075 | Temporarily set the environment variable envvar to the value of value. | |
doc_27076 |
Return element-wise title cased version of string or unicode. Title case words start with uppercase characters, all remaining cased characters are lowercase. Calls str.title element-wise. For 8-bit strings, this method is locale-dependent. Parameters
aarray_like, {str, unicode}
Input array. Returns
outnda... | |
doc_27077 | Timer signal from alarm(2). Availability: Unix. | |
doc_27078 | Returns a new tensor with the floor of the elements of input, the largest integer less than or equal to each element. outi=⌊inputi⌋\text{out}_{i} = \left\lfloor \text{input}_{i} \right\rfloor
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>... | |
doc_27079 | The 1-based page number for this page. | |
doc_27080 |
Range of values (maximum - minimum) along an axis. The name of the function comes from the acronym for ‘peak to peak’. Warning ptp preserves the data type of the array. This means the return value for an input of signed integers with n bits (e.g. np.int8, np.int16, etc) is also a signed integer with n bits. In that ... | |
doc_27081 |
Perform classification on test vectors X. Parameters
Xarray-like of shape (n_samples, n_features)
Test data. Returns
yarray-like of shape (n_samples,) or (n_samples, n_outputs)
Predicted target values for X. | |
doc_27082 |
Alias for get_fontstyle. | |
doc_27083 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorScatterSub
tf.raw_ops.TensorScatterSub(
tensor, indices, updates, name=None
)
This operation creates a new tensor by subtracting sparse updates from the passed in tensor. This operation is very similar to tf.scatter_nd_sub, except that the updates ... | |
doc_27084 |
Combine regions separated by weight less than threshold. Given an image’s labels and its RAG, output new labels by combining regions whose nodes are separated by a weight less than the given threshold. Parameters
labelsndarray
The array of labels.
ragRAG
The region adjacency graph.
threshfloat
The thres... | |
doc_27085 | sklearn.datasets.make_blobs(n_samples=100, n_features=2, *, centers=None, cluster_std=1.0, center_box=- 10.0, 10.0, shuffle=True, random_state=None, return_centers=False) [source]
Generate isotropic Gaussian blobs for clustering. Read more in the User Guide. Parameters
n_samplesint or array-like, default=100
If... | |
doc_27086 | This function is identical to the fcntl() function, except that the argument handling is even more complicated. The request parameter is limited to values that can fit in 32-bits. Additional constants of interest for use as the request argument can be found in the termios module, under the same names as used in the rel... | |
doc_27087 |
Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc))
<type 'Locator'>
>>> print(loc())
[1, 2, 3, 4] | |
doc_27088 |
Update the dimensions of the passed parameters. None means unchanged. | |
doc_27089 |
Return an array with the elements of self converted to lowercase. See also char.lower | |
doc_27090 | skimage.viewer.utils.figimage(image[, …]) Return figure and axes with figure tightly surrounding image.
skimage.viewer.utils.init_qtapp() Initialize QAppliction.
skimage.viewer.utils.new_plot([parent, …]) Return new figure and axes.
skimage.viewer.utils.start_qtapp([app]) Start Qt mainloop
skimage.viewer.utils.... | |
doc_27091 |
Get parameters for this estimator. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns
paramsdict
Parameter names mapped to their values. | |
doc_27092 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_27093 | class ast.USub
class ast.Not
class ast.Invert
Unary operator tokens. Not is the not keyword, Invert is the ~ operator. >>> print(ast.dump(ast.parse('not x', mode='eval'), indent=4))
Expression(
body=UnaryOp(
op=Not(),
operand=Name(id='x', ctx=Load()))) | |
doc_27094 | A Popen creationflags parameter to specify that a new process will have a high priority. New in version 3.7. | |
doc_27095 | This method is not defined in BaseHandler, but subclasses should define it if they want to post-process responses of the given protocol. This method, if defined, will be called by the parent OpenerDirector. req will be a Request object. response will be an object implementing the same interface as the return value of u... | |
doc_27096 |
Load and return the physical excercise linnerud dataset. This dataset is suitable for multi-ouput regression tasks.
Samples total 20
Dimensionality 3 (for both data and target)
Features integer
Targets integer Read more in the User Guide. Parameters
return_X_ybool, default=False
If True, returns (data... | |
doc_27097 | os.P_NOWAITO
Possible values for the mode parameter to the spawn* family of functions. If either of these values is given, the spawn*() functions will return as soon as the new process has been created, with the process id as the return value. Availability: Unix, Windows. | |
doc_27098 |
Check if windows match. New in version 1.6.0. Parameters
otherclass instance
The other class must have the window attribute. Returns
boolboolean
True if the windows are the same, False otherwise. | |
doc_27099 | tf.experimental.numpy.moveaxis(
a, source, destination
)
Raises ValueError if source, destination not in (-ndim(a), ndim(a)). See the NumPy documentation for numpy.moveaxis. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.