_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_28500 | Return the value of the numeric capability corresponding to the terminfo capability name capname as an integer. Return the value -2 if capname is not a numeric capability, or -1 if it is canceled or absent from the terminal description. | |
doc_28501 |
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_28502 | Return an int with k random bits. | |
doc_28503 | Unpacker is the complementary class which unpacks XDR data values from a string buffer. The input buffer is given as data. | |
doc_28504 |
Return the standard vertical stem width as float, or None if not specified in AFM file. | |
doc_28505 | Pickles the record’s attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. If the connection was previously lost, re-establishes the connection. To unpickle the record at the receiving end into a LogRecord, use the makeLogRecord() function. | |
doc_28506 | See Migration guide for more details. tf.compat.v1.sparse.reorder, tf.compat.v1.sparse_reorder
tf.sparse.reorder(
sp_input, name=None
)
Note that by convention, all sparse ops preserve the canonical ordering along increasing dimension number. The only time ordering can be violated is during manual manipulation o... | |
doc_28507 | tf.compat.v1.summary.histogram(
name, values, collections=None, family=None
)
Adding a histogram summary makes it possible to visualize your data's distribution in TensorBoard. You can see a detailed explanation of the TensorBoard histogram dashboard here. The generated Summary has one summary value containing a h... | |
doc_28508 | accessor for ‘no-transform’ | |
doc_28509 | Decodes object (taking the current state of the decoder into account) and returns the resulting decoded object. If this is the last call to decode() final must be true (the default is false). If final is true the decoder must decode the input completely and must flush all buffers. If this isn’t possible (e.g. because o... | |
doc_28510 | Returns the date this session will expire. For sessions with no custom expiration (or those set to expire at browser close), this will equal the date SESSION_COOKIE_AGE seconds from now. This function accepts the same keyword arguments as get_expiry_age(). | |
doc_28511 | New in Django 4.0. Returns the URL to redirect to after login. The default implementation resolves and returns next_page if set, or LOGIN_REDIRECT_URL otherwise. | |
doc_28512 | This function prints out a given traceback and exception to sys.stderr. When an exception is raised and uncaught, the interpreter calls sys.excepthook with three arguments, the exception class, exception instance, and a traceback object. In an interactive session this happens just before control is returned to the prom... | |
doc_28513 |
Return white top hat of an image. The white top hat of an image is defined as the image minus its morphological opening. This operation returns the bright spots of the image that are smaller than the structuring element. Parameters
imagendarray
Image array.
selemndarray, optional
The neighborhood expressed ... | |
doc_28514 |
Error raised when problems arise during merging due to problems with input data. Subclass of ValueError. | |
doc_28515 |
Reduce X to the selected features. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
X_rarray of shape [n_samples, n_selected_features]
The input samples with only the selected features. | |
doc_28516 |
Return a Path of the right half of a unit circle. See Path.circle for the reference on the approximation used. | |
doc_28517 |
Return the image mask and the histogram data. Returns
maskarray of bool, same shape as image
The selected pixels.
datadict
The data describing the histogram and the selected region. The dictionary contains: ‘bins’ : array of float The bin boundaries for both a and b channels. ‘hist’ : 2D array of float The... | |
doc_28518 | os.MFD_ALLOW_SEALING
os.MFD_HUGETLB
os.MFD_HUGE_SHIFT
os.MFD_HUGE_MASK
os.MFD_HUGE_64KB
os.MFD_HUGE_512KB
os.MFD_HUGE_1MB
os.MFD_HUGE_2MB
os.MFD_HUGE_8MB
os.MFD_HUGE_16MB
os.MFD_HUGE_32MB
os.MFD_HUGE_256MB
os.MFD_HUGE_512MB
os.MFD_HUGE_1GB
os.MFD_HUGE_2GB
os.MFD_HUGE_16GB
These flags can... | |
doc_28519 | See Migration guide for more details. tf.compat.v1.keras.utils.OrderedEnqueuer
tf.keras.utils.OrderedEnqueuer(
sequence, use_multiprocessing=False, shuffle=False
)
Used in fit_generator, evaluate_generator, predict_generator.
Arguments
sequence A tf.keras.utils.data_utils.Sequence object.
use_multip... | |
doc_28520 | A boolean value that determines whether to show the navigation sidebar on larger screens. By default, it is set to True. | |
doc_28521 |
Add other to self, and return a new masked array. | |
doc_28522 | Returns a date object containing the first day of the year after the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future. | |
doc_28523 |
Return a copy of the array. Parameters
order{‘C’, ‘F’, ‘A’, ‘K’}, optional
Controls the memory layout of the copy. ‘C’ means C-order, ‘F’ means F-order, ‘A’ means ‘F’ if a is Fortran contiguous, ‘C’ otherwise. ‘K’ means match the layout of a as closely as possible. (Note that this function and numpy.copy are ve... | |
doc_28524 | tf.reduce_mean
tf.math.reduce_mean(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis by computing the mean of elements across the dimensions in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which ... | |
doc_28525 |
Use this light source to adjust the colors of the rgb input array to give the impression of a shaded relief map with the given elevation. Parameters
rgbarray-like
An (M, N, 3) RGB array, assumed to be in the range of 0 to 1.
elevationarray-like
An (M, N) array of the height values used to generate a shaded ... | |
doc_28526 | The base exception class. Error has a single public attribute msg containing the description of the error. | |
doc_28527 | Null-terminated string containing references to environment variables (%PATH%). | |
doc_28528 |
Tuple of bytes to step in each dimension when traversing an array. The byte offset of element (i[0], i[1], ..., i[n]) in an array a is: offset = sum(np.array(i) * a.strides)
A more detailed explanation of strides can be found in the “ndarray.rst” file in the NumPy reference guide. See also numpy.lib.stride_tricks.... | |
doc_28529 |
Return the list of major Ticks. | |
doc_28530 | Points to the model the field relates to. For example, Author in ForeignKey(Author, on_delete=models.CASCADE). The related_model for a GenericForeignKey is always None. | |
doc_28531 |
Time Series cross-validator Provides train/test indices to split time series data samples that are observed at fixed time intervals, in train/test sets. In each split, test indices must be higher than before, and thus shuffling in cross validator is inappropriate. This cross-validation object is a variation of KFold.... | |
doc_28532 | Primary key. The field itself may contain up to 40 characters. The current implementation generates a 32-character string (a random sequence of digits and lowercase ASCII letters). | |
doc_28533 | Equivalent to put(item), provided for compatibility with Queue.put_nowait(). | |
doc_28534 | '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_28535 |
Return alias for index. Returns
Index
Index of the Series. | |
doc_28536 |
Return the number of days in the month. Examples
>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.days_in_month
31 | |
doc_28537 | Return True if path is an existing regular file. This follows symbolic links, so both islink() and isfile() can be true for the same path. Changed in version 3.6: Accepts a path-like object. | |
doc_28538 |
Write out format foo. This method is normally called via Figure.savefig and FigureCanvasBase.print_figure, which take care of setting the figure facecolor, edgecolor, and dpi to the desired output values, and will restore them to the original values. Therefore, print_foo does not need to handle these settings. | |
doc_28539 | Returns an iterator over all modules in the network. Yields
Module – a module in the network Note Duplicate modules are returned only once. In the following example, l will be returned only once. Example: >>> l = nn.Linear(2, 2)
>>> net = nn.Sequential(l, l)
>>> for idx, m in enumerate(net.modules()):
pri... | |
doc_28540 | class dict(mapping, **kwarg)
class dict(iterable, **kwarg)
Return a new dictionary initialized from an optional positional argument and a possibly empty set of keyword arguments. Dictionaries can be created by several means: Use a comma-separated list of key: value pairs within braces: {'jack': 4098, 'sjoerd': 412... | |
doc_28541 |
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_28542 | See Migration guide for more details. tf.compat.v1.debugging.assert_equal
tf.compat.v1.assert_equal(
x, y, data=None, summarize=None, message=None, name=None
)
This condition holds if for every pair of (possibly broadcast) elements x[i], y[i], we have x[i] == y[i]. If both x and y are empty, this is trivially sa... | |
doc_28543 | See Migration guide for more details. tf.compat.v1.raw_ops.RngSkip
tf.raw_ops.RngSkip(
resource, algorithm, delta, name=None
)
The state of the RNG after rng_skip(n) will be the same as that after stateful_uniform([n]) (or any other distribution). The actual increment added to the counter is an unspecified imple... | |
doc_28544 |
Return an array representing the indices of a grid. Compute an array where the subarrays contain index values 0, 1, … varying only along the corresponding axis. Parameters
dimensionssequence of ints
The shape of the grid.
dtypedtype, optional
Data type of the result.
sparseboolean, optional
Return a spa... | |
doc_28545 | Returns the name of the tab element at position x, y, or the empty string if none. | |
doc_28546 |
Customize compiler using distutils command. Parameters
cmdclass instance
An instance inheriting from distutils.cmd.Command.
ignoresequence of str, optional
List of CCompiler commands (without 'set_') that should not be altered. Strings that are checked for are: ('include_dirs', 'define', 'undef', 'libraries... | |
doc_28547 | This method is called unconditionally after tearDown(), or after setUp() if setUp() raises an exception. It is responsible for calling all the cleanup functions added by addCleanup(). If you need cleanup functions to be called prior to tearDown() then you can call doCleanups() yourself. doCleanups() pops methods off th... | |
doc_28548 | Packer is the class for packing data into XDR representation. The Packer class is instantiated with no arguments. | |
doc_28549 | See Migration guide for more details. tf.compat.v1.raw_ops.EncodeJpeg
tf.raw_ops.EncodeJpeg(
image, format='', quality=95, progressive=False, optimize_size=False,
chroma_downsampling=True, density_unit='in', x_density=300,
y_density=300, xmp_metadata='', name=None
)
image is a 3-D uint8 Tensor of shape [... | |
doc_28550 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorScatterMax
tf.raw_ops.TensorScatterMax(
tensor, indices, updates, name=None
)
Args
tensor A Tensor. Tensor to update.
indices A Tensor. Must be one of the following types: int32, int64. Index tensor.
updates A Tensor. Must have... | |
doc_28551 |
Return a matrix of random values with given shape. Create a matrix of the given shape and propagate it with random samples from a uniform distribution over [0, 1). Parameters
*argsArguments
Shape of the output. If given as N integers, each integer specifies the size of one dimension. If given as a tuple, this t... | |
doc_28552 |
Return the Transform instance mapping patch coordinates to data coordinates. For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5. | |
doc_28553 | Return the reconstituted object hierarchy of the pickled representation data of an object. data must be a bytes-like object. The protocol version of the pickle is detected automatically, so no protocol argument is needed. Bytes past the pickled representation of the object are ignored. Arguments file, fix_imports, enco... | |
doc_28554 |
Whether the categories have an ordered relationship. | |
doc_28555 | Blueprint local JSON encoder class to use. Set to None to use the app’s json_encoder. | |
doc_28556 | See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingProximalAdagradParameters
tf.raw_ops.RetrieveTPUEmbeddingProximalAdagradParameters(
num_shards, shard_id, table_id=-1, table_name='', config='',
name=None
)
An op that retrieves optimization parameters from embedding to host memor... | |
doc_28557 |
Randomly zero out entire channels (a channel is a 2D feature map, e.g., the jj -th channel of the ii -th sample in the batched input is a 2D tensor input[i,j]\text{input}[i, j] ) of the input tensor). Each channel will be zeroed out independently on every forward call with probability p using samples from a Bernoulli... | |
doc_28558 |
TransformerDecoderLayer is made up of self-attn, multi-head-attn and feedforward network. This standard decoder layer is based on the paper “Attention Is All You Need”. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all y... | |
doc_28559 |
Return number of unique elements in the group. Returns
Series
Number of unique values within each group. | |
doc_28560 | Make this feature the current feature of msilib. New components are automatically added to the default feature, unless a feature is explicitly specified. | |
doc_28561 | A binary stream using an in-memory bytes buffer. It inherits BufferedIOBase. The buffer is discarded when the close() method is called. The optional argument initial_bytes is a bytes-like object that contains initial data. BytesIO provides or overrides these methods in addition to those from BufferedIOBase and IOBase: ... | |
doc_28562 | See Migration guide for more details. tf.compat.v1.signal.hamming_window
tf.signal.hamming_window(
window_length, periodic=True, dtype=tf.dtypes.float32, name=None
)
Args
window_length A scalar Tensor indicating the window length to generate.
periodic A bool Tensor indicating whether to generate a... | |
doc_28563 | New in version 3.9. Status code returned by server. | |
doc_28564 |
Return Integer division and modulo of series and other, element-wise (binary operator divmod). Equivalent to divmod(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)... | |
doc_28565 | Returns True if the user has each of the specified permissions, where each perm is in the format "<app label>.<permission codename>". If the user is inactive, this method will always return False. For an active superuser, this method will always return True. If obj is passed in, this method won’t check for permissions ... | |
doc_28566 | Return date object with same year, month and day. | |
doc_28567 | Restrict the process with PID pid (or the current process if zero) to a set of CPUs. mask is an iterable of integers representing the set of CPUs to which the process should be restricted. | |
doc_28568 | Return the highest index in the string where substring sub is found, such that sub is contained within s[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure. | |
doc_28569 | In-place version of greater_equal(). | |
doc_28570 |
Bases: object An Axes positioning class. The divider is initialized with lists of horizontal and vertical sizes (mpl_toolkits.axes_grid1.axes_size) based on which a given rectangular area will be divided. The new_locator method then creates a callable object that can be used as the axes_locator of the axes. Paramete... | |
doc_28571 |
Bases: matplotlib.container.Container Container for the artists of bar plots (e.g. created by Axes.bar). The container can be treated as a tuple of the patches themselves. Additionally, you can access these and further parameters by the attributes. Attributes
patcheslist of Rectangle
The artists of the bars.
... | |
doc_28572 | Register an archiver for the format name. function is the callable that will be used to unpack archives. The callable will receive the base_name of the file to create, followed by the base_dir (which defaults to os.curdir) to start archiving from. Further arguments are passed as keyword arguments: owner, group, dry_run... | |
doc_28573 | The number of threads required to pass the barrier. | |
doc_28574 | Computes the complementary error function of each element of input. The complementary error function is defined as follows: erfc(x)=1−2π∫0xe−t2dt\mathrm{erfc}(x) = 1 - \frac{2}{\sqrt{\pi}} \int_{0}^{x} e^{-t^2} dt
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output... | |
doc_28575 |
Add a centered suptitle to the figure. Parameters
tstr
The suptitle text.
xfloat, default: 0.5
The x location of the text in figure coordinates.
yfloat, default: 0.98
The y location of the text in figure coordinates.
horizontalalignment, ha{'center', 'left', 'right'}, default: center
The horizontal ... | |
doc_28576 |
Return the Transform instance used by this artist offset. | |
doc_28577 | Schedule callback to be called after the given delay number of seconds (can be either an int or a float). An instance of asyncio.TimerHandle is returned which can be used to cancel the callback. callback will be called exactly once. If two callbacks are scheduled for exactly the same time, the order in which they are c... | |
doc_28578 | See Migration guide for more details. tf.compat.v1.estimator.MultiHead
tf.estimator.MultiHead(
heads, head_weights=None
)
This class merges the output of multiple Head objects. Specifically: For training, sums losses of each head, calls train_op_fn with this final loss. For eval, merges metrics by adding head.n... | |
doc_28579 |
Applies element-wise the function GELU(x)=x∗Φ(x)\text{GELU}(x) = x * \Phi(x) where Φ(x)\Phi(x) is the Cumulative Distribution Function for Gaussian Distribution. See Gaussian Error Linear Units (GELUs). | |
doc_28580 | Return a value equal to the first operand after rounding and having the exponent of the second operand. >>> Decimal('1.41421356').quantize(Decimal('1.000'))
Decimal('1.414')
Unlike other operations, if the length of the coefficient after the quantize operation would be greater than precision, then an InvalidOperation ... | |
doc_28581 | class sklearn.tree.ExtraTreeClassifier(*, criterion='gini', splitter='random', max_depth=None, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_features='auto', random_state=None, max_leaf_nodes=None, min_impurity_decrease=0.0, min_impurity_split=None, class_weight=None, ccp_alpha=0.0) [source... | |
doc_28582 |
Remove minor ticks from the Axes. | |
doc_28583 | Get the value for an OpenGL flag for the current display gl_get_attribute(flag) -> value After calling pygame.display.set_mode() with the pygame.OPENGL flag, it is a good idea to check the value of any requested OpenGL attributes. See pygame.display.gl_set_attribute() for a list of valid flags. | |
doc_28584 |
Return the singular value decomposition (U, S, V) of a matrix, batches of matrices, or a sparse matrix AA such that A≈Udiag(S)VTA \approx U diag(S) V^T . In case MM is given, then SVD is computed for the matrix A−MA - M . Note The implementation is based on the Algorithm 5.1 from Halko et al, 2009. Note To obtai... | |
doc_28585 | Return True if the stream supports random access. If False, seek(), tell() and truncate() will raise OSError. | |
doc_28586 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_28587 |
Return a Path for the current hatch. | |
doc_28588 | Unquotes a header value. (Reversal of quote_header_value()). This does not use the real unquoting but what browsers are actually using for quoting. Changelog New in version 0.5. Parameters
value (str) – the header value to unquote.
is_filename (bool) – The value represents a filename or path. Return type
str | |
doc_28589 | See Migration guide for more details. tf.compat.v1.random.experimental.stateless_split
tf.random.experimental.stateless_split(
seed, num=2
)
Example:
seed = [1, 2]
new_seeds = tf.random.experimental.stateless_split(seed, num=3)
print(new_seeds)
tf.Tensor(
[[1105988140 1738052849]
[-335576002 370444179]
[ 10... | |
doc_28590 | Sequence of bytecodes that access a constant. | |
doc_28591 | sklearn.linear_model.lasso_path(X, y, *, eps=0.001, n_alphas=100, alphas=None, precompute='auto', Xy=None, copy_X=True, coef_init=None, verbose=False, return_n_iter=False, positive=False, **params) [source]
Compute Lasso path with coordinate descent The Lasso optimization function varies for mono and multi-outputs. F... | |
doc_28592 | Validates that the upper bound of the range is not greater than limit_value. | |
doc_28593 | Call open() with method set to PATCH. Parameters
args (Any) –
kw (Any) – Return type
werkzeug.test.TestResponse | |
doc_28594 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListReserve
tf.raw_ops.TensorListReserve(
element_shape, num_elements, element_dtype, name=None
)
element_shape: the shape of the future elements of the list num_elements: the number of elements to reserve handle: the output list element_dtype: the... | |
doc_28595 | See Migration guide for more details. tf.compat.v1.app.flags.UnparsedFlagAccessError | |
doc_28596 | Disable the fault handler: uninstall the signal handlers installed by enable(). | |
doc_28597 |
Update the text properties. Valid keyword arguments are:
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha scalar or None
animated bool
backgroundcolor color
bbox dict with properties for patches.FancyBboxPatch
c... | |
doc_28598 |
Return divmod(value, self). | |
doc_28599 | Return True if the underlying transport supports the write_eof() method, False otherwise. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.