_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_23400 |
Bases: matplotlib.transforms.Transform Parameters
shorthand_namestr
A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when DEBUG=True. has_inverse=True
True if this transform has a corresponding inverse transform. ... | |
doc_23401 | Returns the QUERY_STRING from the WSGI environment. This also takes care of the WSGI decoding dance. The string returned will be restricted to ASCII characters. Parameters
environ (WSGIEnvironment) – WSGI environment to get the query string from. Return type
str Changelog New in version 0.9. | |
doc_23402 | A sequence defining the structure fields. The items must be 2-tuples or 3-tuples. The first item is the name of the field, the second item specifies the type of the field; it can be any ctypes data type. For integer type fields like c_int, a third optional item can be given. It must be a small positive integer defining... | |
doc_23403 | torch.utils.cpp_extension.CppExtension(name, sources, *args, **kwargs) [source]
Creates a setuptools.Extension for C++. Convenience method that creates a setuptools.Extension with the bare minimum (but often sufficient) arguments to build a C++ extension. All arguments are forwarded to the setuptools.Extension constr... | |
doc_23404 |
Perform floor operation on the data to the specified freq. Parameters
freq:str or Offset
The frequency level to floor the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possible freq values.
ambiguous:‘infer’, bool-ndarray, ‘NaT’, default ‘raise... | |
doc_23405 | A helper function to create a mock to replace the use of open(). It works for open() called directly or used as a context manager. The mock argument is the mock object to configure. If None (the default) then a MagicMock will be created for you, with the API limited to methods or attributes available on standard file h... | |
doc_23406 |
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_23407 | Return True if the Windows edition returned by win32_edition() is recognized as an IoT edition. New in version 3.8. | |
doc_23408 | Exception.with_traceback(tb) – set self.__traceback__ to tb and return self. | |
doc_23409 |
encode(session_dict)
Returns the given session dictionary serialized and encoded as a string. Encoding is performed by the session store class tied to a model class.
save(session_key, session_dict, expire_date)
Saves session data for a provided session key, or deletes the session in case the data is empty. | |
doc_23410 | Return a new database object by calling MsiOpenDatabase. path is the file name of the MSI file; persist can be one of the constants MSIDBOPEN_CREATEDIRECT, MSIDBOPEN_CREATE, MSIDBOPEN_DIRECT, MSIDBOPEN_READONLY, or MSIDBOPEN_TRANSACT, and may include the flag MSIDBOPEN_PATCHFILE. See the Microsoft documentation for the... | |
doc_23411 | URL of the resource retrieved, commonly used to determine if a redirect was followed. | |
doc_23412 | moves the rectangle inside another clamp(Rect) -> Rect Returns a new rectangle that is moved to be completely inside the argument Rect. If the rectangle is too large to fit inside, it is centered inside the argument Rect, but its size is not changed. | |
doc_23413 |
Alias for get_facecolor. | |
doc_23414 | This takes a binary file for reading a pickle data stream. The protocol version of the pickle is detected automatically, so no protocol argument is needed. The argument file must have three methods, a read() method that takes an integer argument, a readinto() method that takes a buffer argument and a readline() method ... | |
doc_23415 | Applies fn recursively to every submodule (as returned by .children()) as well as self. Typical use includes initializing the parameters of a model (see also torch.nn.init). Parameters
fn (Module -> None) – function to be applied to each submodule Returns
self Return type
Module Example: >>> @torch.no_grad()
>>... | |
doc_23416 | tf.sinh Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.sinh, tf.compat.v1.sinh
tf.math.sinh(
x, name=None
)
Given an input tensor, this function computes hyperbolic sine of every element in the tensor. Input range is [-inf,inf] and output range is [-inf,inf]. x = tf.constant... | |
doc_23417 | Return the Process object corresponding to the parent process of the current_process(). For the main process, parent_process will be None. New in version 3.8. | |
doc_23418 |
Alias for set_edgecolor. | |
doc_23419 | Remove and return an arbitrary element from the set. Raises KeyError if the set is empty. | |
doc_23420 | rotates a vector by a given angle in degrees. rotate(angle, Vector3) -> Vector3 Returns a vector which has the same length as self but is rotated counterclockwise by the given angle in degrees around the given axis. | |
doc_23421 | Returns the indices that sort a tensor along a given dimension in ascending order by value. This is the second value returned by torch.sort(). See its documentation for the exact semantics of this method. Parameters
input (Tensor) – the input tensor.
dim (int, optional) – the dimension to sort along
descending (b... | |
doc_23422 | Returns a list of all hyperparameter. | |
doc_23423 |
Waits for all kernels in all streams on a CUDA device to complete. Parameters
device (torch.device or int, optional) – device for which to synchronize. It uses the current device, given by current_device(), if device is None (default). | |
doc_23424 |
Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise. See also char.isspace | |
doc_23425 | tf.compat.v1.container(
container_name
)
Args
container_name The container string to use in the context.
Returns A context manager that specifies the default container to use for newly created stateful ops. | |
doc_23426 | An integer keeping track of how many times the mock object has been awaited. >>> mock = AsyncMock()
>>> async def main():
... await mock()
...
>>> asyncio.run(main())
>>> mock.await_count
1
>>> asyncio.run(main())
>>> mock.await_count
2 | |
doc_23427 |
Return the gradient of an N-dimensional array. The gradient is computed using second order accurate central differences in the interior points and either first or second order accurate one-sides (forward or backwards) differences at the boundaries. The returned gradient hence has the same shape as the input array. P... | |
doc_23428 | The line corresponding to pos. | |
doc_23429 |
Callback for dragging in pan/zoom mode. | |
doc_23430 | Add character properties to the global registry. charset is the input character set, and must be the canonical name of a character set. Optional header_enc and body_enc is either Charset.QP for quoted-printable, Charset.BASE64 for base64 encoding, Charset.SHORTEST for the shortest of quoted-printable or base64 encoding... | |
doc_23431 | Define match test with regular expression patterns. | |
doc_23432 | time used in the previous tick get_time() -> milliseconds The number of milliseconds that passed between the previous two calls to Clock.tick(). | |
doc_23433 | Called for character data. This will be called for normal character data, CDATA marked content, and ignorable whitespace. Applications which must distinguish these cases can use the StartCdataSectionHandler, EndCdataSectionHandler, and ElementDeclHandler callbacks to collect the required information. | |
doc_23434 |
Returns the backend of the given process group. Parameters
group (ProcessGroup, optional) – The process group to work on. The default is the general main process group. If another specific group is specified, the calling process must be part of group. Returns
The backend of the given process group as a lower case... | |
doc_23435 | Set show_full_result_count to control whether the full count of objects should be displayed on a filtered admin page (e.g. 99 results (103 total)). If this option is set to False, a text like 99 results (Show all) is displayed instead. The default of show_full_result_count=True generates a query to perform a full count... | |
doc_23436 | Print the stack or traceback for this Task. This produces output similar to that of the traceback module for the frames retrieved by get_stack(). The limit argument is passed to get_stack() directly. The file argument is an I/O stream to which the output is written; by default output is written to sys.stderr. | |
doc_23437 |
Iterate over info axis. Returns
iterator
Info axis as iterator. | |
doc_23438 | tf.debugging.assert_integer(
x, message=None, name=None
)
If x has a non-integer type, message, as well as the dtype of x are printed, and InvalidArgumentError is raised. This can always be checked statically, so this method returns nothing.
Args
x A Tensor.
message A string to prefix to the default... | |
doc_23439 |
Returns the number of splitting iterations in the cross-validator Parameters
Xobject
Always ignored, exists for compatibility.
yobject
Always ignored, exists for compatibility.
groupsobject
Always ignored, exists for compatibility. Returns
n_splitsint
Returns the number of splitting iterations i... | |
doc_23440 | Scheduling policy for sporadic server programs. | |
doc_23441 |
Compute the Heaviside step function. The Heaviside step function is defined as: 0 if x1 < 0
heaviside(x1, x2) = x2 if x1 == 0
1 if x1 > 0
where x2 is often taken to be 0.5, but 0 and 1 are also sometimes used. Parameters
x1array_like
Input values.
x2array_li... | |
doc_23442 | Returns number of audio channels (1 for mono, 2 for stereo). | |
doc_23443 |
Used if copy.copy is called on an array. Returns a copy of the array. Equivalent to a.copy(order='K'). | |
doc_23444 |
DateOffset of one month at beginning. Attributes
base Returns a copy of the calling offset object with n=1 and all other attributes equal.
freqstr
kwds
n
name
nanos
normalize
rule_code Methods
__call__(*args, **kwargs) Call self as a function.
rollback Roll provided dat... | |
doc_23445 |
Draw samples from a Beta distribution. The Beta distribution is a special case of the Dirichlet distribution, and is related to the Gamma distribution. It has the probability distribution function \[f(x; a,b) = \frac{1}{B(\alpha, \beta)} x^{\alpha - 1} (1 - x)^{\beta - 1},\] where the normalization, B, is the beta f... | |
doc_23446 |
Return the next floating-point value after x1 towards x2, element-wise. Parameters
x1array_like
Values to find the next representable value of.
x2array_like
The direction where to look for the next representable value of x1. If x1.shape != x2.shape, they must be broadcastable to a common shape (which become... | |
doc_23447 | Read the current file as bytes. | |
doc_23448 | See Migration guide for more details. tf.compat.v1.raw_ops.ShardDataset
tf.raw_ops.ShardDataset(
input_dataset, num_shards, index, output_types, output_shapes,
require_non_empty=False, name=None
)
Args
input_dataset A Tensor of type variant.
num_shards A Tensor of type int64. An integer repres... | |
doc_23449 | See Migration guide for more details. tf.compat.v1.summary.SessionLog
Attributes
checkpoint_path string checkpoint_path
msg string msg
status SessionStatus status
Class Variables
CHECKPOINT 3
START 1
STATUS_UNSPECIFIED 0
STOP 2
SessionStatus | |
doc_23450 | Optional. Whether or not the first page is allowed to be empty. If False and object_list is empty, then an EmptyPage error will be raised. | |
doc_23451 |
Recompute the data limits based on current artists. At present, Collection instances are not supported. Parameters
visible_onlybool, default: False
Whether to exclude invisible artists.
Examples using matplotlib.axes.Axes.relim
Packed-bubble chart
Textbox | |
doc_23452 |
Return whether vmin and vmax are set. | |
doc_23453 |
Retained for backwards compatibility - use set_data instead. Parameters
Aarray-like | |
doc_23454 | See Migration guide for more details. tf.compat.v1.estimator.experimental.InMemoryEvaluatorHook
tf.estimator.experimental.InMemoryEvaluatorHook(
estimator, input_fn, steps=None, hooks=None, name=None, every_n_iter=100
)
Example: def train_input_fn():
...
return train_dataset
def eval_input_fn():
...
ret... | |
doc_23455 | get the joystick GUID get_guid() -> str Get the GUID string. This identifies the exact hardware of the joystick device. New in pygame 2.0.0dev11. | |
doc_23456 |
List of Axes in the Figure. You can access and modify the Axes in the Figure through this list. Do not modify the list itself. Instead, use add_axes, add_subplot or delaxes to add or remove an Axes. Note: The Figure.axes property and get_axes method are equivalent. | |
doc_23457 | Simply handles the multiplication between the parameter being pruned and the generated mask. Fetches the mask and the original tensor from the module and returns the pruned version of the tensor. Parameters
module (nn.Module) – module containing the tensor to prune Returns
pruned version of the input tensor Return... | |
doc_23458 |
Insert a call_function Node into the Graph. A call_function node represents a call to a Python callable, specified by the_function. the_function can be Parameters
the_function (Callable[.., Any]) – The function to be called. Can be any PyTorch operator, Python function, or member of the builtins or operator names... | |
doc_23459 |
Remove axes of length one from a. Refer to numpy.squeeze for full documentation. See also numpy.squeeze
equivalent function | |
doc_23460 | See Migration guide for more details. tf.compat.v1.saved_model.Asset
tf.saved_model.Asset(
path
)
A SavedModel can include arbitrary files, called assets, that are needed for its use. For example a vocabulary file used initialize a lookup table. When a trackable object is exported via tf.saved_model.save(), all ... | |
doc_23461 |
Getter for the precision matrix. Returns
precision_array-like of shape (n_features, n_features)
The precision matrix associated to the current covariance object. | |
doc_23462 | Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. If the pattern isn’t found, string is returned unchanged. repl can be a string or a function; if it is a string, any backslash escapes in it are processed. That is, \n is converted to a single ... | |
doc_23463 | Base class for defining type tags for TaggedJSONSerializer. Parameters
serializer (TaggedJSONSerializer) – Return type
None
check(value)
Check if the given value should be tagged by this tag. Parameters
value (Any) – Return type
bool
key: Optional[str] = None
The tag to mark the serialized objec... | |
doc_23464 | True if the tracemalloc module is tracing Python memory allocations, False otherwise. See also start() and stop() functions. | |
doc_23465 | Create a shared Namespace object and return a proxy for it. | |
doc_23466 | Match this path against the provided glob-style pattern. Return True if matching is successful, False otherwise. If pattern is relative, the path can be either relative or absolute, and matching is done from the right: >>> PurePath('a/b.py').match('*.py')
True
>>> PurePath('/a/b/c.py').match('b/*.py')
True
>>> PurePath... | |
doc_23467 |
Show plugin. | |
doc_23468 |
lars_path in the sufficient stats mode [1] The optimization objective for the case method=’lasso’ is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1
in the case of method=’lars’, the objective function is only known in the form of an implicit equation (see discussion in [1]) Read more in the User Guide. P... | |
doc_23469 | sklearn.utils.graph.single_source_shortest_path_length(graph, source, *, cutoff=None) [source]
Return the shortest path length from source to all reachable nodes. Returns a dictionary of shortest path lengths keyed by target. Parameters
graph{sparse matrix, ndarray} of shape (n, n)
Adjacency matrix of the graph... | |
doc_23470 | b'\xf6'
>>> "ö".encode("utf-8")
b'\xc3\xb6'
An ö looks different depending on the encoding which makes it hard to work with it as bytes. Instead, Python treats strings as Unicode text and stores the information LATIN SMALL LETTER O WITH DIAERESIS instead of the bytes for ö in a specific encoding. The length of a strin... | |
doc_23471 |
Update this artist's properties from the dict props. Parameters
propsdict | |
doc_23472 |
Set the child Axes which is grabbing the mouse events. Usually called by the widgets themselves. It is an error to call this if the mouse is already grabbed by another axes. | |
doc_23473 |
Histogram-based Gradient Boosting Classification Tree. This estimator is much faster than GradientBoostingClassifier for big datasets (n_samples >= 10 000). This estimator has native support for missing values (NaNs). During training, the tree grower learns at each split point whether samples with missing values shou... | |
doc_23474 | sklearn.metrics.multilabel_confusion_matrix(y_true, y_pred, *, sample_weight=None, labels=None, samplewise=False) [source]
Compute a confusion matrix for each class or sample. New in version 0.21. Compute class-wise (default) or sample-wise (samplewise=True) multilabel confusion matrix to evaluate the accuracy of a... | |
doc_23475 | A non-ASCII character encodable by os.fsencode(). | |
doc_23476 | Delete a cookie. Fails silently if key doesn’t exist. Parameters
key (str) – the key (name) of the cookie to be deleted.
path (str) – if the cookie that should be deleted was limited to a path, the path has to be defined here.
domain (Optional[str]) – if the cookie that should be deleted was limited to a domain, ... | |
doc_23477 |
Returns whether the kernel is stationary. | |
doc_23478 |
A nicer way to build up index tuples for arrays. Note Use one of the two predefined instances index_exp or s_ rather than directly using IndexExpression. For any index combination, including slicing and axis insertion, a[indices] is the same as a[np.index_exp[indices]] for any array a. However, np.index_exp[indices... | |
doc_23479 |
Pads the input tensor boundaries with a constant value. 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 4-tuple, uses (padding_left\text{padding\_left} , padding_right\text{padding\_right} ,... | |
doc_23480 |
Add a vertical line across the Axes. Parameters
xfloat, default: 0
x position in data coordinates of the vertical line.
yminfloat, default: 0
Should be between 0 and 1, 0 being the bottom of the plot, 1 the top of the plot.
ymaxfloat, default: 1
Should be between 0 and 1, 0 being the bottom of the plot,... | |
doc_23481 | Extensible JSON encoder for Python data structures. Supports the following objects and types by default:
Python JSON
dict object
list, tuple array
str string
int, float, int- & float-derived Enums number
True true
False false
None null Changed in version 3.4: Added support for int- and float-derive... | |
doc_23482 |
Set the depth of the axis used by the picker. Parameters
pickradiusfloat | |
doc_23483 | Insert an entry into the list of warnings filter specifications. The entry is inserted at the front by default; if append is true, it is inserted at the end. This checks the types of the arguments, compiles the message and module regular expressions, and inserts them as a tuple in the list of warnings filters. Entries ... | |
doc_23484 | Return the line number in the current file. Before the first line has been read, returns 0. After the last line of the last file has been read, returns the line number of that line within the file. | |
doc_23485 |
Context-manager that enables gradient calculation. Enables gradient calculation, if it has been disabled via no_grad or set_grad_enabled. This context manager is thread local; it will not affect computation in other threads. Also functions as a decorator. (Make sure to instantiate with parenthesis.) Example: >>> x = ... | |
doc_23486 |
Element-wise maximum of array elements. Compare two arrays and returns a new array containing the element-wise maxima. If one of the elements being compared is a NaN, then the non-nan element is returned. If both elements are NaNs then the first is returned. The latter distinction is important for complex NaNs, which... | |
doc_23487 |
Set multiple properties at once. Supported properties are
Property Description
adjustable {'box', 'datalim'}
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
anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}... | |
doc_23488 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListFromTensor
tf.raw_ops.TensorListFromTensor(
tensor, element_shape, name=None
)
Each tensor in the result list corresponds to one row of the input tensor. tensor: The input tensor. output_handle: The list.
Args
tensor A Tensor.
elem... | |
doc_23489 | In range(60). | |
doc_23490 |
Set the parameters of this kernel. The method works on simple kernels as well as on nested kernels. The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Returns
self | |
doc_23491 | Convert the color from RGB coordinates to YIQ coordinates. | |
doc_23492 |
Python buffer object pointing to the start of the array’s data. | |
doc_23493 | Delete old mailbox named mailbox. | |
doc_23494 |
return a list of final CPU dispatch feature names | |
doc_23495 | Modify the view, by calling MsiViewModify(). kind can be one of MSIMODIFY_SEEK, MSIMODIFY_REFRESH, MSIMODIFY_INSERT, MSIMODIFY_UPDATE, MSIMODIFY_ASSIGN, MSIMODIFY_REPLACE, MSIMODIFY_MERGE, MSIMODIFY_DELETE, MSIMODIFY_INSERT_TEMPORARY, MSIMODIFY_VALIDATE, MSIMODIFY_VALIDATE_NEW, MSIMODIFY_VALIDATE_FIELD, or MSIMODIFY_VA... | |
doc_23496 | The impurity-based feature importances. The higher, the more important the feature. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardin... | |
doc_23497 | Depending upon the host platform, it may not be possible to remove the underlying message while the returned file remains open. | |
doc_23498 |
Shift values by desired number. Newly introduced missing values are filled with self.dtype.na_value. Parameters
periods:int, default 1
The number of periods to shift. Negative values are allowed for shifting backwards.
fill_value:object, optional
The scalar value to use for newly introduced missing values. ... | |
doc_23499 |
Return whether face is colored. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.