_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_9500 | See Migration guide for more details. tf.compat.v1.distribute.CrossDeviceOps
tf.distribute.CrossDeviceOps()
The main purpose of this class is to be passed to tf.distribute.MirroredStrategy in order to choose among different cross device communication implementations. Prefer using the methods of tf.distribute.Strateg... | |
doc_9501 | Return a copy of the string with all the cased characters 4 converted to uppercase. Note that s.upper().isupper() might be False if s contains uncased characters or if the Unicode category of the resulting character(s) is not “Lu” (Letter, uppercase), but e.g. “Lt” (Letter, titlecase). The uppercasing algorithm used is... | |
doc_9502 |
Set the line marker. Parameters
markermarker style string, Path or MarkerStyle
See markers for full description of possible arguments. | |
doc_9503 | Return the tangent of x radians. | |
doc_9504 | Computes the N-dimensional discrete Fourier transform of real input. The FFT of a real signal is Hermitian-symmetric, X[i_1, ..., i_n] = conj(X[-i_1, ..., -i_n]) so the full fftn() output contains redundant information. rfftn() instead omits the negative frequencies in the last dimension. Parameters
input (Tensor) ... | |
doc_9505 | Remove directories recursively. Works like rmdir() except that, if the leaf directory is successfully removed, removedirs() tries to successively remove every parent directory mentioned in path until an error is raised (which is ignored, because it generally means that a parent directory is not empty). For example, os.... | |
doc_9506 | Remove this directory. The directory must be empty. | |
doc_9507 | Provide a per-write equivalent of the O_SYNC open(2) flag. This flag effect applies only to the data range written by the system call. Availability: Linux 4.7 and newer. New in version 3.7. | |
doc_9508 |
Decorator indicating that parameter name of func is being deprecated. The actual implementation of func should keep the name parameter in its signature, or accept a **kwargs argument (through which name would be passed). Parameters that come after the deprecated parameter effectively become keyword-only (as they cann... | |
doc_9509 | See Migration guide for more details. tf.compat.v1.quantization.quantize, tf.compat.v1.quantize
tf.quantization.quantize(
input, min_range, max_range, T, mode='MIN_COMBINED',
round_mode='HALF_AWAY_FROM_ZERO', name=None, narrow_range=False,
axis=None, ensure_minimum_range=0.01
)
[min_range, max_range] are... | |
doc_9510 |
Return the zaxis' tick locations in data coordinates. | |
doc_9511 | See Migration guide for more details. tf.compat.v1.raw_ops.DummyMemoryCache
tf.raw_ops.DummyMemoryCache(
name=None
)
Args
name A name for the operation (optional).
Returns A Tensor of type resource. | |
doc_9512 | Shut the turtlegraphics window. | |
doc_9513 | Returns an OGRGeometry object corresponding to the GEOS geometry. | |
doc_9514 |
Set an exception for this Future, which will mark this Future as completed with an error and trigger all attached callbacks. Note that when calling wait()/value() on this Future, the exception set here will be raised inline. Parameters
result (BaseException) – the exception for this Future. Example::
>>> import... | |
doc_9515 |
Pandas ExtensionArray for timedelta data. Warning TimedeltaArray is currently experimental, and its API may change without warning. In particular, TimedeltaArray.dtype is expected to change to be an instance of an ExtensionDtype subclass. Parameters
values:array-like
The timedelta data.
dtype:numpy.dtype
... | |
doc_9516 |
Applies Sauvola local threshold to an array. Sauvola is a modification of Niblack technique. In the original method a threshold T is calculated for every pixel in the image using the following formula: T = m(x,y) * (1 + k * ((s(x,y) / R) - 1))
where m(x,y) and s(x,y) are the mean and standard deviation of pixel (x,y... | |
doc_9517 |
Converts a float model to dynamic (i.e. weights-only) quantized model. Replaces specified modules with dynamic weight-only quantized versions and output the quantized model. For simplest usage provide dtype argument that can be float16 or qint8. Weight-only quantization by default is performed for layers with large w... | |
doc_9518 | The traditional method with a 2 character salt and 13 characters of hash. This is the weakest method. | |
doc_9519 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyAdagradV2
tf.raw_ops.SparseApplyAdagradV2(
var, accum, lr, epsilon, grad, indices, use_locking=False, update_slots=True,
name=None
)
That is for rows we have grad for, we update var and accum as follows: $$accum += grad * grad$$ $$var -... | |
doc_9520 | Computes the regularized lower incomplete gamma function: outi=1Γ(inputi)∫0otheritinputi−1e−tdt\text{out}_{i} = \frac{1}{\Gamma(\text{input}_i)} \int_0^{\text{other}_i} t^{\text{input}_i-1} e^{-t} dt
where both inputi\text{input}_i and otheri\text{other}_i are weakly positive and at least one is strictly positive.... | |
doc_9521 |
Cursor to use when the tool is active. | |
doc_9522 |
Return the indices of unmasked elements that are not zero. Returns a tuple of arrays, one for each dimension, containing the indices of the non-zero elements in that dimension. The corresponding non-zero values can be obtained with: a[a.nonzero()]
To group the indices by element, rather than dimension, use instead: ... | |
doc_9523 | Get the current transparent colorkey get_colorkey() -> RGB or None Return the current colorkey value for the Surface. If the colorkey is not set then None is returned. | |
doc_9524 |
Return the picking behavior of the artist. The possible values are described in set_picker. See also
set_picker, pickable, pick | |
doc_9525 | See Migration guide for more details. tf.compat.v1.config.optimizer.set_jit
tf.config.optimizer.set_jit(
enabled
)
Note that optimizations are only applied to code that is compiled into a graph. In eager mode, which is the TF2 API default, that means only code that is defined under a tf.function decorator.
... | |
doc_9526 | shlex.split(s, comments=False, posix=True)
Split the string s using shell-like syntax. If comments is False (the default), the parsing of comments in the given string will be disabled (setting the commenters attribute of the shlex instance to the empty string). This function operates in POSIX mode by default, but use... | |
doc_9527 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_9528 | See Migration guide for more details. tf.compat.v1.raw_ops.Timestamp
tf.raw_ops.Timestamp(
name=None
)
Returns the timestamp as a float64 for seconds since the Unix epoch.
Note: the timestamp is computed when the op is executed, not when it is added to the graph.
Args
name A name for the operation (op... | |
doc_9529 | See Migration guide for more details. tf.compat.v1.config.optimizer.get_jit
tf.config.optimizer.get_jit()
Note that optimizations are only applied to code that is compiled into a graph. In eager mode, which is the TF2 API default, that means only code that is defined under a tf.function decorator.
Returns If ... | |
doc_9530 |
Returned by spawn() when called with join=False.
join(timeout=None)
Tries to join one or more processes in this spawn context. If one of them exited with a non-zero exit status, this function kills the remaining processes and raises an exception with the cause of the first process exiting. Returns True if all pro... | |
doc_9531 | A semaphore object: a close analog of threading.Semaphore. A solitary difference from its close analog exists: its acquire method’s first argument is named block, as is consistent with Lock.acquire(). | |
doc_9532 | Sum this tensor to size. size must be broadcastable to this tensor size. Parameters
size (int...) – a sequence of integers defining the shape of the output tensor. | |
doc_9533 |
Return self^=value. | |
doc_9534 | Packs the single-precision floating point number value. | |
doc_9535 | When this attribute exists, its value is automatically called (with no arguments) when the interpreter is launched in interactive mode. This is done after the PYTHONSTARTUP file is read, so that you can set this hook there. The site module sets this.
Raises an auditing event cpython.run_interactivehook with the hook ob... | |
doc_9536 | tf.compat.v1.feature_column.linear_model(
features, feature_columns, units=1, sparse_combiner='sum',
weight_collections=None, trainable=True, cols_to_vars=None
)
This function generates a weighted sum based on output dimension units. Weighted sum refers to logits in classification problems. It refers to the pr... | |
doc_9537 |
Return the aspect of the SubplotDivider. | |
doc_9538 |
Accessor object for categorical properties of the Series values. Be aware that assigning to categories is a inplace operation, while all methods return new categorical data per default (but can be called with inplace=True). Parameters
data:Series or CategoricalIndex
Examples
>>> s = pd.Series(list("abbccc"))... | |
doc_9539 | Return the current process id. | |
doc_9540 |
Predict class log-probabilities for X. The predicted class log-probabilities of an input sample is computed as the log of the mean predicted class probabilities of the trees in the forest. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, its dtype will be c... | |
doc_9541 | Shortcut for route() with methods=["PATCH"]. New in version 2.0. Parameters
rule (str) –
options (Any) – Return type
Callable | |
doc_9542 |
Pads the input tensor boundaries with a constant value. For N-dimensional padding, use torch.nn.functional.pad(). Parameters
padding (int, tuple) – the size of the padding. If is int, uses the same padding in all boundaries. If a 6-tuple, uses (padding_left\text{padding\_left} , padding_right\text{padding\_right} ,... | |
doc_9543 |
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None | |
doc_9544 | Return True if the object argument is an instance of the classinfo argument, or of a (direct, indirect or virtual) subclass thereof. If object is not an object of the given type, the function always returns False. If classinfo is a tuple of type objects (or recursively, other such tuples), return True if object is an i... | |
doc_9545 | Group sub-class that tracks dirty updates. RenderUpdates(*sprites) -> RenderUpdates This class is derived from pygame.sprite.Group(). It has an extended draw() method that tracks the changed areas of the screen. draw()
blit the Sprite images and track changed areas draw(surface) -> Rect_list Draws all the Sprite... | |
doc_9546 | Convenience instance. The same as default except that raise_on_defect is set to True. This allows any policy to be made strict by writing: somepolicy + policy.strict | |
doc_9547 |
Predict class for X. The predicted class of an input sample is a vote by the trees in the forest, weighted by their probability estimates. That is, the predicted class is the one with highest mean probability estimate across the trees. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The... | |
doc_9548 |
Check if the array is Fortran contiguous but not C contiguous. This function is obsolete and, because of changes due to relaxed stride checking, its return value for the same array may differ for versions of NumPy >= 1.10.0 and previous versions. If you only want to check if an array is Fortran contiguous use a.flags... | |
doc_9549 |
Restore the rcParams from the original rc file loaded by Matplotlib. Style-blacklisted rcParams (defined in matplotlib.style.core.STYLE_BLACKLIST) are not updated. | |
doc_9550 | Enable testing mode. Exceptions are propagated rather than handled by the the app’s error handlers. Extensions may also change their behavior to facilitate easier testing. You should enable this in your own tests. Default: False | |
doc_9551 | See Migration guide for more details. tf.compat.v1.raw_ops.CopyHost
tf.raw_ops.CopyHost(
input, tensor_name='', debug_ops_spec=[], name=None
)
Performs CPU-to-CPU deep-copying of tensor. N.B.: If the all downstream attached debug ops are disabled given the current gRPC gating status, the output will simply forwa... | |
doc_9552 | See Migration guide for more details. tf.compat.v1.nn.leaky_relu
tf.nn.leaky_relu(
features, alpha=0.2, name=None
)
Source: Rectifier Nonlinearities Improve Neural Network Acoustic Models. AL Maas, AY Hannun, AY Ng - Proc. ICML, 2013. Args: features: A Tensor representing preactivation values. Must be one of the... | |
doc_9553 | tf.keras.layers.experimental.preprocessing.IntegerLookup(
max_values=None, num_oov_indices=1, mask_value=0, oov_value=-1, vocabulary=None,
invert=False, **kwargs
)
This layer translates a set of arbitrary integers into an integer output via a table-based lookup, with optional out-of-vocabulary handling. If des... | |
doc_9554 |
Records an event. Parameters
event (Event, optional) – event to record. If not given, a new one will be allocated. Returns
Recorded event. | |
doc_9555 |
Convert to int. | |
doc_9556 | Return a new Dialog object. An entry in the Dialog table is made, with the specified coordinates, dialog attributes, title, name of the first, default, and cancel controls.
control(name, type, x, y, width, height, attributes, property, text, control_next, help)
Return a new Control object. An entry in the Control t... | |
doc_9557 |
Create a scipy.sparse.coo_matrix from a Series with MultiIndex. Use row_levels and column_levels to determine the row and column coordinates respectively. row_levels and column_levels are the names (labels) or numbers of the levels. {row_levels, column_levels} must be a partition of the MultiIndex level names (or num... | |
doc_9558 |
Handler for CircleCollections. Parameters
numpointsint
Number of points to show in legend entry.
yoffsetsarray of floats
Length numpoints list of y offsets for each point in legend entry. **kwargs
Keyword arguments forwarded to HandlerNpoints. create_collection(orig_handle, sizes, offsets, transOffs... | |
doc_9559 | Data type dtype CPU tensor GPU tensor
32-bit floating point torch.float32 or torch.float torch.FloatTensor torch.cuda.FloatTensor
64-bit floating point torch.float64 or torch.double torch.DoubleTensor torch.cuda.DoubleTensor
16-bit floating point 1 torch.float16 or torch.half torch.HalfTensor torch.cuda.HalfTens... | |
doc_9560 | Computes element-wise equality The second argument can be a number or a tensor whose shape is broadcastable with the first argument. Parameters
input (Tensor) – the tensor to compare
other (Tensor or float) – the tensor or value to compare Keyword Arguments
out (Tensor, optional) – the output tensor. Returns
... | |
doc_9561 |
The quarter of the date. | |
doc_9562 |
Return the list of font families used for font lookup. See also font_manager.FontProperties.get_family | |
doc_9563 | A bool indicating whether the memory is C-contiguous. New in version 3.3. | |
doc_9564 |
Set the JoinStyle for the collection (for all its elements). Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_9565 | An attribute that defaults to True. If set to False, the microseconds part of datetime and time values will be set to 0. | |
doc_9566 |
Return threshold value(s) based on ISODATA method. Histogram-based threshold, known as Ridler-Calvard method or inter-means. Threshold values returned satisfy the following equality: threshold = (image[image <= threshold].mean() +
image[image > threshold].mean()) / 2.0
That is, returned thresholds are i... | |
doc_9567 |
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_9568 |
Return the artist's zorder. | |
doc_9569 | Set the environment variable named key to the string value. Such changes to the environment affect subprocesses started with os.system(), popen() or fork() and execv(). Assignments to items in os.environ are automatically translated into corresponding calls to putenv(); however, calls to putenv() don’t update os.enviro... | |
doc_9570 | See Migration guide for more details. tf.compat.v1.keras.preprocessing.text.tokenizer_from_json
tf.keras.preprocessing.text.tokenizer_from_json(
json_string
)
tokenizer instance.
Arguments
json_string JSON string encoding a tokenizer configuration.
Returns A Keras Tokenizer instance | |
doc_9571 |
Attributes
checkers repeated CheckersEntry checkers Child Classes class Checker class CheckersEntry | |
doc_9572 | Get number of calls. Returns
n_calls: int
number of distance computation calls | |
doc_9573 | tf.debugging.assert_negative(
x, message=None, summarize=None, name=None
)
This Op checks that x[i] < 0 holds for every element of x. If x is empty, this is trivially satisfied. If x is not negative everywhere, message, as well as the first summarize entries of x are printed, and InvalidArgumentError is raised.
... | |
doc_9574 | items()
Return an iterator over (key, message) pairs, where key is a key and message is a message representation, if called as iteritems() or return a list of such pairs if called as items(). The messages are represented as instances of the appropriate format-specific Message subclass unless a custom message factory ... | |
doc_9575 | This constant is meant to be used with the detect_types parameter of the connect() function. Setting this makes the SQLite interface parse the column name for each column it returns. It will look for a string formed [mytype] in there, and then decide that ‘mytype’ is the type of the column. It will try to find an entry... | |
doc_9576 | A data structure of functions to call at the beginning of each request, 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 before_request() decorator. This data structure is internal. It should not be modif... | |
doc_9577 |
This is a sequential container which calls the Conv 2d, Batch Norm 2d, and ReLU modules. During quantization this will be replaced with the corresponding fused module. | |
doc_9578 |
Return the identity array. The identity array is a square array with ones on the main diagonal. Parameters
nint
Number of rows (and columns) in n x n output.
dtypedata-type, optional
Data-type of the output. Defaults to float.
likearray_like
Reference object to allow the creation of arrays which are not... | |
doc_9579 | See torch.frac() | |
doc_9580 | re.LOCALE
Make \w, \W, \b, \B and case-insensitive matching dependent on the current locale. This flag can be used only with bytes patterns. The use of this flag is discouraged as the locale mechanism is very unreliable, it only handles one “culture” at a time, and it only works with 8-bit locales. Unicode matching i... | |
doc_9581 | Returns the system/OS name, such as 'Linux', 'Darwin', 'Java', 'Windows'. An empty string is returned if the value cannot be determined. | |
doc_9582 |
Epsilon-Support Vector Regression. The free parameters in the model are C and epsilon. The implementation is based on libsvm. The fit time complexity is more than quadratic with the number of samples which makes it hard to scale to datasets with more than a couple of 10000 samples. For large datasets consider using L... | |
doc_9583 |
Attempt to infer better dtypes for object columns. Attempts soft conversion of object-dtyped columns, leaving non-object and unconvertible columns unchanged. The inference rules are the same as during normal Series/DataFrame construction. Returns
converted:same type as input object
See also to_datetime
Con... | |
doc_9584 |
Multiply a Chebyshev series by x. Multiply the polynomial c by x, where x is the independent variable. Parameters
carray_like
1-D array of Chebyshev series coefficients ordered from low to high. Returns
outndarray
Array representing the result of the multiplication. Notes New in version 1.5.0. Exa... | |
doc_9585 | The value used to indicate that no namespace is associated with a node in the DOM. This is typically found as the namespaceURI of a node, or used as the namespaceURI parameter to a namespaces-specific method. | |
doc_9586 |
Call func on self producing a DataFrame with the same axis shape as self. Parameters
func:function, str, list-like or dict-like
Function to use for transforming the data. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply. If func is both list-like and dict-like, dict-like... | |
doc_9587 | See Migration guide for more details. tf.compat.v1.keras.callbacks.Callback
tf.keras.callbacks.Callback()
The logs dictionary that callback methods take as argument will contain keys for quantities relevant to the current batch or epoch (see method-specific docstrings).
Attributes
params Dict. Training para... | |
doc_9588 |
Draw the path with updated gc. | |
doc_9589 | Returns True if the named name is considered a resource. FileNotFoundError is raised if name does not exist. | |
doc_9590 | Convert the array to an array of machine values and return the bytes representation (the same sequence of bytes that would be written to a file by the tofile() method.) New in version 3.2: tostring() is renamed to tobytes() for clarity. | |
doc_9591 | Fills self tensor with elements drawn from the geometric distribution: f(X=k)=pk−1(1−p)f(X=k) = p^{k - 1} (1 - p) | |
doc_9592 | See Migration guide for more details. tf.compat.v1.saved_model.main_op.main_op_with_restore
tf.compat.v1.saved_model.main_op_with_restore(
restore_op_name
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: This function will only be available through the v1... | |
doc_9593 |
Indicator for whether the date is the first day of a quarter. Returns
is_quarter_start:Series or DatetimeIndex
The same type as the original data with boolean values. Series will have the same name and index. DatetimeIndex will have the same name. See also quarter
Return the quarter of the date. is_quar... | |
doc_9594 | Return a duplicate of file descriptor fd. The new file descriptor is non-inheritable. On Windows, when duplicating a standard stream (0: stdin, 1: stdout, 2: stderr), the new file descriptor is inheritable. Changed in version 3.4: The new file descriptor is now non-inheritable. | |
doc_9595 |
Alias for set_linestyle. | |
doc_9596 | Inode number. | |
doc_9597 | Return wrapped exporting object. parent -> Surface parent -> <parent> The Surface which returned the BufferProxy object or the object passed to a BufferProxy call. | |
doc_9598 |
Create a new Bbox from x0, y0, width and height. width and height may be negative. | |
doc_9599 | The type of traceback objects such as found in sys.exc_info()[2]. See the language reference for details of the available attributes and operations, and guidance on creating tracebacks dynamically. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.