_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_11000 |
Differentiate a polynomial. Returns the polynomial coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl (the scaling factor is for use in a linear change of variable). The argument c is an array of coefficients from low to high degree along each axis, e.g., [1,2,3] repre... | |
doc_11001 | See Migration guide for more details. tf.compat.v1.raw_ops.StatefulStandardNormalV2
tf.raw_ops.StatefulStandardNormalV2(
resource, algorithm, shape, dtype=tf.dtypes.float32, name=None
)
The generated values will have mean 0 and standard deviation 1.
Args
resource A Tensor of type resource. The handle of... | |
doc_11002 | The __html__() method on a class helps non-Django templates detect classes whose output doesn’t require HTML escaping. This decorator defines the __html__() method on the decorated class by wrapping __str__() in mark_safe(). Ensure the __str__() method does indeed return text that doesn’t require HTML escaping. | |
doc_11003 |
Return the number of bytes in the underlying data. | |
doc_11004 | tf.compat.v1.nn.max_pool(
value, ksize, strides, padding, data_format='NHWC', name=None,
input=None
)
Args
value A 4-D Tensor of the format specified by data_format.
ksize An int or list of ints that has length 1, 2 or 4. The size of the window for each dimension of the input tensor.
strides... | |
doc_11005 | '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_11006 | Reads up to the next len(b) bytes of the response body into the buffer b. Returns the number of bytes read. New in version 3.3. | |
doc_11007 |
Read SIFT or SURF features from externally generated file. This routine reads SIFT or SURF files generated by binary utilities from http://people.cs.ubc.ca/~lowe/keypoints/ and http://www.vision.ee.ethz.ch/~surf/. This routine does not generate SIFT/SURF features from an image. These algorithms are patent encumbered.... | |
doc_11008 |
This DDP communication hook implements a simple gradient compression approach that converts GradBucket tensors whose type is assumed to be torch.float32 to half-precision floating point format (torch.float16). It allreduces those float16 gradient tensors. Once compressed gradient tensors are allreduced, its then call... | |
doc_11009 | Return a list of the lines in the string, breaking at line boundaries. Line breaks are not included in the resulting list unless keepends is given and true. This method splits on the following line boundaries. In particular, the boundaries are a superset of universal newlines.
Representation Description
\n Line F... | |
doc_11010 |
Fit the SelectFromModel meta-transformer. Parameters
Xarray-like of shape (n_samples, n_features)
The training input samples.
yarray-like of shape (n_samples,), default=None
The target values (integers that correspond to classes in classification, real numbers in regression).
**fit_paramsOther estimator s... | |
doc_11011 | Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return... | |
doc_11012 | Pushes a new item to the stack Parameters
obj (Any) – Return type
List[Any] | |
doc_11013 |
Return whether y values increase from top to bottom. Note that this only affects drawing of texts and images. | |
doc_11014 |
Return local mean of an image. Only greyvalues between percentiles [p0, p1] are considered in the filter. Parameters
image2-D array (uint8, uint16)
Input image.
selem2-D array
The neighborhood expressed as a 2-D array of 1’s and 0’s.
out2-D array (same dtype as input)
If None, a new array is allocated. ... | |
doc_11015 | Computes the multivariate log-gamma function) with dimension pp element-wise, given by log(Γp(a))=C+∑i=1plog(Γ(a−i−12))\log(\Gamma_{p}(a)) = C + \displaystyle \sum_{i=1}^{p} \log\left(\Gamma\left(a - \frac{i - 1}{2}\right)\right)
where C=log(π)×p(p−1)4C = \log(\pi) \times \frac{p (p - 1)}{4} and Γ(⋅)\Gamma(\cdo... | |
doc_11016 |
A 1-D iterator over the array. This is a numpy.flatiter instance, which acts similarly to, but is not a subclass of, Python’s built-in iterator object. See also flatten
Return a copy of the array collapsed into one dimension. flatiter
Examples >>> x = np.arange(1, 7).reshape(2, 3)
>>> x
array([[1, 2, 3],
... | |
doc_11017 |
Trace root and return the corresponding FX Graph representation. root can either be an nn.Module instance or a Python callable. Note that after this call, self.root may be different from the root passed in here. For example, when a free function is passed to trace(), we will create an nn.Module instance to use as the... | |
doc_11018 | SchemaGenerator is a top-level class that is responsible for walking your configured URL patterns, finding APIView subclasses, enquiring for their schema representation, and compiling the final schema object.
AutoSchema encapsulates all the details necessary for per-view schema introspection. Is attached to each view ... | |
doc_11019 | The broadcast address for the network. Packets sent to the broadcast address should be received by every host on the network. | |
doc_11020 | This constructor should always be called with keyword arguments. Arguments are: group should be None; reserved for future extension when a ThreadGroup class is implemented. target is the callable object to be invoked by the run() method. Defaults to None, meaning nothing is called. name is the thread name. By default, ... | |
doc_11021 |
An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctyp... | |
doc_11022 |
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 d... | |
doc_11023 | A message with MMDF-specific behaviors. Parameter message has the same meaning as with the Message constructor. As with message in an mbox mailbox, MMDF messages are stored with the sender’s address and the delivery date in an initial line beginning with “From “. Likewise, flags that indicate the state of the message a... | |
doc_11024 |
Return the label used for this artist in the legend. | |
doc_11025 |
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju... | |
doc_11026 | Return a tuple (ruid, euid, suid) denoting the current process’s real, effective, and saved user ids. Availability: Unix. New in version 3.2. | |
doc_11027 |
Dumps out module to folder with module_name so that it can be imported with from <folder> import <module_name> Parameters
folder (Union[str, os.PathLike]) – The folder to write the code out to
module_name (str) – Top-level name to use for the Module while writing out the code | |
doc_11028 |
Cell floating in saline. This is a quantitative phase image retrieved from a digital hologram using the Python library qpformat. The image shows a cell with high phase value, above the background phase. Because of a banding pattern artifact in the background, this image is a good test of thresholding algorithms. The ... | |
doc_11029 | See Migration guide for more details. tf.compat.v1.raw_ops.BlockLSTMGradV2
tf.raw_ops.BlockLSTMGradV2(
seq_len_max, x, cs_prev, h_prev, w, wci, wcf, wco, b, i, cs, f, o, ci, co, h,
cs_grad, h_grad, use_peephole, name=None
)
This implementation is to be used in conjunction of BlockLSTMV2.
Args
seq_len_... | |
doc_11030 |
Generate a tex file to render the tex string at a specific font size. Return the file name. | |
doc_11031 | It is a simplified Queue type, very close to a locked Pipe.
close()
Close the queue: release internal resources. A queue must not be used anymore after it is closed. For example, get(), put() and empty() methods must no longer be called. New in version 3.9.
empty()
Return True if the queue is empty, False o... | |
doc_11032 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomUniformIntV2
tf.raw_ops.StatelessRandomUniformIntV2(
shape, key, counter, alg, minval, maxval, name=None
)
The generated values follow a uniform distribution in the range [minval, maxval). The outputs are a deterministic function of shape,... | |
doc_11033 | Generates and returns an abstract syntax tree instead of returning a compiled code object. | |
doc_11034 |
Get parameters of this kernel. 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_11035 |
Set the edgecolor(s) of the collection. Parameters
ccolor or list of colors or 'face'
The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor. | |
doc_11036 | The sound parameter to PlaySound() is a memory image of a WAV file, as a bytes-like object. Note This module does not support playing from a memory image asynchronously, so a combination of this flag and SND_ASYNC will raise RuntimeError. | |
doc_11037 | A string identifying what kind of data this element represents (the element type, in other words). | |
doc_11038 | Representation of the model, returns app_label.model_name, e.g. 'polls.question'. | |
doc_11039 |
Bases: collections.abc.Mapping Container for colormaps that are known to Matplotlib by name. Experimental While we expect the API to be final, we formally mark it as experimental for 3.5 because we want to keep the option to still adapt the API for 3.6 should the need arise. The universal registry instance is matpl... | |
doc_11040 |
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_11041 |
During training, randomly zeroes some of the elements of the input tensor with probability p using samples from a Bernoulli distribution. Each channel will be zeroed out independently on every forward call. This has proven to be an effective technique for regularization and preventing the co-adaptation of neurons as ... | |
doc_11042 | tf.experimental.numpy.flip(
m, axis=None
)
See the NumPy documentation for numpy.flip. | |
doc_11043 |
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_11044 | See Migration guide for more details. tf.compat.v1.app.flags.MultiEnumClassFlag
tf.compat.v1.flags.MultiEnumClassFlag(
name, default, help_string, enum_class, case_sensitive=False, **args
)
See the doc for MultiFlag for most behaviors of this class. In addition, this class knows how to handle enum.Enum instances... | |
doc_11045 | Wrap a WSGI application and profile the execution of each request. Responses are buffered so that timings are more exact. If stream is given, pstats.Stats are written to it after each request. If profile_dir is given, cProfile data files are saved to that directory, one file per request. The filename can be customized ... | |
doc_11046 |
Scalar method identical to the corresponding array attribute. Please see ndarray.max. | |
doc_11047 | tf.keras.losses.mape, tf.keras.losses.mean_absolute_percentage_error, tf.keras.metrics.MAPE, tf.keras.metrics.mape, tf.keras.metrics.mean_absolute_percentage_error, tf.losses.MAPE, tf.losses.mape, tf.losses.mean_absolute_percentage_error, tf.metrics.MAPE, tf.metrics.mape, tf.metrics.mean_absolute_percentage_error Compa... | |
doc_11048 |
Return the artist's zorder. | |
doc_11049 |
Draw a unstructured triangular grid as lines and/or markers. The triangulation to plot can be specified in one of two ways; either: triplot(triangulation, ...)
where triangulation is a Triangulation object, or triplot(x, y, ...)
triplot(x, y, triangles, ...)
triplot(x, y, triangles=triangles, ...)
triplot(x, y, mask... | |
doc_11050 | Creates an instance of BlueprintSetupState() object that is later passed to the register callback functions. Subclasses can override this to return a subclass of the setup state. Parameters
app (Flask) –
options (dict) –
first_registration (bool) – Return type
flask.blueprints.BlueprintSetupState | |
doc_11051 | Normalize the case of a pathname. On Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. On other operating systems, return the path unchanged. Changed in version 3.6: Accepts a path-like object. | |
doc_11052 | Implements the 'namereplace' error handling (for encoding with text encodings only): the unencodable character is replaced by a \N{...} escape sequence. New in version 3.5. | |
doc_11053 | Create a parser instance able to parse invalid markup. If convert_charrefs is True (the default), all character references (except the ones in script/style elements) are automatically converted to the corresponding Unicode characters. An HTMLParser instance is fed HTML data and calls handler methods when start tags, en... | |
doc_11054 |
Get the matrix for the affine part of this transform. | |
doc_11055 | Set the debugging level. The default debug level is 0, meaning no debugging output is printed. Any value greater than 0 will cause all currently defined debug output to be printed to stdout. The debuglevel is passed to any new HTTPResponse objects that are created. New in version 3.1. | |
doc_11056 | operator.__pos__(obj)
Return obj positive (+obj). | |
doc_11057 |
Return cross-section from the Series/DataFrame. This method takes a key argument to select data at a particular level of a MultiIndex. Parameters
key:label or tuple of label
Label contained in the index, or partially in a MultiIndex.
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
Axis to retrieve cross-sect... | |
doc_11058 |
For each element in self, return True if there are only numeric characters in the element. See also char.isnumeric | |
doc_11059 |
Return the product of the array elements over the given axis Refer to numpy.prod for full documentation. See also numpy.prod
equivalent function | |
doc_11060 | Token parameter displayed as a component of password reset URLs. Defaults to 'set-password'. | |
doc_11061 | Return the value of the string capability corresponding to the terminfo capability name capname as a bytes object. Return None if capname is not a terminfo “string capability”, or is canceled or absent from the terminal description. | |
doc_11062 | See Migration guide for more details. tf.compat.v1.igamma, tf.compat.v1.math.igamma
tf.math.igamma(
a, x, name=None
)
The lower regularized incomplete Gamma function is defined as: \(P(a, x) = gamma(a, x) / Gamma(a) = 1 - Q(a, x)\) where \(gamma(a, x) = \\int_{0}^{x} t^{a-1} exp(-t) dt\) is the lower incomplete ... | |
doc_11063 |
Return the scalar dtype or NumPy equivalent of Python type of an object. Parameters
repany
The object of which the type is returned.
defaultany, optional
If given, this is returned for objects whose types can not be determined. If not given, None is returned for those objects. Returns
dtypedtype or Py... | |
doc_11064 | load a camera Camera(device, (width, height), format) -> Camera Loads a v4l2 camera. The device is typically something like "/dev/video0". Default width and height are 640 by 480. Format is the desired colorspace of the output. This is useful for computer vision purposes. The default is RGB. The following are support... | |
doc_11065 | Exit status of the child process. Typically, an exit status of 0 indicates that it ran successfully. A negative value -N indicates that the child was terminated by signal N (POSIX only). | |
doc_11066 | Raised when an attempt is made to insert a node where the node type is not allowed. | |
doc_11067 | tf.tuple(
tensors, control_inputs=None, name=None
)
This creates a tuple of tensors with the same values as the tensors argument, except that the value of each tensor is only returned after the values of all tensors have been computed. control_inputs contains additional ops that have to finish before this op finis... | |
doc_11068 |
Alias for set_facecolor. | |
doc_11069 | Return the subprocess return code as an integer or None if it hasn’t returned, which is similar to the subprocess.Popen.returncode attribute. | |
doc_11070 |
Set the path effects. Parameters
path_effectsAbstractPathEffect | |
doc_11071 | Normally the __class__ attribute of an object will return its type. For a mock object with a spec, __class__ returns the spec class instead. This allows mock objects to pass isinstance() tests for the object they are replacing / masquerading as: >>> mock = Mock(spec=3)
>>> isinstance(mock, int)
True
__class__ is assig... | |
doc_11072 | tf.nn.weighted_cross_entropy_with_logits(
labels, logits, pos_weight, name=None
)
This is like sigmoid_cross_entropy_with_logits() except that pos_weight, allows one to trade off recall and precision by up- or down-weighting the cost of a positive error relative to a negative error. The usual cross-entropy cost is... | |
doc_11073 | Encapsulates the asynchronous execution of a callable. Future instances are created by Executor.submit() and should not be created directly except for testing.
cancel()
Attempt to cancel the call. If the call is currently being executed or finished running and cannot be cancelled then the method will return False, ... | |
doc_11074 | The return type of SSLContext.wrap_socket(), defaults to SSLSocket. The attribute can be overridden on instance of class in order to return a custom subclass of SSLSocket. New in version 3.7. | |
doc_11075 | See Migration guide for more details. tf.compat.v1.nest.is_nested
tf.nest.is_nested(
seq
)
Args
seq an input sequence.
Returns True if the sequence is a not a string and is a collections.abc.Sequence or a dict. | |
doc_11076 | os.sendfile(out_fd, in_fd, offset, count, headers=(), trailers=(), flags=0)
Copy count bytes from file descriptor in_fd to file descriptor out_fd starting at offset. Return the number of bytes sent. When EOF is reached return 0. The first function notation is supported by all platforms that define sendfile(). On Linu... | |
doc_11077 | Create a radio button control named name. property is the installer property that gets set when a radio button is selected.
add(name, x, y, width, height, text, value=None)
Add a radio button named name to the group, at the coordinates x, y, width, height, and with the label text. If value is None, it defaults to n... | |
doc_11078 | Return the actual SSL protocol version negotiated by the connection as a string, or None is no secure connection is established. As of this writing, possible return values include "SSLv2", "SSLv3", "TLSv1", "TLSv1.1" and "TLSv1.2". Recent OpenSSL versions may define more return values. New in version 3.5. | |
doc_11079 | Returns the current value of the ctypes-private copy of the system errno variable in the calling thread. Raises an auditing event ctypes.get_errno with no arguments. | |
doc_11080 |
Make sure every pushed graphics state is popped. | |
doc_11081 | Send byte data from a bytes-like object as a complete message. If offset is given then data is read from that position in buffer. If size is given then that many bytes will be read from buffer. Very large buffers (approximately 32 MiB+, though it depends on the OS) may raise a ValueError exception | |
doc_11082 | Computes the inverse of a symmetric positive-definite matrix AA using its Cholesky factor uu : returns matrix inv. The inverse is computed using LAPACK routines dpotri and spotri (and the corresponding MAGMA routines). If upper is False, uu is lower triangular such that the returned tensor is inv=(uuT)−1inv = (uu^{{... | |
doc_11083 | mmap.MADV_RANDOM
mmap.MADV_SEQUENTIAL
mmap.MADV_WILLNEED
mmap.MADV_DONTNEED
mmap.MADV_REMOVE
mmap.MADV_DONTFORK
mmap.MADV_DOFORK
mmap.MADV_HWPOISON
mmap.MADV_MERGEABLE
mmap.MADV_UNMERGEABLE
mmap.MADV_SOFT_OFFLINE
mmap.MADV_HUGEPAGE
mmap.MADV_NOHUGEPAGE
mmap.MADV_DONTDUMP
mmap.MADV_DODUMP
m... | |
doc_11084 | This will be used instead of DEFAULT_EXCEPTION_REPORTER_FILTER for the current request. See Custom error reports for details. | |
doc_11085 |
Bases: matplotlib.transforms.Transform 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. has_inverse=True
True if this transform has a corresponding inverse transform. ... | |
doc_11086 |
Return selected slices of this array along given axis. Refer to numpy.compress for full documentation. See also numpy.compress
equivalent function | |
doc_11087 | FIFO. | |
doc_11088 |
Compute the logarithm base 2 of x. Return the “principal value” (for a description of this, see numpy.log2) of \(log_2(x)\). For real x > 0, this is a real number (log2(0) returns -inf and log2(np.inf) returns inf). Otherwise, the complex principle value is returned. Parameters
xarray_like
The value(s) whose lo... | |
doc_11089 |
Draw samples from an F distribution. Samples are drawn from an F distribution with specified parameters, dfnum (degrees of freedom in numerator) and dfden (degrees of freedom in denominator), where both parameters must be greater than zero. The random variate of the F distribution (also known as the Fisher distributi... | |
doc_11090 |
Adjust the padding between and around subplots. To exclude an artist on the Axes from the bounding box calculation that determines the subplot parameters (i.e. legend, or annotation), set a.set_in_layout(False) for that artist. Parameters
padfloat, default: 1.08
Padding between the figure edge and the edges of ... | |
doc_11091 | resume paused playback of sound channels unpause() -> None This will resume all active sound channels after they have been paused. | |
doc_11092 | The provided mean is the circular one. | |
doc_11093 |
Return a shallow copy of the Path, which will share the vertices and codes with the source Path. | |
doc_11094 | A deprecated alias of OSError. Changed in version 3.3: Following PEP 3151, this class was made an alias of OSError. | |
doc_11095 |
Set the CapStyle for the collection (for all its elements). Parameters
csCapStyle or {'butt', 'projecting', 'round'} | |
doc_11096 | Open a new pseudo-terminal pair. Return a pair of file descriptors (master, slave) for the pty and the tty, respectively. The new file descriptors are non-inheritable. For a (slightly) more portable approach, use the pty module. Availability: some flavors of Unix. Changed in version 3.4: The new file descriptors are n... | |
doc_11097 | sys.__displayhook__
sys.__excepthook__
sys.__unraisablehook__
These objects contain the original values of breakpointhook, displayhook, excepthook, and unraisablehook at the start of the program. They are saved so that breakpointhook, displayhook and excepthook, unraisablehook can be restored in case they happen ... | |
doc_11098 | Returns a list of all hyperparameter specifications. | |
doc_11099 | | 1.0 MobileNet-224 | 70.6 % | 529 | 4.2 | | 1.0 MobileNet-192 | 69.1 % | 529 | 4.2 | | 1.0 MobileNet-160 | 67.2 % | 529 | 4.2 | | 1.0 MobileNet-128 | 64.4 % | 529 | 4.2 | Reference: MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications Functions MobileNet(...): Instantiates the MobileNe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.