_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_10400
Returns a tuple of fields associated with a model. get_fields() accepts two parameters that can be used to control which fields are returned: include_parents True by default. Recursively includes fields defined on parent classes. If set to False, get_fields() will only search for fields declared directly on the cur...
doc_10401
Return the name of the Task. If no name has been explicitly assigned to the Task, the default asyncio Task implementation generates a default name during instantiation. New in version 3.8.
doc_10402
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
doc_10403
In-place version of elu().
doc_10404
Tuple containing two dictionaries, mapping MIME types to a list of filename extensions: the first dictionary is for the non-standards types and the second one is for the standard types. They are initialized by common_types and types_map.
doc_10405
The file may only be appended to.
doc_10406
load new image from a file (or file-like object) load(filename) -> Surface load(fileobj, namehint="") -> Surface Load an image from a file source. You can pass either a filename or a Python file-like object. Pygame will automatically determine the image type (e.g., GIF or bitmap) and create a new Surface object from ...
doc_10407
Return a Path for a unit regular star with the given numVertices and radius of 1.0, centered at (0, 0).
doc_10408
Typed version of collections.namedtuple(). Usage: class Employee(NamedTuple): name: str id: int This is equivalent to: Employee = collections.namedtuple('Employee', ['name', 'id']) To give a field a default value, you can assign to it in the class body: class Employee(NamedTuple): name: str id: int = ...
doc_10409
See Migration guide for more details. tf.compat.v1.guarantee_const tf.guarantee_const( input, name=None ) The runtime is then free to make optimizations based on this. Only accepts value typed tensors as inputs and rejects resource variable handles as input. Returns the input tensor without modification. Ar...
doc_10410
Whether the OpenSSL library has built-in support for the Application-Layer Protocol Negotiation TLS extension as described in RFC 7301. New in version 3.5.
doc_10411
Remove a callback based on its observer id. See also add_callback
doc_10412
tf.nn.top_k Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.top_k, tf.compat.v1.nn.top_k tf.math.top_k( input, k=1, sorted=True, name=None ) If the input is a vector (rank=1), finds the k largest entries in the vector and outputs their values and indices as vectors. Thus valu...
doc_10413
Set the values for max_memuse and real_max_memuse for big memory tests.
doc_10414
Compute variance of groups, excluding missing values. Parameters ddof:int, default 1 Degrees of freedom. Returns DataFrame or Series Variance of values within each group.
doc_10415
Return the visibility.
doc_10416
Applies element-wise the function PReLU(x)=max⁡(0,x)+weight∗min⁡(0,x)\text{PReLU}(x) = \max(0,x) + \text{weight} * \min(0,x) where weight is a learnable parameter. See PReLU for more details.
doc_10417
Matrix product of two tensors. The behavior depends on the dimensionality of the tensors as follows: If both tensors are 1-dimensional, the dot product (scalar) is returned. If both arguments are 2-dimensional, the matrix-matrix product is returned. If the first argument is 1-dimensional and the second argument is 2-d...
doc_10418
Approximates feature map of the “skewed chi-squared” kernel by Monte Carlo approximation of its Fourier transform. Read more in the User Guide. Parameters skewednessfloat, default=1.0 “skewedness” parameter of the kernel. Needs to be cross-validated. n_componentsint, default=100 number of Monte Carlo sample...
doc_10419
Uninitialize the joystick module. quit() -> None Uninitialize the joystick module. After you call this any existing joystick objects will no longer work. It is safe to call this function more than once.
doc_10420
Convert a path to an open file handle or pass-through a file-like object. Consider using open_file_cm instead, as it allows one to properly close newly created file objects more easily. Parameters fnamestr or path-like or file-like If str or os.PathLike, the file is opened using the flags specified by flag and ...
doc_10421
tf.compat.v1.case( pred_fn_pairs, default=None, exclusive=False, strict=False, name='case' ) See also tf.switch_case. The pred_fn_pairs parameter is a dict or list of pairs of size N. Each pair contains a boolean scalar tensor and a python callable that creates the tensors to be returned if the boolean evaluat...
doc_10422
Return day of the week. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.day_of_week 5
doc_10423
Cycle spinning (repeatedly apply func to shifted versions of x). Parameters xarray-like Data for input to func. funcfunction A function to apply to circularly shifted versions of x. Should take x as its first argument. Any additional arguments can be supplied via func_kw. max_shiftsint or tuple If an in...
doc_10424
tf.random.poisson( shape, lam, dtype=tf.dtypes.float32, seed=None, name=None ) lam is the rate parameter describing the distribution(s). Example: samples = tf.random.poisson([10], [0.5, 1.5]) # samples has shape [10, 2], where each slice [:, 0] and [:, 1] represents # the samples drawn from each distribution samp...
doc_10425
Highlight missing values with a style. Parameters null_color:str, default ‘red’ subset:label, array-like, IndexSlice, optional A valid 2d input to DataFrame.loc[<subset>], or, in the case of a 1d input or single key, to DataFrame.loc[:, <subset>] where the columns are prioritised, to limit data to before appl...
doc_10426
See Migration guide for more details. tf.compat.v1.app.flags.FlagHolder tf.compat.v1.flags.FlagHolder( flag_values, flag, ensure_non_none_value=False ) This facilitates a cleaner api around global state. Instead of flags.DEFINE_integer('foo', ...) flags.DEFINE_integer('bar', ...) ... def method(): # prints par...
doc_10427
Read size bytes from the audio input and return them as a Python string. Unlike most Unix device drivers, OSS audio devices in blocking mode (the default) will block read() until the entire requested amount of data is available.
doc_10428
Return whether the patch is filled.
doc_10429
Error occurred during establishment of a connection with the server.
doc_10430
tf.nn.in_top_k tf.math.in_top_k( targets, predictions, k, name=None ) This outputs a batch_size bool array, an entry out[i] is true if the prediction for the target class is finite (not inf, -inf, or nan) and among the top k predictions among all predictions for example i. Note that the behavior of InTopK differ...
doc_10431
Set the horizontal alignment to one of Parameters align{'center', 'right', 'left'}
doc_10432
Adjust the padding between and around subplots. To exclude an artist on the Axes from the bounding box calculation that determines the subplot parameters (i.e. legend, or annotation), set a.set_in_layout(False) for that artist. Parameters padfloat, default: 1.08 Padding between the figure edge and the edges of ...
doc_10433
A read only MultiDict that you can pass multiple MultiDict instances as sequence and it will combine the return values of all wrapped dicts: >>> from werkzeug.datastructures import CombinedMultiDict, MultiDict >>> post = MultiDict([('foo', 'bar')]) >>> get = MultiDict([('blub', 'blah')]) >>> combined = CombinedMultiDic...
doc_10434
Alias for set_antialiased.
doc_10435
Return the values as a NumPy array. Users should not call this directly. Rather, it is invoked by numpy.array() and numpy.asarray(). Parameters dtype:str or numpy.dtype, optional The dtype to use for the resulting NumPy array. By default, the dtype is inferred from the data. Returns numpy.ndarray The valu...
doc_10436
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct...
doc_10437
Bases: matplotlib.text.Text Unlike the ordinary text, the get_rotation returns an updated angle in the pixel coordinate assuming that the input rotation is an angle in data coordinate (or whatever transform set). Create a Text instance at x, y with string text. Valid keyword arguments are: Property Description ...
doc_10438
Set save_as to enable a “save as new” feature on admin change forms. Normally, objects have three save options: “Save”, “Save and continue editing”, and “Save and add another”. If save_as is True, “Save and add another” will be replaced by a “Save as new” button that creates a new object (with a new ID) rather than upd...
doc_10439
Return the size of the struct (and hence of the bytes object produced by pack(format, ...)) corresponding to the format string format.
doc_10440
socket.SOL_ALG ALG_* Constants for Linux Kernel cryptography. Availability: Linux >= 2.6.38. New in version 3.6.
doc_10441
Sets the threshold for this handler to level. Logging messages which are less severe than level will be ignored. When a handler is created, the level is set to NOTSET (which causes all messages to be processed). See Logging Levels for a list of levels. Changed in version 3.2: The level parameter now accepts a string r...
doc_10442
Return a new Struct object which writes and reads binary data according to the format string format. Creating a Struct object once and calling its methods is more efficient than calling the struct functions with the same format since the format string only needs to be compiled once. Note The compiled versions of the m...
doc_10443
Either an opaque sequence of bytes, or a structure. >>> np.void(b'abcd') void(b'\x61\x62\x63\x64') Structured void scalars can only be constructed via extraction from Structured arrays: >>> arr = np.array((1, 2), dtype=[('x', np.int8), ('y', np.int8)]) >>> arr[()] (1, 2) # looks like a tuple, but is `np.void` Cha...
doc_10444
Draw samples from a Hypergeometric distribution. Samples are drawn from a hypergeometric distribution with specified parameters, ngood (ways to make a good selection), nbad (ways to make a bad selection), and nsample (number of items sampled, which is less than or equal to the sum ngood + nbad). Parameters ngoodi...
doc_10445
class sklearn.feature_extraction.text.TfidfTransformer(*, norm='l2', use_idf=True, smooth_idf=True, sublinear_tf=False) [source] Transform a count matrix to a normalized tf or tf-idf representation Tf means term-frequency while tf-idf means term-frequency times inverse document-frequency. This is a common term weight...
doc_10446
Returns the inverse cumulative density/mass function evaluated at value. Parameters value (Tensor) –
doc_10447
Return the font name as a string. See also font_manager.FontProperties.get_name
doc_10448
Bases: networkx.classes.graph.Graph The Region Adjacency Graph (RAG) of an image, subclasses networx.Graph Parameters label_imagearray of int An initial segmentation, with each region labeled as a different integer. Every unique value in label_image will correspond to a node in the graph. connectivityint in {...
doc_10449
Make a copy of this object’s indices and data. When deep=True (default), a new object will be created with a copy of the calling object’s data and indices. Modifications to the data or indices of the copy will not be reflected in the original object (see notes below). When deep=False, a new object will be created wit...
doc_10450
Return the negation of the argument. This operation is unaffected by the context and is quiet: no flags are changed and no rounding is performed.
doc_10451
Start debugging from frame. If frame is not specified, debugging starts from caller’s frame.
doc_10452
Read a table of fixed-width formatted lines into DataFrame. Also supports optionally iterating or breaking of the file into chunks. Additional help can be found in the online docs for IO Tools. Parameters filepath_or_buffer:str, path object, or file-like object String, path object (implementing os.PathLike[str]...
doc_10453
Computes the element-wise logical AND of the given input tensors. Zeros are treated as False and nonzeros are treated as True. Parameters input (Tensor) – the input tensor. other (Tensor) – the tensor to compute AND with Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> torch.logical_...
doc_10454
Integrate. Return a series instance that is the definite integral of the current series. Parameters mnon-negative int The number of integrations to perform. karray_like Integration constants. The first constant is applied to the first integration, the second to the second, and so on. The list of values must...
doc_10455
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters **paramsdict Estimator parameters. Returns...
doc_10456
Normalizes the email by calling BaseUserManager.normalize_email(). If you override this method, be sure to call super() to retain the normalization.
doc_10457
See Migration guide for more details. tf.compat.v1.raw_ops.UnsortedSegmentMin tf.raw_ops.UnsortedSegmentMin( data, segment_ids, num_segments, name=None ) Read the section on segmentation for an explanation of segments. This operator is similar to the unsorted segment sum operator found (here). Instead of computi...
doc_10458
A generic version of collections.abc.Collection New in version 3.6.0. Deprecated since version 3.9: collections.abc.Collection now supports []. See PEP 585 and Generic Alias Type.
doc_10459
If dwFlags specifies STARTF_USESTDHANDLES, this attribute is the standard input handle for the process. If STARTF_USESTDHANDLES is not specified, the default for standard input is the keyboard buffer.
doc_10460
display an animated 3D cube using OpenGL glcube.main() -> None Using PyOpenGL and pygame, this creates a spinning 3D multicolored cube.
doc_10461
tf.autodiff.GradientTape Compat aliases for migration See Migration guide for more details. tf.compat.v1.GradientTape tf.GradientTape( persistent=False, watch_accessed_variables=True ) Operations are recorded if they are executed within this context manager and at least one of their inputs is being "watched". Tr...
doc_10462
Exception raised when a string passed to one of the functions here is not a valid regular expression (for example, it might contain unmatched parentheses) or when some other error occurs during compilation or matching. It is never an error if a string contains no match for a pattern. The error instance has the followin...
doc_10463
tf.compat.v1.gfile.Remove( filename ) Args filename string, a filename Raises errors.OpError Propagates any errors reported by the FileSystem API. E.g., NotFoundError if the file does not exist.
doc_10464
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_10465
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ...
doc_10466
Indicate whether the date is the last day of the year. Returns Series or DatetimeIndex The same type as the original data with boolean values. Series will have the same name and index. DatetimeIndex will have the same name. See also is_year_start Similar property indicating the start of the year. Exampl...
doc_10467
Optional (blank=True). 150 characters or fewer.
doc_10468
Learn the idf vector (global term weights). Parameters Xsparse matrix of shape n_samples, n_features) A matrix of term/token counts.
doc_10469
Add a comment to the output stream. Parameters commentstr Comment text.
doc_10470
Set the artist's visibility. Parameters bbool
doc_10471
Pop an image from the shared image stack. Returns imgndarray Image popped from the stack.
doc_10472
This function is a small but complete WSGI application that returns a text page containing the message “Hello world!” and a list of the key/value pairs provided in the environ parameter. It’s useful for verifying that a WSGI server (such as wsgiref.simple_server) is able to run a simple WSGI application correctly.
doc_10473
See Migration guide for more details. tf.compat.v1.raw_ops.ControlTrigger tf.raw_ops.ControlTrigger( name=None ) Only useful as a placeholder for control edges. Args name A name for the operation (optional). Returns The created Operation.
doc_10474
Return the default content type. Most messages have a default content type of text/plain, except for messages that are subparts of multipart/digest containers. Such subparts have a default content type of message/rfc822.
doc_10475
mmap.MADV_RANDOM mmap.MADV_SEQUENTIAL mmap.MADV_WILLNEED mmap.MADV_DONTNEED mmap.MADV_REMOVE mmap.MADV_DONTFORK mmap.MADV_DOFORK mmap.MADV_HWPOISON mmap.MADV_MERGEABLE mmap.MADV_UNMERGEABLE mmap.MADV_SOFT_OFFLINE mmap.MADV_HUGEPAGE mmap.MADV_NOHUGEPAGE mmap.MADV_DONTDUMP mmap.MADV_DODUMP m...
doc_10476
Return the cumulative product of elements along a given axis. Parameters aarray_like Input array. axisint, optional Axis along which the cumulative product is computed. By default the input is flattened. dtypedtype, optional Type of the returned array, as well as of the accumulator in which the elements...
doc_10477
Check if a header is an entity header. Changelog New in version 0.5. Parameters header (str) – the header to test. Returns True if it’s an entity header, False otherwise. Return type bool
doc_10478
Returns the indices that would sort this array. Refer to numpy.argsort for full documentation. See also numpy.argsort equivalent function
doc_10479
torch.utils.model_zoo.load_url(url, model_dir=None, map_location=None, progress=True, check_hash=False, file_name=None) Loads the Torch serialized object at the given URL. If downloaded file is a zip file, it will be automatically decompressed. If the object is already present in model_dir, it’s deserialized and retu...
doc_10480
Read and return one line from the stream. If size is specified, at most size bytes will be read. The line terminator is always b'\n' for binary files; for text files, the newline argument to open() can be used to select the line terminator(s) recognized.
doc_10481
Alias for get_linestyle.
doc_10482
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_10483
Read-only name identifying the axis.
doc_10484
tf.sparse.add( a, b, threshold=0 ) If one SparseTensor and one Tensor are passed in, returns a Tensor. If both arguments are SparseTensors, this returns a SparseTensor. The order of arguments does not matter. Use vanilla tf.add() for adding two dense Tensors. The shapes of the two operands must match: broadcasting...
doc_10485
Set the mutation scale. Parameters scalefloat
doc_10486
Return a list of the child Artists.
doc_10487
Return a copy of the Bbox, shrunk so that it is as large as it can be while having the desired aspect ratio, box_aspect. If the box coordinates are relative (i.e. fractions of a larger box such as a figure) then the physical aspect ratio of that figure is specified with fig_aspect, so that box_aspect can also be give...
doc_10488
assertNotIn(member, container, msg=None) Test that member is (or is not) in container. New in version 3.1.
doc_10489
Close a socket file descriptor. This is like os.close(), but for sockets. On some platforms (most noticeable Windows) os.close() does not work for socket file descriptors. New in version 3.7.
doc_10490
Raised when an error is detected that doesn’t fall in any of the other categories. The associated value is a string indicating what precisely went wrong.
doc_10491
Cumulative min for each group. Returns Series or DataFrame See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.
doc_10492
Set padding of Y data limits prior to autoscaling. m times the data interval will be added to each end of that interval before it is used in autoscaling. For example, if your data is in the range [0, 2], a factor of m = 0.1 will result in a range [-0.2, 2.2]. Negative values -0.5 < m < 0 will result in clipping of th...
doc_10493
A Transform is a generic class to implement field transformations. A prominent example is __year that transforms a DateField into a IntegerField. The notation to use a Transform in a lookup expression is <expression>__<transformation> (e.g. date__year). This class follows the Query Expression API, which implies that yo...
doc_10494
Return the visibility.
doc_10495
Round to nearest integer towards zero. Round an array of floats element-wise to nearest integer towards zero. The rounded values are returned as floats. Parameters xarray_like An array of floats to be rounded outndarray, optional A location into which the result is stored. If provided, it must have a shape ...
doc_10496
demonstrate the various surface.fill method blend options blend_fill.main() -> None A interactive demo that lets one choose which BLEND_xxx option to apply to a surface.
doc_10497
Return Floating division of series and other, element-wise (binary operator truediv). Equivalent to series / other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existing...
doc_10498
'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', ] } You can also set the renderers used for an individual view, or viewset, using the APIView class-based views. from django.contrib.auth.models import User from rest_framewor...
doc_10499
Incremental principal components analysis (IPCA). Linear dimensionality reduction using Singular Value Decomposition of the data, keeping only the most significant singular vectors to project the data to a lower dimensional space. The input data is centered but not scaled for each feature before applying the SVD. Dep...