_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_18900 | Shut down the underlying FreeType library. quit() This function closes the freetype module. After calling this function, you should not invoke any class, method or function related to the freetype module as they are likely to fail or might give unpredictable results. It is safe to call this function even if the modul... | |
doc_18901 |
Bases: object Baseclass for all scalar to RGBA mappings. Typically, Colormap instances are used to convert data values (floats) from the interval [0, 1] to the RGBA color that the respective Colormap represents. For scaling of data into the [0, 1] interval see matplotlib.colors.Normalize. Subclasses of matplotlib.cm.... | |
doc_18902 | repaints the given area repaint_rect(screen_rect) -> None screen_rect is in screen coordinates. | |
doc_18903 | Moves all model parameters and buffers to the CPU. Returns
self Return type
Module | |
doc_18904 |
Determine residuals of data to model. For each point, the shortest (orthogonal) distance to the line is returned. It is obtained by projecting the data onto the line. Parameters
data(N, dim) array
N points in a space of dimension dim.
params(2, ) array, optional
Optional custom parameter set in the form (or... | |
doc_18905 | If zero or more characters at the beginning of string match the regular expression pattern, return a corresponding match object. Return None if the string does not match the pattern; note that this is different from a zero-length match. Note that even in MULTILINE mode, re.match() will only match at the beginning of th... | |
doc_18906 |
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_18907 | See Migration guide for more details. tf.compat.v1.keras.layers.ConvLSTM2D
tf.keras.layers.ConvLSTM2D(
filters, kernel_size, strides=(1, 1), padding='valid',
data_format=None, dilation_rate=(1, 1), activation='tanh',
recurrent_activation='hard_sigmoid', use_bias=True,
kernel_initializer='glorot_unifor... | |
doc_18908 |
Replace the current child of this transform with another one. The new child must have the same number of input and output dimensions as the current child. | |
doc_18909 | Return the process group id of the process with process id pid. If pid is 0, the process group id of the current process is returned. Availability: Unix. | |
doc_18910 |
Return scientific notation, plus offset. | |
doc_18911 | Specify the number of channels in the audio file. | |
doc_18912 | Casts this storage to int type | |
doc_18913 | tf.assert_less
tf.debugging.assert_less(
x, y, message=None, summarize=None, name=None
)
This Op checks that x[i] < y[i] holds for every pair of (possibly broadcast) elements of x and y. If both x and y are empty, this is trivially satisfied. If x is not less than y element-wise, message, as well as the first su... | |
doc_18914 |
Returns log-marginal likelihood of theta for training data. In the case of multi-class classification, the mean log-marginal likelihood of the one-versus-rest classifiers are returned. Parameters
thetaarray-like of shape (n_kernel_params,), default=None
Kernel hyperparameters for which the log-marginal likeliho... | |
doc_18915 |
Calculate the rolling median. Parameters
engine:str, default None
'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba.
None : Defaults to 'cython' or globally setting compute.use_numba New in version 1.3.0.
engine_kwargs:dict,... | |
doc_18916 | tf.math.special.bessel_i0 Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.bessel_i0, tf.compat.v1.math.special.bessel_i0
tf.math.bessel_i0(
x, name=None
)
Modified Bessel function of order 0. It is preferable to use the numerically stabler function i0e(x) instead.
tf.math.sp... | |
doc_18917 | Parse a set-like header and return a HeaderSet object: >>> hs = parse_set_header('token, "quoted value"')
The return value is an object that treats the items case-insensitively and keeps the order of the items: >>> 'TOKEN' in hs
True
>>> hs.index('quoted value')
1
>>> hs
HeaderSet(['token', 'quoted value'])
To create... | |
doc_18918 | from myapp.serializers import UserSerializer
from rest_framework import generics
from rest_framework.permissions import IsAdminUser
class UserList(generics.ListCreateAPIView):
queryset = User.objects.all()
serializer_class = UserSerializer
permission_classes = [IsAdminUser]
For more complex cases you migh... | |
doc_18919 |
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_18920 | See Migration guide for more details. tf.compat.v1.app.flags.ListParser
tf.compat.v1.flags.ListParser()
Methods flag_type
flag_type()
See base class. parse
parse(
argument
)
Parses argument as comma-separated list of strings.
Class Variables
syntactic_help '' | |
doc_18921 | Controls the type of Content Transfer Encodings that may be or are required to be used. The possible values are:
7bit all data must be “7 bit clean” (ASCII-only). This means that where necessary data will be encoded using either quoted-printable or base64 encoding.
8bit data is not constrained to be 7 bit clean. Da... | |
doc_18922 | RGBAxes(*args[, pad]) 4-panel imshow (RGB, R, G, B). Functions
make_rgb_axes(ax[, pad, axes_class])
Parameters | |
doc_18923 | turtle.rt(angle)
Parameters
angle – a number (integer or float) Turn turtle right by angle units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientation depends on the turtle mode, see mode(). >>> turtle.heading()
22.0
>>> turtle.right(45)
>>> turtle.heading()
... | |
doc_18924 |
Fit linear model with Passive Aggressive algorithm. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training data
ynumpy array of shape [n_samples]
Target values
coef_initarray, shape = [n_classes,n_features]
The initial coefficients to warm-start the optimization.
intercept_i... | |
doc_18925 | Return the welcome message sent by the server in reply to the initial connection. (This message sometimes contains disclaimers or help information that may be relevant to the user.) | |
doc_18926 |
Abstract base class for the axis ticks, grid lines and labels. Ticks mark a position on an Axis. They contain two lines as markers and two labels; one each for the bottom and top positions (in case of an XAxis) or for the left and right positions (in case of a YAxis). Attributes
tick1lineLine2D
The left/bottom ... | |
doc_18927 | A property() that is only evaluated once. Subsequent access returns the cached value. Setting the property sets the cached value. Deleting the property clears the cached value, accessing it again will evaluate it again. class Example:
@cached_property
def value(self):
# calculate something important her... | |
doc_18928 | The line corresponding to pos (may be None). | |
doc_18929 |
Return the line data as an (xdata, ydata) pair. If orig is True, return the original data. | |
doc_18930 |
Return the xaxis' grid lines as a list of Line2Ds. | |
doc_18931 | See torch.erf() | |
doc_18932 | The class used to represent an email address. The general form of an address is: [display_name] <username@domain>
or: username@domain
where each part must conform to specific syntax rules spelled out in RFC 5322. As a convenience addr_spec can be specified instead of username and domain, in which case username and do... | |
doc_18933 |
Return self==value. | |
doc_18934 | class sklearn.dummy.DummyRegressor(*, strategy='mean', constant=None, quantile=None) [source]
DummyRegressor is a regressor that makes predictions using simple rules. This regressor is useful as a simple baseline to compare with other (real) regressors. Do not use it for real problems. Read more in the User Guide. N... | |
doc_18935 |
Return the left and bottom coords of the rectangle as a tuple. | |
doc_18936 | See Migration guide for more details. tf.compat.v1.raw_ops.IFFT2D
tf.raw_ops.IFFT2D(
input, name=None
)
Computes the inverse 2-dimensional discrete Fourier transform over the inner-most 2 dimensions of input.
Args
input A Tensor. Must be one of the following types: complex64, complex128. A complex tenso... | |
doc_18937 | The line number in the file where the definition starts. | |
doc_18938 | If url contains a fragment identifier, return a modified version of url with no fragment identifier, and the fragment identifier as a separate string. If there is no fragment identifier in url, return url unmodified and an empty string. The return value is a named tuple, its items can be accessed by index or as named a... | |
doc_18939 | Returns first index position of value. Raises ValueError if value is not present. | |
doc_18940 | binascii.hexlify(data[, sep[, bytes_per_sep=1]])
Return the hexadecimal representation of the binary data. Every byte of data is converted into the corresponding 2-digit hex representation. The returned bytes object is therefore twice as long as the length of data. Similar functionality (but returning a text string) ... | |
doc_18941 |
Ratio of non-sparse points to total (dense) data points. | |
doc_18942 | codecs.BOM_BE
codecs.BOM_LE
codecs.BOM_UTF8
codecs.BOM_UTF16
codecs.BOM_UTF16_BE
codecs.BOM_UTF16_LE
codecs.BOM_UTF32
codecs.BOM_UTF32_BE
codecs.BOM_UTF32_LE
These constants define various byte sequences, being Unicode byte order marks (BOMs) for several encodings. They are used in UTF-16 and UTF-32 d... | |
doc_18943 | Returns a ModelForm class for use in the Formset on the changelist page. To use a custom form, for example: from django import forms
class MyForm(forms.ModelForm):
pass
class MyModelAdmin(admin.ModelAdmin):
def get_changelist_form(self, request, **kwargs):
return MyForm
Note If you define the Meta.m... | |
doc_18944 |
start(interval=None)
Begin autoincrement mode: schedules a recurring timer event that calls Progressbar.step() every interval milliseconds. If omitted, interval defaults to 50 milliseconds.
step(amount=None)
Increments the progress bar’s value by amount. amount defaults to 1.0 if omitted.
stop()
Stop au... | |
doc_18945 | Fills self tensor with zeros. | |
doc_18946 | See Migration guide for more details. tf.compat.v1.raw_ops.ImportEvent
tf.raw_ops.ImportEvent(
writer, event, name=None
)
Args
writer A Tensor of type resource.
event A Tensor of type string.
name A name for the operation (optional).
Returns The created Operation. | |
doc_18947 |
Get the legal arguments for the setter associated with attr. This is done by querying the docstring of the setter for a line that begins with "ACCEPTS:" or ".. ACCEPTS:", and then by looking for a numpydoc-style documentation for the setter's first argument. | |
doc_18948 |
Machine limits for floating point types. Parameters
dtypefloat, dtype, or instance
Kind of floating point data-type about which to get information. See also MachAr
The implementation of the tests that produce this information. iinfo
The equivalent for integer data types. spacing
The distance between ... | |
doc_18949 | See Migration guide for more details. tf.compat.v1.raw_ops.TFRecordReaderV2
tf.raw_ops.TFRecordReaderV2(
container='', shared_name='', compression_type='',
name=None
)
Args
container An optional string. Defaults to "". If non-empty, this reader is placed in the given container. Otherwise, a default ... | |
doc_18950 |
Incremental fit on a batch of samples. This method is expected to be called several times consecutively on different chunks of a dataset so as to implement out-of-core or online learning. This is especially useful when the whole dataset is too big to fit in memory at once. This method has some performance and numeric... | |
doc_18951 |
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_18952 | A parameter entity contained incomplete markup. | |
doc_18953 | Import a module. The name argument specifies what module to import in absolute or relative terms (e.g. either pkg.mod or ..mod). If the name is specified in relative terms, then the package argument must be set to the name of the package which is to act as the anchor for resolving the package name (e.g. import_module('... | |
doc_18954 | Draws a mask onto another draw(othermask, offset) -> None Performs a bitwise OR, drawing othermask onto this mask.
Parameters:
othermask (Mask) -- the mask to draw onto this mask
offset (tuple(int, int) or list[int, int]) -- the offset of othermask from this mask, for more details refer to the Mask offset no... | |
doc_18955 |
Reduce X to the selected features. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
X_rarray of shape [n_samples, n_selected_features]
The input samples with only the selected features. | |
doc_18956 | The “return” annotation for the callable. If the callable has no “return” annotation, this attribute is set to Signature.empty. | |
doc_18957 | See Migration guide for more details. tf.compat.v1.lookup.experimental.DatasetInitializer
tf.lookup.experimental.DatasetInitializer(
dataset
)
Sample usage:
keys = tf.data.Dataset.range(100)
values = tf.data.Dataset.range(100).map(
lambda x: string_ops.as_string(x * 2))
ds = tf.data.Dataset.zip((keys, value... | |
doc_18958 | See Migration guide for more details. tf.compat.v1.keras.utils.serialize_keras_object
tf.keras.utils.serialize_keras_object(
instance
) | |
doc_18959 | The base class for implementing streaming protocols (TCP, Unix sockets, etc). | |
doc_18960 | Don’t read more than this many bytes from the incoming request data. If not set and the request does not specify a CONTENT_LENGTH, no data will be read for security. Default: None | |
doc_18961 | Get the event loop for the current context. Return an event loop object implementing the AbstractEventLoop interface. This method should never return None. Changed in version 3.6. | |
doc_18962 |
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_18963 |
Fit Naive Bayes classifier according to X, y Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of features.
yarray-like of shape (n_samples,)
Target values.
sample_weightarray-like of shape (n_sa... | |
doc_18964 | Returns a dictionary of variables to put in the template context for every page in the admin site. Includes the following variables and values by default:
site_header: AdminSite.site_header
site_title: AdminSite.site_title
site_url: AdminSite.site_url
has_permission: AdminSite.has_permission()
available_apps:... | |
doc_18965 | Returns a FormSet class for the given form class. See formsets for example usage. Changed in Django 3.2: The absolute_max and can_delete_extra arguments were added. Changed in Django 4.0: The renderer argument was added. | |
doc_18966 |
Call predict on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict. Parameters
Xindexable, length n_samples
Must fulfill the input assumptions of the underlying estimator. | |
doc_18967 |
Convert a given mesh into a sequence of Path objects. This function is primarily of use to implementers of backends that do not directly support meshes. | |
doc_18968 | Receive notification of the end of a document. The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input. | |
doc_18969 | tf.compat.v1.logging.debug(
msg, *args, **kwargs
) | |
doc_18970 | Add support for when a program which uses multiprocessing has been frozen to produce a Windows executable. (Has been tested with py2exe, PyInstaller and cx_Freeze.) One needs to call this function straight after the if __name__ ==
'__main__' line of the main module. For example: from multiprocessing import Process, fre... | |
doc_18971 |
Returns the standard deviation of the array elements along given axis. Refer to numpy.std for full documentation. See also numpy.std
equivalent function | |
doc_18972 | Return a string representation of the path with forward slashes (/): >>> p = PureWindowsPath('c:\\windows')
>>> str(p)
'c:\\windows'
>>> p.as_posix()
'c:/windows' | |
doc_18973 | Register a function to be run at the end of each request, regardless of whether there was an exception or not. These functions are executed when the request context is popped, even if not an actual request was performed. Example: ctx = app.test_request_context()
ctx.push()
...
ctx.pop()
When ctx.pop() is executed in t... | |
doc_18974 | Create an epoll object from a given file descriptor. | |
doc_18975 |
Compute the convex hull image of a binary image. The convex hull is the set of pixels included in the smallest convex polygon that surround all white pixels in the input image. Parameters
imagearray
Binary input image. This array is cast to bool before processing.
offset_coordinatesbool, optional
If True, a... | |
doc_18976 | '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_18977 | The Date general-header field represents the date and time at which the message was originated, having the same semantics as orig-date in RFC 822. Changed in version 2.0: The datetime object is timezone-aware. | |
doc_18978 |
Return int position of the smallest value in the Series. If the minimum is achieved in multiple locations, the first row position is returned. Parameters
axis:{None}
Dummy argument for consistency with Series.
skipna:bool, default True
Exclude NA/null values when showing the result. *args, **kwargs
Additi... | |
doc_18979 |
Restore the rcParams from Matplotlib's internal default style. Style-blacklisted rcParams (defined in matplotlib.style.core.STYLE_BLACKLIST) are not updated. See also matplotlib.rc_file_defaults
Restore the rcParams from the rc file originally loaded by Matplotlib. matplotlib.style.use
Use a specific style file.... | |
doc_18980 | Returns a string identifying the compiler used for compiling Python. | |
doc_18981 |
A multi-level, or hierarchical, index object for pandas objects. Parameters
levels:sequence of arrays
The unique labels for each level.
codes:sequence of arrays
Integers for each level designating which label at each location.
sortorder:optional int
Level of sortedness (must be lexicographically sorted ... | |
doc_18982 | Stop only at breakpoints or when finished. If there are no breakpoints, set the system trace function to None. | |
doc_18983 | See Migration guide for more details. tf.compat.v1.raw_ops.ConcatV2
tf.raw_ops.ConcatV2(
values, axis, name=None
)
Args
values A list of at least 2 Tensor objects with the same type. List of N Tensors to concatenate. Their ranks and types must match, and their sizes must match in all dimensions except c... | |
doc_18984 |
Return a backend-specific tuple to return to the backend after all processing is done. | |
doc_18985 | See Migration guide for more details. tf.compat.v1.identity
tf.identity(
input, name=None
)
The return value is not the same Tensor as the original, but contains the same values. This operation is fast when used on the same device. For example:
a = tf.constant([0.78])
a_identity = tf.identity(a)
a.numpy()
array... | |
doc_18986 |
True if this transform has a corresponding inverse transform. | |
doc_18987 | Returns lang_code if it’s in the LANGUAGES setting, possibly selecting a more generic variant. For example, 'es' is returned if lang_code is 'es-ar' and 'es' is in LANGUAGES but 'es-ar' isn’t. If strict is False (the default), a country-specific variant may be returned when neither the language code nor its generic var... | |
doc_18988 | Return non-zero if the mode is from a regular file. | |
doc_18989 |
Write the header for an array using the 1.0 format. Parameters
fpfilelike object
ddict
This has the appropriate entries for writing its string representation to the header of the file. | |
doc_18990 |
The result of a Timer measurement. This class stores one or more measurements of a given statement. It is serializable and provides several convenience methods (including a detailed __repr__) for downstream consumers.
static merge(measurements) [source]
Convenience method for merging replicates. Merge will extrap... | |
doc_18991 | Generate a UUID based on the MD5 hash of a namespace identifier (which is a UUID) and a name (which is a string). | |
doc_18992 |
Return the visibility. | |
doc_18993 |
Draw a box and whisker plot. The box extends from the first quartile (Q1) to the third quartile (Q3) of the data, with a line at the median. The whiskers extend from the box by 1.5x the inter-quartile range (IQR). Flier points are those past the end of the whiskers. See https://en.wikipedia.org/wiki/Box_plot for refe... | |
doc_18994 | The Date general-header field represents the date and time at which the message was originated, having the same semantics as orig-date in RFC 822. Changed in version 2.0: The datetime object is timezone-aware. | |
doc_18995 | Denominator of the Fraction in lowest term. | |
doc_18996 |
Return the current object that defines floating-point error handling. The error object contains all information that defines the error handling behavior in NumPy. geterrobj is used internally by the other functions that get and set error handling behavior (geterr, seterr, geterrcall, seterrcall). Returns
errobjli... | |
doc_18997 | A list containing TestCase instances that were marked as expected failures, but succeeded. | |
doc_18998 | tf.acos Compat aliases for migration See Migration guide for more details. tf.compat.v1.acos, tf.compat.v1.math.acos
tf.math.acos(
x, name=None
)
Provided an input tensor, the tf.math.acos operation returns the inverse cosine of each element of the tensor. If y = tf.math.cos(x) then, x = tf.math.acos(y). Input r... | |
doc_18999 | Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string, then the string is looked up as the name of a module, function, class, method, keyword, or documentation topic, and a hel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.