_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_16800 |
Find the intersection of two arrays. Return the sorted, unique values that are in both of the input arrays. Parameters
ar1, ar2array_like
Input arrays. Will be flattened if not already 1D.
assume_uniquebool
If True, the input arrays are both assumed to be unique, which can speed up the calculation. If True ... | |
doc_16801 |
Construct an IntervalIndex from an array of splits. Parameters
breaks:array-like (1-dimensional)
Left and right bounds for each interval.
closed:{‘left’, ‘right’, ‘both’, ‘neither’}, default ‘right’
Whether the intervals are closed on the left-side, right-side, both or neither.
copy:bool, default False
... | |
doc_16802 |
Clear the axis. This resets axis properties to their default values: the label the scale locators, formatters and ticks major and minor grid units registered callbacks | |
doc_16803 | Return a shallow mutable copy of this object. Keep in mind that the standard library’s copy() function is a no-op for this class like for any other python immutable type (eg: tuple). | |
doc_16804 | A two-dimensional vector class, used as a helper class for implementing turtle graphics. May be useful for turtle graphics programs too. Derived from tuple, so a vector is a tuple! Provides (for a, b vectors, k number):
a + b vector addition
a - b vector subtraction
a * b inner product
k * a and a * k multiplicati... | |
doc_16805 | An int containing the default buffer size used by the module’s buffered I/O classes. open() uses the file’s blksize (as obtained by os.stat()) if possible. | |
doc_16806 | Prints an indented representation of the content types of the message object structure. For example: >>> msg = email.message_from_file(somefile)
>>> _structure(msg)
multipart/mixed
text/plain
text/plain
multipart/digest
message/rfc822
text/plain
message/rfc822
text/pl... | |
doc_16807 |
Set the property cycle of the Axes. The property cycle controls the style properties such as color, marker and linestyle of future plot commands. The style properties of data already added to the Axes are not modified. Call signatures: set_prop_cycle(cycler)
set_prop_cycle(label=values[, label2=values2[, ...]])
set_p... | |
doc_16808 |
Return an int representing the number of elements in this object. Return the number of rows if Series. Otherwise return the number of rows times number of columns if DataFrame. See also ndarray.size
Number of elements in the array. Examples
>>> s = pd.Series({'a': 1, 'b': 2, 'c': 3})
>>> s.size
3
>>> df = p... | |
doc_16809 |
Pseudo-Vandermonde matrix of given degrees. Returns the pseudo-Vandermonde matrix of degrees deg and sample points (x, y). The pseudo-Vandermonde matrix is defined by \[V[..., (deg[1] + 1)*i + j] = H_i(x) * H_j(y),\] where 0 <= i <= deg[0] and 0 <= j <= deg[1]. The leading indices of V index the points (x, y) and th... | |
doc_16810 | See Migration guide for more details. tf.compat.v1.keras.layers.UpSampling1D
tf.keras.layers.UpSampling1D(
size=2, **kwargs
)
Repeats each temporal step size times along the time axis. Examples:
input_shape = (2, 2, 3)
x = np.arange(np.prod(input_shape)).reshape(input_shape)
print(x)
[[[ 0 1 2]
[ 3 4 5]]
... | |
doc_16811 |
Create a Series with both index and values equal to the index keys. Useful with map for returning an indexer based on an index. Parameters
index:Index, optional
Index of resulting Series. If None, defaults to original index.
name:str, optional
Name of resulting Series. If None, defaults to name of original ... | |
doc_16812 | boolean that is True if the application will be executed only once in a process lifetime. This is the case for CGI for example, but it’s not guaranteed that the execution only happens one time. | |
doc_16813 | Returns a surface with the mask drawn on it to_surface() -> Surface to_surface(surface=None, setsurface=None, unsetsurface=None, setcolor=(255, 255, 255, 255), unsetcolor=(0, 0, 0, 255), dest=(0, 0)) -> Surface Draws this mask on the given surface. Set bits (bits set to 1) and unset bits (bits set to 0) can be drawn ... | |
doc_16814 | Flatpages are represented by a standard Django model, which lives in django/contrib/flatpages/models.py. You can access flatpage objects via the Django database API. | |
doc_16815 |
Create and return a new GridlineCollection instance. which : "major" or "minor" axis : "both", "x" or "y" | |
doc_16816 | See Migration guide for more details. tf.compat.v1.raw_ops.DepthwiseConv2dNativeBackpropInput
tf.raw_ops.DepthwiseConv2dNativeBackpropInput(
input_sizes, filter, out_backprop, strides, padding, explicit_paddings=[],
data_format='NHWC', dilations=[1, 1, 1, 1], name=None
)
Args
input_sizes A Tensor of... | |
doc_16817 | Returns the variance of the data in the provided expression. Default alias: <field>__variance
Return type: float if input is int, otherwise same as input field, or output_field if supplied Has one optional argument:
sample
By default, Variance returns the population variance. However, if sample=True, the return ... | |
doc_16818 | Send a command cmd to the server. The optional argument args is simply concatenated to the command, separated by a space. This returns a 2-tuple composed of a numeric response code and the actual response line (multiline responses are joined into one long line.) In normal operation it should not be necessary to call th... | |
doc_16819 | Returns an iterator over immediate children modules. Yields
Module – a child module | |
doc_16820 |
Set the spine bounds. Parameters
lowfloat or None, optional
The lower spine bound. Passing None leaves the limit unchanged. The bounds may also be passed as the tuple (low, high) as the first positional argument.
highfloat or None, optional
The higher spine bound. Passing None leaves the limit unchanged. | |
doc_16821 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_16822 | Return a string describing the encoding of the device associated with fd if it is connected to a terminal; else return None. | |
doc_16823 |
Cast a pandas object to a specified dtype dtype. Parameters
dtype:data type, or dict of column name -> data type
Use a numpy.dtype or Python type to cast entire pandas object to the same type. Alternatively, use {col: dtype, …}, where col is a column label and dtype is a numpy.dtype or Python type to cast one o... | |
doc_16824 |
Do quantization aware training and output a quantized model Parameters
model – input model
run_fn – a function for evaluating the prepared model, can be a function that simply runs the prepared model or a training loop
run_args – positional arguments for run_fn
Returns
Quantized model. | |
doc_16825 |
Return key in self. | |
doc_16826 | operator.__ipow__(a, b)
a = ipow(a, b) is equivalent to a **= b. | |
doc_16827 |
Return a fixed frequency IntervalIndex. Parameters
start:numeric or datetime-like, default None
Left bound for generating intervals.
end:numeric or datetime-like, default None
Right bound for generating intervals.
periods:int, default None
Number of periods to generate.
freq:numeric, str, or DateOffse... | |
doc_16828 | This is a straightforward interface to the Unix select() system call. The first three arguments are iterables of ‘waitable objects’: either integers representing file descriptors or objects with a parameterless method named fileno() returning such an integer:
rlist: wait until ready for reading
wlist: wait until rea... | |
doc_16829 | Returns the number closest to x, in direction towards y. | |
doc_16830 |
Returns a bytestring version of arbitrary object s, encoded as specified in encoding. If strings_only is True, don’t convert (some) non-string-like objects. | |
doc_16831 | The database that will be used if this query is executed now. | |
doc_16832 | See Migration guide for more details. tf.compat.v1.estimator.SummarySaverHook, tf.compat.v1.train.SummarySaverHook
tf.estimator.SummarySaverHook(
save_steps=None, save_secs=None, output_dir=None, summary_writer=None,
scaffold=None, summary_op=None
)
Args
save_steps int, save summaries every N steps.... | |
doc_16833 | Applies a 3D adaptive max pooling over an input signal composed of several input planes. See AdaptiveMaxPool3d for details and output shape. Parameters
output_size – the target output size (single integer or triple-integer tuple)
return_indices – whether to return pooling indices. Default: False | |
doc_16834 | Permutes the dimensions of the self tensor to match the dimension order in the other tensor, adding size-one dims for any new names. This operation is useful for explicit broadcasting by names (see examples). All of the dims of self must be named in order to use this method. The resulting tensor is a view on the origin... | |
doc_16835 |
Return a new Affine2D object that is the identity transform. Unless this transform will be mutated later on, consider using the faster IdentityTransform class instead. | |
doc_16836 | This exception is raised when the server unexpectedly disconnects, or when an attempt is made to use the SMTP instance before connecting it to a server. | |
doc_16837 |
Clear the Axes. | |
doc_16838 | See Migration guide for more details. tf.compat.v1.signal.mdct
tf.signal.mdct(
signals, frame_length, window_fn=tf.signal.vorbis_window, pad_end=False,
norm=None, name=None
)
Implemented with TPU/GPU-compatible ops and supports gradients.
Args
signals A [..., samples] float32/float64 Tensor of real-... | |
doc_16839 |
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). | |
doc_16840 | Remove (delete) the file path. If path is a directory, an IsADirectoryError is raised. Use rmdir() to remove directories. If the file does not exist, a FileNotFoundError is raised. This function can support paths relative to directory descriptors. On Windows, attempting to remove a file that is in use causes an excepti... | |
doc_16841 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.RandomContrast
tf.keras.layers.experimental.preprocessing.RandomContrast(
factor, seed=None, name=None, **kwargs
)
Contrast is adjusted independently for each channel of each image during training. For each channel, this l... | |
doc_16842 | The warning used by Werkzeug to signal a broken filesystem. Will only be used once per runtime. | |
doc_16843 | Applies a 1D adaptive average pooling over an input signal composed of several input planes. See AdaptiveAvgPool1d for details and output shape. Parameters
output_size – the target output size (single integer) | |
doc_16844 |
Map Python objects to PDF syntax. | |
doc_16845 |
Try to choose the view limits intelligently. | |
doc_16846 |
Return whether this bounding box overlaps with the other bounding box. Parameters
otherBboxBase | |
doc_16847 | A class attribute, as a format string, that describes the SQL that is generated for this function. Defaults to '%(function)s(%(expressions)s)'. If you’re constructing SQL like strftime('%W', 'date') and need a literal % character in the query, quadruple it (%%%%) in the template attribute because the string is interpol... | |
doc_16848 |
Check whether the provided array or dtype is of a numeric dtype. Parameters
arr_or_dtype:array-like or dtype
The array or dtype to check. Returns
boolean
Whether or not the array or dtype is of a numeric dtype. Examples
>>> is_numeric_dtype(str)
False
>>> is_numeric_dtype(int)
True
>>> is_numeric_dty... | |
doc_16849 |
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_16850 |
Generalized Linear Model with a Poisson distribution. Read more in the User Guide. New in version 0.23. Parameters
alphafloat, default=1
Constant that multiplies the penalty term and thus determines the regularization strength. alpha = 0 is equivalent to unpenalized GLMs. In this case, the design matrix X mus... | |
doc_16851 | You can change the HttpResponse classes used by the middleware by creating a subclass of RedirectFallbackMiddleware and overriding response_gone_class and/or response_redirect_class.
response_gone_class
The HttpResponse class used when a Redirect is not found for the requested path or has a blank new_path value. De... | |
doc_16852 |
Returns True if all elements evaluate to True. The output array is masked where all the values along the given axis are masked: if the output would have been a scalar and that all the values are masked, then the output is masked. Refer to numpy.all for full documentation. See also numpy.ndarray.all
corresponding f... | |
doc_16853 | The type of coroutine objects, created by async def functions. New in version 3.5. | |
doc_16854 |
Return the visibility. | |
doc_16855 |
Return the submatrix corresponding to bicluster i. Parameters
iint
The index of the cluster.
dataarray-like of shape (n_samples, n_features)
The data. Returns
submatrixndarray of shape (n_rows, n_cols)
The submatrix corresponding to bicluster i. Notes Works with sparse matrices. Only works if ro... | |
doc_16856 | Return the current ContentHandler. | |
doc_16857 |
Create a LinearSegmentedColormap from a list of colors. Parameters
namestr
The name of the colormap.
colorsarray-like of colors or array-like of (value, color)
If only colors are given, they are equidistantly mapped from the range \([0, 1]\); i.e. 0 maps to colors[0] and 1 maps to colors[-1]. If (value, col... | |
doc_16858 | Return True if all characters in the string are alphanumeric and there is at least one character, False otherwise. A character c is alphanumeric if one of the following returns True: c.isalpha(), c.isdecimal(), c.isdigit(), or c.isnumeric(). | |
doc_16859 | Represent an address as 16 packed bytes in network (big-endian) order. address is an integer representation of an IPv6 IP address. A ValueError is raised if the integer is negative or too large to be an IPv6 IP address. | |
doc_16860 | See Migration guide for more details. tf.compat.v1.Module
tf.Module(
name=None
)
A module is a named container for tf.Variables, other tf.Modules and functions which apply to user input. For example a dense layer in a neural network might be implemented as a tf.Module:
class Dense(tf.Module):
def __init__(sel... | |
doc_16861 |
Returns True if obj is a PyTorch tensor. Note that this function is simply doing isinstance(obj, Tensor). Using that isinstance check is better for typechecking with mypy, and more explicit - so it’s recommended to use that instead of is_tensor. Parameters
obj (Object) – Object to test | |
doc_16862 |
Return a new Path with vertices and codes cleaned according to the parameters. See also Path.iter_segments
for details of the keyword arguments. | |
doc_16863 |
Return the font family name for math text rendered by Matplotlib. The default value is rcParams["mathtext.fontset"] (default: 'dejavusans'). See also set_math_fontfamily | |
doc_16864 | Get the debug mode (bool) of the event loop. The default value is True if the environment variable PYTHONASYNCIODEBUG is set to a non-empty string, False otherwise. | |
doc_16865 |
Generate polynomial and interaction features. Generate a new feature matrix consisting of all polynomial combinations of the features with degree less than or equal to the specified degree. For example, if an input sample is two dimensional and of the form [a, b], the degree-2 polynomial features are [1, a, b, a^2, a... | |
doc_16866 |
A parenthesized number followed by a comma denotes a tuple with one element. The trailing comma distinguishes a one-element tuple from a parenthesized n. -1
In a dimension entry, instructs NumPy to choose the length that will keep the total number of array elements the same. >>> np.arange(12).reshape(4, -1).shape
... | |
doc_16867 |
Date ticklabels often overlap, so it is useful to rotate them and right align them. Also, a common use case is a number of subplots with shared x-axis where the x-axis is date data. The ticklabels are often long, and it helps to rotate them on the bottom subplot and turn them off on other subplots, as well as turn of... | |
doc_16868 | Called when Expat begins parsing the document type declaration (<!DOCTYPE
...). The doctypeName is provided exactly as presented. The systemId and publicId parameters give the system and public identifiers if specified, or None if omitted. has_internal_subset will be true if the document contains and internal document ... | |
doc_16869 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_16870 |
Return True if the IntervalIndex has overlapping intervals, else False. Two intervals overlap if they share a common point, including closed endpoints. Intervals that only have an open endpoint in common do not overlap. Returns
bool
Boolean indicating if the IntervalIndex has overlapping intervals. See also ... | |
doc_16871 | Default widget: Select
Empty value: None
Normalizes to: A model instance. Validates that the given id exists in the queryset. Error message keys: required, invalid_choice
The invalid_choice error message may contain %(value)s, which will be replaced with the selected choice. Allows the selection of a single model ... | |
doc_16872 |
Alias for get_linestyle. | |
doc_16873 | Return the data for the specified year ready for formatting. The return value is a list of month rows. Each month row contains up to width months (defaulting to 3). Each month contains between 4 and 6 weeks and each week contains 1–7 days. Days are datetime.date objects. | |
doc_16874 |
Set the value array from array-like A. Parameters
Aarray-like or None
The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A. | |
doc_16875 | Construct a ZipInfo instance for a file on the filesystem, in preparation for adding it to a zip file. filename should be the path to a file or directory on the filesystem. If arcname is specified, it is used as the name within the archive. If arcname is not specified, the name will be the same as filename, but with an... | |
doc_16876 |
Compute data covariance with the generative model. cov = components_.T * S**2 * components_ + sigma2 * eye(n_features) where S**2 contains the explained variances, and sigma2 contains the noise variances. Returns
covarray, shape=(n_features, n_features)
Estimated covariance of data. | |
doc_16877 |
Set how floating-point errors are handled. Note that operations on integer scalar types (such as int16) are handled like floating point, and are affected by these settings. Parameters
all{‘ignore’, ‘warn’, ‘raise’, ‘call’, ‘print’, ‘log’}, optional
Set treatment for all types of floating-point errors at once: ... | |
doc_16878 | Display the panel (which might have been hidden). | |
doc_16879 | Update the values in the Morsel dictionary with the values in the dictionary values. Raise an error if any of the keys in the values dict is not a valid RFC 2109 attribute. Changed in version 3.5: an error is raised for invalid keys. | |
doc_16880 |
Return the first element of the underlying data as a Python scalar. Returns
scalar
The first element of %(klass)s. Raises
ValueError
If the data is not length-1. | |
doc_16881 |
Return the snap setting. See set_snap for details. | |
doc_16882 | See Migration guide for more details. tf.compat.v1.raw_ops.MapPeek
tf.raw_ops.MapPeek(
key, indices, dtypes, capacity=0, memory_limit=0, container='',
shared_name='', name=None
)
underlying container does not contain this key this op will block until it does.
Args
key A Tensor of type int64.
ind... | |
doc_16883 | Return the string right justified in a string of length width. Padding is done using the specified fillchar (default is an ASCII space). The original string is returned if width is less than or equal to len(s). | |
doc_16884 |
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_16885 |
View inputs as arrays with at least three dimensions. Parameters
arys1, arys2, …array_like
One or more array-like sequences. Non-array inputs are converted to arrays. Arrays that already have three or more dimensions are preserved. Returns
res1, res2, …ndarray
An array, or list of arrays, each with a.nd... | |
doc_16886 |
The top level container for all the plot elements. The Figure instance supports callbacks through a callbacks attribute which is a CallbackRegistry instance. The events you can connect to are 'dpi_changed', and the callback will be called with func(fig) where fig is the Figure instance. Attributes
patch
The Recta... | |
doc_16887 | If used, this function should be called before initscr() or newterm are called. When flag is False, the values of lines and columns specified in the terminfo database will be used, even if environment variables LINES and COLUMNS (used by default) are set, or if curses is running in a window (in which case default behav... | |
doc_16888 |
Draw samples from the noncentral F distribution. Samples are drawn from an F distribution with specified parameters, dfnum (degrees of freedom in numerator) and dfden (degrees of freedom in denominator), where both parameters > 1. nonc is the non-centrality parameter. Note New code should use the noncentral_f method... | |
doc_16889 |
Lower triangle of an array. Return a copy of an array with elements above the k-th diagonal zeroed. For arrays with ndim exceeding 2, tril will apply to the final two axes. Parameters
marray_like, shape (…, M, N)
Input array.
kint, optional
Diagonal above which to zero elements. k = 0 (the default) is the m... | |
doc_16890 | Traceback where the memory blocks were allocated, Traceback instance. | |
doc_16891 |
Bases: matplotlib.backend_tools.ZoomPanBase Pan axes with left mouse, zoom with right. cursor=4[source]
Cursor to use when the tool is active.
default_keymap=['p']
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas. ... | |
doc_16892 |
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 array-like or scalar or None
animated bool
antialiased or aa or antialiaseds bool or list of bools
array a... | |
doc_16893 | The response of the server if available, as a str object. | |
doc_16894 |
Bases: object Sankey diagram. Sankey diagrams are a specific type of flow diagram, in which the width of the arrows is shown proportionally to the flow quantity. They are typically used to visualize energy or material or cost transfers between processes. Wikipedia (6/1/2011) Create a new Sankey instance. The optional... | |
doc_16895 |
Return the product of array elements over a given axis treating Not a Numbers (NaNs) as ones. One is returned for slices that are all-NaN or empty. New in version 1.10.0. Parameters
aarray_like
Array containing numbers whose product is desired. If a is not an array, a conversion is attempted.
axis{int, tupl... | |
doc_16896 |
input_type: 'checkbox'
template_name: 'django/forms/widgets/checkbox.html'
Renders as: <input type="checkbox" ...>
Takes one optional argument:
check_test
A callable that takes the value of the CheckboxInput and returns True if the checkbox should be checked for that value. | |
doc_16897 |
Compute variance of groups, excluding missing values. For multiple groupings, the result index will be a MultiIndex. Parameters
ddof:int, default 1
Degrees of freedom.
engine:str, default None
'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled ... | |
doc_16898 | See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingFTRLParameters
tf.raw_ops.RetrieveTPUEmbeddingFTRLParameters(
num_shards, shard_id, table_id=-1, table_name='', config='',
name=None
)
An op that retrieves optimization parameters from embedding to host memory. Must be preceded by... | |
doc_16899 | Exception raised when errors occur attempting to parse a file. Changed in version 3.2: The filename attribute and __init__() argument were renamed to source for consistency. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.