_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_26400 | tf.compat.v1.logging.fatal(
msg, *args, **kwargs
) | |
doc_26401 | See Migration guide for more details. tf.compat.v1.raw_ops.StringToHashBucketStrong
tf.raw_ops.StringToHashBucketStrong(
input, num_buckets, key, name=None
)
The hash function is deterministic on the content of the string within the process. The hash function is a keyed hash function, where attribute key defines... | |
doc_26402 | Returns a new instance of the QueueHandler class. The instance is initialized with the queue to send messages to. The queue can be any queue-like object; it’s used as-is by the enqueue() method, which needs to know how to send messages to it. The queue is not required to have the task tracking API, which means that you... | |
doc_26403 |
Upsamples the input, using nearest neighbours’ pixel values. Warning This function is deprecated in favor of torch.nn.quantized.functional.interpolate(). This is equivalent with nn.quantized.functional.interpolate(..., mode='nearest'). Note The input quantization parameters propagate to the output. Note Only 2D ... | |
doc_26404 | tf.keras.utils.pack_x_y_sample_weight(
x, y=None, sample_weight=None
)
This is a convenience utility for packing data into the tuple formats that Model.fit uses. Standalone usage:
x = tf.ones((10, 1))
data = tf.keras.utils.pack_x_y_sample_weight(x)
isinstance(data, tf.Tensor)
True
y = tf.ones((10, 1))
data = tf.k... | |
doc_26405 | Retrieve certificates from Windows’ system cert store. store_name may be one of CA, ROOT or MY. Windows may provide additional cert stores, too. The function returns a list of (cert_bytes, encoding_type, trust) tuples. The encoding_type specifies the encoding of cert_bytes. It is either x509_asn for X.509 ASN.1 data or... | |
doc_26406 |
Convert an array of datetimes into an array of strings. Parameters
arrarray_like of datetime64
The array of UTC timestamps to format.
unitstr
One of None, ‘auto’, or a datetime unit.
timezone{‘naive’, ‘UTC’, ‘local’} or tzinfo
Timezone information to use when displaying the datetime. If ‘UTC’, end with ... | |
doc_26407 |
Get the face color of the Figure rectangle. | |
doc_26408 |
Generate a png file containing latex's rendering of tex string. Return the file name. | |
doc_26409 | tf.compat.v1.summary.all_v2_summary_ops()
This includes ops from TF 2.0 tf.summary and TF 1.x tf.contrib.summary (except for tf.contrib.summary.graph and tf.contrib.summary.import_event), but does not include TF 1.x tf.summary ops.
Returns List of summary ops, or None if called under eager execution. | |
doc_26410 | tf.keras.losses.logcosh, tf.keras.metrics.log_cosh, tf.keras.metrics.logcosh, tf.losses.log_cosh, tf.losses.logcosh, tf.metrics.log_cosh, tf.metrics.logcosh Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.log_cosh, tf.compat.v1.keras.losses.logcosh, tf.compat.v1.keras.metric... | |
doc_26411 | See Migration guide for more details. tf.compat.v1.raw_ops.AssignAddVariableOp
tf.raw_ops.AssignAddVariableOp(
resource, value, name=None
)
Any ReadVariableOp with a control dependency on this op is guaranteed to see the incremented value or a subsequent newer one.
Args
resource A Tensor of type resourc... | |
doc_26412 | See Migration guide for more details. tf.compat.v1.keras.layers.Subtract
tf.keras.layers.Subtract(
**kwargs
)
It takes as input a list of tensors of size 2, both of the same shape, and returns a single tensor, (inputs[0] - inputs[1]), also of the same shape. Examples: import keras
input1 = keras.layers.Input(sh... | |
doc_26413 | Create a new dictionary with keys from iterable and values set to value. | |
doc_26414 | This method returns a bitmask specifying the available mixer controls (“Control” being a specific mixable “channel”, such as SOUND_MIXER_PCM or SOUND_MIXER_SYNTH). This bitmask indicates a subset of all available mixer controls—the SOUND_MIXER_* constants defined at module level. To determine if, for example, the curre... | |
doc_26415 |
Set multiple properties at once. Supported properties are
Property Description
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
animated bool
clip_box Bbox
clip_on bool
clip_path Patch or (Path, Transform) or None
d... | |
doc_26416 | If file_or_dir is a directory and not a symbolic link, then recursively descend the directory tree named by file_or_dir, checking all .py files along the way. If file_or_dir is an ordinary Python source file, it is checked for whitespace related problems. The diagnostic messages are written to standard output using the... | |
doc_26417 | Must be zero. | |
doc_26418 |
Return the vertices of the mesh as an (M+1, N+1, 2) array. M, N are the number of quadrilaterals in the rows / columns of the mesh, corresponding to (M+1, N+1) vertices. The last dimension specifies the components (x, y). | |
doc_26419 |
Perform classification on samples in X. For an one-class model, +1 or -1 is returned. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples_test, n_samples_train)
For kernel=”precomputed”, the expected shape of X is (n_samples_test, n_samples_train). Returns
y_predndarray ... | |
doc_26420 | class collections.abc.MutableSet
ABCs for read-only and mutable sets. | |
doc_26421 |
Return a backend-specific tuple to return to the backend after all processing is done. | |
doc_26422 | This attribute is None by default and becomes a Tensor the first time a call to backward() computes gradients for self. The attribute will then contain the gradients computed and future calls to backward() will accumulate (add) gradients into it. | |
doc_26423 |
Examples using mpl_toolkits.axes_grid1.axes_divider.make_axes_area_auto_adjustable
Make Room For Ylabel Using Axesgrid | |
doc_26424 | Set the current process-wide policy to policy. If policy is set to None, the default policy is restored. | |
doc_26425 |
Do cartesian product of the given sequence of tensors. The behavior is similar to python’s itertools.product. Parameters
*tensors – any number of 1 dimensional tensors. Returns
A tensor equivalent to converting all the input tensors into lists,
do itertools.product on these lists, and finally convert the result... | |
doc_26426 | Profile the cmd via exec(). | |
doc_26427 | The total number of to be consumed bytes. | |
doc_26428 |
Bases: mpl_toolkits.axes_grid1.axes_divider.SubplotDivider A SubplotDivider for laying out axes vertically, while ensuring that they have equal widths. Parameters
figmatplotlib.figure.Figure
*argstuple (nrows, ncols, index) or int
The array of subplots in the figure has dimensions (nrows,
ncols), and index is... | |
doc_26429 | Set up the environment based on env_vars for running the interpreter in a subprocess. The values can include __isolated, __cleanenv, __cwd, and TERM. Changed in version 3.9: The function no longer strips whitespaces from stderr. | |
doc_26430 |
Bayesian ARD regression. Fit the weights of a regression model, using an ARD prior. The weights of the regression model are assumed to be in Gaussian distributions. Also estimate the parameters lambda (precisions of the distributions of the weights) and alpha (precision of the distribution of the noise). The estimati... | |
doc_26431 | tf.compat.v1.enable_control_flow_v2()
control flow v2 (cfv2) is an improved version of control flow in TensorFlow with support for higher order derivatives. Enabling cfv2 will change the graph/function representation of control flow, e.g., tf.while_loop and tf.cond will generate functional While and If ops instead of ... | |
doc_26432 |
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_26433 |
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_26434 | Create a shared threading.Condition object and return a proxy for it. If lock is supplied then it should be a proxy for a threading.Lock or threading.RLock object. Changed in version 3.3: The wait_for() method was added. | |
doc_26435 | Set the current directory on the server. | |
doc_26436 |
Pick the best locator based on a distance. | |
doc_26437 |
Richardson-Lucy deconvolution. Parameters
imagendarray
Input degraded image (can be N dimensional).
psfndarray
The point spread function.
iterationsint, optional
Number of iterations. This parameter plays the role of regularisation.
clipboolean, optional
True by default. If true, pixel value of the ... | |
doc_26438 |
Container for the Philox (4x64) pseudo-random number generator. Parameters
seed{None, int, array_like[ints], SeedSequence}, 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, then it will be passed to Se... | |
doc_26439 | socket.SOCK_DGRAM
socket.SOCK_RAW
socket.SOCK_RDM
socket.SOCK_SEQPACKET
These constants represent the socket types, used for the second argument to socket(). More constants may be available depending on the system. (Only SOCK_STREAM and SOCK_DGRAM appear to be generally useful.) | |
doc_26440 | Return non-zero if the mode is from a whiteout. New in version 3.4. | |
doc_26441 | Same as article(), but sends a HEAD command. The lines returned (or written to file) will only contain the message headers, not the body. | |
doc_26442 |
Return an IntervalArray identical to the current one, but closed on the specified side. Parameters
closed:{‘left’, ‘right’, ‘both’, ‘neither’}
Whether the intervals are closed on the left-side, right-side, both or neither. Returns
new_index:IntervalArray
Examples
>>> index = pd.arrays.IntervalArray.f... | |
doc_26443 | Return a copy of the string where all tab characters are replaced by one or more spaces, depending on the current column and the given tab size. Tab positions occur every tabsize characters (default is 8, giving tab positions at columns 0, 8, 16 and so on). To expand the string, the current column is set to zero and th... | |
doc_26444 | Namespace-aware variant of AttributesImpl, which will be passed to startElementNS(). It is derived from AttributesImpl, but understands attribute names as two-tuples of namespaceURI and localname. In addition, it provides a number of methods expecting qualified names as they appear in the original document. This class ... | |
doc_26445 |
Pass the inputs (and mask) through the decoder layer in turn. Parameters
tgt – the sequence to the decoder (required).
memory – the sequence from the last layer of the encoder (required).
tgt_mask – the mask for the tgt sequence (optional).
memory_mask – the mask for the memory sequence (optional).
tgt_key_pa... | |
doc_26446 |
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo... | |
doc_26447 | Prepare for object destruction. IOBase provides a default implementation of this method that calls the instance’s close() method. | |
doc_26448 | Add and return a RadioButtonGroup control. | |
doc_26449 | This exception is raised when the urlretrieve() function detects that the amount of the downloaded data is less than the expected amount (given by the Content-Length header). The content attribute stores the downloaded (and supposedly truncated) data. | |
doc_26450 | See Migration guide for more details. tf.compat.v1.raw_ops.DebugNumericSummaryV2
tf.raw_ops.DebugNumericSummaryV2(
input, output_dtype=tf.dtypes.float32, tensor_debug_mode=-1, tensor_id=-1,
name=None
)
Computes a numeric summary of the input tensor. The shape of the output depends on the tensor_debug_mode at... | |
doc_26451 |
Set the number of degrees between each longitude grid. | |
doc_26452 |
Jaccard similarity coefficient score. The Jaccard index [1], or Jaccard similarity coefficient, defined as the size of the intersection divided by the size of the union of two label sets, is used to compare set of predicted labels for a sample to the corresponding set of labels in y_true. Read more in the User Guide.... | |
doc_26453 | Send a file until EOF is reached by using high-performance os.sendfile and return the total number of bytes which were sent. file must be a regular file object opened in binary mode. If os.sendfile is not available (e.g. Windows) or file is not a regular file send() will be used instead. offset tells from where to star... | |
doc_26454 |
Perform one epoch of stochastic gradient descent on given samples. Internally, this method uses max_iter = 1. Therefore, it is not guaranteed that a minimum of the cost function is reached after calling it once. Matters such as objective convergence and early stopping should be handled by the user. Parameters
X{a... | |
doc_26455 | A wrapper for a buffer representing picklable data. buffer must be a buffer-providing object, such as a bytes-like object or a N-dimensional array. PickleBuffer is itself a buffer provider, therefore it is possible to pass it to other APIs expecting a buffer-providing object, such as memoryview. PickleBuffer objects ca... | |
doc_26456 | Replaces item’s child with newchildren. Children present in item that are not present in newchildren are detached from the tree. No items in newchildren may be an ancestor of item. Note that not specifying newchildren results in detaching item’s children. | |
doc_26457 | Returns the value of the field nominated by USERNAME_FIELD. | |
doc_26458 | Return True if obj is true, and False otherwise. This is equivalent to using the bool constructor. | |
doc_26459 | >>> g = GeoIP2()
>>> g.country('google.com')
{'country_code': 'US', 'country_name': 'United States'}
>>> g.city('72.14.207.99')
{'city': 'Mountain View',
'continent_code': 'NA',
'continent_name': 'North America',
'country_code': 'US',
'country_name': 'United States',
'dma_code': 807,
'is_in_european_union': False,
'lat... | |
doc_26460 |
Returns the number of splitting iterations in the cross-validator Parameters
Xobject
Always ignored, exists for compatibility. np.zeros(n_samples) may be used as a placeholder.
yobject
Always ignored, exists for compatibility. np.zeros(n_samples) may be used as a placeholder.
groupsarray-like of shape (n_... | |
doc_26461 | initialize pygame.fastevent init() -> None Initialize the pygame.fastevent module. | |
doc_26462 |
Bases: object Event for tool manipulation (add/remove). | |
doc_26463 |
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_26464 |
Bases: matplotlib.container.Container Container for the artists of error bars (e.g. created by Axes.errorbar). The container can be treated as the lines tuple itself. Additionally, you can access these and further parameters by the attributes. Attributes
linestuple
Tuple of (data_line, caplines, barlinecols). ... | |
doc_26465 | A WSGI middleware which provides static content for development environments or simple server setups. Its usage is quite simple: import os
from werkzeug.middleware.shared_data import SharedDataMiddleware
app = SharedDataMiddleware(app, {
'/shared': os.path.join(os.path.dirname(__file__), 'shared')
})
The contents... | |
doc_26466 |
Transform a new matrix using the built clustering Parameters
Xarray-like of shape (n_samples, n_features) or (n_samples,)
A M by N array of M observations in N dimensions or a length M array of M one-dimensional observations. Returns
Yndarray of shape (n_samples, n_clusters) or (n_clusters,)
The pooled ... | |
doc_26467 |
Alias for set_linestyle. | |
doc_26468 |
Pause the animation. | |
doc_26469 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArraySplitV3
tf.raw_ops.TensorArraySplitV3(
handle, value, lengths, flow_in, name=None
)
Assuming that lengths takes on values (n0, n1, ..., n(T-1)) and that value has shape (n0 + n1 + ... + n(T-1) x d0 x d1 x ...), this splits values into a Tensor... | |
doc_26470 | The example’s indentation in the containing string, i.e., the number of space characters that precede the example’s first prompt. | |
doc_26471 | Send advice option to the kernel about the memory region beginning at start and extending length bytes. option must be one of the MADV_* constants available on the system. If start and length are omitted, the entire mapping is spanned. On some systems (including Linux), start must be a multiple of the PAGESIZE. Availab... | |
doc_26472 | Return one of the two sequences that generated a delta. Given a sequence produced by Differ.compare() or ndiff(), extract lines originating from file 1 or 2 (parameter which), stripping off line prefixes. Example: >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True),
... 'ore\ntree\nemu\n'.splitl... | |
doc_26473 | A single except clause. type is the exception type it will match, typically a Name node (or None for a catch-all except: clause). name is a raw string for the name to hold the exception, or None if the clause doesn’t have as foo. body is a list of nodes. >>> print(ast.dump(ast.parse("""\
... try:
... a + 1
... exce... | |
doc_26474 | This is essentially a wrapper around the fcntl() locking calls. fd is the file descriptor (file objects providing a fileno() method are accepted as well) of the file to lock or unlock, and cmd is one of the following values:
LOCK_UN – unlock
LOCK_SH – acquire a shared lock
LOCK_EX – acquire an exclusive lock When ... | |
doc_26475 |
Set the foreground color of the text Parameters
colorcolor | |
doc_26476 | See Migration guide for more details. tf.compat.v1.raw_ops.HistogramFixedWidth
tf.raw_ops.HistogramFixedWidth(
values, value_range, nbins, dtype=tf.dtypes.int32, name=None
)
Given the tensor values, this operation returns a rank 1 histogram counting the number of entries in values that fall into every bin. The b... | |
doc_26477 |
Disconnect callback id cid. Example usage: cid = toolmanager.toolmanager_connect('tool_trigger_zoom', onpress)
#...later
toolmanager.toolmanager_disconnect(cid) | |
doc_26478 | Return the length of the file, which can be larger than the size of the memory-mapped area. | |
doc_26479 |
Implements feature hashing, aka the hashing trick. This class turns sequences of symbolic feature names (strings) into scipy.sparse matrices, using a hash function to compute the matrix column corresponding to a name. The hash function employed is the signed 32-bit version of Murmurhash3. Feature names of type byte s... | |
doc_26480 |
Bases: matplotlib.backend_bases.RendererBase Create a new PGF renderer that translates any drawing instruction into text commands to be interpreted in a latex pgfpicture environment. Attributes
figurematplotlib.figure.Figure
Matplotlib figure to initialize height, width and dpi from.
fhfile-like
File handle... | |
doc_26481 |
Create a twin Axes sharing the yaxis. Create a new Axes with an invisible y-axis and an independent x-axis positioned opposite to the original one (i.e. at top). The y-axis autoscale setting will be inherited from the original Axes. To ensure that the tick marks of both x-axes align, see LinearLocator. Returns
Axe... | |
doc_26482 | If flag is true, turn debugging on. Otherwise, turn debugging off. When debugging is on, commands to be executed are printed, and the shell is given set -x command to be more verbose. | |
doc_26483 |
A LinearReLU module fused from Linear and ReLU modules We adopt the same interface as torch.nn.quantized.Linear. Variables
as torch.nn.quantized.Linear (Same) – Examples: >>> m = nn.intrinsic.LinearReLU(20, 30)
>>> input = torch.randn(128, 20)
>>> output = m(input)
>>> print(output.size())
torch.Size([128, 30]) | |
doc_26484 |
Return the clipbox. | |
doc_26485 |
Return a list of the values. These are each a scalar type, which is a Python scalar (for str, int, float) or a pandas scalar (for Timestamp/Timedelta/Interval/Period) Returns
list
See also numpy.ndarray.tolist
Return the array as an a.ndim-levels deep nested list of Python scalars. | |
doc_26486 |
Returns True if the file is large enough to require multiple chunks to access all of its content give some chunk_size. | |
doc_26487 | Automatically set the field to now when the object is first created. Useful for creation of timestamps. Note that the current date is always used; it’s not just a default value that you can override. So even if you set a value for this field when creating the object, it will be ignored. If you want to be able to modify... | |
doc_26488 | See Migration guide for more details. tf.compat.v1.raw_ops.AnonymousMultiDeviceIterator
tf.raw_ops.AnonymousMultiDeviceIterator(
devices, output_types, output_shapes, name=None
)
Args
devices A list of strings that has length >= 1.
output_types A list of tf.DTypes that has length >= 1.
output_... | |
doc_26489 |
Return the data portion of the masked array as a hierarchical Python list. Data items are converted to the nearest compatible Python type. Masked values are converted to fill_value. If fill_value is None, the corresponding entries in the output list will be None. Parameters
fill_valuescalar, optional
The value ... | |
doc_26490 | class sklearn.linear_model.RidgeCV(alphas=0.1, 1.0, 10.0, *, fit_intercept=True, normalize=False, scoring=None, cv=None, gcv_mode=None, store_cv_values=False, alpha_per_target=False) [source]
Ridge regression with built-in cross-validation. See glossary entry for cross-validation estimator. By default, it performs ef... | |
doc_26491 |
Fit the ARDRegression model according to the given training data and parameters. Iterative procedure to maximize the evidence Parameters
Xarray-like of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and n_features is the number of features.
yarray-like of shape (n_samp... | |
doc_26492 |
Getter for the precision matrix. Returns
precision_array-like of shape (n_features, n_features)
The precision matrix associated to the current covariance object. | |
doc_26493 |
For each element, return True if there are only decimal characters in the element. Calls unicode.isdecimal element-wise. Decimal characters include digit characters, and all characters that can be used to form decimal-radix numbers, e.g. U+0660, ARABIC-INDIC DIGIT ZERO. Parameters
aarray_like, unicode
Input arr... | |
doc_26494 |
Transform features using quantiles information. This method transforms the features to follow a uniform or a normal distribution. Therefore, for a given feature, this transformation tends to spread out the most frequent values. It also reduces the impact of (marginal) outliers: this is therefore a robust preprocessin... | |
doc_26495 | See Migration guide for more details. tf.compat.v1.io.encode_proto
tf.io.encode_proto(
sizes, values, field_names, message_type,
descriptor_source='local://', name=None
)
The types of the tensors in values must match the schema for the fields specified in field_names. All the tensors in values must have a co... | |
doc_26496 |
Alias for get_linestyle. | |
doc_26497 | The strftime() format to use when parsing the day. By default, this is '%d'. | |
doc_26498 | Module shlex
Support for creating Unix shell-like mini-languages which can be used as an alternate format for application configuration files.
Module json
The json module implements a subset of JavaScript syntax which can also be used for this purpose. Quick Start Let’s take a very basic configuration file tha... | |
doc_26499 | class collections.abc.ItemsView
class collections.abc.KeysView
class collections.abc.ValuesView
ABCs for mapping, items, keys, and values views. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.