_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_14800 | See Migration guide for more details. tf.compat.v1.keras.regularizers.deserialize
tf.keras.regularizers.deserialize(
config, custom_objects=None
) | |
doc_14801 |
First array elements raised to powers from second array, element-wise. Raise each base in x1 to the positionally-corresponding power in x2. x1 and x2 must be broadcastable to the same shape. This differs from the power function in that integers, float16, and float32 are promoted to floats with a minimum precision of ... | |
doc_14802 | In emergencies this method will discard any data held in the input and/or output buffers and the producer queue. | |
doc_14803 |
Register a new Parallel backend factory. The new backend can then be selected by passing its name as the backend argument to the Parallel class. Moreover, the default backend can be overwritten globally by setting make_default=True. The factory can be any callable that takes no argument and return an instance of Para... | |
doc_14804 | In-place version of eq() | |
doc_14805 | Create and return a new element with a namespace. The tagName may have a prefix. The element is not inserted into the document when it is created. You need to explicitly insert it with one of the other methods such as insertBefore() or appendChild(). | |
doc_14806 | tf.compat.v1.distributions.Normal(
loc, scale, validate_args=False, allow_nan_stats=True, name='Normal'
)
Mathematical details The probability density function (pdf) is, pdf(x; mu, sigma) = exp(-0.5 (x - mu)**2 / sigma**2) / Z
Z = (2 pi sigma**2)**0.5
where loc = mu is the mean, scale = sigma is the std. deviatio... | |
doc_14807 | Return the tangent of x. | |
doc_14808 |
Returns the field names of the input datatype as a tuple. Parameters
adtypedtype
Input datatype Examples >>> from numpy.lib import recfunctions as rfn
>>> rfn.get_names(np.empty((1,), dtype=int))
Traceback (most recent call last):
...
AttributeError: 'numpy.ndarray' object has no attribute 'names'
>>> ... | |
doc_14809 | Call the system call setpgid() to set the process group id of the process with id pid to the process group with id pgrp. See the Unix manual for the semantics. Availability: Unix. | |
doc_14810 |
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters
Xarray-like of shape (n_samples, n_features)
Input samples.
yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None
Target values (None for uns... | |
doc_14811 | See Migration guide for more details. tf.compat.v1.raw_ops.Fact
tf.raw_ops.Fact(
name=None
)
Args
name A name for the operation (optional).
Returns A Tensor of type string. | |
doc_14812 |
Return the Transform instance used by this artist. | |
doc_14813 |
Predict class log-probabilities for X. The predicted class log-probabilities of an input sample is computed as the log of the mean predicted class probabilities of the base estimators in the ensemble. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input samples. Sparse mat... | |
doc_14814 |
Fit the model using X, y as training data. Parameters
Xarray-like of shape (n_samples, n_features)
training data.
yarray-like of shape (n_samples,)
target values. Will be cast to X’s dtype if necessary
copy_Xbool, default=None
If provided, this parameter will override the choice of copy_X made at instan... | |
doc_14815 |
Set the url for the artist. Parameters
urlstr | |
doc_14816 |
Attributes
asset_file_def repeated AssetFileDef asset_file_def
collection_def repeated CollectionDefEntry collection_def
graph_def GraphDef graph_def
meta_info_def MetaInfoDef meta_info_def
object_graph_def SavedObjectGraph object_graph_def
saver_def SaverDef saver_def
signatu... | |
doc_14817 | operator.__imod__(a, b)
a = imod(a, b) is equivalent to a %= b. | |
doc_14818 | For addresses that appear to be 6to4 addresses (starting with 2002::/16) as defined by RFC 3056, this property will report the embedded IPv4 address. For any other address, this property will be None. | |
doc_14819 | operator.__ixor__(a, b)
a = ixor(a, b) is equivalent to a ^= b. | |
doc_14820 |
Return the zorder value below which artists will be rasterized. | |
doc_14821 |
Set and update the Axis units. Parameters
datastr or iterable of str
axisAxis
axis on which the data is plotted Returns
UnitData
object storing string to integer mapping | |
doc_14822 |
Bases: torch.distributions.transformed_distribution.TransformedDistribution Creates a log-normal distribution parameterized by loc and scale where: X ~ Normal(loc, scale)
Y = exp(X) ~ LogNormal(loc, scale)
Example: >>> m = LogNormal(torch.tensor([0.0]), torch.tensor([1.0]))
>>> m.sample() # log-normal distributed w... | |
doc_14823 |
Update offset of the children and return the extent of the box. Parameters
rendererRendererBase subclass
Returns
width
height
xdescent
ydescent
list of (xoffset, yoffset) pairs | |
doc_14824 |
The last colorbar associated with this ScalarMappable. May be None. | |
doc_14825 | Calling this with a true value for flag (the default) will cause Expat to call the ExternalEntityRefHandler with None for all arguments to allow an alternate DTD to be loaded. If the document does not contain a document type declaration, the ExternalEntityRefHandler will still be called, but the StartDoctypeDeclHandler... | |
doc_14826 |
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass. | |
doc_14827 |
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters
in_layoutbool | |
doc_14828 |
Return True if each axis is autoscaled, False otherwise. | |
doc_14829 | Formats and translates change_message into the current user language. Messages created before Django 1.10 will always be displayed in the language in which they were logged. | |
doc_14830 |
alias of pandas._libs.tslibs.offsets.BusinessMonthBegin | |
doc_14831 | Returns a bitmask indicating stereo mixer controls. If a bit is set, the corresponding control is stereo; if it is unset, the control is either monophonic or not supported by the mixer (use in combination with controls() to determine which). See the code example for the controls() function for an example of getting dat... | |
doc_14832 | Steve Chaplin and others This backend depends on cairocffi or pycairo. matplotlib.backends.backend_cairo.FigureCanvas[source]
alias of matplotlib.backends.backend_cairo.FigureCanvasCairo
classmatplotlib.backends.backend_cairo.FigureCanvasCairo(figure=None)[source]
Bases: matplotlib.backend_bases.FigureCanva... | |
doc_14833 | tf.compat.v1.nn.raw_rnn(
cell, loop_fn, parallel_iterations=None, swap_memory=False, scope=None
)
Note: This method is still in testing, and the API may change.**
This function is a more primitive version of dynamic_rnn that provides more direct access to the inputs each iteration. It also provides more control ... | |
doc_14834 | Create an AIFF file. The default is that an AIFF-C file is created, unless the name of the file ends in '.aiff' in which case the default is an AIFF file. | |
doc_14835 | 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_14836 |
Bases: object A psfonts.map formatted file, mapping TeX fonts to PS fonts. Parameters
filenamestr or path-like
Notes For historical reasons, TeX knows many Type-1 fonts by different names than the outside world. (For one thing, the names have to fit in eight characters.) Also, TeX's native fonts are not Type-... | |
doc_14837 |
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con... | |
doc_14838 |
Bases: matplotlib.transforms._BlendedMixin, matplotlib.transforms.Transform A "blended" transform uses one transform for the x-direction, and another transform for the y-direction. This "generic" version can handle any given child transform in the x- and y-directions. Create a new "blended" transform using x_transfor... | |
doc_14839 | Parses an if-range header which can be an etag or a date. Returns a IfRange object. Changed in version 2.0: If the value represents a datetime, it is timezone-aware. Changelog New in version 0.7. Parameters
value (Optional[str]) – Return type
werkzeug.datastructures.IfRange | |
doc_14840 | See torch.reciprocal() | |
doc_14841 | This is the superclass of all request handler objects. It defines the interface, given below. A concrete request handler subclass must define a new handle() method, and can override any of the other methods. A new instance of the subclass is created for each request.
setup()
Called before the handle() method to per... | |
doc_14842 |
current index in broadcasted result Examples >>> x = np.array([[1], [2], [3]])
>>> y = np.array([4, 5, 6])
>>> b = np.broadcast(x, y)
>>> b.index
0
>>> next(b), next(b), next(b)
((1, 4), (1, 5), (1, 6))
>>> b.index
3 | |
doc_14843 |
Set multiple properties at once. Supported properties 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
antialiased or aa bool or None
bounds (low: float, high: float)
capstyle Ca... | |
doc_14844 |
notfound_action:
0 - do nothing 1 - display warning message 2 - raise error | |
doc_14845 | tf.data.experimental.service.WorkerServer(
config, start=True
)
A tf.data.experimental.service.WorkerServer performs tf.data.Dataset processing for user-defined datasets, and provides the resulting elements over RPC. A worker is associated with a single tf.data.experimental.service.DispatchServer.
dispatcher = tf... | |
doc_14846 |
Prune (currently unpruned) units in a tensor at random. Parameters
name (str) – parameter name within module on which pruning will act.
amount (int or float) – quantity of parameters to prune. If float, should be between 0.0 and 1.0 and represent the fraction of parameters to prune. If int, it represents the abs... | |
doc_14847 | Return rendered text as a string of bytes render_raw(text, style=STYLE_DEFAULT, rotation=0, size=0, invert=False) -> (bytes, (int, int)) Like render() but with the pixels returned as a byte string of 8-bit gray-scale values. The foreground color is 255, the background 0, useful as an alpha mask for a foreground patte... | |
doc_14848 |
Down/up samples the input to either the given size or the given scale_factor See torch.nn.functional.interpolate() for implementation details. The input dimensions are interpreted in the form: mini-batch x channels x [optional depth] x [optional height] x width. Note The input quantization parameters propagate to th... | |
doc_14849 |
Return True if the given estimator is (probably) a regressor. Parameters
estimatorestimator instance
Estimator object to test. Returns
outbool
True if estimator is a regressor and False otherwise. | |
doc_14850 | Implements the 'xmlcharrefreplace' error handling (for encoding with text encodings only): the unencodable character is replaced by an appropriate XML character reference. | |
doc_14851 | Mapping class that references values weakly. Entries in the dictionary will be discarded when no strong reference to the value exists any more. Changed in version 3.9: Added support for | and |= operators, as specified in PEP 584. | |
doc_14852 | This method can be called by methods that need a sequence. If mutable is true, it will also ensure that the response sequence is a standard Python list. Changelog New in version 0.6. Parameters
mutable (bool) – Return type
None | |
doc_14853 | Open a ZIP file, where file can be a path to a file (a string), a file-like object or a path-like object. The mode parameter should be 'r' to read an existing file, 'w' to truncate and write a new file, 'a' to append to an existing file, or 'x' to exclusively create and write a new file. If mode is 'x' and file refers ... | |
doc_14854 |
Return the log of probability estimates. Parameters
Xndarray of shape (n_samples, n_features)
The input data. Returns
log_y_probndarray of shape (n_samples, n_classes)
The predicted log-probability of the sample for each class in the model, where classes are ordered as they are in self.classes_. Equival... | |
doc_14855 | The Referer[sic] request-header field allows the client to specify, for the server’s benefit, the address (URI) of the resource from which the Request-URI was obtained (the “referrer”, although the header field is misspelled). | |
doc_14856 | MobileNetV2: Inverted Residuals and Linear Bottlenecks (CVPR 2018) Functions MobileNetV2(...): Instantiates the MobileNetV2 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images. | |
doc_14857 | See Migration guide for more details. tf.compat.v1.PriorityQueue, tf.compat.v1.io.PriorityQueue, tf.compat.v1.queue.PriorityQueue
tf.queue.PriorityQueue(
capacity, types, shapes=None, names=None, shared_name=None,
name='priority_queue'
)
See tf.queue.QueueBase for a description of the methods on this class.
... | |
doc_14858 | event attribute dictionary __dict__ -> dict Read-only. The event type specific attributes of an event. The dict attribute is a synonym for backward compatibility. For example, the attributes of a KEYDOWN event would be unicode, key, and mod | |
doc_14859 | Type variable. Usage: T = TypeVar('T') # Can be anything
A = TypeVar('A', str, bytes) # Must be str or bytes
Type variables exist primarily for the benefit of static type checkers. They serve as the parameters for generic types as well as for generic function definitions. See Generic for more information on generic ... | |
doc_14860 | Return number of occurrences of value. | |
doc_14861 | Required. A hash of, and metadata about, the password. (Django doesn’t store the raw password.) Raw passwords can be arbitrarily long and can contain any character. See the password documentation. | |
doc_14862 | Set a callable which is used to create a LogRecord. Parameters
factory – The factory callable to be used to instantiate a log record. New in version 3.2: This function has been provided, along with getLogRecordFactory(), to allow developers more control over how the LogRecord representing a logging event is constr... | |
doc_14863 |
Set the color limits of the current image. If either vmin or vmax is None, the image min/max respectively will be used for color scaling. If you want to set the clim of multiple images, use set_clim on every image, for example: for im in gca().get_images():
im.set_clim(0, 0.5) | |
doc_14864 | Sequence containing all the keywords defined for the interpreter. If any keywords are defined to only be active when particular __future__ statements are in effect, these will be included as well. | |
doc_14865 | The same as RawValue() except that depending on the value of lock a process-safe synchronization wrapper may be returned instead of a raw ctypes object. If lock is True (the default) then a new lock object is created to synchronize access to the value. If lock is a Lock or RLock object then that will be used to synchro... | |
doc_14866 |
Perform non-local means denoising on 2-D or 3-D grayscale images, and 2-D RGB images. Parameters
image2D or 3D ndarray
Input image to be denoised, which can be 2D or 3D, and grayscale or RGB (for 2D images only, see multichannel parameter).
patch_sizeint, optional
Size of patches used for denoising.
patch... | |
doc_14867 | The file may only be appended to. | |
doc_14868 | The XML format for plist files. New in version 3.4. | |
doc_14869 |
Set the current Axes to be a and return a. | |
doc_14870 | tf.config.experimental.get_visible_devices Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.get_visible_devices, tf.compat.v1.config.get_visible_devices
tf.config.get_visible_devices(
device_type=None
)
Returns the list of PhysicalDevices currently marked as vis... | |
doc_14871 | Combine the elements of a tuple as returned by urlsplit() into a complete URL as a string. The parts argument can be any five-item iterable. This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had unnecessary delimiters (for example, a ? with an empty query; the RFC states... | |
doc_14872 |
Get the anchor location. See also matplotlib.axes.Axes.set_anchor
for a description of the anchor. matplotlib.axes.Axes.set_aspect
for a description of aspect handling. | |
doc_14873 | Combines setrlimit() and getrlimit() in one function and supports to get and set the resources limits of an arbitrary process. If pid is 0, then the call applies to the current process. resource and limits have the same meaning as in setrlimit(), except that limits is optional. When limits is not given the function ret... | |
doc_14874 |
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_14875 | Assert that the mock was called exactly once. >>> mock = Mock()
>>> mock.method()
<Mock name='mock.method()' id='...'>
>>> mock.method.assert_called_once()
>>> mock.method()
<Mock name='mock.method()' id='...'>
>>> mock.method.assert_called_once()
Traceback (most recent call last):
...
AssertionError: Expected 'method'... | |
doc_14876 | A http.client.HTTPMessage instance containing the response headers. http.client.HTTPMessage is a subclass of email.message.Message. | |
doc_14877 | See Migration guide for more details. tf.compat.v1.keras.utils.SequenceEnqueuer
tf.keras.utils.SequenceEnqueuer(
sequence, use_multiprocessing=False
)
The task of an Enqueuer is to use parallelism to speed up preprocessing. This is done with processes or threads. Example: enqueuer = SequenceEnqueuer(...)
enqueue... | |
doc_14878 |
Indicates whether the date is the last day of the month. Returns
Series or array
For Series, returns a Series with boolean values. For DatetimeIndex, returns a boolean array. See also is_month_start
Return a boolean indicating whether the date is the first day of the month. is_month_end
Return a boolean ... | |
doc_14879 | 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_14880 | A field which maps to an array. It is represented by an HTML <input>.
base_field
This is a required argument. It specifies the underlying form field for the array. This is not used to render any HTML, but it is used to process the submitted data and validate it. For example: >>> from django import forms
>>> from dj... | |
doc_14881 | User id of the owner. | |
doc_14882 |
Get the direction in which theta increases. -1:
Theta increases in the clockwise direction 1:
Theta increases in the counterclockwise direction | |
doc_14883 |
Transform new points into embedding space. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
X_newarray, shape = [n_samples, n_components]
Notes Because of scaling performed by this method, it is discouraged to use it together with methods that are not scale-invariant (like SVMs) | |
doc_14884 | returns the squared Euclidean length of the vector. length_squared() -> float calculates the Euclidean length of the vector which follows from the Pythagorean theorem: vec.length_squared() == vec.x**2 + vec.y**2. This is faster than vec.length() because it avoids the square root. | |
doc_14885 | Get a string that represents the era used in the current locale. Most locales do not define this value. An example of a locale which does define this value is the Japanese one. In Japan, the traditional representation of dates includes the name of the era corresponding to the then-emperor’s reign. Normally it should no... | |
doc_14886 | See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug
tf.raw_ops.RetrieveTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug(
num_shards, shard_id, table_id=-1, table_name='', config='',
name=None
)
An op that retrieves opti... | |
doc_14887 | See Migration guide for more details. tf.compat.v1.raw_ops.ApplyAdagrad
tf.raw_ops.ApplyAdagrad(
var, accum, lr, grad, use_locking=False, update_slots=True, name=None
)
accum += grad * grad var -= lr * grad * (1 / sqrt(accum))
Args
var A mutable Tensor. Must be one of the following types: float32, float... | |
doc_14888 | Converts an IMAP4 FLAGS response to a tuple of individual flags. | |
doc_14889 | Subclasses can override this method to perform initialization tasks such as registering signals. It is called as soon as the registry is fully populated. Although you can’t import models at the module-level where AppConfig classes are defined, you can import them in ready(), using either an import statement or get_mode... | |
doc_14890 |
Return the last row(s) without any NaNs before where. The last row (for each element in where, if list) without any NaN is taken. In case of a DataFrame, the last row without NaN considering only the subset of columns (if not None) If there is no good value, NaN is returned for a Series or a Series of NaN values for ... | |
doc_14891 | See Migration guide for more details. tf.compat.v1.math.special.bessel_k1e
tf.math.special.bessel_k1e(
x, name=None
)
Modified Bessel function of order 1.
tf.math.special.bessel_k1e([0.5, 1., 2., 4.]).numpy()
array([2.73100971, 1.63615349, 1.03347685, 0.68157595], dtype=float32)
Args
x A Tensor or Spa... | |
doc_14892 | tf.experimental.numpy.max(
a, axis=None, keepdims=None
)
Unsupported arguments: out, initial, where. See the NumPy documentation for numpy.max. | |
doc_14893 |
Return (x1 != x2) element-wise. Unlike numpy.not_equal, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters
x1, x2array_like of str or unicode
Input arrays of the same shape. Returns
... | |
doc_14894 | Unpacks a single-precision floating point number. | |
doc_14895 |
Attributes
base Returns a copy of the calling offset object with n=1 and all other attributes equal.
delta
freqstr
kwds
n
name
nanos
normalize
rule_code Methods
__call__(*args, **kwargs) Call self as a function.
rollback Roll provided date backward to next offset onl... | |
doc_14896 |
Subtract one Chebyshev series from another. Returns the difference of two Chebyshev series c1 - c2. The sequences of coefficients are from lowest order term to highest, i.e., [1,2,3] represents the series T_0 + 2*T_1 + 3*T_2. Parameters
c1, c2array_like
1-D arrays of Chebyshev series coefficients ordered from l... | |
doc_14897 |
Compute a simple cross tabulation of two (or more) factors. By default computes a frequency table of the factors unless an array of values and an aggregation function are passed. Parameters
index:array-like, Series, or list of arrays/Series
Values to group by in the rows.
columns:array-like, Series, or list o... | |
doc_14898 | Flattens input by reshaping it into a one-dimensional tensor. If start_dim or end_dim are passed, only dimensions starting with start_dim and ending with end_dim are flattened. The order of elements in input is unchanged. Unlike NumPy’s flatten, which always copies input’s data, this function may return the original ob... | |
doc_14899 | This is called for actual sessions returned by open_session() at the end of the request. This is still called during a request context so if you absolutely need access to the request you can do that. Parameters
app (Flask) –
session (flask.sessions.SessionMixin) –
response (Response) – Return type
None |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.