_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_30100
Pytest specific decorator for parametrizing estimator checks. The id of each check is set to be a pprint version of the estimator and the name of the check with its keyword arguments. This allows to use pytest -k to specify which tests to run: pytest test_check_estimators.py -k check_estimators_fit_returns_self Par...
doc_30101
Computes the (weighted) graph of Neighbors for points in X Neighborhoods are restricted the points at a distance lower than radius. Parameters Xarray-like of shape (n_samples, n_features), default=None The query point or points. If not provided, neighbors of each indexed point are returned. In this case, the qu...
doc_30102
shell Returns the shell or exterior ring of this polygon, as a LinearRing geometry. exterior_ring An alias for shell. centroid Returns a Point representing the centroid of this polygon.
doc_30103
Returns a list of ByteTensor representing the random number states of all devices.
doc_30104
Return the buffer size needed for recvmsg() to receive an ancillary data item with associated data of the given length, along with any trailing padding. The buffer space needed to receive multiple items is the sum of the CMSG_SPACE() values for their associated data lengths. Raises OverflowError if length is outside th...
doc_30105
Return True if it is a character device.
doc_30106
Applies a 2D convolution over a quantized 2D input composed of several input planes. See Conv2d for details and output shape. Parameters input – quantized input tensor of shape (minibatch,in_channels,iH,iW)(\text{minibatch} , \text{in\_channels} , iH , iW) weight – quantized filters of shape (out_channels,in_c...
doc_30107
Return the Transform applied to the children
doc_30108
GridSpec(nrows, ncols[, figure, left, ...]) A grid layout to place subplots within a figure. SubplotSpec(gridspec, num1[, num2]) The location of a subplot in a GridSpec. GridSpecBase(nrows, ncols[, height_ratios, ...]) A base class of GridSpec that specifies the geometry of the grid that a subplot will be placed. ...
doc_30109
Compute sum of group values. Parameters numeric_only:bool, default True Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. min_count:int, default 0 The required number of valid values to perform the operation. If fewer than min_count non-NA values ...
doc_30110
Possible value for SSLContext.verify_flags. In this mode, certificate revocation lists (CRLs) are not checked. By default OpenSSL does neither require nor verify CRLs. New in version 3.4.
doc_30111
See Migration guide for more details. tf.compat.v1.quantization.quantized_concat, tf.compat.v1.quantized_concat tf.quantization.quantized_concat( 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...
doc_30112
DictFormatter(format_dict[, formatter]) format_dict : dictionary for format strings to be used. ExtremeFinderSimple(nx, ny) A helper class to figure out the range of grid lines that need to be drawn. FixedLocator(locs) FormatterPrettyPrint([useMathText]) GridFinder(transform[, extreme_finder, ...]) transform ...
doc_30113
tf.random.experimental.create_rng_state Compat aliases for migration See Migration guide for more details. tf.compat.v1.random.create_rng_state, tf.compat.v1.random.experimental.create_rng_state tf.random.create_rng_state( seed, alg ) Example: tf.random.create_rng_state( 1234, "philox") array([1234, 0, ...
doc_30114
Return the array with the same data viewed with a different byte order. Equivalent to: arr.view(arr.dtype.newbytorder(new_order)) Changes are also made in all fields and sub-arrays of the array data type. Parameters new_orderstring, optional Byte order to force; a value from the byte order specifications below...
doc_30115
Token value for "<<=".
doc_30116
exception that pygame.midi functions and classes can raise MidiException(errno) -> None
doc_30117
Return the array with the same data viewed with a different byte order. Equivalent to: arr.view(arr.dtype.newbytorder(new_order)) Changes are also made in all fields and sub-arrays of the array data type. Parameters new_orderstring, optional Byte order to force; a value from the byte order specifications below...
doc_30118
Add 2D bar(s). Parameters left1D array-like The x coordinates of the left sides of the bars. height1D array-like The height of the bars. zsfloat or 1D array-like Z coordinate of bars; if a single value is specified, it will be used for all bars. zdir{'x', 'y', 'z'}, default: 'z' When plotting 2D dat...
doc_30119
Alias for get_facecolor.
doc_30120
Returns whether or not the set of points in the geometry is empty.
doc_30121
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with filled triangle head at the end. Parameters head_lengthfloat, default: 0.4 Length of the arrow head, relative to mutation_scale. head_widthfloat, default: 0.2 Width of the arrow head, relative to mutation_scale. widthAfloat, default: 1.0 Width of...
doc_30122
Bases: collections.abc.MutableMapping The container of all Spines in an Axes. The interface is dict-like mapping names (e.g. 'left') to Spine objects. Additionally it implements some pandas.Series-like features like accessing elements by attribute: spines['top'].set_visible(False) spines.top.set_visible(False) Multi...
doc_30123
The maximum length (in bytes) of the field. The maximum length is enforced in Django’s validation using MaxLengthValidator.
doc_30124
Return the visibility.
doc_30125
When a BabylMessage instance’s original headers are modified, the visible headers are not automatically modified to correspond. This method updates the visible headers as follows: each visible header with a corresponding original header is set to the value of the original header, each visible header without a correspon...
doc_30126
Acquire a semaphore. If the internal counter is greater than zero, decrement it by one and return True immediately. If it is zero, wait until a release() is called and return True.
doc_30127
Sums the product of the elements of the input operands along dimensions specified using a notation based on the Einstein summation convention. Einsum allows computing many common multi-dimensional linear algebraic array operations by representing them in a short-hand format based on the Einstein summation convention,...
doc_30128
Return the square root of the argument to full precision.
doc_30129
See Migration guide for more details. tf.compat.v1.config.experimental.get_device_details tf.config.experimental.get_device_details( device ) This API takes in a tf.config.PhysicalDevice returned by tf.config.list_physical_devices. It returns a dict with string keys containing various details about the device. E...
doc_30130
Class to convert formats, names, titles description to a dtype. After constructing the format_parser object, the dtype attribute is the converted data-type: dtype = format_parser(formats, names, titles).dtype Parameters formatsstr or list of str The format description, either specified as a string with comma-se...
doc_30131
tf.compat.v1.nn.conv3d_transpose( value, filter=None, output_shape=None, strides=None, padding='SAME', data_format='NDHWC', name=None, input=None, filters=None, dilations=None ) This operation is sometimes called "deconvolution" after (Zeiler et al., 2010), but is really the transpose (gradient) of conv3d ...
doc_30132
Set the extra representation of the module To print customized extra information, you should re-implement this method in your own modules. Both single-line and multi-line strings are acceptable.
doc_30133
foo = Foo() app = Flask(__name__) app.config.update( FOO_BAR='baz', FOO_SPAM='eggs', ) foo.init_app(app) Building Extensions While the PyPI contains many Flask extensions, you may not find an extension that fits your need. If this is the case, you can create your own. Read Flask Extension Development to dev...
doc_30134
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyAdagrad tf.raw_ops.ResourceSparseApplyAdagrad( var, accum, lr, grad, indices, use_locking=False, update_slots=True, name=None ) That is for rows we have grad for, we update var and accum as follows: accum += grad * grad var -= lr * gra...
doc_30135
Defines a formula for differentiating the operation. This function is to be overridden by all subclasses. It must accept a context ctx as the first argument, followed by as many outputs did forward() return, and it should return as many tensors, as there were inputs to forward(). Each argument is the gradient w.r.t t...
doc_30136
Soft Voting/Majority Rule classifier for unfitted estimators. Read more in the User Guide. New in version 0.17. Parameters estimatorslist of (str, estimator) tuples Invoking the fit method on the VotingClassifier will fit clones of those original estimators that will be stored in the class attribute self.esti...
doc_30137
Alias for set_linestyle.
doc_30138
See Migration guide for more details. tf.compat.v1.group tf.group( *inputs, **kwargs ) When this op finishes, all ops in inputs have finished. This op has no output. Note: In TensorFlow 2 with eager and/or Autograph, you should not require this method, as code executes in your expected order. Only use tf.group ...
doc_30139
Returns whether the kernel is stationary.
doc_30140
See Migration guide for more details. tf.compat.v1.random.stateless_poisson tf.random.stateless_poisson( shape, seed, lam, dtype=tf.dtypes.int32, name=None ) The generated values follow a Poisson distribution with specified rate parameter. This is a stateless version of tf.random.poisson: if run twice with the s...
doc_30141
class sklearn.feature_extraction.image.PatchExtractor(*, patch_size=None, max_patches=None, random_state=None) [source] Extracts patches from a collection of images Read more in the User Guide. New in version 0.9. Parameters patch_sizetuple of int (patch_height, patch_width), default=None The dimensions of on...
doc_30142
Get a resource from a package. This is a wrapper for the loader get_data API. The package argument should be the name of a package, in standard module format (foo.bar). The resource argument should be in the form of a relative filename, using / as the path separator. The parent directory name .. is not allowed, and nor...
doc_30143
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_30144
Draw samples from a Gamma distribution. Samples are drawn from a Gamma distribution with specified parameters, shape (sometimes designated “k”) and scale (sometimes designated “theta”), where both parameters are > 0. Note New code should use the gamma method of a default_rng() instance instead; please see the Quick ...
doc_30145
Return the encoding of the message catalog file.
doc_30146
See torch.mm()
doc_30147
This exception is raised if source and destination in copyfile() are the same file. New in version 3.4.
doc_30148
Check if coefficients match. New in version 1.6.0. Parameters otherclass instance The other class must have the coef attribute. Returns boolboolean True if the coefficients are the same, False otherwise.
doc_30149
tf.nn.batch_norm_with_global_normalization( input, mean, variance, beta, gamma, variance_epsilon, scale_after_normalization, name=None ) This op is deprecated. See tf.nn.batch_normalization. Args input A 4D input Tensor. mean A 1D mean Tensor with size matching the last dimension of t. This is t...
doc_30150
tf.compat.v1.scatter_sub( ref, indices, updates, use_locking=False, name=None ) # 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, ..., j, ...] This operation...
doc_30151
The bytes which represent the bytecode version number. If you need help with loading/writing bytecode then consider importlib.abc.SourceLoader. New in version 3.4.
doc_30152
Represents the C signed long long datatype. The constructor accepts an optional integer initializer; no overflow checking is done.
doc_30153
See Migration guide for more details. tf.compat.v1.signal.vorbis_window tf.signal.vorbis_window( window_length, dtype=tf.dtypes.float32, name=None ) Args window_length A scalar Tensor indicating the window length to generate. dtype The data type to produce. Must be a floating point type. name ...
doc_30154
Enter echo mode. In echo mode, each character input is echoed to the screen as it is entered.
doc_30155
See Migration guide for more details. tf.compat.v1.cholesky_solve, tf.compat.v1.linalg.cholesky_solve tf.linalg.cholesky_solve( chol, rhs, name=None ) Specifically, returns X from A X = RHS, where A = L L^T, L is the chol arg and RHS is the rhs arg. # Solve 10 separate 2x2 linear systems: A = ... # shape 10 x 2 ...
doc_30156
Subclass of unittest.SkipTest. Raised when a resource (such as a network connection) is not available. Raised by the requires() function.
doc_30157
See Migration guide for more details. tf.compat.v1.keras.backend.set_floatx tf.keras.backend.set_floatx( value ) Note: It is not recommended to set this to float16 for training, as this will likely cause numeric stability issues. Instead, mixed precision, which is using a mix of float16 and float32, can be used...
doc_30158
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_30159
alias of werkzeug.formparser.FormDataParser
doc_30160
Standardize a dataset along any axis Center to the median and component wise scale according to the interquartile range. Read more in the User Guide. Parameters X{array-like, sparse matrix} of shape (n_sample, n_features) The data to center and scale. axisint, default=0 axis used to compute the medians and ...
doc_30161
Django view for the model instance addition page. See note below.
doc_30162
Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
doc_30163
os.RTLD_NOW os.RTLD_GLOBAL os.RTLD_LOCAL os.RTLD_NODELETE os.RTLD_NOLOAD os.RTLD_DEEPBIND Flags for use with the setdlopenflags() and getdlopenflags() functions. See the Unix manual page dlopen(3) for what the different flags mean. New in version 3.3.
doc_30164
Similar to add_library, but the specified library is installed. Most C libraries used with distutils are only used to build python extensions, but libraries built through this method will be installed so that they can be reused by third-party packages. Parameters namestr Name of the installed library. sources...
doc_30165
Return a context manager for temporarily changing rcParams. Parameters rcdict The rcParams to temporarily set. fnamestr or path-like A file with Matplotlib rc settings. If both fname and rc are given, settings from rc take precedence. See also The matplotlibrc file Examples Passing explicit values v...
doc_30166
Return whether image composition by Matplotlib should be skipped. Raster backends should usually return False (letting the C-level rasterizer take care of image composition); vector backends should usually return not rcParams["image.composite_image"].
doc_30167
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_30168
Concrete implementation of importlib.abc.Loader.load_module() where specifying the name of the module to load is optional. Deprecated since version 3.6: Use importlib.abc.Loader.exec_module() instead.
doc_30169
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesCalculateBestFeatureSplit tf.raw_ops.BoostedTreesCalculateBestFeatureSplit( node_id_range, stats_summary, l1, l2, tree_complexity, min_node_weight, logits_dimension, split_type='inequality', name=None ) The split information is the best t...
doc_30170
The PopupMenu widget can be used as a replacement of the tk_popup command. The advantage of the Tix PopupMenu widget is it requires less application code to manipulate.
doc_30171
tkinter.messagebox.showerror(title=None, message=None, **options)
doc_30172
The get_exclude method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return a list of fields, as described in ModelAdmin.exclude.
doc_30173
draw a Bezier curve bezier(surface, points, steps, color) -> None Draws a Bézier curve on the given surface. Parameters: surface (Surface) -- surface to draw on points (tuple(coordinate) or list(coordinate)) -- a sequence of 3 or more (x, y) coordinates used to form a curve, where each coordinate in the sequ...
doc_30174
Aggregate using one or more operations over the specified axis. Parameters func:function, str, list or dict Function to use for aggregating the data. If a function, must either work when passed a Series/Dataframe or when passed to Series/Dataframe.apply. Accepted combinations are: function string function name...
doc_30175
if set to False accessing properties on the response object will not try to consume the response iterator and convert it into a list. Changelog New in version 0.6.2: That attribute was previously called implicit_seqence_conversion. (Notice the typo). If you did use this feature, you have to adapt your code to the name...
doc_30176
Imputation transformer for completing missing values. Read more in the User Guide. New in version 0.20: SimpleImputer replaces the previous sklearn.preprocessing.Imputer estimator which is now removed. Parameters missing_valuesint, float, str, np.nan or None, default=np.nan The placeholder for the missing val...
doc_30177
Receive normal data (up to bufsize bytes) and ancillary data from the socket. The ancbufsize argument sets the size in bytes of the internal buffer used to receive the ancillary data; it defaults to 0, meaning that no ancillary data will be received. Appropriate buffer sizes for ancillary data can be calculated using C...
doc_30178
See Migration guide for more details. tf.compat.v1.OptionalSpec, tf.compat.v1.data.experimental.OptionalStructure tf.OptionalSpec( element_spec ) For instance, tf.OptionalSpec can be used to define a tf.function that takes tf.experimental.Optional as an input argument: @tf.function(input_signature=[tf.OptionalS...
doc_30179
This closes the database connection. Note that this does not automatically call commit(). If you just close your database connection without calling commit() first, your changes will be lost!
doc_30180
A class attribute describing the function that will be generated. Specifically, the function will be interpolated as the function placeholder within template. Defaults to None.
doc_30181
Return system configuration information relevant to an open file. name specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX.1, Unix 95, Unix 98, and others). Some platforms define additional names as well...
doc_30182
A custom setuptools build extension . This setuptools.build_ext subclass takes care of passing the minimum required compiler flags (e.g. -std=c++14) as well as mixed C++/CUDA compilation (and support for CUDA files in general). When using BuildExtension, it is allowed to supply a dictionary for extra_compile_args (ra...
doc_30183
Return the visibility.
doc_30184
display video captured live from an attached camera camera.main() -> None A simple live video player, it uses the first available camera it finds on the system.
doc_30185
Return the clip rectangle as a Bbox instance.
doc_30186
Context manager for global scikit-learn configuration Parameters assume_finitebool, default=False If True, validation for finiteness will be skipped, saving time, but leading to potential crashes. If False, validation for finiteness will be performed, avoiding error. Global default: False. working_memoryint, ...
doc_30187
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_30188
See Migration guide for more details. tf.compat.v1.raw_ops.Cumprod tf.raw_ops.Cumprod( x, axis, exclusive=False, reverse=False, name=None ) By default, this op performs an inclusive cumprod, which means that the first element of the input is identical to the first element of the output: tf.cumprod([a, b, c]) # ...
doc_30189
Select a scale for the range from vmin to vmax. Subclasses should override this method to change locator behaviour.
doc_30190
tf.compat.v1.batch_to_space( input, crops, block_size, name=None, block_shape=None ) This is a legacy version of the more general BatchToSpaceND. Rearranges (permutes) data from batch into blocks of spatial data, followed by cropping. This is the reverse transformation of SpaceToBatch. More specifically, this op o...
doc_30191
Fit the hierarchical clustering from features or distance matrix, and return cluster labels. Parameters Xarray-like of shape (n_samples, n_features) or (n_samples, n_samples) Training instances to cluster, or distances between instances if affinity='precomputed'. yIgnored Not used, present here for API consis...
doc_30192
Turn on attribute A_STANDOUT.
doc_30193
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_30194
Module email Represent and manipulate messages. Mailbox objects class mailbox.Mailbox A mailbox, which may be inspected and modified. The Mailbox class defines an interface and is not intended to be instantiated. Instead, format-specific subclasses should inherit from Mailbox and your code should instantiate a...
doc_30195
Uses Pillow to ensure that value.name (value is a File) has a valid image extension.
doc_30196
A callable object or function. Calls to the partial object will be forwarded to func with new arguments and keywords.
doc_30197
tf.initializers.serialize Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.initializers.serialize tf.keras.initializers.serialize( initializer )
doc_30198
tf.compat.v1.metrics.true_positives_at_thresholds( labels, predictions, thresholds, weights=None, metrics_collections=None, updates_collections=None, name=None ) If weights is None, weights default to 1. Use weights of 0 to mask values. Args labels A Tensor whose shape matches predictions. Will be cas...
doc_30199
Starts the listener. This starts up a background thread to monitor the queue for LogRecords to process.