_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_4600
A base class for implementing streaming protocols with manual control of the receive buffer.
doc_4601
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_4602
Construct an ExtensionArray of this dtype with the given shape. Analogous to numpy.empty. Parameters shape:int or tuple[int] Returns ExtensionArray
doc_4603
Example: del request.session['fav_color']. This raises KeyError if the given key isn’t already in the session.
doc_4604
Create a GridSpec within this subplot. The created GridSpecFromSubplotSpec will have this SubplotSpec as a parent. Parameters nrowsint Number of rows in grid. ncolsint Number or columns in grid. Returns GridSpecFromSubplotSpec Other Parameters **kwargs All other parameters are passed to GridSpecFr...
doc_4605
Creates a criterion that measures the mean squared error (squared L2 norm) between each element in the input xx and target yy . The unreduced (i.e. with reduction set to 'none') loss can be described as: ℓ(x,y)=L={l1,…,lN}⊤,ln=(xn−yn)2,\ell(x, y) = L = \{l_1,\dots,l_N\}^\top, \quad l_n = \left( x_n - y_n \right)^2,...
doc_4606
Note: In TensorFlow 2.0, AutoGraph is automatically applied when using tf.function. This module contains lower-level APIs for advanced use. For more information, see the AutoGraph guide. By equivalent graph code we mean code that generates a TensorFlow graph when run. The generated graph has the same effects as the or...
doc_4607
Return unbiased skew over requested axis. Normalized by N-1. Parameters axis:{index (0), columns (1)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when computing the result. level:int or level name, default None If the axis is a MultiIndex (hierarchical), coun...
doc_4608
Drawing function for violin plots. Draw a violin plot for each column of vpstats. Each filled area extends to represent the entire data range, with optional lines at the mean, the median, the minimum, the maximum, and the quantiles values. Parameters vpstatslist of dicts A list of dictionaries containing stats ...
doc_4609
determine the amount of space needed to render text size(text) -> (width, height) Returns the dimensions needed to render the text. This can be used to help determine the positioning needed for text before it is rendered. It can also be used for wordwrapping and other layout effects. Be aware that most fonts use kern...
doc_4610
Divide the channels in a tensor of shape (∗,C,H,W)(*, C , H, W) into g groups and rearrange them as (∗,Cg,g,H,W)(*, C \frac g, g, H, W) , while keeping the original tensor shape. Parameters groups (int) – number of groups to divide channels in. Examples: >>> channel_shuffle = nn.ChannelShuffle(2) >>> input = tor...
doc_4611
By default, if an expected output block contains a line containing only the string <BLANKLINE>, then that line will match a blank line in the actual output. Because a genuinely blank line delimits the expected output, this is the only way to communicate that a blank line is expected. When DONT_ACCEPT_BLANKLINE is speci...
doc_4612
See Migration guide for more details. tf.compat.v1.data.experimental.MapVectorizationOptions tf.data.experimental.MapVectorizationOptions() Attributes enabled Whether to vectorize map transformations. If None, defaults to False. use_choose_fastest Whether to use ChooseFastestBranchDataset with this tr...
doc_4613
Returns the mean accuracy on the given test data and labels. Parameters Xarray-like of shape (n_samples, n_features) Test samples yarray-like of shape (n_samples, n_outputs) True values for X Returns scoresfloat accuracy_score of self.predict(X) versus y
doc_4614
Return a new set object, optionally with elements taken from iterable. set is a built-in class. See set and Set Types — set, frozenset for documentation about this class. For other containers see the built-in frozenset, list, tuple, and dict classes, as well as the collections module.
doc_4615
Sets a limit to the available choices for this field when this field is rendered using a ModelForm or the admin (by default, all objects in the queryset are available to choose). Either a dictionary, a Q object, or a callable returning a dictionary or Q object can be used. For example: staff_member = models.ForeignKey(...
doc_4616
Set the value array from array-like A. Parameters Aarray-like or None The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A.
doc_4617
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_4618
See Migration guide for more details. tf.compat.v1.raw_ops.ExtractJpegShape tf.raw_ops.ExtractJpegShape( contents, output_type=tf.dtypes.int32, name=None ) This op only parses the image header, so it is much faster than DecodeJpeg. Args contents A Tensor of type string. 0-D. The JPEG-encoded image. ...
doc_4619
Add a new header to the set.
doc_4620
tf.sparse.reduce_max( sp_input, axis=None, keepdims=None, output_is_sparse=False, name=None ) This Op takes a SparseTensor and is the sparse counterpart to tf.reduce_max(). In particular, this Op also returns a dense Tensor if output_is_sparse is False, or a SparseTensor if output_is_sparse is True. Note: A gradi...
doc_4621
Like Artist.get_window_extent, but includes any clipping. Parameters rendererRendererBase subclass renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns Bbox The enclosing bounding box (in figure pixel coordinates).
doc_4622
For each element in a, return the highest index in the string where substring sub is found, such that sub is contained within [start, end]. Calls str.rfind element-wise. Parameters aarray-like of str or unicode substr or unicode start, endint, optional Optional arguments start and end are interpreted as in ...
doc_4623
See Migration guide for more details. tf.compat.v1.keras.datasets.cifar100.load_data tf.keras.datasets.cifar100.load_data( label_mode='fine' ) This is a dataset of 50,000 32x32 color training images and 10,000 test images, labeled over 100 fine-grained classes that are grouped into 20 coarse-grained classes. See...
doc_4624
Encode the data as a sparse combination of the dictionary atoms. Coding method is determined by the object parameter transform_algorithm. Parameters Xndarray of shape (n_samples, n_features) Test data to be transformed, must have the same number of features as the data used to train the model. Returns X_n...
doc_4625
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_4626
See Migration guide for more details. tf.compat.v1.signal.stft tf.signal.stft( signals, frame_length, frame_step, fft_length=None, window_fn=tf.signal.hann_window, pad_end=False, name=None ) Implemented with TPU/GPU-compatible ops and supports gradients. Args signals A [..., samples] float32/float64...
doc_4627
Test whether points lie inside a polygon. Parameters points(N, 2) array Input points, (x, y). verts(M, 2) array Vertices of the polygon, sorted either clockwise or anti-clockwise. The first point may (but does not need to be) duplicated. Returns mask(N,) array of bool True if corresponding point is ...
doc_4628
In-place version of acos()
doc_4629
__setitem__(key, message) update(arg) Warning These methods generate unique file names based upon the current process ID. When using multiple threads, undetected name clashes may occur and cause corruption of the mailbox unless threads are coordinated to avoid using these methods to manipulate the same mailbox sim...
doc_4630
Return the angle of the annulus.
doc_4631
tf.compat.v1.nn.depthwise_conv2d( input, filter, strides, padding, rate=None, name=None, data_format=None, dilations=None ) Given a 4D input tensor ('NHWC' or 'NCHW' data formats) and a filter tensor of shape [filter_height, filter_width, in_channels, channel_multiplier] containing in_channels convolutional fi...
doc_4632
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_4633
pygame module for controlling streamed audio The music module is closely tied to pygame.mixer. Use the music module to control the playback of music in the sound mixer. The difference between the music playback and regular Sound playback is that the music is streamed, and never actually loaded all at once. The mix...
doc_4634
__init__(level=NOTSET) Initializes the Handler instance by setting its level, setting the list of filters to the empty list and creating a lock (using createLock()) for serializing access to an I/O mechanism. createLock() Initializes a thread lock which can be used to serialize access to underlying I/O functi...
doc_4635
Handler for Line2D instances. See also HandlerLine2DCompound An earlier handler implementation, which used one artist for the line and another for the marker(s). Parameters marker_padfloat Padding between points in legend entry. numpointsint Number of points to show in legend entry. **kwargs Keyword...
doc_4636
tf.optimizers.schedules.ExponentialDecay Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.schedules.ExponentialDecay tf.keras.optimizers.schedules.ExponentialDecay( initial_learning_rate, decay_steps, decay_rate, staircase=False, name=None ) When training a model, ...
doc_4637
Opens socket to port at host. The optional timeout parameter specifies a timeout in seconds for the connection attempt. If timeout is not given or is None, the global default socket timeout is used. Also note that if the timeout parameter is set to be zero, it will raise a ValueError to reject creating a non-blocking s...
doc_4638
See Migration guide for more details. tf.compat.v1.raw_ops.FusedResizeAndPadConv2D tf.raw_ops.FusedResizeAndPadConv2D( input, size, paddings, filter, mode, strides, padding, resize_align_corners=False, name=None ) It's often possible to do spatial transformations more efficiently as part of the packing stage...
doc_4639
Compares two operands using their abstract representation.
doc_4640
Similar to map(func, *iterables) except: the iterables are collected immediately rather than lazily; func is executed asynchronously and several calls to func may be made concurrently. The returned iterator raises a concurrent.futures.TimeoutError if __next__() is called and the result isn’t available after timeout ...
doc_4641
get the current visibility state of the mouse cursor get_visible() -> bool Get the current visibility state of the mouse cursor. True if the mouse is visible, False otherwise. New in pygame 2.0.0.
doc_4642
Two DateOffset’s per month repeating on the first day of the month and day_of_month. Parameters n:int normalize:bool, default False day_of_month:int, {2, 3,…,27}, default 15 Attributes base Returns a copy of the calling offset object with n=1 and all other attributes equal. day_of_month ...
doc_4643
Insert column into DataFrame at specified location. Raises a ValueError if column is already contained in the DataFrame, unless allow_duplicates is set to True. Parameters loc:int Insertion index. Must verify 0 <= loc <= len(columns). column:str, number, or hashable object Label of the inserted column. va...
doc_4644
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_4645
Bases: matplotlib.transforms.Affine2DBase A composite transform formed by applying transform a then transform b. This version is an optimization that handles the case where both a and b are 2D affines. Create a new composite transform that is the result of applying Affine2DBase a then Affine2DBase b. You will general...
doc_4646
Glob the given relative pattern in the directory represented by this path, yielding all matching files (of any kind): >>> sorted(Path('.').glob('*.py')) [PosixPath('pathlib.py'), PosixPath('setup.py'), PosixPath('test_pathlib.py')] >>> sorted(Path('.').glob('*/*.py')) [PosixPath('docs/conf.py')] The “**” pattern means...
doc_4647
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyFtrlV2 tf.raw_ops.ResourceSparseApplyFtrlV2( var, accum, linear, grad, indices, lr, l1, l2, l2_shrinkage, lr_power, use_locking=False, multiply_linear_by_lr=False, name=None ) That is for rows we have grad for, we update var, accum...
doc_4648
Redirects to the login page, and then back to another URL after a successful login. Required arguments: next: The URL to redirect to after a successful login. Optional arguments: login_url: The URL of the login page to redirect to. Defaults to settings.LOGIN_URL if not supplied. redirect_field_name: The name of a...
doc_4649
Return str(self).
doc_4650
Count the number of deque elements equal to x. New in version 3.2.
doc_4651
Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ImageViewer. For example: viewer += Plugin(...) Also note that attach automatically calls the filter function so that the image matches the filtered value specified by attached widgets.
doc_4652
Deprecated since version 3.3: It is now possible to use property, property.getter(), property.setter() and property.deleter() with abstractmethod(), making this decorator redundant. A subclass of the built-in property(), indicating an abstract property. This special case is deprecated, as the property() decorator is ...
doc_4653
draw a textured polygon textured_polygon(surface, points, texture, tx, ty) -> None Draws a textured polygon on the given surface. For better performance, the surface and the texture should have the same format. A per-pixel alpha texture blit to a per-pixel alpha surface will differ from a pygame.Surface.blit() blit. ...
doc_4654
Returns the indices of the maximum values along an axis. Parameters aarray_like Input array. axisint, optional By default, the index is into the flattened array, otherwise along the specified axis. outarray, optional If provided, the result will be inserted into this array. It should be of the appropria...
doc_4655
Efficiently redraw a single artist. This method can only be used after an initial draw of the figure, because that creates and caches the renderer needed here. Examples using matplotlib.axes.Axes.draw_artist Faster rendering by using blitting
doc_4656
Return a string which is the concatenation of the strings in the sequence seq. See also char.join
doc_4657
Return the currently preferred plugin order. Returns pdict Dictionary of preferred plugin order, with function name as key and plugins (in order of preference) as value.
doc_4658
See Migration guide for more details. tf.compat.v1.raw_ops.BesselI1e tf.raw_ops.BesselI1e( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_4659
See Migration guide for more details. tf.compat.v1.raw_ops.Atan2 tf.raw_ops.Atan2( y, x, name=None ) This is the angle ( \theta \in [-\pi, \pi] ) such that [ x = r \cos(\theta) ] and [ y = r \sin(\theta) ] where (r = \sqrt(x^2 + y^2) ). Args y A Tensor. Must be one of the following types: bfloat16, half...
doc_4660
Swap the bytes of the array elements Toggle between low-endian and big-endian data representation by returning a byteswapped array, optionally swapped in-place. Arrays of byte-strings are not swapped. The real and imaginary parts of a complex number are swapped individually. Parameters inplacebool, optional If ...
doc_4661
See Migration guide for more details. tf.compat.v1.extract_volume_patches tf.extract_volume_patches( input, ksizes, strides, padding, name=None ) Args input A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, int64, bfloat16, uint16, half, uint32, uint64. 5-D Tenso...
doc_4662
input_type: 'text' template_name: 'django/forms/widgets/date.html' Renders as: <input type="text" ...> Takes same arguments as TextInput, with one more optional argument: format The format in which this field’s initial value will be displayed. If no format argument is provided, the default format is the fi...
doc_4663
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_4664
Converts a string to a floating point number, following the LC_NUMERIC settings.
doc_4665
A Base class for default legend handlers. The derived classes are meant to override create_artists method, which has a following signature.: def create_artists(self, legend, orig_handle, xdescent, ydescent, width, height, fontsize, trans): The overridden method needs to create a...
doc_4666
Alias for get_fontname.
doc_4667
Bases: matplotlib.ticker.MaxNLocator Dynamically find major tick positions. This is actually a subclass of MaxNLocator, with parameters nbins = 'auto' and steps = [1, 2, 2.5, 5, 10]. To know the values of the non-public parameters, please have a look to the defaults of MaxNLocator.
doc_4668
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters bbool
doc_4669
Computes the squared Mahalanobis distances of given observations. Parameters Xarray-like of shape (n_samples, n_features) The observations, the Mahalanobis distances of the which we compute. Observations are assumed to be drawn from the same distribution than the data used in fit. Returns distndarray of s...
doc_4670
See Migration guide for more details. tf.compat.v1.raw_ops.ResizeBicubicGrad tf.raw_ops.ResizeBicubicGrad( grads, original_image, align_corners=False, half_pixel_centers=False, name=None ) Args grads A Tensor of type float32. 4-D with shape [batch, height, width, channels]. original_image A Tensor...
doc_4671
class sklearn.cluster.DBSCAN(eps=0.5, *, min_samples=5, metric='euclidean', metric_params=None, algorithm='auto', leaf_size=30, p=None, n_jobs=None) [source] Perform DBSCAN clustering from vector array or distance matrix. DBSCAN - Density-Based Spatial Clustering of Applications with Noise. Finds core samples of high...
doc_4672
The flags for certificate verification operations. You can set flags like VERIFY_CRL_CHECK_LEAF by ORing them together. By default OpenSSL does neither require nor verify certificate revocation lists (CRLs). Available only with openssl version 0.9.8+. New in version 3.4. Changed in version 3.6: SSLContext.verify_fla...
doc_4673
Copy an element of an array to a standard Python scalar and return it. Parameters *argsArguments (variable number and type) none: in this case, the method only works for arrays with one element (a.size == 1), which element is copied into a standard Python scalar object and returned. int_type: this argument is ...
doc_4674
Return the inverse hyperbolic cosine of x. There is one branch cut, extending left from 1 along the real axis to -∞, continuous from above.
doc_4675
When a header parameter is encoded in RFC 2231 format, Message.get_param may return a 3-tuple containing the character set, language, and value. collapse_rfc2231_value() turns this into a unicode string. Optional errors is passed to the errors argument of str’s encode() method; it defaults to 'replace'. Optional fallba...
doc_4676
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_4677
A context manager used to try to prevent crash dialog popups on tests that are expected to crash a subprocess. On Windows, it disables Windows Error Reporting dialogs using SetErrorMode. On UNIX, resource.setrlimit() is used to set resource.RLIMIT_CORE’s soft limit to 0 to prevent coredump file creation. On both platfo...
doc_4678
A boolean; if True, the command prints a warning if the set of migrations on disk don’t match the migrations in the database. A warning doesn’t prevent the command from executing. Default value is False.
doc_4679
This abstract class cannot be rendered, but provides the basic attribute attrs. You may also implement or override the render() method on custom widgets. attrs A dictionary containing HTML attributes to be set on the rendered widget. >>> from django import forms >>> name = forms.TextInput(attrs={'size': 10, 'title'...
doc_4680
[Deprecated] Notes Deprecated since version 3.4:
doc_4681
Compute group sizes. Returns DataFrame or Series Number of rows in each group as a Series if as_index is True or a DataFrame if as_index is False. See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.
doc_4682
y-displacement of the part from the origin.
doc_4683
See Migration guide for more details. tf.compat.v1.raw_ops.NcclReduce tf.raw_ops.NcclReduce( input, reduction, name=None ) Reduces input from num_devices using reduction to a single device. The graph should be constructed so that all inputs have a valid device assignment, and the op itself is assigned one of the...
doc_4684
By default, StdDev returns the population standard deviation. However, if sample=True, the return value will be the sample standard deviation.
doc_4685
The size of the request queue. If it takes a long time to process a single request, any requests that arrive while the server is busy are placed into a queue, up to request_queue_size requests. Once the queue is full, further requests from clients will get a “Connection denied” error. The default value is usually 5, bu...
doc_4686
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_4687
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalStatsAggregatorSummary tf.raw_ops.ExperimentalStatsAggregatorSummary( iterator, name=None ) Args iterator A Tensor of type resource. name A name for the operation (optional). Returns A Tensor of type string.
doc_4688
Classifier implementing a vote among neighbors within a given radius Read more in the User Guide. Parameters radiusfloat, default=1.0 Range of parameter space to use by default for radius_neighbors queries. weights{‘uniform’, ‘distance’} or callable, default=’uniform’ weight function used in prediction. Pos...
doc_4689
Gets or sets the HSLA representation of the Color. hsla -> tuple The HSLA representation of the Color. The HSLA components are in the ranges H = [0, 360], S = [0, 100], V = [0, 100], A = [0, 100]. Note that this will not return the absolutely exact HSL values for the set RGB values in all cases. Due to the RGB mappin...
doc_4690
Information about the memory layout of the array. Notes The flags object can be accessed dictionary-like (as in a.flags['WRITEABLE']), or by using lowercased attribute names (as in a.flags.writeable). Short flag names are only supported in dictionary access. Only the WRITEBACKIFCOPY, UPDATEIFCOPY, WRITEABLE, and ALIG...
doc_4691
Base class for all other configparser exceptions.
doc_4692
tf.experimental.numpy.isneginf( x ) Unsupported arguments: out. See the NumPy documentation for numpy.isneginf.
doc_4693
Copies the elements from src into self tensor and returns self. The src tensor must be broadcastable with the self tensor. It may be of a different data type or reside on a different device. Parameters src (Tensor) – the source tensor to copy from non_blocking (bool) – if True and this copy is between CPU and GPU,...
doc_4694
Create a new theme. It is an error if themename already exists. If parent is specified, the new theme will inherit styles, elements and layouts from the parent theme. If settings are present they are expected to have the same syntax used for theme_settings().
doc_4695
See Migration guide for more details. tf.compat.v1.random.stateless_normal tf.random.stateless_normal( shape, seed, mean=0.0, stddev=1.0, dtype=tf.dtypes.float32, name=None ) This is a stateless version of tf.random.normal: if run twice with the same seeds and shapes, it will produce the same pseudorandom number...
doc_4696
See torch.le().
doc_4697
Holds the name of the client peer as returned by conn.getpeername() where conn is conn.
doc_4698
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_4699
The “sendfile” syscall is not available for the given socket or file type. A subclass of RuntimeError.