_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_26100
Group container that holds a single sprite. GroupSingle(sprite=None) -> GroupSingle The GroupSingle container only holds a single Sprite. When a new Sprite is added, the old one is removed. There is a special property, GroupSingle.sprite, that accesses the Sprite that this Group contains. It can be None when the Grou...
doc_26101
Group ID of the user who originally stored this member.
doc_26102
A compatibility alias for tobytes, with exactly the same behavior. Despite its name, it returns bytes not strs. Deprecated since version 1.19.0.
doc_26103
Reset number of calls to 0.
doc_26104
'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_26105
See Migration guide for more details. tf.compat.v1.nn.conv3d_backprop_filter_v2 tf.compat.v1.nn.conv3d_backprop_filter( input, filter_sizes, out_backprop, strides, padding, data_format='NDHWC', dilations=[1, 1, 1, 1, 1], name=None ) Args input A Tensor. Must be one of the following types: half, bflo...
doc_26106
In-place version of copysign()
doc_26107
Fill the array with a scalar value. Parameters valuescalar All elements of a will be assigned this value. Examples >>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([1., 1.])
doc_26108
'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_26109
Update the location of children if necessary and draw them to the given renderer.
doc_26110
Generalized Linear Model with a Gamma distribution. Read more in the User Guide. New in version 0.23. Parameters alphafloat, default=1 Constant that multiplies the penalty term and thus determines the regularization strength. alpha = 0 is equivalent to unpenalized GLMs. In this case, the design matrix X must ...
doc_26111
operator.__imatmul__(a, b) a = imatmul(a, b) is equivalent to a @= b. New in version 3.5.
doc_26112
The year of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="Y") ... ) >>> datetime_series 0 2000-12-31 1 2001-12-31 2 2002-12-31 dtype: datetime64[ns] >>> datetime_series.dt.year 0 2000 1 2001 2 2002 dtype: int64
doc_26113
Checks if peer access between two devices is possible.
doc_26114
Returns the torch.dtype that would result from performing an arithmetic operation on the provided input tensors. See type promotion documentation for more information on the type promotion logic. Parameters tensor1 (Tensor or Number) – an input tensor or number tensor2 (Tensor or Number) – an input tensor or numbe...
doc_26115
Tests if each element of input is infinite (positive or negative infinity) or not. Note Complex values are infinite when their real or imaginary part is infinite. Args: {input} Returns: A boolean tensor that is True where input is infinite and False elsewhere Example: >>> torch.isinf(torch.tensor([1, float('inf'...
doc_26116
Return the exception raised by the call. If the call hasn’t yet completed then this method will wait up to timeout seconds. If the call hasn’t completed in timeout seconds, then a concurrent.futures.TimeoutError will be raised. timeout can be an int or float. If timeout is not specified or None, there is no limit to th...
doc_26117
If the message is a multipart/mixed, create a new message object, pass all of the arguments to its set_content() method, and attach() it to the multipart. If the message is a non-multipart, multipart/related, or multipart/alternative, call make_mixed() and then proceed as above. If content_manager is not specified, use...
doc_26118
Inplace column scaling of a CSR matrix. Scale each feature of the data matrix by multiplying with specific scale provided by the caller assuming a (n_samples, n_features) shape. Parameters Xsparse matrix of shape (n_samples, n_features) Matrix to normalize using the variance of the features. It should be of CSR...
doc_26119
Print or write to a file the source code for a NumPy object. The source code is only returned for objects written in Python. Many functions and classes are defined in C and will therefore not return useful information. Parameters objectnumpy object Input object. This can be any object (function, class, module, ...
doc_26120
Compute the decision function of X. Parameters Xarray-like, shape (n_samples, n_features) The input samples. Returns decisionndarray, shape (n_samples,) or (n_samples, n_trees_per_iteration) The raw predicted values (i.e. the sum of the trees leaves) for each sample. n_trees_per_iteration is equal to th...
doc_26121
An integer representing the set of SSL options enabled on this context. The default value is OP_ALL, but you can specify other options such as OP_NO_SSLv2 by ORing them together. Note With versions of OpenSSL older than 0.9.8m, it is only possible to set options, not to clear them. Attempting to clear an option (by re...
doc_26122
class ast.Sub class ast.Mult class ast.Div class ast.FloorDiv class ast.Mod class ast.Pow class ast.LShift class ast.RShift class ast.BitOr class ast.BitXor class ast.BitAnd class ast.MatMult Binary operator tokens.
doc_26123
In-place version of sinc()
doc_26124
The microseconds of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="us") ... ) >>> datetime_series 0 2000-01-01 00:00:00.000000 1 2000-01-01 00:00:00.000001 2 2000-01-01 00:00:00.000002 dtype: datetime64[ns] >>> datetime_series.dt.microsecond 0 ...
doc_26125
Return cumulative product over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative product. 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_26126
Cast to a NumPy array or ExtensionArray with ‘dtype’. Parameters dtype:str or dtype Typecode or data-type to which the array is cast. copy:bool, default True Whether to copy the data, even if not necessary. If False, a copy is made only if the old dtype does not match the new dtype. Returns array:np.n...
doc_26127
See Migration guide for more details. tf.compat.v1.experimental.async_scope @tf_contextlib.contextmanager tf.experimental.async_scope() Ops/function calls inside the scope can return before finishing the actual execution. When exiting the async scope, a synchronization barrier will be automatically added to ensure t...
doc_26128
Alias for set_edgecolor.
doc_26129
Return whether this axes supports the zoom box button functionality. This axes object does not support interactive zoom box.
doc_26130
Dump the tracebacks of all threads, after a timeout of timeout seconds, or every timeout seconds if repeat is True. If exit is True, call _exit() with status=1 after dumping the tracebacks. (Note _exit() exits the process immediately, which means it doesn’t do any cleanup like flushing file buffers.) If the function is...
doc_26131
Add a centered supylabel to the figure. Parameters tstr The supylabel text. xfloat, default: 0.02 The x location of the text in figure coordinates. yfloat, default: 0.5 The y location of the text in figure coordinates. horizontalalignment, ha{'center', 'left', 'right'}, default: left The horizontal ...
doc_26132
Equivalent to tputs(str, 1, putchar); emit the value of a specified terminfo capability for the current terminal. Note that the output of putp() always goes to standard output.
doc_26133
return 'Hello ' + name In the function greeting, the argument name is expected to be of type str and the return type str. Subtypes are accepted as arguments. Type aliases A type alias is defined by assigning the type to the alias. In this example, Vector and list[float] will be treated as interchangeable synonyms:...
doc_26134
Remove a callback based on its observer id. See also add_callback
doc_26135
acosh_() -> Tensor In-place version of arccosh()
doc_26136
Function that computes the dot product between a vector v and the Jacobian of the given function at the point given by the inputs. Parameters func (function) – a Python function that takes Tensor inputs and returns a tuple of Tensors or a Tensor. inputs (tuple of Tensors or Tensor) – inputs to the function func....
doc_26137
Return a == b. This function uses an approach designed to prevent timing analysis by avoiding content-based short circuiting behaviour, making it appropriate for cryptography. a and b must both be of the same type: either str (ASCII only, as e.g. returned by HMAC.hexdigest()), or a bytes-like object. Note If a and b a...
doc_26138
Binarize each element of X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data to binarize, element by element. scipy.sparse matrices should be in CSR format to avoid an un-necessary copy. copybool Copy the input X or not. Returns X_tr{ndarray, sparse matrix} of shape (n...
doc_26139
Update the current cursor position of all the ancestors of the window to reflect the current cursor position of the window.
doc_26140
Return True if the Tarinfo object is a regular file.
doc_26141
Returns a new instance of the DatagramHandler class intended to communicate with a remote machine whose address is given by host and port. Changed in version 3.4: If port is specified as None, a Unix domain socket is created using the value in host - otherwise, a UDP socket is created. emit() Pickles the record’s...
doc_26142
Change the appearance of ticks, tick labels, and gridlines. Tick properties that are not explicitly set using the keyword arguments remain unchanged unless reset is True. Parameters axis{'x', 'y', 'both'}, default: 'both' The axis to which the parameters are applied. which{'major', 'minor', 'both'}, default: ...
doc_26143
Returns True if other.within(this) returns True.
doc_26144
Compute the one-dimensional inverse discrete Fourier Transform. This function computes the inverse of the one-dimensional n-point discrete Fourier transform computed by fft. In other words, ifft(fft(a)) == a to within numerical accuracy. For a general description of the algorithm and definitions, see numpy.fft. The i...
doc_26145
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_26146
In-place version of rsqrt()
doc_26147
A real list object used to store the contents of the UserList class.
doc_26148
sklearn.metrics.pairwise_distances(X, Y=None, metric='euclidean', *, n_jobs=None, force_all_finite=True, **kwds) [source] Compute the distance matrix from a vector array X and optional Y. This method takes either a vector array or a distance matrix, and returns a distance matrix. If the input is a vector array, the d...
doc_26149
See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixZeros tf.raw_ops.SparseMatrixZeros( dense_shape, type, name=None ) Args dense_shape A Tensor of type int64. The desired matrix shape. type A tf.DType from: tf.float32, tf.float64, tf.complex64, tf.complex128. name A name ...
doc_26150
See Migration guide for more details. tf.compat.v1.raw_ops.AddSparseToTensorsMap tf.raw_ops.AddSparseToTensorsMap( sparse_indices, sparse_values, sparse_shape, container='', shared_name='', name=None ) A SparseTensor is represented by three tensors: sparse_indices, sparse_values, and sparse_shape. This opera...
doc_26151
Performs a matrix multiplication of a sparse COO matrix mat1 and a strided matrix mat2. The result is a (1 + 1)-dimensional hybrid COO matrix. Parameters mat1 (Tensor) – the first sparse matrix to be matrix multiplied mat2 (Tensor) – the second strided matrix to be matrix multiplied Keyword Arguments {out} –
doc_26152
sklearn.utils.validation.check_is_fitted(estimator, attributes=None, *, msg=None, all_or_any=<built-in function all>) [source] Perform is_fitted validation for estimator. Checks if the estimator is fitted by verifying the presence of fitted attributes (ending with a trailing underscore) and otherwise raises a NotFitt...
doc_26153
Raised when construction of a ZoneInfo object fails because the specified key could not be found on the system. This is a subclass of KeyError.
doc_26154
This class deals with parsing and interpreter state (the user’s namespace); it does not deal with input buffering or prompting or input file naming (the filename is always passed in explicitly). The optional locals argument specifies the dictionary in which code will be executed; it defaults to a newly created dictiona...
doc_26155
Generate descriptive statistics. Descriptive statistics include those that summarize the central tendency, dispersion and shape of a dataset’s distribution, excluding NaN values. Analyzes both numeric and object series, as well as DataFrame column sets of mixed data types. The output will vary depending on what is pr...
doc_26156
tf.losses.BinaryCrossentropy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.BinaryCrossentropy tf.keras.losses.BinaryCrossentropy( from_logits=False, label_smoothing=0, reduction=losses_utils.ReductionV2.AUTO, name='binary_crossentropy' ) Use this cross-entropy l...
doc_26157
Set the message’s visible headers to be the same as the headers in message. Parameter visible should be a Message instance, an email.message.Message instance, a string, or a file-like object (which should be open in text mode).
doc_26158
Returns a namedtuple() (nchannels, sampwidth, framerate, nframes, comptype, compname), equivalent to output of the get*() methods.
doc_26159
Perform floor operation on the data to the specified freq. Parameters freq:str or Offset The frequency level to floor the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possible freq values. ambiguous:‘infer’, bool-ndarray, ‘NaT’, default ‘raise...
doc_26160
See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.RandomRotation tf.keras.layers.experimental.preprocessing.RandomRotation( factor, fill_mode='reflect', interpolation='bilinear', seed=None, name=None, fill_value=0.0, **kwargs ) By default, random rotations are only ap...
doc_26161
If flag is False, the effect is the same as calling noqiflush(). If flag is True, or no argument is provided, the queues will be flushed when these control characters are read.
doc_26162
See Migration guide for more details. tf.compat.v1.ragged.constant tf.ragged.constant( pylist, dtype=None, ragged_rank=None, inner_shape=None, name=None, row_splits_dtype=tf.dtypes.int64 ) Example: tf.ragged.constant([[1, 2], [3], [4, 5, 6]]) <tf.RaggedTensor [[1, 2], [3], [4, 5, 6]]> All scalar values in ...
doc_26163
at a shell prompt will display documentation on the sys module, in a style similar to the manual pages shown by the Unix man command. The argument to pydoc can be the name of a function, module, or package, or a dotted reference to a class, method, or function within a module or module in a package. If the argument to...
doc_26164
Wrap the leaf child module in QuantWrapper if it has a valid qconfig Note that this function will modify the children of module inplace and it can return a new module which wraps the input module as well. Parameters module – input module with qconfig attributes for all the leaf modules we want to quantize (that)...
doc_26165
Return a string describing the class of the operand. The returned value is one of the following ten strings. "-Infinity", indicating that the operand is negative infinity. "-Normal", indicating that the operand is a negative normal number. "-Subnormal", indicating that the operand is negative and subnormal. "-Zero...
doc_26166
See Migration guide for more details. tf.compat.v1.data.experimental.service.WorkerConfig tf.data.experimental.service.WorkerConfig( dispatcher_address, worker_address=None, port=0, protocol='grpc', heartbeat_interval_ms=None, dispatcher_timeout_ms=None ) Fields: dispatcher_address: Specifies the address o...
doc_26167
Returns True if the DE-9IM intersection matrix for the two geometries is FF*FF****.
doc_26168
Alias for get_linestyle.
doc_26169
Create a twin of Axes with a shared x-axis but independent y-axis. The y-axis of self will have ticks on the left and the returned axes will have ticks on the right.
doc_26170
Returns an iterator over module parameters, yielding both the name of the parameter as well as the parameter itself. Parameters prefix (str) – prefix to prepend to all parameter names. recurse (bool) – if True, then yields parameters of this module and all submodules. Otherwise, yields only parameters that are dir...
doc_26171
The _state attribute refers to a ModelState object that tracks the lifecycle of the model instance. The ModelState object has two attributes: adding, a flag which is True if the model has not been saved to the database yet, and db, a string referring to the database alias the instance was loaded from or saved to. Newly...
doc_26172
Combines the STANDARD_RIGHTS_WRITE, KEY_SET_VALUE, and KEY_CREATE_SUB_KEY access rights.
doc_26173
This is a required argument. It specifies the form field to be repeated.
doc_26174
Return a datetime corresponding to date_string, parsed according to format. This is equivalent to: datetime(*(time.strptime(date_string, format)[0:6])) ValueError is raised if the date_string and format can’t be parsed by time.strptime() or if it returns a value which isn’t a time tuple. For a complete list of formatt...
doc_26175
Read and return the contents of resource within package as a str. By default, the contents are read as strict UTF-8. package is either a name or a module object which conforms to the Package requirements. resource is the name of the resource to open within package; it may not contain path separators and it may not have...
doc_26176
Get the maximum number of frames stored in the traceback of a trace. The tracemalloc module must be tracing memory allocations to get the limit, otherwise an exception is raised. The limit is set by the start() function.
doc_26177
'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_26178
Turn the x- and y-axis off. This affects the axis lines, ticks, ticklabels, grid and axis labels. Examples using matplotlib.axes.Axes.set_axis_off Marker reference Barcode Blend transparency with color in 2D images Nested pie charts Annotation arrow style reference Precise t...
doc_26179
The maximum number of digits allowed in the number. Note that this number must be greater than or equal to decimal_places.
doc_26180
Save a Figure to this file as a new page. Any other keyword arguments are passed to savefig. Parameters figureFigure or int, default: the active figure The figure, or index of the figure, that is saved to the file.
doc_26181
The NoteBook widget can be used to display many windows in a limited space using a notebook metaphor. The notebook is divided into a stack of pages. At one time only one of these pages can be shown. The user can navigate through these pages by choosing the visual “tabs” at the top of the NoteBook widget.
doc_26182
Error raised when a null freq attribute is used in an operation that needs a non-null frequency, particularly DatetimeIndex.shift, TimedeltaIndex.shift, PeriodIndex.shift.
doc_26183
tf.experimental.numpy.reciprocal( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.reciprocal.
doc_26184
The base of all container artists defined in this module. AnchoredOffsetbox, AnchoredText Anchor and align an arbitrary Artist or a text relative to the parent axes or a specific anchor point. DrawingArea A container with fixed width and height. Children have a fixed position inside the container and may be clip...
doc_26185
This method is not defined in BaseHandler, but subclasses should define it if they want to pre-process requests of the given protocol. This method, if defined, will be called by the parent OpenerDirector. req will be a Request object. The return value should be a Request object.
doc_26186
Return index of first occurrence of minimum over requested axis. NA/null values are excluded. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The axis to use. 0 or ‘index’ for row-wise, 1 or ‘columns’ for column-wise. skipna:bool, default True Exclude NA/null values. If an entire row/column is NA,...
doc_26187
See Migration guide for more details. tf.compat.v1.keras.activations.relu tf.keras.activations.relu( x, alpha=0.0, max_value=None, threshold=0 ) With default values, this returns the standard ReLU activation: max(x, 0), the element-wise maximum of 0 and the input tensor. Modifying default parameters allows you t...
doc_26188
Returns a copy of this object in CPU memory. If this object is already in CPU memory and on the correct device, then no copy is performed and the original object is returned. Parameters memory_format (torch.memory_format, optional) – the desired memory format of returned Tensor. Default: torch.preserve_format.
doc_26189
Set the antialiasing state for rendering. Parameters aabool or list of bools
doc_26190
A 1-D array indicating if each value is missing. Returns na_values:Union[np.ndarray, ExtensionArray] In most cases, this should return a NumPy ndarray. For exceptional cases like SparseArray, where returning an ndarray would be expensive, an ExtensionArray may be returned. Notes If returning an ExtensionArr...
doc_26191
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesCreateEnsemble tf.raw_ops.BoostedTreesCreateEnsemble( tree_ensemble_handle, stamp_token, tree_ensemble_serialized, name=None ) Args tree_ensemble_handle A Tensor of type resource. Handle to the tree ensemble resource to be created. ...
doc_26192
socket.HCI_TIME_STAMP socket.HCI_DATA_DIR For use with BTPROTO_HCI. HCI_FILTER is not available for NetBSD or DragonFlyBSD. HCI_TIME_STAMP and HCI_DATA_DIR are not available for FreeBSD, NetBSD, or DragonFlyBSD.
doc_26193
Set the artist's visibility. Parameters bbool
doc_26194
See Migration guide for more details. tf.compat.v1.raw_ops.AssignVariableOp tf.raw_ops.AssignVariableOp( resource, value, name=None ) Any ReadVariableOp with a control dependency on this op is guaranteed to return this value or a subsequent newer value of the variable. Args resource A Tensor of type res...
doc_26195
See torch.acos()
doc_26196
Provide basic introspection for generic types and special typing forms. For a typing object of the form X[Y, Z, ...] these functions return X and (Y, Z, ...). If X is a generic alias for a builtin or collections class, it gets normalized to the original class. If X is a Union or Literal contained in another generic typ...
doc_26197
Retrieves the value set by set_escdelay(). New in version 3.9.
doc_26198
Return the value of the environment variable TERM, as a bytes object, truncated to 14 characters.
doc_26199
Return the xy data as a Nx2 numpy array.