_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_24000 |
Number of days. | |
doc_24001 |
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters
Xarray-like of shape (n_samples, n_features)
Input samples.
yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None
Target values (None for uns... | |
doc_24002 | Applies 3D average-pooling operation in kT×kH×kWkT \times kH \times kW regions by step size sT×sH×sWsT \times sH \times sW steps. The number of output features is equal to ⌊input planessT⌋\lfloor\frac{\text{input planes}}{sT}\rfloor . See AvgPool3d for details and output shape. Parameters
input – input tensor (mi... | |
doc_24003 |
Other Members
AUTO_REUSE
COMPILER_VERSION '7.3.1 20180303'
CXX11_ABI_FLAG 0
GIT_VERSION 'v2.4.0-rc4-71-g582c8d236cb'
GRAPH_DEF_VERSION 561
GRAPH_DEF_VERSION_MIN_CONSUMER 0
GRAPH_DEF_VERSION_MIN_PRODUCER 0
MONOLITHIC_BUILD 0
QUANTIZED_DTYPES
VERSION '2.4.0' ... | |
doc_24004 | See Migration guide for more details. tf.compat.v1.raw_ops.HashTable
tf.raw_ops.HashTable(
key_dtype, value_dtype, container='', shared_name='',
use_node_name_sharing=False, name=None
)
This op creates a hash table, specifying the type of its keys and values. Before using the table you will have to initializ... | |
doc_24005 |
Return name of an image XObject representing the given image. | |
doc_24006 |
Sets the seed for generating random numbers to a non-deterministic random number. Returns a 64 bit number used to seed the RNG. | |
doc_24007 |
[Deprecated] Notes Deprecated since version 3.4: | |
doc_24008 | The Expires entity-header field gives the date/time after which the response is considered stale. A stale cache entry may not normally be returned by a cache. Changed in version 2.0: The datetime object is timezone-aware. | |
doc_24009 |
CIE-LAB to XYZcolor space conversion. Parameters
lab(…, 3) array_like
The image in Lab format. Final dimension denotes channels.
illuminant{“A”, “D50”, “D55”, “D65”, “D75”, “E”}, optional
The name of the illuminant (the function is NOT case sensitive).
observer{“2”, “10”}, optional
The aperture angle of... | |
doc_24010 |
Generate a new DataFrame or Series with the index reset. This is useful when the index needs to be treated as a column, or when the index is meaningless and needs to be reset to the default before another operation. Parameters
level:int, str, tuple, or list, default optional
For a Series with a MultiIndex, only... | |
doc_24011 | The unix_dialect class defines the usual properties of a CSV file generated on UNIX systems, i.e. using '\n' as line terminator and quoting all fields. It is registered with the dialect name 'unix'. New in version 3.2. | |
doc_24012 | Provides a mechanism to construct a TemplateResponse, given suitable context. The template to use is configurable and can be further customized by subclasses. Attributes
template_name
The full name of a template to use as defined by a string. Not defining a template_name will raise a django.core.exceptions.Improper... | |
doc_24013 |
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters
in_layoutbool | |
doc_24014 |
Alias for set_antialiased. | |
doc_24015 | See torch.true_divide() | |
doc_24016 |
Make a compound path object to draw a number of polygons with equal numbers of sides XY is a (numpolys x numsides x 2) numpy array of vertices. Return object is a Path. (Source code, png, pdf) | |
doc_24017 | Path to a custom template, used by change_view(). | |
doc_24018 |
Construct a Bbox by expanding this one around its center by the factors sw and sh. | |
doc_24019 |
Mixin defining all operator special methods using __array_ufunc__. This class implements the special methods for almost all of Python’s builtin operators defined in the operator module, including comparisons (==, >, etc.) and arithmetic (+, *, -, etc.), by deferring to the __array_ufunc__ method, which subclasses mus... | |
doc_24020 | tf.compat.v1.layers.Conv1D(
filters, kernel_size, strides=1, padding='valid',
data_format='channels_last', dilation_rate=1, activation=None,
use_bias=True, kernel_initializer=None, bias_initializer=tf.zeros_initializer(),
kernel_regularizer=None, bias_regularizer=None, activity_regularizer=None,
ker... | |
doc_24021 |
Transform the sources back to the mixed data (apply mixing matrix). Parameters
Xarray-like of shape (n_samples, n_components)
Sources, where n_samples is the number of samples and n_components is the number of components.
copybool, default=True
If False, data passed to fit are overwritten. Defaults to True.... | |
doc_24022 | This converter only accepts UUID strings: Rule('/object/<uuid:identifier>')
Changelog New in version 0.10. Parameters
map (Map) – the Map.
args (Any) –
kwargs (Any) – Return type
None | |
doc_24023 | Number of 512-byte blocks allocated for file. This may be smaller than st_size/512 when the file has holes. | |
doc_24024 |
Return the aspect ratio of the scaled data. Notes This method is intended to be overridden by new projection types. | |
doc_24025 | Return a string containing the hostname of the machine where the Python interpreter is currently executing. Raises an auditing event socket.gethostname with no arguments. Note: gethostname() doesn’t always return the fully qualified domain name; use getfqdn() for that. | |
doc_24026 | An abstract method for finding a spec for the specified module. The finder will search for the module only within the path entry to which it is assigned. If a spec cannot be found, None is returned. When passed in, target is a module object that the finder may use to make a more educated guess about what spec to return... | |
doc_24027 | sklearn.utils.safe_mask(X, mask) [source]
Return a mask which is safe to use on X. Parameters
X{array-like, sparse matrix}
Data on which to apply mask.
maskndarray
Mask to be used on X. Returns
mask | |
doc_24028 | True if this is a loopback address. See RFC 3330 (for IPv4) or RFC 2373 (for IPv6). | |
doc_24029 | tf.compat.v1.train.init_from_checkpoint(
ckpt_dir_or_file, assignment_map
)
Values are not loaded immediately, but when the initializer is run (typically by running a tf.compat.v1.global_variables_initializer op).
Note: This overrides default initialization ops of specified variables and redefines dtype.
Assignm... | |
doc_24030 |
Remove a callback based on its observer id. See also add_callback | |
doc_24031 |
Generate HTML representation of the animation. Parameters
fpsint, optional
Movie frame rate (per second). If not set, the frame rate from the animation's frame interval.
embed_framesbool, optional
default_modestr, optional
What to do when the animation ends. Must be one of {'loop',
'once', 'reflect'}. Def... | |
doc_24032 | Text is an alias for str. It is provided to supply a forward compatible path for Python 2 code: in Python 2, Text is an alias for unicode. Use Text to indicate that a value must contain a unicode string in a manner that is compatible with both Python 2 and Python 3: def add_unicode_checkmark(text: Text) -> Text:
re... | |
doc_24033 |
Shift the time index, using the index’s frequency if available. Deprecated since version 1.1.0: Use shift instead. Parameters
periods:int
Number of periods to move, can be positive or negative.
freq:DateOffset, timedelta, or str, default None
Increment to use from the tseries module or time rule expressed... | |
doc_24034 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_24035 | See Migration guide for more details. tf.compat.v1.raw_ops.MatrixDiagPartV2
tf.raw_ops.MatrixDiagPartV2(
input, k, padding_value, name=None
)
Returns a tensor with the k[0]-th to k[1]-th diagonals of the batched input. Assume input has r dimensions [I, J, ..., L, M, N]. Let max_diag_len be the maximum length amo... | |
doc_24036 |
Return the position of the rectangle. | |
doc_24037 |
Return an array of native datetime.timedelta objects. Python’s standard datetime library uses a different representation timedelta’s. This method converts a Series of pandas Timedeltas to datetime.timedelta format with the same length as the original Series. Returns
numpy.ndarray
Array of 1D containing data with ... | |
doc_24038 | tf.distribute.StrategyExtended(
container_strategy
)
Note: For most usage of tf.distribute.Strategy, there should be no need to call these methods, since TensorFlow libraries (such as optimizers) already call these methods when needed on your behalf.
Some common use cases of functions on this page: Locality tf... | |
doc_24039 | A read-only property for the standard deviation of a normal distribution. | |
doc_24040 | tf.experimental.numpy.isnan(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.isnan. | |
doc_24041 | Python has a more primitive serialization module called marshal, but in general pickle should always be the preferred way to serialize Python objects. marshal exists primarily to support Python’s .pyc files. The pickle module differs from marshal in several significant ways:
The pickle module keeps track of the obje... | |
doc_24042 | Parameters
x – a number (integer or float) Set the turtle’s first coordinate to x, leave second coordinate unchanged. >>> turtle.position()
(0.00,240.00)
>>> turtle.setx(10)
>>> turtle.position()
(10.00,240.00) | |
doc_24043 |
Bases: matplotlib.backend_tools.ToolBase Auxiliary Tool to handle changes in views and positions. Runs in the background and should get used by all the tools that need to access the figure's history of views and positions, e.g. ToolZoom ToolPan ToolHome ToolBack ToolForward add_figure(figure)[source]
Add the cu... | |
doc_24044 | draw a polygon polygon(surface, color, points) -> Rect polygon(surface, color, points, width=0) -> Rect Draws a polygon on the given surface.
Parameters:
surface (Surface) -- surface to draw on
color (Color or int or tuple(int, int, int, [int])) -- color to draw with, the alpha value is optional if using a t... | |
doc_24045 | Get the byte stream for this input source. The getEncoding method will return the character encoding for this byte stream, or None if unknown. | |
doc_24046 | See Migration guide for more details. tf.compat.v1.load_library
tf.load_library(
library_location
)
"library_location" can be a path to a specific shared object, or a folder. If it is a folder, all shared objects that are named "libtfkernel*" will be loaded. When the library is loaded, kernels registered in the ... | |
doc_24047 | temporarily stop music playback pause() -> None Temporarily stop playback of the music stream. It can be resumed with the pygame.mixer.music.unpause() function. | |
doc_24048 | The default map zoom is 12. | |
doc_24049 | See Migration guide for more details. tf.compat.v1.raw_ops.Diag
tf.raw_ops.Diag(
diagonal, name=None
)
Given a diagonal, this operation returns a tensor with the diagonal and everything else padded with zeros. The diagonal is computed as follows: Assume diagonal has dimensions [D1,..., Dk], then the output is a ... | |
doc_24050 |
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_24051 | Shortcut for route() with methods=["POST"]. New in version 2.0. Parameters
rule (str) –
options (Any) – Return type
Callable | |
doc_24052 |
Bases: matplotlib.backend_tools.ToolBase Change to the current cursor while inaxes. This tool, keeps track of all ToolToggleBase derived tools, and calls set_cursor when a tool gets triggered. set_cursor(cursor)[source]
[Deprecated] Set the cursor. Notes Deprecated since version 3.5.
set_figure(figure)[sour... | |
doc_24053 | fill Surface with a solid color fill(color, rect=None, special_flags=0) -> Rect Fill the Surface with a solid color. If no rect argument is given the entire Surface will be filled. The rect argument will limit the fill to a specific area. The fill will also be contained by the Surface clip area. The color argument ca... | |
doc_24054 | Returns the y-intercept of the least-squares-fit linear equation determined by the (x, y) pairs as a float, or default if there aren’t any matching rows. | |
doc_24055 | This function is installed as the trace function of debugged frames. Its return value is the new trace function (in most cases, that is, itself). The default implementation decides how to dispatch a frame, depending on the type of event (passed as a string) that is about to be executed. event can be one of the followin... | |
doc_24056 | Method called to prepare the test fixture. This is called after setUp(). This is called immediately before calling the test method; other than AssertionError or SkipTest, any exception raised by this method will be considered an error rather than a test failure. The default implementation does nothing. | |
doc_24057 | A paginator acts like a sequence of Page when using len() or iterating it directly. | |
doc_24058 | See Migration guide for more details. tf.compat.v1.io.serialize_tensor, tf.compat.v1.serialize_tensor
tf.io.serialize_tensor(
tensor, name=None
)
Args
tensor A Tensor. A Tensor of type T.
name A name for the operation (optional).
Returns A Tensor of type string. | |
doc_24059 |
Check whether other does not equal self elementwise. When either of the elements is masked, the result is masked as well, but the underlying boolean data are still set, with self and other considered equal if both are masked, and unequal otherwise. For structured arrays, all fields are combined, with masked values ig... | |
doc_24060 | A generic version of collections.abc.Container. Deprecated since version 3.9: collections.abc.Container now supports []. See PEP 585 and Generic Alias Type. | |
doc_24061 | Whether the OpenSSL library has built-in support not checking subject common name and SSLContext.hostname_checks_common_name is writeable. New in version 3.7. | |
doc_24062 | name is the name of the header to be mapped. It will be converted to lower case in the registry. cls is the specialized class to be used, along with base_class, to create the class used to instantiate headers that match name. | |
doc_24063 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DWithBiasAndReluAndRequantize
tf.raw_ops.QuantizedConv2DWithBiasAndReluAndRequantize(
input, filter, bias, min_input, max_input, min_filter, max_filter,
min_freezed_output, max_freezed_output, strides, padding,
out_type=tf.dtypes.qui... | |
doc_24064 | Return a context manager that returns enter_result from __enter__, but otherwise does nothing. It is intended to be used as a stand-in for an optional context manager, for example: def myfunction(arg, ignore_exceptions=False):
if ignore_exceptions:
# Use suppress to ignore all exceptions.
cm = conte... | |
doc_24065 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_24066 | Logs a message with level WARNING on the root logger. The arguments are interpreted as for debug(). Note There is an obsolete function warn which is functionally identical to warning. As warn is deprecated, please do not use it - use warning instead. | |
doc_24067 |
Given the quadratic Bezier control points bezier2, returns control points of quadratic Bezier lines roughly parallel to given one separated by width. | |
doc_24068 | Similar to the ETags class this implements a set-like structure. Unlike ETags this is case insensitive and used for vary, allow, and content-language headers. If not constructed using the parse_set_header() function the instantiation works like this: >>> hs = HeaderSet(['foo', 'bar', 'baz'])
>>> hs
HeaderSet(['foo', 'b... | |
doc_24069 | Get source code segment of the source that generated node. If some location information (lineno, end_lineno, col_offset, or end_col_offset) is missing, return None. If padded is True, the first line of a multi-line statement will be padded with spaces to match its original position. New in version 3.8. | |
doc_24070 | Like digest() except the digest is returned as a string object of double length, containing only hexadecimal digits. This may be used to exchange the value safely in email or other non-binary environments. | |
doc_24071 | Returns a string representing the current Windows edition. Possible values include but are not limited to 'Enterprise', 'IoTUAP', 'ServerStandard', and 'nanoserver'. New in version 3.8. | |
doc_24072 |
Bases: matplotlib.projections.geo.GeoAxes Build an Axes in a figure. Parameters
figFigure
The Axes is built in the Figure fig.
rect[left, bottom, width, height]
The Axes is built in the rectangle rect. rect is in Figure coordinates.
sharex, shareyAxes, optional
The x or y axis is shared with the x or y ... | |
doc_24073 |
Set the default format for the string representation of polynomials. Values for style must be valid inputs to __format__, i.e. ‘ascii’ or ‘unicode’. Parameters
stylestr
Format string for default printing style. Must be either ‘ascii’ or ‘unicode’. Notes The default format depends on the platform: ‘unicode’ ... | |
doc_24074 |
DateOffset subclass representing possibly n business hours. Parameters
n:int, default 1
The number of months represented.
normalize:bool, default False
Normalize start/end dates to midnight before generating date range.
weekmask:str, Default ‘Mon Tue Wed Thu Fri’
Weekmask of valid business days, passed ... | |
doc_24075 | See Migration guide for more details. tf.compat.v1.signal.irfft2d, tf.compat.v1.spectral.irfft2d
tf.signal.irfft2d(
input_tensor, fft_length=None, name=None
)
Computes the inverse 2-dimensional discrete Fourier transform of a real-valued signal over the inner-most 2 dimensions of input. The inner-most 2 dimensio... | |
doc_24076 |
Alias for set_linewidth. | |
doc_24077 | tf.io.serialize_many_sparse(
sp_input, out_type=tf.dtypes.string, name=None
)
The SparseTensor must have rank R greater than 1, and the first dimension is treated as the minibatch dimension. Elements of the SparseTensor must be sorted in increasing order of this first dimension. The serialized SparseTensor objects... | |
doc_24078 |
Set the CapStyle for the collection (for all its elements). Parameters
csCapStyle or {'butt', 'projecting', 'round'} | |
doc_24079 |
Return a string representation of the data in an array. The data in the array is returned as a single string. This function is similar to array_repr, the difference being that array_repr also returns information on the kind of array and its data type. Parameters
andarray
Input array.
max_line_widthint, option... | |
doc_24080 |
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with filled triangle heads at both ends. Parameters
head_lengthfloat, default: 0.4
Length of the arrow head, relative to mutation_scale.
head_widthfloat, default: 0.2
Width of the arrow head, relative to mutation_scale.
widthAfloat, default: 1.0
Width... | |
doc_24081 |
Bases: matplotlib.axes._base._AxesBase The Axes contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. The Axes instance supports callbacks through a callbacks attribute which is a CallbackRegistry instance. The events you can connect to are 'xlim_changed' and '... | |
doc_24082 |
Save several arrays into a single file in compressed .npz format. Provide arrays as keyword arguments to store them under the corresponding name in the output file: savez(fn, x=x, y=y). If arrays are specified as positional arguments, i.e., savez(fn,
x, y), their names will be arr_0, arr_1, etc. Parameters
filest... | |
doc_24083 |
Return the index of the leaf that each sample is predicted as. New in version 0.17. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix.
check_inputbool, def... | |
doc_24084 | Return the base-10 logarithm of x. This is usually more accurate than log(x, 10). | |
doc_24085 |
Add a 3D collection object to the plot. 2D collection types are converted to a 3D version by modifying the object and adding z coordinate information. Supported are: PolyCollection LineCollection PatchCollection | |
doc_24086 |
Bases: matplotlib.backends.backend_pdf.Operator, enum.Enum An enumeration. begin_text=(b'BT',)[source]
clip=b'W'[source]
close_fill_stroke=b'b'[source]
close_stroke=b's'[source]
closepath=(b'h',)[source]
concat_matrix=b'cm'[source]
curveto=b'c'[source]
end_text=b'ET'[source]
endpath=... | |
doc_24087 | See Migration guide for more details. tf.compat.v1.raw_ops.Reverse
tf.raw_ops.Reverse(
tensor, dims, name=None
)
Given a tensor, and a bool tensor dims representing the dimensions of tensor, this operation reverses each dimension i of tensor where dims[i] is True. tensor can have up to 8 dimensions. The number o... | |
doc_24088 | Logs a message with level CRITICAL on the root logger. The arguments are interpreted as for debug(). | |
doc_24089 |
Applies the HardTanh function element-wise HardTanh is defined as: HardTanh(x)={1 if x>1−1 if x<−1x otherwise \text{HardTanh}(x) = \begin{cases} 1 & \text{ if } x > 1 \\ -1 & \text{ if } x < -1 \\ x & \text{ otherwise } \\ \end{cases}
The range of the linear region [−1,1][-1, 1] can be adjusted using min_val and ... | |
doc_24090 | Register a custom template test, available application wide. Like Flask.template_test() but for a blueprint. Changelog New in version 0.10. Parameters
name (Optional[str]) – the optional name of the test, otherwise the function name will be used. Return type
Callable | |
doc_24091 |
Get the ‘info axis’ (see Indexing for more). This is index for Series, columns for DataFrame. Returns
Index
Info axis. | |
doc_24092 | Return a dictionary mapping each thread’s identifier to the topmost stack frame currently active in that thread at the time the function is called. Note that functions in the traceback module can build the call stack given such a frame. This is most useful for debugging deadlock: this function does not require the dead... | |
doc_24093 | Usually when you’ll interact with a QuerySet you’ll use it by chaining filters. To make this work, most QuerySet methods return new querysets. These methods are covered in detail later in this section. The QuerySet class has two public attributes you can use for introspection:
ordered
True if the QuerySet is ordere... | |
doc_24094 | URL/URI scheme list to validate against. If not provided, the default list is ['http', 'https', 'ftp', 'ftps']. As a reference, the IANA website provides a full list of valid URI schemes. | |
doc_24095 |
Return the offsets for the collection. | |
doc_24096 | Change a registered file object’s monitored events or attached data. This is equivalent to BaseSelector.unregister(fileobj)() followed by BaseSelector.register(fileobj, events, data)(), except that it can be implemented more efficiently. This returns a new SelectorKey instance, or raises a ValueError in case of invalid... | |
doc_24097 |
Convert the input to an ndarray, but pass ndarray subclasses through. Parameters
aarray_like
Input data, in any form that can be converted to an array. This includes scalars, lists, lists of tuples, tuples, tuples of tuples, tuples of lists, and ndarrays.
dtypedata-type, optional
By default, the data-type i... | |
doc_24098 | The mathematical constant π, as a float. | |
doc_24099 |
When the user hits enter or leaves the submission box, call this func with event. A connection id is returned which can be used to disconnect. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.