_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_9900
Cross-validated Least Angle Regression model. See glossary entry for cross-validation estimator. Read more in the User Guide. Parameters fit_interceptbool, default=True whether to calculate the intercept for this model. If set to false, no intercept will be used in calculations (i.e. data is expected to be cent...
doc_9901
sklearn.linear_model.orthogonal_mp(X, y, *, n_nonzero_coefs=None, tol=None, precompute=False, copy_X=True, return_path=False, return_n_iter=False) [source] Orthogonal Matching Pursuit (OMP). Solves n_targets Orthogonal Matching Pursuit problems. An instance of the problem has the form: When parametrized by the number...
doc_9902
Return list of features in ‘names’ after remove any implied features and keep the origins. Parameters ‘names’: sequence sequence of CPU feature names in uppercase. Returns list of CPU features sorted as-is ‘names’ Examples >>> self.feature_ahead(["SSE2", "SSE3", "SSE41"]) ["SSE41"] # assume AVX2 and FMA3 ...
doc_9903
@staticmethod clear() Clear cached summary writers. Currently only used for unit tests. get View source @staticmethod get( logdir ) Returns the FileWriter for the specified directory. Args logdir str, name of the directory. Returns A FileWriter.
doc_9904
See Migration guide for more details. tf.compat.v1.io.RaggedFeature tf.io.RaggedFeature( dtype, value_key=None, partitions=(), row_splits_dtype=tf.dtypes.int32, validate=False ) value_key specifies the feature key for a variable-length list of values; and partitions specifies zero or more feature keys for pa...
doc_9905
Return divmod(self, value).
doc_9906
Reverses the PixelShuffle operation by rearranging elements in a tensor of shape (∗,C,H×r,W×r)(*, C, H \times r, W \times r) to a tensor of shape (∗,C×r2,H,W)(*, C \times r^2, H, W) , where r is a downscale factor. See the paper: Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolut...
doc_9907
Boolean indicator if the date belongs to a leap year. A leap year is a year, which has 366 days (instead of 365) including 29th of February as an intercalary day. Leap years are years which are multiples of four with the exception of years divisible by 100 but not by 400. Returns Series or ndarray Booleans indica...
doc_9908
Raises ValueError BoundaryNorm is not invertible, so calling this method will always raise an error
doc_9909
Mean Poisson deviance regression loss. Poisson deviance is equivalent to the Tweedie deviance with the power parameter power=1. Read more in the User Guide. Parameters y_truearray-like of shape (n_samples,) Ground truth (correct) target values. Requires y_true >= 0. y_predarray-like of shape (n_samples,) Es...
doc_9910
Bases: matplotlib.collections.RegularPolyCollection Draw a collection of regular stars with numsides points. Parameters numsidesint The number of sides of the polygon. rotationfloat The rotation of the polygon in radians. sizestuple of float The area of the circle circumscribing the polygon in points^2....
doc_9911
For artists in an axes, if the zaxis has units support, convert z using zaxis unit type
doc_9912
returns the Euclidean length of the vector. length() -> float calculates the Euclidean length of the vector which follows from the Pythagorean theorem: vec.length() == math.sqrt(vec.x**2 + vec.y**2)
doc_9913
'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_9914
Pipe-based ffmpeg writer. Frames are streamed directly to ffmpeg via a pipe and written in a single pass. Parameters fpsint, default: 5 Movie frame rate (per second). codecstr or None, default: rcParams["animation.codec"] (default: 'h264') The codec to use. bitrateint, default: rcParams["animation.bitrate...
doc_9915
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_9916
The name of the Python codec used to convert the input_charset to Unicode. If no conversion codec is necessary, this attribute will be None.
doc_9917
A generic version of dict. Useful for annotating return types. To annotate arguments it is preferred to use an abstract collection type such as Mapping. This type can be used as follows: def count_words(text: str) -> Dict[str, int]: ... Deprecated since version 3.9: builtins.dict now supports []. See PEP 585 and ...
doc_9918
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_9919
Return True if date is first day of the quarter. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_quarter_start False >>> ts = pd.Timestamp(2020, 4, 1) >>> ts.is_quarter_start True
doc_9920
Closes the file.
doc_9921
Computes the bitwise NOT of the given input tensor. The input tensor must be of integral or Boolean types. For bool tensors, it computes the logical NOT. Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example >>> torch.bitwise_not(torch.tensor([-1, -2, ...
doc_9922
Least squares polynomial fit. Note This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in numpy.polynomial is preferred. A summary of the differences can be found in the transition guide. Fit a polynomial p(x) = p[0] * x**deg + ... + p[deg] of degree deg to points (x, y). Re...
doc_9923
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterNdSub tf.raw_ops.ResourceScatterNdSub( ref, indices, updates, use_locking=True, name=None ) ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indices into ref. It must be shape [d_0, ...
doc_9924
Return whether the given point is inside the patch. Parameters point(float, float) The point (x, y) to check, in target coordinates of self.get_transform(). These are display coordinates for patches that are added to a figure or axes. radiusfloat, optional Add an additional margin on the patch in target coo...
doc_9925
This method makes an HttpResponse instance a file-like object.
doc_9926
See Migration guide for more details. tf.compat.v1.raw_ops.BarrierReadySize tf.raw_ops.BarrierReadySize( handle, name=None ) Args handle A Tensor of type mutable string. The handle to a barrier. name A name for the operation (optional). Returns A Tensor of type int32.
doc_9927
By default, if optimization blocklist is None or empty, optimize_for_mobile will run the following optimizations: Conv2D + BatchNorm fusion (blocklisting option MobileOptimizerType::CONV_BN_FUSION): This optimization pass folds Conv2d-BatchNorm2d into Conv2d in forward method of this module and all its submodules. ...
doc_9928
Bases: matplotlib.colors.Colormap Colormap objects based on lookup tables using linear segments. The lookup table is generated using linear interpolation for each primary color, with the 0-1 domain divided into any number of segments. Create colormap from linear mapping segments segmentdata argument is a dictionary w...
doc_9929
This attribute, if given, should be a list of field names to exclude from the form. For example, let’s consider the following model: from django.db import models class Author(models.Model): name = models.CharField(max_length=100) title = models.CharField(max_length=3) birth_date = models.DateField(blank=Tr...
doc_9930
return any Sound that is queued get_queue() -> Sound If a Sound is already queued on this channel it will be returned. Once the queued sound begins playback it will no longer be on the queue.
doc_9931
A Django administrative site is represented by an instance of django.contrib.admin.sites.AdminSite; by default, an instance of this class is created as django.contrib.admin.site and you can register your models and ModelAdmin instances with it. If you want to customize the default admin site, you can override it. When ...
doc_9932
Same as url_value_preprocessor() but application wide. Parameters f (Callable[[Optional[str], Optional[dict]], None]) – Return type Callable[[Optional[str], Optional[dict]], None]
doc_9933
os.O_NOINHERIT os.O_SHORT_LIVED os.O_TEMPORARY os.O_RANDOM os.O_SEQUENTIAL os.O_TEXT The above constants are only available on Windows.
doc_9934
Token value for ",".
doc_9935
Bases: matplotlib.dates.RRuleLocator Make ticks on a given day of each year that is a multiple of base. Examples: # Tick every year on Jan 1st locator = YearLocator() # Tick every 5 years on July 4th locator = YearLocator(5, month=7, day=4) Mark years that are multiple of base on a given month and day (default jan ...
doc_9936
Adds a parameter to the module. The parameter can be accessed as an attribute using given name. Parameters name (string) – name of the parameter. The parameter can be accessed from this module using the given name param (Parameter) – parameter to be added to the module.
doc_9937
Plot a horizontal sequence of rectangles. A rectangle is drawn for each element of xranges. All rectangles have the same vertical position and size defined by yrange. This is a convenience function for instantiating a BrokenBarHCollection, adding it to the Axes and autoscaling the view. Parameters xrangessequence...
doc_9938
Alias for torch.asin().
doc_9939
A Sitemap class can define the following methods/attributes: items Required. A method that returns a sequence or QuerySet of objects. The framework doesn’t care what type of objects they are; all that matters is that these objects get passed to the location(), lastmod(), changefreq() and priority() methods. loc...
doc_9940
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_9941
rotates a vector by a given angle in degrees. rotate(angle) -> Vector2 Returns a vector which has the same length as self but is rotated counterclockwise by the given angle in degrees.
doc_9942
See Migration guide for more details. tf.compat.v1.raw_ops.Sqrt tf.raw_ops.Sqrt( x, name=None ) I.e., \(y = \sqrt{x} = x^{1/2}\). Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, complex64, complex128. name A name for the operation (optional). Returns ...
doc_9943
Set the Figure instance the artist belongs to. Parameters figFigure
doc_9944
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_9945
Return the arrowstyle object.
doc_9946
A writable boolean property which by default is true. When the program exits, it calls all remaining live finalizers for which atexit is true. They are called in reverse order of creation.
doc_9947
Return the tick labels for all the ticks at once.
doc_9948
The seconds of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="s") ... ) >>> datetime_series 0 2000-01-01 00:00:00 1 2000-01-01 00:00:01 2 2000-01-01 00:00:02 dtype: datetime64[ns] >>> datetime_series.dt.second 0 0 1 1 2 2 dtype: int64
doc_9949
See Migration guide for more details. tf.compat.v1.raw_ops.BatchIFFT3D tf.raw_ops.BatchIFFT3D( input, name=None ) Args input A Tensor of type complex64. name A name for the operation (optional). Returns A Tensor of type complex64.
doc_9950
Get the matrix for the affine part of this transform.
doc_9951
See torch.nextafter()
doc_9952
Return filtered image. This “filtered image” is used when saving from the plugin.
doc_9953
handler should be an instance of BaseHandler. The following methods are searched, and added to the possible chains (note that HTTP errors are a special case). Note that, in the following, protocol should be replaced with the actual protocol to handle, for example http_response() would be the HTTP protocol response hand...
doc_9954
Rotate an array by 90 degrees in the plane specified by axes. Rotation direction is from the first towards the second axis. Parameters marray_like Array of two or more dimensions. kinteger Number of times the array is rotated by 90 degrees. axes: (2,) array_like The array is rotated in the plane defined b...
doc_9955
sklearn.datasets.make_checkerboard(shape, n_clusters, *, noise=0.0, minval=10, maxval=100, shuffle=True, random_state=None) [source] Generate an array with block checkerboard structure for biclustering. Read more in the User Guide. Parameters shapetuple of shape (n_rows, n_cols) The shape of the result. n_clu...
doc_9956
get the mixer's SDL version get_sdl_mixer_version() -> (major, minor, patch) get_sdl_mixer_version(linked=True) -> (major, minor, patch) Parameters: linked (bool) -- if True (default) the linked version number is returned, otherwise the compiled version number is returned Returns: the mixer's SDL library vers...
doc_9957
Change the definition of a color-pair. It takes three arguments: the number of the color-pair to be changed, the foreground color number, and the background color number. The value of pair_number must be between 1 and COLOR_PAIRS - 1 (the 0 color pair is wired to white on black and cannot be changed). The value of fg a...
doc_9958
Return the error function at x. The erf() function can be used to compute traditional statistical functions such as the cumulative standard normal distribution: def phi(x): 'Cumulative distribution function for the standard normal distribution' return (1.0 + erf(x / sqrt(2.0))) / 2.0 New in version 3.2.
doc_9959
Like writeframes(), except that the header of the audio file is not updated. Changed in version 3.4: Any bytes-like object is now accepted.
doc_9960
Calls str.encode element-wise. The set of available codecs comes from the Python standard library, and may be extended at runtime. For more information, see the codecs module. Parameters aarray_like of str or unicode encodingstr, optional The name of an encoding errorsstr, optional Specifies how to handle...
doc_9961
Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return...
doc_9962
Computes input≠other\text{input} \neq \text{other} element-wise. The second argument can be a number or a tensor whose shape is broadcastable with the first argument. Parameters input (Tensor) – the tensor to compare other (Tensor or float) – the tensor or value to compare Keyword Arguments out (Tensor, option...
doc_9963
returns True if the midi module is currently initialized get_init() -> bool Gets the initialization state of the pygame.midi module. Returns: True if the pygame.midi module is currently initialized. Return type: bool New in pygame 1.9.5.
doc_9964
Compute log(det(A)) for A symmetric. Equivalent to : np.log(nl.det(A)) but more robust. It returns -Inf if det(A) is non positive or is not defined. Parameters Aarray-like The matrix.
doc_9965
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_9966
See Migration guide for more details. tf.compat.v1.raw_ops.RandomGamma tf.raw_ops.RandomGamma( shape, alpha, seed=0, seed2=0, name=None ) This op uses the algorithm by Marsaglia et al. to acquire samples via transformation-rejection from pairs of uniform and normal random variables. See http://dl.acm.org/citatio...
doc_9967
Perform clustering on X and returns cluster labels. Parameters Xarray-like of shape (n_samples, n_features) Input data. yIgnored Not used, present for API consistency by convention. Returns labelsndarray of shape (n_samples,), dtype=np.int64 Cluster labels.
doc_9968
Alias for set_color.
doc_9969
Merge DataFrame or named Series objects with a database-style join. A named Series object is treated as a DataFrame with a single named column. The join is done on columns or indexes. If joining columns on columns, the DataFrame indexes will be ignored. Otherwise if joining indexes on indexes or indexes on a column o...
doc_9970
Asserts that the strings xml1 and xml2 are equal. The comparison is based on XML semantics. Similarly to assertHTMLEqual(), the comparison is made on parsed content, hence only semantic differences are considered, not syntax differences. When invalid XML is passed in any parameter, an AssertionError is always raised, e...
doc_9971
Save the plot in the current canvas as a image and apply the post_processing function. def post_processing(image, dpi): # ny, nx, depth = image.shape # image (numpy array) has RGBA channels and has a depth of 4. ... # create a new_image (numpy array of 4 channels, size can be # different). The resulting image may h...
doc_9972
sklearn.metrics.hamming_loss(y_true, y_pred, *, sample_weight=None) [source] Compute the average Hamming loss. The Hamming loss is the fraction of labels that are incorrectly predicted. Read more in the User Guide. Parameters y_true1d array-like, or label indicator array / sparse matrix Ground truth (correct) l...
doc_9973
class sklearn.gaussian_process.kernels.ExpSineSquared(length_scale=1.0, periodicity=1.0, length_scale_bounds=1e-05, 100000.0, periodicity_bounds=1e-05, 100000.0) [source] Exp-Sine-Squared kernel (aka periodic kernel). The ExpSineSquared kernel allows one to model functions which repeat themselves exactly. It is param...
doc_9974
Copy object to the system clipboard. Write a text representation of object to the system clipboard. This can be pasted into Excel, for example. Parameters excel:bool, default True Produce output in a csv format for easy pasting into excel. True, use the provided separator for csv pasting. False, write a string...
doc_9975
find the absolute position of a child subsurface inside its top level parent get_abs_offset() -> (x, y) Get the offset position of a child subsurface inside of its top level parent Surface. If the Surface is not a subsurface this will return (0, 0).
doc_9976
Brick wall. Returns brick(512, 512) uint8 image A small section of a brick wall. Notes The original image was downloaded from CC0Textures and licensed under the Creative Commons CC0 License. A perspective transform was then applied to the image, prior to rotating it by 90 degrees, cropping and scaling it to...
doc_9977
Converts value to a backend-specific value. By default it returns value if prepared=True and get_prep_value() if is False. See Converting query values to database values for usage.
doc_9978
tf.compat.v1.losses.get_regularization_losses( scope=None ) Args scope An optional scope name for filtering the losses to return. Returns A list of regularization losses as Tensors.
doc_9979
See TripletMarginWithDistanceLoss for details.
doc_9980
Private, abstract base class for pointers. Concrete pointer types are created by calling POINTER() with the type that will be pointed to; this is done automatically by pointer(). If a pointer points to an array, its elements can be read and written using standard subscript and slice accesses. Pointer objects have no si...
doc_9981
Make a thumbnail of image in infile with output filename thumbfile. See Image Thumbnail. Parameters infilestr or file-like The image file. Matplotlib relies on Pillow for image reading, and thus supports a wide range of file formats, including PNG, JPG, TIFF and others. thumbfilestr or file-like The thumbna...
doc_9982
Return whether the area enclosed by the path contains the given point. The path is always treated as closed; i.e. if the last code is not CLOSEPOLY an implicit segment connecting the last vertex to the first vertex is assumed. Parameters point(float, float) The point (x, y) to check. transformmatplotlib.trans...
doc_9983
default foreground color fgcolor -> Color Gets or sets the default glyph rendering color. It is initially opaque black ― (0, 0, 0, 255). Applies to render() and render_to().
doc_9984
Get the matrix for the affine part of this transform.
doc_9985
show(color=None, **options) Render the Dialog window.
doc_9986
Set the x and y data. Parameters *args(2, N) array or two 1D arrays
doc_9987
Erase from cursor to the end of the line.
doc_9988
Computes input>other\text{input} > \text{other} element-wise. The second argument can be a number or a tensor whose shape is broadcastable with the first argument. Parameters input (Tensor) – the tensor to compare other (Tensor or float) – the tensor or value to compare Keyword Arguments out (Tensor, optional)...
doc_9989
Set the JoinStyle for the collection (for all its elements). Parameters jsJoinStyle or {'miter', 'round', 'bevel'}
doc_9990
The requested read operation did not complete fully. Raised by the asyncio stream APIs. This exception is a subclass of EOFError. expected The total number (int) of expected bytes. partial A string of bytes read before the end of stream was reached.
doc_9991
Alias for set_facecolor.
doc_9992
Log debugging information tracing how a template file was loaded. This can be useful to figure out why a template was not loaded or the wrong file appears to be loaded. Default: False
doc_9993
Return the mapping parameters. The returned values define a linear map off + scl*x that is applied to the input arguments before the series is evaluated. The map depends on the domain and window; if the current domain is equal to the window the resulting map is the identity. If the coefficients of the series instance...
doc_9994
A timedelta which is used to set the expiration date of a permanent session. The default is 31 days which makes a permanent session survive for roughly one month. This attribute can also be configured from the config with the PERMANENT_SESSION_LIFETIME configuration key. Defaults to timedelta(days=31)
doc_9995
Computes the element-wise minimum of input and other. This is like torch.minimum() except it handles NaNs differently: if exactly one of the two elements being compared is a NaN then the non-NaN element is taken as the minimum. Only if both elements are NaN is NaN propagated. This function is a wrapper around C++’s std...
doc_9996
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorBlockDiag tf.linalg.LinearOperatorBlockDiag( operators, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=True, name=None ) This operator combines one or more linear operators [op1,...,opJ], building a new ...
doc_9997
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_9998
sklearn.cluster.cluster_optics_dbscan(*, reachability, core_distances, ordering, eps) [source] Performs DBSCAN extraction for an arbitrary epsilon. Extracting the clusters runs in linear time. Note that this results in labels_ which are close to a DBSCAN with similar settings and eps, only if eps is close to max_eps....
doc_9999
Read the next member from the TarFile object tarfile and return it as a TarInfo object.