_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_400 | Format a pretty argument spec from the values returned by getfullargspec(). The first seven arguments are (args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations). The other six arguments are functions that are called to turn argument names, * argument name, ** argument name, default values, return ann... | |
doc_401 | Parameters
filename – a string, used as filename Create and write docstring-dictionary to a Python script with the given filename. This function has to be called explicitly (it is not used by the turtle graphics classes). The docstring dictionary will be written to the Python script filename.py. It is intended to s... | |
doc_402 | Renders the formset with the template_name_table template. | |
doc_403 | A datetime designating when the account was created. Is set to the current date/time by default when the account is created. | |
doc_404 |
Bases: torch.distributions.gamma.Gamma Creates a Chi2 distribution parameterized by shape parameter df. This is exactly equivalent to Gamma(alpha=0.5*df, beta=0.5) Example: >>> m = Chi2(torch.tensor([1.0]))
>>> m.sample() # Chi2 distributed with shape df=1
tensor([ 0.1046])
Parameters
df (float or Tensor) – shape... | |
doc_405 | A variant of the map() method which returns a AsyncResult object. If callback is specified then it should be a callable which accepts a single argument. When the result becomes ready callback is applied to it, that is unless the call failed, in which case the error_callback is applied instead. If error_callback is spec... | |
doc_406 | This class is designed to sit between an XMLReader and the client application’s event handlers. By default, it does nothing but pass requests up to the reader and events on to the handlers unmodified, but subclasses can override specific methods to modify the event stream or the configuration requests as they pass thro... | |
doc_407 | class sklearn.feature_extraction.FeatureHasher(n_features=1048576, *, input_type='dict', dtype=<class 'numpy.float64'>, alternate_sign=True) [source]
Implements feature hashing, aka the hashing trick. This class turns sequences of symbolic feature names (strings) into scipy.sparse matrices, using a hash function to c... | |
doc_408 | acosh() -> Tensor See torch.arccosh() | |
doc_409 |
Returns whether the kernel is stationary. | |
doc_410 | Return a ctypes object allocated from shared memory. By default the return value is actually a synchronized wrapper for the object. The object itself can be accessed via the value attribute of a Value. typecode_or_type determines the type of the returned object: it is either a ctypes type or a one character typecode of... | |
doc_411 | bytearray.startswith(prefix[, start[, end]])
Return True if the binary data starts with the specified prefix, otherwise return False. prefix can also be a tuple of prefixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position. The prefix(es) to search f... | |
doc_412 | Whether this is a multilabel classifier | |
doc_413 | Raised when a payload is added to a Message object using add_payload(), but the payload is already a scalar and the message’s Content-Type main type is not either multipart or missing. MultipartConversionError multiply inherits from MessageError and the built-in TypeError. Since Message.add_payload() is deprecated, thi... | |
doc_414 |
Fit linear model with coordinate descent. Fit is on grid of alphas and best alpha estimated by cross-validation. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training data. Pass directly as Fortran-contiguous data to avoid unnecessary memory duplication. If y is mono-output, X can be... | |
doc_415 | See Migration guide for more details. tf.compat.v1.random.categorical
tf.random.categorical(
logits, num_samples, dtype=None, seed=None, name=None
)
Example: # samples has shape [1, 5], where each value is either 0 or 1 with equal
# probability.
samples = tf.random.categorical(tf.math.log([[0.5, 0.5]]), 5)
... | |
doc_416 | This method is called whenever an exception occurs that should be handled. A special case is HTTPException which is forwarded to the handle_http_exception() method. This function will either return a response value or reraise the exception with the same traceback. Changelog Changed in version 1.0: Key errors raised fr... | |
doc_417 |
Scalar method identical to the corresponding array attribute. Please see ndarray.setfield. | |
doc_418 |
Set padding of Z data limits prior to autoscaling. m times the data interval will be added to each end of that interval before it is used in autoscaling. accepts: float in range 0 to 1 | |
doc_419 | tf.keras.layers.Input Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.Input, tf.compat.v1.keras.layers.Input
tf.keras.Input(
shape=None, batch_size=None, name=None, dtype=None, sparse=False, tensor=None,
ragged=False, **kwargs
)
A Keras tensor is a TensorFlow symbolic te... | |
doc_420 | '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_421 |
Backward fill the new missing values in the resampled data. In statistics, imputation is the process of replacing missing data with substituted values [1]. When resampling data, missing values may appear (e.g., when the resampling frequency is higher than the original frequency). The backward fill will replace NaN va... | |
doc_422 | See Migration guide for more details. tf.compat.v1.image.convert_image_dtype
tf.image.convert_image_dtype(
image, dtype, saturate=False, name=None
)
Images that are represented using floating point values are expected to have values in the range [0,1). Image data stored in integer data types are expected to have... | |
doc_423 | tf.compat.v1.nn.depthwise_conv2d_native(
input, filter, strides, padding, data_format='NHWC', dilations=[1, 1,
1, 1], name=None
)
Given an input tensor of shape [batch, in_height, in_width, in_channels] and a filter / kernel tensor of shape [filter_height, filter_width, in_channels, channel_multiplier], contai... | |
doc_424 |
Generate descriptive statistics. Descriptive statistics include those that summarize the central tendency, dispersion and shape of a dataset’s distribution, excluding NaN values. Analyzes both numeric and object series, as well as DataFrame column sets of mixed data types. The output will vary depending on what is pr... | |
doc_425 |
Close the file. | |
doc_426 | Compare the files in the two directories dir1 and dir2 whose names are given by common. Returns three lists of file names: match, mismatch, errors. match contains the list of files that match, mismatch contains the names of those that don’t, and errors lists the names of files which could not be compared. Files are lis... | |
doc_427 | See Migration guide for more details. tf.compat.v1.raw_ops.Dilation2DBackpropInput
tf.raw_ops.Dilation2DBackpropInput(
input, filter, out_backprop, strides, rates, padding, name=None
)
Args
input A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, int64, bfloat16, ... | |
doc_428 | logical_invert() is a logical operation. The result is the digit-wise inversion of the operand. | |
doc_429 |
Create a new file editing window. Open…
Open an existing file with an Open dialog. Recent Files
Open a list of recent files. Click one to open it. Open Module…
Open an existing module (searches sys.path). Class Browser
Show functions, classes, and methods in the current Editor file in a tree structure. In th... | |
doc_430 | See Migration guide for more details. tf.compat.v1.raw_ops.BiasAddV1
tf.raw_ops.BiasAddV1(
value, bias, name=None
)
This is a deprecated version of BiasAdd and will be soon removed. This is a special case of tf.add where bias is restricted to be 1-D. Broadcasting is supported, so value may have any number of dim... | |
doc_431 |
Return whether derived is out-of-date relative to original or any of the RST files included in it using the RST include directive (includes). derived and original are full paths, and includes is optionally a list of full paths which may have been included in the original. | |
doc_432 | This class derives from BaseCookie and overrides value_decode() and value_encode(). SimpleCookie supports strings as cookie values. When setting the value, SimpleCookie calls the builtin str() to convert the value to a string. Values received from HTTP are kept as strings. | |
doc_433 | Enter post-mortem debugging of the traceback found in sys.last_traceback. | |
doc_434 |
Swap levels i and j in a MultiIndex. Default is to swap the two innermost levels of the index. Parameters
i, j:int or str
Levels of the indices to be swapped. Can pass level name as string.
copy:bool, default True
Whether to copy underlying data. Returns
Series
Series with levels swapped in MultiIndex... | |
doc_435 | See Migration guide for more details. tf.compat.v1.raw_ops.ParallelInterleaveDatasetV2
tf.raw_ops.ParallelInterleaveDatasetV2(
input_dataset, other_arguments, cycle_length, block_length, num_parallel_calls,
f, output_types, output_shapes, sloppy=False, name=None
)
The resulting dataset is similar to the Inte... | |
doc_436 |
See torch.lu() | |
doc_437 | See Migration guide for more details. tf.compat.v1.erfc, tf.compat.v1.math.erfc
tf.math.erfc(
x, name=None
)
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64.
name A name for the operation (optional).
Returns A Tensor. Has the same type as x. | |
doc_438 |
Bases: matplotlib.backends.backend_webagg_core.NavigationToolbar2WebAgg toolitems=[('Home', 'Reset original view', 'fa fa-home icon-home', 'home'), ('Back', 'Back to previous view', 'fa fa-arrow-left icon-arrow-left', 'back'), ('Forward', 'Forward to next view', 'fa fa-arrow-right icon-arrow-right', 'forward'), (No... | |
doc_439 | find the parent of a subsurface get_parent() -> Surface Returns the parent Surface of a subsurface. If this is not a subsurface then None will be returned. | |
doc_440 |
Apply clustering to a projection of the normalized Laplacian. In practice Spectral Clustering is very useful when the structure of the individual clusters is highly non-convex or more generally when a measure of the center and spread of the cluster is not a suitable description of the complete cluster. For instance, ... | |
doc_441 | See Migration guide for more details. tf.compat.v1.keras.backend.get_uid
tf.keras.backend.get_uid(
prefix=''
)
Arguments
prefix String prefix to index.
Returns Unique integer ID.
Example:
get_uid('dense')
1
get_uid('dense')
2 | |
doc_442 |
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_443 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_444 | class sklearn.neighbors.BallTree(X, leaf_size=40, metric='minkowski', **kwargs)
BallTree for fast generalized N-point problems Read more in the User Guide. Parameters
Xarray-like of shape (n_samples, n_features)
n_samples is the number of points in the data set, and n_features is the dimension of the parameter ... | |
doc_445 | See Migration guide for more details. tf.compat.v1.raw_ops.AvgPoolGrad
tf.raw_ops.AvgPoolGrad(
orig_input_shape, grad, ksize, strides, padding, data_format='NHWC',
name=None
)
Args
orig_input_shape A Tensor of type int32. 1-D. Shape of the original input to avg_pool.
grad A Tensor. Must be one... | |
doc_446 | An optional dict of months to use in the “months” select box. The keys of the dict correspond to the month number (1-indexed) and the values are the displayed months: MONTHS = {
1:_('jan'), 2:_('feb'), 3:_('mar'), 4:_('apr'),
5:_('may'), 6:_('jun'), 7:_('jul'), 8:_('aug'),
9:_('sep'), 10:_('oct'), 11:_('nov... | |
doc_447 |
Rearranges the elements in the array in such a way that the value of the element in kth position is in the position it would be in a sorted array. All elements smaller than the kth element are moved before this element and all equal or greater are moved behind it. The ordering of the elements in the two partitions is... | |
doc_448 | When the database has been opened in fast mode, this method forces any unwritten data to be written to the disk. | |
doc_449 | The type of parameterized generics such as list[int]. t_origin should be a non-parameterized generic class, such as list, tuple or dict. t_args should be a tuple (possibly of length 1) of types which parameterize t_origin: >>> from types import GenericAlias
>>> list[int] == GenericAlias(list, (int,))
True
>>> dict[str... | |
doc_450 | Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError). For example, to support arbitrary iterators, you could implement default() like this: def default(self, o):
try:
iterable = iter(o)
except TypeError:
pass
... | |
doc_451 | Casts this storage to bfloat16 type | |
doc_452 |
Return the Unicode normal form for the strings in the Series/Index. For more information on the forms, see the unicodedata.normalize(). Parameters
form:{‘NFC’, ‘NFKC’, ‘NFD’, ‘NFKD’}
Unicode form. Returns
normalized:Series/Index of objects | |
doc_453 |
Create a 3D stem plot. A stem plot draws lines perpendicular to a baseline, and places markers at the heads. By default, the baseline is defined by x and y, and stems are drawn vertically from bottom to z. Parameters
x, y, zarray-like
The positions of the heads of the stems. The stems are drawn along the orient... | |
doc_454 | globally enables swizzling for vectors. enable_swizzling() -> None DEPRECATED: Not needed anymore. Will be removed in a later version. Enables swizzling for all vectors until disable_swizzling() is called. By default swizzling is disabled. Lets you get or set multiple coordinates as one attribute, eg vec.xyz = 1, 2, ... | |
doc_455 | 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_456 | Return True iff the actual output from an example (got) matches the expected output (want). These strings are always considered to match if they are identical; but depending on what option flags the test runner is using, several non-exact match types are also possible. See section Option Flags for more information abou... | |
doc_457 |
Generates a flat, diamond-shaped structuring element. A pixel is part of the neighborhood (i.e. labeled 1) if the city block/Manhattan distance between it and the center of the neighborhood is no greater than radius. Parameters
radiusint
The radius of the diamond-shaped structuring element. Returns
selemn... | |
doc_458 | Convert binary data to a line of ASCII characters in base64 coding. The return value is the converted line, including a newline char if newline is true. The output of this function conforms to RFC 3548. Changed in version 3.6: Added the newline parameter. | |
doc_459 | An Operation subclass which installs a PostgreSQL extension. For common extensions, use one of the more specific subclasses below.
name
This is a required argument. The name of the extension to be installed. | |
doc_460 |
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, default: 128
The length of the wiggle along the line, in pixels.
randomnessfloat, default: ... | |
doc_461 | tf.experimental.numpy.tensordot(
a, b, axes=2
)
See the NumPy documentation for numpy.tensordot. | |
doc_462 |
Return a BrokenBarHCollection that plots horizontal bars from over the regions in x where where is True. The bars range on the y-axis from ymin to ymax kwargs are passed on to the collection. | |
doc_463 | policy is an object implementing the CookiePolicy interface. For the other arguments, see the documentation for the corresponding attributes. A CookieJar which can load cookies from, and perhaps save cookies to, a file on disk. Cookies are NOT loaded from the named file until either the load() or revert() method is cal... | |
doc_464 | Create a barrier object for parties number of threads. An action, when provided, is a callable to be called by one of the threads when they are released. timeout is the default timeout value if none is specified for the wait() method.
wait(timeout=None)
Pass the barrier. When all the threads party to the barrier ha... | |
doc_465 | Create an object to trace execution of a single statement or expression. All parameters are optional. count enables counting of line numbers. trace enables line execution tracing. countfuncs enables listing of the functions called during the run. countcallers enables call relationship tracking. ignoremods is a list of ... | |
doc_466 |
Leave-One-Out cross-validator Provides train/test indices to split data in train/test sets. Each sample is used once as a test set (singleton) while the remaining samples form the training set. Note: LeaveOneOut() is equivalent to KFold(n_splits=n) and LeavePOut(p=1) where n is the number of samples. Due to the high ... | |
doc_467 | Default widget: ClearableFileInput
Empty value: None
Normalizes to: An UploadedFile object that wraps the file content and file name into a single object. Can validate that non-empty file data has been bound to the form. Error message keys: required, invalid, missing, empty, max_length
Has two optional arguments f... | |
doc_468 | A message with Babyl-specific behaviors. Parameter message has the same meaning as with the Message constructor. Certain message labels, called attributes, are defined by convention to have special meanings. The attributes are as follows:
Label Explanation
unseen Not read, but previously detected by MUA
deleted... | |
doc_469 |
Plot a 2D field of arrows. Call signature: quiver([X, Y], U, V, [C], **kw)
X, Y define the arrow locations, U, V define the arrow directions, and C optionally sets the color. Each arrow is internally represented by a filled polygon with a default edge linewidth of 0. As a result, an arrow is rather a filled area, no... | |
doc_470 |
Return the clip path. | |
doc_471 |
Set multiple properties at once. Supported properties are
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha scalar or None
animated bool
bbox_to_anchor unknown
child unknown
clip_box Bbox
clip_on bool
clip_pa... | |
doc_472 |
ctypes interface Returns
interfacenamedtuple
Named tuple containing ctypes 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 po... | |
doc_473 |
Set the visibility state of the handles artist. | |
doc_474 |
Attributes
library FunctionDefLibrary library
node repeated NodeDef node
version int32 version
versions VersionDef versions | |
doc_475 | tf.experimental.numpy.ndarray.ravel
tf.experimental.numpy.ravel(
a
)
Unsupported arguments: order. See the NumPy documentation for numpy.ravel. | |
doc_476 |
Plot Series or DataFrame as lines. This function is useful to plot lines using DataFrame’s values as coordinates. Parameters
x:label or position, optional
Allows plotting of one column versus another. If not specified, the index of the DataFrame is used.
y:label or position, optional
Allows plotting of one ... | |
doc_477 | Form that will be used to get the email of the user to reset the password for. Defaults to PasswordResetForm. | |
doc_478 |
Set the aspect ratio of the axes scaling, i.e. y/x-scale. Parameters
aspect{'auto', 'equal'} or float
Possible values: 'auto': fill the position rectangle with data. 'equal': same as aspect=1, i.e. same scaling for x and y.
float: The displayed size of 1 unit in y-data coordinates will be aspect times the dis... | |
doc_479 | Returns a boolean indicating whether the geometry is valid. | |
doc_480 | Return True if it is a symbolic link. | |
doc_481 |
Solve the isotonic regression model. Read more in the User Guide. Parameters
yarray-like of shape (n_samples,)
The data.
sample_weightarray-like of shape (n_samples,), default=None
Weights on each point of the regression. If None, weight is set to 1 (equal weights).
y_minfloat, default=None
Lower bound ... | |
doc_482 |
Return local minimum of an image. Parameters
image([P,] M, N) ndarray (uint8, uint16)
Input image.
selemndarray
The neighborhood expressed as an ndarray of 1’s and 0’s.
out([P,] M, N) array (same dtype as input)
If None, a new array is allocated.
maskndarray (integer or float), optional
Mask array t... | |
doc_483 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesQuantileStreamResourceFlush
tf.raw_ops.BoostedTreesQuantileStreamResourceFlush(
quantile_stream_resource_handle, num_buckets, generate_quantiles=False,
name=None
)
An op that flushes the summaries for a quantile stream resource.
Args... | |
doc_484 |
Returns
transformTransform
The transform used for drawing x-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in axis coordinates
valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}
The tex... | |
doc_485 | tf.compat.v1.InteractiveSession(
target='', graph=None, config=None
)
The only difference with a regular Session is that an InteractiveSession installs itself as the default session on construction. The methods tf.Tensor.eval and tf.Operation.run will use that session to run ops. This is convenient in interactive ... | |
doc_486 |
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation. | |
doc_487 | Print objects to the text stream file, separated by sep and followed by end. sep, end, file and flush, if present, must be given as keyword arguments. All non-keyword arguments are converted to strings like str() does and written to the stream, separated by sep and followed by end. Both sep and end must be strings; the... | |
doc_488 | If True, any defects encountered will be raised as errors. If False (the default), defects will be passed to the register_defect() method. | |
doc_489 |
Mask corresponding to a flood fill. Starting at a specific seed_point, connected points equal or within tolerance of the seed value are found. Parameters
imagendarray
An n-dimensional array.
seed_pointtuple or int
The point in image used as the starting point for the flood fill. If the image is 1D, this poi... | |
doc_490 |
Return a numpy.timedelta64 object with ‘ns’ precision. | |
doc_491 |
Context-manager that changes the selected device. Parameters
device (torch.device or int) – device index to select. It’s a no-op if this argument is a negative integer or None. | |
doc_492 |
Return the locations of the ticks. Note Because the values are Null, vmin and vmax are not used in this method. | |
doc_493 |
Return the cumulative product of the array elements over the given axis. Masked values are set to 1 internally during the computation. However, their position is saved, and the result will be masked at the same locations. Refer to numpy.cumprod for full documentation. See also numpy.ndarray.cumprod
corresponding f... | |
doc_494 | Simple test if a sprite intersects anything in a group.
spritecollideany(sprite, group, collided = None) -> Sprite Collision with the returned sprite.
spritecollideany(sprite, group, collided = None) -> None No collision If the sprite collides with any single sprite in the group, a single sprite from the group is r... | |
doc_495 | This method returns a bitmask indicating which control(s) are currently being used as a recording source. | |
doc_496 |
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] = L_i(x) * L_j(y),\] where 0 <= i <= deg[0] and 0 <= j <= deg[1]. The leading indices of V index the points (x, y) and th... | |
doc_497 |
Convert a polynomial to a Chebyshev series. Convert an array representing the coefficients of a polynomial (relative to the “standard” basis) ordered from lowest degree to highest, to an array of the coefficients of the equivalent Chebyshev series, ordered from lowest to highest degree. Parameters
polarray_like
... | |
doc_498 | Called when the transport’s buffer goes over the high watermark. | |
doc_499 | Set the mouse events to be reported, and return a tuple (availmask,
oldmask). availmask indicates which of the specified mouse events can be reported; on complete failure it returns 0. oldmask is the previous value of the given window’s mouse event mask. If this function is never called, no mouse events are ever report... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.