_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_3200
class KeysValidator(keys, strict=False, messages=None) Validates that the given keys are contained in the value. If strict is True, then it also checks that there are no other keys present. The messages passed should be a dict containing the keys missing_keys and/or extra_keys. Note Note that this checks only for th...
doc_3201
rotates the vector around the z-axis by the angle in degrees in place. rotate_z_ip(angle) -> None Rotates the vector counterclockwise around the z-axis by the given angle in degrees. The length of the vector is not changed.
doc_3202
tf.debugging.assert_rank_in( x, ranks, message=None, name=None ) This Op checks that the rank of x is in ranks. If x has a different rank, message, as well as the shape of x are printed, and InvalidArgumentError is raised. Args x Tensor. ranks Iterable of scalar Tensor objects. message A strin...
doc_3203
A positive integer specifying the number of elements in the array. Out-of-range subscripts result in an IndexError. Will be returned by len().
doc_3204
Return the day of the year. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.day_of_year 74
doc_3205
codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE codecs.BOM_UTF32_LE These constants define various byte sequences, being Unicode byte order marks (BOMs) for several encodings. They are used in UTF-16 and UTF-32 d...
doc_3206
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_3207
Draw samples from a multinomial distribution. The multinomial distribution is a multivariate generalization of the binomial distribution. Take an experiment with one of p possible outcomes. An example of such an experiment is throwing a dice, where the outcome can be 1 through 6. Each sample drawn from the distributi...
doc_3208
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyAdaMax tf.raw_ops.ApplyAdaMax( var, m, v, beta1_power, lr, beta1, beta2, epsilon, grad, use_locking=False, name=None ) mt <- beta1 * m{t-1} + (1 - beta1) * g vt <- max(beta2 * v{t-1}, abs(g)) variable <- variable - learning_rate / (1 - beta1^t) ...
doc_3209
os.SF_MNOWAIT os.SF_SYNC Parameters to the sendfile() function, if the implementation supports them. Availability: Unix. New in version 3.3.
doc_3210
Return a guess for whether wsgi.url_scheme should be “http” or “https”, by checking for a HTTPS environment variable in the environ dictionary. The return value is a string. This function is useful when creating a gateway that wraps CGI or a CGI-like protocol such as FastCGI. Typically, servers providing such protocols...
doc_3211
Return the offsets for the collection.
doc_3212
Stop monitoring the fd file descriptor for write availability.
doc_3213
Returns the item ID of the item at position y.
doc_3214
Return the value (in fractional seconds) of a monotonic clock, i.e. a clock that cannot go backwards. The clock is not affected by system clock updates. The reference point of the returned value is undefined, so that only the difference between the results of two calls is valid. New in version 3.3. Changed in versio...
doc_3215
See Migration guide for more details. tf.compat.v1.raw_ops.MaxPoolGradGrad tf.raw_ops.MaxPoolGradGrad( orig_input, orig_output, grad, ksize, strides, padding, data_format='NHWC', name=None ) Args orig_input A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, in...
doc_3216
Continue the process if it is currently stopped Availability: Unix.
doc_3217
tf.compat.v1.summary.get_summary_description( node_def ) When a Summary op is instantiated, a SummaryDescription of associated metadata is stored in its NodeDef. This method retrieves the description. Args node_def the node_def_pb2.NodeDef of a TensorSummary op Returns a summary_pb2.SummaryDescr...
doc_3218
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_3219
Return the Transform instance used by this artist offset.
doc_3220
Read at least one byte of cooked data unless EOF is hit. Return b'' if EOF is hit. Block if no data is immediately available.
doc_3221
Get Less than of dataframe and other, element-wise (binary operator lt). Among flexible wrappers (eq, ne, le, lt, ge, gt) to comparison operators. Equivalent to ==, !=, <=, <, >=, > with support to choose axis (rows or columns) and level for comparison. Parameters other:scalar, sequence, Series, or DataFrame An...
doc_3222
Determine if there is an effective (active) breakpoint at this line of code. Return a tuple of the breakpoint and a boolean that indicates if it is ok to delete a temporary breakpoint. Return (None, None) if there is no matching breakpoint.
doc_3223
Bases: matplotlib.collections._CollectionWithSizes A collection of Paths, as created by e.g. scatter. Parameters pathslist of path.Path The paths that will make up the Collection. sizesarray-like The factor by which to scale each drawn Path. One unit squared in the Path's data space is scaled to be sizes**2...
doc_3224
tf.metrics.PrecisionAtRecall Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.PrecisionAtRecall tf.keras.metrics.PrecisionAtRecall( recall, num_thresholds=200, name=None, dtype=None ) This metric creates four local variables, true_positives, true_negatives, false_posi...
doc_3225
Set the path effects. Parameters path_effectsAbstractPathEffect
doc_3226
Representation of the object, returns app_label.object_name, e.g. 'polls.Question'.
doc_3227
rotates the vector by a given angle in radians in place. rotate_ip_rad(angle) -> None Rotates the vector counterclockwise by the given angle in radians. The length of the vector is not changed. New in pygame 2.0.0.
doc_3228
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyRMSProp tf.raw_ops.ResourceSparseApplyRMSProp( var, ms, mom, lr, rho, momentum, epsilon, grad, indices, use_locking=False, name=None ) Note that in dense implementation of this algorithm, ms and mom will update even if the grad is ...
doc_3229
Return the minimum along a given axis. Refer to numpy.amin for full documentation. See also numpy.amin equivalent function
doc_3230
Value used to identify the event. The interpretation depends on the filter but it’s usually the file descriptor. In the constructor ident can either be an int or an object with a fileno() method. kevent stores the integer internally.
doc_3231
Represents a Range header. All methods only support only bytes as the unit. Stores a list of ranges if given, but the methods only work if only one range is provided. Raises ValueError – If the ranges provided are invalid. Changelog Changed in version 0.15: The ranges passed in are validated. New in version 0.7....
doc_3232
Scalar method identical to the corresponding array attribute. Please see ndarray.tostring.
doc_3233
Return whether units are set on any axis.
doc_3234
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_3235
Changes the default filesystem encoding and errors mode to ‘mbcs’ and ‘replace’ respectively, for consistency with versions of Python prior to 3.6. This is equivalent to defining the PYTHONLEGACYWINDOWSFSENCODING environment variable before launching Python. Availability: Windows. New in version 3.6: See PEP 529 for m...
doc_3236
A convenient alias for None, useful for indexing arrays. Examples >>> newaxis is None True >>> x = np.arange(3) >>> x array([0, 1, 2]) >>> x[:, newaxis] array([[0], [1], [2]]) >>> x[:, newaxis, newaxis] array([[[0]], [[1]], [[2]]]) >>> x[:, newaxis] * x array([[0, 0, 0], [0, 1, 2], [0, 2, 4]]) Outer product, same as...
doc_3237
class sklearn.gaussian_process.kernels.PairwiseKernel(gamma=1.0, gamma_bounds=1e-05, 100000.0, metric='linear', pairwise_kernels_kwargs=None) [source] Wrapper for kernels in sklearn.metrics.pairwise. A thin wrapper around the functionality of the kernels in sklearn.metrics.pairwise. Note: Evaluation of eval_gradient...
doc_3238
A namespace for a function or method. This class inherits SymbolTable. get_parameters() Return a tuple containing names of parameters to this function. get_locals() Return a tuple containing names of locals in this function. get_globals() Return a tuple containing names of globals in this function. ...
doc_3239
Return the UTC datetime corresponding to the POSIX timestamp, with tzinfo None. (The resulting object is naive.) This may raise OverflowError, if the timestamp is out of the range of values supported by the platform C gmtime() function, and OSError on gmtime() failure. It’s common for this to be restricted to years in ...
doc_3240
Set the offsets for the collection. Parameters offsets(N, 2) or (2,) array-like
doc_3241
Set the grid for the rectangle boundaries, and the data values. Parameters x, y1D array-like, optional Monotonic arrays of length N+1 and M+1, respectively, specifying rectangle boundaries. If not given, will default to range(N + 1) and range(M + 1), respectively. Aarray-like The data to be color-coded. The...
doc_3242
Alias for set_edgecolor.
doc_3243
See Migration guide for more details. tf.compat.v1.random.stateless_truncated_normal tf.random.stateless_truncated_normal( shape, seed, mean=0.0, stddev=1.0, dtype=tf.dtypes.float32, name=None ) This is a stateless version of tf.random.truncated_normal: if run twice with the same seeds and shapes, it will produc...
doc_3244
Alias for field number 0
doc_3245
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_3246
Returns the number of non-fixed hyperparameters of the kernel.
doc_3247
Set both the edgecolor and the facecolor. Parameters ccolor or list of rgba tuples See also Collection.set_facecolor, Collection.set_edgecolor For setting the edge or face color individually.
doc_3248
assertWarnsRegex(warning, regex, *, msg=None) Like assertWarns() but also tests that regex matches on the message of the triggered warning. regex may be a regular expression object or a string containing a regular expression suitable for use by re.search(). Example: self.assertWarnsRegex(DeprecationWarning, ...
doc_3249
Returns a new tensor with boolean elements representing if each element of input is “close” to the corresponding element of other. Closeness is defined as: ∣input−other∣≤atol+rtol×∣other∣\lvert \text{input} - \text{other} \rvert \leq \texttt{atol} + \texttt{rtol} \times \lvert \text{other} \rvert where input and oth...
doc_3250
Return a new sequence of saved/cached frame information.
doc_3251
all() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, all the attributes of the ndarray class so as to provide a uniform API. See also the corresponding attribute of the derived class of interest. any any() Not implemented (virtual at...
doc_3252
Upsamples a given multi-channel 1D (temporal), 2D (spatial) or 3D (volumetric) data. The input data is assumed to be of the form minibatch x channels x [optional depth] x [optional height] x width. Hence, for spatial inputs, we expect a 4D Tensor and for volumetric inputs, we expect a 5D Tensor. The algorithms availa...
doc_3253
See Migration guide for more details. tf.compat.v1.raw_ops.ParseExampleDataset tf.raw_ops.ParseExampleDataset( input_dataset, num_parallel_calls, dense_defaults, sparse_keys, dense_keys, sparse_types, dense_shapes, output_types, output_shapes, sloppy=False, ragged_keys=[], ragged_value_types=[], ragged_sp...
doc_3254
See Migration guide for more details. tf.compat.v1.raw_ops.ShuffleDatasetV2 tf.raw_ops.ShuffleDatasetV2( input_dataset, buffer_size, seed_generator, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. buffer_size A Tensor of type int64. seed_generator A ...
doc_3255
An abstract base class which inherits from ResourceLoader and ExecutionLoader, providing concrete implementations of ResourceLoader.get_data() and ExecutionLoader.get_filename(). The fullname argument is a fully resolved name of the module the loader is to handle. The path argument is the path to the file for the modul...
doc_3256
See Migration guide for more details. tf.compat.v1.math.reduce_mean tf.compat.v1.reduce_mean( input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None, keep_dims=None ) Reduces input_tensor along the dimensions given in axis by computing the mean of elements across the dimensions in axis. Un...
doc_3257
Covariance estimator with shrinkage Read more in the User Guide. Parameters store_precisionbool, default=True Specify if the estimated precision is stored assume_centeredbool, default=False If True, data will not be centered before computation. Useful when working with data whose mean is almost, but not exa...
doc_3258
See Migration guide for more details. tf.compat.v1.raw_ops.TFRecordDataset tf.raw_ops.TFRecordDataset( filenames, compression_type, buffer_size, name=None ) Args filenames A Tensor of type string. A scalar or vector containing the name(s) of the file(s) to be read. compression_type A Tensor of typ...
doc_3259
Convert an image to 16-bit unsigned integer format. Parameters imagendarray Input image. force_copybool, optional Force a copy of the data, irrespective of its current dtype. Returns outndarray of uint16 Output image. Notes Negative input values will be clipped. Positive values are scaled betwee...
doc_3260
tf.compat.v1.nn.crelu( features, name=None, axis=-1 ) Concatenates a ReLU which selects only the positive part of the activation with a ReLU which selects only the negative part of the activation. Note that as a result this non-linearity doubles the depth of the activations. Source: Understanding and Improving Con...
doc_3261
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
doc_3262
Return the snap setting. See set_snap for details.
doc_3263
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessIf tf.raw_ops.StatelessIf( cond, input, Tout, then_branch, else_branch, output_shapes=[], name=None ) Args cond A Tensor. A Tensor. If the tensor is a scalar of non-boolean type, the scalar is converted to a boolean according to the fol...
doc_3264
The mean of all pixel values of the band (excluding the “no data” value).
doc_3265
Duplicate the file descriptor fd (an integer as returned by a file object’s fileno() method) and build a socket object from the result. Address family, socket type and protocol number are as for the socket() function above. The file descriptor should refer to a socket, but this is not checked — subsequent operations on...
doc_3266
Uses an incremental encoder to iteratively encode the input provided by iterator. This function is a generator. The errors argument (as well as any other keyword argument) is passed through to the incremental encoder. This function requires that the codec accept text str objects to encode. Therefore it does not support...
doc_3267
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_3268
Accept a connection on the bound socket or named pipe of the listener object and return a Connection object. If authentication is attempted and fails, then AuthenticationError is raised.
doc_3269
Apply a function repeatedly over multiple axes. func is called as res = func(a, axis), where axis is the first element of axes. The result res of the function call must have either the same dimensions as a or one less dimension. If res has one less dimension than a, a dimension is inserted before axis. The call to fu...
doc_3270
Calculate the expanding unbiased skewness. Parameters **kwargs For NumPy compatibility and will not have an effect on the result. Returns Series or DataFrame Return type is the same as the original object with np.float64 dtype. See also scipy.stats.skew Third moment of a probability density. pandas....
doc_3271
operator.__floordiv__(a, b) Return a // b.
doc_3272
Bases: matplotlib.ticker.Formatter A Formatter which attempts to figure out the best format to use. This is most useful when used with the AutoDateLocator. AutoDateFormatter has a .scale dictionary that maps tick scales (the interval in days between one major tick) to format strings; this dictionary defaults to self....
doc_3273
Validates that the lower bound of the range is not less than the limit_value.
doc_3274
Load data from a text file, with missing values handled as specified. Each line past the first skip_header lines is split at the delimiter character, and characters following the comments character are discarded. Parameters fnamefile, str, pathlib.Path, list of str, generator File, filename, list, or generator ...
doc_3275
Print a brief description of how the ArgumentParser should be invoked on the command line. If file is None, sys.stdout is assumed.
doc_3276
See Migration guide for more details. tf.compat.v1.raw_ops.StringSplitV2 tf.raw_ops.StringSplitV2( input, sep, maxsplit=-1, name=None ) Let N be the size of source (typically N will be the batch size). Split each element of source based on sep and return a SparseTensor containing the split tokens. Empty tokens a...
doc_3277
Return the value of the given socket option (see the Unix man page getsockopt(2)). The needed symbolic constants (SO_* etc.) are defined in this module. If buflen is absent, an integer option is assumed and its integer value is returned by the function. If buflen is present, it specifies the maximum length of the buffe...
doc_3278
Get location for a sequence of labels. Parameters seq:label, slice, list, mask or a sequence of such You should use one of the above for each level. If a level should not be used, set it to slice(None). Returns numpy.ndarray NumPy array of integers suitable for passing to iloc. See also MultiIndex.g...
doc_3279
tf.nn.embedding_lookup( params, ids, max_norm=None, name=None ) This function is used to perform parallel lookups on the list of tensors in params. It is a generalization of tf.gather, where params is interpreted as a partitioning of a large embedding tensor. If len(params) > 1, each element id of ids is partition...
doc_3280
Rethinking the Inception Architecture for Computer Vision (CVPR 2016) Functions InceptionV3(...): Instantiates the Inception v3 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images.
doc_3281
tf.compat.v1.keras.layers.experimental.preprocessing.IntegerLookup( max_values=None, num_oov_indices=1, mask_value=0, oov_value=-1, vocabulary=None, invert=False, **kwargs ) Methods adapt View source adapt( data, reset_state=True ) Fits the state of the preprocessing layer to the dataset. Overrides the d...
doc_3282
Returns the previous Node in the linked list of Nodes. Returns The previous Node in the linked list of Nodes.
doc_3283
os.execle(path, arg0, arg1, ..., env) os.execlp(file, arg0, arg1, ...) os.execlpe(file, arg0, arg1, ..., env) os.execv(path, args) os.execve(path, args, env) os.execvp(file, args) os.execvpe(file, args, env) These functions all execute a new program, replacing the current process; they do not return. On U...
doc_3284
Retrieves the message header plus howmuch lines of the message after the header of message number which. Result is in form (response, ['line', ...], octets). The POP3 TOP command this method uses, unlike the RETR command, doesn’t set the message’s seen flag; unfortunately, TOP is poorly specified in the RFCs and is fre...
doc_3285
Pass the RunSQL.noop attribute to sql or reverse_sql when you want the operation not to do anything in the given direction. This is especially useful in making the operation reversible.
doc_3286
Add a second x-axis to this Axes. For example if we want to have a second scale for the data plotted on the xaxis. Parameters location{'top', 'bottom', 'left', 'right'} or float The position to put the secondary axis. Strings can be 'top' or 'bottom' for orientation='x' and 'right' or 'left' for orientation='y'...
doc_3287
Create an anchored inset axes by scaling a parent axes. For usage, also see the examples. Parameters parent_axesmatplotlib.axes.Axes Axes to place the inset axes. zoomfloat Scaling factor of the data axes. zoom > 1 will enlarge the coordinates (i.e., "zoomed in"), while zoom < 1 will shrink the coordinates ...
doc_3288
Half-precision floating-point number type. Character code 'e' Alias on this platform (Linux x86_64) numpy.float16: 16-bit-precision floating-point number type: sign bit, 5 bits exponent, 10 bits mantissa.
doc_3289
(Only supported on Solaris and derivatives.) Returns a /dev/poll polling object; see section /dev/poll Polling Objects below for the methods supported by devpoll objects. devpoll() objects are linked to the number of file descriptors allowed at the time of instantiation. If your program reduces this value, devpoll() wi...
doc_3290
When setting cookies, the ‘host prefix’ must not contain a dot (eg. www.foo.bar.com can’t set a cookie for .bar.com, because www.foo contains a dot).
doc_3291
Detect existing (non-missing) values. Return a boolean same-sized object indicating if the values are not NA. Non-missing values get mapped to True. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_inf_as_na = True). NA values, such as None or numpy...
doc_3292
When you loop over the list of messages in a template, what you get are instances of the Message class. They have only a few attributes: message: The actual text of the message. level: An integer describing the type of the message (see the message levels section above). tags: A string combining all the message’s ta...
doc_3293
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_3294
Shift the time index, using the index’s frequency if available. Deprecated since version 1.1.0: Use shift instead. Parameters periods:int Number of periods to move, can be positive or negative. freq:DateOffset, timedelta, or str, default None Increment to use from the tseries module or time rule expressed...
doc_3295
Change shape and size of array in-place. Parameters new_shapetuple of ints, or n ints Shape of resized array. refcheckbool, optional If False, reference count will not be checked. Default is True. Returns None Raises ValueError If a does not own its own data or references or views to it exist, and...
doc_3296
sklearn.covariance.ledoit_wolf(X, *, assume_centered=False, block_size=1000) [source] Estimates the shrunk Ledoit-Wolf covariance matrix. Read more in the User Guide. Parameters Xarray-like of shape (n_samples, n_features) Data from which to compute the covariance estimate assume_centeredbool, default=False ...
doc_3297
Compute the median along the specified axis, while ignoring NaNs. Returns the median of the array elements. New in version 1.9.0. Parameters aarray_like Input array or object that can be converted to an array. axis{int, sequence of int, None}, optional Axis or axes along which the medians are computed. Th...
doc_3298
Return the line color. See also set_color.
doc_3299
Base exception class used for all specific DOM exceptions. This exception class cannot be directly instantiated.