_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_23000
rotates a vector around the x-axis by the angle in radians. rotate_x_rad(angle) -> Vector3 Returns a vector which has the same length as self but is rotated counterclockwise around the x-axis by the given angle in radians. New in pygame 2.0.0.
doc_23001
Subclass of ValueError raised by TopologicalSorter.prepare() if cycles exist in the working graph. If multiple cycles exist, only one undefined choice among them will be reported and included in the exception. The detected cycle can be accessed via the second element in the args attribute of the exception instance and ...
doc_23002
Similar to handle_starttag(), but called when the parser encounters an XHTML-style empty tag (<img ... />). This method may be overridden by subclasses which require this particular lexical information; the default implementation simply calls handle_starttag() and handle_endtag().
doc_23003
Return list of gridline coordinates in data coordinates. which : "major" or "minor" axis : "both", "x" or "y"
doc_23004
Return digest of msg for given secret key and digest. The function is equivalent to HMAC(key, msg, digest).digest(), but uses an optimized C or inline implementation, which is faster for messages that fit into memory. The parameters key, msg, and digest have the same meaning as in new(). CPython implementation detail, ...
doc_23005
This method prints a usage message including the message to the standard error and terminates the program with a status code of 2.
doc_23006
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_23007
Returns a BytesURL tuple that holds a URI. This will encode all the information in the URL properly to ASCII using the rules a web browser would follow. It’s usually more interesting to directly call iri_to_uri() which will return a string. Return type werkzeug.urls.BaseURL
doc_23008
Call self as a function.
doc_23009
Yield a tuple of (fieldname, value) for each field in node._fields that is present on node.
doc_23010
scales the vector to a given length. scale_to_length(float) -> None Scales the vector so that it has the given length. The direction of the vector is not changed. You can also scale to length 0. If the vector is the zero vector (i.e. has length 0 thus no direction) a ValueError is raised.
doc_23011
See Migration guide for more details. tf.compat.v1.raw_ops.CTCGreedyDecoder tf.raw_ops.CTCGreedyDecoder( inputs, sequence_length, merge_repeated=False, name=None ) A note about the attribute merge_repeated: if enabled, when consecutive logits' maximum indices are the same, only the first of these is emitted. Lab...
doc_23012
Set the path effects. Parameters path_effectsAbstractPathEffect
doc_23013
Exception raised when a reply is received from the server that does not fit the response specifications of the File Transfer Protocol, i.e. begin with a digit in the range 1–5.
doc_23014
Set defined CSS-properties to each <td> HTML element within the given subset. Parameters 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 befo...
doc_23015
Return a process-safe wrapper object for a ctypes object which uses lock to synchronize access. If lock is None (the default) then a multiprocessing.RLock object is created automatically. A synchronized wrapper will have two methods in addition to those of the object it wraps: get_obj() returns the wrapped object and g...
doc_23016
The name of the database tablespace to use for this model. The default is the project’s DEFAULT_TABLESPACE setting, if set. If the backend doesn’t support tablespaces, this option is ignored.
doc_23017
Instantiate an instance of form_class using get_form_kwargs(). If form_class isn’t provided get_form_class() will be used.
doc_23018
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_23019
Finish any processing for writing the movie.
doc_23020
High priority read/write. Allows block-based filesystems to use polling of the device, which provides lower latency, but may use additional resources. Currently, on Linux, this feature is usable only on a file descriptor opened using the O_DIRECT flag. Availability: Linux 4.6 and newer. New in version 3.7.
doc_23021
Describes how to dynamically quantize a layer or a part of the network by providing settings (observer classes) for weights. It’s like QConfig, but for dynamic quantization. Note that QConfigDynamic needs to contain observer classes (like MinMaxObserver) or a callable that returns instances on invocation, not the con...
doc_23022
writes a list of midi data to the Output write(data) -> None Writes series of MIDI information in the form of a list. Parameters: data (list) -- data to write, the expected format is [[[status, data1=0, data2=0, ...], timestamp], ...] with the data# fields being optional Raises: IndexError -- if more than 10...
doc_23023
The part of the tagName preceding the colon if there is one, else the empty string. The value is a string, or None.
doc_23024
Creates a quantized module from a float module or qparams_dict. Parameters mod (Module) – a float module, either produced by torch.quantization utilities or provided by the user
doc_23025
tf.compat.v1.train.maybe_batch_join( tensors_list, keep_input, batch_size, capacity=32, enqueue_many=False, shapes=None, dynamic_pad=False, allow_smaller_final_batch=False, shared_name=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating:...
doc_23026
Returns a new tensor with the logarithm to the base 10 of the elements of input. yi=log⁡10(xi)y_{i} = \log_{10} (x_{i}) Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.rand(5) >>> a tensor([ 0.5224, 0.9354, 0.7257, 0.1301, 0...
doc_23027
Return a list of all Thread objects currently alive. The list includes daemonic threads, dummy thread objects created by current_thread(), and the main thread. It excludes terminated threads and threads that have not yet been started.
doc_23028
Return the global mapping of names to named colors.
doc_23029
Create an empty file with filename. If it already exists, truncate it.
doc_23030
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_23031
Currently not implemented for 3D axes, and returns None.
doc_23032
Packs the elements of a binary-valued array into bits in a uint8 array. The result is padded to full bytes by inserting zero bits at the end. Parameters aarray_like An array of integers or booleans whose elements should be packed to bits. axisint, optional The dimension over which bit-packing is done. None ...
doc_23033
Applies Batch Normalization over a 5D input (a mini-batch of 3D inputs with additional channel dimension) as described in the paper Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift . y=x−E[x]Var[x]+ϵ∗γ+βy = \frac{x - \mathrm{E}[x]}{ \sqrt{\mathrm{Var}[x] + \epsilon}} * \ga...
doc_23034
This read-only variable is true when the ctypes data instance has allocated the memory block itself, false otherwise.
doc_23035
See Migration guide for more details. tf.compat.v1.tpu.experimental.embedding.TableConfig tf.tpu.experimental.embedding.TableConfig( vocabulary_size: int, dim: int, initializer: Optional[Callable[[Any], None]], optimizer: Optional[_Optimizer] = None, combiner: Text = 'mean', name: Optional[Tex...
doc_23036
Return a dictionary mapping key to value such that match(key, mapname)==value. Note that both keys and values of the dictionary are arbitrary arrays of bytes. Note that mapname is first checked if it is an alias to another name. The domain argument allows overriding the NIS domain used for the lookup. If unspecified, l...
doc_23037
Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ImageViewer. For example: viewer += Plugin(...) Also note that attach automatically calls the filter function so that the image matches the filtered value specified by attached widgets.
doc_23038
Bases: matplotlib.text.Text A base class for AxisLabel and TickLabels. The position and angle of the text are calculated by to offset_ref_angle, text_ref_angle, and offset_radius attributes. Create a Text instance at x, y with string text. Valid keyword arguments are: Property Description agg_filter a filter fu...
doc_23039
See Migration guide for more details. tf.compat.v1.keras.utils.GeneratorEnqueuer tf.keras.utils.GeneratorEnqueuer( sequence, use_multiprocessing=False, random_seed=None ) The provided generator can be finite in which case the class will throw a StopIteration exception. Used in fit_generator, evaluate_generator, ...
doc_23040
Similar to smart_bytes, except that lazy instances are resolved to bytestrings, rather than kept as lazy objects. If strings_only is True, don’t convert (some) non-string-like objects.
doc_23041
Apply inverse transformation. Parameters coords(N, 2) array Destination coordinates. Returns coords(N, 2) array Source coordinates.
doc_23042
Format the exception. If chain is not True, __cause__ and __context__ will not be formatted. The return value is a generator of strings, each ending in a newline and some containing internal newlines. print_exception() is a wrapper around this method which just prints the lines to a file. The message indicating which e...
doc_23043
display pygame events eventlist.main() -> None Eventlist is a sloppy style of pygame, but is a handy tool for learning about pygame events and input. At the top of the screen are the state of several device values, and a scrolling list of events are displayed on the bottom. This is not quality 'ui' code at all, but y...
doc_23044
Generate Bezier curve coordinates. Parameters r0, c0int Coordinates of the first control point. r1, c1int Coordinates of the middle control point. r2, c2int Coordinates of the last control point. weightdouble Middle control point weight, it describes the line tension. shapetuple, optional Image ...
doc_23045
input_type: 'password' template_name: 'django/forms/widgets/password.html' Renders as: <input type="password" ...> Takes one optional argument: render_value Determines whether the widget will have a value filled in when the form is re-displayed after a validation error (default is False).
doc_23046
Return ExtensionArray without NA values. Returns valid:ExtensionArray
doc_23047
Information about the memory layout of the array. Notes The flags object can be accessed dictionary-like (as in a.flags['WRITEABLE']), or by using lowercased attribute names (as in a.flags.writeable). Short flag names are only supported in dictionary access. Only the WRITEBACKIFCOPY, UPDATEIFCOPY, WRITEABLE, and ALIG...
doc_23048
See Migration guide for more details. tf.compat.v1.keras.datasets.reuters.get_word_index tf.keras.datasets.reuters.get_word_index( path='reuters_word_index.json' ) Arguments path where to cache the data (relative to ~/.keras/dataset). Returns The word index dictionary. Keys are word strings, v...
doc_23049
class Comment: def __init__(self, email, content, created=None): self.email = email self.content = content self.created = created or datetime.now() comment = Comment(email='leila@example.com', content='foo bar') We'll declare a serializer that we can use to serialize and deserialize data ...
doc_23050
tf.compat.v1.nn.safe_embedding_lookup_sparse( embedding_weights, sparse_ids, sparse_weights=None, combiner='mean', default_id=None, name=None, partition_strategy='div', max_norm=None ) The partitioned embedding in embedding_weights must all be the same shape except for the first dimension. The first dimension ...
doc_23051
Set the clip path to a TransformedPath or None.
doc_23052
See torch.asin()
doc_23053
tf.compat.v1.nn.fractional_max_pool( value, pooling_ratio, pseudo_random=False, overlapping=False, deterministic=False, seed=0, seed2=0, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: seed2 and deterministic args are deprecated. Use fraction...
doc_23054
Return the user’s current erase character as a one-byte bytes object. Under Unix operating systems this is a property of the controlling tty of the curses program, and is not set by the curses library itself.
doc_23055
Create a helper proxy to easily launch an rpc_sync using the owner of the RRef as the destination to run functions on the object referenced by this RRef. More specifically, rref.rpc_sync().func_name(*args, **kwargs) is the same as the following: >>> def run(rref, func_name, args, kwargs): >>> return getattr(rref.loca...
doc_23056
Contains all the Artists needed to make a Y tick - the tick line, the label text and the grid line bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in points
doc_23057
Append message to named mailbox.
doc_23058
Format the text display value of cells. Parameters formatter:str, callable, dict or None Object to define how values are displayed. See notes. 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>...
doc_23059
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event.
doc_23060
Return whether the artist is animated.
doc_23061
Like environ_property but for headers.
doc_23062
tf.compat.v1.resource_loader.get_root_dir_with_all_resources() Returns The path to the specified file present in the data attribute of py_test or py_binary. Falls back to returning the same as get_data_files_path if it fails to detect a bazel runfiles directory.
doc_23063
tf.keras.layers.BatchNormalization( axis=-1, momentum=0.99, epsilon=0.001, center=True, scale=True, beta_initializer='zeros', gamma_initializer='ones', moving_mean_initializer='zeros', moving_variance_initializer='ones', beta_regularizer=None, gamma_regularizer=None, beta_constraint=None, gamma_cons...
doc_23064
Returns an iterator over immediate children modules, yielding both the name of the module as well as the module itself. Yields (string, Module) – Tuple containing a name and child module Example: >>> for name, module in model.named_children(): >>> if name in ['conv4', 'conv5']: >>> print(module)
doc_23065
Construct an array from data in a text or binary file. A highly efficient way of reading binary data with a known data-type, as well as parsing simply formatted text files. Data written using the tofile method can be read using this function. Parameters filefile or str or Path Open file object or filename. Cha...
doc_23066
Compute the arithmetic mean along the specified axis, ignoring NaNs. Returns the average of the array elements. The average is taken over the flattened array by default, otherwise over the specified axis. float64 intermediate and return values are used for integer inputs. For all-NaN slices, NaN is returned and a Run...
doc_23067
Returns an array representing a linear polynomial. Parameters off, sclscalars The “y-intercept” and “slope” of the line, respectively. Returns yndarray This module’s representation of the linear polynomial off + scl*x. See also numpy.polynomial.chebyshev.chebline numpy.polynomial.legendre.legline ...
doc_23068
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_23069
Bases: object A TeX Font Metric file. This implementation covers only the bare minimum needed by the Dvi class. Parameters filenamestr or path-like Attributes checksumint Used for verifying against the dvi file. design_sizeint Design size of the font (unknown units) width, height, depthdict Dimens...
doc_23070
Returns the username for the user. Since the User model can be swapped out, you should use this method instead of referencing the username attribute directly.
doc_23071
Return a bytes array of length 4 describing the type of compression used in the audio file. For AIFF files, the returned value is b'NONE'.
doc_23072
Return extra attributes to place on the root (i.e. feed/channel) element. Called from write().
doc_23073
If this property is set to True, the artist will be queried for custom context information when the mouse cursor moves over it. See also get_cursor_data(), ToolCursorPosition and NavigationToolbar2.
doc_23074
Returns the number of non-fixed hyperparameters of the kernel.
doc_23075
Accept a connection. Modeled after the blocking socket.accept() method. The socket must be bound to an address and listening for connections. The return value is a pair (conn, address) where conn is a new socket object usable to send and receive data on the connection, and address is the address bound to the socket on ...
doc_23076
Return a formatted dump of the tree in node. This is mainly useful for debugging purposes. If annotate_fields is true (by default), the returned string will show the names and the values for fields. If annotate_fields is false, the result string will be more compact by omitting unambiguous field names. Attributes such ...
doc_23077
Normalize value data in the [vmin, vmax] interval into the [0.0, 1.0] interval and return it. Parameters value Data to normalize. clipbool If None, defaults to self.clip (which defaults to False). Notes If not already initialized, self.vmin and self.vmax are initialized using self.autoscale_None(value).
doc_23078
See Migration guide for more details. tf.compat.v1.FIFOQueue, tf.compat.v1.queue.FIFOQueue tf.queue.FIFOQueue( capacity, dtypes, shapes=None, names=None, shared_name=None, name='fifo_queue' ) See tf.queue.QueueBase for a description of the methods on this class. Args capacity An integer. The upper b...
doc_23079
Close the write end of the stream after the buffered write data is flushed.
doc_23080
See torch.diagonal()
doc_23081
Override object_to_patch.attr_name with new_value. Also add cleanup procedure to test_instance to restore object_to_patch for attr_name. The attr_name should be a valid attribute for object_to_patch.
doc_23082
Linear map parameters between domains. Return the parameters of the linear map offset + scale*x that maps old to new such that old[i] -> new[i], i = 0, 1. Parameters old, newarray_like Domains. Each domain must (successfully) convert to a 1-d array containing precisely two values. Returns offset, scalesca...
doc_23083
Pads the input tensor using replication of the input boundary. For N-dimensional padding, use torch.nn.functional.pad(). Parameters padding (int, tuple) – the size of the padding. If is int, uses the same padding in all boundaries. If a 4-tuple, uses (padding_left\text{padding\_left} , padding_right\text{padding\_r...
doc_23084
Two arguments are required: value The value of the choice. This value is used to render the value attribute of an HTML <option> element. instance The model instance from the queryset. The instance can be accessed in custom ChoiceWidget.create_option() implementations to adjust the rendered HTML. ModelChoice...
doc_23085
Set how to draw endpoints of lines. Parameters csCapStyle or {'butt', 'projecting', 'round'}
doc_23086
Decorator to mark a function, a class, or a property as deprecated. When deprecating a classmethod, a staticmethod, or a property, the @deprecated decorator should go under @classmethod and @staticmethod (i.e., deprecated should directly decorate the underlying callable), but over @property. When deprecating a class ...
doc_23087
tf.nn.sigmoid, tf.sigmoid Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.sigmoid, tf.compat.v1.nn.sigmoid, tf.compat.v1.sigmoid tf.math.sigmoid( x, name=None ) Formula for calculating $\mathrm{sigmoid}(x) = y = 1 / (1 + \exp(-x))$. For $x \in (-\infty, \infty)$, $\mathrm{sig...
doc_23088
Perform spectral clustering from features, or affinity matrix, and return cluster labels. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features), or array-like of shape (n_samples, n_samples) Training instances to cluster, or similarities / affinities between instances if affinity='precomputed...
doc_23089
tf.experimental.numpy.nanmean( a, axis=None, dtype=None, keepdims=None ) Unsupported arguments: out. See the NumPy documentation for numpy.nanmean.
doc_23090
Raised when a node is inserted in a different document than it currently belongs to, and the implementation does not support migrating the node from one document to the other.
doc_23091
Scalar method identical to the corresponding array attribute. Please see ndarray.prod.
doc_23092
See Migration guide for more details. tf.compat.v1.raw_ops.LookupTableRemoveV2 tf.raw_ops.LookupTableRemoveV2( table_handle, keys, name=None ) The tensor keys must of the same type as the keys of the table. Keys not already in the table are silently ignored. Args table_handle A Tensor of type resource. ...
doc_23093
Add an Artist to the container box.
doc_23094
RGBA to RGB conversion using alpha blending [1]. Parameters rgba(…, 4) array_like The image in RGBA format. Final dimension denotes channels. backgroundarray_like The color of the background to blend the image with (3 floats between 0 to 1 - the RGB value of the background). Returns out(…, 3) ndarray ...
doc_23095
Enter string in the table of “interned” strings and return the interned string – which is string itself or a copy. Interning strings is useful to gain a little performance on dictionary lookup – if the keys in a dictionary are interned, and the lookup key is interned, the key comparisons (after hashing) can be done by ...
doc_23096
Generate a matplotlib plot of Andrews curves, for visualising clusters of multivariate data. Andrews curves have the functional form: f(t) = x_1/sqrt(2) + x_2 sin(t) + x_3 cos(t) + x_4 sin(2t) + x_5 cos(2t) + … Where x coefficients correspond to the values of each dimension and t is linearly spaced between -pi an...
doc_23097
RFC 5322 specifies a very specific format for dates within email headers. The DateHeader parser recognizes that date format, as well as recognizing a number of variant forms that are sometimes found “in the wild”. This header type provides the following additional attributes: datetime If the header value can be rec...
doc_23098
The level of debug output to use. This may be set from 0 (the default, no output) to 3 (the most output). Debugging information is written to sys.stdout.
doc_23099
Compute the variance along the specified axis. Returns the variance of the array elements, a measure of the spread of a distribution. The variance is computed for the flattened array by default, otherwise over the specified axis. Parameters aarray_like Array containing numbers whose variance is desired. If a is...