_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_29300 |
Split an array into multiple sub-arrays vertically (row-wise). Please refer to the split documentation. vsplit is equivalent to split with axis=0 (default), the array is always split along the first axis regardless of the array dimension. See also split
Split an array into multiple sub-arrays of equal size. Exa... | |
doc_29301 |
Concatenate strings in the Series/Index with given separator. If others is specified, this function concatenates the Series/Index and elements of others element-wise. If others is not passed, then all values in the Series/Index are concatenated into a single string with a given sep. Parameters
others:Series, Inde... | |
doc_29302 |
Set the url for the artist. Parameters
urlstr | |
doc_29303 |
Fit the random regressor. Parameters
Xarray-like of shape (n_samples, n_features)
Training data.
yarray-like of shape (n_samples,) or (n_samples, n_outputs)
Target values.
sample_weightarray-like of shape (n_samples,), default=None
Sample weights. Returns
selfobject | |
doc_29304 | A thread-safe variant of call_soon(). Must be used to schedule callbacks from another thread. See the concurrency and multithreading section of the documentation. | |
doc_29305 | Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name. The default argument is used for groups that did not participate in the match; it defaults to None. For example: >>> m = re.match(r"(?P<first_name>\w+) (?P<last_name>\w+)", "Malcolm Reynolds")
>>> m.groupdict()
{'first_name... | |
doc_29306 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_29307 | See Migration guide for more details. tf.compat.v1.raw_ops.RFFT
tf.raw_ops.RFFT(
input, fft_length, Tcomplex=tf.dtypes.complex64, name=None
)
Computes the 1-dimensional discrete Fourier transform of a real-valued signal over the inner-most dimension of input. Since the DFT of a real signal is Hermitian-symmetric... | |
doc_29308 |
Return the Figure instance the artist belongs to. | |
doc_29309 |
Set the parameters of this estimator. Valid parameter keys can be listed with get_params(). Note that you can directly set the parameters of the estimators contained in steps. Returns
self | |
doc_29310 | Retrieves the unnamed value for a key, as a string. key is an already open key, or one of the predefined HKEY_* constants. sub_key is a string that holds the name of the subkey with which the value is associated. If this parameter is None or empty, the function retrieves the value set by the SetValue() method for the k... | |
doc_29311 | This attribute contains the actual value of the instance. For integer and pointer types, it is an integer, for character types, it is a single character bytes object or string, for character pointer types it is a Python bytes object or string. When the value attribute is retrieved from a ctypes instance, usually a new ... | |
doc_29312 | tf.compat.v1.profiler.advise(
graph=None, run_meta=None, options=_DEFAULT_ADVISE_OPTIONS
)
Builds profiles and automatically check anomalies of various aspects. For more details: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler/README.md
Args
graph tf.Graph. If None and eager ... | |
doc_29313 | Default widget: TextInput
Empty value: Whatever you’ve given as empty_value. Normalizes to: A string. Uses MaxLengthValidator and MinLengthValidator if max_length and min_length are provided. Otherwise, all inputs are valid. Error message keys: required, max_length, min_length
Has four optional arguments for valida... | |
doc_29314 |
Run the plot directive. | |
doc_29315 | register a function to be called when pygame quits register_quit(callable) -> None When pygame.quit() is called, all registered quit functions are called. Pygame modules do this automatically when they are initializing, so this function will rarely be needed. | |
doc_29316 |
Return the snap setting. See set_snap for details. | |
doc_29317 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_29318 |
Return whether the y-axis is autoscaled. | |
doc_29319 |
Set the value array from array-like A. Parameters
Aarray-like or None
The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A. | |
doc_29320 | Subclass of OSError that is the base exception class for all the other exceptions provided by this module. Changed in version 3.4: SMTPException became subclass of OSError | |
doc_29321 | Compares two operands using their abstract representation, ignoring sign. | |
doc_29322 |
Generate a Laguerre series with given roots. The function returns the coefficients of the polynomial \[p(x) = (x - r_0) * (x - r_1) * ... * (x - r_n),\] in Laguerre form, where the r_n are the roots specified in roots. If a zero has multiplicity n, then it must appear in roots n times. For instance, if 2 is a root o... | |
doc_29323 |
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g... | |
doc_29324 |
Erases a Node from the Graph. Throws an exception if there are still users of that node in the Graph. Parameters
to_erase (Node) – The Node to erase from the Graph. | |
doc_29325 |
Propagate qconfig through the module hierarchy and assign qconfig attribute on each leaf module Parameters
module – input module
qconfig_dict – dictionary that maps from name or type of submodule to quantization configuration, qconfig applies to all submodules of a given module unless qconfig for the submodules ... | |
doc_29326 |
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_29327 |
A random forest classifier. A random forest is a meta estimator that fits a number of decision tree classifiers on various sub-samples of the dataset and uses averaging to improve the predictive accuracy and control over-fitting. The sub-sample size is controlled with the max_samples parameter if bootstrap=True (defa... | |
doc_29328 | Run awaitable objects in the aws iterable concurrently. Return an iterator of coroutines. Each coroutine returned can be awaited to get the earliest next result from the iterable of the remaining awaitables. Raises asyncio.TimeoutError if the timeout occurs before all Futures are done. Deprecated since version 3.8, wi... | |
doc_29329 | write an image file that is smoothscaled copy of an input file headless_no_windows_needed.main(fin, fout, w, h) -> None arguments: fin - name of an input image file
fout - name of the output file to create/overwrite
w, h - size of the rescaled image, as integer width and height How to use pygame with no windowing sys... | |
doc_29330 | Return a duplicate of the context. | |
doc_29331 |
Integrate. Return a series instance that is the definite integral of the current series. Parameters
mnon-negative int
The number of integrations to perform.
karray_like
Integration constants. The first constant is applied to the first integration, the second to the second, and so on. The list of values must... | |
doc_29332 | Returns the number of non-fixed hyperparameters of the kernel. | |
doc_29333 |
Fit the clustering from features, or affinity matrix. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features), or array-like of shape (n_samples, n_samples)
Training instances to cluster, or similarities / affinities between instances if affinity='precomputed'. If a sparse feature matrix is pro... | |
doc_29334 | See Migration guide for more details. tf.compat.v1.math.count_nonzero
tf.compat.v1.count_nonzero(
input_tensor=None, axis=None, keepdims=None, dtype=tf.dtypes.int64, name=None,
reduction_indices=None, keep_dims=None, input=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a ... | |
doc_29335 |
Return str(self). | |
doc_29336 | Returns the list of dates of type date_type for which queryset contains entries. For example, get_date_list(qs, 'year') will return the list of years for which qs has entries. If date_type isn’t provided, the result of get_date_list_period() is used. date_type and ordering are passed to QuerySet.dates(). | |
doc_29337 | tf.random.experimental.Algorithm Compat aliases for migration See Migration guide for more details. tf.compat.v1.random.Algorithm, tf.compat.v1.random.experimental.Algorithm
Class Variables
PHILOX tf.random.Algorithm
THREEFRY tf.random.Algorithm | |
doc_29338 | sklearn.datasets.load_sample_image(image_name) [source]
Load the numpy array of a single sample image Read more in the User Guide. Parameters
image_name{china.jpg, flower.jpg}
The name of the sample image loaded Returns
img3D array
The image as a numpy array: height x width x color Examples >>> from... | |
doc_29339 | Perform the SSL setup handshake. Changed in version 3.4: The handshake method also performs match_hostname() when the check_hostname attribute of the socket’s context is true. Changed in version 3.5: The socket timeout is no more reset each time bytes are received or sent. The socket timeout is now to maximum total ... | |
doc_29340 | Uninitialize the display module quit() -> None This will shut down the entire display module. This means any active displays will be closed. This will also be handled automatically when the program exits. It is harmless to call this more than once, repeated calls have no effect. | |
doc_29341 | See Migration guide for more details. tf.compat.v1.io.parse_tensor, tf.compat.v1.parse_tensor
tf.io.parse_tensor(
serialized, out_type, name=None
)
Args
serialized A Tensor of type string. A scalar string containing a serialized TensorProto proto.
out_type A tf.DType. The type of the serialized te... | |
doc_29342 | See Migration guide for more details. tf.compat.v1.data.experimental.parallel_interleave
tf.data.experimental.parallel_interleave(
map_func, cycle_length, block_length=1, sloppy=False,
buffer_output_elements=None, prefetch_input_elements=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a fu... | |
doc_29343 |
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). | |
doc_29344 | A generic version of collections.abc.Set. Deprecated since version 3.9: collections.abc.Set now supports []. See PEP 585 and Generic Alias Type. | |
doc_29345 |
Returns an array with the number of non-overlapping occurrences of substring sub in the range [start, end]. See also char.count | |
doc_29346 |
Add paths to configuration include directories. Add the given sequence of paths to the beginning of the include_dirs list. This list will be visible to all extension modules of the current package. | |
doc_29347 | Returns the matrix norm or vector norm of a given tensor. This function can calculate one of eight different types of matrix norms, or one of an infinite number of vector norms, depending on both the number of reduction dimensions and the value of the ord parameter. Parameters
input (Tensor) – The input tensor. If ... | |
doc_29348 | Parses an XML section from a string constant. Same as XML(). text is a string containing XML data. parser is an optional parser instance. If not given, the standard XMLParser parser is used. Returns an Element instance. | |
doc_29349 | Create a timer that will run function with arguments args and keyword arguments kwargs, after interval seconds have passed. If args is None (the default) then an empty list will be used. If kwargs is None (the default) then an empty dict will be used. Changed in version 3.3: changed from a factory function to a class.... | |
doc_29350 | Computes and returns a pruned version of input tensor t according to the pruning rule specified in compute_mask(). Parameters
t (torch.Tensor) – tensor to prune (of same dimensions as default_mask).
importance_scores (torch.Tensor) – tensor of importance scores (of same shape as t) used to compute mask for pruning... | |
doc_29351 |
Build or fetch the effective stop words list. Returns
stop_words: list or None
A list of stop words. | |
doc_29352 | The FileSelectBox is similar to the standard Motif(TM) file-selection box. It is generally used for the user to choose a file. FileSelectBox stores the files mostly recently selected into a ComboBox widget so that they can be quickly selected again. | |
doc_29353 |
Series basis polynomial of degree deg. Returns the series representing the basis polynomial of degree deg. New in version 1.7.0. Parameters
degint
Degree of the basis polynomial for the series. Must be >= 0.
domain{None, array_like}, optional
If given, the array must be of the form [beg, end], where beg a... | |
doc_29354 |
Return offset of the container. | |
doc_29355 |
Add a centered suptitle to the figure. Parameters
tstr
The suptitle text.
xfloat, default: 0.5
The x location of the text in figure coordinates.
yfloat, default: 0.98
The y location of the text in figure coordinates.
horizontalalignment, ha{'center', 'left', 'right'}, default: center
The horizontal ... | |
doc_29356 | See torch.chunk() | |
doc_29357 |
An unstructured triangular grid consisting of npoints points and ntri triangles. The triangles can either be specified by the user or automatically generated using a Delaunay triangulation. Parameters
x, y(npoints,) array-like
Coordinates of grid points.
triangles(ntri, 3) array-like of int, optional
For ea... | |
doc_29358 | See Migration guide for more details. tf.compat.v1.train.checkpoints_iterator
tf.train.checkpoints_iterator(
checkpoint_dir, min_interval_secs=0, timeout=None, timeout_fn=None
)
The iterator only checks for new checkpoints when control flow has been reverted to it. This means it can miss checkpoints if your code... | |
doc_29359 |
Nu Support Vector Regression. Similar to NuSVC, for regression, uses a parameter nu to control the number of support vectors. However, unlike NuSVC, where nu replaces C, here nu replaces the parameter epsilon of epsilon-SVR. The implementation is based on libsvm. Read more in the User Guide. Parameters
nufloat, d... | |
doc_29360 | Geometry information that gets passed to callback functions. | |
doc_29361 |
One-vs-the-rest (OvR) multiclass strategy. Also known as one-vs-all, this strategy consists in fitting one classifier per class. For each classifier, the class is fitted against all the other classes. In addition to its computational efficiency (only n_classes classifiers are needed), one advantage of this approach i... | |
doc_29362 | Like sigwaitinfo(), but takes an additional timeout argument specifying a timeout. If timeout is specified as 0, a poll is performed. Returns None if a timeout occurs. Availability: Unix. See the man page sigtimedwait(2) for further information. See also pause(), sigwait() and sigwaitinfo(). New in version 3.3. Chan... | |
doc_29363 | Return a os.stat_result object containing information about this path, like os.stat(). The result is looked up at each call to this method. >>> p = Path('setup.py')
>>> p.stat().st_size
956
>>> p.stat().st_mtime
1327883547.852554 | |
doc_29364 |
Applies the soft shrinkage function elementwise: SoftShrinkage(x)={x−λ, if x>λx+λ, if x<−λ0, otherwise \text{SoftShrinkage}(x) = \begin{cases} x - \lambda, & \text{ if } x > \lambda \\ x + \lambda, & \text{ if } x < -\lambda \\ 0, & \text{ otherwise } \end{cases}
Parameters
lambd – the λ\lambda (must be no less... | |
doc_29365 | See Migration guide for more details. tf.compat.v1.raw_ops.DestroyTemporaryVariable
tf.raw_ops.DestroyTemporaryVariable(
ref, var_name, name=None
)
Sets output to the value of the Tensor pointed to by 'ref', then destroys the temporary variable called 'var_name'. All other uses of 'ref' must have executed before... | |
doc_29366 | tf.compat.v1.layers.AveragePooling3D(
pool_size, strides, padding='valid',
data_format='channels_last', name=None, **kwargs
)
Arguments
pool_size An integer or tuple/list of 3 integers: (pool_depth, pool_height, pool_width) specifying the size of the pooling window. Can be a single integer to specify ... | |
doc_29367 | turtle.addshape(name, shape=None)
There are three different ways to call this function:
name is the name of a gif-file and shape is None: Install the corresponding image shape. >>> screen.register_shape("turtle.gif")
Note Image shapes do not rotate when turning the turtle, so they do not display the heading of th... | |
doc_29368 | If the server supports user authentication, and the script is protected, this attribute contains the username the user has authenticated as. | |
doc_29369 | sklearn.config_context(**new_config) [source]
Context manager for global scikit-learn configuration Parameters
assume_finitebool, default=False
If True, validation for finiteness will be skipped, saving time, but leading to potential crashes. If False, validation for finiteness will be performed, avoiding error... | |
doc_29370 | Represents the C wchar_t datatype, and interprets the value as a single character unicode string. The constructor accepts an optional string initializer, the length of the string must be exactly one character. | |
doc_29371 | Base class for text streams. This class provides a character and line based interface to stream I/O. It inherits IOBase. There is no public constructor. TextIOBase provides or overrides these data attributes and methods in addition to those from IOBase:
encoding
The name of the encoding used to decode the stream’s ... | |
doc_29372 | Parse a query in the environment or from a file (the file defaults to sys.stdin). The keep_blank_values, strict_parsing and separator parameters are passed to urllib.parse.parse_qs() unchanged. | |
doc_29373 | Returns a new tensor with the inverse hyperbolic sine of the elements of input. outi=sinh−1(inputi)\text{out}_{i} = \sinh^{-1}(\text{input}_{i})
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4)
>>> a
tensor([ 0.1606, -1... | |
doc_29374 |
Return the mask of a masked array, or full boolean array of False. Return the mask of arr as an ndarray if arr is a MaskedArray and the mask is not nomask, else return a full boolean array of False of the same shape as arr. Parameters
arrarray_like
Input MaskedArray for which the mask is required. See also... | |
doc_29375 | tf.keras.layers.DenseFeatures(
feature_columns, trainable=True, name=None, **kwargs
)
Generally a single example in training data is described with FeatureColumns. At the first layer of the model, this column oriented data should be converted to a single Tensor. This layer can be called multiple times with differe... | |
doc_29376 |
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_29377 |
Return the roots of the series polynomial. Compute the roots for the series. Note that the accuracy of the roots decrease the further outside the domain they lie. Returns
rootsndarray
Array containing the roots of the series. | |
doc_29378 | If the whole string matches the regular expression pattern, return a corresponding match object. Return None if the string does not match the pattern; note that this is different from a zero-length match. New in version 3.4. | |
doc_29379 | Convert a file’s mode to a string of the form ‘-rwxrwxrwx’. New in version 3.3. Changed in version 3.4: The function supports S_IFDOOR, S_IFPORT and S_IFWHT. | |
doc_29380 |
Return the xdata. If orig is True, return the original data, else the processed data. | |
doc_29381 |
Function that takes the mean element-wise absolute value difference. See L1Loss for details. | |
doc_29382 | Get list of available fullscreen modes list_modes(depth=0, flags=pygame.FULLSCREEN, display=0) -> list This function returns a list of possible sizes for a specified color depth. The return value will be an empty list if no display modes are available with the given arguments. A return value of -1 means that any requ... | |
doc_29383 | Create a Stats object based on the current profile and print the results to stdout. | |
doc_29384 | Transcode CGI variables from os.environ to PEP 3333 “bytes in unicode” strings, returning a new dictionary. This function is used by CGIHandler and IISCGIHandler in place of directly using os.environ, which is not necessarily WSGI-compliant on all platforms and web servers using Python 3 – specifically, ones where the ... | |
doc_29385 | Constructs a tensor by repeating the elements of input. The reps argument specifies the number of repetitions in each dimension. If reps specifies fewer dimensions than input has, then ones are prepended to reps until all dimensions are specified. For example, if input has shape (8, 6, 4, 2) and reps is (2, 2), then re... | |
doc_29386 | See Migration guide for more details. tf.compat.v1.raw_ops.ListDiff
tf.raw_ops.ListDiff(
x, y, out_idx=tf.dtypes.int32, name=None
)
Given a list x and a list y, this operation returns a list out that represents all values that are in x but not in y. The returned list out is sorted in the same order that the numb... | |
doc_29387 |
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_29388 | All changes to MH mailboxes are immediately applied, so this method does nothing. | |
doc_29389 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseAdd
tf.raw_ops.SparseAdd(
a_indices, a_values, a_shape, b_indices, b_values, b_shape, thresh, name=None
)
The input SparseTensor objects' indices are assumed ordered in standard lexicographic order. If this is not the case, before this step run Spa... | |
doc_29390 | See Migration guide for more details. tf.compat.v1.raw_ops.AccumulatorNumAccumulated
tf.raw_ops.AccumulatorNumAccumulated(
handle, name=None
)
Args
handle A Tensor of type mutable string. The handle to an accumulator.
name A name for the operation (optional).
Returns A Tensor of type int... | |
doc_29391 |
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_29392 |
YIQ to RGB color space conversion. Parameters
yiq(…, 3) array_like
The image in YIQ format. Final dimension denotes channels. Returns
out(…, 3) ndarray
The image in RGB format. Same dimensions as input. Raises
ValueError
If yiq is not at least 2-D with shape (…, 3). | |
doc_29393 |
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters
Xarray-like of shape (n_samples, n_features)
Test samples.
yarray-like of shap... | |
doc_29394 |
Day of the week the period lies in, with Monday=0 and Sunday=6. If the period frequency is lower than daily (e.g. hourly), and the period spans over multiple days, the day at the start of the period is used. If the frequency is higher than daily (e.g. monthly), the last day of the period is used. Returns
int
Day ... | |
doc_29395 | New in Django 3.2. A case insensitive, dict-like object that provides an interface to all HTTP headers on the response. See Setting header fields. | |
doc_29396 |
Set the face color of the Figure rectangle. Parameters
colorcolor | |
doc_29397 | class sklearn.neighbors.NearestNeighbors(*, n_neighbors=5, radius=1.0, algorithm='auto', leaf_size=30, metric='minkowski', p=2, metric_params=None, n_jobs=None) [source]
Unsupervised learner for implementing neighbor searches. Read more in the User Guide. New in version 0.9. Parameters
n_neighborsint, default=5... | |
doc_29398 | Create a new pure proxy server. Arguments are as per SMTPServer. Everything will be relayed to remoteaddr. Note that running this has a good chance to make you into an open relay, so please be careful. | |
doc_29399 | Called each time around the asynchronous loop to determine whether a channel’s socket should be added to the list on which write events can occur. The default method simply returns True, indicating that by default, all channels will be interested in write events. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.