_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_3800
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with an outward square bracket at its end and a head at the start. Parameters widthBfloat, default: 1.0 Width of the bracket. lengthBfloat, default: 0.2 Length of the bracket. angleBfloat, default: 0 degrees Orientation of the bracket, as a counterclo...
doc_3801
Lasso model fit with Least Angle Regression a.k.a. Lars It is a Linear Model trained with an L1 prior as regularizer. The optimization objective for Lasso is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1 Read more in the User Guide. Parameters alphafloat, default=1.0 Constant that multiplies the pe...
doc_3802
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct...
doc_3803
Set the name of the axis for the index or columns. Parameters mapper:scalar, list-like, optional Value to set the axis name attribute. index, columns:scalar, list-like, dict-like or function, optional A scalar, list-like, dict-like or functions transformations to apply to that axis’ values. Note that the co...
doc_3804
Similar to Widget.attrs. A dictionary containing HTML attributes to be set on the rendered DateInput and TimeInput widgets, respectively. If these attributes aren’t set, Widget.attrs is used instead.
doc_3805
Transfers the callback stack to a fresh ExitStack instance and returns it. No callbacks are invoked by this operation - instead, they will now be invoked when the new stack is closed (either explicitly or implicitly at the end of a with statement). For example, a group of files can be opened as an “all or nothing” oper...
doc_3806
Call function producing a like-indexed DataFrame on each group and return a DataFrame having the same indexes as the original object filled with the transformed values. Parameters f:function Function to apply to each group. Can also accept a Numba JIT function with engine='numba' specified. If the 'numba' engin...
doc_3807
Return a Document from the given input. filename_or_file may be either a file name, or a file-like object. parser, if given, must be a SAX2 parser object. This function will change the document handler of the parser and activate namespace support; other parser configuration (like setting an entity resolver) must have b...
doc_3808
tf.compat.v1.resource_loader.get_path_to_datafile( path ) The path is relative to tensorflow/ Args path a string resource path relative to tensorflow/ Returns The path to the specified file present in the data attribute of py_test or py_binary. Raises IOError If the path is not found...
doc_3809
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_3810
Applies Layer Normalization over a mini-batch of inputs as described in the paper Layer Normalization y=x−E[x]Var[x]+ϵ∗γ+βy = \frac{x - \mathrm{E}[x]}{ \sqrt{\mathrm{Var}[x] + \epsilon}} * \gamma + \beta The mean and standard-deviation are calculated separately over the last certain number dimensions which have to...
doc_3811
tf.keras.applications.efficientnet.EfficientNetB4 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.EfficientNetB4, tf.compat.v1.keras.applications.efficientnet.EfficientNetB4 tf.keras.applications.EfficientNetB4( include_top=True, weights='imagenet', input_tensor=...
doc_3812
Represents an outgoing WSGI HTTP response with body, status, and headers. Has properties and methods for using the functionality defined by various HTTP specs. The response body is flexible to support different use cases. The simple form is passing bytes, or a string which will be encoded as UTF-8. Passing an iterable ...
doc_3813
tf.keras.layers.GRU( units, activation='tanh', recurrent_activation='sigmoid', use_bias=True, kernel_initializer='glorot_uniform', recurrent_initializer='orthogonal', bias_initializer='zeros', kernel_regularizer=None, recurrent_regularizer=None, bias_regularizer=None, activity_regularizer=None, ...
doc_3814
Draw samples from a binomial distribution. Samples are drawn from a binomial distribution with specified parameters, n trials and p probability of success where n an integer >= 0 and p is in the interval [0,1]. (n may be input as a float, but it is truncated to an integer in use) Note New code should use the binomia...
doc_3815
Returns an iterator over module buffers. Parameters recurse (bool) – if True, then yields buffers of this module and all submodules. Otherwise, yields only buffers that are direct members of this module. Yields torch.Tensor – module buffer Example: >>> for buf in model.buffers(): >>> print(type(buf), buf.size...
doc_3816
Alias for set_linewidth.
doc_3817
AxesGrid alias of mpl_toolkits.axisartist.axes_grid.ImageGrid CbarAxes(*args, orientation, **kwargs) [Deprecated] Grid(fig, rect, nrows_ncols[, ngrids, ...]) Parameters ImageGrid(fig, rect, nrows_ncols[, ngrids, ...]) Parameters
doc_3818
Only available on Windows.
doc_3819
Returns the current setting for the given locale category as sequence containing language code, encoding. category may be one of the LC_* values except LC_ALL. It defaults to LC_CTYPE. Except for the code 'C', the language code corresponds to RFC 1766. language code and encoding may be None if their values cannot be de...
doc_3820
Iterate over DataFrame rows as namedtuples. Parameters index:bool, default True If True, return the index as the first element of the tuple. name:str or None, default “Pandas” The name of the returned namedtuples or None to return regular tuples. Returns iterator An object to iterate over namedtuples ...
doc_3821
Series.isnull is an alias for Series.isna. Detect missing values. Return a boolean same-sized object indicating if the values are NA. NA values, such as None or numpy.NaN, gets mapped to True values. Everything else gets mapped to False values. Characters such as empty strings '' or numpy.inf are not considered NA va...
doc_3822
Compute D^2, the percentage of deviance explained. D^2 is a generalization of the coefficient of determination R^2. R^2 uses squared error and D^2 deviance. Note that those two are equal for family='normal'. D^2 is defined as \(D^2 = 1-\frac{D(y_{true},y_{pred})}{D_{null}}\), \(D_{null}\) is the null deviance, i.e. t...
doc_3823
Cancel the callback. If the callback has already been canceled or executed, this method has no effect.
doc_3824
Add a codec that map characters in the given character set to and from Unicode. charset is the canonical name of a character set. codecname is the name of a Python codec, as appropriate for the second argument to the str’s encode() method.
doc_3825
Display the exception that just occurred. We remove the first stack item because it is within the interpreter object implementation. The output is written by the write() method. Changed in version 3.5: The full chained traceback is displayed instead of just the primary traceback.
doc_3826
Print a concise summary of a Series. This method prints information about a Series including the index dtype, non-null values and memory usage. New in version 1.4.0. Parameters data:Series Series to print information about. verbose:bool, optional Whether to print the full summary. By default, the setting ...
doc_3827
The StdButtonBox widget is a group of standard buttons for Motif-like dialog boxes.
doc_3828
The percent of non- fill_value points, as decimal. Examples >>> s = SparseArray([0, 0, 1, 1, 1], fill_value=0) >>> s.density 0.6
doc_3829
sklearn.utils.sparsefuncs.inplace_row_scale(X, scale) [source] Inplace row scaling of a CSR or CSC matrix. Scale each row of the data matrix by multiplying with specific scale provided by the caller assuming a (n_samples, n_features) shape. Parameters Xsparse matrix of shape (n_samples, n_features) Matrix to be...
doc_3830
Return the visibility.
doc_3831
Casts all floating point parameters and buffers to bfloat16 datatype. Returns self Return type Module
doc_3832
Multi-block local binary pattern visualization. Blocks with higher sums are colored with alpha-blended white rectangles, whereas blocks with lower sums are colored alpha-blended cyan. Colors and the alpha parameter can be changed. Parameters imagendarray of float or uint Image on which to visualize the pattern....
doc_3833
Fit the model from data in X. Parameters Xarray-like of shape (n_samples, n_features) Training vector, where n_samples in the number of samples and n_features is the number of features. yIgnored Returns selfobject Returns the object itself.
doc_3834
This is a convenience function for invoking update_wrapper() as a function decorator when defining a wrapper function. It is equivalent to partial(update_wrapper, wrapped=wrapped, assigned=assigned, updated=updated). For example: >>> from functools import wraps >>> def my_decorator(f): ... @wraps(f) ... def wra...
doc_3835
Calculate the rolling weighted window sum. Parameters **kwargs Keyword arguments to configure the SciPy weighted window type. Returns Series or DataFrame Return type is the same as the original object with np.float64 dtype. See also pandas.Series.rolling Calling rolling with Series data. pandas.Data...
doc_3836
Draw a stacked area plot. An area plot displays quantitative data visually. This function wraps the matplotlib area function. Parameters x:label or position, optional Coordinates for the X axis. By default uses the index. y:label or position, optional Column to plot. By default uses all columns. stacked:b...
doc_3837
Windows only: Returns the last error code set by Windows in the calling thread. This function calls the Windows GetLastError() function directly, it does not return the ctypes-private copy of the error code.
doc_3838
Align the xlabels and ylabels of subplots with the same subplots row or column (respectively) if label alignment is being done automatically (i.e. the label position is not manually set). Alignment persists for draw events after this is called. Parameters axslist of Axes Optional list (or ndarray) of Axes to al...
doc_3839
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_3840
tf.estimator.LinearClassifier( feature_columns, model_dir=None, n_classes=2, weight_column=None, label_vocabulary=None, optimizer='Ftrl', config=None, warm_start_from=None, loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, sparse_combiner='sum' ) Train a linear model to classify instance...
doc_3841
Return each element rounded to the given number of decimals. Refer to numpy.around for full documentation. See also numpy.ndarray.round corresponding function for ndarrays numpy.around equivalent function
doc_3842
Compute the arithmetic mean along the specified axis. Returns the average of the array elements. The average is taken over the flattened array by default, otherwise over the specified axis. float64 intermediate and return values are used for integer inputs. Parameters aarray_like Array containing numbers whose ...
doc_3843
Returns three values: the formatted version of object as a string, a flag indicating whether the result is readable, and a flag indicating whether recursion was detected. The first argument is the object to be presented. The second is a dictionary which contains the id() of objects that are part of the current presenta...
doc_3844
The ordinal day of the year.
doc_3845
Set the blocking mode of the specified file descriptor. Set the O_NONBLOCK flag if blocking is False, clear the flag otherwise. See also get_blocking() and socket.socket.setblocking(). Availability: Unix. New in version 3.5.
doc_3846
Formats a number val according to the current LC_NUMERIC setting. The format follows the conventions of the % operator. For floating point values, the decimal point is modified if appropriate. If grouping is true, also takes the grouping into account. If monetary is true, the conversion uses monetary thousands separato...
doc_3847
winreg.OpenKeyEx(key, sub_key, reserved=0, access=KEY_READ) Opens the specified key, returning a handle object. key is an already open key, or one of the predefined HKEY_* constants. sub_key is a string that identifies the sub_key to open. reserved is a reserved integer, and must be zero. The default is zero. access ...
doc_3848
Computes and returns the sum of gradients of outputs w.r.t. the inputs. grad_outputs should be a sequence of length matching output containing the “vector” in Jacobian-vector product, usually the pre-computed gradients w.r.t. each of the outputs. If an output doesn’t require_grad, then the gradient can be None). If o...
doc_3849
In-place version of fmod()
doc_3850
See Migration guide for more details. tf.compat.v1.manip.reshape, tf.compat.v1.reshape tf.reshape( tensor, shape, name=None ) Given tensor, this operation returns a new tf.Tensor that has the same values as tensor in the same order, except with a new shape given by shape. t1 = [[1, 2, 3], [4, 5, 6]] print...
doc_3851
Return the subprocess process id as an integer.
doc_3852
Parse XML data reading from the object file. file only needs to provide the read(nbytes) method, returning the empty string when there’s no more data.
doc_3853
Return a string which specifies the terminal device associated with file descriptor fd. If fd is not associated with a terminal device, an exception is raised. Availability: Unix.
doc_3854
Round towards Infinity.
doc_3855
incrementaldecoder Incremental encoder and decoder classes or factory functions. These have to provide the interface defined by the base classes IncrementalEncoder and IncrementalDecoder, respectively. Incremental codecs can maintain state.
doc_3856
See Migration guide for more details. tf.compat.v1.data.experimental.get_single_element tf.data.experimental.get_single_element( dataset ) This function enables you to use a tf.data.Dataset in a stateless "tensor-in tensor-out" expression, without creating an iterator. This can be useful when your preprocessing ...
doc_3857
This method for the Stats class prints a list of all functions that called each function in the profiled database. The ordering is identical to that provided by print_stats(), and the definition of the restricting argument is also identical. Each caller is reported on its own line. The format differs slightly depending...
doc_3858
A base view for updating an existing object instance. It is not intended to be used directly, but rather as a parent class of the django.views.generic.edit.UpdateView. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.edit.ModelFormMixin django.views.generic.edit....
doc_3859
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_3860
Boolean. Designates whether this user can access the admin site.
doc_3861
bytearray.center(width[, fillbyte]) Return a copy of the object centered in a sequence of length width. Padding is done using the specified fillbyte (default is an ASCII space). For bytes objects, the original sequence is returned if width is less than or equal to len(s). Note The bytearray version of this method do...
doc_3862
tf.compat.v1.disable_resource_variables() Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term If your code needs tf.disable_resource_variables() to be called to work properly please file a bug.
doc_3863
Hyperbolic cosine, element-wise. Equivalent to 1/2 * (np.exp(x) + np.exp(-x)) and np.cos(1j*x). Parameters xarray_like Input array. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not prov...
doc_3864
A list of the field names that will be prompted for when creating a user via the createsuperuser management command. The user will be prompted to supply a value for each of these fields. It must include any field for which blank is False or undefined and may include additional fields you want prompted for when a user i...
doc_3865
Transform X into a (weighted) graph of neighbors nearer than a radius The transformed data is a sparse graph as returned by radius_neighbors_graph. Read more in the User Guide. New in version 0.22. Parameters mode{‘distance’, ‘connectivity’}, default=’distance’ Type of returned matrix: ‘connectivity’ will ret...
doc_3866
tf.compat.v1.nn.quantized_conv2d( input, filter, min_input, max_input, min_filter, max_filter, strides, padding, out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1], name=None ) The inputs are quantized tensors where the lowest value represents the real number of the associated minimum, and the highest represent...
doc_3867
Construct a new directory comparison object, to compare the directories a and b. ignore is a list of names to ignore, and defaults to filecmp.DEFAULT_IGNORES. hide is a list of names to hide, and defaults to [os.curdir, os.pardir]. The dircmp class compares files by doing shallow comparisons as described for filecmp.cm...
doc_3868
Clear the Axes.
doc_3869
If the maintype is multipart, raise a TypeError; otherwise look up a handler function based on the type of obj (see next paragraph), call clear_content() on the msg, and call the handler function, passing through all arguments. The expectation is that the handler will transform and store obj into msg, possibly making o...
doc_3870
Sets the given header name to the given value. Both header and value should be strings.
doc_3871
Returns True if x is infinite; otherwise returns False.
doc_3872
True if the system is Android.
doc_3873
Determine whether y is monotonically correlated with x. y is found increasing or decreasing with respect to x based on a Spearman correlation test. Parameters xarray-like of shape (n_samples,) Training data. yarray-like of shape (n_samples,) Training target. Returns increasing_boolboolean Whether th...
doc_3874
See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyProximalGradientDescent tf.raw_ops.SparseApplyProximalGradientDescent( var, alpha, l1, l2, grad, indices, use_locking=False, name=None ) That is for rows we have grad for, we update var as follows: $$prox_v = var - alpha * grad$$ $$var = si...
doc_3875
Write the bytes in bytes into memory at the current position of the file pointer and return the number of bytes written (never less than len(bytes), since if the write fails, a ValueError will be raised). The file position is updated to point after the bytes that were written. If the mmap was created with ACCESS_READ, ...
doc_3876
Exception raised when a browser control error occurs.
doc_3877
Sends a tensor synchronously. Parameters tensor (Tensor) – Tensor to send. dst (int) – Destination rank. group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used. tag (int, optional) – Tag to match send with remote recv
doc_3878
tupled integers of the SDL library version SDL = '(2, 0, 12)' This is the SDL library version represented as an extended tuple. It also has attributes 'major', 'minor' & 'patch' that can be accessed like this: >>> pygame.version.SDL.major 2 printing the whole thing returns a string like this: >>> pygame.version.SDL S...
doc_3879
pygame module for loading and rendering fonts The font module allows for rendering TrueType fonts into a new Surface object. It accepts any UCS-2 character ('u0001' to 'uFFFF'). This module is optional and requires SDL_ttf as a dependency. You should test that pygame.font is available and initialized before attemp...
doc_3880
The URL to redirect to after a successful password change. Defaults to 'password_change_done'.
doc_3881
tkinter.simpledialog.askinteger(title, prompt, **kw) tkinter.simpledialog.askstring(title, prompt, **kw) The above three functions provide dialogs that prompt the user to enter a value of the desired type.
doc_3882
Reduces the tensor data on multiple GPUs across all machines. Each tensor in tensor_list should reside on a separate GPU Only the GPU of tensor_list[dst_tensor] on the process with rank dst is going to receive the final result. Only nccl backend is currently supported tensors should only be GPU tensors Parameters ...
doc_3883
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_3884
See Migration guide for more details. tf.compat.v1.feature_column.sequence_categorical_column_with_vocabulary_list tf.feature_column.sequence_categorical_column_with_vocabulary_list( key, vocabulary_list, dtype=None, default_value=-1, num_oov_buckets=0 ) Pass this to embedding_column or indicator_column to conve...
doc_3885
autocomplete_fields is a list of ForeignKey and/or ManyToManyField fields you would like to change to Select2 autocomplete inputs. By default, the admin uses a select-box interface (<select>) for those fields. Sometimes you don’t want to incur the overhead of selecting all the related instances to display in the dropdo...
doc_3886
Set both the edgecolor and the facecolor. Parameters ccolor or list of rgba tuples See also Collection.set_facecolor, Collection.set_edgecolor For setting the edge or face color individually.
doc_3887
Return whether the artist is to be rasterized.
doc_3888
Return the number of attributes.
doc_3889
tf.math.special.bessel_i1 Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.bessel_i1, tf.compat.v1.math.special.bessel_i1 tf.math.bessel_i1( x, name=None ) Modified Bessel function of order 1. It is preferable to use the numerically stabler function i1e(x) instead. tf.math.sp...
doc_3890
template_name: 'django/forms/widgets/select.html' option_template_name: 'django/forms/widgets/select_option.html' Select widget with options ‘Unknown’, ‘Yes’ and ‘No’
doc_3891
Command that was used to spawn the child process.
doc_3892
A legacy method for finding a loader for the specified module. Returns a 2-tuple of (loader, portion) where portion is a sequence of file system locations contributing to part of a namespace package. The loader may be None while specifying portion to signify the contribution of the file system locations to a namespace ...
doc_3893
This is a low-level interface to the functionality of warn(), passing in explicitly the message, category, filename and line number, and optionally the module name and the registry (which should be the __warningregistry__ dictionary of the module). The module name defaults to the filename with .py stripped; if no regis...
doc_3894
The epilogue attribute acts the same way as the preamble attribute, except that it contains text that appears between the last boundary and the end of the message. You do not need to set the epilogue to the empty string in order for the Generator to print a newline at the end of the file.
doc_3895
Returns the currently selected Stream for a given device. Parameters device (torch.device or int, optional) – selected device. Returns the currently selected Stream for the current device, given by current_device(), if device is None (default).
doc_3896
Implements stochastic gradient descent (optionally with momentum). Nesterov momentum is based on the formula from On the importance of initialization and momentum in deep learning. Parameters params (iterable) – iterable of parameters to optimize or dicts defining parameter groups lr (float) – learning rate mom...
doc_3897
A readonly int that shows the number of plans currently in the cuFFT plan cache.
doc_3898
Set Index or MultiIndex name. Able to set new names partially and by level. Parameters names:label or list of label or dict-like for MultiIndex Name(s) to set. Changed in version 1.3.0. level:int, label or list of int or label, optional If the index is a MultiIndex and names is not dict-like, level(s) to ...
doc_3899
Return the color of the text.