_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_1000 | Pdb is the debugger class. The completekey, stdin and stdout arguments are passed to the underlying cmd.Cmd class; see the description there. The skip argument, if given, must be an iterable of glob-style module name patterns. The debugger will not step into frames that originate in a module that matches one of these p... | |
doc_1001 |
Return the alpha value used for blending - not supported on all backends. | |
doc_1002 |
Alias for set_linestyle. | |
doc_1003 |
Plot a histogram. Compute and draw the histogram of x. The return value is a tuple (n, bins, patches) or ([n0, n1, ...], bins, [patches0, patches1, ...]) if the input contains multiple data. See the documentation of the weights parameter to draw a histogram of already-binned data. Multiple data can be provided via x ... | |
doc_1004 |
Return the largest integer smaller or equal to the division of the inputs. It is equivalent to the Python // operator and pairs with the Python % (remainder), function so that a = a % b + b * (a // b) up to roundoff. Parameters
x1array_like
Numerator.
x2array_like
Denominator. If x1.shape != x2.shape, they ... | |
doc_1005 | See Migration guide for more details. tf.compat.v1.raw_ops.AutoShardDataset
tf.raw_ops.AutoShardDataset(
input_dataset, num_workers, index, output_types, output_shapes,
auto_shard_policy=0, num_replicas=0, name=None
)
Creates a dataset that shards the input dataset by num_workers, returning a sharded dataset... | |
doc_1006 | Exit code that means that some kind of configuration error occurred. Availability: Unix. | |
doc_1007 |
The length of one element in bytes. | |
doc_1008 | Redirects to a given URL. The given URL may contain dictionary-style string formatting, which will be interpolated against the parameters captured in the URL. Because keyword interpolation is always done (even if no arguments are passed in), any "%" characters in the URL must be written as "%%" so that Python will conv... | |
doc_1009 | Returns False. | |
doc_1010 | This class represents tunable scheduling parameters used in sched_setparam(), sched_setscheduler(), and sched_getparam(). It is immutable. At the moment, there is only one possible parameter:
sched_priority
The scheduling priority for a scheduling policy. | |
doc_1011 |
Return the linestyle. See also set_linestyle. | |
doc_1012 |
Applies the element-wise function: SoftSign(x)=x1+∣x∣\text{SoftSign}(x) = \frac{x}{ 1 + |x|}
Shape:
Input: (N,∗)(N, *) where * means, any number of additional dimensions Output: (N,∗)(N, *) , same shape as the input Examples: >>> m = nn.Softsign()
>>> input = torch.randn(2)
>>> output = m(input) | |
doc_1013 | 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_1014 | The value to be used for the wsgi.run_once environment variable. It defaults to false in BaseHandler, but CGIHandler sets it to true by default. | |
doc_1015 | A concrete implementation of importlib.abc.PathEntryFinder which caches results from the file system. The path argument is the directory for which the finder is in charge of searching. The loader_details argument is a variable number of 2-item tuples each containing a loader and a sequence of file suffixes the loader r... | |
doc_1016 | See Migration guide for more details. tf.compat.v1.raw_ops.RestoreSlice
tf.raw_ops.RestoreSlice(
file_pattern, tensor_name, shape_and_slice, dt, preferred_shard=-1, name=None
)
This is like Restore except that restored tensor can be listed as filling only a slice of a larger tensor. shape_and_slice specifies the... | |
doc_1017 |
Integrate a Legendre series. Returns the Legendre series coefficients c integrated m times from lbnd along axis. At each iteration the resulting series is multiplied by scl and an integration constant, k, is added. The scaling factor is for use in a linear change of variable. (“Buyer beware”: note that, depending on ... | |
doc_1018 | Return a new path object representing the current directory (as returned by os.getcwd()): >>> Path.cwd()
PosixPath('/home/antoine/pathlib') | |
doc_1019 | Safely evaluate an expression node or a string containing a Python literal or container display. The string or node provided may only consist of the following Python literal structures: strings, bytes, numbers, tuples, lists, dicts, sets, booleans, and None. This can be used for safely evaluating strings containing Pyt... | |
doc_1020 | tf.compat.v1.train.maybe_batch(
tensors, keep_input, batch_size, num_threads=1, capacity=32, enqueue_many=False,
shapes=None, dynamic_pad=False, allow_smaller_final_batch=False,
shared_name=None, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for upda... | |
doc_1021 |
Return evenly spaced numbers over a specified interval. Returns num evenly spaced samples, calculated over the interval [start, stop]. The endpoint of the interval can optionally be excluded. Changed in version 1.16.0: Non-scalar start and stop are now supported. Changed in version 1.20.0: Values are rounded towar... | |
doc_1022 |
Execute a get_attr node. Will retrieve an attribute value from the Module hierarchy of self.module. Parameters
target (Target) – The call target for this node. See Node for details on semantics
args (Tuple) – Tuple of positional args for this invocation
kwargs (Dict) – Dict of keyword arguments for this invocat... | |
doc_1023 | In-place version of bitwise_xor() | |
doc_1024 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_1025 | The UUID was generated by the platform in a multiprocessing-safe way. | |
doc_1026 | This works similar to a regular click Group but it changes the behavior of the command() decorator so that it automatically wraps the functions in with_appcontext(). Not to be confused with FlaskGroup. Parameters
name (Optional[str]) –
commands (Optional[Union[Dict[str, click.core.Command], Sequence[click.core.Co... | |
doc_1027 | Create a subprocess from cmd, which can be a str or a bytes string encoded to the filesystem encoding, using the platform’s “shell” syntax. This is similar to the standard library subprocess.Popen class called with shell=True. The protocol_factory must be a callable returning a subclass of the SubprocessProtocol class.... | |
doc_1028 | An event object. Not thread-safe. An asyncio event can be used to notify multiple asyncio tasks that some event has happened. An Event object manages an internal flag that can be set to true with the set() method and reset to false with the clear() method. The wait() method blocks until the flag is set to true. The fla... | |
doc_1029 | ABC for classes that provide the __hash__() method. | |
doc_1030 | MagicMock is a subclass of Mock with default implementations of most of the magic methods. You can use MagicMock without having to configure the magic methods yourself. The constructor parameters have the same meaning as for Mock. If you use the spec or spec_set arguments then only magic methods that exist in the spec ... | |
doc_1031 | Flash the screen. That is, change it to reverse-video and then change it back in a short interval. Some people prefer such as ‘visible bell’ to the audible attention signal produced by beep(). | |
doc_1032 | The class used to represent an address group. The general form of an address group is: display_name: [address-list];
As a convenience for processing lists of addresses that consist of a mixture of groups and single addresses, a Group may also be used to represent single addresses that are not part of a group by settin... | |
doc_1033 | If a fallback has been set, forward ngettext() to the fallback. Otherwise, return singular if n is 1; return plural otherwise. Overridden in derived classes. | |
doc_1034 | Initialize the display module init() -> None Initializes the pygame display module. The display module cannot do anything until it is initialized. This is usually handled for you automatically when you call the higher level pygame.init(). Pygame will select from one of several internal display backends when it is ini... | |
doc_1035 | alias of Conv3d | |
doc_1036 | tf.compat.v1.where(
condition, x=None, y=None, name=None
)
If both x and y are None, then this operation returns the coordinates of true elements of condition. The coordinates are returned in a 2-D tensor where the first dimension (rows) represents the number of true elements, and the second dimension (columns) re... | |
doc_1037 | Open the FTP file indicated by req. The login is always done with empty username and password. | |
doc_1038 |
Perform Affinity Propagation Clustering of data. Read more in the User Guide. Parameters
Sarray-like of shape (n_samples, n_samples)
Matrix of similarities between points.
preferencearray-like of shape (n_samples,) or float, default=None
Preferences for each point - points with larger values of preferences ... | |
doc_1039 | Returns True when the display is active on the screen get_active() -> bool Returns True when the display Surface is considered actively renderable on the screen and may be visible to the user. This is the default state immediately after pygame.display.set_mode(). This method may return True even if the application is... | |
doc_1040 | Set the access and modified times of the file specified by path. utime() takes two optional parameters, times and ns. These specify the times set on path and are used as follows: If ns is specified, it must be a 2-tuple of the form (atime_ns, mtime_ns) where each member is an int expressing nanoseconds. If times is no... | |
doc_1041 |
Perform clustering. Parameters
Xarray-like of shape (n_samples, n_features)
Samples to cluster.
yIgnored | |
doc_1042 | Set the system’s profile function, which allows you to implement a Python source code profiler in Python. See chapter The Python Profilers for more information on the Python profiler. The system’s profile function is called similarly to the system’s trace function (see settrace()), but it is called with different event... | |
doc_1043 | test if all rectangles in a dictionary intersect collidedictall(dict) -> [(key, value), ...] collidedictall(dict, use_values=0) -> [(key, value), ...] Returns a list of all the key and value pairs that intersect with the calling Rect object. If no collisions are found an empty list is returned. If use_values is 0 (de... | |
doc_1044 |
Creates a criterion that measures the loss given inputs x1x1 , x2x2 , two 1D mini-batch Tensors, and a label 1D mini-batch tensor yy (containing 1 or -1). If y=1y = 1 then it assumed the first input should be ranked higher (have a larger value) than the second input, and vice-versa for y=−1y = -1 . The loss functio... | |
doc_1045 |
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_1046 | This method installs gettext() into the built-in namespace, binding it to _. If the names parameter is given, it must be a sequence containing the names of functions you want to install in the builtins namespace in addition to _(). Supported names are 'gettext', 'ngettext', 'pgettext', 'npgettext', 'lgettext', and 'lng... | |
doc_1047 |
Set the norm limits for image scaling. Parameters
vmin, vmaxfloat
The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument. | |
doc_1048 | Determines the HttpResponse for the add_view() stage. response_add is called after the admin form is submitted and just after the object and all the related instances have been created and saved. You can override it to change the default behavior after the object has been created. | |
doc_1049 | This method rolls back any changes to the database since the last call to commit(). | |
doc_1050 | No defined value type. | |
doc_1051 | The namespace URI for namespace declarations, as defined by Document Object Model (DOM) Level 2 Core Specification (section 1.1.8). | |
doc_1052 |
Get feature names from all transformers. Returns
feature_nameslist of strings
Names of the features produced by transform. | |
doc_1053 |
Return the alpha value used for blending - not supported on all backends. | |
doc_1054 |
class Person(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
first_name and last_name are fields of the model. Each field is specified as a class attribute, and each attribute maps to a database column. The above Person model would create a database tabl... | |
doc_1055 | Ensure all logging output has been flushed. This version does nothing and is intended to be implemented by subclasses. | |
doc_1056 | A TracebackException of the original __context__. | |
doc_1057 |
Convert time series to specified frequency. Returns the original data conformed to a new index with the specified frequency. If the index of this DataFrame is a PeriodIndex, the new index is the result of transforming the original index with PeriodIndex.asfreq (so the original index will map one-to-one to the new ind... | |
doc_1058 | tf.maximum Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.maximum, tf.compat.v1.maximum
tf.math.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(... | |
doc_1059 |
Return a string representation of data. 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. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ... | |
doc_1060 |
Bases: matplotlib.transforms.Transform The inverse of the polar transform, mapping Cartesian coordinate space x and y back to theta and r. 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... | |
doc_1061 |
Bases: matplotlib.transforms.TransformNode The base class of all bounding boxes. This class is immutable; Bbox is a mutable subclass. The canonical representation is as two points, with no restrictions on their ordering. Convenience properties are provided to get the left, bottom, right and top edges and width and he... | |
doc_1062 |
[Deprecated] Notes Deprecated since version 3.4: | |
doc_1063 |
Prints the intermediate representation of the graph in tabular format. | |
doc_1064 |
Set the sketch parameters. Parameters
scalefloat, optional
The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided.
lengthfloat, optional
The length of the wiggle along the line, in pixels (default 128.0)
randomnessfloat... | |
doc_1065 | See Migration guide for more details. tf.compat.v1.raw_ops.StackPop
tf.raw_ops.StackPop(
handle, elem_type, name=None
)
Args
handle A Tensor of type mutable string.
elem_type A tf.DType.
name A name for the operation (optional).
Returns A Tensor of type elem_type. | |
doc_1066 |
Remove trailing coefficients Remove trailing coefficients until a coefficient is reached whose absolute value greater than tol or the beginning of the series is reached. If all the coefficients would be removed the series is set to [0]. A new series instance is returned with the new coefficients. The current instance... | |
doc_1067 |
Method to compute the entropy using Bregman divergence of the log normalizer. | |
doc_1068 | See Migration guide for more details. tf.compat.v1.estimator.ModeKeys The following standard keys are defined:
TRAIN: training/fitting mode.
EVAL: testing/evaluation mode.
PREDICT: predication/inference mode.
Class Variables
EVAL 'eval'
PREDICT 'infer'
TRAIN 'train' | |
doc_1069 | os.MFD_ALLOW_SEALING
os.MFD_HUGETLB
os.MFD_HUGE_SHIFT
os.MFD_HUGE_MASK
os.MFD_HUGE_64KB
os.MFD_HUGE_512KB
os.MFD_HUGE_1MB
os.MFD_HUGE_2MB
os.MFD_HUGE_8MB
os.MFD_HUGE_16MB
os.MFD_HUGE_32MB
os.MFD_HUGE_256MB
os.MFD_HUGE_512MB
os.MFD_HUGE_1GB
os.MFD_HUGE_2GB
os.MFD_HUGE_16GB
These flags can... | |
doc_1070 | The unscaled descent of the font in font units descender -> int Read only. Return the height in font units for the font descent. The descent is the number of units from the font's baseline to the bottom of the bounding box. | |
doc_1071 |
Returns a bool indicating if CUDNN is currently available. | |
doc_1072 | An SMTP instance encapsulates an SMTP connection. It has methods that support a full repertoire of SMTP and ESMTP operations. If the optional host and port parameters are given, the SMTP connect() method is called with those parameters during initialization. If specified, local_hostname is used as the FQDN of the local... | |
doc_1073 | tf.atan Compat aliases for migration See Migration guide for more details. tf.compat.v1.atan, tf.compat.v1.math.atan
tf.math.atan(
x, name=None
)
The tf.math.atan operation returns the inverse of tf.math.tan, such that if y = tf.math.tan(x) then, x = tf.math.atan(y).
Note: The output of tf.math.atan will lie wi... | |
doc_1074 | See Migration guide for more details. tf.compat.v1.Variable.SaveSliceInfo
tf.Variable.SaveSliceInfo(
full_name=None, full_shape=None, var_offset=None, var_shape=None,
save_slice_info_def=None, import_scope=None
)
Provides internal support for saving variables as slices of a larger variable. This API is not p... | |
doc_1075 |
Set the JoinStyle. Parameters
sJoinStyle or {'miter', 'round', 'bevel'} | |
doc_1076 |
Draw a stacked area plot. Parameters
x(N,) array-like
y(M, N) array-like
The data is assumed to be unstacked. Each of the following calls is legal: stackplot(x, y) # where y has shape (M, N)
stackplot(x, y1, y2, y3) # where y1, y2, y3, y4 have length N
baseline{'zero', 'sym', 'wiggle', 'weighted... | |
doc_1077 | Coordinates of the top left origin of the raster in the spatial reference system of the source, as a point object with x and y members. >>> rst = GDALRaster({'width': 10, 'height': 20, 'srid': 4326})
>>> rst.origin
[0.0, 0.0]
>>> rst.origin.x = 1
>>> rst.origin
[1.0, 0.0] | |
doc_1078 | Blocks until all items in the queue have been gotten and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer thread calls task_done() to indicate that the item was retrieved and all work on it is complete. When the count of unfinished tasks dr... | |
doc_1079 |
Set the colormap to 'inferno'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | |
doc_1080 | operator.__rshift__(a, b)
Return a shifted right by b. | |
doc_1081 |
Return number of unique elements in the object. Excludes NA values by default. Parameters
dropna:bool, default True
Don’t include NaN in the count. Returns
int
See also DataFrame.nunique
Method nunique for DataFrame. Series.count
Count non-NA/null observations in the Series. Examples
>>> s = pd... | |
doc_1082 |
Return staged scores for X, y. This generator method yields the ensemble score after each iteration of boosting and therefore allows monitoring, such as to determine the score on a test set after each boost. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input samples. Spa... | |
doc_1083 | tf.experimental.numpy.random.random(
size=None
)
See the NumPy documentation for numpy.random.random. | |
doc_1084 | Extracts the passed color from the PixelArray. extract(color, distance=0, weights=(0.299, 0.587, 0.114)) -> PixelArray Extracts the passed color by changing all matching pixels to white, while non-matching pixels are changed to black. This returns a new PixelArray with the black/white color mask. It uses a simple wei... | |
doc_1085 |
Alias for set_antialiased. | |
doc_1086 | This method can be overridden by a metaclass to customize the method resolution order for its instances. It is called at class instantiation, and its result is stored in __mro__. | |
doc_1087 | See Migration guide for more details. tf.compat.v1.nn.bias_add
tf.nn.bias_add(
value, bias, data_format=None, name=None
)
This is (mostly) a special case of tf.add where bias is restricted to 1-D. Broadcasting is supported, so value may have any number of dimensions. Unlike tf.add, the type of bias is allowed to... | |
doc_1088 |
Return the clip path. | |
doc_1089 |
Purely integer-location based indexing for selection by position. .iloc[] is primarily integer position based (from 0 to length-1 of the axis), but may also be used with a boolean array. Allowed inputs are: An integer, e.g. 5. A list or array of integers, e.g. [4, 3, 0]. A slice object with ints, e.g. 1:7. A boolean... | |
doc_1090 | Delete the folder whose name is folder. If the folder contains any messages, a NotEmptyError exception will be raised and the folder will not be deleted. | |
doc_1091 |
Reduce X to the selected features. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
X_rarray of shape [n_samples, n_selected_features]
The input samples with only the selected features. | |
doc_1092 | This is a nonstandard convenience method for executing multiple SQL statements at once. It issues a COMMIT statement first, then executes the SQL script it gets as a parameter. sql_script can be an instance of str. Example: import sqlite3
con = sqlite3.connect(":memory:")
cur = con.cursor()
cur.executescript("""
c... | |
doc_1093 |
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy. | |
doc_1094 | Timeout in seconds for network requests going to the Internet. The timeout is short enough to prevent a test to wait for too long if the Internet request is blocked for whatever reason. Usually, a timeout using INTERNET_TIMEOUT should not mark a test as failed, but skip the test instead: see transient_internet(). Its d... | |
doc_1095 | tf.experimental.numpy.log1p(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.log1p. | |
doc_1096 | Return Decimal(10), the radix (base) in which the Decimal class does all its arithmetic. Included for compatibility with the specification. | |
doc_1097 | See Migration guide for more details. tf.compat.v1.linalg.diag_part, tf.compat.v1.matrix_diag_part
tf.linalg.diag_part(
input, name='diag_part', k=0, padding_value=0,
align='RIGHT_LEFT'
)
Returns a tensor with the k[0]-th to k[1]-th diagonals of the batched input. Assume input has r dimensions [I, J, ..., L,... | |
doc_1098 | Computes the one dimensional discrete Fourier transform of a Hermitian symmetric input signal. Note hfft()/ihfft() are analogous to rfft()/irfft(). The real FFT expects a real signal in the time-domain and gives a Hermitian symmetry in the frequency-domain. The Hermitian FFT is the opposite; Hermitian symmetric in the... | |
doc_1099 | Raised when an operation would block on an object (e.g. socket) set for non-blocking operation. Corresponds to errno EAGAIN, EALREADY, EWOULDBLOCK and EINPROGRESS. In addition to those of OSError, BlockingIOError can have one more attribute:
characters_written
An integer containing the number of characters written ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.