_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_16900 |
Copy properties from other to self. | |
doc_16901 |
Set the Figure instance the artist belongs to. Parameters
figFigure | |
doc_16902 |
Return the sketch parameters for the artist. Returns
tuple or None
A 3-tuple with the following elements:
scale: The amplitude of the wiggle perpendicular to the source line.
length: The length of the wiggle along the line.
randomness: The scale factor by which the length is shrunken or expanded. Returns Non... | |
doc_16903 | See Migration guide for more details. tf.compat.v1.train.list_variables
tf.train.list_variables(
ckpt_dir_or_file
)
Checkpoint keys are paths in a checkpoint graph. Example usage:
import tensorflow as tf
import os
ckpt_directory = "/tmp/training_checkpoints/ckpt"
ckpt = tf.train.Checkpoint(optimizer=optimizer, ... | |
doc_16904 | If the given section exists, and contains the given option, return True; otherwise return False. If the specified section is None or an empty string, DEFAULT is assumed. | |
doc_16905 | tf.compat.v1.nn.static_bidirectional_rnn(
cell_fw, cell_bw, inputs, initial_state_fw=None, initial_state_bw=None,
dtype=None, sequence_length=None, scope=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Please use keras.layers.Bidirectional(keras.l... | |
doc_16906 |
Load the numpy array of a single sample image Read more in the User Guide. Parameters
image_name{china.jpg, flower.jpg}
The name of the sample image loaded Returns
img3D array
The image as a numpy array: height x width x color Examples >>> from sklearn.datasets import load_sample_image
>>> china = l... | |
doc_16907 | Token value for "^=". | |
doc_16908 |
Bases: object Handle registering, processing, blocking, and disconnecting for a set of signals and callbacks: >>> def oneat(x):
... print('eat', x)
>>> def ondrink(x):
... print('drink', x)
>>> from matplotlib.cbook import CallbackRegistry
>>> callbacks = CallbackRegistry()
>>> id_eat = callbacks.connect('eat... | |
doc_16909 |
Construct DataFrame from group with provided name. Parameters
name:object
The name of the group to get as a DataFrame.
obj:DataFrame, default None
The DataFrame to take the DataFrame out of. If it is None, the object groupby was called on will be used. Returns
group:same type as obj | |
doc_16910 | See Migration guide for more details. tf.compat.v1.linalg.tridiagonal_solve
tf.linalg.tridiagonal_solve(
diagonals, rhs, diagonals_format='compact', transpose_rhs=False,
conjugate_rhs=False, name=None, partial_pivoting=True
)
The input can be supplied in various formats: matrix, sequence and compact, specifi... | |
doc_16911 |
The home page for Tix. This includes links to additional documentation and downloads. Tix Man Pages
On-line version of the man pages and reference material. Tix Programming Guide
On-line version of the programmer’s reference material. Tix Development Applications
Tix applications for development of Tix and Tkint... | |
doc_16912 | Similar to clock_gettime() but return time as nanoseconds. Availability: Unix. New in version 3.7. | |
doc_16913 | Registers the XML-RPC multicall function system.multicall. | |
doc_16914 | Path to a custom template that will be used by the admin site logout view. | |
doc_16915 |
Returns True if the ninja build system is available on the system, False otherwise. | |
doc_16916 |
Convert coefficient matrix to dense array format. Converts the coef_ member (back) to a numpy.ndarray. This is the default format of coef_ and is required for fitting, so calling this method is only required on models that have previously been sparsified; otherwise, it is a no-op. Returns
self
Fitted estimator. | |
doc_16917 |
Compute the centroids on X by chunking it into mini-batches. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training instances to cluster. It must be noted that the data will be converted to C ordering, which will cause a memory copy if the given data is not C-contiguous.
yIgnored
... | |
doc_16918 |
Alias for get_linewidth. | |
doc_16919 | See Migration guide for more details. tf.compat.v1.IndexedSlices
tf.IndexedSlices(
values, indices, dense_shape=None
)
This class is a simple wrapper for a pair of Tensor objects:
values: A Tensor of any dtype with shape [D0, D1, ..., Dn].
indices: A 1-D integer Tensor with shape [D0]. An IndexedSlices is ty... | |
doc_16920 | Base class for C callable foreign functions. Instances of foreign functions are also C compatible data types; they represent C function pointers. This behavior can be customized by assigning to special attributes of the foreign function object.
restype
Assign a ctypes type to specify the result type of the foreign ... | |
doc_16921 | Returns a Tensor of size size filled with fill_value. By default, the returned Tensor has the same torch.dtype and torch.device as this tensor. Parameters
fill_value (scalar) – the number to fill the output tensor with.
dtype (torch.dtype, optional) – the desired type of returned tensor. Default: if None, same tor... | |
doc_16922 | Returns the day for which this view will display data, as a string. Tries the following sources, in order: The value of the DayMixin.day attribute. The value of the day argument captured in the URL pattern. The value of the day GET query argument. Raises a 404 if no valid day specification can be found. | |
doc_16923 | A set. elts holds a list of nodes representing the set’s elements. >>> print(ast.dump(ast.parse('{1, 2, 3}', mode='eval'), indent=4))
Expression(
body=Set(
elts=[
Constant(value=1),
Constant(value=2),
Constant(value=3)])) | |
doc_16924 | In range(24). | |
doc_16925 |
Find a font that most closely matches the given font properties. Parameters
propstr or FontProperties
The font properties to search for. This can be either a FontProperties object or a string defining a fontconfig patterns.
fontext{'ttf', 'afm'}, default: 'ttf'
The extension of the font file: 'ttf': TrueTy... | |
doc_16926 | Return True for terminal token values. | |
doc_16927 |
Set the current cursor. This may have no effect if the backend does not display anything. If required by the backend, this method should trigger an update in the backend event loop after the cursor is set, as this method may be called e.g. before a long-running task during which the GUI is not updated. Parameters
... | |
doc_16928 |
template_name: 'django/forms/widgets/select.html'
option_template_name: 'django/forms/widgets/select_option.html'
Renders as: <select><option ...>...</select>
choices
This attribute is optional when the form field does not have a choices attribute. If it does, it will override anything you set here when the ... | |
doc_16929 |
Return an xarray object from the pandas object. Returns
xarray.DataArray or xarray.Dataset
Data in the pandas structure converted to Dataset if the object is a DataFrame, or a DataArray if the object is a Series. See also DataFrame.to_hdf
Write DataFrame to an HDF5 file. DataFrame.to_parquet
Write a Data... | |
doc_16930 | get the amount of mouse movement get_rel() -> (x, y) Returns the amount of movement in x and y since the previous call to this function. The relative movement of the mouse cursor is constrained to the edges of the screen, but see the virtual input mouse mode for a way around this. Virtual input mode is described at t... | |
doc_16931 |
Read-only name identifying the axis. | |
doc_16932 |
Return element-wise quotient and remainder simultaneously. New in version 1.13.0. np.divmod(x, y) is equivalent to (x // y, x % y), but faster because it avoids redundant work. It is used to implement the Python built-in function divmod on NumPy arrays. Parameters
x1array_like
Dividend array.
x2array_like
... | |
doc_16933 | See Migration guide for more details. tf.compat.v1.raw_ops.RandomGammaGrad
tf.raw_ops.RandomGammaGrad(
alpha, sample, name=None
)
Args
alpha A Tensor. Must be one of the following types: float32, float64.
sample A Tensor. Must have the same type as alpha.
name A name for the operation (optio... | |
doc_16934 | See Migration guide for more details. tf.compat.v1.keras.constraints.serialize
tf.keras.constraints.serialize(
constraint
) | |
doc_16935 |
Returns a view of the array with axes transposed. For a 1-D array this has no effect, as a transposed vector is simply the same vector. To convert a 1-D array into a 2D column vector, an additional dimension must be added. np.atleast2d(a).T achieves this, as does a[:, np.newaxis]. For a 2-D array, this is a standard ... | |
doc_16936 |
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal. | |
doc_16937 | See Migration guide for more details. tf.compat.v1.raw_ops.ParseExample
tf.raw_ops.ParseExample(
serialized, names, sparse_keys, dense_keys, dense_defaults, sparse_types,
dense_shapes, name=None
)
Args
serialized A Tensor of type string. A vector containing a batch of binary serialized Example proto... | |
doc_16938 | You can access the caches configured in the CACHES setting through a dict-like object: django.core.cache.caches. Repeated requests for the same alias in the same thread will return the same object. >>> from django.core.cache import caches
>>> cache1 = caches['myalias']
>>> cache2 = caches['myalias']
>>> cache1 is cache... | |
doc_16939 | tf.compat.v1.to_complex128(
x, name='ToComplex128'
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead.
Args
x A Tensor or SparseTensor or IndexedSlices.
name A name for the operation (optional).
Returns A Tensor or... | |
doc_16940 | Parameters
stampid – an integer, must be return value of previous stamp() call Delete stamp with given stampid. >>> turtle.position()
(150.00,-0.00)
>>> turtle.color("blue")
>>> astamp = turtle.stamp()
>>> turtle.fd(50)
>>> turtle.position()
(200.00,-0.00)
>>> turtle.clearstamp(astamp)
>>> turtle.position()
(200.00... | |
doc_16941 |
Set the begin and end positions of the connecting path. Parameters
posA, posBNone, tuple
(x, y) coordinates of arrow tail and arrow head respectively. If None use current value. | |
doc_16942 |
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_16943 | Remove any existing values for a header and add new ones. Parameters
key – The header key to set.
values – An iterable of values to set for the key. Changelog New in version 1.0. | |
doc_16944 | Returns a copy of the tensor in torch.mkldnn layout. | |
doc_16945 |
Number each group from 0 to the number of groups - 1. This is the enumerative complement of cumcount. Note that the numbers given to the groups match the order in which the groups would be seen when iterating over the groupby object, not the order they are first observed. Parameters
ascending:bool, default True
... | |
doc_16946 |
Get a projection class from its name. If projection is None, a standard rectilinear projection is returned. | |
doc_16947 | See Migration guide for more details. tf.compat.v1.raw_ops.LSTMBlockCell
tf.raw_ops.LSTMBlockCell(
x, cs_prev, h_prev, w, wci, wcf, wco, b, forget_bias=1, cell_clip=3,
use_peephole=False, name=None
)
This implementation uses 1 weight matrix and 1 bias vector, and there's an optional peephole connection. This... | |
doc_16948 |
class CommentForm(forms.Form):
name = forms.CharField()
url = forms.URLField()
comment = forms.CharField(widget=forms.Textarea)
This would specify a form with a comment that uses a larger Textarea widget, rather than the default TextInput widget. Setting arguments for widgets Many widgets have optional ex... | |
doc_16949 |
Return a dictionary of all the properties of the artist. | |
doc_16950 |
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_16951 | Parse a cache control header. The RFC differs between response and request cache control, this method does not. It’s your responsibility to not use the wrong control statements. Changelog New in version 0.5: The cls was added. If not specified an immutable RequestCacheControl is returned. Parameters
value (Option... | |
doc_16952 | A Popen creationflags parameter to specify that a new process will have an above average priority. New in version 3.7. | |
doc_16953 | Set the “inheritable” flag of the specified handle. Availability: Windows. | |
doc_16954 |
Parameters
shorthand_namestr
A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when DEBUG=True. | |
doc_16955 |
Backward fill the values. Parameters
limit:int, optional
Limit of how many values to fill. Returns
Series or DataFrame
Object with missing values filled. See also Series.bfill
Backward fill the missing values in the dataset. DataFrame.bfill
Backward fill the missing values in the dataset. Series... | |
doc_16956 |
Predict class at each stage for X. This method allows monitoring (i.e. determine error on testing set) after each stage. 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... | |
doc_16957 | Convenient way to get row and column indicators together. Returns the rows_ and columns_ members. | |
doc_16958 | Apply transforms, and transform with the final estimator This also works where final estimator is None: all prior transformations are applied. Parameters
Xiterable
Data to transform. Must fulfill input requirements of first step of the pipeline. Returns
Xtarray-like of shape (n_samples, n_transformed_featur... | |
doc_16959 | The address of the client sending the request. | |
doc_16960 | Stop tracing Python memory allocations: uninstall hooks on Python memory allocators. Also clears all previously collected traces of memory blocks allocated by Python. Call take_snapshot() function to take a snapshot of traces before clearing them. See also start(), is_tracing() and clear_traces() functions. | |
doc_16961 |
Call self as a function. | |
doc_16962 | bytearray.capitalize()
Return a copy of the sequence with each byte interpreted as an ASCII character, and the first byte capitalized and the rest lowercased. Non-ASCII byte values are passed through unchanged. Note The bytearray version of this method does not operate in place - it always produces a new object, eve... | |
doc_16963 |
Return the ticks position ("top", "bottom", "default", or "unknown"). | |
doc_16964 |
Scale the data Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The data that should be scaled. Returns
X_tr{ndarray, sparse matrix} of shape (n_samples, n_features)
Transformed array. | |
doc_16965 |
Get a mask, or integer index, of the features selected Parameters
indicesbool, default=False
If True, the return value will be an array of integers, rather than a boolean mask. Returns
supportarray
An index that selects the retained features from a feature vector. If indices is False, this is a boolean ... | |
doc_16966 | A Popen creationflags parameter to specify that a new process will have an normal priority. (default) New in version 3.7. | |
doc_16967 | A subclass of Sprite with more attributes and features. DirtySprite(*groups) -> DirtySprite Extra DirtySprite attributes with their default values: dirty = 1 if set to 1, it is repainted and then set to 0 again
if set to 2 then it is always dirty ( repainted each frame,
flag is not reset)
0 means that it is not dirty... | |
doc_16968 | Set the curve name for Elliptic Curve-based Diffie-Hellman (ECDH) key exchange. ECDH is significantly faster than regular DH while arguably as secure. The curve_name parameter should be a string describing a well-known elliptic curve, for example prime256v1 for a widely supported curve. This setting doesn’t apply to cl... | |
doc_16969 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayScatterV2
tf.raw_ops.TensorArrayScatterV2(
handle, indices, value, flow_in, name=None
)
Args
handle A Tensor of type string.
indices A Tensor of type int32.
value A Tensor.
flow_in A Tensor of type float32.
name ... | |
doc_16970 | Returns whether the kernel is defined on fixed-length feature vectors or generic objects. Defaults to True for backward compatibility. | |
doc_16971 |
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_16972 | Return a list of all variables in the context object. | |
doc_16973 | tf.compat.v1.disable_control_flow_v2()
Note: v2 control flow is always enabled inside of tf.function. Calling this function has no effect in that case.
If your code needs tf.disable_control_flow_v2() to be called to work properly please file a bug. | |
doc_16974 |
Execute an output node. This really just retrieves the value referenced by the output node and returns it. Parameters
target (Target) – The call target for this node. See Node for details on semantics
args (Tuple) – Tuple of positional args for this invocation
kwargs (Dict) – Dict of keyword arguments for this ... | |
doc_16975 | The encoded value of the cookie — this is what should be sent. | |
doc_16976 | Returns a new tensor with the inverse hyperbolic cosine of the elements of input. Note The domain of the inverse hyperbolic cosine is [1, inf) and values outside this range will be mapped to NaN, except for + INF for which the output is mapped to + INF. outi=cosh−1(inputi)\text{out}_{i} = \cosh^{-1}(\text{input}_{i... | |
doc_16977 |
Return a list of the child Artists of this Artist. | |
doc_16978 | Runs the test suite. Returns the result produced by the running the test suite. | |
doc_16979 |
Meta-transformer for selecting features based on importance weights. New in version 0.17. Read more in the User Guide. Parameters
estimatorobject
The base estimator from which the transformer is built. This can be both a fitted (if prefit is set to True) or a non-fitted estimator. The estimator must have eith... | |
doc_16980 |
Calls decision function of the base_estimator. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Array representing the data. Returns
yndarray of shape (n_samples, n_features)
Result of the decision function of the base_estimator. | |
doc_16981 | Add message to the mailbox and return the key that has been assigned to it. Parameter message may be a Message instance, an email.message.Message instance, a string, a byte string, or a file-like object (which should be open in binary mode). If message is an instance of the appropriate format-specific Message subclass ... | |
doc_16982 | See Migration guide for more details. tf.compat.v1.keras.layers.Maximum
tf.keras.layers.Maximum(
**kwargs
)
It takes as input a list of tensors, all of the same shape, and returns a single tensor (also of the same shape).
tf.keras.layers.Maximum()([np.arange(5).reshape(5, 1),
np.arang... | |
doc_16983 |
pygame module for monitoring time Times in pygame are represented in milliseconds (1/1000 seconds). Most platforms have a limited time resolution of around 10 milliseconds. This resolution, in milliseconds, is given in the TIMER_RESOLUTION constant. pygame.time.get_ticks()
get the time in milliseconds get_tick... | |
doc_16984 |
Get Subtraction of dataframe and other, element-wise (binary operator sub). Equivalent to dataframe - other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, rsub. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //, %,... | |
doc_16985 | Closes the mmap. Subsequent calls to other methods of the object will result in a ValueError exception being raised. This will not close the open file. | |
doc_16986 |
Alias for get_fontsize. | |
doc_16987 | Add a mapping from the MIME type type to the extension ext. When the extension is already known, the new type will replace the old one. When the type is already known the extension will be added to the list of known extensions. When strict is True (the default), the mapping will be added to the official MIME types, oth... | |
doc_16988 | Computes and returns a pruned version of input tensor t according to the pruning rule specified in compute_mask(). Parameters
t (torch.Tensor) – tensor to prune (of same dimensions as default_mask).
importance_scores (torch.Tensor) – tensor of importance scores (of same shape as t) used to compute mask for pruning... | |
doc_16989 |
Set the internal state of the generator from a tuple. For use if one has reason to manually (re-)set the internal state of the bit generator used by the RandomState instance. By default, RandomState uses the “Mersenne Twister”[1] pseudo-random number generating algorithm. Parameters
state{tuple(str, ndarray of 62... | |
doc_16990 | The file name of the importer’s associated ZIP file, without a possible subpath. | |
doc_16991 | A one-character string used to separate fields. It defaults to ','. | |
doc_16992 | Set the handler for signal signalnum to the function handler. handler can be a callable Python object taking two arguments (see below), or one of the special values signal.SIG_IGN or signal.SIG_DFL. The previous signal handler will be returned (see the description of getsignal() above). (See the Unix man page signal(2)... | |
doc_16993 |
[Deprecated] Notes Deprecated since version 3.4: | |
doc_16994 |
Return a (tight) bounding box of the figure in inches. Note that FigureBase differs from all other artists, which return their Bbox in pixels. Artists that have artist.set_in_layout(False) are not included in the bbox. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e.... | |
doc_16995 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_16996 | Return the localized translation of message, based on the current global domain, language, and locale directory. This function is usually aliased as _() in the local namespace (see examples below). | |
doc_16997 |
Return the kernel k(X, Y) and optionally its gradient. Parameters
Xarray-like of shape (n_samples_X, n_features) or list of object
Left argument of the returned kernel k(X, Y)
Yarray-like of shape (n_samples_X, n_features) or list of object, default=None
Right argument of the returned kernel k(X, Y). If Non... | |
doc_16998 | Transforms the geometry according to the given coordinate transformation parameter (ct), which may be an integer SRID, spatial reference WKT string, a PROJ string, a SpatialReference object, or a CoordTransform object. By default, the geometry is transformed in-place and nothing is returned. However if the clone keywor... | |
doc_16999 |
Alias for set_edgecolor. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.