_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_15500 | tf.compat.v1.estimator.tpu.experimental.EmbeddingConfigSpec(
feature_columns=None, optimization_parameters=None, clipping_limit=None,
pipeline_execution_with_tensor_core=False,
experimental_gradient_multiplier_fn=None, feature_to_config_dict=None,
table_to_config_dict=None, partition_strategy='div',
... | |
doc_15501 | Change the hardware gamma ramps set_gamma(red, green=None, blue=None) -> bool Set the red, green, and blue gamma values on the display hardware. If the green and blue arguments are not passed, they will both be the same as red. Not all systems and hardware support gamma ramps, if the function succeeds it will return ... | |
doc_15502 | Re-define the sequences that exist in the mailbox based upon sequences, a dictionary of names mapped to key lists, like returned by get_sequences(). | |
doc_15503 |
Round each value in a Series to the given number of decimals. Parameters
decimals:int, default 0
Number of decimal places to round to. If decimals is negative, it specifies the number of positions to the left of the decimal point. *args, **kwargs
Additional arguments and keywords have no effect but might be a... | |
doc_15504 |
Check whether all characters in each string are uppercase. This is equivalent to running the Python string method str.isupper() for each element of the Series/Index. If a string has zero characters, False is returned for that check. Returns
Series or Index of bool
Series or Index of boolean values with the same l... | |
doc_15505 |
Construct an IntervalIndex from an array-like of tuples. Parameters
data:array-like (1-dimensional)
Array of tuples.
closed:{‘left’, ‘right’, ‘both’, ‘neither’}, default ‘right’
Whether the intervals are closed on the left-side, right-side, both or neither.
copy:bool, default False
By-default copy the d... | |
doc_15506 |
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_15507 |
Attributes
key int64 key
value string value | |
doc_15508 | A catch-all class to handle unknown URLs. | |
doc_15509 |
Return the bbox that the legend will be anchored to. | |
doc_15510 | Casts all floating point parameters and buffers to bfloat16 datatype. Returns
self Return type
Module | |
doc_15511 |
Returns the matrix norm or vector norm of a given tensor. Warning torch.norm is deprecated and may be removed in a future PyTorch release. Use torch.linalg.norm() instead, but note that torch.linalg.norm() has a different signature and slightly different behavior that is more consistent with NumPy’s numpy.linalg.nor... | |
doc_15512 | rotates a vector around the y-axis by the angle in degrees. rotate_y(angle) -> Vector3 Returns a vector which has the same length as self but is rotated counterclockwise around the y-axis by the given angle in degrees. | |
doc_15513 | Parse an etag header. Parameters
value (Optional[str]) – the tag header to parse Returns
an ETags object. Return type
werkzeug.datastructures.ETags | |
doc_15514 |
Alias for get_edgecolor. | |
doc_15515 |
Perform flood filling on an image. Starting at a specific seed_point, connected points equal or within tolerance of the seed value are found, then set to new_value. Parameters
imagendarray
An n-dimensional array.
seed_pointtuple or int
The point in image used as the starting point for the flood fill. If the... | |
doc_15516 | Compile and run some source in the interpreter. Arguments are the same as for compile_command(); the default for filename is '<input>', and for symbol is 'single'. One of several things can happen: The input is incorrect; compile_command() raised an exception (SyntaxError or OverflowError). A syntax traceback will be ... | |
doc_15517 | Returns a DLPack representing the tensor. Parameters
tensor – a tensor to be exported The dlpack shares the tensors memory. Note that each dlpack can only be consumed once. | |
doc_15518 |
Returns whether PyTorch is built with OpenMP support. | |
doc_15519 |
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_15520 | Debug a statement executed via the exec() function. globals defaults to __main__.__dict__, locals defaults to globals. | |
doc_15521 | Return the namespace bound to this name. If more than one namespace is bound, ValueError is raised. | |
doc_15522 |
Retrieve pandas object stored in file, optionally based on where criteria. Warning Pandas uses PyTables for reading and writing HDF5 files, which allows serializing object-dtype data with pickle when using the “fixed” format. Loading pickled data received from untrusted sources can be unsafe. See: https://docs.pytho... | |
doc_15523 | uninitialize the cdrom module quit() -> None Uninitialize the cdrom module. After you call this any existing CD objects will no longer work. It is safe to call this function more than once. | |
doc_15524 | Retry the request with authentication information, if available. | |
doc_15525 |
Cumulative min for each group. Returns
Series or DataFrame
See also Series.groupby
Apply a function groupby to a Series. DataFrame.groupby
Apply a function groupby to each row or column of a DataFrame. | |
doc_15526 | Tries to compile source, which should be a string of Python code and return a code object if source is valid Python code. In that case, the filename attribute of the code object will be filename, which defaults to '<input>'. Returns None if source is not valid Python code, but is a prefix of valid Python code. If there... | |
doc_15527 | Open a dbm database and return a ndbm object. The filename argument is the name of the database file (without the .dir or .pag extensions). The optional flag argument must be one of these values:
Value Meaning
'r' Open existing database for reading only (default)
'w' Open existing database for reading and writi... | |
doc_15528 |
Applies the HardTanh function element-wise. See Hardtanh for more details. | |
doc_15529 | Adds text to the current element. data is a string. This should be either a bytestring, or a Unicode string. | |
doc_15530 | New in version 3.2: The optimize parameter. Changed in version 3.4: ZIP64 extensions are enabled by default. Instances have one method in addition to those of ZipFile objects:
writepy(pathname, basename='', filterfunc=None)
Search for files *.py and add the corresponding file to the archive. If the optimize par... | |
doc_15531 |
[Deprecated] Notes Deprecated since version 3.4: | |
doc_15532 | See Migration guide for more details. tf.compat.v1.raw_ops.StatsAggregatorSetSummaryWriter
tf.raw_ops.StatsAggregatorSetSummaryWriter(
stats_aggregator, summary, name=None
)
Args
stats_aggregator A Tensor of type resource.
summary A Tensor of type resource.
name A name for the operation (opt... | |
doc_15533 |
Change if autograd should record operations on parameters in this module. This method sets the parameters’ requires_grad attributes in-place. This method is helpful for freezing part of the module for finetuning or training parts of a model individually (e.g., GAN training). Parameters
requires_grad (bool) – whethe... | |
doc_15534 | check if text will be rendered with an underline get_underline() -> bool Return True when the font underline is enabled.
Note This is the same as the underline attribute. | |
doc_15535 |
Set the position to use for z-sorting. | |
doc_15536 |
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters
levelfloat | |
doc_15537 |
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_15538 | Read-only attribute returning a list of upcoming events in the order they will be run. Each event is shown as a named tuple with the following fields: time, priority, action, argument, kwargs. | |
doc_15539 |
Encode categorical features as a one-hot numeric array. The input to this transformer should be an array-like of integers or strings, denoting the values taken on by categorical (discrete) features. The features are encoded using a one-hot (aka ‘one-of-K’ or ‘dummy’) encoding scheme. This creates a binary column for ... | |
doc_15540 |
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_15541 | See Migration guide for more details. tf.compat.v1.app.flags.register_multi_flags_validator
tf.compat.v1.flags.register_multi_flags_validator(
flag_names, multi_flags_checker, message='Flags validation failed',
flag_values=_flagvalues.FLAGS
)
The constraint is validated when flags are initially parsed, and a... | |
doc_15542 | Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return... | |
doc_15543 | A data structure of functions to call at the end of each request even if an exception is raised, in the format {scope: [functions]}. The scope key is the name of a blueprint the functions are active for, or None for all requests. To register a function, use the teardown_request() decorator. This data structure is inter... | |
doc_15544 |
Set the Categorical to be unordered. Parameters
inplace:bool, default False
Whether or not to set the ordered attribute in-place or return a copy of this categorical with ordered set to False. Returns
Categorical or None
Unordered Categorical or None if inplace=True. | |
doc_15545 |
Return the group id. | |
doc_15546 |
Disconnect callback by its id (returned by connect_event). | |
doc_15547 |
Returns the pickle of the array as a string. pickle.loads will convert the string back to an array. Parameters
None | |
doc_15548 |
Returns a 1D version of self, as a view. Parameters
order{‘C’, ‘F’, ‘A’, ‘K’}, optional
The elements of a are read using this index order. ‘C’ means to index the elements in C-like order, with the last axis index changing fastest, back to the first axis index changing slowest. ‘F’ means to index the elements in... | |
doc_15549 |
Share the x-axis with other. This is equivalent to passing sharex=other when constructing the axes, and cannot be used if the x-axis is already being shared with another Axes. | |
doc_15550 | Return a titlecased version of the string where words start with an uppercase character and the remaining characters are lowercase. For example: >>> 'Hello world'.title()
'Hello World'
The algorithm uses a simple language-independent definition of a word as groups of consecutive letters. The definition works in many c... | |
doc_15551 | See torch.nn.functional.hardshrink() | |
doc_15552 |
Return the mean absolute deviation of the values over the requested axis. Parameters
axis:{index (0), columns (1)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result.
level:int or level name, default None
If the axis is a MultiIndex (hierar... | |
doc_15553 | logical_and() is a logical operation which takes two logical operands (see Logical operands). The result is the digit-wise and of the two operands. | |
doc_15554 | See torch.max() | |
doc_15555 | tkinter.messagebox.askokcancel(title=None, message=None, **options)
tkinter.messagebox.askretrycancel(title=None, message=None, **options)
tkinter.messagebox.askyesno(title=None, message=None, **options)
tkinter.messagebox.askyesnocancel(title=None, message=None, **options) | |
doc_15556 | Internally called to make an alias redirect URL. Parameters
path (str) –
endpoint (str) –
values (Mapping[str, Any]) –
method (str) –
query_args (Union[Mapping[str, Any], str]) – Return type
str | |
doc_15557 | Like the formfield_for_foreignkey and formfield_for_manytomany methods, the formfield_for_choice_field method can be overridden to change the default formfield for a field that has declared choices. For example, if the choices available to a superuser should be different than those available to regular staff, you could... | |
doc_15558 | Property that may be used to retrieve or set the SRID associated with the geometry. For example: >>> pnt = Point(5, 23)
>>> print(pnt.srid)
None
>>> pnt.srid = 4326
>>> pnt.srid
4326 | |
doc_15559 |
Fit model with coordinate descent. Parameters
X{ndarray, sparse matrix} of (n_samples, n_features)
Data.
y{ndarray, sparse matrix} of shape (n_samples,) or (n_samples, n_targets)
Target. Will be cast to X’s dtype if necessary.
sample_weightfloat or array-like of shape (n_samples,), default=None
Sample w... | |
doc_15560 | Transform list x into a heap, in-place, in linear time. | |
doc_15561 | See Migration guide for more details. tf.compat.v1.raw_ops.Inv
tf.raw_ops.Inv(
x, name=None
)
I.e., \(y = 1 / x\).
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, int8, int16, int32, int64, complex64, complex128.
name A name for the operation (optional).
... | |
doc_15562 | Set when creating the request object. If True, reading from the request body will cause a RuntimeException. Useful to prevent modifying the stream from middleware. | |
doc_15563 |
Function to add random noise of various types to a floating-point image. Parameters
imagendarray
Input image data. Will be converted to float.
modestr, optional
One of the following strings, selecting the type of noise to add: ‘gaussian’ Gaussian-distributed additive noise.
‘localvar’ Gaussian-distribute... | |
doc_15564 | When the path points to a directory, yield path objects of the directory contents: >>> p = Path('docs')
>>> for child in p.iterdir(): child
...
PosixPath('docs/conf.py')
PosixPath('docs/_templates')
PosixPath('docs/make.bat')
PosixPath('docs/index.rst')
PosixPath('docs/_build')
PosixPath('docs/_static')
PosixPath('docs... | |
doc_15565 | ping_google takes these optional arguments:
sitemap_url - The absolute path to your site’s sitemap (e.g., '/sitemap.xml'). If this argument isn’t provided, ping_google will perform a reverse lookup in your URLconf, for URLs named 'django.contrib.sitemaps.views.index' and then 'django.contrib.sitemaps.views.sitemap' (... | |
doc_15566 |
Alias for get_linewidth. | |
doc_15567 |
Return the maximum of an array or maximum along an axis. Parameters
aarray_like
Input data.
axisNone or int or tuple of ints, optional
Axis or axes along which to operate. By default, flattened input is used. New in version 1.7.0. If this is a tuple of ints, the maximum is selected over multiple axes, ins... | |
doc_15568 |
Bases: matplotlib.patches.Ellipse A circle patch. Create a true circle at center xy = (x, y) with given radius. Unlike CirclePolygon which is a polygonal approximation, this uses Bezier splines and is much closer to a scale-free circle. Valid keyword arguments are:
Property Description
agg_filter a filter funct... | |
doc_15569 |
Generates a sample_shape shaped reparameterized sample or sample_shape shaped batch of reparameterized samples if the distribution parameters are batched. Samples first from base distribution and applies transform() for every transform in the list. | |
doc_15570 | return a buffer view of the Surface's pixels. get_view(<kind>='2') -> BufferProxy Return an object which exports a surface's internal pixel buffer as a C level array struct, Python level array interface or a C level buffer interface. The pixel buffer is writeable. The new buffer protocol is supported for Python 2.6 a... | |
doc_15571 | Acquire a lock, blocking or non-blocking. With the block argument set to True (the default), the method call will block until the lock is in an unlocked state, then set it to locked and return True. Note that the name of this first argument differs from that in threading.Lock.acquire(). With the block argument set to F... | |
doc_15572 | In-place version of tanh() | |
doc_15573 |
Return the default matplotlib.tri.TriFinder of this triangulation, creating it if necessary. This allows the same TriFinder object to be easily shared. | |
doc_15574 | Returns the database of the local conventions as a dictionary. This dictionary has the following strings as keys:
Category Key Meaning
LC_NUMERIC 'decimal_point' Decimal point character.
'grouping' Sequence of numbers specifying which relative positions the 'thousands_sep' is expected. If the sequence is termi... | |
doc_15575 | If the character set must be encoded before it can be used in an email header, this attribute will be set to Charset.QP (for quoted-printable), Charset.BASE64 (for base64 encoding), or Charset.SHORTEST for the shortest of QP or BASE64 encoding. Otherwise, it will be None. | |
doc_15576 | tf.compat.v1.summary.image(
name, tensor, max_outputs=3, collections=None, family=None
)
The summary has up to max_outputs summary values containing images. The images are built from tensor which must be 4-D with shape [batch_size, height, width, channels] and where channels can be: 1: tensor is interpreted as Gr... | |
doc_15577 | The name of the module defining the function described. | |
doc_15578 |
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | |
doc_15579 | Return a random byte string containing nbytes number of bytes. If nbytes is None or not supplied, a reasonable default is used. >>> token_bytes(16)
b'\xebr\x17D*t\xae\xd4\xe3S\xb6\xe2\xebP1\x8b' | |
doc_15580 | Read at most n bytes from file descriptor fd at a position of offset, leaving the file offset unchanged. Return a bytestring containing the bytes read. If the end of the file referred to by fd has been reached, an empty bytes object is returned. Availability: Unix. New in version 3.3. | |
doc_15581 | See torch.not_equal(). | |
doc_15582 | Unset (delete) the environment variable named key. Such changes to the environment affect subprocesses started with os.system(), popen() or fork() and execv(). Deletion of items in os.environ is automatically translated into a corresponding call to unsetenv(); however, calls to unsetenv() don’t update os.environ, so it... | |
doc_15583 |
Set both the edgecolor and the facecolor. Parameters
ccolor or list of rgba tuples
See also
Collection.set_facecolor, Collection.set_edgecolor
For setting the edge or face color individually. | |
doc_15584 | Creates a comment with the given text. If insert_comments is true, this will also add it to the tree. New in version 3.8. | |
doc_15585 | tf.metrics.SparseCategoricalAccuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.SparseCategoricalAccuracy
tf.keras.metrics.SparseCategoricalAccuracy(
name='sparse_categorical_accuracy', dtype=None
)
acc = np.dot(sample_weight, np.equal(y_true, np.argmax(y_pred, ... | |
doc_15586 | See Migration guide for more details. tf.compat.v1.signal.kaiser_bessel_derived_window
tf.signal.kaiser_bessel_derived_window(
window_length, beta=12.0, dtype=tf.dtypes.float32, name=None
)
Args
window_length A scalar Tensor indicating the window length to generate.
beta Beta parameter for Kaiser ... | |
doc_15587 | Convert the color from YIQ coordinates to RGB coordinates. | |
doc_15588 |
Draw a marker at each of path's vertices (excluding control points). This provides a fallback implementation of draw_markers that makes multiple calls to draw_path(). Some backends may want to override this method in order to draw the marker only once and reuse it multiple times. Parameters
gcGraphicsContextBase
... | |
doc_15589 |
Set the path effects. Parameters
path_effectsAbstractPathEffect | |
doc_15590 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_15591 |
For each element in self, return a list of the words in the string, using sep as the delimiter string. See also char.rsplit | |
doc_15592 |
Return offset of the container. | |
doc_15593 | See Migration guide for more details. tf.compat.v1.keras.utils.to_categorical
tf.keras.utils.to_categorical(
y, num_classes=None, dtype='float32'
)
E.g. for use with categorical_crossentropy.
Arguments
y class vector to be converted into a matrix (integers from 0 to num_classes).
num_classes total... | |
doc_15594 | Return the fixed value specified when the timezone instance is constructed. If name is not provided in the constructor, the name returned by tzname(dt) is generated from the value of the offset as follows. If offset is timedelta(0), the name is “UTC”, otherwise it is a string in the format UTC±HH:MM, where ± is the sig... | |
doc_15595 | Like digest() except the digest is returned as a string object of double length, containing only hexadecimal digits. This may be used to exchange the value safely in email or other non-binary environments. | |
doc_15596 | See Migration guide for more details. tf.compat.v1.math.argmax
tf.compat.v1.argmax(
input, axis=None, name=None, dimension=None, output_type=tf.dtypes.int64
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (dimension). They will be removed in a future version. Instructions for updating: Use the axis argument instead No... | |
doc_15597 |
Sets the seed for generating random numbers. Returns a torch.Generator object. Parameters
seed (int) – The desired seed. Value must be within the inclusive range [-0x8000_0000_0000_0000, 0xffff_ffff_ffff_ffff]. Otherwise, a RuntimeError is raised. Negative inputs are remapped to positive values with the formula 0xf... | |
doc_15598 | Parameters
titlestring – a string that is shown in the titlebar of the turtle graphics window Set title of turtle window to titlestring. >>> screen.title("Welcome to the turtle zoo!") | |
doc_15599 |
Evaluate a 3-D Laguerre series on the Cartesian product of x, y, and z. This function returns the values: \[p(a,b,c) = \sum_{i,j,k} c_{i,j,k} * L_i(a) * L_j(b) * L_k(c)\] where the points (a, b, c) consist of all triples formed by taking a from x, b from y, and c from z. The resulting points form a grid with x in th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.