_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_28000
enum.IntFlag collection of OP_* constants.
doc_28001
create a new surface that references its parent subsurface(Rect) -> Surface Returns a new Surface that shares its pixels with its new parent. The new Surface is considered a child of the original. Modifications to either Surface pixels will effect each other. Surface information like clipping area and color keys are ...
doc_28002
Module: email.mime.application A subclass of MIMENonMultipart, the MIMEApplication class is used to represent MIME message objects of major type application. _data is a string containing the raw byte data. Optional _subtype specifies the MIME subtype and defaults to octet-stream. Optional _encoder is a callable (i.e. f...
doc_28003
Abstract base class for unions in native byte order.
doc_28004
Check for the existence of the compiler executables whose names are listed in cmd_names or all the compiler executables when cmd_names is empty and return the first missing executable or None when none is found missing.
doc_28005
Remove and return oldAttr from the attribute list, if present. If oldAttr is not present, NotFoundErr is raised.
doc_28006
os.MFD_ALLOW_SEALING os.MFD_HUGETLB os.MFD_HUGE_SHIFT os.MFD_HUGE_MASK os.MFD_HUGE_64KB os.MFD_HUGE_512KB os.MFD_HUGE_1MB os.MFD_HUGE_2MB os.MFD_HUGE_8MB os.MFD_HUGE_16MB os.MFD_HUGE_32MB os.MFD_HUGE_256MB os.MFD_HUGE_512MB os.MFD_HUGE_1GB os.MFD_HUGE_2GB os.MFD_HUGE_16GB These flags can...
doc_28007
Adds a child module to the current module. The module can be accessed as an attribute using the given name. Parameters name (string) – name of the child module. The child module can be accessed from this module using the given name module (Module) – child module to be added to the module.
doc_28008
Parse the headers from a file pointer fp representing a HTTP request/response. The file has to be a BufferedIOBase reader (i.e. not text) and must provide a valid RFC 2822 style header. This function returns an instance of http.client.HTTPMessage that holds the header fields, but no payload (the same as HTTPResponse.ms...
doc_28009
The type of objects defined in extension modules with PyGetSetDef, such as FrameType.f_locals or array.array.typecode. This type is used as descriptor for object attributes; it has the same purpose as the property type, but for classes defined in extension modules.
doc_28010
Create a new decompressor object. This object may be used to decompress data incrementally. For one-shot compression, use the decompress() function instead. Note This class does not transparently handle inputs containing multiple compressed streams, unlike decompress() and BZ2File. If you need to decompress a multi-st...
doc_28011
Fit the gradient boosting model. Parameters Xarray-like of shape (n_samples, n_features) The input samples. yarray-like of shape (n_samples,) Target values. sample_weightarray-like of shape (n_samples,) default=None Weights of training data. New in version 0.23. Returns selfobject
doc_28012
Return the Attr node for the attribute named by attrname.
doc_28013
See Migration guide for more details. tf.compat.v1.raw_ops.TextLineDataset tf.raw_ops.TextLineDataset( filenames, compression_type, buffer_size, name=None ) Args filenames A Tensor of type string. A scalar or a vector containing the name(s) of the file(s) to be read. compression_type A Tensor of t...
doc_28014
Do some necessary and/or useful substitutions for texts to be included in LaTeX documents. This distinguishes text-mode and math-mode by replacing the math separator $ with \(\displaystyle %s\). Escaped math separators (\$) are ignored. The following characters are escaped in text segments: _^$%
doc_28015
Set the delivery date of the message to date, a floating-point number representing seconds since the epoch.
doc_28016
skimage.restoration.ball_kernel(radius, ndim) Create a ball kernel for restoration.rolling_ball. skimage.restoration.calibrate_denoiser(…) Calibrate a denoising function and return optimal J-invariant version. skimage.restoration.cycle_spin(x, func, …) Cycle spinning (repeatedly apply func to shifted versions of x)...
doc_28017
Reserve an ID for an indirect object. The name is used for debugging in case we forget to print out the object with writeObject.
doc_28018
Adds object to the context.
doc_28019
Create a cell and add it to the table. Parameters rowint Row index. colint Column index. *args, **kwargs All other parameters are passed on to Cell. Returns Cell The created cell.
doc_28020
Return number rounded to ndigits precision after the decimal point. If ndigits is omitted or is None, it returns the nearest integer to its input. For the built-in types supporting round(), values are rounded to the closest multiple of 10 to the power minus ndigits; if two multiples are equally close, rounding is done ...
doc_28021
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_28022
Return the integer index (from the Unicode table) of symbol. Parameters symbolstr A single unicode character, a TeX command (e.g. r'pi') or a Type1 symbol name (e.g. 'phi'). mathbool, default: True If False, always treat as a single unicode character.
doc_28023
See Migration guide for more details. tf.compat.v1.raw_ops.UnsortedSegmentJoin tf.raw_ops.UnsortedSegmentJoin( inputs, segment_ids, num_segments, separator='', name=None ) Computes the string join along segments of a tensor. Given segment_ids with rank N and data with rank N+M: `output[i, k1...kM] = strings.join...
doc_28024
Font render to text origin mode origin -> bool If set True, render_to() and render_raw_to() will take the dest position to be that of the text origin, as opposed to the top-left corner of the bounding box. See get_rect() for details.
doc_28025
The day of the week with Monday=0, Sunday=6. Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which is denoted by 6. This method is available on both Series with datetime values (using the dt accessor) or DatetimeIndex. Returns Series or Index Containin...
doc_28026
Default widget: NumberInput when Field.localize is False, else TextInput. Empty value: None Normalizes to: A Python integer. Validates that the given value is an integer. Uses MaxValueValidator and MinValueValidator if max_value and min_value are provided. Leading and trailing whitespace is allowed, as in Python’s in...
doc_28027
Create a pseudocolor plot with a non-regular rectangular grid. Call signature: pcolor([X, Y,] C, **kwargs) X and Y can be used to specify the corners of the quadrilaterals. Hint pcolor() can be very slow for large arrays. In most cases you should use the similar but much faster pcolormesh instead. See Differences b...
doc_28028
Reset the warnings filter. This discards the effect of all previous calls to filterwarnings(), including that of the -W command line options and calls to simplefilter().
doc_28029
This method does nothing.
doc_28030
Renders a widget to HTML using the given renderer. If renderer is None, the renderer from the FORM_RENDERER setting is used.
doc_28031
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_28032
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
doc_28033
Add a section named section to the instance. If a section by the given name already exists, DuplicateSectionError is raised. If the default section name is passed, ValueError is raised. The name of the section must be a string; if not, TypeError is raised. Changed in version 3.2: Non-string section names raise TypeErr...
doc_28034
Convert o to a JSON serializable type. See json.JSONEncoder.default(). Python does not support overriding how basic types like str or list are serialized, they are handled before this method. Parameters o (Any) – Return type Any
doc_28035
tf.compat.v1.get_variable( name, shape=None, dtype=None, initializer=None, regularizer=None, trainable=None, collections=None, caching_device=None, partitioner=None, validate_shape=True, use_resource=None, custom_getter=None, constraint=None, synchronization=tf.VariableSynchronization.AUTO, aggregat...
doc_28036
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_28037
Returns the logarithm of x to the given base. If the base is not specified, returns the natural logarithm of x. There is one branch cut, from 0 along the negative real axis to -∞, continuous from above.
doc_28038
Multi-task Lasso model trained with L1/L2 mixed-norm as regularizer. See glossary entry for cross-validation estimator. The optimization objective for MultiTaskLasso is: (1 / (2 * n_samples)) * ||Y - XW||^Fro_2 + alpha * ||W||_21 Where: ||W||_21 = \sum_i \sqrt{\sum_j w_{ij}^2} i.e. the sum of norm of each row. Read...
doc_28039
Evaluates the lowest cost contraction order for an einsum expression by considering the creation of intermediate arrays. Parameters subscriptsstr Specifies the subscripts for summation. *operandslist of array_like These are the arrays for the operation. optimize{bool, list, tuple, ‘greedy’, ‘optimal’} C...
doc_28040
Force the mask to soft. Whether the mask of a masked array is hard or soft is determined by its hardmask property. soften_mask sets hardmask to False. See also ma.MaskedArray.hardmask
doc_28041
Concrete implementation of InspectLoader.get_source().
doc_28042
tf.experimental.numpy.around( a, decimals=0 ) Unsupported arguments: out. See the NumPy documentation for numpy.around.
doc_28043
Return whether y values increase from top to bottom. Note that this only affects drawing of texts and images.
doc_28044
Return the lowercased value (without parameters) of the message’s Content-Disposition header if it has one, or None. The possible values for this method are inline, attachment or None if the message follows RFC 2183. New in version 3.5.
doc_28045
tf.compat.v1.arg_max( input, dimension, output_type=tf.dtypes.int64, name=None ) Note that in case of ties the identity of the return value is not guaranteed. Usage: import tensorflow as tf a = [1, 10, 26.9, 2.8, 166.32, 62.3] b = tf.math.argmax(input = a) c = tf.keras.backend.eval(b) # c = 4 # here a[4] = 166.32 ...
doc_28046
Predict class or regression value for X. For a classification model, the predicted class for each sample in X is returned. For a regression model, the predicted value based on X is returned. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, it will be conver...
doc_28047
Mark the breakpoint as enabled.
doc_28048
Loader that wraps Python’s “classic” import algorithm. Deprecated since version 3.3: This emulation is no longer needed, as the standard import mechanism is now fully PEP 302 compliant and available in importlib.
doc_28049
Bases: matplotlib.backend_bases.RendererBase The renderer handles all the drawing primitives using a graphics context instance that controls the colors/styles buffer_rgba()[source] clear()[source] draw_mathtext(gc, x, y, s, prop, angle)[source] Draw mathtext using matplotlib.mathtext. draw_path(gc, pa...
doc_28050
Averages all events. Returns A FunctionEventAvg object.
doc_28051
See Migration guide for more details. tf.compat.v1.image.crop_to_bounding_box tf.image.crop_to_bounding_box( image, offset_height, offset_width, target_height, target_width ) This op cuts a rectangular part out of image. The top-left corner of the returned image is at offset_height, offset_width in image, and it...
doc_28052
Bases: matplotlib.lines.Line2D 3D line object. Keyword arguments are passed onto Line2D(). draw(renderer)[source] Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes...
doc_28053
Returns the Model with the given model_name. model_name is case-insensitive. Raises LookupError if no such model exists in this application. Requires the app registry to be fully populated unless the require_ready argument is set to False. require_ready behaves exactly as in apps.get_model().
doc_28054
Return the image extent as tuple (left, right, bottom, top).
doc_28055
data: The serialized data for the response. status: A status code for the response. Defaults to 200. See also status codes. template_name: A template name to use if HTMLRenderer is selected. headers: A dictionary of HTTP headers to use in the response. content_type: The content type of the response. Typically, this...
doc_28056
Return whether the mouse event occurred inside the axis-aligned bounding-box of the text.
doc_28057
Apply only the affine part of this transformation on the given array of values. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally a no-op. In affine transformations, this is equivalent to transform(values). Parameters valuesa...
doc_28058
Return this Axis' scale (as a str).
doc_28059
tf.compat.v1.train.NewCheckpointReader( filepattern ) Args filepattern The filename. Returns A CheckpointReader object.
doc_28060
A dictionary of additional attributes for process creation as given in STARTUPINFOEX, see UpdateProcThreadAttribute. Supported attributes: handle_list Sequence of handles that will be inherited. close_fds must be true if non-empty. The handles must be temporarily made inheritable by os.set_handle_inheritable() when p...
doc_28061
Return the appropriate pdf operator to cause the path to be stroked, filled, or both.
doc_28062
Sets the module in training mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc. Parameters mode (bool) – whether to set training mode (True) or evaluation mode (False...
doc_28063
Identifier of the device on which this file resides.
doc_28064
Scale back the data to the original representation Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data that should be transformed back. Returns X_tr{ndarray, sparse matrix} of shape (n_samples, n_features) Transformed array.
doc_28065
Handles the Content-Transfer-Encoding header. cte Valid values are 7bit, 8bit, base64, and quoted-printable. See RFC 2045 for more information.
doc_28066
See Migration guide for more details. tf.compat.v1.fft2d, tf.compat.v1.signal.fft2d, tf.compat.v1.spectral.fft2d tf.signal.fft2d( input, name=None ) Computes the 2-dimensional discrete Fourier transform over the inner-most 2 dimensions of input. Args input A Tensor. Must be one of the following types: c...
doc_28067
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_28068
Reads the logging configuration from a configparser-format file. The format of the file should be as described in Configuration file format. This function can be called several times from an application, allowing an end user to select from various pre-canned configurations (if the developer provides a mechanism to pres...
doc_28069
tf.multiply Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.multiply, tf.compat.v1.multiply tf.math.multiply( x, y, name=None ) For example: x = tf.constant(([1, 2, 3, 4])) tf.math.multiply(x, x) <tf.Tensor: shape=(4,), dtype=..., numpy=array([ 1, 4, 9, 16], dtype=int32)> ...
doc_28070
Return True if cookie has the named cookie-attribute.
doc_28071
tf.compat.v1.substr( input, pos, len, name=None, unit='BYTE' ) For each string in the input Tensor, creates a substring starting at index pos with a total length of len. If len defines a substring that would extend beyond the length of the input string, or if len is negative, then as many characters as possible ar...
doc_28072
Get a list of artists contained in the figure.
doc_28073
See Migration guide for more details. tf.compat.v1.train.Example Attributes features Features features
doc_28074
Wraps an int. This is used when reading or writing NSKeyedArchiver encoded data, which contains UID (see PList manual). It has one attribute, data, which can be used to retrieve the int value of the UID. data must be in the range 0 <= data < 2**64. New in version 3.8.
doc_28075
Rewind the read pointer. The next readframes() will start from the beginning.
doc_28076
Print a help message, including the program usage and information about the arguments registered with the ArgumentParser. If file is None, sys.stdout is assumed.
doc_28077
Return the depth of the decision tree. The depth of a tree is the maximum distance between the root and any leaf. Returns self.tree_.max_depthint The maximum depth of the tree.
doc_28078
Return a list of the child Artists of this Artist.
doc_28079
Similar to the guess_all_extensions() function, using the tables stored as part of the object.
doc_28080
Given a Tensor quantized by linear(affine) quantization, returns the scale of the underlying quantizer().
doc_28081
tf.experimental.numpy.polyval( p, x ) See the NumPy documentation for numpy.polyval.
doc_28082
Return the result of shifting the digits of the first operand by an amount specified by the second operand. The second operand must be an integer in the range -precision through precision. The absolute value of the second operand gives the number of places to shift. If the second operand is positive then the shift is t...
doc_28083
Retrieves the value set by set_tabsize(). New in version 3.9.
doc_28084
Set the pick radius used for containment tests. See contains for more details. Parameters dfloat Pick radius, in points.
doc_28085
See Migration guide for more details. tf.compat.v1.raw_ops.Min tf.raw_ops.Min( input, axis, keep_dims=False, name=None ) Reduces input along the dimensions given in axis. Unless keep_dims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keep_dims is true, the reduced dimensions are reta...
doc_28086
tf.compat.v1.losses.mean_pairwise_squared_error( labels, predictions, weights=1.0, scope=None, loss_collection=tf.GraphKeys.LOSSES ) Unlike mean_squared_error, which is a measure of the differences between corresponding elements of predictions and labels, mean_pairwise_squared_error is a measure of the differe...
doc_28087
Scalar method identical to the corresponding array attribute. Please see ndarray.mean.
doc_28088
Return True if the float instance is finite with integral value, and False otherwise: >>> (-2.0).is_integer() True >>> (3.2).is_integer() False
doc_28089
See Migration guide for more details. tf.compat.v1.math.sobol_sample tf.math.sobol_sample( dim, num_results, skip=0, dtype=tf.dtypes.float32, name=None ) Creates a Sobol sequence with num_results samples. Each sample has dimension dim. Skips the first skip samples. Args dim Positive scalar Tensor repres...
doc_28090
Return all the non-masked data as a 1-D array. This function is equivalent to calling the “compressed” method of a ma.MaskedArray, see ma.MaskedArray.compressed for details. See also ma.MaskedArray.compressed Equivalent method.
doc_28091
Set the x-axis scale. Parameters value{"linear"} The axis scale type to apply. 3D axes currently only support linear scales; other scales yield nonsensical results. **kwargs Keyword arguments are nominally forwarded to the scale class, but none of them is applicable for linear scales.
doc_28092
Sets gradients of all model parameters to zero. See similar function under torch.optim.Optimizer for more context. Parameters set_to_none (bool) – instead of setting to zero, set the grads to None. See torch.optim.Optimizer.zero_grad() for details.
doc_28093
Token value for ">".
doc_28094
ContentType also has a custom manager, ContentTypeManager, which adds the following methods: clear_cache() Clears an internal cache used by ContentType to keep track of models for which it has created ContentType instances. You probably won’t ever need to call this method yourself; Django will call it automatically...
doc_28095
Return divmod(self, value).
doc_28096
The impurity-based feature importances. The higher, the more important the feature. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardin...
doc_28097
Set the artist offset transform. Parameters transOffsetTransform
doc_28098
Initialize self. See help(type(self)) for accurate signature.
doc_28099
Resolve MRO entries dynamically as specified by PEP 560. This function looks for items in bases that are not instances of type, and returns a tuple where each such object that has an __mro_entries__ method is replaced with an unpacked result of calling this method. If a bases item is an instance of type, or it doesn’t ...