_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_13600
Get the width, total height, and descent (in TeX points) for a text typeset by the current LaTeX environment.
doc_13601
Return value^self.
doc_13602
Called when the test case test fails or errors, but was marked with the expectedFailure() decorator. The default implementation appends a tuple (test, formatted_err) to the instance’s expectedFailures attribute, where formatted_err is a formatted traceback derived from err.
doc_13603
Return cumulative product over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative product. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The index or the name of the axis. 0 is equivalent to None or ‘index’. skipna:bool, default True Exclude NA/n...
doc_13604
From the CurrentSiteMiddleware: An instance of Site or RequestSite as returned by get_current_site() representing the current site.
doc_13605
Return a copy (“clone”) of the hash object. This can be used to efficiently compute the digests of data sharing a common initial substring.
doc_13606
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_13607
See Migration guide for more details. tf.compat.v1.raw_ops.LogicalOr tf.raw_ops.LogicalOr( x, y, name=None ) Note: math.logical_or supports broadcasting. More about broadcasting here Args x A Tensor of type bool. y A Tensor of type bool. name A name for the operation (optional). Re...
doc_13608
tf.estimator.LinearRegressor( feature_columns, model_dir=None, label_dimension=1, weight_column=None, optimizer='Ftrl', config=None, warm_start_from=None, loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, sparse_combiner='sum' ) Train a linear regression model to predict label value given ob...
doc_13609
Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate and set the returncode attribute. The optional input argument should be data to be sent to the child process, or None, if no data should be sent to the child. If streams were opened i...
doc_13610
sys.last_value sys.last_traceback These three variables are not always defined; they are set when an exception is not handled and the interpreter prints an error message and a stack traceback. Their intended use is to allow an interactive user to import a debugger module and engage in post-mortem debugging without ...
doc_13611
'version': 1, 'disable_existing_loggers': False, 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse', }, 'require_debug_true': { '()': 'django.utils.log.RequireDebugTrue', }, }, 'formatters': { 'django.serve...
doc_13612
Returns array of indices of the maximum values along the given axis. Masked values are treated as if they had the value fill_value. Parameters axis{None, integer} If None, the index is into the flattened array, otherwise along the specified axis fill_valuescalar or None, optional Value used to fill in the m...
doc_13613
Set the current error handler. If no ErrorHandler is set, errors will be raised as exceptions, and warnings will be printed.
doc_13614
The constructor for GDALRaster accepts two parameters. The first parameter defines the raster source, and the second parameter defines if a raster should be opened in write mode. For newly-created rasters, the second parameter is ignored and the new raster is always created in write mode. The first parameter can take t...
doc_13615
The document contained no document element at all.
doc_13616
tf.compat.v1.get_default_session() The returned Session will be the innermost session on which a Session or Session.as_default() context has been entered. Note: The default session is a property of the current thread. If you create a new thread, and wish to use the default session in that thread, you must explicitly ...
doc_13617
Lab to RGB color space conversion. Parameters lab(…, 3) array_like The image in Lab format. Final dimension denotes channels. illuminant{“A”, “D50”, “D55”, “D65”, “D75”, “E”}, optional The name of the illuminant (the function is NOT case sensitive). observer{“2”, “10”}, optional The aperture angle of th...
doc_13618
Create a BaseManager object. Once created one should call start() or get_server().serve_forever() to ensure that the manager object refers to a started manager process. address is the address on which the manager process listens for new connections. If address is None then an arbitrary one is chosen. authkey is the aut...
doc_13619
Return whether the stack is empty.
doc_13620
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_13621
Gets a list of the available clipboard types. get_types() -> list Gets a list of data type string identifiers for the data currently available on the clipboard. Each identifier can be used in the pygame.scrap.get() method to get the clipboard content of the specific type. Returns: list of strings of the availabl...
doc_13622
If an attempt is made to change any object in a way that is not permitted with regard to the Namespaces in XML recommendation, this exception is raised.
doc_13623
With no arguments, return a dictionary of all configuration variables relevant for the current platform. With arguments, return a list of values that result from looking up each argument in the configuration variable dictionary. For each argument, if the value is not found, return None.
doc_13624
Return the SubplotSpec instance associated with the subplot.
doc_13625
Alias for get_linestyle.
doc_13626
Creates a user-defined function that you can later use from within SQL statements under the function name name. num_params is the number of parameters the function accepts (if num_params is -1, the function may take any number of arguments), and func is a Python callable that is called as the SQL function. If determini...
doc_13627
A RegexValidator instance that ensures a value is a comma-separated list of integers.
doc_13628
Return whether the artist is to be rasterized.
doc_13629
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None angle float animated bool antialiased or aa bool or None capstyle CapStyle or {'butt', 'p...
doc_13630
Dump a pickle of the array to the specified file. The array can be read back with pickle.load or numpy.load. Parameters filestr or Path A string naming the dump file. Changed in version 1.17.0: pathlib.Path objects are now accepted.
doc_13631
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
doc_13632
class sklearn.discriminant_analysis.QuadraticDiscriminantAnalysis(*, priors=None, reg_param=0.0, store_covariance=False, tol=0.0001) [source] Quadratic Discriminant Analysis A classifier with a quadratic decision boundary, generated by fitting class conditional densities to the data and using Bayes’ rule. The model f...
doc_13633
Based on DecimalField and translates its input into NumericRange. Default for DecimalRangeField.
doc_13634
Return the data as an array of datetime.datetime objects. Timezone information is retained if present. Warning Python’s datetime uses microsecond resolution, which is lower than pandas (nanosecond). The values are truncated. Returns numpy.ndarray Object dtype array containing native Python datetime objects. ...
doc_13635
Returns a Template object for a given template_name by looping through results from get_template_sources() and calling get_contents(). This returns the first matching template. If no template is found, TemplateDoesNotExist is raised. The optional skip argument is a list of origins to ignore when extending templates. Th...
doc_13636
Return a list of names of symbols in this table.
doc_13637
See Migration guide for more details. tf.compat.v1.raw_ops.WriteImageSummary tf.raw_ops.WriteImageSummary( writer, step, tag, tensor, bad_color, max_images=3, name=None ) Writes image tensor at step with tag using summary writer. tensor is image with shape [height, width, channels]. Args writer A Tensor...
doc_13638
Set the Figure instance the artist belongs to. Parameters figFigure
doc_13639
The entity body for the request, or None if not specified. Changed in version 3.4: Changing value of Request.data now deletes “Content-Length” header if it was previously set or calculated.
doc_13640
exception locale.Error Exception raised when the locale passed to setlocale() is not recognized. locale.setlocale(category, locale=None) If locale is given and not None, setlocale() modifies the locale setting for the category. The available categories are listed in the data description below. locale may be a s...
doc_13641
CIE-LAB to CIE-LCH color space conversion. LCH is the cylindrical representation of the LAB (Cartesian) colorspace Parameters lab(…, 3) array_like The N-D image in CIE-LAB format. The last (N+1-th) dimension must have at least 3 elements, corresponding to the L, a, and b color channels. Subsequent elements are ...
doc_13642
nbytes == product(shape) * itemsize == len(m.tobytes()). This is the amount of space in bytes that the array would use in a contiguous representation. It is not necessarily equal to len(m): >>> import array >>> a = array.array('i', [1,2,3,4,5]) >>> m = memoryview(a) >>> len(m) 5 >>> m.nbytes 20 >>> y = m[::2] >>> len(y...
doc_13643
A unique character code for each of the 21 different built-in types. Examples >>> x = np.dtype(float) >>> x.char 'd'
doc_13644
Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
doc_13645
A compatibility alias for tobytes, with exactly the same behavior. Despite its name, it returns bytes not strs. Deprecated since version 1.19.0.
doc_13646
class ast.NotEq class ast.Lt class ast.LtE class ast.Gt class ast.GtE class ast.Is class ast.IsNot class ast.In class ast.NotIn Comparison operator tokens.
doc_13647
Use the more secure APOP authentication to log into the POP3 server.
doc_13648
Gets the locks for the Surface get_locks() -> tuple Returns the currently existing locks for the Surface.
doc_13649
Return a random floating point number N such that a <= N <= b for a <= b and b <= N <= a for b < a. The end-point value b may or may not be included in the range depending on floating-point rounding in the equation a + (b-a) * random().
doc_13650
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array.
doc_13651
Rational Quadratic kernel. The RationalQuadratic kernel can be seen as a scale mixture (an infinite sum) of RBF kernels with different characteristic length scales. It is parameterized by a length scale parameter \(l>0\) and a scale mixture parameter \(\alpha>0\). Only the isotropic variant where length_scale \(l\) i...
doc_13652
See Migration guide for more details. tf.compat.v1.clip_by_global_norm tf.clip_by_global_norm( t_list, clip_norm, use_norm=None, name=None ) Given a tuple or list of tensors t_list, and a clipping ratio clip_norm, this operation returns a list of clipped tensors list_clipped and the global norm (global_norm) of ...
doc_13653
tf.abs Compat aliases for migration See Migration guide for more details. tf.compat.v1.abs, tf.compat.v1.math.abs tf.math.abs( x, name=None ) Given a tensor of integer or floating-point values, this operation returns a tensor of the same type, where each element contains the absolute value of the corresponding e...
doc_13654
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool canvas FigureCanvas clip_box Bbox clip_on bool clip_path Patch or (Path, ...
doc_13655
tf.compat.v1.to_int32( x, name='ToInt32' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. name A name for the operation (optional). Returns A Tensor or SparseTen...
doc_13656
tf.compat.v1.device( device_name_or_function ) See tf.Graph.device for more details. Args device_name_or_function The device name or function to use in the context. Returns A context manager that specifies the default device to use for newly created ops. Raises RuntimeError If eager ...
doc_13657
See Migration guide for more details. tf.compat.v1.initializers.random_normal tf.compat.v1.random_normal_initializer( mean=0.0, stddev=1.0, seed=None, dtype=tf.dtypes.float32 ) Args mean a python scalar or a scalar tensor. Mean of the random values to generate. stddev a python scalar or a scalar t...
doc_13658
tf.compat.v1.metrics.mean_tensor( values, weights=None, metrics_collections=None, updates_collections=None, name=None ) In contrast to the mean function which returns a scalar with the mean, this function returns an average tensor with the same shape as the input tensors. The mean_tensor function creates two l...
doc_13659
See Migration guide for more details. tf.compat.v1.config.experimental_functions_run_eagerly tf.config.experimental_functions_run_eagerly() Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.config.functions_run_eagerly instead of the experimental version.
doc_13660
Predict using GLM with feature matrix X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Samples. Returns y_predarray of shape (n_samples,) Returns predicted values.
doc_13661
This is an abstract base class, meaning that this class should not be instantiated directly. Define a subclass of tzinfo to capture information about a particular time zone. An instance of (a concrete subclass of) tzinfo can be passed to the constructors for datetime and time objects. The latter objects view their attr...
doc_13662
If prop is None, return a list of reST-formatted strings of all settable properties and their valid values. If prop is not None, it is a valid property name and that property will be returned as a string of "property : valid" values.
doc_13663
Base-2 logarithm of x. Parameters xarray_like Input values. 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 provided or None, a freshly-allocated array is returned. A tuple (possible o...
doc_13664
syslog.syslog(priority, message) Send the string message to the system logger. A trailing newline is added if necessary. Each message is tagged with a priority composed of a facility and a level. The optional priority argument, which defaults to LOG_INFO, determines the message priority. If the facility is not encode...
doc_13665
Return the list of Patchs in the legend.
doc_13666
class sklearn.preprocessing.OneHotEncoder(*, categories='auto', drop=None, sparse=True, dtype=<class 'numpy.float64'>, handle_unknown='error') [source] Encode categorical features as a one-hot numeric array. The input to this transformer should be an array-like of integers or strings, denoting the values taken on by ...
doc_13667
A bool that controls whether TensorFloat-32 tensor cores may be used in matrix multiplications on Ampere or newer GPUs. See TensorFloat-32(TF32) on Ampere devices.
doc_13668
The character used to draw separator lines under the help-message headers. If empty, no ruler line is drawn. It defaults to '='.
doc_13669
A subclass of BaseManager which can be used for the synchronization of processes. Objects of this type are returned by multiprocessing.Manager(). Its methods create and return Proxy Objects for a number of commonly used data types to be synchronized across processes. This notably includes shared lists and dictionaries....
doc_13670
A namespace table for a block. The constructor is not public. get_type() Return the type of the symbol table. Possible values are 'class', 'module', and 'function'. get_id() Return the table’s identifier. get_name() Return the table’s name. This is the name of the class if the table is for a class, the ...
doc_13671
Parameters picname – a string, name of a gif-file or "nopic", or None Set background image or return name of current backgroundimage. If picname is a filename, set the corresponding image as background. If picname is "nopic", delete background image, if present. If picname is None, return the filename of the curren...
doc_13672
Compute the N-dimensional discrete Fourier Transform for real input. This function computes the N-dimensional discrete Fourier Transform over any number of axes in an M-dimensional real array by means of the Fast Fourier Transform (FFT). By default, all axes are transformed, with the real transform performed over the...
doc_13673
Add a centered supxlabel to the figure. Parameters tstr The supxlabel text. xfloat, default: 0.5 The x location of the text in figure coordinates. yfloat, default: 0.01 The y location of the text in figure coordinates. horizontalalignment, ha{'center', 'left', 'right'}, default: center The horizonta...
doc_13674
tf.experimental.numpy.bitwise_and( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.bitwise_and.
doc_13675
Alias for set_edgecolor.
doc_13676
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_13677
Update this artist's properties from the dict props. Parameters propsdict
doc_13678
Converts a string to a URL slug by: Converting to ASCII if allow_unicode is False (the default). Converting to lowercase. Removing characters that aren’t alphanumerics, underscores, hyphens, or whitespace. Replacing any whitespace or repeated dashes with single dashes. Removing leading and trailing whitespace, dashes,...
doc_13679
Verifies that the given compiler is ABI-compatible with PyTorch. Parameters compiler (str) – The compiler executable name to check (e.g. g++). Must be executable in a shell process. Returns False if the compiler is (likely) ABI-incompatible with PyTorch, else True.
doc_13680
Installs the unaccent extension.
doc_13681
System-wide real-time clock. Setting this clock requires appropriate privileges. Availability: Unix. New in version 3.3.
doc_13682
Bases: matplotlib.colorbar.Colorbar [Deprecated] Notes Deprecated since version 3.4:
doc_13683
Scalar method identical to the corresponding array attribute. Please see ndarray.cumprod.
doc_13684
See Migration guide for more details. tf.compat.v1.ceil, tf.compat.v1.math.ceil tf.math.ceil( x, name=None ) For example: tf.math.ceil([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) <tf.Tensor: shape=(7,), dtype=float32, numpy=array([-1., -1., -0., 1., 2., 2., 2.], dtype=float32)> Args x A tf.Tensor. Mus...
doc_13685
sklearn.linear_model.lars_path_gram(Xy, Gram, *, n_samples, max_iter=500, alpha_min=0, method='lar', copy_X=True, eps=2.220446049250313e-16, copy_Gram=True, verbose=0, return_path=True, return_n_iter=False, positive=False) [source] lars_path in the sufficient stats mode [1] The optimization objective for the case met...
doc_13686
See Migration guide for more details. tf.compat.v1.io.gfile.remove tf.io.gfile.remove( path ) Args path string, a path Raises errors.OpError Propagates any errors reported by the FileSystem API. E.g., NotFoundError if the path does not exist.
doc_13687
Return an array whose values are limited to [min, max]. One of max or min must be given. Refer to numpy.clip for full documentation. See also numpy.clip equivalent function
doc_13688
Set the background color of the text by updating the bbox. Parameters colorcolor See also set_bbox To change the position of the bounding box
doc_13689
Return a suitable DOM implementation. The name is either well-known, the module name of a DOM implementation, or None. If it is not None, imports the corresponding module and returns a DOMImplementation object if the import succeeds. If no name is given, and if the environment variable PYTHON_DOM is set, this variable ...
doc_13690
How to draw the end caps if the line is solid (not is_dashed) Parameters sCapStyle or {'butt', 'projecting', 'round'}
doc_13691
The OpenGIS geometry type, generally set by the form field.
doc_13692
Return the path of the user-specific site-packages directory, USER_SITE. If it is not initialized yet, this function will also set it, respecting USER_BASE. To determine if the user-specific site-packages was added to sys.path ENABLE_USER_SITE should be used. New in version 3.2.
doc_13693
Compute the bit-wise AND of two arrays element-wise. Computes the bit-wise AND of the underlying binary representation of the integers in the input arrays. This ufunc implements the C/Python operator &. Parameters x1, x2array_like Only integer and boolean types are handled. If x1.shape != x2.shape, they must be...
doc_13694
template_name: 'django/forms/widgets/radio.html' option_template_name: 'django/forms/widgets/radio_option.html' Similar to Select, but rendered as a list of radio buttons within <div> tags: <div> <div><input type="radio" name="..."></div> ... </div> Changed in Django 4.0: So they are announced more concisel...
doc_13695
Exception raised when an option referenced from a value does not exist. Subclass of InterpolationError.
doc_13696
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_13697
For syntax errors - the offset into the text where the error occurred.
doc_13698
Perform the 3D projection for this object.
doc_13699
Return an antiderivative (indefinite integral) of a polynomial. 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. The returned order m antiderivative P of polynomial p...