_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_25600 |
Bases: matplotlib.projections.geo._GeoTransform The base Hammer transform. Create a new geographical transform. Resolution is the number of steps to interpolate between each input line segment to approximate its path in curved space. has_inverse=True
True if this transform has a corresponding inverse transform.
... | |
doc_25601 | Get the size of the terminal window. For each of the two dimensions, the environment variable, COLUMNS and LINES respectively, is checked. If the variable is defined and the value is a positive integer, it is used. When COLUMNS or LINES is not defined, which is the common case, the terminal connected to sys.__stdout__ ... | |
doc_25602 |
Returns a new bit generator with the state jumped. Jumps the state as-if jumps * 210306068529402873165736369884012333109 random numbers have been generated. Parameters
jumpsinteger, positive
Number of times to jump the state of the bit generator returned Returns
bit_generatorPCG64
New instance of genera... | |
doc_25603 | flip vertically and horizontally flip(Surface, xbool, ybool) -> Surface This can flip a Surface either vertically, horizontally, or both. Flipping a Surface is non-destructive and returns a new Surface with the same dimensions. | |
doc_25604 | A callback wrapper object returned by loop.call_soon(), loop.call_soon_threadsafe().
cancel()
Cancel the callback. If the callback has already been canceled or executed, this method has no effect.
cancelled()
Return True if the callback was cancelled. New in version 3.7. | |
doc_25605 | Returns the size of the mask get_size() -> (width, height)
Returns:
the size of the mask, (width, height)
Return type:
tuple(int, int) | |
doc_25606 |
Matches all possible non-overlapping sets of operators and their data dependencies (pattern) in the Graph of a GraphModule (gm), then replaces each of these matched subgraphs with another subgraph (replacement). Parameters
gm – The GraphModule that wraps the Graph to operate on
pattern – The subgraph to match in... | |
doc_25607 | sklearn.metrics.pairwise.cosine_similarity(X, Y=None, dense_output=True) [source]
Compute cosine similarity between samples in X and Y. Cosine similarity, or the cosine kernel, computes similarity as the normalized dot product of X and Y: K(X, Y) = <X, Y> / (||X||*||Y||) On L2-normalized data, this function is equiva... | |
doc_25608 |
Scalar method identical to the corresponding array attribute. Please see ndarray.dumps. | |
doc_25609 | User defined value. | |
doc_25610 | See Migration guide for more details. tf.compat.v1.test.main
tf.test.main(
argv=None
) | |
doc_25611 | tf.keras.layers.Convolution3D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.Conv3D, tf.compat.v1.keras.layers.Convolution3D
tf.keras.layers.Conv3D(
filters, kernel_size, strides=(1, 1, 1), padding='valid',
data_format=None, dilation_rate=(1, 1, 1), groups=1, acti... | |
doc_25612 | Whiteout. New in version 3.4. | |
doc_25613 |
Aggregate using one or more operations over the specified axis. Parameters
func:function, str, list or dict
Function to use for aggregating the data. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply. Accepted combinations are: function string function name list of funct... | |
doc_25614 |
Derived should override this method. The arguments are the same as matplotlib.backend_bases.RendererBase.draw_path() except the first argument is a renderer. | |
doc_25615 |
Parameters:
string (str) – string that contains spatial data
srid (int) – spatial reference identifier
Return type:
a GEOSGeometry corresponding to the spatial data in the string fromstr(string, srid) is equivalent to GEOSGeometry(string, srid). Example: >>> from django.contrib.gis.geos import fromstr
>... | |
doc_25616 | The value to be used for the wsgi.multiprocess environment variable. It defaults to true in BaseHandler, but may have a different default (or be set by the constructor) in the other subclasses. | |
doc_25617 | Default return value for get_login_url(). Defaults to None in which case get_login_url() falls back to settings.LOGIN_URL. | |
doc_25618 | This is an optional argument which validates that the array reaches at least the stated length. | |
doc_25619 |
A gated recurrent unit (GRU) cell A dynamic quantized GRUCell module with floating point tensor as inputs and outputs. Weights are quantized to 8 bits. We adopt the same interface as torch.nn.GRUCell, please see https://pytorch.org/docs/stable/nn.html#torch.nn.GRUCell for documentation. Examples: >>> rnn = nn.GRUCell... | |
doc_25620 | Play the sound repeatedly. The SND_ASYNC flag must also be used to avoid blocking. Cannot be used with SND_MEMORY. | |
doc_25621 | the system name of the cdrom drive get_name() -> name Return the string name of the drive. This is the system name used to represent the drive. It is often the drive letter or device name. This method can work on an uninitialized CD. | |
doc_25622 | See Migration guide for more details. tf.compat.v1.keras.applications.efficientnet.preprocess_input
tf.keras.applications.efficientnet.preprocess_input(
x, data_format=None
) | |
doc_25623 | Represents the C unsigned char datatype, it interprets the value as small integer. The constructor accepts an optional integer initializer; no overflow checking is done. | |
doc_25624 | Returns the name of the session cookie. Uses app.session_cookie_name which is set to SESSION_COOKIE_NAME Parameters
app (Flask) – Return type
str | |
doc_25625 | Return the window contents as a string; whether blanks in the window are included is affected by the stripspaces member. | |
doc_25626 |
The transposed array. Same as self.transpose(). See also transpose
Examples >>> x = np.array([[1.,2.],[3.,4.]])
>>> x
array([[ 1., 2.],
[ 3., 4.]])
>>> x.T
array([[ 1., 3.],
[ 2., 4.]])
>>> x = np.array([1.,2.,3.,4.])
>>> x
array([ 1., 2., 3., 4.])
>>> x.T
array([ 1., 2., 3., 4.]) | |
doc_25627 |
Return the Transform instance mapping patch coordinates to data coordinates. For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5. | |
doc_25628 |
Return the string path of the cache directory. The procedure used to find the directory is the same as for _get_config_dir, except using $XDG_CACHE_HOME/$HOME/.cache instead. | |
doc_25629 | See torch.baddbmm() | |
doc_25630 | A model class. Can be explicitly provided, otherwise will be determined by examining self.object or queryset. | |
doc_25631 |
Return the alpha value used for blending - not supported on all backends. | |
doc_25632 |
Confirm s is string 'figure' or convert s to float or raise. | |
doc_25633 | Define how a single command-line argument should be parsed. Each parameter has its own more detailed description below, but in short they are:
name or flags - Either a name or a list of option strings, e.g. foo or -f, --foo.
action - The basic type of action to be taken when this argument is encountered at the comma... | |
doc_25634 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_25635 | See Migration guide for more details. tf.compat.v1.config.experimental.enable_tensor_float_32_execution
tf.config.experimental.enable_tensor_float_32_execution(
enabled
)
TensorFloat-32, or TF32 for short, is a math mode for NVIDIA Ampere GPUs. TensorFloat-32 execution causes certain float32 ops, such as matrix ... | |
doc_25636 |
Return filter function to be used for agg filter. | |
doc_25637 |
Set the artist's clip path. Parameters
pathPatch or Path or TransformedPath or None
The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed.
transformTransform, optional
Only used if path is a Path, in which case the given Path is converted to a Tra... | |
doc_25638 | Return a list of all the values for the field named name. If there are no such named headers in the message, failobj is returned (defaults to None). | |
doc_25639 |
Return the sum of the array elements over the given axis. Masked elements are set to 0 internally. Refer to numpy.sum for full documentation. See also numpy.ndarray.sum
corresponding function for ndarrays numpy.sum
equivalent function Examples >>> x = np.ma.array([[1,2,3],[4,5,6],[7,8,9]], mask=[0] + [1,0]*4)... | |
doc_25640 | Redirects to get_success_url(). | |
doc_25641 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalDenseToSparseBatchDataset
tf.raw_ops.ExperimentalDenseToSparseBatchDataset(
input_dataset, batch_size, row_shape, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant. A handle to an input dataset. Mus... | |
doc_25642 |
Return the complex conjugate, element-wise. Refer to numpy.conjugate for full documentation. See also numpy.conjugate
equivalent function | |
doc_25643 | Get a format string for time.strftime() to represent a date in a locale-specific era-based way. | |
doc_25644 |
Transformer is a special type of interpreter that produces a new Module. It exposes a transform() method that returns the transformed Module. Transformer does not require arguments to run, as Interpreter does. Transformer works entirely symbolically. Example Suppose we want to swap all instances of torch.neg with tor... | |
doc_25645 | A tuple of two strings: the first is the name of the local non-DST timezone, the second is the name of the local DST timezone. If no DST timezone is defined, the second string should not be used. See note below. | |
doc_25646 | Counts the number of non-zero values in the tensor input along the given dim. If no dim is specified then all non-zeros in the tensor are counted. Parameters
input (Tensor) – the input tensor.
dim (int or tuple of python:ints, optional) – Dim or tuple of dims along which to count non-zeros. Example: >>> x = tor... | |
doc_25647 |
For each element in self, return a titlecased version of the string: words start with uppercase characters, all remaining cased characters are lowercase. See also char.title | |
doc_25648 |
Default of toggled state. | |
doc_25649 | Called at the start of a CDATA section. This and EndCdataSectionHandler are needed to be able to identify the syntactical start and end for CDATA sections. | |
doc_25650 |
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters
match
A filter criterion for the matches. This can be
None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct... | |
doc_25651 |
Filter an image with the Hybrid Hessian filter. This filter can be used to detect continuous edges, e.g. vessels, wrinkles, rivers. It can be used to calculate the fraction of the whole image containing such objects. Defined only for 2-D and 3-D images. Almost equal to Frangi filter, but uses alternative method of sm... | |
doc_25652 | Cast a memoryview to a new format or shape. shape defaults to [byte_length//new_itemsize], which means that the result view will be one-dimensional. The return value is a new memoryview, but the buffer itself is not copied. Supported casts are 1D -> C-contiguous and C-contiguous -> 1D. The destination format is restric... | |
doc_25653 | A Future-like object that runs a Python coroutine. Not thread-safe. Tasks are used to run coroutines in event loops. If a coroutine awaits on a Future, the Task suspends the execution of the coroutine and waits for the completion of the Future. When the Future is done, the execution of the wrapped coroutine resumes. Ev... | |
doc_25654 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_25655 | Set the current process’s real, effective, and saved user ids. Availability: Unix. New in version 3.2. | |
doc_25656 | Return the day of the week as an integer, where Monday is 1 and Sunday is 7. For example, date(2002, 12, 4).isoweekday() == 3, a Wednesday. See also weekday(), isocalendar(). | |
doc_25657 | Checks if the function accepts the arguments and keyword arguments. Returns a new (args, kwargs) tuple that can safely be passed to the function without causing a TypeError because the function signature is incompatible. If drop_extra is set to True (which is the default) any extra positional or keyword arguments are d... | |
doc_25658 |
Transform binary labels back to multi-class labels. Parameters
Y{ndarray, sparse matrix} of shape (n_samples, n_classes)
Target values. All sparse matrices are converted to CSR before inverse transformation.
thresholdfloat, default=None
Threshold used in the binary and multi-label cases. Use 0 when Y contai... | |
doc_25659 | Returns a new instance of the FileHandler class. The specified file is opened and used as the stream for logging. If mode is not specified, 'a' is used. If encoding is not None, it is used to open the file with that encoding. If delay is true, then file opening is deferred until the first call to emit(). By default, th... | |
doc_25660 | See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.load_img
tf.keras.preprocessing.image.load_img(
path, grayscale=False, color_mode='rgb', target_size=None,
interpolation='nearest'
)
Usage: image = tf.keras.preprocessing.image.load_img(image_path)
input_arr = keras.preprocessing.im... | |
doc_25661 | Set the ForeignKey to the value passed to SET(), or if a callable is passed in, the result of calling it. In most cases, passing a callable will be necessary to avoid executing queries at the time your models.py is imported: from django.conf import settings
from django.contrib.auth import get_user_model
from django.db ... | |
doc_25662 | The ContentType of the modified object. | |
doc_25663 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_25664 |
Return a dictionary mapping property name -> value. | |
doc_25665 |
Opposite of the value of X on the K-means objective. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
New data.
yIgnored
Not used, present here for API consistency by convention.
sample_weightarray-like of shape (n_samples,), default=None
The weights for each observation in X. If... | |
doc_25666 | Given a string representing one Unicode character, return an integer representing the Unicode code point of that character. For example, ord('a') returns the integer 97 and ord('€') (Euro sign) returns 8364. This is the inverse of chr(). | |
doc_25667 | sklearn.model_selection.permutation_test_score(estimator, X, y, *, groups=None, cv=None, n_permutations=100, n_jobs=None, random_state=0, verbose=0, scoring=None, fit_params=None) [source]
Evaluate the significance of a cross-validated score with permutations Permutes targets to generate ‘randomized data’ and compute... | |
doc_25668 | Close the event loop. The loop must not be running when this function is called. Any pending callbacks will be discarded. This method clears all queues and shuts down the executor, but does not wait for the executor to finish. This method is idempotent and irreversible. No other methods should be called after the event... | |
doc_25669 |
Scale each feature by its maximum absolute value. This estimator scales and translates each feature individually such that the maximal absolute value of each feature in the training set will be 1.0. It does not shift/center the data, and thus does not destroy any sparsity. This scaler can also be applied to sparse CS... | |
doc_25670 | Create a filesystem node (file, device special file or named pipe) named path. mode specifies both the permissions to use and the type of node to be created, being combined (bitwise OR) with one of stat.S_IFREG, stat.S_IFCHR, stat.S_IFBLK, and stat.S_IFIFO (those constants are available in stat). For stat.S_IFCHR and s... | |
doc_25671 | If input is a vector (1-D tensor), then returns a 2-D square tensor with the elements of input as the diagonal. If input is a tensor with more than one dimension, then returns a 2-D tensor with diagonal elements equal to a flattened input. The argument offset controls which diagonal to consider: If offset = 0, it is... | |
doc_25672 |
Computes and returns a mask for the input tensor t. Starting from a base default_mask (which should be a mask of ones if the tensor has not been pruned yet), generate a random mask to apply on top of the default_mask according to the specific pruning method recipe. Parameters
t (torch.Tensor) – tensor representin... | |
doc_25673 |
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_25674 |
Create a memory-map to an array stored in a binary file on disk. Memory-mapped files are used for accessing small segments of large files on disk, without reading the entire file into memory. NumPy’s memmap’s are array-like objects. This differs from Python’s mmap module, which uses file-like objects. This subclass o... | |
doc_25675 |
Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate. | |
doc_25676 |
Return self!=value. | |
doc_25677 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesPredict
tf.raw_ops.BoostedTreesPredict(
tree_ensemble_handle, bucketized_features, logits_dimension, name=None
)
computes the logits. It is designed to be used during prediction. It traverses all the trees and calculates the final score for e... | |
doc_25678 |
Return total duration of each element expressed in seconds. This method is available directly on TimedeltaArray, TimedeltaIndex and on Series containing timedelta values under the .dt namespace. Returns
seconds:[ndarray, Float64Index, Series]
When the calling object is a TimedeltaArray, the return type is ndarr... | |
doc_25679 | turtle.pu()
turtle.up()
Pull the pen up – no drawing when moving. | |
doc_25680 |
The masked constant is a special case of MaskedArray, with a float datatype and a null shape. It is used to test whether a specific entry of a masked array is masked, or to mask one or several entries of a masked array: >>> x = ma.array([1, 2, 3], mask=[0, 1, 0])
>>> x[1] is ma.masked
True
>>> x[-1] = ma.masked
>>> x... | |
doc_25681 |
Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ImageViewer. For example: viewer += Plugin(...)
Also note that attach automatically calls the filter function so that the image matches the filtered value specified by attached widgets. | |
doc_25682 | Takes an instance of Form and the name of the field. The return value will be used when accessing the field in a template. Most likely it will be an instance of a subclass of BoundField. | |
doc_25683 |
Add an AxesBase to the Axes' children; return the child Axes. This is the lowlevel version. See axes.Axes.inset_axes. | |
doc_25684 | sklearn.neighbors.kneighbors_graph(X, n_neighbors, *, mode='connectivity', metric='minkowski', p=2, metric_params=None, include_self=False, n_jobs=None) [source]
Computes the (weighted) graph of k-Neighbors for points in X Read more in the User Guide. Parameters
Xarray-like of shape (n_samples, n_features) or Bal... | |
doc_25685 |
Plot a histogram. Compute and draw the histogram of x. The return value is a tuple (n, bins, patches) or ([n0, n1, ...], bins, [patches0, patches1, ...]) if the input contains multiple data. See the documentation of the weights parameter to draw a histogram of already-binned data. Multiple data can be provided via x ... | |
doc_25686 |
A torch.nn.Conv2d module with lazy initialization of the in_channels argument of the Conv2d that is inferred from the input.size(1). Parameters
out_channels (int) – Number of channels produced by the convolution
kernel_size (int or tuple) – Size of the convolving kernel
stride (int or tuple, optional) – Stride ... | |
doc_25687 |
Bases: matplotlib.widgets.Widget Widget connected to a single Axes. To guarantee that the widget remains responsive and not garbage-collected, a reference to the object should be maintained by the user. This is necessary because the callback registry maintains only weak-refs to the functions, which are member functio... | |
doc_25688 |
The Connectionist Temporal Classification loss. See CTCLoss for details. 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 this is undesirable, you can try to make the operation deterministic (potentially ... | |
doc_25689 |
Compute data precision matrix with the FactorAnalysis model. Returns
precisionndarray of shape (n_features, n_features)
Estimated precision of data. | |
doc_25690 | The name of the module the loader will handle. | |
doc_25691 |
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters
rendererRendererBase subclass.
Notes This method is overridden in the Artist subclasses. | |
doc_25692 | See Migration guide for more details. tf.compat.v1.raw_ops.DummyIterationCounter
tf.raw_ops.DummyIterationCounter(
name=None
)
Args
name A name for the operation (optional).
Returns A Tensor of type resource. | |
doc_25693 | A concrete implementation of Finder.find_module() which is equivalent to self.find_loader(fullname)[0]. Deprecated since version 3.4: Use find_spec() instead. | |
doc_25694 |
Set the font style. Parameters
fontstyle{'normal', 'italic', 'oblique'}
See also font_manager.FontProperties.set_style | |
doc_25695 |
pygame module for interacting with midi input and output. New in pygame 1.9.0. The midi module can send output to midi devices and get input from midi devices. It can also list midi devices on the system. The midi module supports real and virtual midi devices. It uses the portmidi library. Is portable to which e... | |
doc_25696 |
Returns a clone of self with given hyperparameters theta. Parameters
thetandarray of shape (n_dims,)
The hyperparameters | |
doc_25697 |
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_25698 | Generate n random bytes. This method should not be used for generating security tokens. Use secrets.token_bytes() instead. New in version 3.9. | |
doc_25699 | The maximum value allowed for the timeout parameter of Lock.acquire(). Specifying a timeout greater than this value will raise an OverflowError. New in version 3.2. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.