_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_11900 | Executes an SQL statement. Values may be bound to the statement using placeholders. execute() will only execute a single SQL statement. If you try to execute more than one statement with it, it will raise a Warning. Use executescript() if you want to execute multiple SQL statements with one call. | |
doc_11901 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_11902 | A string mnemonic designating the OpenSSL submodule in which the error occurred, such as SSL, PEM or X509. The range of possible values depends on the OpenSSL version. New in version 3.3. | |
doc_11903 |
Computes a partial inverse of MaxPool1d. MaxPool1d is not fully invertible, since the non-maximal values are lost. MaxUnpool1d takes in as input the output of MaxPool1d including the indices of the maximal values and computes a partial inverse in which all non-maximal values are set to zero. Note MaxPool1d can map s... | |
doc_11904 |
The index (axis labels) of the Series. | |
doc_11905 | Touch the entire window, causing it to be completely redrawn on the next refresh() call. | |
doc_11906 | 3 The array interface (sometimes called array protocol) was created in 2005 as a means for array-like Python objects to re-use each other’s data buffers intelligently whenever possible. The homogeneous N-dimensional array interface is a default mechanism for objects to share N-dimensional array memory and information... | |
doc_11907 |
Return the Figure instance the artist belongs to. | |
doc_11908 |
Bases: matplotlib.transforms.Transform Parameters
shorthand_namestr
A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when DEBUG=True. has_inverse=True
True if this transform has a corresponding inverse transform. ... | |
doc_11909 |
Registers a backward hook on the module. This function is deprecated in favor of nn.Module.register_full_backward_hook() and the behavior of this function will change in future versions. Returns
a handle that can be used to remove the added hook by calling handle.remove() Return type
torch.utils.hooks.RemovableHa... | |
doc_11910 |
Return a view of the array with axis1 and axis2 interchanged. Refer to numpy.swapaxes for full documentation. See also numpy.swapaxes
equivalent function | |
doc_11911 |
Evaluate a 3-D Laguerre series at points (x, y, z). This function returns the values: \[p(x,y,z) = \sum_{i,j,k} c_{i,j,k} * L_i(x) * L_j(y) * L_k(z)\] The parameters x, y, and z are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after... | |
doc_11912 | Similar to the finditer() function, using the compiled pattern, but also accepts optional pos and endpos parameters that limit the search region like for search(). | |
doc_11913 |
A Laguerre series class. The Laguerre class provides the standard Python numerical methods ‘+’, ‘-’, ‘*’, ‘//’, ‘%’, ‘divmod’, ‘**’, and ‘()’ as well as the attributes and methods listed in the ABCPolyBase documentation. Parameters
coefarray_like
Laguerre coefficients in order of increasing degree, i.e, (1, 2, ... | |
doc_11914 |
Returns an array containing the same data with a new shape. Refer to numpy.reshape for full documentation. See also numpy.reshape
equivalent function Notes Unlike the free function numpy.reshape, this method on ndarray allows the elements of the shape parameter to be passed in as separate arguments. For example... | |
doc_11915 |
CFFI interface Returns
interfacenamedtuple
Named tuple containing CFFI wrapper state_address - Memory address of the state struct state - pointer to the state struct next_uint64 - function pointer to produce 64 bit integers next_uint32 - function pointer to produce 32 bit integers next_double - function pointe... | |
doc_11916 |
Given the location and size of the box, return the path of the box around it. Parameters
x0, y0, width, heightfloat
Location and size of the box.
mutation_sizefloat
A reference scale for the mutation. Returns
Path | |
doc_11917 |
Like find, but raises ValueError when the substring is not found. See also char.index | |
doc_11918 |
Least squares fit to data. Return a series instance that is the least squares fit to the data y sampled at x. The domain of the returned instance can be specified and this will often result in a superior fit with less chance of ill conditioning. Parameters
xarray_like, shape (M,)
x-coordinates of the M sample p... | |
doc_11919 |
Fit the NearestCentroid model according to the given training data. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples is the number of samples and n_features is the number of features. Note that centroid shrinking cannot be used with sparse matrices.
yar... | |
doc_11920 |
ext1 = Extension(name = 'scalar',
sources = ['scalar.f'])
ext2 = Extension(name = 'fib2',
sources = ['fib2.pyf', 'fib1.f'])
if __name__ == "__main__":
from numpy.distutils.core import setup
setup(name = 'f2py_example',
description = "F2PY Users Guide examples"... | |
doc_11921 |
Shift index by desired number of periods with an optional time freq. When freq is not passed, shift the index without realigning the data. If freq is passed (in this case, the index must be date or datetime, or it will raise a NotImplementedError), the index will be increased using the periods and the freq. freq can ... | |
doc_11922 | sklearn.compose.make_column_transformer(*transformers, remainder='drop', sparse_threshold=0.3, n_jobs=None, verbose=False) [source]
Construct a ColumnTransformer from the given transformers. This is a shorthand for the ColumnTransformer constructor; it does not require, and does not permit, naming the transformers. I... | |
doc_11923 | Resets the scheme and fontset of the Tix application to newScheme and newFontSet, respectively. This affects only those widgets created after this call. Therefore, it is best to call the resetoptions method before the creation of any widgets in a Tix application. The optional parameter newScmPrio can be given to reset ... | |
doc_11924 |
Bases: matplotlib.backend_bases.GraphicsContextBase [Deprecated] Notes Deprecated since version 3.4: get_capstyle()[source]
Return the CapStyle.
get_joinstyle()[source]
Return the JoinStyle. | |
doc_11925 |
The category codes of this categorical. Codes are an array of integers which are the positions of the actual values in the categories array. There is no setter, use the other categorical methods and the normal item setter to change values in the categorical. Returns
ndarray[int]
A non-writable view of the codes a... | |
doc_11926 |
Return a dictionary of all the properties of the artist. | |
doc_11927 | Returns the number of threads used for inter-op parallelism on CPU (e.g. in JIT interpreter) | |
doc_11928 | os.SEEK_CUR
os.SEEK_END
Parameters to the lseek() function. Their values are 0, 1, and 2, respectively. New in version 3.3: Some operating systems could support additional values, like os.SEEK_HOLE or os.SEEK_DATA. | |
doc_11929 |
Alias for set_antialiased. | |
doc_11930 | Files and subdirectories only in b. | |
doc_11931 | Snapshot of traces of memory blocks allocated by Python. The take_snapshot() function creates a snapshot instance.
compare_to(old_snapshot: Snapshot, key_type: str, cumulative: bool=False)
Compute the differences with an old snapshot. Get statistics as a sorted list of StatisticDiff instances grouped by key_type. S... | |
doc_11932 | class ast.Continue
The break and continue statements. >>> print(ast.dump(ast.parse("""\
... for a in b:
... if a > 5:
... break
... else:
... continue
...
... """), indent=4))
Module(
body=[
For(
target=Name(id='a', ctx=Store()),
iter=Name(id='b', ctx=Load()... | |
doc_11933 |
Bases: tuple Base class for containers. Containers are classes that collect semantically related Artists such as the bars of a bar plot. add_callback(func)[source]
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters
funccallable
The callback function. It m... | |
doc_11934 | tf.compat.v1.feature_column.input_layer(
features, feature_columns, weight_collections=None, trainable=True,
cols_to_vars=None, cols_to_output_tensors=None
)
Generally a single example in training data is described with FeatureColumns. At the first layer of the model, this column oriented data should be conver... | |
doc_11935 |
This criterion combines LogSoftmax and NLLLoss in one single class. It is useful when training a classification problem with C classes. If provided, the optional argument weight should be a 1D Tensor assigning weight to each of the classes. This is particularly useful when you have an unbalanced training set. The inp... | |
doc_11936 | See Migration guide for more details. tf.compat.v1.sparse.merge
tf.compat.v1.sparse_merge(
sp_ids, sp_values, vocab_size, name=None, already_sorted=False
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: No similar op available at this time. The most commo... | |
doc_11937 | random.seed(a=None, version=2)
Initialize the random number generator. If a is omitted or None, the current system time is used. If randomness sources are provided by the operating system, they are used instead of the system time (see the os.urandom() function for details on availability). If a is an int, it is used ... | |
doc_11938 |
Bases: tornado.web.RequestHandler get()[source] | |
doc_11939 |
Return an instance of a GraphicsContextBase. | |
doc_11940 | Convert to a string value for an Authorization header. New in version 2.0: Added to support passing authorization to the test client. | |
doc_11941 | Return the mapped value for code according to tableB.3 (Mapping for case-folding used with no normalization). | |
doc_11942 | ABC for classes that provide the __call__() method. | |
doc_11943 | A concrete implementation of importlib.abc.FileLoader which can import bytecode files (i.e. no source code files exist). Please note that direct use of bytecode files (and thus not source code files) inhibits your modules from being usable by all Python implementations or new versions of Python which change the bytecod... | |
doc_11944 | See Migration guide for more details. tf.compat.v1.random.stateless_categorical
tf.random.stateless_categorical(
logits, num_samples, seed, dtype=tf.dtypes.int64, name=None
)
This is a stateless version of tf.categorical: if run twice with the same seeds and shapes, it will produce the same pseudorandom numbers.... | |
doc_11945 | Given a class defining one or more rich comparison ordering methods, this class decorator supplies the rest. This simplifies the effort involved in specifying all of the possible rich comparison operations: The class must define one of __lt__(), __le__(), __gt__(), or __ge__(). In addition, the class should supply an _... | |
doc_11946 |
Calls enable or disable based on toggled value. | |
doc_11947 | Class whose instances are returned upon successful connection. Not instantiated directly by user. Changed in version 3.4: The strict parameter was removed. HTTP 0.9 style “Simple Responses” are no longer supported. | |
doc_11948 | class ast.NotEq
class ast.Lt
class ast.LtE
class ast.Gt
class ast.GtE
class ast.Is
class ast.IsNot
class ast.In
class ast.NotIn
Comparison operator tokens. | |
doc_11949 |
Approximates feature map of an RBF kernel by Monte Carlo approximation of its Fourier transform. It implements a variant of Random Kitchen Sinks.[1] Read more in the User Guide. Parameters
gammafloat, default=1.0
Parameter of RBF kernel: exp(-gamma * x^2)
n_componentsint, default=100
Number of Monte Carlo s... | |
doc_11950 | Returns a GEOSGeometry representing the points shared by this geometry and other. | |
doc_11951 |
Alias for set_linestyle. | |
doc_11952 | Return True if the OS supports xattr, False otherwise. | |
doc_11953 |
Bases: torch.distributions.distribution.Distribution Extension of the Distribution class, which applies a sequence of Transforms to a base distribution. Let f be the composition of transforms applied: X ~ BaseDistribution
Y = f(X) ~ TransformedDistribution(BaseDistribution, f)
log p(Y) = log p(X) + log |det (dX/dY)|
... | |
doc_11954 | tf.config.experimental.list_logical_devices Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.list_logical_devices, tf.compat.v1.config.list_logical_devices
tf.config.list_logical_devices(
device_type=None
)
Logical devices may correspond to physical devices or r... | |
doc_11955 | See torch.kthvalue() | |
doc_11956 | Parameters
n – an integer (or None) Delete all or first/last n of turtle’s stamps. If n is None, delete all stamps, if n > 0 delete first n stamps, else if n < 0 delete last n stamps. >>> for i in range(8):
... turtle.stamp(); turtle.fd(30)
13
14
15
16
17
18
19
20
>>> turtle.clearstamps(2)
>>> turtle.clearstamp... | |
doc_11957 |
A gated recurrent unit (GRU) cell r=σ(Wirx+bir+Whrh+bhr)z=σ(Wizx+biz+Whzh+bhz)n=tanh(Winx+bin+r∗(Whnh+bhn))h′=(1−z)∗n+z∗h\begin{array}{ll} r = \sigma(W_{ir} x + b_{ir} + W_{hr} h + b_{hr}) \\ z = \sigma(W_{iz} x + b_{iz} + W_{hz} h + b_{hz}) \\ n = \tanh(W_{in} x + b_{in} + r * (W_{hn} h + b_{hn})) \\ h' = (1 - z) ... | |
doc_11958 | See Migration guide for more details. tf.compat.v1.io.RaggedFeature.RowStarts
tf.io.RaggedFeature.RowStarts(
key
)
Attributes
key | |
doc_11959 |
Color image of the astronaut Eileen Collins. Photograph of Eileen Collins, an American astronaut. She was selected as an astronaut in 1992 and first piloted the space shuttle STS-63 in 1995. She retired in 2006 after spending a total of 38 days, 8 hours and 10 minutes in outer space. This image was downloaded from th... | |
doc_11960 | The process’s daemon flag, a Boolean value. This must be set before start() is called. The initial value is inherited from the creating process. When a process exits, it attempts to terminate all of its daemonic child processes. Note that a daemonic process is not allowed to create child processes. Otherwise a daemonic... | |
doc_11961 |
The length of the scalar in bytes. | |
doc_11962 |
Convert the input to a masked array of the given data-type. No copy is performed if the input is already an ndarray. If a is a subclass of MaskedArray, a base class MaskedArray is returned. Parameters
aarray_like
Input data, in any form that can be converted to a masked array. This includes lists, lists of tupl... | |
doc_11963 |
Alias for get_linewidth. | |
doc_11964 | tkinter.messagebox.askokcancel(title=None, message=None, **options)
tkinter.messagebox.askretrycancel(title=None, message=None, **options)
tkinter.messagebox.askyesno(title=None, message=None, **options)
tkinter.messagebox.askyesnocancel(title=None, message=None, **options) | |
doc_11965 | Leave raw mode. Return to normal “cooked” mode with line buffering. | |
doc_11966 | In-place version of sin() | |
doc_11967 | Determine if object requires a recursive representation. | |
doc_11968 |
Calculate all raw image moments up to a certain order. The following properties can be calculated from raw image moments:
Area as: M[0, 0]. Centroid as: {M[1, 0] / M[0, 0], M[0, 1] / M[0, 0]}. Note that raw moments are neither translation, scale nor rotation invariant. Parameters
coords(N, D) double or uint... | |
doc_11969 | skimage.transform.downscale_local_mean(…) Down-sample N-dimensional image by local averaging.
skimage.transform.estimate_transform(ttype, …) Estimate 2D geometric transformation parameters.
skimage.transform.frt2(a) Compute the 2-dimensional finite radon transform (FRT) for an n x n integer array.
skimage.transfo... | |
doc_11970 |
Attributes
original_func_names repeated string original_func_names
original_node_names repeated string original_node_names | |
doc_11971 | numpy.uint16
numpy.uint32
numpy.uint64
Alias for the unsigned integer types (one of numpy.ubyte, numpy.ushort, numpy.uintc, numpy.uint and numpy.ulonglong) with the specified number of bits. Compatible with the C99 uint8_t, uint16_t, uint32_t, and uint64_t, respectively. | |
doc_11972 | tf.experimental.numpy.subtract(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.subtract. | |
doc_11973 | Translates singular and plural and returns the appropriate string based on number and the context. | |
doc_11974 | Subclasses of this type describe complex numbers and include the operations that work on the built-in complex type. These are: conversions to complex and bool, real, imag, +, -, *, /, abs(), conjugate(), ==, and !=. All except - and != are abstract.
real
Abstract. Retrieves the real component of this number.
im... | |
doc_11975 | Query or set the default value of the specified option(s) in style. Each key in kw is an option and each value is a string identifying the value for that option. For example, to change every default button to be a flat button with some padding and a different background color: from tkinter import ttk
import tkinter
ro... | |
doc_11976 |
Set the sketch parameters. Parameters
scalefloat, optional
The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided.
lengthfloat, optional
The length of the wiggle along the line, in pixels (default 128.0)
randomnessfloat... | |
doc_11977 | Whether the OpenSSL library has built-in support for the TLS 1.2 protocol. New in version 3.7. | |
doc_11978 | See Migration guide for more details. tf.compat.v1.raw_ops.ReaderNumRecordsProduced
tf.raw_ops.ReaderNumRecordsProduced(
reader_handle, name=None
)
This is the same as the number of ReaderRead executions that have succeeded.
Args
reader_handle A Tensor of type mutable string. Handle to a Reader.
nam... | |
doc_11979 | The latest representable datetime, datetime(MAXYEAR, 12, 31, 23, 59,
59, 999999, tzinfo=None). | |
doc_11980 | Returns a namedtuple (values, indices) where values is the k th smallest element of each row of the input tensor in the given dimension dim. And indices is the index location of each element found. If dim is not given, the last dimension of the input is chosen. If keepdim is True, both the values and indices tensors ar... | |
doc_11981 | Controls the migration framework’s reaction if this ManyToManyField is pointing at a swappable model. If it is True - the default - then if the ManyToManyField is pointing at a model which matches the current value of settings.AUTH_USER_MODEL (or another swappable model setting) the relationship will be stored in the m... | |
doc_11982 |
alias of numpy.double | |
doc_11983 | Set program scheduling priority. The value which is one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER, and who is interpreted relative to which (a process identifier for PRIO_PROCESS, process group identifier for PRIO_PGRP, and a user ID for PRIO_USER). A zero value for who denotes (respectively) the calling process, the pr... | |
doc_11984 |
Set the offsets for the collection. Parameters
offsets(N, 2) or (2,) array-like | |
doc_11985 |
Turn the x- and y-axis on. This affects the axis lines, ticks, ticklabels, grid and axis labels. | |
doc_11986 | sklearn.datasets.make_low_rank_matrix(n_samples=100, n_features=100, *, effective_rank=10, tail_strength=0.5, random_state=None) [source]
Generate a mostly low rank matrix with bell-shaped singular values. Most of the variance can be explained by a bell-shaped curve of width effective_rank: the low rank part of the s... | |
doc_11987 | An immutable dict. Changelog New in version 0.5.
copy()
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_11988 | Return the list of turtles on the screen. >>> for turtle in screen.turtles():
... turtle.color("red") | |
doc_11989 |
Return the extent of the box as (width, height, x, y). This is the extent of the child plus the padding. | |
doc_11990 |
Get Multiplication of dataframe and other, element-wise (binary operator rmul). Equivalent to other * dataframe, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, mul. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //,... | |
doc_11991 |
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters
valuesarray
The input v... | |
doc_11992 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedMatMulWithBiasAndRelu
tf.raw_ops.QuantizedMatMulWithBiasAndRelu(
a, b, bias, min_a, max_a, min_b, max_b, Toutput=tf.dtypes.qint32,
transpose_a=False, transpose_b=False, input_quant_mode='MIN_FIRST',
name=None
)
add and relu fusion. The i... | |
doc_11993 |
Remove trailing characters. Strip whitespaces (including newlines) or a set of specified characters from each string in the Series/Index from right side. Equivalent to str.rstrip(). Parameters
to_strip:str or None, default None
Specifying the set of characters to be removed. All combinations of this set of char... | |
doc_11994 | '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_11995 | A generic version of collections.abc.KeysView. Deprecated since version 3.9: collections.abc.KeysView now supports []. See PEP 585 and Generic Alias Type. | |
doc_11996 | Return message digest (unique id) list. If which is specified, result contains the unique id for that message in the form 'response mesgnum uid, otherwise result is list (response, ['mesgnum uid', ...], octets). | |
doc_11997 | Return True if name is a tar archive file, that the tarfile module can read. name may be a str, file, or file-like object. Changed in version 3.9: Support for file and file-like objects. | |
doc_11998 |
Extract capture groups in the regex pat as columns in DataFrame. For each subject string in the Series, extract groups from all matches of regular expression pat. When each subject string in the Series has exactly one match, extractall(pat).xs(0, level=’match’) is the same as extract(pat). Parameters
pat:str
Re... | |
doc_11999 | if self.request.version == 'v1':
return AccountSerializerVersion1
return AccountSerializer
Reversing URLs for versioned APIs The reverse function included by REST framework ties in with the versioning scheme. You need to make sure to include the current request as a keyword argument, like so. from rest... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.