_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_24600
Create a SubplotBase suitable for a colorbar. The axes is placed in the figure of the parent axes, by resizing and repositioning parent. This function is similar to make_axes. Primary differences are make_axes_gridspec should only be used with a SubplotBase parent. make_axes creates an Axes; make_axes_gridspec cre...
doc_24601
Adds the element subelement to the end of this element’s internal list of subelements. Raises TypeError if subelement is not an Element.
doc_24602
See Migration guide for more details. tf.compat.v1.raw_ops.TakeManySparseFromTensorsMap tf.raw_ops.TakeManySparseFromTensorsMap( sparse_handles, dtype, container='', shared_name='', name=None ) The input sparse_handles must be an int64 matrix of shape [N, 1] where N is the minibatch size and the rows corresp...
doc_24603
This is a mixin class that helps with HTTP authentication, both to the remote host and to a proxy. password_mgr, if given, should be something that is compatible with HTTPPasswordMgr; refer to section HTTPPasswordMgr Objects for information on the interface that must be supported.
doc_24604
Start monitoring the fd file descriptor for write availability and invoke callback with the specified arguments once fd is available for writing. Use functools.partial() to pass keyword arguments to callback.
doc_24605
Nearest centroid classifier. Each class is represented by its centroid, with test samples classified to the class with the nearest centroid. Read more in the User Guide. Parameters metricstr or callable The metric to use when calculating distance between instances in a feature array. If metric is a string or ca...
doc_24606
Set up axis ticks and labels to treat data along the zaxis as dates. Parameters tzstr or datetime.tzinfo, default: rcParams["timezone"] (default: 'UTC') The timezone used to create date labels. Notes This function is merely provided for completeness, but 3D axes do not support dates for ticks, and so this m...
doc_24607
DataFrame.notnull is an alias for DataFrame.notna. Detect existing (non-missing) values. Return a boolean same-sized object indicating if the values are not NA. Non-missing values get mapped to True. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_...
doc_24608
Call self as a function.
doc_24609
Return the clip path.
doc_24610
The ordinal day of the year.
doc_24611
Bases: DeprecationWarning A class for issuing deprecation warnings for Matplotlib users.
doc_24612
Return Datetime Array/Index as object ndarray of datetime.datetime objects. Returns datetimes:ndarray[object]
doc_24613
Alias for set_edgecolor.
doc_24614
class str(object=b'', encoding='utf-8', errors='strict') Return a string version of object. If object is not provided, returns the empty string. Otherwise, the behavior of str() depends on whether encoding or errors is given, as follows. If neither encoding nor errors is given, str(object) returns object.__str__(), w...
doc_24615
Applies element-wise, LeakyReLU(x)=max⁡(0,x)+negative_slope∗min⁡(0,x)\text{LeakyReLU}(x) = \max(0, x) + \text{negative\_slope} * \min(0, x) See LeakyReLU for more details.
doc_24616
Applies a 2D adaptive max pooling over an input signal composed of several input planes. The output is of size H x W, for any input size. The number of output features is equal to the number of input planes. Parameters output_size – the target output size of the image of the form H x W. Can be a tuple (H, W) or a...
doc_24617
Return a copy of the array collapsed into one dimension. Parameters order{‘C’, ‘F’, ‘A’, ‘K’}, optional ‘C’ means to flatten in row-major (C-style) order. ‘F’ means to flatten in column-major (Fortran- style) order. ‘A’ means to flatten in column-major order if a is Fortran contiguous in memory, row-major order...
doc_24618
Remove the handles artist from the figure.
doc_24619
The error raised for bad ZIP files. New in version 3.2.
doc_24620
This context is used by the Context constructor as a prototype for new contexts. Changing a field (such a precision) has the effect of changing the default for new contexts created by the Context constructor. This context is most useful in multi-threaded environments. Changing one of the fields before threads are start...
doc_24621
For scalar a, returns the data type with the smallest size and smallest scalar kind which can hold its value. For non-scalar array a, returns the vector’s dtype unmodified. Floating point values are not demoted to integers, and complex values are not demoted to floats. Parameters ascalar or array_like The value...
doc_24622
Close the view, through MsiViewClose().
doc_24623
Collision detection between two sprites, using circles scaled to a ratio. collide_circle_ratio(ratio) -> collided_callable A callable class that checks for collisions between two sprites, using a scaled version of the sprites radius. Is created with a floating point ratio, the instance is then intended to be passed a...
doc_24624
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_24625
Alias for set_antialiased.
doc_24626
Return time tuple, compatible with time.localtime().
doc_24627
symtable.symtable(code, filename, compile_type) Return the toplevel SymbolTable for the Python source code. filename is the name of the file containing the code. compile_type is like the mode argument to compile(). Examining Symbol Tables class symtable.SymbolTable A namespace table for a block. The constructor...
doc_24628
tf.experimental.numpy.arccosh( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.arccosh.
doc_24629
With PureWindowsPath, return True if the path is considered reserved under Windows, False otherwise. With PurePosixPath, False is always returned. >>> PureWindowsPath('nul').is_reserved() True >>> PurePosixPath('nul').is_reserved() False File system calls on reserved paths can fail mysteriously or have unintended effe...
doc_24630
Bases: object Create a MathTextParser for the given backend output. get_depth(texstr, dpi=120, fontsize=14)[source] [Deprecated] Get the depth of a mathtext string. Parameters texstrstr A valid mathtext string, e.g., r'IQ: $sigma_i=15$'. dpifloat The dots-per-inch setting used to render the text. Ret...
doc_24631
Base class for raw binary streams. It inherits IOBase. There is no public constructor. Raw binary streams typically provide low-level access to an underlying OS device or API, and do not try to encapsulate it in high-level primitives (this functionality is done at a higher-level in buffered binary streams and text stre...
doc_24632
Get the transformation used for drawing x-axis labels, ticks and gridlines. The x-direction is in data coordinates and the y-direction is in axis coordinates. Note This transformation is primarily used by the Axis class, and is meant to be overridden by new kinds of projections that may need to place axis elements i...
doc_24633
sklearn.metrics.pairwise.nan_euclidean_distances(X, Y=None, *, squared=False, missing_values=nan, copy=True) [source] Calculate the euclidean distances in the presence of missing values. Compute the euclidean distance between each pair of samples in X and Y, where Y=X is assumed if Y=None. When calculating the distan...
doc_24634
See Migration guide for more details. tf.compat.v1.raw_ops.FresnelCos tf.raw_ops.FresnelCos( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_24635
tf.experimental.numpy.sinc( x ) See the NumPy documentation for numpy.sinc.
doc_24636
Clear all cookies and reload cookies from a saved file. revert() can raise the same exceptions as load(). If there is a failure, the object’s state will not be altered.
doc_24637
Logs an arbitrary message to sys.stderr. This is typically overridden to create custom error logging mechanisms. The format argument is a standard printf-style format string, where the additional arguments to log_message() are applied as inputs to the formatting. The client ip address and current date and time are pref...
doc_24638
Note The parameter reuse_address is no longer supported, as using SO_REUSEADDR poses a significant security concern for UDP. Explicitly passing reuse_address=True will raise an exception. When multiple processes with differing UIDs assign sockets to an identical UDP socket address with SO_REUSEADDR, incoming packets c...
doc_24639
Convert coefficient matrix to dense array format. Converts the coef_ member (back) to a numpy.ndarray. This is the default format of coef_ and is required for fitting, so calling this method is only required on models that have previously been sparsified; otherwise, it is a no-op. Returns self Fitted estimator.
doc_24640
See Migration guide for more details. tf.compat.v1.register_tensor_conversion_function tf.register_tensor_conversion_function( base_type, conversion_func, priority=100 ) The conversion function must have the following signature: def conversion_func(value, dtype=None, name=None, as_ref=False): # ... It must re...
doc_24641
Generate package __config__.py file containing system_info information used during building the package. This file is installed to the package installation directory.
doc_24642
Integrate a Chebyshev series. Returns the Chebyshev series coefficients c integrated m times from lbnd along axis. At each iteration the resulting series is multiplied by scl and an integration constant, k, is added. The scaling factor is for use in a linear change of variable. (“Buyer beware”: note that, depending o...
doc_24643
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 This method is overridden in the Artist subclasses.
doc_24644
Return the Figure instance the artist belongs to.
doc_24645
This allows better BC support for load_state_dict(). In state_dict(), the version number will be saved as in the attribute _metadata of the returned state dict, and thus pickled. _metadata is a dictionary with keys that follow the naming convention of state dict. See _load_from_state_dict on how to use this information...
doc_24646
Minimum Covariance Determinant (MCD): robust estimator of covariance. The Minimum Covariance Determinant covariance estimator is to be applied on Gaussian-distributed data, but could still be relevant on data drawn from a unimodal, symmetric distribution. It is not meant to be used with multi-modal data (the algorith...
doc_24647
Return a backend-specific tuple to return to the backend after all processing is done.
doc_24648
Return the number of ways to choose k items from n items without repetition and with order. Evaluates to n! / (n - k)! when k <= n and evaluates to zero when k > n. If k is not specified or is None, then k defaults to n and the function returns n!. Raises TypeError if either of the arguments are not integers. Raises Va...
doc_24649
Return the size of the buffer used in ufuncs. Returns getbufsizeint Size of ufunc buffer in bytes.
doc_24650
Efficiently infer the type of a passed val, or list-like array of values. Return a string describing the type. Parameters value:scalar, list, ndarray, or pandas type skipna:bool, default True Ignore NaN values when inferring the type. Returns str Describing the common type of the input data. Results ca...
doc_24651
A hardware setting.
doc_24652
See Migration guide for more details. tf.compat.v1.debugging.assert_rank tf.compat.v1.assert_rank( x, rank, data=None, summarize=None, message=None, name=None ) Example of adding a dependency to an operation: with tf.control_dependencies([tf.compat.v1.assert_rank(x, 2)]): output = tf.reduce_sum(x) Args ...
doc_24653
Call self as a function.
doc_24654
Vertical bar plot. A bar plot is a plot that presents categorical data with rectangular bars with lengths proportional to the values that they represent. A bar plot shows comparisons among discrete categories. One axis of the plot shows the specific categories being compared, and the other axis represents a measured ...
doc_24655
Alias for set_facecolor.
doc_24656
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_24657
class sched.scheduler(timefunc=time.monotonic, delayfunc=time.sleep) The scheduler class defines a generic interface to scheduling events. It needs two functions to actually deal with the “outside world” — timefunc should be callable without arguments, and return a number (the “time”, in any units whatsoever). The de...
doc_24658
Return the local number (population) of pixels. The number of pixels is defined as the number of pixels which are included in the structuring element and the mask. Only greyvalues between percentiles [p0, p1] are considered in the filter. Parameters image2-D array (uint8, uint16) Input image. selem2-D array ...
doc_24659
This attribute controls the maximum length of diffs output by assert methods that report diffs on failure. It defaults to 80*8 characters. Assert methods affected by this attribute are assertSequenceEqual() (including all the sequence comparison methods that delegate to it), assertDictEqual() and assertMultiLineEqual()...
doc_24660
Select image on display using index into image collection.
doc_24661
Get or set the PRNG state Returns statedict Dictionary containing the information required to describe the state of the PRNG
doc_24662
The save_related method is given the HttpRequest, the parent ModelForm instance, the list of inline formsets and a boolean value based on whether the parent is being added or changed. Here you can do any pre- or post-save operations for objects related to the parent. Note that at this point the parent object and its fo...
doc_24663
Return the sketch parameters for the artist. Returns tuple or None A 3-tuple with the following elements: scale: The amplitude of the wiggle perpendicular to the source line. length: The length of the wiggle along the line. randomness: The scale factor by which the length is shrunken or expanded. Returns Non...
doc_24664
Return the clipbox.
doc_24665
Create and return a SubplotSpec instance. Parameters loc(int, int) The position of the subplot in the grid as (row_index, column_index). rowspan, colspanint, default: 1 The number of rows and columns the subplot should span in the grid.
doc_24666
Assigns values from one structured array to another by field name. Normally in numpy >= 1.14, assignment of one structured array to another copies fields “by position”, meaning that the first field from the src is copied to the first field of the dst, and so on, regardless of field name. This function instead copies ...
doc_24667
The name of the class.
doc_24668
Return the xheight as float.
doc_24669
tf.compat.v1.global_variables( scope=None ) Global variables are variables that are shared across machines in a distributed environment. The Variable() constructor or get_variable() automatically adds new variables to the graph collection GraphKeys.GLOBAL_VARIABLES. This convenience function returns the contents o...
doc_24670
The full name of a template to use. Defaults to registration/password_change_done.html if not supplied.
doc_24671
Reverse the samples in a fragment and returns the modified fragment.
doc_24672
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_24673
tf.initializers.Initializer Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.initializers.Initializer Initializers should implement a __call__ method with the following signature: def __call__(self, shape, dtype=None, **kwargs): # returns a tensor of shape `shape` and dtype `dtyp...
doc_24674
See Migration guide for more details. tf.compat.v1.raw_ops.UnsortedSegmentMax tf.raw_ops.UnsortedSegmentMax( data, segment_ids, num_segments, name=None ) Read the section on segmentation for an explanation of segments. This operator is similar to the unsorted segment sum operator found (here). Instead of computi...
doc_24675
crops a line inside a rectangle clipline(x1, y1, x2, y2) -> ((cx1, cy1), (cx2, cy2)) clipline(x1, y1, x2, y2) -> () clipline((x1, y1), (x2, y2)) -> ((cx1, cy1), (cx2, cy2)) clipline((x1, y1), (x2, y2)) -> () clipline((x1, y1, x2, y2)) -> ((cx1, cy1), (cx2, cy2)) clipline((x1, y1, x2, y2)) -> () clipline(((x1, y1), (x2...
doc_24676
The dtype of the Interval bounds.
doc_24677
Computes the (weighted) graph of Neighbors for points in X Neighborhoods are restricted the points at a distance lower than radius. Parameters Xarray-like of shape (n_samples, n_features), default=None The query point or points. If not provided, neighbors of each indexed point are returned. In this case, the qu...
doc_24678
See Migration guide for more details. tf.compat.v1.raw_ops.RaggedCross tf.raw_ops.RaggedCross( ragged_values, ragged_row_splits, sparse_indices, sparse_values, sparse_shape, dense_inputs, input_order, hashed_output, num_buckets, hash_key, out_values_type, out_row_splits_type, name=None ) RaggedTensor. Se...
doc_24679
Apply function ‘func’ as a reduction across fields of a structured array. This is similar to apply_along_axis, but treats the fields of a structured array as an extra axis. The fields are all first cast to a common type following the type-promotion rules from numpy.result_type applied to the field’s dtypes. Paramete...
doc_24680
Sets the array system to be used for sound arrays use_arraytype (arraytype) -> None DEPRECATED: Uses the requested array type for the module functions. The only supported arraytype is 'numpy'. Other values will raise ValueError.
doc_24681
Compute the anomalies (deviations from the arithmetic mean) along the given axis. Returns an array of anomalies, with the same shape as the input and where the arithmetic mean is computed along the given axis. Parameters axisint, optional Axis over which the anomalies are taken. The default is to use the mean o...
doc_24682
a place where extensions can store application specific state. For example this is where an extension could store database engines and similar things. The key must match the name of the extension module. For example in case of a “Flask-Foo” extension in flask_foo, the key would be 'foo'. Changelog New in version 0.7.
doc_24683
See Migration guide for more details. tf.compat.v1.AggregationMethod Computing partial derivatives can require aggregating gradient contributions. This class lists the various methods that can be used to combine gradients in the graph. The following aggregation methods are part of the stable API for aggregating gradie...
doc_24684
tf.nn.all_candidate_sampler Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.all_candidate_sampler, tf.compat.v1.random.all_candidate_sampler tf.random.all_candidate_sampler( true_classes, num_true, num_sampled, unique, seed=None, name=None ) Deterministically generates and retu...
doc_24685
Helper for pickle.
doc_24686
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DWithBiasAndRelu tf.raw_ops.QuantizedConv2DWithBiasAndRelu( input, filter, bias, min_input, max_input, min_filter, max_filter, strides, padding, out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1], padding_list=[], name=None ) Ar...
doc_24687
Computes and returns a pruned version of input tensor t according to the pruning rule specified in compute_mask(). Parameters t (torch.Tensor) – tensor to prune (of same dimensions as default_mask). importance_scores (torch.Tensor) – tensor of importance scores (of same shape as t) used to compute mask for pruning...
doc_24688
Subclasses have to override this method to implement the actual view function code. This method is called with all the arguments from the URL rule. Parameters args (Any) – kwargs (Any) – Return type Union[Response, AnyStr, Dict[str, Any], Generator[AnyStr, None, None], Tuple[Union[Response, AnyStr, Dict[str, ...
doc_24689
Draw a filled black rectangle from (x1, y1) to (x2, y2).
doc_24690
Convert arrays to MultiIndex. Parameters arrays:list / sequence of array-likes Each array-like gives one level’s value for each data point. len(arrays) is the number of levels. sortorder:int or None Level of sortedness (must be lexicographically sorted by that level). names:list / sequence of str, optiona...
doc_24691
Start collecting profiling data. Only in cProfile.
doc_24692
True if this transform is separable in the x- and y- dimensions.
doc_24693
Return an array and missing value suitable for factorization. Returns values:ndarray An array suitable for factorization. This should maintain order and be a supported dtype (Float64, Int64, UInt64, String, Object). By default, the extension array is cast to object dtype. na_value:object The value in values...
doc_24694
pause the program for an amount of time wait(milliseconds) -> time Will pause for a given number of milliseconds. This function sleeps the process to share the processor with other programs. A program that waits for even a few milliseconds will consume very little processor time. It is slightly less accurate than the...
doc_24695
Set the CapStyle for the collection (for all its elements). Parameters csCapStyle or {'butt', 'projecting', 'round'}
doc_24696
Convert data to floats and compute the arithmetic mean. This runs faster than the mean() function and it always returns a float. The data may be a sequence or iterable. If the input dataset is empty, raises a StatisticsError. >>> fmean([3.5, 4.0, 5.25]) 4.25 New in version 3.8.
doc_24697
Bases: matplotlib.patches.ConnectionStyle._Base Creates a simple quadratic Bezier curve between two points. The curve is created so that the middle control point (C1) is located at the same distance from the start (C0) and end points(C2) and the distance of the C1 to the line connecting C0-C2 is rad times the distanc...
doc_24698
Return the month name of the Timestamp with specified locale. Parameters locale:str, default None (English locale) Locale determining the language in which to return the month name. Returns str Examples >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651') >>> ts.month_name() 'March' Analogous for p...
doc_24699
Method called immediately after the test method has been called and the result recorded. This is called before tearDown(). This is called even if the test method raised an exception, so the implementation in subclasses may need to be particularly careful about checking internal state. Any exception, other than Assertio...