_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_14700 | A subclass of HTTPException. | |
doc_14701 | See Migration guide for more details. tf.compat.v1.data.experimental.scan
tf.data.experimental.scan(
initial_state, scan_func
)
This transformation is a stateful relative of tf.data.Dataset.map. In addition to mapping scan_func across the elements of the input dataset, scan() accumulates one or more state tensor... | |
doc_14702 | See torch.cummin() | |
doc_14703 |
clean()
Normalizes the email by calling BaseUserManager.normalize_email(). If you override this method, be sure to call super() to retain the normalization. | |
doc_14704 |
Return the Legend instance, or None if no legend is defined. | |
doc_14705 |
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None | |
doc_14706 |
Return the artist's zorder. | |
doc_14707 |
Register func to be called by timer when the event fires. Any additional arguments provided will be passed to func. This function returns func, which makes it possible to use it as a decorator. | |
doc_14708 |
Returns whether PyTorch is built with CUDA support. Note that this doesn’t necessarily mean CUDA is available; just that if this PyTorch binary were run a machine with working CUDA drivers and devices, we would be able to use it. | |
doc_14709 | Get the character stream for this input source. | |
doc_14710 |
Compute Kullback-Leibler divergence KL(p∥q)KL(p \| q) between two distributions. KL(p∥q)=∫p(x)logp(x)q(x)dxKL(p \| q) = \int p(x) \log\frac {p(x)} {q(x)} \,dx
Parameters
p (Distribution) – A Distribution object.
q (Distribution) – A Distribution object. Returns
A batch of KL divergences of shape batch_sha... | |
doc_14711 | Similar to waitpid(), except a 3-element tuple, containing the child’s process id, exit status indication, and resource usage information is returned. Refer to resource.getrusage() for details on resource usage information. The arguments to wait4() are the same as those provided to waitpid(). waitstatus_to_exitcode() c... | |
doc_14712 | See Migration guide for more details. tf.compat.v1.raw_ops.GetSessionTensor
tf.raw_ops.GetSessionTensor(
handle, dtype, name=None
)
Args
handle A Tensor of type string. The handle for a tensor stored in the session state.
dtype A tf.DType. The type of the output value.
name A name for the op... | |
doc_14713 | The URI scheme. | |
doc_14714 |
Set the line spacing as a multiple of the font size. The default line spacing is 1.2. Parameters
spacingfloat (multiple of font size) | |
doc_14715 | When specified, exit after the first failing example and don’t attempt to run the remaining examples. Thus, the number of failures reported will be at most 1. This flag may be useful during debugging, since examples after the first failure won’t even produce debugging output. The doctest command line accepts the option... | |
doc_14716 |
Return value|self. | |
doc_14717 | Change owner user and/or group of the given path. user can be a system user name or a uid; the same applies to group. At least one argument is required. See also os.chown(), the underlying function. Raises an auditing event shutil.chown with arguments path, user, group. Availability: Unix. New in version 3.3. | |
doc_14718 |
Set the parameters of an estimator from the ensemble. Valid parameter keys can be listed with get_params(). Note that you can directly set the parameters of the estimators contained in estimators. Parameters
**paramskeyword arguments
Specific parameters using e.g. set_params(parameter_name=new_value). In additi... | |
doc_14719 |
Parameters
anchor(float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}
Either an (x, y) pair of relative coordinates (0 is left or bottom, 1 is right or top), 'C' (center), or a cardinal direction ('SW', southwest, is bottom left, etc.). See also Axes.set_anchor | |
doc_14720 |
Return a contiguous array (ndim >= 1) in memory (C order). Parameters
aarray_like
Input array.
dtypestr or dtype object, optional
Data-type of returned array.
likearray_like
Reference object to allow the creation of arrays which are not NumPy arrays. If an array-like passed in as like supports the __arr... | |
doc_14721 | Return the TurtleScreen object the turtle is drawing on. TurtleScreen methods can then be called for that object. >>> ts = turtle.getscreen()
>>> ts
<turtle._Screen object at 0x...>
>>> ts.bgcolor("pink") | |
doc_14722 | Add the file path into the _Stream table of database, with the stream name name. | |
doc_14723 | tf.compat.v1.train.AdagradDAOptimizer(
learning_rate, global_step, initial_gradient_squared_accumulator_value=0.1,
l1_regularization_strength=0.0, l2_regularization_strength=0.0,
use_locking=False, name='AdagradDA'
)
This optimizer takes care of regularization of unseen features in a mini batch by updating... | |
doc_14724 | 32-bit number. | |
doc_14725 | See Migration guide for more details. tf.compat.v1.image.extract_image_patches
tf.compat.v1.extract_image_patches(
images, ksizes=None, strides=None, rates=None, padding=None, name=None,
sizes=None
)
Args
images A Tensor. Must be one of the following types: bfloat16, half, float32, float64, int8, in... | |
doc_14726 |
Forward fill the values. Parameters
limit:int, optional
Limit of how many values to fill. Returns
Series or DataFrame
Object with missing values filled. See also Series.ffill
Returns Series with minimum number of char in object. DataFrame.ffill
Object with missing values filled or None if inplace... | |
doc_14727 |
Convert a Legendre series to a polynomial. Convert an array representing the coefficients of a Legendre series, ordered from lowest degree to highest, to an array of the coefficients of the equivalent polynomial (relative to the “standard” basis) ordered from lowest to highest degree. Parameters
carray_like
1-D... | |
doc_14728 | sklearn.datasets.load_svmlight_file(f, *, n_features=None, dtype=<class 'numpy.float64'>, multilabel=False, zero_based='auto', query_id=False, offset=0, length=-1) [source]
Load datasets in the svmlight / libsvm format into sparse CSR matrix This format is a text-based format, with one sample per line. It does not st... | |
doc_14729 | A list or tuple of tags, e.g. [Tags.staticfiles, Tags.models]. System checks registered in the chosen tags will be checked for errors prior to executing the command. The value '__all__' can be used to specify that all system checks should be performed. Default value is '__all__'. Changed in Django 3.2: In older versio... | |
doc_14730 | MT19937 PCG64 PCG64DXSM Philox SFC64 RandomState
32-bit Unsigned Ints 3.3 1.9 2.0 3.3 1.8 3.1
64-bit Unsigned Ints 5.6 3.2 2.9 4.9 2.5 5.5
Uniforms 5.9 3.1 2.9 5.0 2.6 6.0
Normals 13.9 10.8 10.5 12.0 8.3 56.8
Exponentials 9.1 6.0 5.8 8.1 5.4 63.9
Gammas 37.2 30.8 28.9 34.0 27.5 77.0
Binomials 21.3 17.4 ... | |
doc_14731 | Return all the members of an object in a list of (name, value) pairs sorted by name. If the optional predicate argument—which will be called with the value object of each member—is supplied, only members for which the predicate returns a true value are included. Note getmembers() will only return class attributes defi... | |
doc_14732 | Modify a registered file descriptor. | |
doc_14733 | sklearn.metrics.roc_auc_score(y_true, y_score, *, average='macro', sample_weight=None, max_fpr=None, multi_class='raise', labels=None) [source]
Compute Area Under the Receiver Operating Characteristic Curve (ROC AUC) from prediction scores. Note: this implementation can be used with binary, multiclass and multilabel ... | |
doc_14734 | A tuple containing information about the unexpected exception, as returned by sys.exc_info(). | |
doc_14735 | bytearray.strip([chars])
Return a copy of the sequence with specified leading and trailing bytes removed. The chars argument is a binary sequence specifying the set of byte values to be removed - the name refers to the fact this method is usually used with ASCII characters. If omitted or None, the chars argument defa... | |
doc_14736 |
Copy properties from other to self. | |
doc_14737 |
Check if the Index is a floating type. The Index may consist of only floats, NaNs, or a mix of floats, integers, or NaNs. Returns
bool
Whether or not the Index only consists of only consists of floats, NaNs, or a mix of floats, integers, or NaNs. See also is_boolean
Check if the Index only consists of bool... | |
doc_14738 |
Element-wise minimum of array elements. Compare two arrays and returns a new array containing the element-wise minima. If one of the elements being compared is a NaN, then that element is returned. If both elements are NaNs then the first is returned. The latter distinction is important for complex NaNs, which are de... | |
doc_14739 |
Pads a packed batch of variable length sequences. It is an inverse operation to pack_padded_sequence(). The returned Tensor’s data will be of size T x B x *, where T is the length of the longest sequence and B is the batch size. If batch_first is True, the data will be transposed into B x T x * format. Example >>> fr... | |
doc_14740 | Return the current position into the chunk. | |
doc_14741 | Send password, response includes message count and mailbox size. Note: the mailbox on the server is locked until quit() is called. | |
doc_14742 |
Recompile this GraphModule from its graph attribute. This should be called after editing the contained graph, otherwise the generated code of this GraphModule will be out of date. | |
doc_14743 | unlock()
Three locking mechanisms are used—dot locking and, if available, the flock() and lockf() system calls. | |
doc_14744 | Set the inheritable flag of the socket’s file descriptor or socket’s handle. New in version 3.4. | |
doc_14745 | window.subpad(nlines, ncols, begin_y, begin_x)
Return a sub-window, whose upper-left corner is at (begin_y, begin_x), and whose width/height is ncols/nlines. | |
doc_14746 | See Migration guide for more details. tf.compat.v1.meshgrid
tf.meshgrid(
*args, **kwargs
)
Given N one-dimensional coordinate arrays *args, returns a list outputs of N-D coordinate arrays for evaluating expressions on an N-D grid. Notes: meshgrid supports cartesian ('xy') and matrix ('ij') indexing conventions. ... | |
doc_14747 | Return the binary contents of the pointed-to file as a bytes object: >>> p = Path('my_binary_file')
>>> p.write_bytes(b'Binary file contents')
20
>>> p.read_bytes()
b'Binary file contents'
New in version 3.5. | |
doc_14748 | This function patches the Cache-Control header by adding all keyword arguments to it. The transformation is as follows: All keyword parameter names are turned to lowercase, and underscores are converted to hyphens. If the value of a parameter is True (exactly True, not just a true value), only the parameter name is ad... | |
doc_14749 |
Alias for set_edgecolor. | |
doc_14750 |
Disable mouse buttons for 3D rotation and zooming. | |
doc_14751 |
Bases: matplotlib.backend_tools.ViewsPositionsBase Move back up the view limits stack. default_keymap=['left', 'c', 'backspace', 'MouseButton.BACK']
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
description='Back... | |
doc_14752 | re.IGNORECASE
Perform case-insensitive matching; expressions like [A-Z] will also match lowercase letters. Full Unicode matching (such as Ü matching ü) also works unless the re.ASCII flag is used to disable non-ASCII matches. The current locale does not change the effect of this flag unless the re.LOCALE flag is also... | |
doc_14753 |
An Elman RNN cell with tanh or ReLU non-linearity. A dynamic quantized RNNCell module with floating point tensor as inputs and outputs. Weights are quantized to 8 bits. We adopt the same interface as torch.nn.RNNCell, please see https://pytorch.org/docs/stable/nn.html#torch.nn.RNNCell for documentation. Examples: >>>... | |
doc_14754 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterUpdate
tf.raw_ops.ResourceScatterUpdate(
resource, indices, updates, name=None
)
This operation computes # Scalar indices
ref[indices, ...] = updates[...]
# Vector indices (for each i)
ref[indices[i], ...] = updates[i, ...]
# High rank i... | |
doc_14755 |
Invert the y-axis. See also yaxis_inverted
get_ylim, set_ylim
get_ybound, set_ybound
Examples using matplotlib.axes.Axes.invert_yaxis
Bar Label Demo
Horizontal bar chart
Marker reference | |
doc_14756 | Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0). Note For objects with custom __hash... | |
doc_14757 | Return a new summary information object, by calling MsiGetSummaryInformation(). count is the maximum number of updated values. | |
doc_14758 | The template Context instance that was used to render the template that produced the response content. If the rendered page used multiple templates, then context will be a list of Context objects, in the order in which they were rendered. Regardless of the number of templates used during rendering, you can retrieve con... | |
doc_14759 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_14760 | A reference to the parent Signature object. | |
doc_14761 |
Scalar method identical to the corresponding array attribute. Please see ndarray.take. | |
doc_14762 |
Set the aspect ratio of the bbox mutation. Parameters
aspectfloat | |
doc_14763 | If a model is defined outside of an application in INSTALLED_APPS, it must declare which app it belongs to: app_label = 'myapp'
If you want to represent a model with the format app_label.object_name or app_label.model_name you can use model._meta.label or model._meta.label_lower respectively. | |
doc_14764 |
Classifier using Ridge regression. This classifier first converts the target values into {-1, 1} and then treats the problem as a regression task (multi-output regression in the multiclass case). Read more in the User Guide. Parameters
alphafloat, default=1.0
Regularization strength; must be a positive float. R... | |
doc_14765 | Out-of-place version of torch.Tensor.index_add_(). tensor1 corresponds to self in torch.Tensor.index_add_(). | |
doc_14766 |
Return the url. | |
doc_14767 | Return a string representing the time in ISO 8601 format, one of:
HH:MM:SS.ffffff, if microsecond is not 0
HH:MM:SS, if microsecond is 0
HH:MM:SS.ffffff+HH:MM[:SS[.ffffff]], if utcoffset() does not return None
HH:MM:SS+HH:MM[:SS[.ffffff]], if microsecond is 0 and utcoffset() does not return None
The optional ar... | |
doc_14768 |
Set the pick radius used for containment tests. Parameters
prfloat
Pick radius, in points. | |
doc_14769 | See Migration guide for more details. tf.compat.v1.debugging.assert_scalar
tf.compat.v1.assert_scalar(
tensor, name=None, message=None
)
This function raises ValueError unless it can be certain that the given tensor is a scalar. ValueError is also raised if the shape of tensor is unknown.
Args
tensor A ... | |
doc_14770 | Like gettext(), but consider plural forms. If a translation is found, apply the plural formula to n, and return the resulting message (some languages have more than two plural forms). If no translation is found, return singular if n is 1; return plural otherwise. The Plural formula is taken from the catalog header. It ... | |
doc_14771 | See Migration guide for more details. tf.compat.v1.raw_ops.Cholesky
tf.raw_ops.Cholesky(
input, name=None
)
The input is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. The input has to be symmetric and positive definite. Only the lower-triangular part of the input will be used ... | |
doc_14772 | See Migration guide for more details. tf.compat.v1.raw_ops.RefExit
tf.raw_ops.RefExit(
data, name=None
)
Exit makes its input data available to the parent frame.
Args
data A mutable Tensor. The tensor to be made available to the parent frame.
name A name for the operation (optional).
Retur... | |
doc_14773 | Returns a BaseInlineFormSet class for use in admin add/change views. obj is the parent object being edited or None when adding a new parent. See the example for ModelAdmin.get_formsets_with_inlines. | |
doc_14774 | """
May be applied as a `default=...` value on a serializer field.
Returns the current user.
"""
requires_context = True
def __call__(self, serializer_field):
return serializer_field.context['request'].user
When serializing the instance, default will be used if the object attribute or ... | |
doc_14775 |
Returns the matrix product of the NN 2-D tensors. This product is efficiently computed using the matrix chain order algorithm which selects the order in which incurs the lowest cost in terms of arithmetic operations ([CLRS]). Note that since this is a function to compute the product, NN needs to be greater than or ... | |
doc_14776 |
Return whether c can be interpreted as an RGB(A) color. | |
doc_14777 |
Return the line width in points. | |
doc_14778 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_14779 | tf.experimental.numpy.cumprod(
a, axis=None, dtype=None
)
Unsupported arguments: out. See the NumPy documentation for numpy.cumprod. | |
doc_14780 | Convert samples to 4 bit Intel/DVI ADPCM encoding. ADPCM coding is an adaptive coding scheme, whereby each 4 bit number is the difference between one sample and the next, divided by a (varying) step. The Intel/DVI ADPCM algorithm has been selected for use by the IMA, so it may well become a standard. state is a tuple c... | |
doc_14781 |
Return intensity profile of the selected line. Returns
end_points: (2, 2) array
The positions ((x1, y1), (x2, y2)) of the line ends. profile: list of 1d arrays
Profile of intensity values. Length 1 (grayscale) or 3 (rgb). | |
doc_14782 | In-place version of polygamma() | |
doc_14783 | See Migration guide for more details. tf.compat.v1.raw_ops.MutableHashTableV2
tf.raw_ops.MutableHashTableV2(
key_dtype, value_dtype, container='', shared_name='',
use_node_name_sharing=False, name=None
)
This op creates a mutable hash table, specifying the type of its keys and values. Each value must be a sc... | |
doc_14784 | Creates a temporary file in the most secure manner possible. There are no race conditions in the file’s creation, assuming that the platform properly implements the os.O_EXCL flag for os.open(). The file is readable and writable only by the creating user ID. If the platform uses permission bits to indicate whether a fi... | |
doc_14785 | A concrete implementation of importlib.abc.ExecutionLoader for extension modules. The fullname argument specifies the name of the module the loader is to support. The path argument is the path to the extension module’s file. New in version 3.3.
name
Name of the module the loader supports.
path
Path to the e... | |
doc_14786 | Registers a forward hook on the module. The hook will be called every time after forward() has computed an output. It should have the following signature: hook(module, input, output) -> None or modified output
The input contains only the positional arguments given to the module. Keyword arguments won’t be passed to th... | |
doc_14787 | tf.metrics.RecallAtPrecision Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.RecallAtPrecision
tf.keras.metrics.RecallAtPrecision(
precision, num_thresholds=200, name=None, dtype=None
)
For a given score-label-distribution the required precision might not be achievab... | |
doc_14788 | This constant is meant to be used with the detect_types parameter of the connect() function. Setting it makes the sqlite3 module parse the declared type for each column it returns. It will parse out the first word of the declared type, i. e. for “integer primary key”, it will parse out “integer”, or for “number(10)” it... | |
doc_14789 | A read-only sequence representing the time zone search path – when constructing a ZoneInfo from a key, the key is joined to each entry in the TZPATH, and the first file found is used. TZPATH may contain only absolute paths, never relative paths, regardless of how it is configured. The object that zoneinfo.TZPATH points... | |
doc_14790 |
Bases: object Canvas for displaying images.
__init__(figure, **kwargs) [source]
Initialize self. See help(type(self)) for accurate signature.
resizeEvent(event) [source] | |
doc_14791 |
Differentiate a Legendre series. Returns the Legendre series coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl (the scaling factor is for use in a linear change of variable). The argument c is an array of coefficients from low to high degree along each axis, e.g., [1,... | |
doc_14792 | Call func(*args), while tracing is enabled. The tracing state is saved, and restored afterwards. This is intended to be called from a debugger from a checkpoint, to recursively debug some other code. | |
doc_14793 |
Return the sizes ('areas') of the elements in the collection. Returns
array
The 'area' of each element. | |
doc_14794 | Return the lowercased value (without parameters) of the message’s Content-Disposition header if it has one, or None. The possible values for this method are inline, attachment or None if the message follows RFC 2183. New in version 3.5. | |
doc_14795 | The arguments for a function.
posonlyargs, args and kwonlyargs are lists of arg nodes.
vararg and kwarg are single arg nodes, referring to the *args, **kwargs parameters.
kw_defaults is a list of default values for keyword-only arguments. If one is None, the corresponding argument is required.
defaults is a list o... | |
doc_14796 | A bool indicating whether the memory is Fortran contiguous. New in version 3.3. | |
doc_14797 |
Bases: matplotlib.patches.PathPatch A path patch describing a stepwise constant function. By default the path is not closed and starts and stops at baseline value. Parameters
valuesarray-like
The step heights.
edgesarray-like
The edge positions, with len(edges) == len(vals) + 1, between which the curve take... | |
doc_14798 |
Update the y-bounds of the Bbox based on the passed in data. After updating, the bounds will have positive height, and y0 will be the minimal value. Parameters
yndarray
Array of y-values.
ignorebool, optional
When True, ignore the existing bounds of the Bbox. When False, include the existing bounds of the ... | |
doc_14799 | class sklearn.model_selection.PredefinedSplit(test_fold) [source]
Predefined split cross-validator Provides train/test indices to split data into train/test sets using a predefined scheme specified by the user with the test_fold parameter. Read more in the User Guide. New in version 0.16. Parameters
test_foldar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.