_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_8400 | @tf_contextlib.contextmanager
tf.summary.record_if(
condition
)
The provided value can be a python boolean, a scalar boolean Tensor, or or a callable providing such a value; if a callable is passed it will be invoked on-demand to determine whether summary writing will occur.
Args
condition can be True, Fa... | |
doc_8401 |
Check if windows match. New in version 1.6.0. Parameters
otherclass instance
The other class must have the window attribute. Returns
boolboolean
True if the windows are the same, False otherwise. | |
doc_8402 |
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters
Xarray-like of shape (n_samples, n_features)
Input samples.
yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None
Target values (None for uns... | |
doc_8403 |
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters
ccolor or list of colors | |
doc_8404 | See Migration guide for more details. tf.compat.v1.raw_ops.DeleteSessionTensor
tf.raw_ops.DeleteSessionTensor(
handle, name=None
)
Args
handle A Tensor of type string. The handle for a tensor stored in the session state.
name A name for the operation (optional).
Returns The created Opera... | |
doc_8405 | If you have carried out a lot of deletions and would like to shrink the space used by the gdbm file, this routine will reorganize the database. gdbm objects will not shorten the length of a database file except by using this reorganization; otherwise, deleted file space will be kept and reused as new (key, value) pairs... | |
doc_8406 | check if the music stream is playing get_busy() -> bool Returns True when the music stream is actively playing. When the music is idle this returns False. In pygame 2.0.1 and above this function returns False when the music is paused. In pygame 1 it returns True when the music is paused. Changed in pygame 2.0.1: Ret... | |
doc_8407 |
Stores pandas plotting options. Allows for parameter aliasing so you can just use parameter names that are the same as the plot function parameters, but is stored in a canonical format that makes it easy to breakdown into groups later. | |
doc_8408 | Entry point to add parser arguments to handle command line arguments passed to the command. Custom commands should override this method to add both positional and optional arguments accepted by the command. Calling super() is not needed when directly subclassing BaseCommand. | |
doc_8409 | Copies the file src to the file or directory dst. src and dst should be path-like objects or strings. If dst specifies a directory, the file will be copied into dst using the base filename from src. Returns the path to the newly created file. If follow_symlinks is false, and src is a symbolic link, dst will be created ... | |
doc_8410 | Compute combinations of length rr of the given tensor. The behavior is similar to python’s itertools.combinations when with_replacement is set to False, and itertools.combinations_with_replacement when with_replacement is set to True. Parameters
input (Tensor) – 1D vector.
r (int, optional) – number of elements t... | |
doc_8411 | A json.JSONDecoder subclass to deserialize the input. Your deserialization may need to account for the fact that you can’t be certain of the input type. For example, you run the risk of returning a datetime that was actually a string that just happened to be in the same format chosen for datetimes. The decoder can be u... | |
doc_8412 |
Reduces the tensor data across all machines in such a way that all get the final result. This function reduces a number of tensors on every node, while each tensor resides on different GPUs. Therefore, the input tensor in the tensor list needs to be GPU tensors. Also, each tensor in the tensor list needs to reside on... | |
doc_8413 |
At the beginning of every ufunc, this method is called on the input object with the highest array priority, or the output object if one was specified. The output array is passed in and whatever is returned is passed to the ufunc. Subclasses inherit a default implementation of this method which simply returns the outp... | |
doc_8414 | sklearn.metrics.auc(x, y) [source]
Compute Area Under the Curve (AUC) using the trapezoidal rule. This is a general function, given points on a curve. For computing the area under the ROC-curve, see roc_auc_score. For an alternative way to summarize a precision-recall curve, see average_precision_score. Parameters
... | |
doc_8415 | See Migration guide for more details. tf.compat.v1.raw_ops.Ndtri
tf.raw_ops.Ndtri(
x, name=None
)
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64.
name A name for the operation (optional).
Returns A Tensor. Has the same type as x. | |
doc_8416 |
Return random floats in the half-open interval [0.0, 1.0). Alias for random_sample to ease forward-porting to the new random API. | |
doc_8417 | A helper method to register a rule (and optionally a view function) to the application. The endpoint is automatically prefixed with the blueprint’s name. Parameters
rule (str) –
endpoint (Optional[str]) –
view_func (Optional[Callable]) –
options (Any) – Return type
None | |
doc_8418 | tf.experimental.numpy.broadcast_to(
array, shape
)
Unsupported arguments: subok. See the NumPy documentation for numpy.broadcast_to. | |
doc_8419 | A string giving the complete internal subset from the document. This does not include the brackets which enclose the subset. If the document has no internal subset, this should be None. | |
doc_8420 | 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_8421 | Return the value __file__ would be set to if the specified module was imported. Raise ZipImportError if the module couldn’t be found. New in version 3.1. | |
doc_8422 | set ^ other
Return a new set with elements in either the set or other but not both. | |
doc_8423 |
Alias for get_linewidth. | |
doc_8424 |
The value of this attribute is used to determine what type of object to return in situations where there is more than one possibility for the Python type of the returned object. Subclasses inherit a default value of 0.0 for this attribute. Note For ufuncs, it is hoped to eventually deprecate this method in favour of... | |
doc_8425 |
Extract information from a TrueType font file. Parameters
fontFT2Font
The TrueType font file from which information will be extracted. Returns
FontEntry
The extracted font properties. | |
doc_8426 |
Set the x-axis scale. Parameters
value{"linear", "log", "symlog", "logit", ...} or ScaleBase
The axis scale type to apply. **kwargs
Different keyword arguments are accepted, depending on the scale. See the respective class keyword arguments: matplotlib.scale.LinearScale matplotlib.scale.LogScale matplotlib.s... | |
doc_8427 |
Compute Non-negative Matrix Factorization (NMF). Find two non-negative matrices (W, H) whose product approximates the non- negative matrix X. This factorization can be used for example for dimensionality reduction, source separation or topic extraction. The objective function is: \[ \begin{align}\begin{aligned}0.5 *... | |
doc_8428 | Parameters
t11 – a number (optional)
t12 – a number (optional)
t21 – a number (optional)
t12 – a number (optional) Set or return the current transformation matrix of the turtle shape. If none of the matrix elements are given, return the transformation matrix as a tuple of 4 elements. Otherwise set the given e... | |
doc_8429 |
Save an offline version of this module for use in a separate process. The saved module serializes all of the methods, submodules, parameters, and attributes of this module. It can be loaded into the C++ API using torch::jit::load(filename) or into the Python API with torch.jit.load. To be able to save a module, it mu... | |
doc_8430 |
Spectral biclustering (Kluger, 2003). Partitions rows and columns under the assumption that the data has an underlying checkerboard structure. For instance, if there are two row partitions and three column partitions, each row will belong to three biclusters, and each column will belong to two biclusters. The outer p... | |
doc_8431 |
Draw samples from the noncentral F distribution. Samples are drawn from an F distribution with specified parameters, dfnum (degrees of freedom in numerator) and dfden (degrees of freedom in denominator), where both parameters > 1. nonc is the non-centrality parameter. Parameters
dfnumfloat or array_like of floats... | |
doc_8432 | A list of formats used to attempt to convert a string to a valid datetime.time object. | |
doc_8433 | Create a new floating-point tensor with the magnitude of input and the sign of other, elementwise. outi={−∣inputi∣ifotheri≤−0.0∣inputi∣ifotheri≥0.0\text{out}_{i} = \begin{cases} -|\text{input}_{i}| & \text{if} \text{other}_{i} \leq -0.0 \\ |\text{input}_{i}| & \text{if} \text{other}_{i} \geq 0.0 \\ \end{cases}
Suppo... | |
doc_8434 | Finds all matching subelements, by tag name or path. Returns a list containing all matching elements in document order. namespaces is an optional mapping from namespace prefix to full name. Pass '' as prefix to move all unprefixed tag names in the expression into the given namespace. | |
doc_8435 |
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju... | |
doc_8436 |
Evaluate the decision_function of the models in the chain. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
Y_decisionarray-like of shape (n_samples, n_classes)
Returns the decision function of the sample for each model in the chain. | |
doc_8437 |
Return whether face is colored. | |
doc_8438 | Return a named tuple representation of the number: DecimalTuple(sign, digits, exponent). | |
doc_8439 |
Short-time Fourier transform (STFT). Warning From version 1.8.0, return_complex must always be given explicitly for real inputs and return_complex=False has been deprecated. Strongly prefer return_complex=True as in a future pytorch release, this function will only return complex tensors. Note that torch.view_as_rea... | |
doc_8440 | Initializes the given module object in accordance with PEP 489. New in version 3.5. | |
doc_8441 | tf.compat.v1.assign_add(
ref, value, use_locking=None, name=None
)
This operation outputs "ref" after the update is done. This makes it easier to chain operations that need to use the reset value. Unlike tf.math.add, this op does not broadcast. ref and value must have the same shape.
Args
ref A mutable Te... | |
doc_8442 | See Migration guide for more details. tf.compat.v1.bitcast
tf.bitcast(
input, type, name=None
)
Given a tensor input, this operation returns a tensor that has the same buffer data as input with datatype type. If the input datatype T is larger than the output datatype type then the shape changes from [...] to [..... | |
doc_8443 | This class implements the actual POP3 protocol. The connection is created when the instance is initialized. If port is omitted, the standard POP3 port (110) is used. The optional timeout parameter specifies a timeout in seconds for the connection attempt (if not specified, the global default timeout setting will be use... | |
doc_8444 |
Alias for get_linestyle. | |
doc_8445 |
Reverse the transformation operation Parameters
Xarray of shape [n_samples, n_selected_features]
The input samples. Returns
X_rarray of shape [n_samples, n_original_features]
X with columns of zeros inserted where features would have been removed by transform. | |
doc_8446 | tf.compat.v1.nn.bidirectional_dynamic_rnn(
cell_fw, cell_bw, inputs, sequence_length=None, initial_state_fw=None,
initial_state_bw=None, dtype=None, parallel_iterations=None, swap_memory=False,
time_major=False, scope=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Inst... | |
doc_8447 |
Return the frequency object if it is set, otherwise None. | |
doc_8448 | msvcrt.locking(fd, mode, nbytes)
Lock part of a file based on file descriptor fd from the C runtime. Raises OSError on failure. The locked region of the file extends from the current file position for nbytes bytes, and may continue beyond the end of the file. mode must be one of the LK_* constants listed below. Multi... | |
doc_8449 |
[Deprecated] Notes Deprecated since version 3.4: | |
doc_8450 | Equivalent to 0 (ie. all of the above Netscape domain strictness flags switched off). | |
doc_8451 | Tells Django that this expression contains a Window expression. It’s used, for example, to disallow window function expressions in queries that modify data. | |
doc_8452 |
Compute the multidimensional histogram of some data. Parameters
sample(N, D) array, or (D, N) array_like
The data to be histogrammed. Note the unusual interpretation of sample when an array_like: When an array, each row is a coordinate in a D-dimensional space - such as histogramdd(np.array([p1, p2, p3])). Whe... | |
doc_8453 |
Execute a placeholder node. Note that this is stateful: Interpreter maintains an internal iterator over arguments passed to run and this method returns next() on that iterator. Parameters
target (Target) – The call target for this node. See Node for details on semantics
args (Tuple) – Tuple of positional args fo... | |
doc_8454 | Return a pair of integers whose ratio is exactly equal to the original float and with a positive denominator. Raises OverflowError on infinities and a ValueError on NaNs. | |
doc_8455 | Returns the element attributes as a sequence of (name, value) pairs. The attributes are returned in an arbitrary order. | |
doc_8456 | tf.experimental.numpy.triu(
m, k=0
)
See the NumPy documentation for numpy.triu. | |
doc_8457 |
Plot a multidimensional dataset in 2D. Each Series in the DataFrame is represented as a evenly distributed slice on a circle. Each data point is rendered in the circle according to the value on each Series. Highly correlated Series in the DataFrame are placed closer on the unit circle. RadViz allow to project a N-dim... | |
doc_8458 |
A stepwise constant function as a line with bounding edges or a filled plot. Parameters
valuesarray-like
The step heights.
edgesarray-like
The edge positions, with len(edges) == len(vals) + 1, between which the curve takes on vals values.
orientation{'vertical', 'horizontal'}, default: 'vertical'
The di... | |
doc_8459 | tf.keras.models.Model Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.Model, tf.compat.v1.keras.models.Model
tf.keras.Model(
*args, **kwargs
)
Arguments
inputs The input(s) of the model: a keras.Input object or list of keras.Input objects.
outputs The output(s... | |
doc_8460 | Translation domain containing strings to add in the view output. Defaults to 'djangojs'. | |
doc_8461 | alias of torch.distributions.constraints._IndependentConstraint | |
doc_8462 |
Bases: object Store verbatim PDF command content for later inclusion in the stream. pdfRepr()[source] | |
doc_8463 |
Bases: matplotlib.image._ImageBase The Image class whose size is determined by the given bbox. cmap is a colors.Colormap instance norm is a colors.Normalize instance to map luminance to 0-1 kwargs are an optional list of Artist keyword args contains(mouseevent)[source]
Test whether the mouse event occurred within... | |
doc_8464 | Raised on thread-specific errors. Changed in version 3.3: This is now a synonym of the built-in RuntimeError. | |
doc_8465 | Works like url_decode() but decodes a stream. The behavior of stream and limit follows functions like make_line_iter(). The generator of pairs is directly fed to the cls so you can consume the data while it’s parsed. Parameters
stream (BinaryIO) – a stream with the encoded querystring
charset (str) – the charset o... | |
doc_8466 | Write a list of lines to the stream. Line separators are not added, so it is usual for each of the lines provided to have a line separator at the end. | |
doc_8467 | Computes the Kronecker product, denoted by ⊗\otimes , of input and other. If input is a (a0×a1×⋯×an)(a_0 \times a_1 \times \dots \times a_n) tensor and other is a (b0×b1×⋯×bn)(b_0 \times b_1 \times \dots \times b_n) tensor, the result will be a (a0∗b0×a1∗b1×⋯×an∗bn)(a_0*b_0 \times a_1*b_1 \times \dots \times a_n*b_n)... | |
doc_8468 |
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
bbox_to_anchor unknown
child unknown
clip_box Bbox
clip_on bool
clip_pa... | |
doc_8469 | See Migration guide for more details. tf.compat.v1.raw_ops.TPUEmbeddingActivations
tf.raw_ops.TPUEmbeddingActivations(
embedding_variable, sliced_activations, table_id, lookup_id, name=None
)
This op simply returns its first input, which is assumed to have been sliced from the Tensors returned by TPUEmbeddingDeq... | |
doc_8470 |
Return whether the given branch is a sub-tree of this transform on each separate dimension. A common use for this method is to identify if a transform is a blended transform containing an axes' data transform. e.g.: x_isdata, y_isdata = trans.contains_branch_seperately(ax.transData) | |
doc_8471 |
Pickle (serialize) object to file. Parameters
path:str
File path where the pickled object will be stored.
compression:str or dict, default ‘infer’
For on-the-fly compression of the output data. If ‘infer’ and ‘path’ path-like, then detect compression from the following extensions: ‘.gz’, ‘.bz2’, ‘.zip’, ‘.x... | |
doc_8472 |
Other Members
FULLY_REPARAMETERIZED tf.compat.v1.distributions.ReparameterizationType
NOT_REPARAMETERIZED tf.compat.v1.distributions.ReparameterizationType | |
doc_8473 | Truncate the file corresponding to path, so that it is at most length bytes in size. This function can support specifying a file descriptor. Raises an auditing event os.truncate with arguments path, length. Availability: Unix, Windows. New in version 3.3. Changed in version 3.5: Added support for Windows Changed i... | |
doc_8474 |
Alias for set_linestyle. | |
doc_8475 |
Return a Path instance for a unit regular polygon with the given numVertices such that the circumscribing circle has radius 1.0, centered at (0, 0). | |
doc_8476 |
Returns a Styler object. Contains methods for building a styled HTML representation of the DataFrame. See also io.formats.style.Styler
Helps style a DataFrame or Series according to the data with HTML and CSS. | |
doc_8477 | sklearn.metrics.pairwise_distances_argmin(X, Y, *, axis=1, metric='euclidean', metric_kwargs=None) [source]
Compute minimum distances between one point and a set of points. This function computes for each row in X, the index of the row of Y which is closest (according to the specified distance). This is mostly equiva... | |
doc_8478 | An alias for SSLCertVerificationError. Changed in version 3.7: The exception is now an alias for SSLCertVerificationError. | |
doc_8479 |
Perform classification on an array of test vectors X. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
Cndarray of shape (n_samples,)
Predicted target values for X | |
doc_8480 | When serving files, set the X-Sendfile header instead of serving the data with Flask. Some web servers, such as Apache, recognize this and serve the data more efficiently. This only makes sense when using such a server. Default: False | |
doc_8481 | A dictionary containing HTML attributes to be set on the rendered widget. >>> from django import forms
>>> name = forms.TextInput(attrs={'size': 10, 'title': 'Your name'})
>>> name.render('name', 'A name')
'<input title="Your name" type="text" name="name" value="A name" size="10">'
If you assign a value of True or Fal... | |
doc_8482 |
HSV to RGB color space conversion. Parameters
hsv(…, 3) array_like
The image in HSV format. Final dimension denotes channels. Returns
out(…, 3) ndarray
The image in RGB format. Same dimensions as input. Raises
ValueError
If hsv is not at least 2-D with shape (…, 3). Notes Conversion between RG... | |
doc_8483 | Computes the network definitions resulting from removing the given network from this one. Returns an iterator of network objects. Raises ValueError if network is not completely contained in this network. >>> n1 = ip_network('192.0.2.0/28')
>>> n2 = ip_network('192.0.2.1/32')
>>> list(n1.address_exclude(n2))
[IPv4Netw... | |
doc_8484 | tf.summary.trace_off() | |
doc_8485 |
Ridge classifier with built-in cross-validation. See glossary entry for cross-validation estimator. By default, it performs Leave-One-Out Cross-Validation. Currently, only the n_features > n_samples case is handled efficiently. Read more in the User Guide. Parameters
alphasndarray of shape (n_alphas,), default=(0... | |
doc_8486 | Optional. Either a method or attribute. If it’s a method, it should take one argument – an object as returned by items() – and return that object’s priority as either a string or float. If it’s an attribute, its value should be either a string or float representing the priority of every object returned by items(). Exam... | |
doc_8487 | Kill signal. It cannot be caught, blocked, or ignored. Availability: Unix. | |
doc_8488 |
Return a list of URLs, one for each element of the collection. The list contains None for elements without a URL. See Hyperlinks for an example. | |
doc_8489 |
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_8490 | Returns the value for key if key is in the context, else returns otherwise. | |
doc_8491 | at the end of your dataset, and see how it affects your model's step time. take(1).cache().repeat() will cache the first element of your dataset and produce it repeatedly. This should make the dataset very fast, so that the model becomes the bottleneck and you can identify the ideal model speed. With enough workers, t... | |
doc_8492 | tf.data.experimental.Counter(
start=0, step=1, dtype=tf.dtypes.int64
)
For example: Dataset.count() == [0, 1, 2, ...)
Dataset.count(2) == [2, 3, ...)
Dataset.count(2, 5) == [2, 7, 12, ...)
Dataset.count(0, -1) == [0, -1, -2, ...)
Dataset.count(10, -1) == [10, 9, ...)
Args
start (Optional.) The starting v... | |
doc_8493 |
Alias for get_facecolor. | |
doc_8494 |
Get a mask, or integer index, of the features selected Parameters
indicesbool, default=False
If True, the return value will be an array of integers, rather than a boolean mask. Returns
supportarray
An index that selects the retained features from a feature vector. If indices is False, this is a boolean ... | |
doc_8495 | class typing.Match
These type aliases correspond to the return types from re.compile() and re.match(). These types (and the corresponding functions) are generic in AnyStr and can be made specific by writing Pattern[str], Pattern[bytes], Match[str], or Match[bytes]. These types are also in the typing.re namespace. De... | |
doc_8496 | The name of the module the loader can handle. | |
doc_8497 | Make an iterator returning elements from the iterable and saving a copy of each. When the iterable is exhausted, return elements from the saved copy. Repeats indefinitely. Roughly equivalent to: def cycle(iterable):
# cycle('ABCD') --> A B C D A B C D A B C D ...
saved = []
for element in iterable:
... | |
doc_8498 | Returns a new tensor containing imaginary values of the self tensor. The returned tensor and self share the same underlying storage. Warning imag() is only supported for tensors with complex dtypes. Example::
>>> x=torch.randn(4, dtype=torch.cfloat)
>>> x
tensor([(0.3100+0.3553j), (-0.5445-0.7896j), (-1.6492-0.0633... | |
doc_8499 | This is a shorthand for print_exception(sys.last_type, sys.last_value,
sys.last_traceback, limit, file, chain). In general it will work only after an exception has reached an interactive prompt (see sys.last_type). |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.