_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_6100 |
Compute mean and variance along an axis on a CSR or CSC matrix. Parameters
Xsparse matrix of shape (n_samples, n_features)
Input data. It can be of CSR or CSC format.
axis{0, 1}
Axis along which the axis should be computed.
weightsndarray of shape (n_samples,) or (n_features,), default=None
if axis is s... | |
doc_6101 | See Migration guide for more details. tf.compat.v1.sparse.reduce_sum_sparse
tf.compat.v1.sparse_reduce_sum_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_6102 |
Get location for a label or a tuple of labels. The location is returned as an integer/slice or boolean mask. Parameters
key:label or tuple of labels (one for each level)
method:None
Returns
loc:int, slice object or boolean mask
If the key is past the lexsort depth, the return may be a boolean mask array... | |
doc_6103 |
Pass a CloseEvent to all functions connected to close_event. | |
doc_6104 |
Perform a morphological reconstruction of an image. Morphological reconstruction by dilation is similar to basic morphological dilation: high-intensity values will replace nearby low-intensity values. The basic dilation operator, however, uses a structuring element to determine how far a value in the input image can ... | |
doc_6105 |
Sets whether validation is enabled or disabled. The default behavior mimics Python’s assert statement: validation is on by default, but is disabled if Python is run in optimized mode (via python -O). Validation may be expensive, so you may want to disable it once a model is working. Parameters
value (bool) – Whethe... | |
doc_6106 |
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_6107 |
Draw samples from a Hypergeometric distribution. Samples are drawn from a hypergeometric distribution with specified parameters, ngood (ways to make a good selection), nbad (ways to make a bad selection), and nsample (number of items sampled, which is less than or equal to the sum ngood + nbad). Note New code should... | |
doc_6108 |
Open image file and display in viewer. | |
doc_6109 |
Exhaustive search over specified parameter values for an estimator. Important members are fit, predict. GridSearchCV implements a “fit” and a “score” method. It also implements “score_samples”, “predict”, “predict_proba”, “decision_function”, “transform” and “inverse_transform” if they are implemented in the estimato... | |
doc_6110 |
Predict targets of given samples. Parameters
Xarray-like of shape (n_samples, n_features)
Samples.
copybool, default=True
Whether to copy X and Y, or perform in-place normalization. Notes This call requires the estimation of a matrix of shape (n_features, n_targets), which may be an issue in high dimens... | |
doc_6111 | The version string of the zlib library that was used for building the module. This may be different from the zlib library actually used at runtime, which is available as ZLIB_RUNTIME_VERSION. | |
doc_6112 | Loads templates from a given source, such as the filesystem or a database.
get_template_sources(template_name)
A method that takes a template_name and yields Origin instances for each possible source. For example, the filesystem loader may receive 'index.html' as a template_name argument. This method would yield or... | |
doc_6113 |
Scale features of X according to feature_range. Parameters
Xarray-like of shape (n_samples, n_features)
Input data that will be transformed. Returns
Xtndarray of shape (n_samples, n_features)
Transformed data. | |
doc_6114 | See Migration guide for more details. tf.compat.v1.raw_ops.EncodeWav
tf.raw_ops.EncodeWav(
audio, sample_rate, name=None
)
This operation will generate a string suitable to be saved out to create a .wav audio file. It will be encoded in the 16-bit PCM format. It takes in float values in the range -1.0f to 1.0f, ... | |
doc_6115 |
Bases: object A d-dimensional Bezier segment. Parameters
control_points(N, d) array
Location of the N control points. axis_aligned_extrema()[source]
Return the dimension and location of the curve's interior extrema. The extrema are the points along the curve where one of its partial derivatives is zero.... | |
doc_6116 | A subclass of HTTPConnection that uses SSL for communication with secure servers. Default port is 443. If context is specified, it must be a ssl.SSLContext instance describing the various SSL options. Please read Security considerations for more information on best practices. Changed in version 3.2: source_address, co... | |
doc_6117 | Creates a tensor whose diagonals of certain 2D planes (specified by dim1 and dim2) are filled by input. To facilitate creating batched diagonal matrices, the 2D planes formed by the last two dimensions of the returned tensor are chosen by default. The argument offset controls which diagonal to consider: If offset = 0,... | |
doc_6118 |
Return image with boundaries between labeled regions highlighted. Parameters
image(M, N[, 3]) array
Grayscale or RGB image.
label_img(M, N) array of int
Label array where regions are marked by different integer values.
colorlength-3 sequence, optional
RGB color of boundaries in the output image.
outli... | |
doc_6119 |
Set the antialiasing state for rendering. Parameters
aabool or list of bools | |
doc_6120 | See Migration guide for more details. tf.compat.v1.strings.upper
tf.strings.upper(
input, encoding='', name=None
)
Example:
tf.strings.upper("CamelCase string and ALL CAPS")
<tf.Tensor: shape=(), dtype=string, numpy=b'CAMELCASE STRING AND ALL CAPS'>
Args
input A Tensor of type string.
encoding A... | |
doc_6121 |
Applies a 1D transposed convolution operator over an input image composed of several input planes. This module can be seen as the gradient of Conv1d with respect to its input. It is also known as a fractionally-strided convolution or a deconvolution (although it is not an actual deconvolution operation). This module ... | |
doc_6122 | Sequence containing all the soft keywords defined for the interpreter. If any soft keywords are defined to only be active when particular __future__ statements are in effect, these will be included as well. New in version 3.9. | |
doc_6123 | turtle.clearscreen()
Delete all drawings and all turtles from the TurtleScreen. Reset the now empty TurtleScreen to its initial state: white background, no background image, no event bindings and tracing on. Note This TurtleScreen method is available as a global function only under the name clearscreen. The global f... | |
doc_6124 | Between 1 and the number of days in the given month of the given year. | |
doc_6125 |
kind = 'day' | |
doc_6126 | get the event a channel sends when playback stops get_endevent() -> type Returns the event type to be sent every time the Channel finishes playback of a Sound. If there is no endevent the function returns pygame.NOEVENT. | |
doc_6127 | If distinct=True, the count will only include unique instances. This is the SQL equivalent of COUNT(DISTINCT <field>). The default value is False. | |
doc_6128 |
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_6129 | Return a Generator object that will write any message provided to the flatten() method, or any text provided to the write() method, to the file-like object outfp. outfp must support a write method that accepts string data. If optional mangle_from_ is True, put a > character in front of any line in the body that starts ... | |
doc_6130 |
Draw one histogram of the DataFrame’s columns. A histogram is a representation of the distribution of data. This function groups the values of all given Series in the DataFrame into bins and draws all bins in one matplotlib.axes.Axes. This is useful when the DataFrame’s Series are in a similar scale. Parameters
b... | |
doc_6131 | Gets the array system types currently supported. get_arraytypes () -> tuple DEPRECATED: Checks, which array systems are available and returns them as a tuple of strings. The values of the tuple can be used directly in the pygame.surfarray.use_arraytype() () method. If no supported array system could be found, None wi... | |
doc_6132 | Return True if both pathname arguments refer to the same file or directory. This is determined by the device number and i-node number and raises an exception if an os.stat() call on either pathname fails. Availability: Unix, Windows. Changed in version 3.2: Added Windows support. Changed in version 3.4: Windows now ... | |
doc_6133 | sklearn.metrics.det_curve(y_true, y_score, pos_label=None, sample_weight=None) [source]
Compute error rates for different probability thresholds. Note This metric is used for evaluation of ranking and error tradeoffs of a binary classification task. Read more in the User Guide. New in version 0.24. Parameters
... | |
doc_6134 | The Content-Location entity-header field MAY be used to supply the resource location for the entity enclosed in the message when that entity is accessible from a location separate from the requested resource’s URI. | |
doc_6135 | See Migration guide for more details. tf.compat.v1.config.experimental.get_synchronous_execution
tf.config.experimental.get_synchronous_execution()
TensorFlow can execute operations synchronously or asynchronously. If asynchronous execution is enabled, operations may return "non-ready" handles.
Returns Curren... | |
doc_6136 | Return e raised to the power x, minus 1. Here e is the base of natural logarithms. For small floats x, the subtraction in exp(x) - 1 can result in a significant loss of precision; the expm1() function provides a way to compute this quantity to full precision: >>> from math import exp, expm1
>>> exp(1e-5) - 1 # gives r... | |
doc_6137 | Removes the handler for process with PID equal to pid. The function returns True if the handler was successfully removed, False if there was nothing to remove. | |
doc_6138 |
DummyRegressor is a regressor that makes predictions using simple rules. This regressor is useful as a simple baseline to compare with other (real) regressors. Do not use it for real problems. Read more in the User Guide. New in version 0.13. Parameters
strategy{“mean”, “median”, “quantile”, “constant”}, defaul... | |
doc_6139 |
Alias for set_antialiased. | |
doc_6140 |
Broadcasts the tensor to the whole group with multiple GPU tensors per node. tensor must have the same number of elements in all the GPUs from all processes participating in the collective. each tensor in the list must be on a different GPU Only nccl and gloo backend are currently supported tensors should only be GPU... | |
doc_6141 | Return n independent iterators from a single iterable. The following Python code helps explain what tee does (although the actual implementation is more complex and uses only a single underlying FIFO queue). Roughly equivalent to: def tee(iterable, n=2):
it = iter(iterable)
deques = [collections.deque() for i i... | |
doc_6142 | Same as the non-lazy versions above, but using lazy execution. See lazy translations documentation. | |
doc_6143 | The name of the encoding used to decode the stream’s bytes into strings, and to encode strings into bytes. | |
doc_6144 | Return the natural logarithm of the absolute value of the Gamma function at x. New in version 3.2. | |
doc_6145 | The URL scheme of the protocol the request used, such as https or wss. | |
doc_6146 | See Migration guide for more details. tf.compat.v1.raw_ops.Concat
tf.raw_ops.Concat(
concat_dim, values, name=None
)
Args
concat_dim A Tensor of type int32. 0-D. The dimension along which to concatenate. Must be in the range [0, rank(values)).
values A list of at least 2 Tensor objects with the sa... | |
doc_6147 |
Finds blobs in the given grayscale image. Blobs are found using the Laplacian of Gaussian (LoG) method [1]. For each blob found, the method returns its coordinates and the standard deviation of the Gaussian kernel that detected the blob. Parameters
image2D or 3D ndarray
Input grayscale image, blobs are assumed ... | |
doc_6148 | Represents the C 64-bit unsigned int datatype. Usually an alias for c_ulonglong. | |
doc_6149 | class sklearn.isotonic.IsotonicRegression(*, y_min=None, y_max=None, increasing=True, out_of_bounds='nan') [source]
Isotonic regression model. Read more in the User Guide. New in version 0.13. Parameters
y_minfloat, default=None
Lower bound on the lowest predicted value (the minimum value may still be higher)... | |
doc_6150 |
Construct a new Generator with the default BitGenerator (PCG64). Parameters
seed{None, int, array_like[ints], SeedSequence, BitGenerator, Generator}, optional
A seed to initialize the BitGenerator. If None, then fresh, unpredictable entropy will be pulled from the OS. If an int or array_like[ints] is passed, th... | |
doc_6151 | Variable that specifies the user agent of the opener object. To get urllib to tell servers that it is a particular user agent, set this in a subclass as a class variable or in the constructor before calling the base constructor. | |
doc_6152 | calculates the squared Euclidean distance to a given vector. distance_squared_to(Vector3) -> float | |
doc_6153 |
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_6154 |
Applies a 2D adaptive average pooling over an input signal composed of several input planes. The output is of size H x W, for any input size. The number of output features is equal to the number of input planes. Parameters
output_size – the target output size of the image of the form H x W. Can be a tuple (H, W) or... | |
doc_6155 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyMomentum
tf.raw_ops.ResourceApplyMomentum(
var, accum, lr, grad, momentum, use_locking=False, use_nesterov=False, name=None
)
Set use_nesterov = True if you want to use Nesterov momentum. accum = accum * momentum + grad var -= lr * accum
... | |
doc_6156 | For syntax errors - the file name where the error occurred. | |
doc_6157 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_6158 |
Returns a snapshot of the CUDA memory allocator state across all devices. Interpreting the output of this function requires familiarity with the memory allocator internals. Note See Memory management for more details about GPU memory management. | |
doc_6159 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListSetItem
tf.raw_ops.TensorListSetItem(
input_handle, index, item, name=None
)
input_handle: the list index: the position in the list to which the tensor will be assigned item: the element to be assigned to that position output_handle: the new li... | |
doc_6160 | Returns the HTML ID attribute of this widget for use by a <label>, given the ID of the field. Returns None if an ID isn’t available. This hook is necessary because some widgets have multiple HTML elements and, thus, multiple IDs. In that case, this method should return an ID value that corresponds to the first ID in th... | |
doc_6161 |
Learn a vocabulary dictionary of all tokens in the raw documents. Parameters
raw_documentsiterable
An iterable which yields either str, unicode or file objects. Returns
self | |
doc_6162 |
Return a new array with sub-arrays along an axis deleted. For a one dimensional array, this returns those entries not returned by arr[obj]. Parameters
arrarray_like
Input array.
objslice, int or array of ints
Indicate indices of sub-arrays to remove along the specified axis. Changed in version 1.19.0: Bool... | |
doc_6163 | Stop the child process. On POSIX systems this method sends signal.SIGTERM to the child process. On Windows the Win32 API function TerminateProcess() is called to stop the child process. | |
doc_6164 | Get a format string for time.strftime() to represent time in the am/pm format. | |
doc_6165 | Set the current child process watcher to watcher. This function is Unix specific. | |
doc_6166 | Convert data to floats and compute the geometric mean. The geometric mean indicates the central tendency or typical value of the data using the product of the values (as opposed to the arithmetic mean which uses their sum). Raises a StatisticsError if the input dataset is empty, if it contains a zero, or if it contains... | |
doc_6167 | Alias for field number 2 | |
doc_6168 |
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk. | |
doc_6169 |
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters
Xarray-like of shape (n_samples, n_features)
Input samples.
yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None
Target values (None for uns... | |
doc_6170 | Return True if name is in the set of SMTP service extensions returned by the server, False otherwise. Case is ignored. | |
doc_6171 | Create a memoryview that references obj. obj must support the buffer protocol. Built-in objects that support the buffer protocol include bytes and bytearray. A memoryview has the notion of an element, which is the atomic memory unit handled by the originating object obj. For many simple types such as bytes and bytearra... | |
doc_6172 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.RandomFourierFeatures
tf.keras.layers.experimental.RandomFourierFeatures(
output_dim, kernel_initializer='gaussian', scale=None,
trainable=False, name=None, **kwargs
)
This layer implements a mapping from input space to a space with... | |
doc_6173 |
alias of numpy.cdouble | |
doc_6174 | Returns a FormSet class for the given model class. Arguments model, form, fields, exclude, formfield_callback, widgets, localized_fields, labels, help_texts, error_messages, and field_classes are all passed through to modelform_factory(). Arguments formset, extra, can_delete, can_order, max_num, validate_max, min_num, ... | |
doc_6175 |
Return the font weight, e.g., 'Bold' or 'Roman'. | |
doc_6176 |
Return the line color. See also set_color. | |
doc_6177 | Called when the test case test is skipped. reason is the reason the test gave for skipping. The default implementation appends a tuple (test, reason) to the instance’s skipped attribute. | |
doc_6178 | Setting this to true causes the xmlparser object to buffer textual content returned by Expat to avoid multiple calls to the CharacterDataHandler() callback whenever possible. This can improve performance substantially since Expat normally breaks character data into chunks at every line ending. This attribute is false b... | |
doc_6179 | class sklearn.exceptions.EfficiencyWarning [source]
Warning used to notify the user of inefficient computation. This warning notifies the user that the efficiency may not be optimal due to some reason which may be included as a part of the warning message. This may be subclassed into a more specific Warning class. N... | |
doc_6180 |
Alias for get_linestyle. | |
doc_6181 | sklearn.metrics.cluster.contingency_matrix(labels_true, labels_pred, *, eps=None, sparse=False, dtype=<class 'numpy.int64'>) [source]
Build a contingency matrix describing the relationship between labels. Parameters
labels_trueint array, shape = [n_samples]
Ground truth class labels to be used as a reference. ... | |
doc_6182 |
Convert series to a different kind and/or domain and/or window. Parameters
domainarray_like, optional
The domain of the converted series. If the value is None, the default domain of kind is used.
kindclass, optional
The polynomial series type class to which the current instance should be converted. If kind ... | |
doc_6183 |
Return the mean value of the Array. New in version 0.25.0. Parameters
skipna:bool, default True
Whether to ignore any NaT elements.
axis:int, optional, default 0
Returns
scalar
Timestamp or Timedelta. See also numpy.ndarray.mean
Returns the average of array elements along a given axis. Series.... | |
doc_6184 |
Return Series/DataFrame with requested index / column level(s) removed. Parameters
level:int, str, or list-like
If a string is given, must be the name of a level If list-like, elements must be names or positional indexes of levels.
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
Axis along which the level(s)... | |
doc_6185 | See Migration guide for more details. tf.compat.v1.raw_ops.Snapshot
tf.raw_ops.Snapshot(
input, name=None
)
Args
input A Tensor.
name A name for the operation (optional).
Returns A Tensor. Has the same type as input. | |
doc_6186 | A callback wrapper object returned by loop.call_later(), and loop.call_at(). This class is a subclass of Handle.
when()
Return a scheduled callback time as float seconds. The time is an absolute timestamp, using the same time reference as loop.time(). New in version 3.7. | |
doc_6187 | A list of constraints that you want to define on the model: from django.db import models
class Customer(models.Model):
age = models.IntegerField()
class Meta:
constraints = [
models.CheckConstraint(check=models.Q(age__gte=18), name='age_gte_18'),
] | |
doc_6188 |
Set the colormap to 'summer'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | |
doc_6189 | Return True if all tests run so far have passed, otherwise returns False. Changed in version 3.4: Returns False if there were any unexpectedSuccesses from tests marked with the expectedFailure() decorator. | |
doc_6190 | Establish a Unix socket connection and return a pair of (reader, writer). Similar to open_connection() but operates on Unix sockets. See also the documentation of loop.create_unix_connection(). Availability: Unix. New in version 3.7: The ssl_handshake_timeout parameter. Changed in version 3.7: The path parameter can... | |
doc_6191 |
Set whether to fill the patch. Parameters
bbool | |
doc_6192 |
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_6193 |
DateOffset of one month at the first business day. Examples
>>> from pandas.tseries.offsets import BMonthBegin
>>> ts=pd.Timestamp('2020-05-24 05:01:15')
>>> ts + BMonthBegin()
Timestamp('2020-06-01 05:01:15')
>>> ts + BMonthBegin(2)
Timestamp('2020-07-01 05:01:15')
>>> ts + BMonthBegin(-3)
Timestamp('2020-03-02 05:... | |
doc_6194 | See Migration guide for more details. tf.compat.v1.raw_ops.EnqueueTPUEmbeddingIntegerBatch
tf.raw_ops.EnqueueTPUEmbeddingIntegerBatch(
batch, mode_override, device_ordinal=-1, name=None
)
Args
batch A list of at least 1 Tensor objects with type int32. A list of 1D tensors, one for each embedding table, ... | |
doc_6195 |
Fill the array with a scalar value. Parameters
valuescalar
All elements of a will be assigned this value. Examples >>> a = np.array([1, 2])
>>> a.fill(0)
>>> a
array([0, 0])
>>> a = np.empty(2)
>>> a.fill(1)
>>> a
array([1., 1.]) | |
doc_6196 |
Bases: mpl_toolkits.axes_grid1.axes_size._Base get_size(renderer)[source] | |
doc_6197 |
Gravel Returns
gravel(512, 512) uint8 image
Grayscale gravel sample. Notes The original image was downloaded from CC0Textures and licensed under the Creative Commons CC0 License. The downloaded image was then rescaled to (1024, 1024), then the top left (512, 512) pixel region was cropped prior to converting... | |
doc_6198 |
Confusion Matrix visualization. It is recommend to use plot_confusion_matrix to create a ConfusionMatrixDisplay. All parameters are stored as attributes. Read more in the User Guide. Parameters
confusion_matrixndarray of shape (n_classes, n_classes)
Confusion matrix.
display_labelsndarray of shape (n_classes,... | |
doc_6199 | Redirect to the Location: or URI: URL. This method is called by the parent OpenerDirector when getting an HTTP ‘moved permanently’ response. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.