_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_16400 |
Multiplies (‘scales’) a tensor or list of tensors by the scale factor. Returns scaled outputs. If this instance of GradScaler is not enabled, outputs are returned unmodified. Parameters
outputs (Tensor or iterable of Tensors) – Outputs to scale. | |
doc_16401 | The file is a snapshot file. | |
doc_16402 |
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_16403 | Constructs a complex tensor with its real part equal to real and its imaginary part equal to imag. Parameters
real (Tensor) – The real part of the complex tensor. Must be float or double.
imag (Tensor) – The imaginary part of the complex tensor. Must be same dtype as real. Keyword Arguments
out (Tensor) – If th... | |
doc_16404 |
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_16405 |
Fit LinearDiscriminantAnalysis model according to the given
training data and parameters. Changed in version 0.19: store_covariance has been moved to main constructor. Changed in version 0.19: tol has been moved to main constructor. Parameters
Xarray-like of shape (n_samples, n_features)
Training data. ... | |
doc_16406 | Return the current shape polygon as tuple of coordinate pairs. This can be used to define a new shape or components of a compound shape. >>> turtle.shape("square")
>>> turtle.shapetransform(4, -1, 0, 2)
>>> turtle.get_shapepoly()
((50, -20), (30, 20), (-50, 20), (-30, -20)) | |
doc_16407 |
Return the tick labels for all the ticks at once. | |
doc_16408 | sklearn.metrics.plot_precision_recall_curve(estimator, X, y, *, sample_weight=None, response_method='auto', name=None, ax=None, pos_label=None, **kwargs) [source]
Plot Precision Recall Curve for binary classifiers. Extra keyword arguments will be passed to matplotlib’s plot. Read more in the User Guide. Parameters
... | |
doc_16409 |
Learn the features to select. Parameters
Xarray-like of shape (n_samples, n_features)
Training vectors.
yarray-like of shape (n_samples,)
Target values. Returns
selfobject | |
doc_16410 | In-place version of neg() | |
doc_16411 |
Like Artist.get_window_extent, but includes any clipping. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns
Bbox
The enclosing bounding box (in figure pixel coordinates). | |
doc_16412 | See Migration guide for more details. tf.compat.v1.keras.initializers.random_uniform, tf.compat.v1.keras.initializers.uniform
tf.compat.v1.keras.initializers.RandomUniform(
minval=-0.05, maxval=0.05, seed=None, dtype=tf.dtypes.float32
)
Args
minval A python scalar or a scalar tensor. Lower bound of the ... | |
doc_16413 | A set object indicating whether os.access() permits specifying True for its effective_ids parameter on the local platform. (Specifying False for effective_ids is always supported on all platforms.) If the local platform supports it, the collection will contain os.access(); otherwise it will be empty. This expression ev... | |
doc_16414 |
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_16415 | See Migration guide for more details. tf.compat.v1.raw_ops.TanhGrad
tf.raw_ops.TanhGrad(
y, dy, name=None
)
Specifically, grad = dy * (1 - y*y), where y = tanh(x), and dy is the corresponding input gradient.
Args
y A Tensor. Must be one of the following types: bfloat16, half, float32, float64, complex64... | |
doc_16416 |
Return the Bbox. | |
doc_16417 | class concurrent.futures.Executor
An abstract class that provides methods to execute calls asynchronously. It should not be used directly, but through its concrete subclasses.
submit(fn, /, *args, **kwargs)
Schedules the callable, fn, to be executed as fn(*args **kwargs) and returns a Future object representing t... | |
doc_16418 | Return the turtle’s y coordinate. >>> turtle.home()
>>> turtle.left(60)
>>> turtle.forward(100)
>>> print(turtle.pos())
(50.00,86.60)
>>> print(round(turtle.ycor(), 5))
86.60254 | |
doc_16419 | Dispatches the request and on top of that performs request pre and postprocessing as well as HTTP exception catching and error handling. Changelog New in version 0.7. Return type
flask.wrappers.Response | |
doc_16420 |
Subtract one Hermite series from another. Returns the difference of two Hermite series c1 - c2. The sequences of coefficients are from lowest order term to highest, i.e., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters
c1, c2array_like
1-D arrays of Hermite series coefficients ordered from low to ... | |
doc_16421 | Works like as_sql() method. When an expression is compiled by compiler.compile(), Django will first try to call as_vendorname(), where vendorname is the vendor name of the backend used for executing the query. The vendorname is one of postgresql, oracle, sqlite, or mysql for Django’s built-in backends. | |
doc_16422 |
Alias for set_multialignment. | |
doc_16423 | See Migration guide for more details. tf.compat.v1.fingerprint
tf.fingerprint(
data, method='farmhash64', name=None
)
Generates fingerprint values of data. Fingerprint op considers the first dimension of data as the batch dimension, and output[i] contains the fingerprint value generated from contents in data[i, ... | |
doc_16424 | Exit the runtime context and return a Boolean flag indicating if any exception that occurred should be suppressed. If an exception occurred while executing the body of the with statement, the arguments contain the exception type, value and traceback information. Otherwise, all three arguments are None. Returning a true... | |
doc_16425 | See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingProximalAdagradParametersGradAccumDebug
tf.raw_ops.LoadTPUEmbeddingProximalAdagradParametersGradAccumDebug(
parameters, accumulators, gradient_accumulators, num_shards, shard_id,
table_id=-1, table_name='', config='', name=None
)
An o... | |
doc_16426 | Calculates the pseudo-inverse (also known as the Moore-Penrose inverse) of a 2D tensor. Please look at Moore-Penrose inverse for more details Note torch.pinverse() is deprecated. Please use torch.linalg.pinv() instead which includes new parameters hermitian and out. Note This method is implemented using the Singular... | |
doc_16427 | Address headers are one of the most complex structured header types. The AddressHeader class provides a generic interface to any address header. This header type provides the following additional attributes:
groups
A tuple of Group objects encoding the addresses and groups found in the header value. Addresses that ... | |
doc_16428 | See Migration guide for more details. tf.compat.v1.errors.NotFoundError
tf.errors.NotFoundError(
node_def, op, message
)
For example, running the tf.WholeFileReader.read operation could raise NotFoundError if it receives the name of a file that does not exist.
Attributes
error_code The integer error cod... | |
doc_16429 |
Learn vocabulary and idf from training set. Parameters
raw_documentsiterable
An iterable which yields either str, unicode or file objects.
yNone
This parameter is not needed to compute tfidf. Returns
selfobject
Fitted vectorizer. | |
doc_16430 |
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also
set_picker, get_picker, pickable | |
doc_16431 | Return an iterable of the weak references to the keys. | |
doc_16432 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixTranspose
tf.raw_ops.SparseMatrixTranspose(
input, type, conjugate=False, name=None
)
Transposes the inner (matrix) dimensions of a SparseMatrix and optionally conjugates its values.
Args
input A Tensor of type variant. A CSRSparseMa... | |
doc_16433 | if self.request.version == 'v1':
return AccountSerializerVersion1
return AccountSerializer
Reversing URLs for versioned APIs The reverse function included by REST framework ties in with the versioning scheme. You need to make sure to include the current request as a keyword argument, like so. from rest... | |
doc_16434 |
Bases: matplotlib.mathtext.MathtextBackend [Deprecated] Store information to write a mathtext rendering to the Cairo backend. Notes Deprecated since version 3.4. get_results(box, used_characters)[source]
Return a backend-specific tuple to return to the backend after all processing is done.
render_glyph(ox, ... | |
doc_16435 |
Return a subset of the DataFrame’s columns based on the column dtypes. Parameters
include, exclude:scalar or list-like
A selection of dtypes or strings to be included/excluded. At least one of these parameters must be supplied. Returns
DataFrame
The subset of the frame including the dtypes in include and ... | |
doc_16436 |
The ExtensionArray of the data backing this Series or Index. Returns
ExtensionArray
An ExtensionArray of the values stored within. For extension types, this is the actual array. For NumPy native types, this is a thin (no copy) wrapper around numpy.ndarray. .array differs .values which may require converting the d... | |
doc_16437 |
Scalar method identical to the corresponding array attribute. Please see ndarray.setflags. | |
doc_16438 |
Return Equal to of series and other, element-wise (binary operator eq). Equivalent to series == other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters
other:Series or scalar value
fill_value:None or float value, default None (NaN)
Fill existing missing (NaN... | |
doc_16439 |
An object that can be passed as an argument to the numpy.dtype constructor to create the array’s dtype. “fortran_order”bool
Whether the array data is Fortran-contiguous or not. Since Fortran-contiguous arrays are a common form of non-C-contiguity, we allow them to be written directly to disk for efficiency. “shap... | |
doc_16440 | Flush the write buffers of the stream if applicable. This does nothing for read-only and non-blocking streams. | |
doc_16441 | The size in bytes of each element of the memoryview: >>> import array, struct
>>> m = memoryview(array.array('H', [32000, 32001, 32002]))
>>> m.itemsize
2
>>> m[0]
32000
>>> struct.calcsize('H') == m.itemsize
True | |
doc_16442 | os.execle(path, arg0, arg1, ..., env)
os.execlp(file, arg0, arg1, ...)
os.execlpe(file, arg0, arg1, ..., env)
os.execv(path, args)
os.execve(path, args, env)
os.execvp(file, args)
os.execvpe(file, args, env)
These functions all execute a new program, replacing the current process; they do not return. On U... | |
doc_16443 | See Migration guide for more details. tf.compat.v1.raw_ops.DivNoNan
tf.raw_ops.DivNoNan(
x, y, name=None
)
Note: DivNoNan supports broadcasting. More about broadcasting here
Args
x A Tensor. Must be one of the following types: half, float32, float64, complex64, complex128.
y A Tensor. Must have ... | |
doc_16444 | A generic version of collections.abc.Mapping. This type can be used as follows: def get_position_in_index(word_list: Mapping[str, int], word: str) -> int:
return word_list[word]
Deprecated since version 3.9: collections.abc.Mapping now supports []. See PEP 585 and Generic Alias Type. | |
doc_16445 |
An ExtensionDtype for Period data. This is not an actual numpy dtype, but a duck type. Parameters
freq:str or DateOffset
The frequency of this PeriodDtype. Examples
>>> pd.PeriodDtype(freq='D')
period[D]
>>> pd.PeriodDtype(freq=pd.offsets.MonthEnd())
period[M]
Attributes
freq The frequency obje... | |
doc_16446 | Parse an RFC 2822 date into a timezone-aware datetime.datetime object, or None if parsing fails. This is a wrapper for email.utils.parsedate_to_datetime(). It returns None if parsing fails instead of raising an exception, and always returns a timezone-aware datetime object. If the string doesn’t have timezone informati... | |
doc_16447 | Computes a tensor x such that tensordot(input, x, dims=x.ndim) = other. The resulting tensor x has the same shape as input[other.ndim:]. Supports real-valued and complex-valued inputs. Note If input does not satisfy the requirement prod(input.shape[other.ndim:]) == prod(input.shape[:other.ndim]) after (optionally) mov... | |
doc_16448 | Return whether the instance has the named header (checks both regular and unredirected). | |
doc_16449 |
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_16450 | Return the Real value x truncated to an Integral (usually an integer). Delegates to x.__trunc__(). | |
doc_16451 | Return the value of the named header field. name should not include the colon field separator. If the header is missing, None is returned; a KeyError is never raised. Note that if the named field appears more than once in the message’s headers, exactly which of those field values will be returned is undefined. Use the ... | |
doc_16452 | gc.enable()
Enable automatic garbage collection.
gc.disable()
Disable automatic garbage collection.
gc.isenabled()
Return True if automatic collection is enabled.
gc.collect(generation=2)
With no arguments, run a full collection. The optional argument generation may be an integer specifying which ge... | |
doc_16453 |
Alias for set_linewidth. | |
doc_16454 |
Compute mean of groups, excluding missing values. Parameters
numeric_only:bool, default True
Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data.
engine:str, default None
'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs... | |
doc_16455 |
Return whether (x, y) is in the bounding box or on its edge. | |
doc_16456 | Data found after the end of the compressed stream. If this attribute is accessed before the end of the stream has been reached, its value will be b''. | |
doc_16457 | Raised when an operation runs out of memory but the situation may still be rescued (by deleting some objects). The associated value is a string indicating what kind of (internal) operation ran out of memory. Note that because of the underlying memory management architecture (C’s malloc() function), the interpreter may ... | |
doc_16458 |
sc.__array__(dtype) return 0-dim array from scalar with specified dtype | |
doc_16459 | Create a string buffer from a TarInfo object. For information on the arguments see the constructor of the TarFile class. Changed in version 3.2: Use 'surrogateescape' as the default for the errors argument. | |
doc_16460 |
Empty masked array with the properties of an existing array. Return an empty masked array of the same shape and dtype as the array arr, where all the data are masked. Parameters
arrndarray
An array describing the shape and dtype of the required MaskedArray. Returns
aMaskedArray
A masked array with all d... | |
doc_16461 |
Set the location of theta's zero. This simply calls set_theta_offset with the correct value in radians. Parameters
locstr
May be one of "N", "NW", "W", "SW", "S", "SE", "E", or "NE".
offsetfloat, default: 0
An offset in degrees to apply from the specified loc. Note: this offset is always applied counter-clo... | |
doc_16462 |
return a list of floats | |
doc_16463 | Simple base class for visible game objects. Sprite(*groups) -> Sprite The base class for visible game objects. Derived classes will want to override the Sprite.update() and assign a Sprite.image and Sprite.rect attributes. The initializer can accept any number of Group instances to be added to. When subclassing the S... | |
doc_16464 |
Project the points according to renderer matrix. | |
doc_16465 | tf.compat.v1.data.experimental.RandomDataset(
seed=None
)
Attributes
element_spec The type specification of an element of this dataset.
dataset = tf.data.Dataset.from_tensor_slices([1, 2, 3])
dataset.element_spec
TensorSpec(shape=(), dtype=tf.int32, name=None)
output_classes Returns the class of e... | |
doc_16466 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_16467 | Raises a ValidationError with a code of 'max_length' if the length of value is greater than limit_value, which may be a callable. | |
doc_16468 | Column number at which an error occurred. | |
doc_16469 |
Flat iterator object to iterate over arrays. A flatiter iterator is returned by x.flat for any array x. It allows iterating over the array as if it were a 1-D array, either in a for-loop or by calling its next method. Iteration is done in row-major, C-style order (the last index varying the fastest). The iterator can... | |
doc_16470 |
Close a grouping element with label s. Only used by the SVG renderer. | |
doc_16471 |
Set the data limits for the radial axis. Parameters
bottomfloat, optional
The bottom limit (default: None, which leaves the bottom limit unchanged). The bottom and top ylims may be passed as the tuple (bottom, top) as the first positional argument (or as the bottom keyword argument).
topfloat, optional
The ... | |
doc_16472 | map-style and iterable-style datasets,
customizing data loading order,
automatic batching,
single- and multi-process data loading,
automatic memory pinning. These options are configured by the constructor arguments of a DataLoader, which has signature: DataLoader(dataset, batch_size=1, shuffle=False, sampler=None,... | |
doc_16473 | See Migration guide for more details. tf.compat.v1.RandomShuffleQueue, tf.compat.v1.io.RandomShuffleQueue, tf.compat.v1.queue.RandomShuffleQueue
tf.queue.RandomShuffleQueue(
capacity, min_after_dequeue, dtypes, shapes=None, names=None, seed=None,
shared_name=None, name='random_shuffle_queue'
)
See tf.queue.Q... | |
doc_16474 |
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_16475 | This filter accepts a callback function (which should accept a single argument, the record to be logged), and calls it for each record that passes through the filter. Handling of that record will not proceed if the callback returns False. For instance, to filter out UnreadablePostError (raised when a user cancels an up... | |
doc_16476 | Stops the worker processes immediately without completing outstanding work. When the pool object is garbage collected terminate() will be called immediately. | |
doc_16477 | class sklearn.svm.SVR(*, kernel='rbf', degree=3, gamma='scale', coef0=0.0, tol=0.001, C=1.0, epsilon=0.1, shrinking=True, cache_size=200, verbose=False, max_iter=- 1) [source]
Epsilon-Support Vector Regression. The free parameters in the model are C and epsilon. The implementation is based on libsvm. The fit time com... | |
doc_16478 | The base class for implementing protocols communicating with child processes (unidirectional pipes). | |
doc_16479 | socket.PF_CAN
SOL_CAN_*
CAN_*
Many constants of these forms, documented in the Linux documentation, are also defined in the socket module. Availability: Linux >= 2.6.25. New in version 3.3. | |
doc_16480 | An attribute was used more than once in a start tag. | |
doc_16481 | class http.client.HTTPConnection(host, port=None, [timeout, ]source_address=None, blocksize=8192)
An HTTPConnection instance represents one transaction with an HTTP server. It should be instantiated passing it a host and optional port number. If no port number is passed, the port is extracted from the host string if ... | |
doc_16482 | Release the underlying buffer exposed by the PickleBuffer object. | |
doc_16483 |
Gets the name of a device. Parameters
device (torch.device or int, optional) – device for which to return the name. This function is a no-op if this argument is a negative integer. It uses the current device, given by current_device(), if device is None (default). Returns
the name of the device Return type
str | |
doc_16484 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessCase
tf.raw_ops.StatelessCase(
branch_index, input, Tout, branches, output_shapes=[], name=None
)
An n-way switch statement, implementing the following:
```
switch (branch_index) {
case 0:
output = branches[0](input);
break;
case 1:... | |
doc_16485 | Return True if the Future is done. A Future is done if it was cancelled or if it has a result or an exception set with set_result() or set_exception() calls. | |
doc_16486 |
A dictionary mapping Path codes to the number of vertices that the code expects. | |
doc_16487 |
Finds the K-neighbors of a point. Returns indices of and distances to the neighbors of each point. Parameters
Xarray-like, shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’, default=None
The query point or points. If not provided, neighbors of each indexed point are returned. I... | |
doc_16488 |
Return an array containing the floating-point values of the positions. | |
doc_16489 |
Temporarily adjust the figure so that only the specified area (bbox_inches) is saved. It modifies fig.bbox, fig.bbox_inches, fig.transFigure._boxout, and fig.patch. While the figure size changes, the scale of the original figure is conserved. A function which restores the original values are returned. | |
doc_16490 | Computes the singular value decomposition of either a matrix or batch of matrices input.” The singular value decomposition is represented as a namedtuple (U, S, Vh), such that input=U@diag(S)×Vhinput = U \mathbin{@} diag(S) \times Vh . If input is a batch of tensors, then U, S, and Vh are also batched with the same bat... | |
doc_16491 | Returns True if the user for the given HttpRequest has permission to view at least one page in the admin site. Defaults to requiring both User.is_active and User.is_staff to be True. | |
doc_16492 | tf.nn.RNNCellResidualWrapper(
*args, **kwargs
)
Args
cell An instance of RNNCell.
residual_fn (Optional) The function to map raw cell inputs and raw cell outputs to the actual cell outputs of the residual network. Defaults to calling nest.map_structure on (lambda i, o: i + o), inputs and outputs.
... | |
doc_16493 | DEPRECATED: Use get_init() instead. was_init() -> bool DEPRECATED: Returns True if the pygame.freetype module is currently initialized. Use get_init() instead. | |
doc_16494 |
Return (maximum - minimum) along the given dimension (i.e. peak-to-peak value). Warning ptp preserves the data type of the array. This means the return value for an input of signed integers with n bits (e.g. np.int8, np.int16, etc) is also a signed integer with n bits. In that case, peak-to-peak values greater than ... | |
doc_16495 | Return True if the symbol is referenced in its block, but not assigned to. | |
doc_16496 | URL specifying how to initialize the process group. Default is env:// | |
doc_16497 |
times = np.arange(np.datetime64('2001-01-02'),
np.datetime64('2002-02-03'), np.timedelta64(75, 'm'))
y = np.random.randn(len(times))
fig, ax = plt.subplots()
ax.plot(times, y)
See also Date tick labels Formatting date ticks using ConciseDateFormatter Date Demo Convert Matplotlib date format Ma... | |
doc_16498 | See Migration guide for more details. tf.compat.v1.sparse.reduce_max_sparse
tf.compat.v1.sparse_reduce_max_sparse(
sp_input, axis=None, keepdims=None, reduction_axes=None, keep_dims=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: ke... | |
doc_16499 |
Bases: skimage.feature.util.FeatureDetector, skimage.feature.util.DescriptorExtractor Oriented FAST and rotated BRIEF feature detector and binary descriptor extractor. Parameters
n_keypointsint, optional
Number of keypoints to be returned. The function will return the best n_keypoints according to the Harris co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.