_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_3600 | See Migration guide for more details. tf.compat.v1.app.flags.multi_flags_validator
tf.compat.v1.flags.multi_flags_validator(
flag_names, message='Flag validation failed',
flag_values=_flagvalues.FLAGS
)
Registers the decorated function as a validator for flag_names, e.g. @flags.multi_flags_validator(['foo', ... | |
doc_3601 | The type of frame objects such as found in tb.tb_frame if tb is a traceback object. See the language reference for details of the available attributes and operations. | |
doc_3602 |
Bases: object get_attribute_from_ref_artist(attr_name)[source]
get_ref_artist()[source]
Return the underlying artist that actually defines some properties (e.g., color) of this artist. | |
doc_3603 |
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_3604 |
Return the Colormap instance. | |
doc_3605 | Abort a file transfer that is in progress. Using this does not always work, but it’s worth a try. | |
doc_3606 | The reason for this error. It can be a message string or another exception instance. | |
doc_3607 | unlock()
Maildir mailboxes do not support (or require) locking, so these methods do nothing. | |
doc_3608 |
Return the font variant. Values are: 'normal' or 'small-caps'. | |
doc_3609 |
Calculates which of the given dates are valid days, and which are not. New in version 1.7.0. Parameters
datesarray_like of datetime64[D]
The array of dates to process.
weekmaskstr or array_like of bool, optional
A seven-element array indicating which of Monday through Sunday are valid days. May be specifi... | |
doc_3610 | stringprep.in_table_a1(code)
Determine whether code is in tableA.1 (Unassigned code points in Unicode 3.2).
stringprep.in_table_b1(code)
Determine whether code is in tableB.1 (Commonly mapped to nothing).
stringprep.map_table_b2(code)
Return the mapped value for code according to tableB.2 (Mapping for cas... | |
doc_3611 | Rename mailbox named oldmailbox to newmailbox. | |
doc_3612 |
Return (status,output) of executed command. Deprecated since version 1.17: Use subprocess.Popen instead Parameters
commandstr
A concatenated string of executable and arguments.
execute_instr
Before running command cd execute_in and after cd -.
use_shell{bool, None}, optional
If True, execute sh -c com... | |
doc_3613 | When using class-based views, you can use the UserPassesTestMixin to do this.
test_func()
You have to override the test_func() method of the class to provide the test that is performed. Furthermore, you can set any of the parameters of AccessMixin to customize the handling of unauthorized users: from django.contrib... | |
doc_3614 |
Return specified diagonals. If a is 2-D, returns the diagonal of a with the given offset, i.e., the collection of elements of the form a[i, i+offset]. If a has more than two dimensions, then the axes specified by axis1 and axis2 are used to determine the 2-D sub-array whose diagonal is returned. The shape of the resu... | |
doc_3615 |
Calls str.decode element-wise. See also char.decode | |
doc_3616 | See Migration guide for more details. tf.compat.v1.nn.relu6
tf.nn.relu6(
features, name=None
)
Args
features A Tensor with type float, double, int32, int64, uint8, int16, or int8.
name A name for the operation (optional).
Returns A Tensor with the same type as features.
References: Co... | |
doc_3617 | In-place version of nextafter() | |
doc_3618 |
Return sample standard deviation over requested axis. Normalized by N-1 by default. This can be changed using the ddof argument Parameters
axis:int optional, default None
Axis for the function to be applied on.
ddof:int, default 1
Degrees of Freedom. The divisor used in calculations is N - ddof, where N rep... | |
doc_3619 | Complex number with zero real part and NaN imaginary part. Equivalent to complex(0.0, float('nan')). New in version 3.6. | |
doc_3620 |
Return a scalar result of performing the reduction operation. Parameters
name:str
Name of the function, supported values are: { any, all, min, max, sum, mean, median, prod, std, var, sem, kurt, skew }.
skipna:bool, default True
If True, skip NaN values. **kwargs
Additional keyword arguments passed to the ... | |
doc_3621 | The walk() method is an all-purpose generator which can be used to iterate over all the parts and subparts of a message object tree, in depth-first traversal order. You will typically use walk() as the iterator in a for loop; each iteration returns the next subpart. Here’s an example that prints the MIME type of every ... | |
doc_3622 |
Return a Bbox that contains all of the given bboxes. | |
doc_3623 | tf.nn.erosion2d(
value, filters, strides, padding, data_format, dilations, name=None
)
The value tensor has shape [batch, in_height, in_width, depth] and the filters tensor has shape [filters_height, filters_width, depth], i.e., each input channel is processed independently of the others with its own structuring f... | |
doc_3624 | Get channel binding data for current connection, as a bytes object. Returns None if not connected or the handshake has not been completed. The cb_type parameter allow selection of the desired channel binding type. Valid channel binding types are listed in the CHANNEL_BINDING_TYPES list. Currently only the ‘tls-unique’ ... | |
doc_3625 |
template_name: 'django/forms/widgets/checkbox_select.html'
option_template_name: 'django/forms/widgets/checkbox_option.html'
Similar to SelectMultiple, but rendered as a list of checkboxes: <div>
<div><input type="checkbox" name="..." ></div>
...
</div>
The outer <div> container receives the id attribute of ... | |
doc_3626 | An optional list/tuple of years to use in the “year” select box. The default is a list containing the current year and the next 9 years. | |
doc_3627 | This attribute is a tuple of classes that are considered when looking for base classes during method resolution. | |
doc_3628 | Returns the absolute value of x. | |
doc_3629 |
Akaike information criterion for the current model on the input X. Parameters
Xarray of shape (n_samples, n_dimensions)
Returns
aicfloat
The lower the better. | |
doc_3630 | A boolean instructing the field to accept Unicode letters in addition to ASCII letters. Defaults to False. | |
doc_3631 | The FileStorage class is a thin wrapper over incoming files. It is used by the request object to represent uploaded files. All the attributes of the wrapper stream are proxied by the file storage so it’s possible to do storage.read() instead of the long form storage.stream.read().
stream
The input stream for the up... | |
doc_3632 | Return a list of the weeks in the month month of the year as full weeks. Weeks are lists of seven tuples of day numbers and weekday numbers. | |
doc_3633 | Sends the signal signal to the child process. Note On Windows, SIGTERM is an alias for terminate(). CTRL_C_EVENT and CTRL_BREAK_EVENT can be sent to processes started with a creationflags parameter which includes CREATE_NEW_PROCESS_GROUP. | |
doc_3634 |
Autoscale the axis view to the data (toggle). Convenience method for simple axis view autoscaling. It turns autoscaling on or off, and then, if autoscaling for either axis is on, it performs the autoscaling on the specified axis or Axes. Parameters
enablebool or None, default: True
True turns autoscaling on, Fa... | |
doc_3635 |
Return the cross product of two (arrays of) vectors. The cross product of a and b in \(R^3\) is a vector perpendicular to both a and b. If a and b are arrays of vectors, the vectors are defined by the last axis of a and b by default, and these axes can have dimensions 2 or 3. Where the dimension of either a or b is 2... | |
doc_3636 |
Computes the (weighted) graph of Neighbors for points in X Neighborhoods are restricted the points at a distance lower than radius. Parameters
Xarray-like of shape (n_samples, n_features), default=None
The query point or points. If not provided, neighbors of each indexed point are returned. In this case, the qu... | |
doc_3637 | get the number of axes on a Joystick get_numaxes() -> int Returns the number of input axes are on a Joystick. There will usually be two for the position. Controls like rudders and throttles are treated as additional axes. The pygame.JOYAXISMOTION events will be in the range from -1.0 to 1.0. A value of 0.0 means the ... | |
doc_3638 | See Migration guide for more details. tf.compat.v1.RaggedTensorSpec
tf.RaggedTensorSpec(
shape=None, dtype=tf.dtypes.float32, ragged_rank=None,
row_splits_dtype=tf.dtypes.int64, flat_values_spec=None
)
Args
shape The shape of the RaggedTensor, or None to allow any shape. If a shape is specified, the... | |
doc_3639 | Set the default content type. ctype should either be text/plain or message/rfc822, although this is not enforced. The default content type is not stored in the Content-Type header. | |
doc_3640 | Raises an HTTPException for the given status code or WSGI application. If a status code is given, it will be looked up in the list of exceptions and will raise that exception. If passed a WSGI application, it will wrap it in a proxy WSGI exception and raise that: abort(404) # 404 Not Found
abort(Response('Hello World'... | |
doc_3641 | create a Font object from the system fonts SysFont(name, size, bold=False, italic=False) -> Font Return a new Font object that is loaded from the system fonts. The font will match the requested bold and italic flags. Pygame uses a small set of common font aliases. If the specific font you ask for is not available, a ... | |
doc_3642 | Return the list of objects that directly refer to any of objs. This function will only locate those containers which support garbage collection; extension types which do refer to other objects but do not support garbage collection will not be found. Note that objects which have already been dereferenced, but which live... | |
doc_3643 | Join a base URL and a possibly relative URL to form an absolute interpretation of the latter. Parameters
base (Union[str, Tuple[str, str, str, str, str]]) – the base URL for the join operation.
url (Union[str, Tuple[str, str, str, str, str]]) – the URL to join.
allow_fragments (bool) – indicates whether fragments... | |
doc_3644 | Add a new header tuple to the list. Keyword arguments can specify additional parameters for the header value, with underscores converted to dashes: >>> d = Headers()
>>> d.add('Content-Type', 'text/plain')
>>> d.add('Content-Disposition', 'attachment', filename='foo.png')
The keyword argument dumping uses dump_options... | |
doc_3645 | If locale is given and not None, setlocale() modifies the locale setting for the category. The available categories are listed in the data description below. locale may be a string, or an iterable of two strings (language code and encoding). If it’s an iterable, it’s converted to a locale name using the locale aliasing... | |
doc_3646 |
Bases: mpl_toolkits.mplot3d.art3d.Patch3D 3D PathPatch object. The following kwarg properties are supported
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 unknown
animated bool
antialiased or aa bool or None
cap... | |
doc_3647 | Return True if both the real and imaginary parts of x are finite, and False otherwise. New in version 3.2. | |
doc_3648 |
Remove a toolitem from the ToolContainer. This method must get implemented per backend. Called when ToolManager emits a tool_removed_event. Parameters
namestr
Name of the tool to remove. | |
doc_3649 | A dictionary of context data that will be added to the default context data passed to the template. | |
doc_3650 |
Compute an approximation of the bounding box obtained by applying transform_xy to the box delimited by (x1, y1, x2, y2). The intended use is to have (x1, y1, x2, y2) in axes coordinates, and have transform_xy be the transform from axes coordinates to data coordinates; this method then returns the range of data coordi... | |
doc_3651 | See Migration guide for more details. tf.compat.v1.raw_ops.Sum
tf.raw_ops.Sum(
input, axis, keep_dims=False, name=None
)
Reduces input along the dimensions given in axis. Unless keep_dims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keep_dims is true, the reduced dimensions are reta... | |
doc_3652 | Rounding occurred though possibly no information was lost. Signaled whenever rounding discards digits; even if those digits are zero (such as rounding 5.00 to 5.0). If not trapped, returns the result unchanged. This signal is used to detect loss of significant digits. | |
doc_3653 | See Migration guide for more details. tf.compat.v1.data.experimental.TFRecordWriter
tf.data.experimental.TFRecordWriter(
filename, compression_type=None
)
The elements of the dataset must be scalar strings. To serialize dataset elements as strings, you can use the tf.io.serialize_tensor function. dataset = tf.da... | |
doc_3654 |
Whether or not the index values only consist of dates. | |
doc_3655 |
An AdaBoost classifier. An AdaBoost [1] classifier is a meta-estimator that begins by fitting a classifier on the original dataset and then fits additional copies of the classifier on the same dataset but where the weights of incorrectly classified instances are adjusted such that subsequent classifiers focus more on... | |
doc_3656 |
Construct a GraphModule. Parameters
root (Union[torch.nn.Module, Dict[str, Any]) – root can either be an nn.Module instance or a Dict mapping strings to any attribute type. In the case that root is a Module, any references to Module-based objects (via qualified name) in the Graph’s Nodes’ target field will be cop... | |
doc_3657 | Files which are in both a and b, but could not be compared. | |
doc_3658 | An optional method which, when called, should invalidate any internal cache used by the finder. Used by importlib.invalidate_caches() when invalidating the caches of all finders on sys.meta_path. Changed in version 3.4: Returns None when called instead of NotImplemented. | |
doc_3659 | Remove the specified section from the configuration. If the section in fact existed, return True. Otherwise return False. | |
doc_3660 |
Update the location of children if necessary and draw them to the given renderer. | |
doc_3661 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DWithBias
tf.raw_ops.QuantizedConv2DWithBias(
input, filter, bias, min_input, max_input, min_filter, max_filter, strides,
padding, out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1], padding_list=[],
name=None
)
Args
input A... | |
doc_3662 | class sklearn.linear_model.MultiTaskLassoCV(*, eps=0.001, n_alphas=100, alphas=None, fit_intercept=True, normalize=False, max_iter=1000, tol=0.0001, copy_X=True, cv=None, verbose=False, n_jobs=None, random_state=None, selection='cyclic') [source]
Multi-task Lasso model trained with L1/L2 mixed-norm as regularizer. Se... | |
doc_3663 | This dictionary maps the HTTP 1.1 status codes to the W3C names. Example: http.client.responses[http.client.NOT_FOUND] is 'Not Found'. | |
doc_3664 |
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_3665 |
Convert string s to vertices and codes using the provided ttf font. | |
doc_3666 |
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters
levelfloat | |
doc_3667 |
An array class with possibly masked values. Masked values of True exclude the corresponding element from any computation. Construction: x = MaskedArray(data, mask=nomask, dtype=None, copy=False, subok=True,
ndmin=0, fill_value=None, keep_mask=True, hard_mask=None,
shrink=True, order=No... | |
doc_3668 | tf.experimental.numpy.ones_like(
a, dtype=None
)
Unsupported arguments: order, subok, shape. See the NumPy documentation for numpy.ones_like. | |
doc_3669 |
Return x: no detrending. Parameters
xany object
An object containing the data
axisint
This parameter is ignored. It is included for compatibility with detrend_mean See also detrend_mean
Another detrend algorithm. detrend_linear
Another detrend algorithm. detrend
A wrapper around all the detrend a... | |
doc_3670 |
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_3671 |
Return the Transform instance used by this artist offset. | |
doc_3672 | See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorBlockLowerTriangular
tf.linalg.LinearOperatorBlockLowerTriangular(
operators, is_non_singular=None, is_self_adjoint=None,
is_positive_definite=None, is_square=None,
name='LinearOperatorBlockLowerTriangular'
)
This operator is initial... | |
doc_3673 |
Get the transformation used for drawing x-axis labels, ticks and gridlines. The x-direction is in data coordinates and the y-direction is in axis coordinates. Note This transformation is primarily used by the Axis class, and is meant to be overridden by new kinds of projections that may need to place axis elements i... | |
doc_3674 | Returns a string identifying the Python implementation SCM branch. | |
doc_3675 |
Returns
transformTransform
The transform used for drawing x-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in axis coordinates
valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}
The tex... | |
doc_3676 | Returns True if x is a quiet NaN; otherwise returns False. | |
doc_3677 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_3678 | Return the inode number of the entry. The result is cached on the os.DirEntry object. Use os.stat(entry.path, follow_symlinks=False).st_ino to fetch up-to-date information. On the first, uncached call, a system call is required on Windows but not on Unix. | |
doc_3679 | Return the digest of the bytes passed to the update() method so far. This bytes object will be the same length as the digest_size of the digest given to the constructor. It may contain non-ASCII bytes, including NUL bytes. Warning When comparing the output of digest() to an externally-supplied digest during a verifica... | |
doc_3680 | Returns context data for displaying the object. The base implementation of this method requires that the self.object attribute be set by the view (even if None). Be sure to do this if you are using this mixin without one of the built-in views that does so. It returns a dictionary with these contents:
object: The obje... | |
doc_3681 | Return an iterator for the month month in the year year similar to itermonthdates(), but not restricted by the datetime.date range. Days returned will be tuples consisting of a year, a month, a day of the month, and a day of the week numbers. New in version 3.7. | |
doc_3682 |
Calculate the absolute value element-wise. np.abs is a shorthand for this function. Parameters
xarray_like
Input array.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None... | |
doc_3683 | Provides functionality to topologically sort a graph of hashable nodes. A topological order is a linear ordering of the vertices in a graph such that for every directed edge u -> v from vertex u to vertex v, vertex u comes before vertex v in the ordering. For instance, the vertices of the graph may represent tasks to b... | |
doc_3684 |
Fit the gradient boosting model. Parameters
Xarray-like of shape (n_samples, n_features)
The input samples.
yarray-like of shape (n_samples,)
Target values.
sample_weightarray-like of shape (n_samples,) default=None
Weights of training data. New in version 0.23. Returns
selfobject | |
doc_3685 |
Move ticks and ticklabels (if present) to the right of the axes. | |
doc_3686 | class sklearn.gaussian_process.kernels.Hyperparameter(name, value_type, bounds, n_elements=1, fixed=None) [source]
A kernel hyperparameter’s specification in form of a namedtuple. New in version 0.18. Attributes
namestr
The name of the hyperparameter. Note that a kernel using a hyperparameter with name “x” mu... | |
doc_3687 |
Display a message on toolbar or in status bar. | |
doc_3688 | alias of torch.distributions.constraints._Cat | |
doc_3689 |
This is a sequential container which calls the Conv 1d, Batch Norm 1d, and ReLU modules. During quantization this will be replaced with the corresponding fused module. | |
doc_3690 | The exit status or error message that is passed to the constructor. (Defaults to None.) | |
doc_3691 |
Convert strings in value to floats using mapping information stored in the unit object. Parameters
valuestr or iterable
Value or list of values to be converted.
unitUnitData
An object mapping strings to integers.
axisAxis
The axis on which the converted value is plotted. Note axis is unused. Return... | |
doc_3692 |
Applies element-wise, the function SoftSign(x)=x1+∣x∣\text{SoftSign}(x) = \frac{x}{1 + |x|} See Softsign for more details. | |
doc_3693 |
Create a new backend-specific subclass of Timer. This is useful for getting periodic events through the backend's native event loop. Implemented only for backends with GUIs. Parameters
intervalint
Timer interval in milliseconds.
callbackslist[tuple[callable, tuple, dict]]
Sequence of (func, args, kwargs) wh... | |
doc_3694 |
Like decorator_from_middleware, but returns a function that accepts the arguments to be passed to the middleware_class. For example, the cache_page() decorator is created from the CacheMiddleware like this: cache_page = decorator_from_middleware_with_args(CacheMiddleware)
@cache_page(3600)
def my_view(request):
... | |
doc_3695 | See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingAdagradParametersGradAccumDebug
tf.raw_ops.LoadTPUEmbeddingAdagradParametersGradAccumDebug(
parameters, accumulators, gradient_accumulators, num_shards, shard_id,
table_id=-1, table_name='', config='', name=None
)
An op that loads opt... | |
doc_3696 | See Migration guide for more details. tf.compat.v1.raw_ops.Select
tf.raw_ops.Select(
condition, x, y, name=None
)
The x, and y tensors must all have the same shape, and the output will also have that shape. The condition tensor must be a scalar if x and y are scalars. If x and y are vectors or higher rank, then ... | |
doc_3697 |
Alias for set_linestyle. | |
doc_3698 | Checks for any printable ASCII character which is not a space or an alphanumeric character. | |
doc_3699 | See Migration guide for more details. tf.compat.v1.debugging.is_nan, tf.compat.v1.is_nan, tf.compat.v1.math.is_nan
tf.math.is_nan(
x, name=None
)
Example: x = tf.constant([5.0, np.nan, 6.8, np.nan, np.inf])
tf.math.is_nan(x) ==> [False, True, False, True, False]
Args
x A Tensor. Must be one of the foll... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.