_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_5200 |
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_5201 |
Compute the pruning path during Minimal Cost-Complexity Pruning. See Minimal Cost-Complexity Pruning for details on the pruning process. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matri... | |
doc_5202 | Patch a dictionary, or dictionary like object, and restore the dictionary to its original state after the test. in_dict can be a dictionary or a mapping like container. If it is a mapping then it must at least support getting, setting and deleting items plus iterating over keys. in_dict can also be a string specifying ... | |
doc_5203 |
Mask an array outside a given interval. Shortcut to masked_where, where condition is True for x outside the interval [v1,v2] (x < v1)|(x > v2). The boundaries v1 and v2 can be given in either order. See also masked_where
Mask where a condition is met. Notes The array x is prefilled with its filling value. Examp... | |
doc_5204 | Module: email.mime.image A subclass of MIMENonMultipart, the MIMEImage class is used to create MIME message objects of major type image. _imagedata is a string containing the raw image data. If this data can be decoded by the standard Python module imghdr, then the subtype will be automatically included in the Content-... | |
doc_5205 | If one of your views receives an HttpRequest object with POST parameters susceptible to contain sensitive information, you may prevent the values of those parameters from being included in the error reports using the sensitive_post_parameters decorator: from django.views.decorators.debug import sensitive_post_parameter... | |
doc_5206 |
Fit the gradient boosting model. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix.
yarray-like of shape (n_samples,)
Target values (strings or integers in... | |
doc_5207 |
Copy of the array, cast to a specified type. Parameters
dtypestr or dtype
Typecode or data-type to which the array is cast.
order{‘C’, ‘F’, ‘A’, ‘K’}, optional
Controls the memory layout order of the result. ‘C’ means C order, ‘F’ means Fortran order, ‘A’ means ‘F’ order if all the arrays are Fortran contig... | |
doc_5208 | The value to use to represent “empty”. Defaults to an empty string. | |
doc_5209 |
Possible values where to place the table relative to the Axes. | |
doc_5210 | When specified, all sequences of whitespace (blanks and newlines) are treated as equal. Any sequence of whitespace within the expected output will match any sequence of whitespace within the actual output. By default, whitespace must match exactly. NORMALIZE_WHITESPACE is especially useful when a line of expected outpu... | |
doc_5211 | Sets the number of threads used for interop parallelism (e.g. in JIT interpreter) on CPU. Warning Can only be called once and before any inter-op parallel work is started (e.g. JIT execution). | |
doc_5212 | Compute the inverse cumulative distribution function, also known as the quantile function or the percent-point function. Mathematically, it is written x : P(X <= x) = p. Finds the value x of the random variable X such that the probability of the variable being less than or equal to that value equals the given probabili... | |
doc_5213 |
Set the alpha value used for blending - not supported on all backends. Parameters
alphaarray-like or scalar or None
All values must be within the 0-1 range, inclusive. Masked values and nans are not supported. | |
doc_5214 | See Migration guide for more details. tf.compat.v1.raw_ops.Conv3D
tf.raw_ops.Conv3D(
input, filter, strides, padding, data_format='NDHWC', dilations=[1, 1,
1, 1, 1], name=None
)
In signal processing, cross-correlation is a measure of similarity of two waveforms as a function of a time-lag applied to one of t... | |
doc_5215 | Truncates to midnight on the Monday of the week.
kind = 'week' | |
doc_5216 | See Migration guide for more details. tf.compat.v1.raw_ops.ShuffleAndRepeatDatasetV2
tf.raw_ops.ShuffleAndRepeatDatasetV2(
input_dataset, buffer_size, seed, seed2, count, seed_generator, output_types,
output_shapes, reshuffle_each_iteration=True, name=None
)
Args
input_dataset A Tensor of type varia... | |
doc_5217 | Return a string representation of object, protected against recursive data structures. If the representation of object exposes a recursive entry, the recursive reference will be represented as <Recursion on typename with
id=number>. The representation is not otherwise formatted. >>> pprint.saferepr(stuff)
"[<Recursion ... | |
doc_5218 |
Label connected regions of an integer array. Two pixels are connected when they are neighbors and have the same value. In 2D, they can be neighbors either in a 1- or 2-connected sense. The value refers to the maximum number of orthogonal hops to consider a pixel/voxel a neighbor: 1-connectivity 2-connectivity ... | |
doc_5219 | See Migration guide for more details. tf.compat.v1.raw_ops.UniqueWithCountsV2
tf.raw_ops.UniqueWithCountsV2(
x, axis, out_idx=tf.dtypes.int32, name=None
)
This operation either returns a tensor y containing unique elements along the axis of a tensor. The returned unique elements is sorted in the same order as th... | |
doc_5220 | tf.experimental.numpy.log10(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.log10. | |
doc_5221 | See Migration guide for more details. tf.compat.v1.debugging.experimental.disable_dump_debug_info
tf.debugging.experimental.disable_dump_debug_info()
If the enable_dump_debug_info() method under the same Python namespace has been invoked before, calling this method disables it. If no call to enable_dump_debug_info()... | |
doc_5222 |
Set the alpha value used for blending - not supported on all backends. Parameters
alphaarray-like or scalar or None
All values must be within the 0-1 range, inclusive. Masked values and nans are not supported. | |
doc_5223 | tf.compat.v1.layers.MaxPooling3D(
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 the ... | |
doc_5224 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListConcat
tf.raw_ops.TensorListConcat(
input_handle, element_dtype, element_shape=None, name=None
)
Requires that all tensors have the same shape except the first dimension. input_handle: The input list. tensor: The concated result. lengths: Outpu... | |
doc_5225 | A subclass of the email.message module’s Message. Subclasses of mailbox.Message add mailbox-format-specific state and behavior. If message is omitted, the new instance is created in a default, empty state. If message is an email.message.Message instance, its contents are copied; furthermore, any format-specific informa... | |
doc_5226 |
Add CSS to permanently display the index or column headers in a scrolling frame. Parameters
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
Whether to make the index or column headers sticky.
pixel_size:int, optional
Required to configure the width of index cells or the height of column header cells when sti... | |
doc_5227 | tf.compat.v1.graph_util.convert_variables_to_constants(
sess, input_graph_def, output_node_names, variable_names_whitelist=None,
variable_names_blacklist=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.compat.v1.graph_util.convert_variables... | |
doc_5228 | Registers a forward hook on the module. The hook will be called every time after forward() has computed an output. It should have the following signature: hook(module, input, output) -> None or modified output
The input contains only the positional arguments given to the module. Keyword arguments won’t be passed to th... | |
doc_5229 |
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters
levelfloat | |
doc_5230 | sklearn.decomposition.dict_learning_online(X, n_components=2, *, alpha=1, n_iter=100, return_code=True, dict_init=None, callback=None, batch_size=3, verbose=False, shuffle=True, n_jobs=None, method='lars', iter_offset=0, random_state=None, return_inner_stats=False, inner_stats=None, return_n_iter=False, positive_dict=F... | |
doc_5231 |
Redraw the current figure if in interactive mode. Warning End users will typically not have to call this function because the the interactive mode takes care of this. | |
doc_5232 |
Truncate a Series or DataFrame before and after some index value. This is a useful shorthand for boolean indexing based on index values above or below certain thresholds. Parameters
before:date, str, int
Truncate all rows before this index value.
after:date, str, int
Truncate all rows after this index value... | |
doc_5233 |
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_5234 |
Number of seconds (>= 0 and less than 1 day) for each element. | |
doc_5235 | dict(mapping)
dict(sequence)
Create a shared dict object and return a proxy for it. | |
doc_5236 | Return True if this entry is a directory or a symbolic link pointing to a directory; return False if the entry is or points to any other kind of file, or if it doesn’t exist anymore. If follow_symlinks is False, return True only if this entry is a directory (without following symlinks); return False if the entry is any... | |
doc_5237 |
[Deprecated] Clear this axis. Notes Deprecated since version 3.4. | |
doc_5238 |
Plot the angle spectrum. Compute the angle spectrum (wrapped phase spectrum) of x. Data is padded to a length of pad_to and the windowing function window is applied to the signal. Parameters
x1-D array or sequence
Array or sequence containing the data.
Fsfloat, default: 2
The sampling frequency (samples per... | |
doc_5239 |
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array. | |
doc_5240 |
Merge arrays field by field. Parameters
seqarrayssequence of ndarrays
Sequence of arrays
fill_value{float}, optional
Filling value used to pad missing data on the shorter arrays.
flatten{False, True}, optional
Whether to collapse nested fields.
usemask{False, True}, optional
Whether to return a mask... | |
doc_5241 |
Return input as an array with masked data replaced by a fill value. If a is not a MaskedArray, a itself is returned. If a is a MaskedArray and fill_value is None, fill_value is set to a.fill_value. Parameters
aMaskedArray or array_like
An input object.
fill_valuearray_like, optional.
Can be scalar or non-sc... | |
doc_5242 | tf.experimental.numpy.tan(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.tan. | |
doc_5243 |
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_5244 |
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar. | |
doc_5245 | Return the current stream position as an opaque number. The number does not usually represent a number of bytes in the underlying binary storage. | |
doc_5246 | tf.compat.v1.layers.separable_conv2d(
inputs, filters, kernel_size, strides=(1, 1), padding='valid',
data_format='channels_last', dilation_rate=(1, 1), depth_multiplier=1,
activation=None, use_bias=True, depthwise_initializer=None,
pointwise_initializer=None, bias_initializer=tf.zeros_initializer(),
... | |
doc_5247 | See torch.repeat_interleave(). | |
doc_5248 | tf.compat.v1.estimator.LinearClassifier(
feature_columns, model_dir=None, n_classes=2, weight_column=None,
label_vocabulary=None, optimizer='Ftrl', config=None,
partitioner=None, warm_start_from=None,
loss_reduction=tf.compat.v1.losses.Reduction.SUM,
sparse_combiner='sum'
)
Train a linear model to ... | |
doc_5249 | Read/write attribute that controls the number of rows returned by fetchmany(). The default value is 1 which means a single row would be fetched per call. | |
doc_5250 | See Migration guide for more details. tf.compat.v1.debugging.assert_rank_in
tf.compat.v1.assert_rank_in(
x, ranks, data=None, summarize=None, message=None, name=None
)
Example of adding a dependency to an operation: with tf.control_dependencies([tf.compat.v1.assert_rank_in(x, (2, 4))]):
output = tf.reduce_sum(... | |
doc_5251 |
Define the picking behavior of the artist. Parameters
pickerNone or bool or float or callable
This can be one of the following:
None: Picking is disabled for this artist (default). A boolean: If True then picking will be enabled and the artist will fire a pick event if the mouse event is over the artist. A fl... | |
doc_5252 | Decrements interval timer both when the process executes and when the system is executing on behalf of the process. Coupled with ITIMER_VIRTUAL, this timer is usually used to profile the time spent by the application in user and kernel space. SIGPROF is delivered upon expiration. | |
doc_5253 | Analyzes the request to find what language the user wants the system to show. Only languages listed in settings.LANGUAGES are taken into account. If the user requests a sublanguage where we have a main language, we send out the main language. If check_path is True, the function first checks the requested URL for whethe... | |
doc_5254 | See Migration guide for more details. tf.compat.v1.raw_ops.DatasetFromGraph
tf.raw_ops.DatasetFromGraph(
graph_def, name=None
)
Creates a dataset from the provided graph_def.
Args
graph_def A Tensor of type string. The graph representation of the dataset (as serialized GraphDef).
name A name for t... | |
doc_5255 |
Return Index or MultiIndex name. | |
doc_5256 | Parameters
size – an integer or None Set or disable undobuffer. If size is an integer, an empty undobuffer of given size is installed. size gives the maximum number of turtle actions that can be undone by the undo() method/function. If size is None, the undobuffer is disabled. >>> turtle.setundobuffer(42) | |
doc_5257 |
Draw an RGBA image. Parameters
gcGraphicsContextBase
A graphics context with clipping information.
xscalar
The distance in physical units (i.e., dots or pixels) from the left hand side of the canvas.
yscalar
The distance in physical units (i.e., dots or pixels) from the bottom side of the canvas.
im(N... | |
doc_5258 | Set save_on_top to add save buttons across the top of your admin change forms. Normally, the save buttons appear only at the bottom of the forms. If you set save_on_top, the buttons will appear both on the top and the bottom. By default, save_on_top is set to False. | |
doc_5259 |
Converts a positive integer to a base 36 string. | |
doc_5260 | A list of methods this view can handle. | |
doc_5261 | Sequence of operation names, indexable using the bytecode. | |
doc_5262 | Logs a message with level WARNING on this logger. The arguments are interpreted as for debug(). Note There is an obsolete method warn which is functionally identical to warning. As warn is deprecated, please do not use it - use warning instead. | |
doc_5263 |
Raise a polynomial to a power. Returns the polynomial c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. i.e., [1,2,3] is the series 1 + 2*x + 3*x**2. Parameters
carray_like
1-D array of array of series coefficients ordered from low to high degree.
powinteger
P... | |
doc_5264 | Return True if the stream is interactive (i.e., connected to a terminal/tty device). | |
doc_5265 | tf.experimental.numpy.std(
a, axis=None, keepdims=None
)
Unsupported arguments: dtype, out, ddof. See the NumPy documentation for numpy.std. | |
doc_5266 | Flush all input buffers. This throws away any typeahead that has been typed by the user and has not yet been processed by the program. | |
doc_5267 | Extract a member from the archive as a file object. member may be a filename or a TarInfo object. If member is a regular file or a link, an io.BufferedReader object is returned. For all other existing members, None is returned. If member does not appear in the archive, KeyError is raised. Changed in version 3.3: Retur... | |
doc_5268 | sklearn.utils.random.sample_without_replacement()
Sample integers without replacement. Select n_samples integers from the set [0, n_population) without replacement. Parameters
n_populationint
The size of the set to sample from.
n_samplesint
The number of integer to sample.
random_stateint, RandomState ins... | |
doc_5269 | Returns an iterator over all modules in the network, yielding both the name of the module as well as the module itself. Yields
(string, Module) – Tuple of name and module Note Duplicate modules are returned only once. In the following example, l will be returned only once. Example: >>> l = nn.Linear(2, 2)
>>> net... | |
doc_5270 |
Return the Transform instance used by this artist offset. | |
doc_5271 |
RGB to stain color space conversion. Parameters
rgb(…, 3) array_like
The image in RGB format. Final dimension denotes channels. conv_matrix: ndarray
The stain separation matrix as described by G. Landini [1]. Returns
out(…, 3) ndarray
The image in stain color space. Same dimensions as input. Raises... | |
doc_5272 | An instance of Compat32, providing backward compatibility with the behavior of the email package in Python 3.2. | |
doc_5273 |
Synonym for DataFrame.fillna() with method='bfill'. Returns
Series/DataFrame or None
Object with missing values filled or None if inplace=True. | |
doc_5274 | The maximum size (in bytes) of the process’s heap. | |
doc_5275 | A Cursor instance has the following attributes and methods.
execute(sql[, parameters])
Executes an SQL statement. Values may be bound to the statement using placeholders. execute() will only execute a single SQL statement. If you try to execute more than one statement with it, it will raise a Warning. Use executesc... | |
doc_5276 |
Transform via the mapping y=exp(x)y = \exp(x) . | |
doc_5277 | os.P_OVERLAY
Possible values for the mode parameter to the spawn* family of functions. These are less portable than those listed above. P_DETACH is similar to P_NOWAIT, but the new process is detached from the console of the calling process. If P_OVERLAY is used, the current process will be replaced; the spawn* funct... | |
doc_5278 | Sequence of bytecodes that access an attribute by name. | |
doc_5279 | Return the next row of the reader’s iterable object as a list (if the object was returned from reader()) or a dict (if it is a DictReader instance), parsed according to the current dialect. Usually you should call this as next(reader). | |
doc_5280 | __iter__()
values()
Return an iterator over representations of all messages if called as itervalues() or __iter__() or return a list of such representations if called as values(). The messages are represented as instances of the appropriate format-specific Message subclass unless a custom message factory was specif... | |
doc_5281 |
Test whether the mouse event occurred in the patch. Returns
(bool, empty dict) | |
doc_5282 |
Applies the rectified linear unit function element-wise. See ReLU for more details. | |
doc_5283 | See Migration guide for more details. tf.compat.v1.errors.OutOfRangeError
tf.errors.OutOfRangeError(
node_def, op, message
)
This exception is raised in "end-of-file" conditions, such as when a tf.QueueBase.dequeue operation is blocked on an empty queue, and a tf.QueueBase.close operation executes.
Attribut... | |
doc_5284 |
Append the given callback function to this Future, which will be run when the Future is completed. Multiple callbacks can be added to the same Future, and will be invoked in the same order as they were added. The callback must take one argument, which is the reference to this Future. The callback function can use the... | |
doc_5285 |
Default evaluation function takes a torch.utils.data.Dataset or a list of input Tensors and run the model on the dataset | |
doc_5286 | See Migration guide for more details. tf.compat.v1.raw_ops.LookupTableInsertV2
tf.raw_ops.LookupTableInsertV2(
table_handle, keys, values, name=None
)
The tensor keys must be of the same type as the keys of the table. The tensor values must be of the type of the table values.
Args
table_handle A Tensor ... | |
doc_5287 |
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_5288 | Convert the true distance to the reduced distance. The reduced distance, defined for some metrics, is a computationally more efficient measure which preserves the rank of the true distance. For example, in the Euclidean distance metric, the reduced distance is the squared-euclidean distance. | |
doc_5289 |
Return the sizes ('areas') of the elements in the collection. Returns
array
The 'area' of each element. | |
doc_5290 |
Return the visibility. | |
doc_5291 |
Marks a middleware as sync and async compatible, this allows to avoid converting requests. You must implement detection of the current request type to use this decorator. See asynchronous middleware documentation for details. | |
doc_5292 | Returns an iterator to dump the database in an SQL text format. Useful when saving an in-memory database for later restoration. This function provides the same capabilities as the .dump command in the sqlite3 shell. Example: # Convert file existing_db.db to SQL dump file dump.sql
import sqlite3
con = sqlite3.connect('... | |
doc_5293 | Instructs writer objects to only quote those fields which contain special characters such as delimiter, quotechar or any of the characters in lineterminator. | |
doc_5294 |
Convert a Patch to a Patch3D object. | |
doc_5295 | See Migration guide for more details. tf.compat.v1.test.is_gpu_available
tf.test.is_gpu_available(
cuda_only=False, min_cuda_compute_capability=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.config.list_physical_devices('GPU') instead.Warnin... | |
doc_5296 | A generic version of collections.abc.ByteString. This type represents the types bytes, bytearray, and memoryview of byte sequences. As a shorthand for this type, bytes can be used to annotate arguments of any of the types mentioned above. Deprecated since version 3.9: collections.abc.ByteString now supports []. See PE... | |
doc_5297 | See Migration guide for more details. tf.compat.v1.lite.Optimize Some optimizations may come at the cost of accuracy. DEFAULT Default optimization strategy. Converter will do its best to improve size and latency based on the
information provided.
Enhanced optimizations are gained by providing a representative_dataset.... | |
doc_5298 | If a secret key is set, cryptographic components can use this to sign cookies and other things. Set this to a complex random value when you want to use the secure cookie for instance. This attribute can also be configured from the config with the SECRET_KEY configuration key. Defaults to None. | |
doc_5299 | tf.compat.v1.nn.conv1d(
value=None, filters=None, stride=None, padding=None, use_cudnn_on_gpu=None,
data_format=None, name=None, input=None, dilations=None
)
Warning: SOME ARGUMENT VALUES ARE DEPRECATED: (data_format='NCHW'). They will be removed in a future version. Instructions for updating: NCHW for data_fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.