_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_19800
Build a forest of trees from the training set (X, y). Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, its dtype will be converted to dtype=np.float32. If a sparse matrix is provided, it will be converted into a sparse csc_matrix. yarray-like of ...
doc_19801
Renders the error list using the template defined by template_name_text.
doc_19802
Bases: matplotlib.backend_bases.FigureCanvasBase copy_from_bbox(bbox)[source] print_pdf(fobj, *, orientation='portrait') print_png(fobj)[source] print_ps(fobj, *, orientation='portrait') print_raw(fobj)[source] print_rgba(fobj)[source] print_svg(fobj, *, orientation='portrait') print_svg...
doc_19803
Address space of a memory block (int). Read-only property. tracemalloc uses the domain 0 to trace memory allocations made by Python. C extensions can use other domains to trace other resources.
doc_19804
Return a new datetime object whose date components are equal to the given date object’s, and whose time components are equal to the given time object’s. If the tzinfo argument is provided, its value is used to set the tzinfo attribute of the result, otherwise the tzinfo attribute of the time argument is used. For any d...
doc_19805
Bases: object The relativedelta type is designed to be applied to an existing datetime and can replace specific components of that datetime, or represents an interval of time. It is based on the specification of the excellent work done by M.-A. Lemburg in his mx.DateTime extension. However, notice that this type does...
doc_19806
Return a copy of each string element where all tab characters are replaced by one or more spaces. See also char.expandtabs
doc_19807
Return a Series containing counts of unique values. The resulting object will be in descending order so that the first element is the most frequently-occurring element. Excludes NA values by default. Parameters normalize:bool, default False If True then the object returned will contain the relative frequencies ...
doc_19808
Convert coefficient matrix to sparse format. Converts the coef_ member to a scipy.sparse matrix, which for L1-regularized models can be much more memory- and storage-efficient than the usual numpy.ndarray representation. The intercept_ member is not converted. Returns self Fitted estimator. Notes For non-spar...
doc_19809
Connect callback function to matplotlib event and return id.
doc_19810
bytearray.isupper() Return True if there is at least one uppercase alphabetic ASCII character in the sequence and no lowercase ASCII characters, False otherwise. For example: >>> b'HELLO WORLD'.isupper() True >>> b'Hello world'.isupper() False Lowercase ASCII characters are those byte values in the sequence b'abcdef...
doc_19811
Repeat elements of an array. Parameters aarray_like Input array. repeatsint or array of ints The number of repetitions for each element. repeats is broadcasted to fit the shape of the given axis. axisint, optional The axis along which to repeat values. By default, use the flattened input array, and retu...
doc_19812
Set the parameters of an estimator from the ensemble. Valid parameter keys can be listed with get_params(). Note that you can directly set the parameters of the estimators contained in estimators. Parameters **paramskeyword arguments Specific parameters using e.g. set_params(parameter_name=new_value). In additi...
doc_19813
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ...
doc_19814
The arguments are a string and optional globals and locals. If provided, globals must be a dictionary. If provided, locals can be any mapping object. The expression argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the globals and locals dictionaries as global and lo...
doc_19815
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_19816
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_19817
Return the group id.
doc_19818
Arguments that accept RaggedTensors are marked in bold. tf.batch_gather(params, indices, name=None) tf.bitwise.bitwise_and(x, y, name=None) tf.bitwise.bitwise_or(x, y, name=None) tf.bitwise.bitwise_xor(x, y, name=None) tf.bitwise.invert(x, name=None) tf.bitwise.left_shift(x, y, name=None) tf.bitwise.right_shif...
doc_19819
See Migration guide for more details. tf.compat.v1.sparse.cross_hashed tf.sparse.cross_hashed( inputs, num_buckets=0, hash_key=None, name=None ) For example, if the inputs are * inputs[0]: SparseTensor with shape = [2, 2] [0, 0]: "a" [1, 0]: "b" [1, 1]: "c" * inputs[1]: SparseTensor with shape = [2, 1] [...
doc_19820
Add an AxesImage to the Axes; return the image. Examples using matplotlib.axes.Axes.add_image Image Nonuniform
doc_19821
Return a string representing the date and time, controlled by an explicit format string. For a complete list of formatting directives, see strftime() and strptime() Behavior.
doc_19822
If all_frames is True, all frames of the traceback are checked. If all_frames is False, only the most recent frame is checked. This attribute has no effect if the traceback limit is 1. See the get_traceback_limit() function and Snapshot.traceback_limit attribute.
doc_19823
Remove “small” “trailing” coefficients from a polynomial. “Small” means “small in absolute value” and is controlled by the parameter tol; “trailing” means highest order coefficient(s), e.g., in [0, 1, 1, 0, 0] (which represents 0 + x + x**2 + 0*x**3 + 0*x**4) both the 3-rd and 4-th order coefficients would be “trimme...
doc_19824
Convert to Index using specified date_format. Return an Index of formatted strings specified by date_format, which supports the same string format as the python standard library. Details of the string format can be found in python string format doc. Parameters date_format:str Date format string (e.g. “%Y-%m-%d”...
doc_19825
Construct an empty Graph.
doc_19826
Returns a process shared queue implemented using a pipe and a few locks/semaphores. When a process first puts an item on the queue a feeder thread is started which transfers objects from a buffer into the pipe. The usual queue.Empty and queue.Full exceptions from the standard library’s queue module are raised to signal...
doc_19827
Accept: application/json Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed Content-Type: application/json Content-Length: 42 {"detail": "Method 'DELETE' not allowed."} Validation errors are handled slightly differently, and will include...
doc_19828
Solve the tensor equation a x = b for x. It is assumed that all indices of x are summed over in the product, together with the rightmost indices of a, as is done in, for example, tensordot(a, x, axes=b.ndim). Parameters aarray_like Coefficient tensor, of shape b.shape + Q. Q, a tuple, equals the shape of that s...
doc_19829
Return True if the current context references a file or directory in the zip file.
doc_19830
Create a subplot at a specific location inside a regular grid. Parameters shape(int, int) Number of rows and of columns of the grid in which to place axis. loc(int, int) Row number and column number of the axis location within the grid. rowspanint, default: 1 Number of rows for the axis to span downward...
doc_19831
SRID code used by the map (default is 4326).
doc_19832
Create a new response object from an application output. This works best if you pass it an application that returns a generator all the time. Sometimes applications may use the write() callable returned by the start_response function. This tries to resolve such edge cases automatically. But if you don’t get the expecte...
doc_19833
Return True if the argument is a (quiet or signaling) NaN and False otherwise.
doc_19834
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_19835
Draw samples from a uniform distribution. Samples are uniformly distributed over the half-open interval [low, high) (includes low, but excludes high). In other words, any value within the given interval is equally likely to be drawn by uniform. Note New code should use the uniform method of a default_rng() instance ...
doc_19836
Computes the base two exponential function of input. yi=2xiy_{i} = 2^{x_{i}} Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> torch.exp2(torch.tensor([0, math.log2(2.), 3, 4])) tensor([ 1., 2., 8., 16.])
doc_19837
Set the hatch style (for fills).
doc_19838
Number of features seen during fit.
doc_19839
See Migration guide for more details. tf.compat.v1.estimator.BoostedTreesClassifier tf.estimator.BoostedTreesClassifier( feature_columns, n_batches_per_layer, model_dir=None, n_classes=2, weight_column=None, label_vocabulary=None, n_trees=100, max_depth=6, learning_rate=0.1, l1_regularization=0.0, l2_regu...
doc_19840
Parse a string representing a time according to a format. The return value is a struct_time as returned by gmtime() or localtime(). The format parameter uses the same directives as those used by strftime(); it defaults to "%a %b %d %H:%M:%S %Y" which matches the formatting returned by ctime(). If string cannot be parse...
doc_19841
Apply glob to paths and prepend local_path if needed. Applies glob.glob(…) to each path in the sequence (if needed) and pre-pends the local_path if needed. Because this is called on all source lists, this allows wildcard characters to be specified in lists of sources for extension modules and libraries and scripts an...
doc_19842
The font's style flags style -> int Gets or sets the default style of the Font. This default style will be used for all text rendering and size calculations unless overridden specifically a render or get_rect() call. The style value may be a bit-wise OR of one or more of the following constants: STYLE_NORMAL STYLE_UN...
doc_19843
Set x or y positions of handles, depending if the lines are vertical of horizontal. Parameters positionstuple of length 2 Set the positions of the handle in data coordinates
doc_19844
Encodes object (taking the current state of the encoder into account) and returns the resulting encoded object. If this is the last call to encode() final must be true (the default is false).
doc_19845
Update rcParams from file. Style-blacklisted rcParams (defined in matplotlib.style.core.STYLE_BLACKLIST) are not updated. Parameters fnamestr or path-like A file with Matplotlib rc settings. use_default_templatebool If True, initialize with default parameters before updating with those in the given file. If...
doc_19846
Set the quota root’s resource limits. This method is part of the IMAP4 QUOTA extension defined in rfc2087.
doc_19847
Define the picking behavior of the artist. Parameters pickerNone or bool or float or callable This can be one of the following: None: Picking is disabled for this artist (default). A boolean: If True then picking will be enabled and the artist will fire a pick event if the mouse event is over the artist. A fl...
doc_19848
Switch back to the original renderer. The contents of the temporary renderer is processed with the filter_func and is drawn on the original renderer as an image. Currently only supported by the agg renderer.
doc_19849
Returns decoded session data. Decoding is performed by the session store class.
doc_19850
Close the control file descriptor of the epoll object.
doc_19851
tf.compat.v1.scan( fn, elems, initializer=None, parallel_iterations=10, back_prop=True, swap_memory=False, infer_shape=True, reverse=False, name=None ) See also tf.map_fn. The simplest version of scan repeatedly applies the callable fn to a sequence of elements from first to last. The elements are made of the ...
doc_19852
The default class assigned to the iterator attribute of ModelChoiceField and ModelMultipleChoiceField. An iterable that yields 2-tuple choices from the queryset. A single argument is required: field The instance of ModelChoiceField or ModelMultipleChoiceField to iterate and yield choices. ModelChoiceIterator has ...
doc_19853
Alias for set_edgecolor.
doc_19854
Set the Figure instance the artist belongs to. Parameters figFigure
doc_19855
This filter is similar to RequireDebugFalse, except that records are passed only when DEBUG is True.
doc_19856
Add(a, b) AddList(add_list) AxesX(axes[, aspect, ref_ax]) Scaled size whose relative part corresponds to the data width of the axes multiplied by the aspect. AxesY(axes[, aspect, ref_ax]) Scaled size whose relative part corresponds to the data height of the axes multiplied by the aspect. Fixed(fixed_size) Sim...
doc_19857
Get information about arguments passed into a particular frame. A named tuple ArgInfo(args, varargs, keywords, locals) is returned. args is a list of the argument names. varargs and keywords are the names of the * and ** arguments or None. locals is the locals dictionary of the given frame. Note This function was inad...
doc_19858
Bases: AssertionError Raise this exception to mark a test as a comparison between two images.
doc_19859
This attribute overrides the default display value for record’s fields that are empty (None, empty string, etc.). The default value is - (a dash). For example: from django.contrib import admin class AuthorAdmin(admin.ModelAdmin): empty_value_display = '-empty-' You can also override empty_value_display for all ad...
doc_19860
Write array to a file as text or binary (default). Data is always written in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters fidfile or str or Path An open file object, or a string containing a filename. Changed in version 1....
doc_19861
This method checks if there is a breakpoint in the filename and line belonging to frame or, at least, in the current function. If the breakpoint is a temporary one, this method deletes it.
doc_19862
Fit the k-nearest neighbors classifier from the training dataset. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples, n_samples) if metric=’precomputed’ Training data. y{array-like, sparse matrix} of shape (n_samples,) or (n_samples, n_outputs) Target values. Returns ...
doc_19863
True if this transform has a corresponding inverse transform.
doc_19864
See Migration guide for more details. tf.compat.v1.raw_ops.FakeQuantWithMinMaxArgs tf.raw_ops.FakeQuantWithMinMaxArgs( inputs, min=-6, max=6, num_bits=8, narrow_range=False, name=None ) Attributes [min; max] define the clamping range for the inputs data. inputs values are quantized into the quantization range...
doc_19865
Return the maximum value of the Index. Parameters axis:int, optional For compatibility with NumPy. Only 0 or None are allowed. skipna:bool, default True Exclude NA/null values when showing the result. *args, **kwargs Additional arguments and keywords for compatibility with NumPy. Returns scalar Maxi...
doc_19866
See Migration guide for more details. tf.compat.v1.fft, tf.compat.v1.signal.fft, tf.compat.v1.spectral.fft tf.signal.fft( input, name=None ) Computes the 1-dimensional discrete Fourier transform over the inner-most dimension of input. Args input A Tensor. Must be one of the following types: complex64, c...
doc_19867
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_19868
Draw samples from a standard Student’s t distribution with df degrees of freedom. A special case of the hyperbolic distribution. As df gets large, the result resembles that of the standard normal distribution (standard_normal). Note New code should use the standard_t method of a default_rng() instance instead; pleas...
doc_19869
1.22 Date December 31, 2021 This reference manual details functions, modules, and objects included in NumPy, describing what they are and what they do. For learning how to use NumPy, see the complete documentation. Array objects The N-dimensional array (ndarray) Scalars Data type objects (dtype) Indexing routines...
doc_19870
How to join segments of the line if it is_dashed. Parameters sJoinStyle or {'miter', 'round', 'bevel'}
doc_19871
Fork a child process. Return 0 in the child and the child’s process id in the parent. If an error occurs OSError is raised. Note that some platforms including FreeBSD <= 6.3 and Cygwin have known issues when using fork() from a thread. Raises an auditing event os.fork with no arguments. Changed in version 3.8: Calling...
doc_19872
Test for syntax warning in statement by attempting to compile statement. Test also that the SyntaxWarning is emitted only once, and that it will be converted to a SyntaxError when turned into error. testcase is the unittest instance for the test. errtext is the regular expression which should match the string represent...
doc_19873
operator.__or__(a, b) Return the bitwise or of a and b.
doc_19874
Matern kernel. The class of Matern kernels is a generalization of the RBF. It has an additional parameter \(\nu\) which controls the smoothness of the resulting function. The smaller \(\nu\), the less smooth the approximated function is. As \(\nu\rightarrow\infty\), the kernel becomes equivalent to the RBF kernel. Wh...
doc_19875
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_19876
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_19877
Returns the (multiplicative) inverse of invertible self. Parameters None Returns retmatrix object If self is non-singular, ret is such that ret * self == self * ret == np.matrix(np.eye(self[0,:].size)) all return True. Raises numpy.linalg.LinAlgError: Singular matrix If self is singular. See also...
doc_19878
alias of numpy.cdouble
doc_19879
Check that left and right Index are equal. Parameters left:Index right:Index exact:bool or {‘equiv’}, default ‘equiv’ Whether to check the Index class, dtype and inferred_type are identical. If ‘equiv’, then RangeIndex can be substituted for Int64Index as well. check_names:bool, default True Whether to ...
doc_19880
The value of endpos which was passed to the search() or match() method of a regex object. This is the index into the string beyond which the RE engine will not go.
doc_19881
Return an arbitrary (key, message) pair, where key is a key and message is a message representation, and delete the corresponding message. If the mailbox is empty, raise a KeyError exception. The message is represented as an instance of the appropriate format-specific Message subclass unless a custom message factory wa...
doc_19882
Fill NaN values using an interpolation method. Please note that only method='linear' is supported for DataFrame/Series with a MultiIndex. Parameters method:str, default ‘linear’ Interpolation technique to use. One of: ‘linear’: Ignore the index and treat the values as equally spaced. This is the only method su...
doc_19883
tf.compat.v1.estimator.LinearEstimator( head, feature_columns, model_dir=None, optimizer='Ftrl', config=None, partitioner=None, sparse_combiner='sum', warm_start_from=None ) Example: categorical_column_a = categorical_column_with_hash_bucket(...) categorical_column_b = categorical_column_with_hash_bucket(...) ...
doc_19884
The parameters are as for FileHandler. The attributes are: namer If this attribute is set to a callable, the rotation_filename() method delegates to this callable. The parameters passed to the callable are those passed to rotation_filename(). Note The namer function is called quite a few times during rollover, so ...
doc_19885
Write out the various deferred objects and the pdf end matter.
doc_19886
Returns a 3-column calendar for an entire year as a multi-line string using the formatyear() of the TextCalendar class.
doc_19887
See Migration guide for more details. tf.compat.v1.raw_ops.RequantizationRangePerChannel tf.raw_ops.RequantizationRangePerChannel( input, input_min, input_max, clip_value_max, name=None ) Args input A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16. The original input ...
doc_19888
Return the label used for this artist in the legend.
doc_19889
Plot vertical lines at each x from ymin to ymax. Parameters xfloat or array-like x-indexes where to plot the lines. ymin, ymaxfloat or array-like Respective beginning and end of each line. If scalars are provided, all lines will have same length. colorslist of colors, default: rcParams["lines.color"] (def...
doc_19890
See Migration guide for more details. tf.compat.v1.raw_ops.LatencyStatsDataset tf.raw_ops.LatencyStatsDataset( input_dataset, tag, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. tag A Tensor of type string. output_types A list of tf.DTypes that has leng...
doc_19891
tf.compat.v1.gfile.Walk( top, in_order=True ) Args top string, a Directory name in_order bool, Traverse in order if True, post order if False. Errors that happen while listing directories are ignored. Yields Each yield is a 3-tuple: the pathname of a directory, followed by lists of all its...
doc_19892
Adds all values from the tensor other into self at the indices specified in the index tensor in a similar fashion as scatter_(). For each value in src, it is added to an index in self which is specified by its index in src for dimension != dim and by the corresponding value in index for dimension = dim. For a 3-D tenso...
doc_19893
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_19894
Open a gzip-compressed file in binary or text mode, returning a file object. The filename argument can be an actual filename (a str or bytes object), or an existing file object to read from or write to. The mode argument can be any of 'r', 'rb', 'a', 'ab', 'w', 'wb', 'x' or 'xb' for binary mode, or 'rt', 'at', 'wt', or...
doc_19895
Converts the dataclass instance to a dict (by using the factory function dict_factory). Each dataclass is converted to a dict of its fields, as name: value pairs. dataclasses, dicts, lists, and tuples are recursed into. For example: @dataclass class Point: x: int y: int @dataclass class C: mylist: list[...
doc_19896
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_19897
Return all breakpoints for lineno in filename, or an empty list if none are set.
doc_19898
See torch.tensor_split()
doc_19899
Registers a function to be run before the first request to this instance of the application. The function will be called without any arguments and its return value is ignored. Changelog New in version 0.8. Parameters f (Callable[[], None]) – Return type Callable[[], None]