_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_16700 |
Bases: matplotlib.mathtext.MathtextBackend Render glyphs and rectangles to an FTImage buffer, which is later transferred to the Agg image by the Agg backend. get_hinting_type()[source]
Get the FreeType hinting type to use with this particular backend.
get_results(box, used_characters)[source]
Return a backe... | |
doc_16701 |
Return a mask which is safe to use on X. Parameters
X{array-like, sparse matrix}
Data on which to apply mask.
maskndarray
Mask to be used on X. Returns
mask | |
doc_16702 |
Return whether units are set on any axis. | |
doc_16703 |
Alias for set_linestyle. | |
doc_16704 |
Considering the rows of X (and Y=X) as vectors, compute the distance matrix between each pair of vectors. For efficiency reasons, the euclidean distance between a pair of row vector x and y is computed as: dist(x, y) = sqrt(dot(x, x) - 2 * dot(x, y) + dot(y, y))
This formulation has two advantages over other ways of... | |
doc_16705 |
Set the SubplotSpec. instance associated with the subplot. | |
doc_16706 |
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also
set_picker, get_picker, pickable | |
doc_16707 | This will be used as the root URLconf for the current request, overriding the ROOT_URLCONF setting. See How Django processes a request for details. urlconf can be set to None to revert any changes made by previous middleware and return to using the ROOT_URLCONF. | |
doc_16708 |
Identity method. This is implemented for compatibility with subclass implementations when chaining. Returns
pd.Index
Caller. See also MultiIndex.to_flat_index
Subclass implementation. | |
doc_16709 | See Migration guide for more details. tf.compat.v1.raw_ops.BesselY0
tf.raw_ops.BesselY0(
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_16710 |
Alias for set_facecolor. | |
doc_16711 | The mathematical constant τ, as a float. New in version 3.6. | |
doc_16712 | get the filename of the default font get_default_font() -> string Return the filename of the system font. This is not the full path to the file. This file can usually be found in the same directory as the font module, but it can also be bundled in separate archives. | |
doc_16713 | Update the hmac object with msg. Repeated calls are equivalent to a single call with the concatenation of all the arguments: m.update(a); m.update(b) is equivalent to m.update(a + b). Changed in version 3.4: Parameter msg can be of any type supported by hashlib. | |
doc_16714 | from myapp.serializers import UserSerializer
from rest_framework import generics
from rest_framework.permissions import IsAdminUser
class UserList(generics.ListCreateAPIView):
queryset = User.objects.all()
serializer_class = UserSerializer
permission_classes = [IsAdminUser]
For more complex cases you migh... | |
doc_16715 | Class method to return the float represented by a hexadecimal string s. The string s may have leading and trailing whitespace. | |
doc_16716 |
Convert c to a hex color. Parameters
ccolor or numpy.ma.masked
keep_alpha: bool, default: False
If False, use the #rrggbb format, otherwise use #rrggbbaa. Returns
str
#rrggbb or #rrggbbaa hex color string | |
doc_16717 |
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event. | |
doc_16718 | A RangeWidget comprises a 2-tuple of base_widget. | |
doc_16719 | A boolean indicating whether this transformation should apply to both lhs and rhs. Bilateral transformations will be applied to rhs in the same order as they appear in the lookup expression. By default it is set to False. For example usage, see How to write custom lookups. | |
doc_16720 |
Return the companion matrix of c. The companion matrix for power series cannot be made symmetric by scaling the basis, so this function differs from those for the orthogonal polynomials. Parameters
carray_like
1-D array of polynomial coefficients ordered from low to high degree. Returns
matndarray
Compa... | |
doc_16721 |
Return the index of the leaf that each sample is predicted as. New in version 0.17. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix.
check_inputbool, def... | |
doc_16722 | Compress the data, returning a bytes object containing the compressed data. compresslevel and mtime have the same meaning as in the GzipFile constructor above. New in version 3.2. Changed in version 3.8: Added the mtime parameter for reproducible output. | |
doc_16723 |
Return whether units are set on any axis. | |
doc_16724 | If your site uses Django’s authentication system and you deal with logging in users, you can use the test client’s login() method to simulate the effect of a user logging into the site. After you call this method, the test client will have all the cookies and session data required to pass any login-based tests that may... | |
doc_16725 |
Returns a dtype based off the given description. This is essentially the reverse of dtype_to_descr(). It will remove the valueless padding fields created by, i.e. simple fields like dtype(‘float32’), and then convert the description to its corresponding dtype. Parameters
descrobject
The object retrieved by dtyp... | |
doc_16726 |
Fits the Maximum Likelihood Estimator covariance model according to the given training data and parameters. Parameters
Xarray-like of shape (n_samples, n_features)
Training data, where n_samples is the number of samples and n_features is the number of features.
yIgnored
Not used, present for API consistency... | |
doc_16727 | The string to use for displaying empty values in the admin site’s change list. Defaults to a dash. The value can also be overridden on a per ModelAdmin basis and on a custom field within a ModelAdmin by setting an empty_value_display attribute on the field. See ModelAdmin.empty_value_display for examples. | |
doc_16728 | See Migration guide for more details. tf.compat.v1.nn.avg_pool_v2
tf.nn.avg_pool(
input, ksize, strides, padding, data_format=None, name=None
)
Each entry in output is the mean of the corresponding size ksize window in value.
Args
input Tensor of rank N+2, of shape [batch_size] + input_spatial_shape + [... | |
doc_16729 | tf.experimental.dlpack.from_dlpack(
dlcapsule
)
The returned tensor uses the memory shared by dlpack capsules from other framework. a = tf.experimental.dlpack.from_dlpack(dlcapsule)
# `a` uses the memory shared by dlpack
Args
dlcapsule A PyCapsule named as dltensor
Returns A Tensorflow eager te... | |
doc_16730 | Return the set as real python set type. When calling this, all the items are converted to lowercase and the ordering is lost. Parameters
preserve_casing – if set to True the items in the set returned will have the original case like in the HeaderSet, otherwise they will be lowercase. | |
doc_16731 |
Convert one vector to the parameters Parameters
vec (Tensor) – a single vector represents the parameters of a model.
parameters (Iterable[Tensor]) – an iterator of Tensors that are the parameters of a model. | |
doc_16732 |
Bases: matplotlib.gridspec.GridSpecBase GridSpec whose subplot layout parameters are inherited from the location specified by a given SubplotSpec. Parameters
nrows, ncolsint
Number of rows and number of columns of the grid.
subplot_specSubplotSpec
Spec from which the layout parameters are inherited.
wspac... | |
doc_16733 |
Bases: matplotlib.artist.Artist The OffsetBox is a simple container artist. The child artists are meant to be drawn at a relative position to its parent. Being an artist itself, all parameters are passed on to Artist. propertyaxes
The Axes instance the artist resides in, or None.
contains(mouseevent)[source]
... | |
doc_16734 | The maximum size the value of an extended attribute can be. Currently, this is 64 KiB on Linux. | |
doc_16735 |
See torch.split() | |
doc_16736 | operator.__iconcat__(a, b)
a = iconcat(a, b) is equivalent to a += b for a and b sequences. | |
doc_16737 |
Date ticklabels often overlap, so it is useful to rotate them and right align them. Also, a common use case is a number of subplots with shared x-axis where the x-axis is date data. The ticklabels are often long, and it helps to rotate them on the bottom subplot and turn them off on other subplots, as well as turn of... | |
doc_16738 | When specified, failures that involve multi-line expected and actual outputs are displayed using a unified diff. | |
doc_16739 |
Get the width of the character from the character metric WX field. | |
doc_16740 | tf.experimental.numpy.abs(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.abs. | |
doc_16741 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalRandomDataset
tf.raw_ops.ExperimentalRandomDataset(
seed, seed2, output_types, output_shapes, name=None
)
Args
seed A Tensor of type int64. A scalar seed for the random number generator. If either seed or seed2 is set to be non-zero,... | |
doc_16742 | The label of the field. This is used in label_tag(). | |
doc_16743 |
Traverse the modules and save all observers into dict. This is mainly used for quantization accuracy debug :param mod: the top module we want to save all observers :param prefix: the prefix for the current module :param target_dict: the dictionary used to save all the observers | |
doc_16744 |
Fit estimator to data. Samples a subset of training points, computes kernel on these and computes normalization matrix. Parameters
Xarray-like of shape (n_samples, n_features)
Training data. | |
doc_16745 | class ast.Store
class ast.Del
Variable references can be used to load the value of a variable, to assign a new value to it, or to delete it. Variable references are given a context to distinguish these cases. >>> print(ast.dump(ast.parse('a'), indent=4))
Module(
body=[
Expr(
value=Name(id='a... | |
doc_16746 |
Set the hatching pattern hatch can be one of: / - diagonal hatching
\ - back diagonal
| - vertical
- - horizontal
+ - crossed
x - crossed diagonal
o - small circle
O - large circle
. - dots
* - stars
Letters can be combined, in which case all the specified hatchings are done. If same letter repea... | |
doc_16747 | Move the window so its upper-left corner is at (new_y, new_x). | |
doc_16748 | >>> serializer = AccountSerializer()
>>> print(repr(serializer))
AccountSerializer():
id = IntegerField(label='ID', read_only=True)
name = CharField(allow_blank=True, max_length=100, required=False)
owner = PrimaryKeyRelatedField(queryset=User.objects.all())
API Reference In order to explain the various ty... | |
doc_16749 |
Force update the cache. | |
doc_16750 |
Return a new array of given shape and type, filled with zeros. Parameters
shapeint or tuple of ints
Shape of the new array, e.g., (2, 3) or 2.
dtypedata-type, optional
The desired data-type for the array, e.g., numpy.int8. Default is numpy.float64.
order{‘C’, ‘F’}, optional, default: ‘C’
Whether to stor... | |
doc_16751 |
Set both the edgecolor and the facecolor. Parameters
ccolor or list of rgba tuples
See also
Collection.set_facecolor, Collection.set_edgecolor
For setting the edge or face color individually. | |
doc_16752 | Return a shallow copy of the Morsel object. Changed in version 3.5: return a Morsel object instead of a dict. | |
doc_16753 | Return an Message instance whose headers are the message’s visible headers and whose body is empty. | |
doc_16754 |
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_16755 | Defines the computation performed at every call. Should be overridden by all subclasses. Note Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silent... | |
doc_16756 |
Check that memory is joblib.Memory-like. joblib.Memory-like means that memory can be converted into a joblib.Memory instance (typically a str denoting the location) or has the same interface (has a cache method). Parameters
memoryNone, str or object with the joblib.Memory interface
Returns
memoryobject with... | |
doc_16757 | A context manager that raises ResourceDenied when various issues with the internet connection manifest themselves as exceptions. | |
doc_16758 | Called by the server’s constructor to bind the socket to the desired address. May be overridden. | |
doc_16759 |
Return the addresses of the data and mask areas. Parameters
None
Examples >>> x = np.ma.array([1, 2, 3], mask=[0, 1, 1])
>>> x.ids()
(166670640, 166659832) # may vary
If the array has no mask, the address of nomask is returned. This address is typically not close to the data in memory: >>> x = np.ma.array([1, ... | |
doc_16760 | Returns an iterator over all modules in the network, yielding both the name of the module as well as the module itself. Yields
(string, Module) – Tuple of name and module Note Duplicate modules are returned only once. In the following example, l will be returned only once. Example: >>> l = nn.Linear(2, 2)
>>> net... | |
doc_16761 |
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_16762 | sklearn.utils.Bunch(**kwargs) [source]
Container object exposing keys as attributes. Bunch objects are sometimes used as an output for functions and methods. They extend dictionaries by enabling values to be accessed by key, bunch["value_key"], or by an attribute, bunch.value_key. Examples >>> b = Bunch(a=1, b=2)
>>>... | |
doc_16763 |
Call self as a function. | |
doc_16764 |
Return the subset of this RcParams dictionary whose keys match, using re.search(), the given pattern. Note Changes to the returned dictionary are not propagated to the parent RcParams dictionary. | |
doc_16765 | Styler(data[, precision, table_styles, ...]) Helps style a DataFrame or Series according to the data with HTML and CSS.
Styler.from_custom_template(searchpath[, ...]) Factory function for creating a subclass of Styler. Styler properties
Styler.env
Styler.template_html
Styler.template_html_style
S... | |
doc_16766 |
The precision of the datetime data. | |
doc_16767 | class queue.Queue(maxsize=0)
Constructor for a FIFO queue. maxsize is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If maxsize is less than or equal to zero, the queue size is infi... | |
doc_16768 | Returns True if there’s a next page. | |
doc_16769 |
Write object to a comma-separated values (csv) file. Parameters
path_or_buf:str, path object, file-like object, or None, default None
String, path object (implementing os.PathLike[str]), or file-like object implementing a write() function. If None, the result is returned as a string. If a non-binary file object... | |
doc_16770 | tf.compat.v1.size(
input, name=None, out_type=tf.dtypes.int32
)
Returns a 0-D Tensor representing the number of elements in input of type out_type. Defaults to tf.int32. For example: t = tf.constant([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]])
tf.size(t) # 12
Args
input A Tensor or SparseTensor.
... | |
doc_16771 | Returns an iterator over module buffers, yielding both the name of the buffer as well as the buffer itself. Parameters
prefix (str) – prefix to prepend to all buffer names.
recurse (bool) – if True, then yields buffers of this module and all submodules. Otherwise, yields only buffers that are direct members of thi... | |
doc_16772 |
Compute the decision function of the given observations. Parameters
Xarray-like of shape (n_samples, n_features)
The data matrix. Returns
decisionndarray of shape (n_samples,)
Decision function of the samples. It is equal to the shifted Mahalanobis distances. The threshold for being an outlier is 0, whi... | |
doc_16773 | Is raised when a tar archive is opened, that either cannot be handled by the tarfile module or is somehow invalid. | |
doc_16774 |
Set the current image. This image will be the target of colormap functions like viridis, and other functions such as clim. The current image is an attribute of the current Axes.
Examples using matplotlib.pyplot.sci
Line Collection | |
doc_16775 | See torch.bitwise_and() | |
doc_16776 |
Creates EmbeddingBag instance from given 2-dimensional FloatTensor. Parameters
embeddings (Tensor) – FloatTensor containing weights for the EmbeddingBag. First dimension is being passed to EmbeddingBag as ‘num_embeddings’, second as ‘embedding_dim’.
freeze (boolean, optional) – If True, the tensor does not get u... | |
doc_16777 | stat.FILE_ATTRIBUTE_COMPRESSED
stat.FILE_ATTRIBUTE_DEVICE
stat.FILE_ATTRIBUTE_DIRECTORY
stat.FILE_ATTRIBUTE_ENCRYPTED
stat.FILE_ATTRIBUTE_HIDDEN
stat.FILE_ATTRIBUTE_INTEGRITY_STREAM
stat.FILE_ATTRIBUTE_NORMAL
stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
stat.FILE_ATTRIBUTE_NO_SCRUB_DATA
stat.FILE_ATTRIBUTE... | |
doc_16778 |
Return cumulative maximum over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative maximum. Parameters
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
The index or the name of the axis. 0 is equivalent to None or ‘index’.
skipna:bool, default True
Exclude NA/n... | |
doc_16779 | Similar to the parse() method, except it takes a string object instead of a file-like object. Calling this method on a string is equivalent to wrapping text in a StringIO instance first and calling parse(). Optional headersonly is as with the parse() method. | |
doc_16780 | Profile the cmd via exec() with the specified global and local environment. | |
doc_16781 |
Predict using the linear model. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
Carray, shape (n_samples,)
Returns predicted values. | |
doc_16782 |
Alias for set_linestyle. | |
doc_16783 |
Returns a boolean array which is True where the string element in self ends with suffix, otherwise False. See also char.endswith | |
doc_16784 |
Pad left side of strings in the Series/Index. Equivalent to str.rjust(). Parameters
width:int
Minimum width of resulting string; additional characters will be filled with fillchar.
fillchar:str
Additional character for filling, default is whitespace. Returns
filled:Series/Index of objects. | |
doc_16785 | Return a fragment that is the original fragment with a bias added to each sample. Samples wrap around in case of overflow. | |
doc_16786 | Analyse the bytecode corresponding to a function, generator, asynchronous generator, coroutine, method, string of source code, or a code object (as returned by compile()). This is a convenience wrapper around many of the functions listed below, most notably get_instructions(), as iterating over a Bytecode instance yiel... | |
doc_16787 | Return the product of x and y. | |
doc_16788 |
Returns the element-wise remainder of division. Computes the remainder complementary to the floor_divide function. It is equivalent to the Python modulus operator``x1 % x2`` and has the same sign as the divisor x2. The MATLAB function equivalent to np.remainder is mod. Warning This should not be confused with: Pyth... | |
doc_16789 |
Find the vertical edges of an image using the Prewitt transform. Parameters
image2-D array
Image to process.
mask2-D array, optional
An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. ... | |
doc_16790 | If the given section exists, set the given option to the specified value; otherwise raise NoSectionError. While it is possible to use RawConfigParser (or ConfigParser with raw parameters set to true) for internal storage of non-string values, full functionality (including interpolation and output to files) can only be ... | |
doc_16791 | A list of formats used to attempt to convert a string to a valid datetime.time object. | |
doc_16792 |
Build a layout of Axes based on ASCII art or nested lists. This is a helper function to build complex GridSpec layouts visually. Note This API is provisional and may be revised in the future based on early user feedback. Parameters
mosaiclist of list of {hashable or nested} or str
A visual layout of how you w... | |
doc_16793 | If the stdout argument was PIPE, this attribute is a readable stream object as returned by open(). Reading from the stream provides output from the child process. If the encoding or errors arguments were specified or the universal_newlines argument was True, the stream is a text stream, otherwise it is a byte stream. I... | |
doc_16794 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_16795 | Set ordering to specify how lists of objects should be ordered in the Django admin views. This should be a list or tuple in the same format as a model’s ordering parameter. If this isn’t provided, the Django admin will use the model’s default ordering. If you need to specify a dynamic order (for example depending on us... | |
doc_16796 | See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingProximalAdagradParameters
tf.raw_ops.LoadTPUEmbeddingProximalAdagradParameters(
parameters, accumulators, num_shards, shard_id, table_id=-1,
table_name='', config='', name=None
)
An op that loads optimization parameters into HBM for e... | |
doc_16797 | See Migration guide for more details. tf.compat.v1.raw_ops.DecodeRaw
tf.raw_ops.DecodeRaw(
bytes, out_type, little_endian=True, name=None
)
Args
bytes A Tensor of type string. All the elements must have the same length.
out_type A tf.DType from: tf.half, tf.float32, tf.float64, tf.int32, tf.uint16... | |
doc_16798 |
Connect func as callback function to changes of the slider value. Parameters
funccallable
Function to call when slider is changed. The function must accept a single float as its arguments. Returns
int
Connection id (which can be used to disconnect func). | |
doc_16799 | tkinter.simpledialog.askinteger(title, prompt, **kw)
tkinter.simpledialog.askstring(title, prompt, **kw)
The above three functions provide dialogs that prompt the user to enter a value of the desired type. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.