_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_12700 | In-place version of erf() | |
doc_12701 | See Migration guide for more details. tf.compat.v1.raw_ops.DataFormatVecPermute
tf.raw_ops.DataFormatVecPermute(
x, src_format='NHWC', dst_format='NCHW', name=None
)
Input tensor must be a vector of size 4, or a 4x2 tensor. For example, with src_format of NHWC, dst_format of NCHW, and inputs: [1, 2, 3, 4]
and [... | |
doc_12702 |
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal. | |
doc_12703 |
Solves a dictionary learning matrix factorization problem online. Finds the best dictionary and the corresponding sparse code for approximating the data matrix X by solving: (U^*, V^*) = argmin 0.5 || X - U V ||_2^2 + alpha * || U ||_1
(U,V)
with || V_k ||_2 = 1 for all 0 <= k < n_component... | |
doc_12704 |
Compute first 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 val... | |
doc_12705 |
Return the Hamming window. The Hamming window is a taper formed by using a weighted cosine. Parameters
Mint
Number of points in the output window. If zero or less, an empty array is returned. Returns
outndarray
The window, with the maximum value normalized to one (the value one appears only if the numbe... | |
doc_12706 |
Bases: matplotlib.backend_tools.ToolBase Draw and remove a rubberband. draw_rubberband(*data)[source]
Draw rubberband. This method must get implemented per backend.
remove_rubberband()[source]
Remove rubberband. This method should get implemented per backend.
trigger(sender, event, data)[source]
Call ... | |
doc_12707 | Do nothing. Might be used as a keep-alive. | |
doc_12708 | Cookie path (a string, eg. '/acme/rocket_launchers'). | |
doc_12709 |
For unpickling. The state argument must be a sequence that contains the following elements: Parameters
versionint
optional pickle version. If omitted defaults to 0.
shapetuple
dtypedata-type
isFortranbool
rawdatastring or list
a binary string with the data (or a list if ‘a’ is an object array) | |
doc_12710 | Return the status of the lock: True if it has been acquired by some thread, False if not. | |
doc_12711 | Returns an HMAC of the password field. Used for Session invalidation on password change. | |
doc_12712 |
Add one Hermite series to another. Returns the sum of two Hermite series c1 + c2. The arguments are sequences of coefficients ordered from lowest order term to highest, i.e., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters
c1, c2array_like
1-D arrays of Hermite series coefficients ordered from low... | |
doc_12713 |
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_12714 | socket.SIO_KEEPALIVE_VALS
socket.SIO_LOOPBACK_FAST_PATH
RCVALL_*
Constants for Windows’ WSAIoctl(). The constants are used as arguments to the ioctl() method of socket objects. Changed in version 3.6: SIO_LOOPBACK_FAST_PATH was added. | |
doc_12715 |
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array. | |
doc_12716 |
Applies a 2D max pooling over an input signal composed of several input planes. In the simplest case, the output value of the layer with input size (N,C,H,W)(N, C, H, W) , output (N,C,Hout,Wout)(N, C, H_{out}, W_{out}) and kernel_size (kH,kW)(kH, kW) can be precisely described as: out(Ni,Cj,h,w)=maxm=0,…,kH−1max... | |
doc_12717 |
Get a scorer from string. Read more in the User Guide. Parameters
scoringstr or callable
Scoring method as string. If callable it is returned as is. Returns
scorercallable
The scorer. | |
doc_12718 | True if other code jumps to here, otherwise False | |
doc_12719 |
Return the label used for this artist in the legend. | |
doc_12720 |
Set the axes box aspect. The box aspect is the ratio of height to width in display units for each face of the box when viewed perpendicular to that face. This is not to be confused with the data aspect (which for Axes3D is always 'auto'). The default ratios are 4:4:3 (x:y:z). To simulate having equal aspect in data s... | |
doc_12721 | See Migration guide for more details. tf.compat.v1.distribute.get_strategy
tf.distribute.get_strategy()
Typically only used in a cross-replica context: if tf.distribute.in_cross_replica_context():
strategy = tf.distribute.get_strategy()
...
Returns A tf.distribute.Strategy object. Inside a with strategy.... | |
doc_12722 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_integer
tf.compat.v1.flags.DEFINE_integer(
name, default, help, lower_bound=None, upper_bound=None,
flag_values=_flagvalues.FLAGS, **args
)
If lower_bound, or upper_bound are set, then this flag must be within the given range.
Args
na... | |
doc_12723 |
Pseudo-Vandermonde matrix of given degrees. Returns the pseudo-Vandermonde matrix of degrees deg and sample points (x, y, z). If l, m, n are the given degrees in x, y, z, then Hehe pseudo-Vandermonde matrix is defined by \[V[..., (m+1)(n+1)i + (n+1)j + k] = He_i(x)*He_j(y)*He_k(z),\] where 0 <= i <= l, 0 <= j <= m, ... | |
doc_12724 |
Bases: matplotlib.ticker.Formatter Used to format the theta tick labels. Converts the native unit of radians into degrees and adds a degree symbol. | |
doc_12725 |
Implements Adagrad algorithm. It has been proposed in Adaptive Subgradient Methods for Online Learning and Stochastic Optimization. Parameters
params (iterable) – iterable of parameters to optimize or dicts defining parameter groups
lr (float, optional) – learning rate (default: 1e-2)
lr_decay (float, optional)... | |
doc_12726 | See Migration guide for more details. tf.compat.v1.mlir.experimental.convert_function
tf.mlir.experimental.convert_function(
concrete_function, pass_pipeline='tf-standard-pipeline'
)
This API is only intended for inspecting the internals of TensorFlow and the string returned is at the moment intended for debuggi... | |
doc_12727 | BoundaryNorm(boundaries, ncolors[, clip, extend]) Generate a colormap index based on discrete intervals.
Colormap(name[, N]) Baseclass for all scalar to RGBA mappings.
CenteredNorm([vcenter, halfrange, clip]) Normalize symmetrical data around a center (0 by default).
LightSource([azdeg, altdeg, hsv_min_val, ...])... | |
doc_12728 | See Migration guide for more details. tf.compat.v1.raw_ops.PyFuncStateless
tf.raw_ops.PyFuncStateless(
input, token, Tout, name=None
)
Args
input A list of Tensor objects.
token A string.
Tout A list of tf.DTypes.
name A name for the operation (optional).
Returns A list of Te... | |
doc_12729 | Turn an environ dict back into a builder. Any extra kwargs override the args extracted from the environ. Changed in version 2.0: Path and query values are passed through the WSGI decoding dance to avoid double encoding. Changelog New in version 0.15. Parameters
environ (WSGIEnvironment) –
kwargs (Any) – Re... | |
doc_12730 | """
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_12731 | See Migration guide for more details. tf.compat.v1.raw_ops.AudioSummary
tf.raw_ops.AudioSummary(
tag, tensor, sample_rate, max_outputs=3, name=None
)
The summary has up to max_outputs summary values containing audio. The audio is built from tensor which must be 3-D with shape [batch_size, frames, channels] or 2-... | |
doc_12732 | The user-provided request handler class; an instance of this class is created for each request. | |
doc_12733 |
Set the artist's clip path. Parameters
pathPatch or Path or TransformedPath or None
The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed.
transformTransform, optional
Only used if path is a Path, in which case the given Path is converted to a Tra... | |
doc_12734 |
Alias for set_antialiased. | |
doc_12735 |
Coverage error measure. Compute how far we need to go through the ranked scores to cover all true labels. The best value is equal to the average number of labels in y_true per sample. Ties in y_scores are broken by giving maximal rank that would have been assigned to all tied values. Note: Our implementation’s score ... | |
doc_12736 | See Migration guide for more details. tf.compat.v1.raw_ops.OutfeedEnqueueTuple
tf.raw_ops.OutfeedEnqueueTuple(
inputs, name=None
)
Args
inputs A list of Tensor objects. A list of tensors that will be inserted into the outfeed queue as an XLA tuple.
name A name for the operation (optional).
... | |
doc_12737 | Use authenticate() to verify a set of credentials. It takes credentials as keyword arguments, username and password for the default case, checks them against each authentication backend, and returns a User object if the credentials are valid for a backend. If the credentials aren’t valid for any backend or if a backend... | |
doc_12738 | Release a lock, decrementing the recursion level. If after the decrement the recursion level is zero, reset the lock to unlocked (not owned by any process or thread) and if any other processes or threads are blocked waiting for the lock to become unlocked, allow exactly one of them to proceed. If after the decrement th... | |
doc_12739 |
Bases: tuple Represents the character metrics of a single character. Notes The fields do currently only describe a subset of character metrics information defined in the AFM standard. Create new instance of CharMetrics(width, name, bbox) bbox
The bbox of the character (B) as a tuple (llx, lly, urx, ury).
name... | |
doc_12740 |
Return whether the artist is pickable. See also
set_picker, get_picker, pick | |
doc_12741 | In-place version of subtract(). | |
doc_12742 | sklearn.utils.shuffle(*arrays, random_state=None, n_samples=None) [source]
Shuffle arrays or sparse matrices in a consistent way. This is a convenience alias to resample(*arrays, replace=False) to do random permutations of the collections. Parameters
*arrayssequence of indexable data-structures
Indexable data-s... | |
doc_12743 | Enter a polling loop that terminates after count passes or all open channels have been closed. All arguments are optional. The count parameter defaults to None, resulting in the loop terminating only when all channels have been closed. The timeout argument sets the timeout parameter for the appropriate select() or poll... | |
doc_12744 | An object containing information about the implementation of the currently running Python interpreter. The following attributes are required to exist in all Python implementations. name is the implementation’s identifier, e.g. 'cpython'. The actual string is defined by the Python implementation, but it is guaranteed to... | |
doc_12745 |
Fit the gradient boosting model. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix.
yarray-like of shape (n_samples,)
Target values (strings or integers in... | |
doc_12746 |
Eliminate excessively flat border triangles from the triangulation. Returns a mask new_mask which allows to clean the encapsulated triangulation from its border-located flat triangles (according to their circle_ratios()). This mask is meant to be subsequently applied to the triangulation using Triangulation.set_mask.... | |
doc_12747 | '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_12748 |
Return random floats in the half-open interval [0.0, 1.0). Results are from the “continuous uniform” distribution over the stated interval. To sample \(Unif[a, b), b > a\) multiply the output of random by (b-a) and add a: (b - a) * random() + a
Parameters
sizeint or tuple of ints, optional
Output shape. If the... | |
doc_12749 | Force bytes held in the buffer into the raw stream. A BlockingIOError should be raised if the raw stream blocks. | |
doc_12750 | Logs an accepted (successful) request. code should specify the numeric HTTP code associated with the response. If a size of the response is available, then it should be passed as the size parameter. | |
doc_12751 |
The coherence between x and y. Coherence is the normalized cross spectral density: \[C_{xy} = \frac{|P_{xy}|^2}{P_{xx}P_{yy}}\] Parameters
x, y
Array or sequence containing the data
Fsfloat, default: 2
The sampling frequency (samples per time unit). It is used to calculate the Fourier frequencies, freqs, in ... | |
doc_12752 | set the color value for a single pixel set_at((x, y), Color) -> None Set the RGBA or mapped integer color value for a single pixel. If the Surface does not have per pixel alphas, the alpha value is ignored. Setting pixels outside the Surface area or outside the Surface clipping will have no effect. Getting and settin... | |
doc_12753 |
Return a copy of the array collapsed into one dimension. Parameters
order{‘C’, ‘F’, ‘A’, ‘K’}, optional
‘C’ means to flatten in row-major (C-style) order. ‘F’ means to flatten in column-major (Fortran- style) order. ‘A’ means to flatten in column-major order if a is Fortran contiguous in memory, row-major order... | |
doc_12754 | Return the length (the number of items) of an object. The argument may be a sequence (such as a string, bytes, tuple, list, or range) or a collection (such as a dictionary, set, or frozen set). CPython implementation detail: len raises OverflowError on lengths larger than sys.maxsize, such as range(2 ** 100). | |
doc_12755 | pygame object for representing events A pygame object that represents an event. User event instances are created with an pygame.event.Event() function call. The EventType type is not directly callable. EventType instances support attribute assignment and deletion. type
event type identifier. type -> int Read-onl... | |
doc_12756 |
Bases: matplotlib.patches.Patch A rectangle defined via an anchor point xy and its width and height. The rectangle extends from xy[0] to xy[0] + width in x-direction and from xy[1] to xy[1] + height in y-direction. : +------------------+
: | |
: height ... | |
doc_12757 |
The required alignment (bytes) of this data-type according to the compiler. More information is available in the C-API section of the manual. Examples >>> x = np.dtype('i4')
>>> x.alignment
4
>>> x = np.dtype(float)
>>> x.alignment
8 | |
doc_12758 |
Returns
transformTransform
The transform used for drawing secondart y-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in axis coordinates and the y-direction is in data coordinates
valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}... | |
doc_12759 | Stop when returning from the given frame. | |
doc_12760 | Capture an exception for later rendering. limit, lookup_lines and capture_locals are as for the StackSummary class. Note that when locals are captured, they are also shown in the traceback. | |
doc_12761 |
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_12762 | Return the base ten logarithm of the operand. The result is correctly rounded using the ROUND_HALF_EVEN rounding mode. | |
doc_12763 |
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con... | |
doc_12764 | random.randrange(start, stop[, step])
Return a randomly selected element from range(start, stop, step). This is equivalent to choice(range(start, stop, step)), but doesn’t actually build a range object. The positional argument pattern matches that of range(). Keyword arguments should not be used because the function ... | |
doc_12765 |
Unstack, also known as pivot, Series with MultiIndex to produce DataFrame. Parameters
level:int, str, or list of these, default last level
Level(s) to unstack, can pass level name.
fill_value:scalar value, default None
Value to use when replacing NaN values. Returns
DataFrame
Unstacked Series. Exa... | |
doc_12766 |
Return the label used for this artist in the legend. | |
doc_12767 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyProximalGradientDescent
tf.raw_ops.ResourceApplyProximalGradientDescent(
var, alpha, l1, l2, delta, use_locking=False, name=None
)
prox_v = var - alpha * delta var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}
Args
var A Te... | |
doc_12768 | Returns the byte size of a pixel array item itemsize -> int This is the same as Surface.get_bytesize() for the pixel array's surface. New in pygame 1.9.2. | |
doc_12769 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_12770 |
Returns true for each element if all characters in the string are alphanumeric and there is at least one character, false otherwise. See also char.isalnum | |
doc_12771 | stat.FILE_ATTRIBUTE_COMPRESSED
stat.FILE_ATTRIBUTE_DEVICE
stat.FILE_ATTRIBUTE_DIRECTORY
stat.FILE_ATTRIBUTE_ENCRYPTED
stat.FILE_ATTRIBUTE_HIDDEN
stat.FILE_ATTRIBUTE_INTEGRITY_STREAM
stat.FILE_ATTRIBUTE_NORMAL
stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
stat.FILE_ATTRIBUTE_NO_SCRUB_DATA
stat.FILE_ATTRIBUTE... | |
doc_12772 | tf.compat.v1.scatter_mul(
ref, indices, updates, use_locking=False, name=None
)
This operation computes # Scalar indices
ref[indices, ...] *= updates[...]
# Vector indices (for each i)
ref[indices[i], ...] *= updates[i, ...]
# High rank indices (for each i, ..., j)
ref[indices[i, ..., j], ...] *= updates[i, ...,... | |
doc_12773 |
Differentiate. Return a series instance of that is the derivative of the current series. Parameters
mnon-negative int
Find the derivative of order m. Returns
new_seriesseries
A new series representing the derivative. The domain is the same as the domain of the differentiated series. | |
doc_12774 | Implementation of Loader.exec_module(). New in version 3.4. | |
doc_12775 | Returns the highest index in the object where the subsequence sub is found, such that sub is contained in the range [start, end]. Optional arguments start and end are interpreted as in slice notation. Returns -1 on failure. Changed in version 3.5: Writable bytes-like object is now accepted. | |
doc_12776 |
Return the maximum value that can be represented by the dtype of an object. This function is useful for calculating a fill value suitable for taking the minimum of an array with a given dtype. Parameters
objndarray, dtype or scalar
An object that can be queried for it’s numeric type. Returns
valscalar
T... | |
doc_12777 |
Tuple of array dimensions. The shape property is usually used to get the current shape of an array, but may also be used to reshape the array in-place by assigning a tuple of array dimensions to it. As with numpy.reshape, one of the new shape dimensions can be -1, in which case its value is inferred from the size of ... | |
doc_12778 | A dictionary that maps HTML5 named character references 1 to the equivalent Unicode character(s), e.g. html5['gt;'] == '>'. Note that the trailing semicolon is included in the name (e.g. 'gt;'), however some of the names are accepted by the standard even without the semicolon: in this case the name is present with and ... | |
doc_12779 |
Bases: matplotlib.backend_tools.ToolToggleBase Base Tool to toggle between linear and logarithmic. disable(event)[source]
Disable the toggle tool. trigger call this method when toggled is True. This can happen in different circumstances. Click on the toolbar tool button. Call to matplotlib.backend_managers.ToolM... | |
doc_12780 | Return True if the last line was read from sys.stdin, otherwise return False. | |
doc_12781 | Returns the lowest index in the object where the subsequence sub is found, such that sub is contained in the range [start, end]. Optional arguments start and end are interpreted as in slice notation. Returns -1 on failure. Changed in version 3.5: Writable bytes-like object is now accepted. | |
doc_12782 |
Fit model to X and perform dimensionality reduction on X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training data.
yIgnored
Returns
X_newndarray of shape (n_samples, n_components)
Reduced version of X. This will always be a dense array. | |
doc_12783 |
Add text to the plot. kwargs will be passed on to Axes.text, except for the zdir keyword, which sets the direction to be used as the z direction. | |
doc_12784 | Set callback as the handler for the signum signal. The callback will be invoked by loop, along with other queued callbacks and runnable coroutines of that event loop. Unlike signal handlers registered using signal.signal(), a callback registered with this function is allowed to interact with the event loop. Raise Value... | |
doc_12785 | tf.experimental.numpy.logical_not(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.logical_not. | |
doc_12786 | sklearn.utils.check_consistent_length(*arrays) [source]
Check that all arrays have consistent first dimensions. Checks whether all objects in arrays have the same shape or length. Parameters
*arrayslist or tuple of input objects.
Objects that will be checked for consistent length. | |
doc_12787 | This method has to be implemented and must either return None in case the loading failed because of a configuration error or an instance of a session object which implements a dictionary like interface + the methods and attributes on SessionMixin. Parameters
app (Flask) –
request (Request) – Return type
Optio... | |
doc_12788 | See Migration guide for more details. tf.compat.v1.raw_ops.StridedSlice
tf.raw_ops.StridedSlice(
input, begin, end, strides, begin_mask=0, end_mask=0, ellipsis_mask=0,
new_axis_mask=0, shrink_axis_mask=0, name=None
)
Note, most python users will want to use the Python Tensor.getitem or Variable.getitem rathe... | |
doc_12789 | Generates a URL to the given endpoint with the method provided. Variable arguments that are unknown to the target endpoint are appended to the generated URL as query arguments. If the value of a query argument is None, the whole pair is skipped. In case blueprints are active you can shortcut references to the same blue... | |
doc_12790 |
Return if the index is monotonic decreasing (only equal or decreasing) values. Examples
>>> Index([3, 2, 1]).is_monotonic_decreasing
True
>>> Index([3, 2, 2]).is_monotonic_decreasing
True
>>> Index([3, 1, 2]).is_monotonic_decreasing
False | |
doc_12791 | tf.compat.v1.distributions.DirichletMultinomial(
total_count, concentration, validate_args=False, allow_nan_stats=True,
name='DirichletMultinomial'
)
The Dirichlet-Multinomial distribution is parameterized by a (batch of) length-K concentration vectors (K > 1) and a total_count number of trials, i.e., the numb... | |
doc_12792 | See Migration guide for more details. tf.compat.v1.keras.backend.set_epsilon
tf.keras.backend.set_epsilon(
value
)
Arguments
value float. New value of epsilon. Example:
tf.keras.backend.epsilon()
1e-07
tf.keras.backend.set_epsilon(1e-5)
tf.keras.backend.epsilon()
1e-05
tf.keras.backend.set_epsilon(1... | |
doc_12793 |
Put values into the destination array by matching 1d index and data slices. This iterates over matching 1d slices oriented along the specified axis in the index and data arrays, and uses the former to place values into the latter. These slices can be different lengths. Functions returning an index along an axis, like... | |
doc_12794 | See Migration guide for more details. tf.compat.v1.raw_ops.InplaceAdd
tf.raw_ops.InplaceAdd(
x, i, v, name=None
)
Computes y = x; y[i, :] += v; return y.
Args
x A Tensor. A Tensor of type T.
i A Tensor of type int32. A vector. Indices into the left-most dimension of x.
v A Tensor. Must have ... | |
doc_12795 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.RandomZoom
tf.keras.layers.experimental.preprocessing.RandomZoom(
height_factor, width_factor=None, fill_mode='reflect',
interpolation='bilinear', seed=None, name=None, fill_value=0.0,
**kwargs
)
Arguments
h... | |
doc_12796 | Returns a new tensor with the square of the elements of input. Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4)
>>> a
tensor([-2.0755, 1.0226, 0.0831, 0.4806])
>>> torch.square(a)
tensor([ 4.3077, 1.0457, 0.0069, 0.23... | |
doc_12797 | Which headers can be shared by the browser to JavaScript code. | |
doc_12798 | The default value for the parameter. If the parameter has no default value, this attribute is set to Parameter.empty. | |
doc_12799 |
Copy properties from other to self. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.