_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_26900 | Handle requests until an explicit shutdown() request. Poll for shutdown every poll_interval seconds. Ignores the timeout attribute. It also calls service_actions(), which may be used by a subclass or mixin to provide actions specific to a given service. For example, the ForkingMixIn class uses service_actions() to clea... | |
doc_26901 |
Compute group sizes. Returns
DataFrame or Series
Number of rows in each group as a Series if as_index is True or a DataFrame if as_index is False. See also Series.groupby
Apply a function groupby to a Series. DataFrame.groupby
Apply a function groupby to each row or column of a DataFrame. | |
doc_26902 | The type of lock to use when updating. Changelog New in version 1.0. | |
doc_26903 | Fill the shape drawn after the last call to begin_fill(). Whether or not overlap regions for self-intersecting polygons or multiple shapes are filled depends on the operating system graphics, type of overlap, and number of overlaps. For example, the Turtle star above may be either all yellow or have some white regions.... | |
doc_26904 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListPushBackBatch
tf.raw_ops.TensorListPushBackBatch(
input_handles, tensor, name=None
)
Args
input_handles A Tensor of type variant.
tensor A Tensor.
name A name for the operation (optional).
Returns A Tensor of type... | |
doc_26905 | Creates a temporary directory in the most secure manner possible. There are no race conditions in the directory’s creation. The directory is readable, writable, and searchable only by the creating user ID. The user of mkdtemp() is responsible for deleting the temporary directory and its contents when done with it. The ... | |
doc_26906 | tf.compat.v1.scatter_nd_sub(
ref, indices, updates, use_locking=False, name=None
)
ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indices into ref. It must be shape [d_0, ..., d_{Q-2}, K] where 0 < K <= P. The innermost dimension of indices (with length K)... | |
doc_26907 |
Pops a range off of a stack of nested range spans. Returns the zero-based depth of the range that is ended. | |
doc_26908 |
Alias for set_linewidth. | |
doc_26909 | Run an interactive Python shell in the context of a given Flask application. The application will populate the default namespace of this shell according to its configuration. This is useful for executing small snippets of management code without having to manually configure the application. Parameters
args (Any) – ... | |
doc_26910 | The name of the URL pattern that matches the URL. | |
doc_26911 | A string representation of the interface with the mask in prefix notation. >>> interface = IPv4Interface('192.0.2.5/24')
>>> interface.with_prefixlen
'192.0.2.5/24' | |
doc_26912 | A model for storing the domain and name attributes of a website.
domain
The fully qualified domain name associated with the website. For example, www.example.com.
name
A human-readable “verbose” name for the website. | |
doc_26913 |
Bases: skimage.transform._geometric.ProjectiveTransform 2D Euclidean transformation. Has the following form: X = a0 * x - b0 * y + a1 =
= x * cos(rotation) - y * sin(rotation) + a1
Y = b0 * x + a0 * y + b1 =
= x * sin(rotation) + y * cos(rotation) + b1
where the homogeneous transformation matrix is: [[a0 b0 a... | |
doc_26914 | The instance of ModelChoiceField or ModelMultipleChoiceField to iterate and yield choices. | |
doc_26915 | Exception.with_traceback(tb) – set self.__traceback__ to tb and return self. | |
doc_26916 | Return a random integer N such that a <= N <= b. Alias for randrange(a, b+1). | |
doc_26917 |
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_26918 | Extract the device minor number from a raw device number (usually the st_dev or st_rdev field from stat). | |
doc_26919 |
Set the hatching pattern hatch can be one of: / - diagonal hatching
\ - back diagonal
| - vertical
- - horizontal
+ - crossed
x - crossed diagonal
o - small circle
O - large circle
. - dots
* - stars
Letters can be combined, in which case all the specified hatchings are done. If same letter repea... | |
doc_26920 | Sets the module in training mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc. Parameters
mode (bool) – whether to set training mode (True) or evaluation mode (False... | |
doc_26921 | Cause the byte string char to be “pushed back” into the console buffer; it will be the next character read by getch() or getche(). | |
doc_26922 |
Alias for get_ylim3d. | |
doc_26923 | See Migration guide for more details. tf.compat.v1.raw_ops.MultiDeviceIteratorGetNextFromShard
tf.raw_ops.MultiDeviceIteratorGetNextFromShard(
multi_device_iterator, shard_num, incarnation_id, output_types, output_shapes,
name=None
)
Args
multi_device_iterator A Tensor of type resource. A MultiDevic... | |
doc_26924 | Return True if endwin() has been called (that is, the curses library has been deinitialized). | |
doc_26925 | Clean up indentation from docstrings that are indented to line up with blocks of code. All leading whitespace is removed from the first line. Any leading whitespace that can be uniformly removed from the second line onwards is removed. Empty lines at the beginning and end are subsequently removed. Also, all tabs are ex... | |
doc_26926 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseSplit
tf.raw_ops.SparseSplit(
split_dim, indices, values, shape, num_split, name=None
)
If the shape[split_dim] is not an integer multiple of num_split. Slices [0 : shape[split_dim] % num_split] gets one extra dimension. For example, if split_dim =... | |
doc_26927 |
Return whether this axes supports the zoom box button functionality. 3D axes objects do not use the zoom box button. | |
doc_26928 |
The month as January=1, December=12. | |
doc_26929 | control where the overlay is displayed set_location(rect) -> None Set the location for the overlay. The overlay will always be shown relative to the main display Surface. This does not actually redraw the overlay, it will be updated on the next call to Overlay.display(). | |
doc_26930 |
Differentiate a Laguerre series. Returns the Laguerre series coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl (the scaling factor is for use in a linear change of variable). The argument c is an array of coefficients from low to high degree along each axis, e.g., [1,... | |
doc_26931 | Connect to the given host and port. The default port number is 21, as specified by the FTP protocol specification. It is rarely needed to specify a different port number. This function should be called only once for each instance; it should not be called at all if a host was given when the instance was created. All oth... | |
doc_26932 |
Return the mean absolute deviation of the values over the requested axis. Parameters
axis:{index (0)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result.
level:int or level name, default None
If the axis is a MultiIndex (hierarchical), coun... | |
doc_26933 |
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_26934 |
__init__(fps=5, metadata=None, codec=None, bitrate=None)[source]
Methods
__init__([fps, metadata, codec, bitrate])
finish() Finish any processing for writing the movie.
grab_frame(**savefig_kwargs) Grab the image information from the figure and save as a movie frame.
isAvailable()
saving(fig, outfile,... | |
doc_26935 | Make the response object ready to be pickled. Does the following: Buffer the response into a list, ignoring implicity_sequence_conversion and direct_passthrough. Set the Content-Length header. Generate an ETag header if one is not already set. Changed in version 2.0: An ETag header is added, the no_etag parameter is... | |
doc_26936 |
Synonym for DataFrame.fillna() with method='ffill'. Returns
Series/DataFrame or None
Object with missing values filled or None if inplace=True. | |
doc_26937 |
Prediction voting regressor for unfitted estimators. A voting regressor is an ensemble meta-estimator that fits several base regressors, each on the whole dataset. Then it averages the individual predictions to form a final prediction. Read more in the User Guide. New in version 0.21. Parameters
estimatorslist ... | |
doc_26938 | Return the path to an executable which would be run if the given cmd was called. If no cmd would be called, return None. mode is a permission mask passed to os.access(), by default determining if the file exists and executable. When no path is specified, the results of os.environ() are used, returning either the “PATH”... | |
doc_26939 |
Set whether the existing bounds of the box should be ignored by subsequent calls to update_from_data_xy(). valuebool
When True, subsequent calls to update_from_data_xy() will ignore the existing bounds of the Bbox. When False, subsequent calls to update_from_data_xy() will include the existing bounds of the Bbox. | |
doc_26940 | streamreader
Stream writer and reader classes or factory functions. These have to provide the interface defined by the base classes StreamWriter and StreamReader, respectively. Stream codecs can maintain state. | |
doc_26941 |
Set the width of the figure in inches. Parameters
valfloat
forwardbool
See set_size_inches. See also matplotlib.figure.Figure.set_figheight
matplotlib.figure.Figure.set_size_inches | |
doc_26942 |
Alias for get_facecolor. | |
doc_26943 |
Return a list of artists and labels suitable for passing through to legend which represent this ContourSet. The labels have the form "0 < x <= 1" stating the data ranges which the artists represent. Parameters
variable_namestr
The string used inside the inequality used on the labels.
str_formatfunction: float... | |
doc_26944 | See Migration guide for more details. tf.compat.v1.raw_ops.IRFFT2D
tf.raw_ops.IRFFT2D(
input, fft_length, Treal=tf.dtypes.float32, 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 dimensions of input are ... | |
doc_26945 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_26946 | Call func with arguments args and keyword arguments kwds. It blocks until the result is ready. Given this blocks, apply_async() is better suited for performing work in parallel. Additionally, func is only executed in one of the workers of the pool. | |
doc_26947 | Line number (int) of the filter. If lineno is None, the filter matches any line number. | |
doc_26948 | Test whether or not the selection points to a valid file that is not a directory. Confirmation is required if an already existing file is selected. | |
doc_26949 | '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_26950 |
One-vs-one multiclass strategy This strategy consists in fitting one classifier per class pair. At prediction time, the class which received the most votes is selected. Since it requires to fit n_classes * (n_classes - 1) / 2 classifiers, this method is usually slower than one-vs-the-rest, due to its O(n_classes^2) c... | |
doc_26951 |
Creates a setuptools.Extension for C++. Convenience method that creates a setuptools.Extension with the bare minimum (but often sufficient) arguments to build a C++ extension. All arguments are forwarded to the setuptools.Extension constructor. Example >>> from setuptools import setup
>>> from torch.utils.cpp_extensi... | |
doc_26952 | tf.compat.v1.keras.layers.LSTMCell(
units, activation='tanh',
recurrent_activation='hard_sigmoid', use_bias=True,
kernel_initializer='glorot_uniform',
recurrent_initializer='orthogonal',
bias_initializer='zeros', unit_forget_bias=True,
kernel_regularizer=None, recurrent_regularizer=None, bias_re... | |
doc_26953 | tf.cosh Compat aliases for migration See Migration guide for more details. tf.compat.v1.cosh, tf.compat.v1.math.cosh
tf.math.cosh(
x, name=None
)
Given an input tensor, this function computes hyperbolic cosine of every element in the tensor. Input range is [-inf, inf] and output range is [1, inf]. x = tf.constan... | |
doc_26954 | A for loop. target holds the variable(s) the loop assigns to, as a single Name, Tuple or List node. iter holds the item to be looped over, again as a single node. body and orelse contain lists of nodes to execute. Those in orelse are executed if the loop finishes normally, rather than via a break statement.
type_comm... | |
doc_26955 |
Defaults to removing last label, but any index can be supplied | |
doc_26956 |
Estimate the transformation from a set of corresponding points. You can determine the over-, well- and under-determined parameters with the total least-squares method. Number of source and destination coordinates must match. Parameters
src(N, 2) array
Source coordinates.
dst(N, 2) array
Destination coordina... | |
doc_26957 | The HTTP status of the response, as an integer. For a full list of defined codes, see the IANA status code registry. | |
doc_26958 | Returns the age of session cookies, in seconds. Defaults to SESSION_COOKIE_AGE. | |
doc_26959 | See Migration guide for more details. tf.compat.v1.igammac, tf.compat.v1.math.igammac
tf.math.igammac(
a, x, name=None
)
The upper regularized incomplete Gamma function is defined as: \(Q(a, x) = Gamma(a, x) / Gamma(a) = 1 - P(a, x)\) where \(Gamma(a, x) = int_{x}^{\infty} t^{a-1} exp(-t) dt\) is the upper incom... | |
doc_26960 | unlock()
Three locking mechanisms are used—dot locking and, if available, the flock() and lockf() system calls. | |
doc_26961 | tf.data.experimental.choose_from_datasets(
datasets, choice_dataset
)
For example, given the following datasets: datasets = [tf.data.Dataset.from_tensors("foo").repeat(),
tf.data.Dataset.from_tensors("bar").repeat(),
tf.data.Dataset.from_tensors("baz").repeat()]
# Define a dataset containi... | |
doc_26962 |
Set the coordinates of the label. By default, the x coordinate of the y label and the y coordinate of the x label are determined by the tick label bounding boxes, but this can lead to poor alignment of multiple labels if there are multiple axes. You can also specify the coordinate system of the label with the transfo... | |
doc_26963 | See torch.inverse() | |
doc_26964 |
Return a callable that handles preprocessing, tokenization and n-grams generation. Returns
analyzer: callable
A function to handle preprocessing, tokenization and n-grams generation. | |
doc_26965 | The local filesystem path where the file can be opened using Python’s standard open(). For storage systems that aren’t accessible from the local filesystem, this will raise NotImplementedError instead. | |
doc_26966 | Computes the element-wise logical OR of the given input tensors. Zeros are treated as False and nonzeros are treated as True. Parameters
input (Tensor) – the input tensor.
other (Tensor) – the tensor to compute OR with Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> torch.logical_or... | |
doc_26967 |
Step could be called after every batch update Example >>> scheduler = CosineAnnealingWarmRestarts(optimizer, T_0, T_mult)
>>> iters = len(dataloader)
>>> for epoch in range(20):
>>> for i, sample in enumerate(dataloader):
>>> inputs, labels = sample['inputs'], sample['labels']
>>> optimizer.zero_g... | |
doc_26968 | Compile a source file to byte-code and write out the byte-code cache file. The source code is loaded from the file named file. The byte-code is written to cfile, which defaults to the PEP 3147/PEP 488 path, ending in .pyc. For example, if file is /foo/bar/baz.py cfile will default to /foo/bar/__pycache__/baz.cpython-32... | |
doc_26969 | This method is called to create the default OPTIONS response. This can be changed through subclassing to change the default behavior of OPTIONS responses. Changelog New in version 0.7. Return type
flask.wrappers.Response | |
doc_26970 | padded boundary mode pad -> bool If set True, then the text boundary rectangle will be inflated to match that of font.Font. Otherwise, the boundary rectangle is just large enough for the text. | |
doc_26971 |
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_26972 |
Return whether face is colored. | |
doc_26973 |
Bases: matplotlib.tri.triinterpolate.TriInterpolator Cubic interpolator on a triangular grid. In one-dimension - on a segment - a cubic interpolating function is defined by the values of the function and its derivative at both ends. This is almost the same in 2D inside a triangle, except that the values of the functi... | |
doc_26974 |
The number of outputs. Data attribute containing the number of arguments the ufunc treats as output. Notes Since all ufuncs can take output arguments, this will always be (at least) 1. Examples >>> np.add.nout
1
>>> np.multiply.nout
1
>>> np.power.nout
1
>>> np.exp.nout
1 | |
doc_26975 |
Alias for set_facecolor. | |
doc_26976 | Implementation of Loader.load_module(). Deprecated since version 3.4: use exec_module() instead. | |
doc_26977 |
Whether the intervals are closed on the left-side, right-side, both or neither. | |
doc_26978 | symbol.sym_name
Dictionary mapping the numeric values of the constants defined in this module back to name strings, allowing more human-readable representation of parse trees to be generated. | |
doc_26979 |
Create a qat module from a float module or qparams_dict Args: mod a float module, either produced by torch.quantization utilities or directly from user | |
doc_26980 |
Return cross-section from the Series/DataFrame. This method takes a key argument to select data at a particular level of a MultiIndex. Parameters
key:label or tuple of label
Label contained in the index, or partially in a MultiIndex.
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
Axis to retrieve cross-sect... | |
doc_26981 | set the mouse cursor position set_pos([x, y]) -> None Set the current mouse position to arguments given. If the mouse cursor is visible it will jump to the new coordinates. Moving the mouse will generate a new pygame.MOUSEMOTION event. | |
doc_26982 | Name Meaning
NUL
SOH Start of heading, console interrupt
STX Start of text
ETX End of text
EOT End of transmission
ENQ Enquiry, goes with ACK flow control
ACK Acknowledgement
BEL Bell
BS Backspace
TAB Tab
HT Alias for TAB: “Horizontal tab”
LF Line feed
NL Alias for LF: “New line”
VT Vertic... | |
doc_26983 |
Computes the cumulative distribution function by inverting the transform(s) and computing the score of the base distribution. | |
doc_26984 | Return the value returned by the call. If the call hasn’t yet completed then this method will wait up to timeout seconds. If the call hasn’t completed in timeout seconds, then a concurrent.futures.TimeoutError will be raised. timeout can be an int or float. If timeout is not specified or None, there is no limit to the ... | |
doc_26985 |
Tries to return a string representing a frequency guess, generated by infer_freq. Returns None if it can’t autodetect the frequency. | |
doc_26986 | Returns a datetime of the creation time of the file. For storage systems unable to return the creation time this will raise NotImplementedError. If USE_TZ is True, returns an aware datetime, otherwise returns a naive datetime in the local timezone. | |
doc_26987 | Get current state of a generator-iterator. Possible states are:
GEN_CREATED: Waiting to start execution. GEN_RUNNING: Currently being executed by the interpreter. GEN_SUSPENDED: Currently suspended at a yield expression. GEN_CLOSED: Execution has completed. New in version 3.2. | |
doc_26988 |
Deprecated since version 1.21: This decorator is retained for compatibility with the nose testing framework, which is being phased out. Please use the nose2 or pytest frameworks instead. Make function raise KnownFailureException exception if given condition is true. If the condition is a callable, it is used at run... | |
doc_26989 | See Migration guide for more details. tf.compat.v1.raw_ops.Atan
tf.raw_ops.Atan(
x, name=None
)
The tf.math.atan operation returns the inverse of tf.math.tan, such that if y = tf.math.tan(x) then, x = tf.math.atan(y).
Note: The output of tf.math.atan will lie within the invertible range of tan, i.e (-pi/2, pi/2... | |
doc_26990 |
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] = He_i(x) * He_j(y),\] where 0 <= i <= deg[0] and 0 <= j <= deg[1]. The leading indices of V index the points (x, y) and ... | |
doc_26991 | tf.experimental.numpy.amin(
a, axis=None, keepdims=None
)
Unsupported arguments: out, initial, where. See the NumPy documentation for numpy.amin. | |
doc_26992 | tf.math.softmax
tf.nn.softmax(
logits, axis=None, name=None
)
This function performs the equivalent of softmax = tf.exp(logits) / tf.reduce_sum(tf.exp(logits), axis)
Args
logits A non-empty Tensor. Must be one of the following types: half, float32, float64.
axis The dimension softmax would be per... | |
doc_26993 |
Hide the entire index, or specific keys in the index from rendering. This method has dual functionality:
if subset is None then the entire index, or specified levels, will be hidden whilst displaying all data-rows. if a subset is given then those specific rows will be hidden whilst the index itself remains visible... | |
doc_26994 | Return a casefolded copy of the string. Casefolded strings may be used for caseless matching. Casefolding is similar to lowercasing but more aggressive because it is intended to remove all case distinctions in a string. For example, the German lowercase letter 'ß' is equivalent to "ss". Since it is already lowercase, l... | |
doc_26995 |
Get parameters for this estimator. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns
paramsdict
Parameter names mapped to their values. | |
doc_26996 | sys.stdout
sys.stderr
File objects used by the interpreter for standard input, output and errors:
stdin is used for all interactive input (including calls to input());
stdout is used for the output of print() and expression statements and for the prompts of input(); The interpreter’s own prompts and its error me... | |
doc_26997 |
Call self as a function. | |
doc_26998 |
Alias for get_linestyle. | |
doc_26999 |
Tuple of bytes to step in each dimension when traversing an array. The byte offset of element (i[0], i[1], ..., i[n]) in an array a is: offset = sum(np.array(i) * a.strides)
A more detailed explanation of strides can be found in the “ndarray.rst” file in the NumPy reference guide. See also numpy.lib.stride_tricks.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.