_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_6000
Returns a list of all hyperparameter.
doc_6001
RANSAC (RANdom SAmple Consensus) algorithm. RANSAC is an iterative algorithm for the robust estimation of parameters from a subset of inliers from the complete data set. Read more in the User Guide. Parameters base_estimatorobject, default=None Base estimator object which implements the following methods: fit...
doc_6002
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_6003
See Migration guide for more details. tf.compat.v1.manip.roll, tf.compat.v1.roll tf.roll( input, shift, axis, name=None ) The elements are shifted positively (towards larger indices) by the offset of shift along the dimension of axis. Negative shift values will shift elements in the opposite direction. Elements ...
doc_6004
Performs the element-wise division of tensor1 by tensor2, multiply the result by the scalar value and add it to input. Warning Integer division with addcdiv is no longer supported, and in a future release addcdiv will perform a true division of tensor1 and tensor2. The historic addcdiv behavior can be implemented as (...
doc_6005
Return the kernel k(X, Y) and optionally its gradient. Parameters Xndarray of shape (n_samples_X, n_features) Left argument of the returned kernel k(X, Y) Yndarray of shape (n_samples_Y, n_features), default=None Right argument of the returned kernel k(X, Y). If None, k(X, X) if evaluated instead. eval_gr...
doc_6006
Wrap a concurrent.futures.Future object in a asyncio.Future object.
doc_6007
NONE: Un-reduced weighted losses with the same shape as input. SUM: Scalar sum of weighted losses. MEAN: Scalar SUM divided by sum of weights. DEPRECATED. SUM_OVER_BATCH_SIZE: Scalar SUM divided by number of elements in losses. SUM_OVER_NONZERO_WEIGHTS: Scalar SUM divided by number of non-zero weights. DEPRECATED. ...
doc_6008
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
doc_6009
Bases: object A Matplotlib event. The following attributes are defined and shown with their default values. Subclasses may define additional attributes. Attributes namestr The event name. canvasFigureCanvasBase The backend-specific canvas instance generating the event. guiEvent The GUI event that triggere...
doc_6010
Calls str.decode element-wise. See also char.decode
doc_6011
Compute the length of each element in the Series/Index. The element may be a sequence (such as a string, tuple or list) or a collection (such as a dictionary). Returns Series or Index of int A Series or Index of integer values indicating the length of each element in the Series or Index. See also str.len P...
doc_6012
Disables registry reflection for 32-bit processes running on a 64-bit operating system. key is an already open key, or one of the predefined HKEY_* constants. Will generally raise NotImplementedError if executed on a 32-bit operating system. If the key is not on the reflection list, the function succeeds but has no eff...
doc_6013
Compute a 16-bit CRC value of data, starting with value as the initial CRC, and return the result. This uses the CRC-CCITT polynomial x16 + x12 + x5 + 1, often represented as 0x1021. This CRC is used in the binhex4 format.
doc_6014
Return a formatted view of the bytecode operations (the same as printed by dis.dis(), but returned as a multi-line string).
doc_6015
Checks for any ASCII printable character including space.
doc_6016
See Migration guide for more details. tf.compat.v1.raw_ops.AnonymousIteratorV2 tf.raw_ops.AnonymousIteratorV2( output_types, output_shapes, name=None ) Args output_types A list of tf.DTypes that has length >= 1. output_shapes A list of shapes (each a tf.TensorShape or list of ints) that has length...
doc_6017
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_6018
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_6019
control which events are allowed on the queue set_allowed(type) -> None set_allowed(typelist) -> None set_allowed(None) -> None The given event types are allowed to appear on the event queue. By default, all event types can be placed on the queue. It is safe to enable an event type multiple times. If None is passed a...
doc_6020
The directory is opaque when viewed through a union stack.
doc_6021
Print (to sys.stdout) a comparison between a and b.
doc_6022
Fit the imputer on X. Parameters X{array-like, sparse matrix}, shape (n_samples, n_features) Input data, where n_samples is the number of samples and n_features is the number of features. Returns selfSimpleImputer
doc_6023
A while loop. test holds the condition, such as a Compare node. >> print(ast.dump(ast.parse(""" ... while x: ... ... ... else: ... ... ... """), indent=4)) Module( body=[ While( test=Name(id='x', ctx=Load()), body=[ Expr( value=Constant(value...
doc_6024
Transform features using quantiles information. This method transforms the features to follow a uniform or a normal distribution. Therefore, for a given feature, this transformation tends to spread out the most frequent values. It also reduces the impact of (marginal) outliers: this is therefore a robust preprocessin...
doc_6025
See Migration guide for more details. tf.compat.v1.image.psnr tf.image.psnr( a, b, max_val, name=None ) This is intended to be used on signals (or images). Produces a PSNR value for each image in batch. The last three dimensions of input are expected to be [height, width, depth]. Example: # Read images from file...
doc_6026
Return whether the artist uses clipping.
doc_6027
A bounded semaphore object: a close analog of threading.BoundedSemaphore. A solitary difference from its close analog exists: its acquire method’s first argument is named block, as is consistent with Lock.acquire(). Note On Mac OS X, this is indistinguishable from Semaphore because sem_getvalue() is not implemented on...
doc_6028
Remove element elem from the set if it is present.
doc_6029
Statistic difference on memory allocations between an old and a new Snapshot instance. Snapshot.compare_to() returns a list of StatisticDiff instances. See also the Statistic class. count Number of memory blocks in the new snapshot (int): 0 if the memory blocks have been released in the new snapshot. count_diff...
doc_6030
class sklearn.linear_model.MultiTaskLasso(alpha=1.0, *, fit_intercept=True, normalize=False, copy_X=True, max_iter=1000, tol=0.0001, warm_start=False, random_state=None, selection='cyclic') [source] Multi-task Lasso model trained with L1/L2 mixed-norm as regularizer. The optimization objective for Lasso is: (1 / (2 *...
doc_6031
Duplicate file descriptor fd to fd2, closing the latter first if necessary. Return fd2. The new file descriptor is inheritable by default or non-inheritable if inheritable is False. Changed in version 3.4: Add the optional inheritable parameter. Changed in version 3.7: Return fd2 on success. Previously, None was alw...
doc_6032
tf.debugging.assert_near( x, y, rtol=None, atol=None, message=None, summarize=None, name=None ) This Op checks that x[i] - y[i] < atol + rtol * tf.abs(y[i]) holds for every pair of (possibly broadcast) elements of x and y. If both x and y are empty, this is trivially satisfied. If any elements of x and y are not c...
doc_6033
Pixel width and height used for georeferencing the raster, as a point object with x and y members. See geotransform for more information. >>> rst = GDALRaster({'width': 10, 'height': 20, 'srid': 4326}) >>> rst.scale [1.0, -1.0] >>> rst.scale.x = 2 >>> rst.scale [2.0, -1.0]
doc_6034
This class can be used to create an HTML table (or a complete HTML file containing the table) showing a side by side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode. The constructor for this class is: __init__(t...
doc_6035
Alias for set_facecolor.
doc_6036
See torch.fmax()
doc_6037
Write the figure to a JPEG file. Parameters filename_or_objstr or path-like or file-like The file to write to. Other Parameters pil_kwargsdict, optional Additional keyword arguments that are passed to PIL.Image.Image.save when saving the figure.
doc_6038
sklearn.datasets.make_classification(n_samples=100, n_features=20, *, n_informative=2, n_redundant=2, n_repeated=0, n_classes=2, n_clusters_per_class=2, weights=None, flip_y=0.01, class_sep=1.0, hypercube=True, shift=0.0, scale=1.0, shuffle=True, random_state=None) [source] Generate a random n-class classification pr...
doc_6039
tf.experimental.numpy.isposinf( x ) Unsupported arguments: out. See the NumPy documentation for numpy.isposinf.
doc_6040
Receive up to maxfds file descriptors from an AF_UNIX socket sock. Return (msg, list(fds), flags, addr). Consult recvmsg() for the documentation of these parameters. Availability: Unix supporting recvmsg() and SCM_RIGHTS mechanism. New in version 3.9. Note Any truncated integers at the end of the list of file descri...
doc_6041
Return the event loop the Future object is bound to. New in version 3.7.
doc_6042
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessWhile tf.raw_ops.StatelessWhile( input, cond, body, output_shapes=[], parallel_iterations=10, name=None ) Args input A list of Tensor objects. A list of input tensors whose types are T. cond A function decorated with @Defun. A fun...
doc_6043
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_6044
Convert the data back to the original representation. Inverts the transform operation performed on an array. This operation can only be performed after SimpleImputer is instantiated with add_indicator=True. Note that inverse_transform can only invert the transform in features that have binary indicators for missing v...
doc_6045
See Migration guide for more details. tf.compat.v1.keras.datasets.cifar10.load_data tf.keras.datasets.cifar10.load_data() This is a dataset of 50,000 32x32 color training images and 10,000 test images, labeled over 10 categories. See more info at the CIFAR homepage. Returns Tuple of Numpy arrays: (x_train, y_...
doc_6046
router = routers.SimpleRouter() router.register(r'users', UserViewSet) router.register(r'accounts', AccountViewSet) urlpatterns = router.urls There are two mandatory arguments to the register() method: prefix - The URL prefix to use for this set of routes. viewset - The viewset class. Optionally, you may also spe...
doc_6047
Composes multiple transforms in a chain. The transforms being composed are responsible for caching. Parameters parts (list of Transform) – A list of transforms to compose. cache_size (int) – Size of cache. If zero, no caching is done. If one, the latest single value is cached. Only 0 and 1 are supported.
doc_6048
Group has execute permission.
doc_6049
See Migration guide for more details. tf.compat.v1.raw_ops.ConfigureTPUEmbedding tf.raw_ops.ConfigureTPUEmbedding( config, name=None ) Args config A string. Serialized tensorflow.tpu.TPUEmbeddingConfiguration that describes the embedding lookups of the program. name A name for the operation (optio...
doc_6050
Return Less than or equal to of series and other, element-wise (binary operator le). Equivalent to series <= other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existing...
doc_6051
tf.compat.v1.wrap_function( fn, signature, name=None ) The python function fn will be called once with symbolic arguments specified in the signature, traced, and turned into a graph function. Any variables created by fn will be owned by the object returned by wrap_function. The resulting graph function can be call...
doc_6052
Complex-conjugate all elements. Refer to numpy.conjugate for full documentation. See also numpy.conjugate equivalent function
doc_6053
Concrete class for urldefrag() results containing str data. The encode() method returns a DefragResultBytes instance. New in version 3.2.
doc_6054
Return the tzinfo instance of x or of its first element, or None
doc_6055
Returns whether the kernel is stationary.
doc_6056
Alias for get_edgecolor.
doc_6057
Convert an image to boolean format. Parameters imagendarray Input image. force_copybool, optional Force a copy of the data, irrespective of its current dtype. Returns outndarray of bool (bool_) Output image. Notes The upper half of the input dtype’s positive range is True, and the lower half is ...
doc_6058
A set object indicating which functions in the os module accept False for their follow_symlinks parameter on the local platform. Different platforms provide different features, and the underlying functionality Python uses to implement follow_symlinks is not available on all platforms Python supports. For consistency’s ...
doc_6059
enum.IntFlag collection of VERIFY_* constants. New in version 3.6.
doc_6060
Close the archive file. You must call close() before exiting your program or essential records will not be written.
doc_6061
Events that must be waited for on this file object.
doc_6062
Register a URL value preprocessor function for all view functions in the application. These functions will be called before the before_request() functions. The function can modify the values captured from the matched url before they are passed to the view. For example, this can be used to pop a common language code val...
doc_6063
The current configuration object (flask.config) Changelog Changed in version 0.10: This is now always available, even in imported templates. New in version 0.6. request The current request object (flask.request). This variable is unavailable if the template was rendered without an active request context. ...
doc_6064
Return indices of the maximum values along the given axis. Refer to numpy.argmax for full documentation. See also numpy.argmax equivalent function
doc_6065
matches(self, d, **kwargs) Try to match a single dict with the supplied arguments. match_value(self, k, dv, v) Try to match a single stored value (dv) with a supplied value (v).
doc_6066
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_6067
Returns a list of template names to search for when rendering the template. The first template that is found will be used. The default implementation will return a list containing template_name (if it is specified).
doc_6068
'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_6069
Return an unbound copy of this rule. This can be useful if want to reuse an already bound URL for another map. See get_empty_kwargs to override what keyword arguments are provided to the new copy. Return type werkzeug.routing.Rule
doc_6070
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_6071
A page representing a list of objects. While this view is executing, self.object_list will contain the list of objects (usually, but not necessarily a queryset) that the view is operating upon. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.list.MultipleObjectT...
doc_6072
Return a list of URLs, one for each element of the collection. The list contains None for elements without a URL. See Hyperlinks for an example.
doc_6073
In-place version of cosh()
doc_6074
draw multiple contiguous straight antialiased line segments aalines(surface, color, closed, points) -> Rect aalines(surface, color, closed, points, blend=1) -> Rect Draws a sequence of contiguous straight antialiased lines on the given surface. Parameters: surface (Surface) -- surface to draw on color (Color...
doc_6075
returns the Euclidean magnitude of the vector. magnitude() -> float calculates the magnitude of the vector which follows from the theorem: vec.magnitude() == math.sqrt(vec.x**2 + vec.y**2 + vec.z**2)
doc_6076
A specification for a module’s import-system-related state. This is typically exposed as the module’s __spec__ attribute. In the descriptions below, the names in parentheses give the corresponding attribute available directly on the module object. E.g. module.__spec__.origin == module.__file__. Note however that while ...
doc_6077
Return a list of all the values for the named header. The returned list will be sorted in the order they appeared in the original header list or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. If no fields exist with the given name, ret...
doc_6078
Set the way one half is displayed. one_halfstr, default: r"frac{1}{2}" The string used to represent 1/2.
doc_6079
uninitialize all pygame modules quit() -> None Uninitialize all pygame modules that have previously been initialized. When the Python interpreter shuts down, this method is called regardless, so your program should not need it, except when it wants to terminate its pygame resources and continue. It is safe to call th...
doc_6080
Returns a binary digest for the PBKDF2 hash algorithm of data with the given salt. It iterates iterations times and produces a key of keylen bytes. By default, SHA-256 is used as hash function; a different hashlib hashfunc can be provided. Parameters data (Union[str, bytes]) – the data to derive. salt (Union[str, ...
doc_6081
Close the connection to the server.
doc_6082
Check whether all characters in each string are digits. This is equivalent to running the Python string method str.isdigit() for each element of the Series/Index. If a string has zero characters, False is returned for that check. Returns Series or Index of bool Series or Index of boolean values with the same leng...
doc_6083
Diagnosing machine parameters. Parameters float_convfunction, optional Function that converts an integer or integer array to a float or float array. Default is float. int_convfunction, optional Function that converts a float or float array to an integer or integer array. Default is int. float_to_floatfunc...
doc_6084
Close connection established in open. This method is implicitly called by IMAP4.logout(). You may override this method.
doc_6085
The error message used by ValidationError if validation fails. Defaults to "Enter a valid value".
doc_6086
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_6087
Generate variates from a multivariate hypergeometric distribution. The multivariate hypergeometric distribution is a generalization of the hypergeometric distribution. Choose nsample items at random without replacement from a collection with N distinct types. N is the length of colors, and the values in colors are th...
doc_6088
Cascade deletes. Django emulates the behavior of the SQL constraint ON DELETE CASCADE and also deletes the object containing the ForeignKey. Model.delete() isn’t called on related models, but the pre_delete and post_delete signals are sent for all deleted objects.
doc_6089
Add a rotation (in radians) around the point (x, y) in place. Returns self, so this method can easily be chained with more calls to rotate(), rotate_deg(), translate() and scale().
doc_6090
Windows only: Instances of this class represent loaded shared libraries, functions in these libraries use the stdcall calling convention, and are assumed to return int by default. On Windows CE only the standard calling convention is used, for convenience the WinDLL and OleDLL use the standard calling convention on thi...
doc_6091
Return the proleptic Gregorian ordinal of the date. The same as self.date().toordinal().
doc_6092
See Migration guide for more details. tf.compat.v1.raw_ops.SparseSegmentMeanWithNumSegments tf.raw_ops.SparseSegmentMeanWithNumSegments( data, indices, segment_ids, num_segments, name=None ) Like SparseSegmentMean, but allows missing ids in segment_ids. If an id is missing, the output tensor at that position wil...
doc_6093
Return a key suitable for sorting between networks and addresses. Address and Network objects are not sortable by default; they’re fundamentally different, so the expression: IPv4Address('192.0.2.0') <= IPv4Network('192.0.2.0/24') doesn’t make sense. There are some times however, where you may wish to have ipaddress s...
doc_6094
Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parameters module (nn.Module) – module containing the tensor to prune name (str) – parameter name within module on which pruning will act. amount (int or float) –...
doc_6095
Return the names of all projections currently registered.
doc_6096
This iterates over all the subparts of msg, returning only those subparts that match the MIME type specified by maintype and subtype. Note that subtype is optional; if omitted, then subpart MIME type matching is done only with the main type. maintype is optional too; it defaults to text. Thus, by default typed_subpart_...
doc_6097
Return index and pixel distance to closest index.
doc_6098
Set the path effects. Parameters path_effectsAbstractPathEffect
doc_6099
A shorthand for format_list(extract_tb(tb, limit)).