_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_9000 |
Join given arguments into the same set. Accepts one or more arguments. | |
doc_9001 |
Apply a flat kernel bilateral filter. This is an edge-preserving and noise reducing denoising filter. It averages pixels based on their spatial closeness and radiometric similarity. Spatial closeness is measured by considering only the local pixel neighborhood given by a structuring element (selem). Radiometric simil... | |
doc_9002 | tf.compat.v1.nn.embedding_lookup_sparse(
params, sp_ids, sp_weights, partition_strategy='mod', name=None,
combiner=None, max_norm=None
)
This op assumes that there is at least one id for each row in the dense tensor represented by sp_ids (i.e. there are no rows with empty features), and that all the indices of... | |
doc_9003 |
Compute cluster centers and predict cluster index for each sample. Convenience method; equivalent to calling fit(X) followed by predict(X). Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
New data to transform.
yIgnored
Not used, present here for API consistency by convention.
sam... | |
doc_9004 |
Define how the two endpoints (caps) of an unclosed line are drawn. How to draw the start and end points of lines that represent a closed curve (i.e. that end in a CLOSEPOLY) is controlled by the line's JoinStyle. For all other lines, how the start and end points are drawn is controlled by the CapStyle. For a visual i... | |
doc_9005 |
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_9006 | Default widget: SelectMultiple
Empty value: An empty QuerySet (self.queryset.none()) Normalizes to: A QuerySet of model instances. Validates that every id in the given list of values exists in the queryset. Error message keys: required, invalid_list, invalid_choice, invalid_pk_value
The invalid_choice message may c... | |
doc_9007 |
Print detailed information on the store. Returns
str | |
doc_9008 |
Bases: object Manages the Comm connection between IPython and the browser (client). Comms are 2 way, with the CommSocket being able to publish a message via the send_json method, and handle a message with on_message. On the JS side figure.send_message and figure.ws.onmessage do the sending and receiving respectively.... | |
doc_9009 |
Enter "raster" mode. All subsequent drawing commands (until stop_rasterizing is called) will be drawn with the raster backend. | |
doc_9010 |
A debug function to draw a rectangle around the bounding box returned by an artist's Artist.get_window_extent to test whether the artist is returning the correct bbox. props is a dict of rectangle props with the additional property 'pad' that sets the padding around the bbox in points. | |
doc_9011 | tf.data.experimental.SqlDataset(
driver_name, data_source_name, query, output_types
)
Args
driver_name A 0-D tf.string tensor containing the database type. Currently, the only supported value is 'sqlite'.
data_source_name A 0-D tf.string tensor containing a connection string to connect to the databa... | |
doc_9012 |
Fit the k-nearest neighbors transformer from the training dataset. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples, n_samples) if metric=’precomputed’
Training data. Returns
selfKNeighborsTransformer
The fitted k-nearest neighbors transformer. | |
doc_9013 | Adds a child module to the current module. The module can be accessed as an attribute using the given name. Parameters
name (string) – name of the child module. The child module can be accessed from this module using the given name
module (Module) – child module to be added to the module. | |
doc_9014 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_9015 | Permission bits. | |
doc_9016 |
Throw a ValueError if X contains NaN or infinity. Parameters
X{ndarray, sparse matrix}
allow_nanbool, default=False | |
doc_9017 | sklearn.linear_model.lars_path(X, y, Xy=None, *, Gram=None, max_iter=500, alpha_min=0, method='lar', copy_X=True, eps=2.220446049250313e-16, copy_Gram=True, verbose=0, return_path=True, return_n_iter=False, positive=False) [source]
Compute Least Angle Regression or Lasso path using LARS algorithm [1] The optimization... | |
doc_9018 | Return the remote address to which the socket is connected. This is useful to find out the port number of a remote IPv4/v6 socket, for instance. (The format of the address returned depends on the address family — see above.) On some systems this function is not supported. | |
doc_9019 | See Migration guide for more details. tf.compat.v1.raw_ops.AssertNextDataset
tf.raw_ops.AssertNextDataset(
input_dataset, transformations, output_types, output_shapes, name=None
)
This transformation checks whether the camel-case names (i.e. "FlatMap", not "flat_map") of the transformations following this transf... | |
doc_9020 | sklearn.metrics.adjusted_mutual_info_score(labels_true, labels_pred, *, average_method='arithmetic') [source]
Adjusted Mutual Information between two clusterings. Adjusted Mutual Information (AMI) is an adjustment of the Mutual Information (MI) score to account for chance. It accounts for the fact that the MI is gene... | |
doc_9021 |
Return str(self). | |
doc_9022 | Add and return a PushButton control. | |
doc_9023 |
Find contiguous unmasked data in a masked array along the given axis. Parameters
anarray
The input array. Returns
slice_listlist
A sorted sequence of slice objects (start index, end index). Changed in version 1.15.0: Now returns an empty list instead of None for a fully masked array See also
fl... | |
doc_9024 | """
May be applied as a `default=...` value on a serializer field.
Returns the current user.
"""
requires_context = True
def __call__(self, serializer_field):
return serializer_field.context['request'].user
When serializing the instance, default will be used if the object attribute or ... | |
doc_9025 |
Compute the reconstruction error for the embedding. Returns
reconstruction_errorfloat
Notes The cost function of an isomap embedding is E = frobenius_norm[K(D) - K(D_fit)] / n_samples Where D is the matrix of distances for the input data X, D_fit is the matrix of distances for the output embedding X_fit, and ... | |
doc_9026 | tf.experimental.numpy.dot(
a, b
)
See the NumPy documentation for numpy.dot. | |
doc_9027 | Tests that two sequences are equal. If a seq_type is supplied, both first and second must be instances of seq_type or a failure will be raised. If the sequences are different an error message is constructed that shows the difference between the two. This method is not called directly by assertEqual(), but it’s used to ... | |
doc_9028 | See Migration guide for more details. tf.compat.v1.raw_ops.TPUPartitionedCall
tf.raw_ops.TPUPartitionedCall(
args, device_ordinal, Tout, f, autotuner_thresh=0, name=None
)
Args
args A list of Tensor objects. The arguments to the function.
device_ordinal A Tensor of type int32. The TPU device ordin... | |
doc_9029 | tf.compat.v1.variable_axis_size_partitioner(
max_shard_bytes, axis=0, bytes_per_string_element=16, max_shards=None
)
This partitioner will shard a Variable along one axis, attempting to keep the maximum shard size below max_shard_bytes. In practice, this is not always possible when sharding along only one axis. Wh... | |
doc_9030 | tf.compat.v1.logging.log_every_n(
level, msg, n, *args
)
Logs the 1st call, (N+1)st call, (2N+1)st call, etc. Not threadsafe.
Args
level The level at which to log.
msg The message to be logged.
n The number of times this should be called before it is logged.
*args The args to be substitu... | |
doc_9031 | torch.fft.fft(input, n=None, dim=-1, norm=None) → Tensor
Computes the one dimensional discrete Fourier transform of input. Note The Fourier domain representation of any real signal satisfies the Hermitian property: X[i] = conj(X[-i]). This function always returns both the positive and negative frequency terms even t... | |
doc_9032 |
Return DataFrame of dummy/indicator variables for Series. Each string in Series is split by sep and returned as a DataFrame of dummy/indicator variables. Parameters
sep:str, default “|”
String to split on. Returns
DataFrame
Dummy variables corresponding to values of the Series. See also get_dummies
... | |
doc_9033 | Return True if the object is a user-defined or built-in function or method. | |
doc_9034 |
Set the antialiasing state for rendering. Parameters
aabool or list of bools | |
doc_9035 | tf.truediv Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.truediv, tf.compat.v1.truediv
tf.math.truediv(
x, y, name=None
)
Note: Prefer using the Tensor operator or tf.divide which obey Python division operator semantics.
This function forces Python 3 division operator sem... | |
doc_9036 |
The week ordinal of the year. | |
doc_9037 | The UUID as a URN as specified in RFC 4122. | |
doc_9038 | RenderUpdates sub-class that draws Sprites in order of addition. OrderedUpdates(*spites) -> OrderedUpdates This class derives from pygame.sprite.RenderUpdates(). It maintains the order in which the Sprites were added to the Group for rendering. This makes adding and removing Sprites from the Group a little slower tha... | |
doc_9039 | Return the value of the environment variable key if it exists, or default if it doesn’t. key, default and the result are str. On Unix, keys and values are decoded with sys.getfilesystemencoding() and 'surrogateescape' error handler. Use os.getenvb() if you would like to use a different encoding. Availability: most flav... | |
doc_9040 |
Checking if the default process group has been initialized | |
doc_9041 | A base transport for write-only connections. Instances of the WriteTransport class are returned from the loop.connect_write_pipe() event loop method and are also used by subprocess-related methods like loop.subprocess_exec(). | |
doc_9042 |
Append to Table in file. Node must already exist and be Table format. Parameters
key:str
value:{Series, DataFrame}
format:‘table’ is the default
Format to use when storing object in HDFStore. Value can be one of: 'table'
Table format. Write as a PyTables Table structure which may perform worse but allow m... | |
doc_9043 | See Migration guide for more details. tf.compat.v1.app.flags.BaseListParser
tf.compat.v1.flags.BaseListParser(
token=None, name=None
)
To extend, inherit from this class; from the subclass init, call BaseListParser.__init__(self, token, name)
where token is a character used to tokenize, and name is a descriptio... | |
doc_9044 | The return value from run(), representing a process that has finished.
args
The arguments used to launch the process. This may be a list or a string.
returncode
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... | |
doc_9045 |
Draw samples from a standard Gamma distribution. Samples are drawn from a Gamma distribution with specified parameters, shape (sometimes designated “k”) and scale=1. Note New code should use the standard_gamma method of a default_rng() instance instead; please see the Quick Start. Parameters
shapefloat or array... | |
doc_9046 |
Calculate pct_change of each value to previous entry in group. Returns
Series or DataFrame
Percentage changes within each group. See also Series.groupby
Apply a function groupby to a Series. DataFrame.groupby
Apply a function groupby to each row or column of a DataFrame. | |
doc_9047 | Set date_hierarchy to the name of a DateField or DateTimeField in your model, and the change list page will include a date-based drilldown navigation by that field. Example: date_hierarchy = 'pub_date'
You can also specify a field on a related model using the __ lookup, for example: date_hierarchy = 'author__pub_date'... | |
doc_9048 |
Add an Axes to the current figure or retrieve an existing Axes. This is a wrapper of Figure.add_subplot which provides additional behavior when working with the implicit API (see the notes section). Call signatures: subplot(nrows, ncols, index, **kwargs)
subplot(pos, **kwargs)
subplot(**kwargs)
subplot(ax)
Paramete... | |
doc_9049 | temporarily stop playback of all sound channels pause() -> None This will temporarily stop all playback on the active mixer channels. The playback can later be resumed with pygame.mixer.unpause() | |
doc_9050 |
The last colorbar associated with this ScalarMappable. May be None. | |
doc_9051 | Learns what headers to take into account for some request path from the response object. It stores those headers in a global path registry so that later access to that path will know what headers to take into account without building the response object itself. The headers are named in the Vary header of the response, ... | |
doc_9052 | rotates the vector by a given angle in radians in place. rotate_ip_rad(angle, Vector3) -> None Rotates the vector counterclockwise around the given axis by the given angle in radians. The length of the vector is not changed. New in pygame 2.0.0. | |
doc_9053 | Returns True if both tensors are pointing to the exact same memory (same storage, offset, size and stride). | |
doc_9054 |
Number of elements in the array. Equal to np.prod(a.shape), i.e., the product of the array’s dimensions. Notes a.size returns a standard arbitrary precision Python integer. This may not be the case with other methods of obtaining the same value (like the suggested np.prod(a.shape), which returns an instance of np.int... | |
doc_9055 |
Return a fixed frequency PeriodIndex. The day (calendar) is the default frequency. Parameters
start:str or period-like, default None
Left bound for generating periods.
end:str or period-like, default None
Right bound for generating periods.
periods:int, default None
Number of periods to generate.
freq... | |
doc_9056 | Return a new featureless object. object is a base for all classes. It has the methods that are common to all instances of Python classes. This function does not accept any arguments. Note object does not have a __dict__, so you can’t assign arbitrary attributes to an instance of the object class. | |
doc_9057 | However, array scalars are immutable, so none of the array scalar attributes are settable. Built-in scalar types The built-in scalar types are shown below. The C-like names are associated with character codes, which are shown in their descriptions. Use of the character codes, however, is discouraged. Some of the sca... | |
doc_9058 | sklearn.decomposition.sparse_encode(X, dictionary, *, gram=None, cov=None, algorithm='lasso_lars', n_nonzero_coefs=None, alpha=None, copy_cov=True, init=None, max_iter=1000, n_jobs=None, check_input=True, verbose=0, positive=False) [source]
Sparse coding Each row of the result is the solution to a sparse coding probl... | |
doc_9059 | Returns the stride of self tensor. Stride is the jump necessary to go from one element to the next one in the specified dimension dim. A tuple of all strides is returned when no argument is passed in. Otherwise, an integer value is returned as the stride in the particular dimension dim. Parameters
dim (int, optional)... | |
doc_9060 |
Copy properties from other to self. | |
doc_9061 |
Return a tuple representing the internal state of the generator. For more details, see set_state. Parameters
legacybool, optional
Flag indicating to return a legacy tuple state when the BitGenerator is MT19937, instead of a dict. Returns
out{tuple(str, ndarray of 624 uints, int, int, float), dict}
The r... | |
doc_9062 | The default scheduling policy. | |
doc_9063 |
Set the value array from array-like A. Parameters
Aarray-like or None
The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A. | |
doc_9064 | class ast.NotEq
class ast.Lt
class ast.LtE
class ast.Gt
class ast.GtE
class ast.Is
class ast.IsNot
class ast.In
class ast.NotIn
Comparison operator tokens. | |
doc_9065 |
Function that computes the Jacobian of a given function. Parameters
func (function) – a Python function that takes Tensor inputs and returns a tuple of Tensors or a Tensor.
inputs (tuple of Tensors or Tensor) – inputs to the function func.
create_graph (bool, optional) – If True, the Jacobian will be computed i... | |
doc_9066 | Subtracts other, scaled by alpha, from input. outi=inputi−alpha×otheri\text{{out}}_i = \text{{input}}_i - \text{{alpha}} \times \text{{other}}_i
Supports broadcasting to a common shape, type promotion, and integer, float, and complex inputs. Parameters
input (Tensor) – the input tensor.
other (Tensor or Scalar)... | |
doc_9067 | Return a weak reference to object. The original object can be retrieved by calling the reference object if the referent is still alive; if the referent is no longer alive, calling the reference object will cause None to be returned. If callback is provided and not None, and the returned weakref object is still alive, t... | |
doc_9068 |
Return local median of an image. Parameters
imagearray-like
Input image.
selemndarray, optional
If behavior=='rank', selem is a 2-D array of 1’s and 0’s. If behavior=='ndimage', selem is a N-D array of 1’s and 0’s with the same number of dimension than image. If None, selem will be a N-D array with 3 elemen... | |
doc_9069 |
Transform X to a cluster-distance space. In the new space, each dimension is the distance to the cluster centers. Note that even if X is sparse, the array returned by transform will typically be dense. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
New data to transform. Returns
... | |
doc_9070 | Delete all occurrences of the field with name name from the message’s headers. No exception is raised if the named field isn’t present in the headers. | |
doc_9071 |
Compute the pruning path during Minimal Cost-Complexity Pruning. See Minimal Cost-Complexity Pruning for details on the pruning process. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matri... | |
doc_9072 | Returns the URL that users who don’t pass the test will be redirected to. Returns login_url if set, or settings.LOGIN_URL otherwise. | |
doc_9073 |
Apply transforms, and decision_function of the final estimator Parameters
Xiterable
Data to predict on. Must fulfill input requirements of first step of the pipeline. Returns
y_scorearray-like of shape (n_samples, n_classes) | |
doc_9074 | Set the current process’s effective group id. Availability: Unix. | |
doc_9075 | See Migration guide for more details. tf.compat.v1.sparse.segment_sum
tf.compat.v1.sparse_segment_sum(
data, indices, segment_ids, name=None, num_segments=None
)
Read the section on segmentation for an explanation of segments. Like tf.math.segment_sum, but segment_ids can have rank less than data's first dimensi... | |
doc_9076 | binascii.unhexlify(hexstr)
Return the binary data represented by the hexadecimal string hexstr. This function is the inverse of b2a_hex(). hexstr must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise an Error exception is raised. Similar functionality (accepting only text str... | |
doc_9077 | Convert the pathname path from the local syntax for a path to the form used in the path component of a URL. This does not produce a complete URL. The return value will already be quoted using the quote() function. | |
doc_9078 | Create and return a new SharedMemory object with the specified size in bytes. | |
doc_9079 | Read and return at most size characters from the stream as a single str. If size is negative or None, reads until EOF. | |
doc_9080 |
Pads the input tensor boundaries with a constant value. For N-dimensional padding, use torch.nn.functional.pad(). Parameters
padding (int, tuple) – the size of the padding. If is int, uses the same padding in both boundaries. If a 2-tuple, uses (padding_left\text{padding\_left} , padding_right\text{padding\_right} ... | |
doc_9081 |
Return the name of the current backend. See also matplotlib.use | |
doc_9082 |
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_9083 | ExtremeFinderCycle(nx, ny[, lon_cycle, ...]) This subclass handles the case where one or both coordinates should be taken modulo 360, or be restricted to not exceed a specific range.
FormatterDMS()
FormatterHMS()
LocatorBase(nbins[, include_last])
LocatorD(nbins[, include_last])
LocatorDM(nbins[, include_... | |
doc_9084 | (default: True) If true, whitespace at the beginning and ending of every line (after wrapping but before indenting) is dropped. Whitespace at the beginning of the paragraph, however, is not dropped if non-whitespace follows it. If whitespace being dropped takes up an entire line, the whole line is dropped. | |
doc_9085 |
Check elementwise if an Interval overlaps the values in the IntervalArray. Two intervals overlap if they share a common point, including closed endpoints. Intervals that only have an open endpoint in common do not overlap. Parameters
other:IntervalArray
Interval to check against for an overlap. Returns
nda... | |
doc_9086 | torch.nn.init.calculate_gain(nonlinearity, param=None) [source]
Return the recommended gain value for the given nonlinearity function. The values are as follows:
nonlinearity gain
Linear / Identity 11
Conv{1,2,3}D 11
Sigmoid 11
Tanh 53\frac{5}{3}
ReLU 2\sqrt{2}
Leaky Relu 21+negative_slope2\sqrt{... | |
doc_9087 | This is usually a string explaining the reason for this error. | |
doc_9088 | This class constructor creates an instance of a “statistics object” from a filename (or list of filenames) or from a Profile instance. Output will be printed to the stream specified by stream. The file selected by the above constructor must have been created by the corresponding version of profile or cProfile. To be sp... | |
doc_9089 | Perform binhex4 style RLE-compression on data and return the result. Deprecated since version 3.9. | |
doc_9090 | Set fieldsets to control the layout of admin “add” and “change” pages. fieldsets is a list of two-tuples, in which each two-tuple represents a <fieldset> on the admin form page. (A <fieldset> is a “section” of the form.) The two-tuples are in the format (name, field_options), where name is a string representing the tit... | |
doc_9091 | See Migration guide for more details. tf.compat.v1.config.experimental.get_memory_growth
tf.config.experimental.get_memory_growth(
device
)
If memory growth is enabled for a PhysicalDevice, the runtime initialization will not allocate all memory on the device. For example:
physical_devices = tf.config.list_phys... | |
doc_9092 | tf.image.rgb_to_grayscale, tf.image.grayscale_to_rgb
tf.image.rgb_to_hsv, tf.image.hsv_to_rgb
tf.image.rgb_to_yiq, tf.image.yiq_to_rgb
tf.image.rgb_to_yuv, tf.image.yuv_to_rgb
tf.image.image_gradients tf.image.convert_image_dtype Image Adjustments TensorFlow provides functions to adjust images in various ways: ... | |
doc_9093 | A case insensitive, dict-like object that provides access to all HTTP-prefixed headers (plus Content-Length and Content-Type) from the request. The name of each header is stylized with title-casing (e.g. User-Agent) when it’s displayed. You can access headers case-insensitively: >>> request.headers
{'User-Agent': 'Mozi... | |
doc_9094 | Converts obj to a string. Used to serialize the value of the field. See Converting field data for serialization for usage. | |
doc_9095 |
Calculate the expanding variance. Parameters
ddof:int, default 1
Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements. *args
For NumPy compatibility and will not have an effect on the result.
engine:str, default None
'cython' : Runs the operati... | |
doc_9096 |
Returns the index of a currently selected device. | |
doc_9097 |
Set the alpha value used for blending - not supported on all backends. If alpha=None (the default), the alpha components of the foreground and fill colors will be used to set their respective transparencies (where applicable); otherwise, alpha will override them. | |
doc_9098 | See Migration guide for more details. tf.compat.v1.app.flags.FLAGS
tf.compat.v1.flags.FLAGS(
*args, **kwargs
)
A 'FlagValues' can then scan command line arguments, passing flag arguments through to the 'Flag' objects that it owns. It also provides easy access to the flag values. Typically only one 'FlagValues' o... | |
doc_9099 | tf.compat.v1.lite.experimental.convert_op_hints_to_stubs(
session=None, graph_def=None, write_callback=(lambda graph_def, comments: None)
)
This is used to prepare for toco conversion of complex intrinsic usages. Note: only one of session or graph_def should be used, not both.
Args
session A TensorFlow se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.