_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_12500 | os.SF_MNOWAIT
os.SF_SYNC
Parameters to the sendfile() function, if the implementation supports them. Availability: Unix. New in version 3.3. | |
doc_12501 | The value of pos which was passed to the search() or match() method of a regex object. This is the index into the string at which the RE engine started looking for a match. | |
doc_12502 |
Bases: skimage.viewer.viewers.core.ImageViewer Viewer for displaying image collections. Select the displayed frame of the image collection using the slider or with the following keyboard shortcuts: left/right arrows
Previous/next image in collection. number keys, 0–9
0% to 90% of collection. For example, “5” goes... | |
doc_12503 |
Signed distance to the separating hyperplane. Signed distance is positive for an inlier and negative for an outlier. Parameters
Xarray-like of shape (n_samples, n_features)
The data matrix. Returns
decndarray of shape (n_samples,)
Returns the decision function of the samples. | |
doc_12504 |
Number of microseconds (>= 0 and less than 1 second) for each element. | |
doc_12505 |
Bases: matplotlib.transforms.Affine2DBase The affine part of the polar projection. Scales the output so that maximum radius rests on the edge of the axes circle. limits is the view limit of the data. The only part of its bounds that is used is the y limits (for the radius limits). The theta range is handled by the no... | |
doc_12506 |
Other Members
CLASSIFY_INPUTS 'inputs'
CLASSIFY_METHOD_NAME 'tensorflow/serving/classify'
CLASSIFY_OUTPUT_CLASSES 'classes'
CLASSIFY_OUTPUT_SCORES 'scores'
DEFAULT_SERVING_SIGNATURE_DEF_KEY 'serving_default'
PREDICT_INPUTS 'inputs'
PREDICT_METHOD_NAME 'tensorflow/serving/pre... | |
doc_12507 |
pygame module with basic game object classes This module contains several simple classes to be used within games. There is the main Sprite class and several Group classes that contain Sprites. The use of these classes is entirely optional when using pygame. The classes are fairly lightweight and only provide a sta... | |
doc_12508 |
Fit all transformers, transform the data and concatenate results. Parameters
Xiterable or array-like, depending on transformers
Input data to be transformed.
yarray-like of shape (n_samples, n_outputs), default=None
Targets for supervised learning. Returns
X_tarray-like or sparse matrix of shape (n_sa... | |
doc_12509 |
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass. | |
doc_12510 | See Migration guide for more details. tf.compat.v1.raw_ops.L2Loss
tf.raw_ops.L2Loss(
t, name=None
)
Computes half the L2 norm of a tensor without the sqrt: output = sum(t ** 2) / 2
Args
t A Tensor. Must be one of the following types: half, bfloat16, float32, float64. Typically 2-D, but may have any dim... | |
doc_12511 |
Walk the pytables group hierarchy for pandas objects. This generator will yield the group path, subgroups and pandas object names for each group. Any non-pandas PyTables objects that are not a group will be ignored. The where group itself is listed first (preorder), then each of its child groups (following an alphanu... | |
doc_12512 | Return the sequence of blocked domains (as a tuple). | |
doc_12513 |
Read HTML tables into a list of DataFrame objects. Parameters
io:str, path object, or file-like object
String, path object (implementing os.PathLike[str]), or file-like object implementing a string read() function. The string can represent a URL or the HTML itself. Note that lxml only accepts the http, ftp and ... | |
doc_12514 |
Convert angles from degrees to radians. Parameters
xarray_like
Input array in degrees.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is re... | |
doc_12515 | Node representing a single formatting field in an f-string. If the string contains a single formatting field and nothing else the node can be isolated otherwise it appears in JoinedStr.
value is any expression node (such as a literal, a variable, or a function call).
conversion is an integer: -1: no formatting 115:... | |
doc_12516 | Whether the kernel works only on fixed-length feature vectors. | |
doc_12517 | tf.initializers.RandomNormal, tf.initializers.random_normal, tf.keras.initializers.random_normal
tf.keras.initializers.RandomNormal(
mean=0.0, stddev=0.05, seed=None
)
Also available via the shortcut function tf.keras.initializers.random_normal. Examples:
# Standalone usage:
initializer = tf.keras.initializers.... | |
doc_12518 | '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_12519 | Returns an instance of the paginator to use for this view. By default, instantiates an instance of paginator. | |
doc_12520 |
Pseudo-Vandermonde matrix of given degrees. Returns the pseudo-Vandermonde matrix of degrees deg and sample points (x, y, z). If l, m, n are the given degrees in x, y, z, then The pseudo-Vandermonde matrix is defined by \[V[..., (m+1)(n+1)i + (n+1)j + k] = L_i(x)*L_j(y)*L_k(z),\] where 0 <= i <= l, 0 <= j <= m, and ... | |
doc_12521 |
Applies element-wise, Tanh(x)=tanh(x)=exp(x)−exp(−x)exp(x)+exp(−x)\text{Tanh}(x) = \tanh(x) = \frac{\exp(x) - \exp(-x)}{\exp(x) + \exp(-x)} See Tanh for more details. | |
doc_12522 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalMapDataset
tf.raw_ops.ExperimentalMapDataset(
input_dataset, other_arguments, f, output_types, output_shapes,
use_inter_op_parallelism=True, preserve_cardinality=False, name=None
)
Args
input_dataset A Tensor of type variant.
... | |
doc_12523 |
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_12524 | Load a shared library into the process and return it. This method always returns a new instance of the library. | |
doc_12525 |
Set the text of this area as a string. | |
doc_12526 | sklearn.utils.arrayfuncs.min_pos()
Find the minimum value of an array over positive values Returns a huge value if none of the values are positive | |
doc_12527 |
For internal compatibility with the Index API. Sort the Index. This is for compat with MultiIndex Parameters
ascending:bool, default True
False to sort in descending order level, sort_remaining are compat parameters
Returns
Index | |
doc_12528 |
Plot a 2D field of barbs. Call signature: barbs([X, Y], U, V, [C], **kw)
Where X, Y define the barb locations, U, V define the barb directions, and C optionally sets the color. All arguments may be 1D or 2D. U, V, C may be masked arrays, but masked X, Y are not supported at present. Barbs are traditionally used in m... | |
doc_12529 | Get the documentation string for an object, cleaned up with cleandoc(). If the documentation string for an object is not provided and the object is a class, a method, a property or a descriptor, retrieve the documentation string from the inheritance hierarchy. Changed in version 3.5: Documentation strings are now inhe... | |
doc_12530 | True if the address is reserved for site-local usage. Note that the site-local address space has been deprecated by RFC 3879. Use is_private to test if this address is in the space of unique local addresses as defined by RFC 4193. | |
doc_12531 | Send a blank line to the server, signalling the end of the headers. The optional message_body argument can be used to pass a message body associated with the request. If encode_chunked is True, the result of each iteration of message_body will be chunk-encoded as specified in RFC 7230, Section 3.3.1. How the data is en... | |
doc_12532 | Change the stream position to the given byte offset. offset is interpreted relative to the position indicated by whence. The default value for whence is SEEK_SET. Values for whence are:
SEEK_SET or 0 – start of the stream (the default); offset should be zero or positive
SEEK_CUR or 1 – current stream position; offse... | |
doc_12533 | Equivalent to get(False). | |
doc_12534 | tf.metrics.MeanRelativeError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.MeanRelativeError
tf.keras.metrics.MeanRelativeError(
normalizer, name=None, dtype=None
)
This metric creates two local variables, total and count that are used to compute the mean relative ... | |
doc_12535 | Others have read permission. | |
doc_12536 | run a font rendering example fonty.main() -> None Super quick, super simple application demonstrating the different ways to render fonts with the font module | |
doc_12537 | A boolean specifying whether to retrieve the full list of objects for this year and pass those to the template. If True, the list of objects will be made available to the context. If False, the None queryset will be used as the object list. By default, this is False. | |
doc_12538 | Returns a new instance of the HTTPHandler class. The host can be of the form host:port, should you need to use a specific port number. If no method is specified, GET is used. If secure is true, a HTTPS connection will be used. The context parameter may be set to a ssl.SSLContext instance to configure the SSL settings u... | |
doc_12539 |
Bases: matplotlib.backend_tools.ToolBase Tool to call the figure manager destroy method. default_keymap=[]
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
description='Quit all figures'
Description of the Tool. s... | |
doc_12540 |
Call transform on the estimator with the best found parameters. Only available if the underlying estimator supports transform and refit=True. Parameters
Xindexable, length n_samples
Must fulfill the input assumptions of the underlying estimator. | |
doc_12541 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_12542 | os.MFD_ALLOW_SEALING
os.MFD_HUGETLB
os.MFD_HUGE_SHIFT
os.MFD_HUGE_MASK
os.MFD_HUGE_64KB
os.MFD_HUGE_512KB
os.MFD_HUGE_1MB
os.MFD_HUGE_2MB
os.MFD_HUGE_8MB
os.MFD_HUGE_16MB
os.MFD_HUGE_32MB
os.MFD_HUGE_256MB
os.MFD_HUGE_512MB
os.MFD_HUGE_1GB
os.MFD_HUGE_2GB
os.MFD_HUGE_16GB
These flags can... | |
doc_12543 | See Migration guide for more details. tf.compat.v1.raw_ops.Abort
tf.raw_ops.Abort(
error_msg='', exit_without_error=False, name=None
)
If exit_without_error is true, the process will exit normally, otherwise it will exit with a SIGABORT signal. Returns nothing but an exception.
Args
error_msg An optiona... | |
doc_12544 | Returns the log-transformed bounds on the theta. Returns
boundsndarray of shape (n_dims, 2)
The log-transformed bounds on the kernel’s hyperparameters theta | |
doc_12545 | A dictionary that maps HTML entity names to the Unicode code points. | |
doc_12546 |
Return the clipbox. | |
doc_12547 | The GenericInlineModelAdmin class inherits all properties from an InlineModelAdmin class. However, it adds a couple of its own for working with the generic relation:
ct_field
The name of the ContentType foreign key field on the model. Defaults to content_type.
ct_fk_field
The name of the integer field that re... | |
doc_12548 | Flips all the bits invert() -> None Flips all of the bits in the mask. All the set bits are cleared to 0 and all the unset bits are set to 1.
Returns:
None
Return type:
NoneType | |
doc_12549 | Similar to time() but returns time as an integer number of nanoseconds since the epoch. New in version 3.7. | |
doc_12550 |
Return whether this path intersects a given Bbox. If filled is True, then this also returns True if the path completely encloses the Bbox (i.e., the path is treated as filled). The bounding box is always considered filled. | |
doc_12551 |
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk. | |
doc_12552 |
Convert Period to desired frequency, at the start or end of the interval. Parameters
freq:str
The desired frequency.
how:{‘E’, ‘S’, ‘end’, ‘start’}, default ‘end’
Start or end of the timespan. Returns
resampled:Period | |
doc_12553 |
Return a new array with the same shape and type as a given array. Parameters
prototypearray_like
The shape and data-type of prototype define these same attributes of the returned array.
dtypedata-type, optional
Overrides the data type of the result. New in version 1.6.0.
order{‘C’, ‘F’, ‘A’, or ‘K’}, op... | |
doc_12554 | See Migration guide for more details. tf.compat.v1.raw_ops.SerializeTensor
tf.raw_ops.SerializeTensor(
tensor, name=None
)
Args
tensor A Tensor. A Tensor of type T.
name A name for the operation (optional).
Returns A Tensor of type string. | |
doc_12555 | See Migration guide for more details. tf.compat.v1.raw_ops.ShuffleDatasetV3
tf.raw_ops.ShuffleDatasetV3(
input_dataset, buffer_size, seed, seed2, seed_generator, output_types,
output_shapes, reshuffle_each_iteration=True, name=None
)
Args
input_dataset A Tensor of type variant.
buffer_size A T... | |
doc_12556 |
Create a pseudocolor plot with a non-regular rectangular grid. Call signature: pcolor([X, Y,] C, **kwargs)
X and Y can be used to specify the corners of the quadrilaterals. Hint pcolor() can be very slow for large arrays. In most cases you should use the similar but much faster pcolormesh instead. See Differences b... | |
doc_12557 | Acquire a lock, blocking or non-blocking. When invoked with the blocking argument set to True (the default), block until the lock is unlocked, then set it to locked and return True. When invoked with the blocking argument set to False, do not block. If a call with blocking set to True would block, return False immediat... | |
doc_12558 |
Check whether the provided array or dtype is of the int64 dtype. Parameters
arr_or_dtype:array-like or dtype
The array or dtype to check. Returns
boolean
Whether or not the array or dtype is of the int64 dtype. Notes Depending on system architecture, the return value of is_int64_dtype( int) will be Tr... | |
doc_12559 |
Return the xaxis' tick lines as a list of Line2Ds. | |
doc_12560 |
Return the week number of the year. Examples
>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.week
11 | |
doc_12561 | Adds the specified model objects to the related object set. Example: >>> b = Blog.objects.get(id=1)
>>> e = Entry.objects.get(id=234)
>>> b.entry_set.add(e) # Associates Entry e with Blog b.
In the example above, in the case of a ForeignKey relationship, QuerySet.update() is used to perform the update. This requires t... | |
doc_12562 | Compute CRC-32, the 32-bit checksum of data, starting with an initial CRC of value. The default initial CRC is zero. The algorithm is consistent with the ZIP file checksum. Since the algorithm is designed for use as a checksum algorithm, it is not suitable for use as a general hash algorithm. Use as follows: print(bina... | |
doc_12563 | Return the value of the header name, or default if there is no header matching name. If there is more than one header with the name name, return all of the values joined by ‘, ‘. If ‘default’ is any iterable other than a single string, its elements are similarly returned joined by commas. | |
doc_12564 | This decorator will negate the effect of ATOMIC_REQUESTS for a given view: from django.db import transaction
@transaction.non_atomic_requests
def my_view(request):
do_stuff()
@transaction.non_atomic_requests(using='other')
def my_other_view(request):
do_stuff_on_the_other_database()
It only works if it’s app... | |
doc_12565 | Xception: Deep Learning with Depthwise Separable Convolutions (CVPR 2017) Functions Xception(...): Instantiates the Xception architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images. | |
doc_12566 | Alias for torch.atan(). | |
doc_12567 |
Check if coefficients match. New in version 1.6.0. Parameters
otherclass instance
The other class must have the coef attribute. Returns
boolboolean
True if the coefficients are the same, False otherwise. | |
doc_12568 | Raised when an index or size parameter to a method is negative or exceeds the allowed values. | |
doc_12569 |
Return the clipbox. | |
doc_12570 |
Random values in a given shape. Note This is a convenience function for users porting code from Matlab, and wraps random_sample. That function takes a tuple to specify the size of the output, which is consistent with other NumPy functions like numpy.zeros and numpy.ones. Create an array of the given shape and popul... | |
doc_12571 | See Migration guide for more details. tf.compat.v1.estimator.SessionRunContext, tf.compat.v1.train.SessionRunContext
tf.estimator.SessionRunContext(
original_args, session
)
Provides information about original request to Session.Run() function. SessionRunHook objects can stop the loop by calling request_stop() o... | |
doc_12572 | This function takes a single argument that can be passed to the exec() function, and an optional file name. In all cases this routine executes: exec(command, __main__.__dict__, __main__.__dict__)
and gathers profiling statistics from the execution. If no file name is present, then this function automatically creates a... | |
doc_12573 |
Context-manager that selects a given stream. All CUDA kernels queued within its context will be enqueued on a selected stream. Parameters
stream (Stream) – selected stream. This manager is a no-op if it’s None. Note Streams are per-device. If the selected stream is not on the current device, this function will a... | |
doc_12574 | The state of the font's underline style flag underline -> bool Gets or sets whether the font will be underlined when drawing text. This default style value will be used for all text rendering and size calculations unless overridden specifically in a render or get_rect() call, via the 'style' parameter. | |
doc_12575 | Sample integers without replacement. Select n_samples integers from the set [0, n_population) without replacement. Parameters
n_populationint
The size of the set to sample from.
n_samplesint
The number of integer to sample.
random_stateint, RandomState instance or None, default=None
If int, random_state i... | |
doc_12576 |
Bases: matplotlib.backend_tools.ToolToggleBase Tool to toggle full screen. default_keymap=['f', 'ctrl+f']
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
description='Toggle fullscreen mode'
Description of the To... | |
doc_12577 |
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None | |
doc_12578 | tf.keras.applications.resnet.ResNet101 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.ResNet101, tf.compat.v1.keras.applications.resnet.ResNet101
tf.keras.applications.ResNet101(
include_top=True, weights='imagenet', input_tensor=None,
input_shape=None, pool... | |
doc_12579 | sklearn.show_versions() [source]
Print useful debugging information” New in version 0.20. | |
doc_12580 | Execute the command and gather statistics from the execution with the current tracing parameters, in the defined global and local environments. If not defined, globals and locals default to empty dictionaries. | |
doc_12581 | Set the subdirectory the message should be stored in. Parameter subdir must be either “new” or “cur”. | |
doc_12582 | The size of the resulting HMAC digest in bytes. | |
doc_12583 |
Return the alpha value used for blending - not supported on all backends. | |
doc_12584 |
Return y formatted as an y-value. This function will use the fmt_ydata attribute if it is not None, else will fall back on the yaxis major formatter. | |
doc_12585 |
Fit model with coordinate descent. Parameters
X{ndarray, sparse matrix} of (n_samples, n_features)
Data.
y{ndarray, sparse matrix} of shape (n_samples,) or (n_samples, n_targets)
Target. Will be cast to X’s dtype if necessary.
sample_weightfloat or array-like of shape (n_samples,), default=None
Sample w... | |
doc_12586 |
Take in and process masked source/target sequences. Parameters
src – the sequence to the encoder (required).
tgt – the sequence to the decoder (required).
src_mask – the additive mask for the src sequence (optional).
tgt_mask – the additive mask for the tgt sequence (optional).
memory_mask – the additive mask... | |
doc_12587 | See Migration guide for more details. tf.compat.v1.raw_ops.ParallelInterleaveDatasetV4
tf.raw_ops.ParallelInterleaveDatasetV4(
input_dataset, other_arguments, cycle_length, block_length,
buffer_output_elements, prefetch_input_elements, num_parallel_calls, f,
output_types, output_shapes, deterministic='def... | |
doc_12588 | Returns one of:
region meaning
heading Tree heading area.
separator Space between two columns headings.
tree The tree area.
cell A data cell. Availability: Tk 8.6. | |
doc_12589 |
K-means clustering algorithm. Read more in the User Guide. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The observations to cluster. It must be noted that the data will be converted to C ordering, which will cause a memory copy if the given data is not C-contiguous.
n_clustersint
... | |
doc_12590 |
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_12591 |
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_12592 | A subclass of PurePath, this path flavour represents non-Windows filesystem paths: >>> PurePosixPath('/etc')
PurePosixPath('/etc')
pathsegments is specified similarly to PurePath. | |
doc_12593 | initialize the mixer module init(frequency=44100, size=-16, channels=2, buffer=512, devicename=None, allowedchanges=AUDIO_ALLOW_FREQUENCY_CHANGE | AUDIO_ALLOW_CHANNELS_CHANGE) -> None Initialize the mixer module for Sound loading and playback. The default arguments can be overridden to provide specific audio mixing. ... | |
doc_12594 |
Applies a linear transformation to the incoming quantized data: y=xAT+by = xA^T + b . See Linear Note Current implementation packs weights on every call, which has penalty on performance. If you want to avoid the overhead, use Linear. Parameters
input (Tensor) – Quantized input of type torch.quint8
weight (Te... | |
doc_12595 |
Set the JoinStyle for the collection (for all its elements). Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_12596 | LayeredDirty group is for DirtySprite objects. Subclasses LayeredUpdates. LayeredDirty(*spites, **kwargs) -> LayeredDirty This group requires pygame.sprite.DirtySprite or any sprite that has the following attributes: image, rect, dirty, visible, blendmode (see doc of DirtySprite). It uses the dirty flag technique and... | |
doc_12597 |
Invert an image. Invert the intensity range of the input image, so that the dtype maximum is now the dtype minimum, and vice-versa. This operation is slightly different depending on the input dtype: unsigned integers: subtract the image from the dtype maximum signed integers: subtract the image from -1 (see Notes) f... | |
doc_12598 |
Issued by chebfit when the design matrix is rank deficient. | |
doc_12599 | class sklearn.neural_network.BernoulliRBM(n_components=256, *, learning_rate=0.1, batch_size=10, n_iter=10, verbose=0, random_state=None) [source]
Bernoulli Restricted Boltzmann Machine (RBM). A Restricted Boltzmann Machine with binary visible units and binary hidden units. Parameters are estimated using Stochastic M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.