_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_17700 |
Add a skew in place. xShear and yShear are the shear angles along the x- and y-axes, respectively, in radians. Returns self, so this method can easily be chained with more calls to rotate(), rotate_deg(), translate() and scale(). | |
doc_17701 | Construct an IPv4 network definition. address can be one of the following:
A string consisting of an IP address and an optional mask, separated by a slash (/). The IP address is the network address, and the mask can be either a single number, which means it’s a prefix, or a string representation of an IPv4 address. I... | |
doc_17702 | Return an object sent from the other end of the connection using send(). Blocks until there is something to receive. Raises EOFError if there is nothing left to receive and the other end was closed. | |
doc_17703 | Characters that will be considered string quotes. The token accumulates until the same quote is encountered again (thus, different quote types protect each other as in the shell.) By default, includes ASCII single and double quotes. | |
doc_17704 | Create a MIME-compliant header that can contain strings in different character sets. Optional s is the initial header value. If None (the default), the initial header value is not set. You can later append to the header with append() method calls. s may be an instance of bytes or str, but see the append() documentation... | |
doc_17705 | tf.compat.v1.train.linear_cosine_decay(
learning_rate, global_step, decay_steps, num_periods=0.5, alpha=0.0, beta=0.001,
name=None
)
Note that linear cosine decay is more aggressive than cosine decay and larger initial learning rates can typically be used. When training a model, it is often recommended to lowe... | |
doc_17706 | Decorator for the minimum version when running test on Linux. If the Linux version is less than the minimum, raise unittest.SkipTest. | |
doc_17707 | Returns a contiguous in memory tensor containing the same data as self tensor. If self tensor is already in the specified memory format, this function returns the self tensor. Parameters
memory_format (torch.memory_format, optional) – the desired memory format of returned Tensor. Default: torch.contiguous_format. | |
doc_17708 |
A ConvBnReLU2d module is a module fused from Conv2d, BatchNorm2d and ReLU, attached with FakeQuantize modules for weight, used in quantization aware training. We combined the interface of torch.nn.Conv2d and torch.nn.BatchNorm2d and torch.nn.ReLU. Similar to torch.nn.Conv2d, with FakeQuantize modules initialized to d... | |
doc_17709 | Return the value of field as an integer where possible. field must be an integer. | |
doc_17710 |
Get whether the legend box patch is drawn. | |
doc_17711 | resize and move a rectangle with aspect ratio fit(Rect) -> Rect Returns a new rectangle that is moved and resized to fit another. The aspect ratio of the original Rect is preserved, so the new rectangle may be smaller than the target in either width or height. | |
doc_17712 | Characters were found in the public id that are not allowed. | |
doc_17713 | Send a NEWNEWS command. Here, group is a group name or '*', and date has the same meaning as for newgroups(). Return a pair (response, articles) where articles is a list of message ids. This command is frequently disabled by NNTP server administrators. | |
doc_17714 |
Predict class probabilities for X. The predicted class probabilities of an input sample is computed as the weighted mean predicted class probabilities of the classifiers in the ensemble. This generator method yields the ensemble predicted class probabilities after each iteration of boosting and therefore allows monit... | |
doc_17715 |
Return a masked array with elements from x or y, depending on condition. Note When only condition is provided, this function is identical to nonzero. The rest of this documentation covers only the case where all three arguments are provided. Parameters
conditionarray_like, bool
Where True, yield x, otherwise ... | |
doc_17716 |
Make a plot with log scaling on both the x and y axis. Call signatures: loglog([x], y, [fmt], data=None, **kwargs)
loglog([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
This is just a thin wrapper around plot which additionally changes both the x-axis and the y-axis to log scaling. All of the concepts and parameter... | |
doc_17717 | Assert that the mock was awaited exactly once and with the specified arguments. >>> mock = AsyncMock()
>>> async def main(*args, **kwargs):
... await mock(*args, **kwargs)
...
>>> asyncio.run(main('foo', bar='bar'))
>>> mock.assert_awaited_once_with('foo', bar='bar')
>>> asyncio.run(main('foo', bar='bar'))
>>> mock... | |
doc_17718 | class socketserver.ForkingUDPServer
class socketserver.ThreadingTCPServer
class socketserver.ThreadingUDPServer
These classes are pre-defined using the mix-in classes. | |
doc_17719 | See Migration guide for more details. tf.compat.v1.raw_ops.OrderedMapUnstageNoKey
tf.raw_ops.OrderedMapUnstageNoKey(
indices, dtypes, capacity=0, memory_limit=0, container='',
shared_name='', name=None
)
key from the underlying container. If the underlying container does not contain elements, the op will blo... | |
doc_17720 |
Calculate plane equation coefficients for all unmasked triangles from the point (x, y) coordinates and specified z-array of shape (npoints). The returned array has shape (npoints, 3) and allows z-value at (x, y) position in triangle tri to be calculated using z = array[tri, 0] * x + array[tri, 1] * y + array[tri, 2]... | |
doc_17721 |
Number of nanoseconds (>= 0 and less than 1 microsecond) for each element. | |
doc_17722 | This is automatically called right before the response is started and returns headers modified for the given environment. It returns a copy of the headers from the response with some modifications applied if necessary. For example the location header (if present) is joined with the root URL of the environment. Also the... | |
doc_17723 | See Migration guide for more details. tf.compat.v1.app.flags.ListSerializer
tf.compat.v1.flags.ListSerializer(
list_sep
)
Methods serialize
serialize(
value
)
See base class. | |
doc_17724 | The body of the response, as a bytestring. This is the final page content as rendered by the view, or any error message. | |
doc_17725 | Returns the maximum value of the given expression. Default alias: <field>__max
Return type: same as input field, or output_field if supplied | |
doc_17726 | Return a list of the extended filesystem attributes on path. The attributes in the list are represented as strings decoded with the filesystem encoding. If path is None, listxattr() will examine the current directory. This function can support specifying a file descriptor and not following symlinks. Raises an auditing ... | |
doc_17727 |
Resize image to match a certain size. Performs interpolation to up-size or down-size N-dimensional images. Note that anti-aliasing should be enabled when down-sizing images to avoid aliasing artifacts. For down-sampling with an integer factor also see skimage.transform.downscale_local_mean. Parameters
imagendarra... | |
doc_17728 | See Migration guide for more details. tf.compat.v1.raw_ops.QueueDequeueMany
tf.raw_ops.QueueDequeueMany(
handle, n, component_types, timeout_ms=-1, name=None
)
If the queue is closed and there are fewer than n elements, then an OutOfRange error is returned. This operation concatenates queue-element component ten... | |
doc_17729 | Convert the frame rate of the input fragment. state is a tuple containing the state of the converter. The converter returns a tuple (newfragment, newstate), and newstate should be passed to the next call of ratecv(). The initial call should pass None as the state. The weightA and weightB arguments are parameters for a ... | |
doc_17730 | asyncore.loop([timeout[, use_poll[, map[, count]]]])
Enter a polling loop that terminates after count passes or all open channels have been closed. All arguments are optional. The count parameter defaults to None, resulting in the loop terminating only when all channels have been closed. The timeout argument sets the... | |
doc_17731 |
Bases: object A helper class to figure out the range of grid lines that need to be drawn. Parameters
nx, nyint
The number of samples in each direction. __call__(transform_xy, x1, y1, x2, y2)[source]
Compute an approximation of the bounding box obtained by applying transform_xy to the box delimited by (x... | |
doc_17732 | numeric argument to operation (if any), otherwise None | |
doc_17733 |
Handler for PolyCollection used in fill_between and stackplot. create_artists(legend, orig_handle, xdescent, ydescent, width, height, fontsize, trans)[source] | |
doc_17734 | Expat’s internal error number for the specific error. The errors.messages dictionary maps these error numbers to Expat’s error messages. For example: from xml.parsers.expat import ParserCreate, ExpatError, errors
p = ParserCreate()
try:
p.Parse(some_xml_document)
except ExpatError as err:
print("Error:", error... | |
doc_17735 | returns the squared magnitude of the vector. magnitude_squared() -> float calculates the magnitude of the vector which follows from the theorem: vec.magnitude_squared() == vec.x**2 + vec.y**2. This is faster than vec.magnitude() because it avoids the square root. | |
doc_17736 | Returns a list containing the elements of this storage | |
doc_17737 |
Bases: object A series of possibly disconnected, possibly closed, line and curve segments. The underlying storage is made up of two parallel numpy arrays:
vertices: an Nx2 float array of vertices
codes: an N-length uint8 array of path codes, or None These two arrays always have the same length in the first dimens... | |
doc_17738 |
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_17739 |
Pygame unit test suite package A quick way to run the test suite package from the command line is to import the go submodule with the Python -m option: python -m pygame.tests [<test options>] Command line option --help displays a usage message. Available options correspond to the pygame.tests.run() arguments. The ... | |
doc_17740 | See Migration guide for more details. tf.compat.v1.glorot_normal_initializer, tf.compat.v1.initializers.glorot_normal
tf.compat.v1.keras.initializers.glorot_normal(
seed=None, dtype=tf.dtypes.float32
)
It draws samples from a truncated normal distribution centered on 0 with standard deviation (after truncation) ... | |
doc_17741 | tf.compat.v1.distribute.experimental.ParameterServerStrategy(
cluster_resolver=None
)
This strategy requires two roles: workers and parameter servers. Variables and updates to those variables will be assigned to parameter servers and other operations are assigned to workers. When each worker has more than one GPU,... | |
doc_17742 | See torch.dist() | |
doc_17743 | Raise a URLError exception. | |
doc_17744 | See Migration guide for more details. tf.compat.v1.raw_ops.DynamicPartition
tf.raw_ops.DynamicPartition(
data, partitions, num_partitions, name=None
)
For each index tuple js of size partitions.ndim, the slice data[js, ...] becomes part of outputs[partitions[js]]. The slices with partitions[js] = i are placed in... | |
doc_17745 |
Create a sliding window view into the array with the given window shape. Also known as rolling or moving window, the window slides across all dimensions of the array and extracts subsets of the array at all window positions. New in version 1.20.0. Parameters
xarray_like
Array to create the sliding window view... | |
doc_17746 |
Bases: matplotlib.transforms.Transform The base class of all affine transformations of any number of dimensions. 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. __array... | |
doc_17747 | See Migration guide for more details. tf.compat.v1.initializers.local_variables
tf.compat.v1.local_variables_initializer()
This is just a shortcut for variables_initializer(local_variables())
Returns An Op that initializes all local variables in the graph. | |
doc_17748 |
Fit Naive Bayes classifier according to X, y Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of features. Here, each feature of X is assumed to be from a different categorical distribution. It is fur... | |
doc_17749 |
Set the artist's visibility. Parameters
bbool | |
doc_17750 | Write any pending changes to the filesystem. For some Mailbox subclasses, changes are always written immediately and flush() does nothing, but you should still make a habit of calling this method. | |
doc_17751 | Return a dictionary representing the current global symbol table. This is always the dictionary of the current module (inside a function or method, this is the module where it is defined, not the module from which it is called). | |
doc_17752 | Attach a mock as an attribute of this one, replacing its name and parent. Calls to the attached mock will be recorded in the method_calls and mock_calls attributes of this one. | |
doc_17753 | tf.compat.v1.gfile.DeleteRecursively(
dirname
)
Args
dirname string, a path to a directory
Raises
errors.OpError If the operation fails. | |
doc_17754 | class typing.Match
These type aliases correspond to the return types from re.compile() and re.match(). These types (and the corresponding functions) are generic in AnyStr and can be made specific by writing Pattern[str], Pattern[bytes], Match[str], or Match[bytes]. These types are also in the typing.re namespace. De... | |
doc_17755 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayRead
tf.raw_ops.TensorArrayRead(
handle, index, flow_in, dtype, name=None
)
Args
handle A Tensor of type mutable string.
index A Tensor of type int32.
flow_in A Tensor of type float32.
dtype A tf.DType.
name A ... | |
doc_17756 |
Remove small Poly series coefficients. Parameters
seqsequence
Sequence of Poly series coefficients. This routine fails for empty sequences. Returns
seriessequence
Subsequence with trailing zeros removed. If the resulting sequence would be empty, return the first element. The returned sequence may or may... | |
doc_17757 | See Migration guide for more details. tf.compat.v1.config.PhysicalDevice
tf.config.PhysicalDevice(
name, device_type
)
TensorFlow can utilize various devices such as the CPU or multiple GPUs for computation. Before initializing a local device for use, the user can customize certain properties of the device such ... | |
doc_17758 | tf.linalg.banded_triangular_solve(
bands, rhs, lower=True, adjoint=False, name=None
)
bands is a tensor of shape [..., K, M], where K represents the number of bands stored. This corresponds to a batch of M by M matrices, whose K subdiagonals (when lower is True) are stored. This operator broadcasts the batch dimen... | |
doc_17759 | See torch.igammac() | |
doc_17760 |
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None | |
doc_17761 | See Migration guide for more details. tf.compat.v1.raw_ops.ParseSingleSequenceExample
tf.raw_ops.ParseSingleSequenceExample(
serialized, feature_list_dense_missing_assumed_empty, context_sparse_keys,
context_dense_keys, feature_list_sparse_keys, feature_list_dense_keys,
context_dense_defaults, debug_name,... | |
doc_17762 |
Make a polar plot. call signature: polar(theta, r, **kwargs)
Multiple theta, r arguments are supported, with format strings, as in plot.
Examples using matplotlib.pyplot.polar
transforms.offset_copy | |
doc_17763 |
Set the linestyle(s) for the collection.
linestyle description
'-' or 'solid' solid line
'--' or 'dashed' dashed line
'-.' or 'dashdot' dash-dotted line
':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq),
where onoffseq is an even length tup... | |
doc_17764 | See Migration guide for more details. tf.compat.v1.keras.layers.SimpleRNN
tf.keras.layers.SimpleRNN(
units, activation='tanh', use_bias=True,
kernel_initializer='glorot_uniform',
recurrent_initializer='orthogonal',
bias_initializer='zeros', kernel_regularizer=None,
recurrent_regularizer=None, bias... | |
doc_17765 |
Bases: object Linear Position-Invariant Filter (2-dimensional)
__init__(impulse_response, **filter_params) [source]
Parameters
impulse_responsecallable f(r, c, **filter_params)
Function that yields the impulse response. r and c are 1-dimensional vectors that represent row and column positions, in other word... | |
doc_17766 | See Migration guide for more details. tf.compat.v1.raw_ops.Maximum
tf.raw_ops.Maximum(
x, y, name=None
)
Example:
x = tf.constant([0., 0., 0., 0.])
y = tf.constant([-2., 0., 2., 5.])
tf.math.maximum(x, y)
<tf.Tensor: shape=(4,), dtype=float32, numpy=array([0., 0., 2., 5.], dtype=float32)>
Args
x A Ten... | |
doc_17767 |
Return whether the bbox has changed since init. | |
doc_17768 |
Indicate duplicate Series values. Duplicated values are indicated as True values in the resulting Series. Either all duplicates, all except the first or all except the last occurrence of duplicates can be indicated. Parameters
keep:{‘first’, ‘last’, False}, default ‘first’
Method to handle dropping duplicates: ... | |
doc_17769 |
Pygame module for interacting with joysticks, gamepads, and trackballs. The joystick module manages the joystick devices on a computer. Joystick devices include trackballs and video-game-style gamepads, and the module allows the use of multiple buttons and "hats". Computers may manage multiple joysticks at a time.... | |
doc_17770 | Computes the element-wise remainder of division. The dividend and divisor may contain both for integer and floating point numbers. The remainder has the same sign as the dividend input. Supports broadcasting to a common shape, type promotion, and integer and float inputs. Note When the divisor is zero, returns NaN for... | |
doc_17771 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyProximalAdagrad
tf.raw_ops.SparseApplyProximalAdagrad(
var, accum, lr, l1, l2, grad, indices, use_locking=False, name=None
)
That is for rows we have grad for, we update var and accum as follows: $$accum += grad * grad$$ $$prox_v = var$$ ... | |
doc_17772 | >>> import mymodule
>>> pdb.run('mymodule.test()')
> <string>(0)?()
(Pdb) continue
> <string>(1)?()
(Pdb) continue
NameError: 'spam'
> <string>(1)?()
(Pdb)
Changed in version 3.3: Tab-completion via the readline module is available for commands and command arguments, e.g. the current global and local names are offere... | |
doc_17773 | The address of the client sending the request. | |
doc_17774 | sklearn.metrics.v_measure_score(labels_true, labels_pred, *, beta=1.0) [source]
V-measure cluster labeling given a ground truth. This score is identical to normalized_mutual_info_score with the 'arithmetic' option for averaging. The V-measure is the harmonic mean between homogeneity and completeness: v = (1 + beta) *... | |
doc_17775 |
Draw samples from a Gumbel distribution. Draw samples from a Gumbel distribution with specified location and scale. For more information on the Gumbel distribution, see Notes and References below. Parameters
locfloat or array_like of floats, optional
The location of the mode of the distribution. Default is 0. ... | |
doc_17776 | See Migration guide for more details. tf.compat.v1.keras.models.load_model
tf.keras.models.load_model(
filepath, custom_objects=None, compile=True, options=None
)
Usage:
model = tf.keras.Sequential([
tf.keras.layers.Dense(5, input_shape=(3,)),
tf.keras.layers.Softmax()])
model.save('/tmp/model')
loaded_... | |
doc_17777 | Get the currency symbol, preceded by “-” if the symbol should appear before the value, “+” if the symbol should appear after the value, or “.” if the symbol should replace the radix character. | |
doc_17778 | The method closes the stream and the underlying socket. The method should be used along with the wait_closed() method: stream.close()
await stream.wait_closed() | |
doc_17779 | tf.experimental.numpy.isrealobj(
x
)
See the NumPy documentation for numpy.isrealobj. | |
doc_17780 |
Validate scalar parameters type and value. Parameters
xobject
The scalar parameter to validate.
namestr
The name of the parameter to be printed in error messages.
target_typetype or tuple
Acceptable data types for the parameter.
min_valfloat or int, default=None
The minimum valid value the parameter... | |
doc_17781 | Group has write permission. | |
doc_17782 | Wrap a WSGI application so that cleaning up happens after request end. Parameters
app (WSGIApplication) – Return type
WSGIApplication | |
doc_17783 |
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. Returns
selfobject
returns an instance of self. | |
doc_17784 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalRebatchDataset
tf.raw_ops.ExperimentalRebatchDataset(
input_dataset, num_replicas, output_types, output_shapes, use_fallback=True,
name=None
)
Creates a dataset that changes the batch size of the dataset to current batch size // num_repli... | |
doc_17785 | See Migration guide for more details. tf.compat.v1.initializers.random_uniform
tf.compat.v1.random_uniform_initializer(
minval=0, maxval=None, seed=None, dtype=tf.dtypes.float32
)
Args
minval A python scalar or a scalar tensor. Lower bound of the range of random values to generate.
maxval A python... | |
doc_17786 |
Plot filled polygons. Parameters
*argssequence of x, y, [color]
Each polygon is defined by the lists of x and y positions of its nodes, optionally followed by a color specifier. See matplotlib.colors for supported color specifiers. The standard color cycle is used for polygons without a color specifier. You can... | |
doc_17787 |
Bases: matplotlib.backend_bases.GraphicsContextBase The graphics context provides the color, line styles, etc... See the cairo and postscript backends for examples of mapping the graphics context attributes (cap styles, join styles, line widths, colors) to a particular backend. In cairo this is done by wrapping a cai... | |
doc_17788 | Convert the etags set into a HTTP header string. | |
doc_17789 |
Return whether the x-limits have changed since init. | |
doc_17790 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_multi_enum
tf.compat.v1.flags.DEFINE_multi_enum(
name, default, enum_values, help, flag_values=_flagvalues.FLAGS,
case_sensitive=True, **args
)
Use the flag on the command line multiple times to place multiple enum values into the list. The ... | |
doc_17791 |
Compute the weighted log probabilities for each sample. Parameters
Xarray-like of shape (n_samples, n_features)
List of n_features-dimensional data points. Each row corresponds to a single data point. Returns
log_probarray, shape (n_samples,)
Log probabilities of each data point in X. | |
doc_17792 | See Migration guide for more details. tf.compat.v1.raw_ops.PlaceholderV2
tf.raw_ops.PlaceholderV2(
dtype, shape, name=None
)
N.B. This operation will fail with an error if it is executed. It is intended as a way to represent a value that will always be fed, and to provide attrs that enable the fed value to be ch... | |
doc_17793 |
Compute the median along the specified axis. Returns the median of the array elements. Parameters
aarray_like
Input array or object that can be converted to an array.
axis{int, sequence of int, None}, optional
Axis or axes along which the medians are computed. The default is to compute the median along a fl... | |
doc_17794 | Return the total number of headers, including duplicates. | |
doc_17795 |
Set the mask. | |
doc_17796 |
Test whether the artist contains the mouse event. Parameters
mouseeventmatplotlib.backend_bases.MouseEvent
Returns
containsbool
Whether any values are within the radius.
detailsdict
An artist-specific dictionary of details of the event context, such as which points are contained in the pick radius. Se... | |
doc_17797 | tf.complex Compat aliases for migration See Migration guide for more details. tf.compat.v1.complex, tf.compat.v1.dtypes.complex
tf.dtypes.complex(
real, imag, name=None
)
Given a tensor real representing the real part of a complex number, and a tensor imag representing the imaginary part of a complex number, thi... | |
doc_17798 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_17799 | tf.image.decode_image Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_image, tf.compat.v1.io.decode_image
tf.io.decode_image(
contents, channels=None, dtype=tf.dtypes.uint8, name=None,
expand_animations=True
)
Detects whether an image is a BMP, GIF, JPEG, or PNG, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.