_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_20800 |
Set how to draw connections between line segments. Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_20801 | Sets the clipboard access mode. set_mode(mode) -> None Sets the access mode for the clipboard. This is only of interest for X11 environments where clipboard modes pygame.SCRAP_SELECTION (for mouse selections) and pygame.SCRAP_CLIPBOARD (for the clipboard) are available. Setting the mode to pygame.SCRAP_SELECTION in o... | |
doc_20802 | See Migration guide for more details. tf.compat.v1.debugging.assert_greater_equal
tf.compat.v1.assert_greater_equal(
x, y, data=None, summarize=None, message=None, name=None
)
This condition holds if for every pair of (possibly broadcast) elements x[i], y[i], we have x[i] >= y[i]. If both x and y are empty, this... | |
doc_20803 |
[Deprecated] Get minimumdescent. Notes Deprecated since version 3.4. | |
doc_20804 |
Bases: mpl_toolkits.axisartist.angle_helper.LocatorBase __call__(v1, v2)[source]
Call self as a function. | |
doc_20805 |
Draw a box to mark the location of an area represented by an inset axes. This function draws a box in parent_axes at the bounding box of inset_axes, and shows a connection with the inset axes by drawing lines at the corners, giving a "zoomed in" effect. Parameters
parent_axesmatplotlib.axes.Axes
Axes which cont... | |
doc_20806 | Delete the dialect associated with name from the dialect registry. An Error is raised if name is not a registered dialect name. | |
doc_20807 | See Migration guide for more details. tf.compat.v1.estimator.experimental.LinearSDCA
tf.estimator.experimental.LinearSDCA(
example_id_column, num_loss_partitions=1, num_table_shards=None,
symmetric_l1_regularization=0.0, symmetric_l2_regularization=1.0, adaptive=False
)
Objects of this class are intended to ... | |
doc_20808 | See Migration guide for more details. tf.compat.v1.sparse.bincount
tf.sparse.bincount(
values, weights=None, axis=0, minlength=None, maxlength=None,
binary_output=False, name=None
)
This op takes an N-dimensional Tensor, RaggedTensor, or SparseTensor, and returns an N-dimensional int64 SparseTensor where ele... | |
doc_20809 |
Call score_samples on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports score_samples. New in version 0.24. Parameters
Xiterable
Data to predict on. Must fulfill input requirements of the underlying estimator. Returns
y_scorendarray of shape... | |
doc_20810 | tf.metrics.MeanTensor Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.MeanTensor
tf.keras.metrics.MeanTensor(
name='mean_tensor', dtype=None
)
MeanTensor returns a tensor with the same shape of the input tensors. The mean value is updated by keeping local variables t... | |
doc_20811 |
Set the alpha value used for blending - not supported on all backends. Parameters
alphaarray-like or scalar or None
All values must be within the 0-1 range, inclusive. Masked values and nans are not supported. | |
doc_20812 | An HttpResponse subclass that helps to create a JSON-encoded response. It inherits most behavior from its superclass with a couple differences: Its default Content-Type header is set to application/json. The first parameter, data, should be a dict instance. If the safe parameter is set to False (see below) it can be an... | |
doc_20813 | Returns a new instance of the Formatter class. The instance is initialized with a format string for the message as a whole, as well as a format string for the date/time portion of a message. If no fmt is specified, '%(message)s' is used. If no datefmt is specified, a format is used which is described in the formatTime(... | |
doc_20814 | Applies a 3D convolution over an input image composed of several input planes. This operator supports TensorFloat32. See Conv3d for details and output shape. Note In some circumstances when given tensors on a CUDA device and using CuDNN, this operator may select a nondeterministic algorithm to increase performance. If... | |
doc_20815 | This class represents a MIME-types database. By default, it provides access to the same database as the rest of this module. The initial database is a copy of that provided by the module, and may be extended by loading additional mime.types-style files into the database using the read() or readfp() methods. The mapping... | |
doc_20816 | Accepts an arbitrary callback function and arguments and adds it to the callback stack. Unlike the other methods, callbacks added this way cannot suppress exceptions (as they are never passed the exception details). The passed in callback is returned from the function, allowing this method to be used as a function deco... | |
doc_20817 | True if cookie has passed the time at which the server requested it should expire. If now is given (in seconds since the epoch), return whether the cookie has expired at the specified time. | |
doc_20818 |
Match a template to a 2-D or 3-D image using normalized correlation. The output is an array with values between -1.0 and 1.0. The value at a given position corresponds to the correlation coefficient between the image and the template. For pad_input=True matches correspond to the center and otherwise to the top-left c... | |
doc_20819 | 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'PAGE_SIZE': 100
}
Note that you need to set both the pagination class, and the page size that should be used. Both DEFAULT_PAGINATION_CLASS and PAGE_SIZE are None by default. You can also set the pagination class on an individual v... | |
doc_20820 | setDaemon()
Old getter/setter API for daemon; use it directly as a property instead. | |
doc_20821 | Encode a Unicode or bytes object encode_string([obj [, encoding [, errors [, etype]]]]) -> bytes or None obj: If Unicode, encode; if bytes, return unaltered; if anything else, return None; if not given, raise SyntaxError. encoding (string): If present, encoding to use. The default is 'unicode_escape'. errors (string)... | |
doc_20822 | Compare a and b (lists of strings); return a Differ-style delta (a generator generating the delta lines). Optional keyword parameters linejunk and charjunk are filtering functions (or None): linejunk: A function that accepts a single string argument, and returns true if the string is junk, or false if not. The default ... | |
doc_20823 | Prefixes all endpoints (which must be strings for this factory) with another string. This can be useful for sub applications: url_map = Map([
Rule('/', endpoint='index'),
EndpointPrefix('blog/', [Submount('/blog', [
Rule('/', endpoint='index'),
Rule('/entry/<entry_slug>', endpoint='show')
])... | |
doc_20824 |
Split array into multiple sub-arrays along the 3rd axis (depth). Please refer to the split documentation. dsplit is equivalent to split with axis=2, the array is always split along the third axis provided the array dimension is greater than or equal to 3. See also split
Split an array into multiple sub-arrays of e... | |
doc_20825 |
Computes multidimensional scaling using the SMACOF algorithm. The SMACOF (Scaling by MAjorizing a COmplicated Function) algorithm is a multidimensional scaling algorithm which minimizes an objective function (the stress) using a majorization technique. Stress majorization, also known as the Guttman Transform, guarant... | |
doc_20826 | tf.keras.layers.LSTMCell(
units, activation='tanh', recurrent_activation='sigmoid',
use_bias=True, kernel_initializer='glorot_uniform',
recurrent_initializer='orthogonal',
bias_initializer='zeros', unit_forget_bias=True,
kernel_regularizer=None, recurrent_regularizer=None, bias_regularizer=None,
... | |
doc_20827 | NONE: This is the default, giving an error if you use a variable-update operation with multiple replicas.
SUM: Add the updates across replicas.
MEAN: Take the arithmetic mean ("average") of the updates across replicas.
ONLY_FIRST_REPLICA: This is for when every replica is performing the same update, but we only want... | |
doc_20828 | Attempt to cancel the call. If the call is currently being executed or finished running and cannot be cancelled then the method will return False, otherwise the call will be cancelled and the method will return True. | |
doc_20829 |
The value of the start parameter (0 if this was not supplied). | |
doc_20830 |
Convert the DataFrame to a NumPy array. By default, the dtype of the returned array will be the common NumPy dtype of all types in the DataFrame. For example, if the dtypes are float16 and float32, the results dtype will be float32. This may require copying data and coercing values, which may be expensive. Parameter... | |
doc_20831 |
Perform classification on an array of test vectors X. The predicted class C for each sample in X is returned. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
Cndarray of shape (n_samples,)
Notes If the metric constructor parameter is “precomputed”, X is assumed to be the distance matrix ... | |
doc_20832 | See Migration guide for more details. tf.compat.v1.lite.experimental.load_delegate
tf.lite.experimental.load_delegate(
library, options=None
)
Args
library Name of shared library containing the TfLiteDelegate.
options Dictionary of options that are required to load the delegate. All keys and value... | |
doc_20833 | Boolean flag that indicates if a field contains references to one or more other models for its functionality (e.g. ForeignKey, ManyToManyField, OneToOneField, etc.). | |
doc_20834 |
Performs a single optimization step. Parameters
closure (callable, optional) – A closure that reevaluates the model and returns the loss. | |
doc_20835 | os.spawnle(mode, path, ..., env)
os.spawnlp(mode, file, ...)
os.spawnlpe(mode, file, ..., env)
os.spawnv(mode, path, args)
os.spawnve(mode, path, args, env)
os.spawnvp(mode, file, args)
os.spawnvpe(mode, file, args, env)
Execute the program path in a new process. (Note that the subprocess module provides ... | |
doc_20836 | Returns the number of set bits count() -> bits
Returns:
the number of set bits in the mask
Return type:
int | |
doc_20837 | See Migration guide for more details. tf.compat.v1.raw_ops.StaticRegexFullMatch
tf.raw_ops.StaticRegexFullMatch(
input, pattern, name=None
)
The input is a string tensor of any shape. The pattern is the regular expression to be matched with every element of the input tensor. The boolean values (True or False) of... | |
doc_20838 |
Overrides the standard draw_path to add the shadow offset and necessary color changes for the shadow. | |
doc_20839 | uninitialize a cdrom drive for use quit() -> None Uninitialize a drive for use. Call this when your program will not be accessing the drive for awhile. | |
doc_20840 | Exit from Python. This is implemented by raising the SystemExit exception, so cleanup actions specified by finally clauses of try statements are honored, and it is possible to intercept the exit attempt at an outer level. The optional argument arg can be an integer giving the exit status (defaulting to zero), or anothe... | |
doc_20841 | sklearn.metrics.explained_variance_score(y_true, y_pred, *, sample_weight=None, multioutput='uniform_average') [source]
Explained variance regression score function. Best possible score is 1.0, lower values are worse. Read more in the User Guide. Parameters
y_truearray-like of shape (n_samples,) or (n_samples, n_... | |
doc_20842 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_20843 | Returns a copy of this object in CUDA memory. If this object is already in CUDA memory and on the correct device, then no copy is performed and the original object is returned. Parameters
device (int) – The destination GPU id. Defaults to the current device.
non_blocking (bool) – If True and the source is in pinne... | |
doc_20844 |
Context object to wrap forward and backward passes when using distributed autograd. The context_id generated in the with statement is required to uniquely identify a distributed backward pass on all workers. Each worker stores metadata associated with this context_id, which is required to correctly execute a distribu... | |
doc_20845 | Parses a URL from a string into a URL tuple. If the URL is lacking a scheme it can be provided as second argument. Otherwise, it is ignored. Optionally fragments can be stripped from the URL by setting allow_fragments to False. The inverse of this function is url_unparse(). Parameters
url (str) – the URL to parse. ... | |
doc_20846 |
Parameters
fpsint, default: 5
Movie frame rate (per second).
codecstr or None, default: rcParams["animation.codec"] (default: 'h264')
The codec to use.
bitrateint, default: rcParams["animation.bitrate"] (default: -1)
The bitrate of the movie, in kilobits per second. Higher values means higher quality mo... | |
doc_20847 | A list of Class objects which describe the immediate base classes of the class being described. Classes which are named as superclasses but which are not discoverable by readmodule_ex() are listed as a string with the class name instead of as Class objects. | |
doc_20848 | A subclass of HTTPException. | |
doc_20849 |
Pads the input tensor using replication of the input boundary. For N-dimensional padding, use torch.nn.functional.pad(). Parameters
padding (int, tuple) – the size of the padding. If is int, uses the same padding in all boundaries. If a 2-tuple, uses (padding_left\text{padding\_left} , padding_right\text{padding\_r... | |
doc_20850 | tf.compat.v1.train.limit_epochs(
tensor, num_epochs=None, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensors(tensor).repeat(num_epochs).
Note: creates local ... | |
doc_20851 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_20852 | class sklearn.svm.SVC(*, C=1.0, kernel='rbf', degree=3, gamma='scale', coef0=0.0, shrinking=True, probability=False, tol=0.001, cache_size=200, class_weight=None, verbose=False, max_iter=- 1, decision_function_shape='ovr', break_ties=False, random_state=None) [source]
C-Support Vector Classification. The implementati... | |
doc_20853 | Return a list of supported formats for archiving. Each element of the returned sequence is a tuple (name, description). By default shutil provides these formats:
zip: ZIP file (if the zlib module is available).
tar: Uncompressed tar file. Uses POSIX.1-2001 pax format for new archives.
gztar: gzip’ed tar-file (if th... | |
doc_20854 |
Return a backend-specific tuple to return to the backend after all processing is done. | |
doc_20855 | A *var variable reference. value holds the variable, typically a Name node. This type must be used when building a Call node with *args. >>> print(ast.dump(ast.parse('a, *b = it'), indent=4))
Module(
body=[
Assign(
targets=[
Tuple(
elts=[
... | |
doc_20856 | This signal is sent when an application context is popped. The sender is the application. This usually falls in line with the appcontext_tearing_down signal. Changelog New in version 0.10. | |
doc_20857 |
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation. | |
doc_20858 | Create a new server instance. This class provides methods for registration of functions that can be called by the XML-RPC protocol. The requestHandler parameter should be a factory for request handler instances; it defaults to SimpleXMLRPCRequestHandler. The addr and requestHandler parameters are passed to the socketse... | |
doc_20859 |
Return whether constrained layout is being used. See Constrained Layout Guide. | |
doc_20860 |
Set the (group) id for the artist. Parameters
gidstr | |
doc_20861 |
Return selected slices of this array along given axis. Refer to numpy.compress for full documentation. See also numpy.compress
equivalent function | |
doc_20862 | Retry the request with authentication information, if available. | |
doc_20863 | tf.keras.metrics.categorical_crossentropy, tf.losses.categorical_crossentropy, tf.metrics.categorical_crossentropy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.categorical_crossentropy, tf.compat.v1.keras.metrics.categorical_crossentropy
tf.keras.losses.categorical_cros... | |
doc_20864 |
Return the current hatching pattern. | |
doc_20865 | See Migration guide for more details. tf.compat.v1.raw_ops.RefEnter
tf.raw_ops.RefEnter(
data, frame_name, is_constant=False, parallel_iterations=10, name=None
)
The unique frame_name is used by the Executor to identify frames. If is_constant is true, output is a constant in the child frame; otherwise it may be ... | |
doc_20866 |
Fit label binarizer. Parameters
yndarray of shape (n_samples,) or (n_samples, n_classes)
Target values. The 2-d matrix should only contain 0 and 1, represents multilabel classification. Returns
selfreturns an instance of self. | |
doc_20867 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_20868 |
Lag plot for time series. Parameters
series:Time series
lag:lag of the scatter plot, default 1
ax:Matplotlib axis object, optional
**kwds
Matplotlib scatter method keyword arguments. Returns
class:matplotlib.axis.Axes
Examples Lag plots are most commonly used to look for patterns in time series dat... | |
doc_20869 |
Return the day of the year. Examples
>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.day_of_year
74 | |
doc_20870 |
A kind of Tensor that is to be considered a module parameter. Parameters are Tensor subclasses, that have a very special property when used with Module s - when they’re assigned as Module attributes they are automatically added to the list of its parameters, and will appear e.g. in parameters() iterator. Assigning a ... | |
doc_20871 | Under some web server configurations, the portion of the URL after the host name is split up into a script prefix portion and a path info portion. The path_info attribute always contains the path info portion of the path, no matter what web server is being used. Using this instead of path can make your code easier to m... | |
doc_20872 |
Return the font name, e.g., 'Times-Roman'. | |
doc_20873 | the bitmasks needed to convert between a color and a mapped integer get_masks() -> (R, G, B, A) Returns the bitmasks used to isolate each color in a mapped integer. This value is not needed for normal pygame usage. | |
doc_20874 | assertRaisesRegex(exception, regex, *, msg=None)
Like assertRaises() but also tests that regex matches on the string representation of the raised exception. regex may be a regular expression object or a string containing a regular expression suitable for use by re.search(). Examples: self.assertRaisesRegex(ValueError... | |
doc_20875 |
Return an array of zeros with the same shape and type as a given array. Parameters
aarray_like
The shape and data-type of a 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’}, optional
O... | |
doc_20876 |
Release the mouse grab held by the Axes ax. Usually called by the widgets. It is ok to call this even if ax doesn't have the mouse grab currently. | |
doc_20877 | Returns whether the kernel is defined on discrete structures. | |
doc_20878 |
Length of one array element in bytes. Examples >>> x = np.array([1,2,3], dtype=np.float64)
>>> x.itemsize
8
>>> x = np.array([1,2,3], dtype=np.complex128)
>>> x.itemsize
16 | |
doc_20879 | Return the signal which caused the process to stop. This function should be employed only if WIFSTOPPED() is true. Availability: Unix. | |
doc_20880 | The template used to render the inline on the page. | |
doc_20881 |
Check whether the provided array or dtype is of a float dtype. This function is internal and should not be exposed in the public API. 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 a float dtype. Examples
>>> is_float_d... | |
doc_20882 | Set pwd as default password to extract encrypted files. | |
doc_20883 | Returns a shifted copy of x, y times. | |
doc_20884 | run a simple starfield example stars.main() -> None A simple starfield example. You can change the center of perspective by leftclicking the mouse on the screen. | |
doc_20885 |
Initialize parameters according to the input batch properties. This adds an interface to isolate parameter initialization from the forward pass when doing parameter shape inference. | |
doc_20886 | See Migration guide for more details. tf.compat.v1.raw_ops.IdentityReader
tf.raw_ops.IdentityReader(
container='', shared_name='', name=None
)
To use, enqueue strings in a Queue. ReaderRead will take the front work string and output (work, work).
Args
container An optional string. Defaults to "". If non... | |
doc_20887 | class sklearn.feature_extraction.text.HashingVectorizer(*, input='content', encoding='utf-8', decode_error='strict', strip_accents=None, lowercase=True, preprocessor=None, tokenizer=None, stop_words=None, token_pattern='(?u)\\b\\w\\w+\\b', ngram_range=(1, 1), analyzer='word', n_features=1048576, binary=False, norm='l2'... | |
doc_20888 |
Return a dictionary of all the properties of the artist. | |
doc_20889 |
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_20890 | Computes input≤other\text{input} \leq \text{other} element-wise. The second argument can be a number or a tensor whose shape is broadcastable with the first argument. Parameters
input (Tensor) – the tensor to compare
other (Tensor or Scalar) – the tensor or value to compare Keyword Arguments
out (Tensor, optio... | |
doc_20891 |
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. | |
doc_20892 | tkinter.WRITABLE
tkinter.EXCEPTION
Constants used in the mask arguments. | |
doc_20893 | Return whether the process is alive. Roughly, a process object is alive from the moment the start() method returns until the child process terminates. | |
doc_20894 |
Return the minimal required width for the cell. | |
doc_20895 | See Migration guide for more details. tf.compat.v1.raw_ops.TextLineReaderV2
tf.raw_ops.TextLineReaderV2(
skip_header_lines=0, container='', shared_name='', name=None
)
Args
skip_header_lines An optional int. Defaults to 0. Number of lines to skip from the beginning of every file.
container An opti... | |
doc_20896 | Play the SystemDefault sound. | |
doc_20897 | pty.fork()
Fork. Connect the child’s controlling terminal to a pseudo-terminal. Return value is (pid, fd). Note that the child gets pid 0, and the fd is invalid. The parent’s return value is the pid of the child, and fd is a file descriptor connected to the child’s controlling terminal (and also to the child’s standa... | |
doc_20898 |
Call self as a function. | |
doc_20899 | Return a new instance of the FTP class. When host is given, the method call connect(host) is made. When user is given, additionally the method call login(user, passwd, acct) is made (where passwd and acct default to the empty string when not given). The optional timeout parameter specifies a timeout in seconds for bloc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.