_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_20100 | operator.le(a, b)
operator.eq(a, b)
operator.ne(a, b)
operator.ge(a, b)
operator.gt(a, b)
operator.__lt__(a, b)
operator.__le__(a, b)
operator.__eq__(a, b)
operator.__ne__(a, b)
operator.__ge__(a, b)
operator.__gt__(a, b)
Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva... | |
doc_20101 |
Updates the model using the data in X as a mini-batch. Parameters
Xarray-like of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and n_features is the number of features.
yIgnored
iter_offsetint, default=None
The number of iteration on data batches that has been per... | |
doc_20102 |
Bases: matplotlib.backend_bases.FigureCanvasBase buffer_rgba()[source]
Get the image as a memoryview to the renderer's buffer. draw must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.
copy_from_bbox(bbox)[source]
draw()[source]
... | |
doc_20103 | See torch.log2() | |
doc_20104 |
Return the current hatching pattern. | |
doc_20105 | Create an asyncio.Future object attached to the event loop. This is the preferred way to create Futures in asyncio. This lets third-party event loops provide alternative implementations of the Future object (with better performance or instrumentation). New in version 3.5.2. | |
doc_20106 |
Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc))
<type 'Locator'>
>>> print(loc())
[1, 2, 3, 4] | |
doc_20107 |
Calculate the rolling correlation. Parameters
other:Series or DataFrame, optional
If not supplied then will default to self and produce pairwise output.
pairwise:bool, default None
If False then only matching columns between self and other will be used and the output will be a DataFrame. If True then all pa... | |
doc_20108 |
Hide the column headers or specific keys in the columns from rendering. This method has dual functionality:
if subset is None then the entire column headers row, or specific levels, will be hidden whilst the data-values remain visible. if a subset is given then those specific columns, including the data-values wil... | |
doc_20109 | Return a new view of the dictionary’s keys. See the documentation of view objects. | |
doc_20110 | operator.le(a, b)
operator.eq(a, b)
operator.ne(a, b)
operator.ge(a, b)
operator.gt(a, b)
operator.__lt__(a, b)
operator.__le__(a, b)
operator.__eq__(a, b)
operator.__ne__(a, b)
operator.__ge__(a, b)
operator.__gt__(a, b)
Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva... | |
doc_20111 |
True if this transform is separable in the x- and y- dimensions. | |
doc_20112 |
Return a dictionary of all the properties of the artist. | |
doc_20113 | Accept: application/json
Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed
Content-Type: application/json
Content-Length: 42
{"detail": "Method 'DELETE' not allowed."}
Validation errors are handled slightly differently, and will include... | |
doc_20114 |
Bases: matplotlib.ticker.Locator Tick locations are fixed. If nbins is not None, the array of possible positions will be subsampled to keep the number of ticks <= nbins +1. The subsampling will be done so as to include the smallest absolute value; for example, if zero is included in the array of possibilities, then i... | |
doc_20115 | Return True if the Task is cancelled. The Task is cancelled when the cancellation was requested with cancel() and the wrapped coroutine propagated the CancelledError exception thrown into it. | |
doc_20116 |
Compute the bi-dimensional histogram of two data samples. Parameters
xarray_like, shape (N,)
An array containing the x coordinates of the points to be histogrammed.
yarray_like, shape (N,)
An array containing the y coordinates of the points to be histogrammed.
binsint or array_like or [int, int] or [array... | |
doc_20117 | tf.compat.v1.enable_resource_variables()
Resource variables are improved versions of TensorFlow variables with a well-defined memory model. Accessing a resource variable reads its value, and all ops which access a specific read value of the variable are guaranteed to see the same value for that tensor. Writes which ha... | |
doc_20118 |
Handler for LineCollection instances. Parameters
marker_padfloat
Padding between points in legend entry.
numpointsint
Number of points to show in legend entry. **kwargs
Keyword arguments forwarded to HandlerNpoints. create_artists(legend, orig_handle, xdescent, ydescent, width, height, fontsize, tra... | |
doc_20119 | Draw a rectangle. The first argument must be a window object; the remaining arguments are coordinates relative to that window. The second and third arguments are the y and x coordinates of the upper left hand corner of the rectangle to be drawn; the fourth and fifth arguments are the y and x coordinates of the lower ri... | |
doc_20120 | Returns the number of non-fixed hyperparameters of the kernel. | |
doc_20121 | Set list_editable to a list of field names on the model which will allow editing on the change list page. That is, fields listed in list_editable will be displayed as form widgets on the change list page, allowing users to edit and save multiple rows at once. Note list_editable interacts with a couple of other options... | |
doc_20122 | As well as tracking calls to themselves, mocks also track calls to methods and attributes, and their methods and attributes: >>> mock = Mock()
>>> mock.method()
<Mock name='mock.method()' id='...'>
>>> mock.property.method.attribute()
<Mock name='mock.property.method.attribute()' id='...'>
>>> mock.method_calls
[call.m... | |
doc_20123 |
Total bytes consumed by the elements of the array. Notes Does not include memory consumed by non-element attributes of the array object. Examples >>> x = np.zeros((3,5,2), dtype=np.complex128)
>>> x.nbytes
480
>>> np.prod(x.shape) * x.itemsize
480 | |
doc_20124 | Base class for warnings about deprecated features when those warnings are intended for other Python developers. Ignored by the default warning filters, except in the __main__ module (PEP 565). Enabling the Python Development Mode shows this warning. | |
doc_20125 |
Compute covariance with Series, excluding missing values. Parameters
other:Series
Series with which to compute the covariance.
min_periods:int, optional
Minimum number of observations needed to have a valid result.
ddof:int, default 1
Delta degrees of freedom. The divisor used in calculations is N - ddo... | |
doc_20126 |
Transformer that performs Sequential Feature Selection. This Sequential Feature Selector adds (forward selection) or removes (backward selection) features to form a feature subset in a greedy fashion. At each stage, this estimator chooses the best feature to add or remove based on the cross-validation score of an est... | |
doc_20127 |
Return the Figure instance the artist belongs to. | |
doc_20128 |
Return the alpha value used for blending - not supported on all backends. | |
doc_20129 |
Bases: Exception | |
doc_20130 |
Synchronizes with another stream. All future work submitted to this stream will wait until all kernels submitted to a given stream at the time of call complete. Parameters
stream (Stream) – a stream to synchronize. Note This function returns without waiting for currently enqueued kernels in stream: only future o... | |
doc_20131 |
Draw a rectangle rubberband to indicate zoom limits. Note that it is not guaranteed that x0 <= x1 and y0 <= y1. | |
doc_20132 | Set the sample width to n bytes. | |
doc_20133 |
Create a Node and add it to the Graph at the current insert-point. Note that the current insert-point can be set via Graph.inserting_before() and Graph.inserting_after(). Parameters
op (str) – the opcode for this Node. One of ‘call_function’, ‘call_method’, ‘get_attr’, ‘call_module’, ‘placeholder’, or ‘output’. T... | |
doc_20134 | Returns True if year is a leap year, otherwise False. | |
doc_20135 | Return a list of markers in the audio file. A marker consists of a tuple of three elements. The first is the mark ID (an integer), the second is the mark position in frames from the beginning of the data (an integer), the third is the name of the mark (a string). | |
doc_20136 | This class is used to compile information about which tests have succeeded and which have failed. A TestResult object stores the results of a set of tests. The TestCase and TestSuite classes ensure that results are properly recorded; test authors do not need to worry about recording the outcome of tests. Testing framew... | |
doc_20137 |
Packs a list of variable length Tensors sequences should be a list of Tensors of size L x *, where L is the length of a sequence and * is any number of trailing dimensions, including zero. For unsorted sequences, use enforce_sorted = False. If enforce_sorted is True, the sequences should be sorted in the order of dec... | |
doc_20138 | Return a list containing all global site-packages directories. New in version 3.2. | |
doc_20139 | tf.keras.layers.Convolution1DTranspose Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.Conv1DTranspose, tf.compat.v1.keras.layers.Convolution1DTranspose
tf.keras.layers.Conv1DTranspose(
filters, kernel_size, strides=1, padding='valid', output_padding=None,
data_for... | |
doc_20140 | Delete all specified items and all their descendants. The root item may not be deleted. | |
doc_20141 | Print a debug message when the debug level is > 0. If extra arguments are present, they are substituted in the message using the standard string formatting operator. | |
doc_20142 | Return a pair of integers whose ratio is exactly equal to the original integer and with a positive denominator. The integer ratio of integers (whole numbers) is always the integer as the numerator and 1 as the denominator. New in version 3.8. | |
doc_20143 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyProximalAdagrad
tf.raw_ops.ResourceApplyProximalAdagrad(
var, accum, lr, l1, l2, grad, use_locking=False, name=None
)
accum += grad * grad prox_v = var - lr * grad * (1 / sqrt(accum)) var = sign(prox_v)/(1+lr*l2) * max{|prox_v|-lr*l1,0}
... | |
doc_20144 |
Get the location of the config file. The file location is determined in the following order $PWD/matplotlibrc
$MATPLOTLIBRC if it is not a directory $MATPLOTLIBRC/matplotlibrc $MPLCONFIGDIR/matplotlibrc
On Linux,
$XDG_CONFIG_HOME/matplotlib/matplotlibrc (if $XDG_CONFIG_HOME is defined) or $HOME/.config/matplot... | |
doc_20145 | Return a context manager that will set the current context for the active thread to a copy of ctx on entry to the with-statement and restore the previous context when exiting the with-statement. If no context is specified, a copy of the current context is used. For example, the following code sets the current decimal p... | |
doc_20146 | Out-place version of index_put_(). tensor1 corresponds to self in torch.Tensor.index_put_(). | |
doc_20147 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_20148 | tf.experimental.numpy.take_along_axis(
arr, indices, axis
)
See the NumPy documentation for numpy.take_along_axis. | |
doc_20149 |
Convert an image to double-precision (64-bit) floating point format. Parameters
imagendarray
Input image.
force_copybool, optional
Force a copy of the data, irrespective of its current dtype. Returns
outndarray of float64
Output image. Notes The range of a floating point image is [0.0, 1.0] or [... | |
doc_20150 |
Set the relative heights of the rows. height_ratios must be of length nrows. Each row gets a relative height of height_ratios[i] / sum(height_ratios). | |
doc_20151 |
Exception that is thrown in pd.read_csv (by both the C and Python engines) when empty data or header is encountered. | |
doc_20152 | Return a view of the array with axis1 and axis2 interchanged. Refer to numpy.swapaxes for full documentation. See also numpy.swapaxes
equivalent function | |
doc_20153 | -- identifier, int, string, constant
module Python
{
mod = Module(stmt* body, type_ignore* type_ignores)
| Interactive(stmt* body)
| Expression(expr body)
| FunctionType(expr* argtypes, expr returns)
stmt = FunctionDef(identifier name, arguments args,
stmt* body,... | |
doc_20154 | Send the signal signalnum to the thread thread_id, another thread in the same process as the caller. The target thread can be executing any code (Python or not). However, if the target thread is executing the Python interpreter, the Python signal handlers will be executed by the main thread of the main interpreter. The... | |
doc_20155 | A boolean specifying whether to display the page if no objects are available. If this is False and no objects are available, the view will raise a 404 instead of displaying an empty page. By default, this is True. | |
doc_20156 | 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_20157 | An assignment with a type annotation. target is a single node and can be a Name, a Attribute or a Subscript. annotation is the annotation, such as a Constant or Name node. value is a single optional node. simple is a boolean integer set to True for a Name node in target that do not appear in between parenthesis and are... | |
doc_20158 | stat.IO_REPARSE_TAG_MOUNT_POINT
stat.IO_REPARSE_TAG_APPEXECLINK
New in version 3.8. | |
doc_20159 | See Migration guide for more details. tf.compat.v1.raw_ops.MatrixDiagV3
tf.raw_ops.MatrixDiagV3(
diagonal, k, num_rows, num_cols, padding_value, align='RIGHT_LEFT',
name=None
)
Returns a tensor with the contents in diagonal as k[0]-th to k[1]-th diagonals of a matrix, with everything else padded with padding... | |
doc_20160 | Probability estimates. Returns prediction probabilities for each class of each output. This method will raise a ValueError if any of the estimators do not have predict_proba. Parameters
Xarray-like of shape (n_samples, n_features)
Data Returns
parray of shape (n_samples, n_classes), or a list of n_outputs s... | |
doc_20161 |
Releases all unoccupied cached memory currently held by the caching allocator so that those can be used in other GPU application and visible in nvidia-smi. Note empty_cache() doesn’t increase the amount of GPU memory available for PyTorch. However, it may help reduce fragmentation of GPU memory in certain cases. See... | |
doc_20162 |
Return the join of the two input segmentations. The join J of S1 and S2 is defined as the segmentation in which two voxels are in the same segment if and only if they are in the same segment in both S1 and S2. Parameters
s1, s2numpy arrays
s1 and s2 are label fields of the same shape. Returns
jnumpy array... | |
doc_20163 |
Set the artist's clip path. Parameters
pathPatch or Path or TransformedPath or None
The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed.
transformTransform, optional
Only used if path is a Path, in which case the given Path is converted to a Tra... | |
doc_20164 | See Migration guide for more details. tf.compat.v1.raw_ops.Any
tf.raw_ops.Any(
input, axis, keep_dims=False, name=None
)
Reduces input along the dimensions given in axis. Unless keep_dims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keep_dims is true, the reduced dimensions are reta... | |
doc_20165 |
Process an button-3 event (remove the last click). Parameters
eventMouseEvent | |
doc_20166 | A character reference referred to a character which is illegal in XML (for example, character 0, or ‘�’). | |
doc_20167 | Default widget: NumberInput when Field.localize is False, else TextInput. Empty value: None
Normalizes to: A Python float. Validates that the given value is a float. Uses MaxValueValidator and MinValueValidator if max_value and min_value are provided. Leading and trailing whitespace is allowed, as in Python’s float()... | |
doc_20168 | Serialize an object to a string of JSON. Takes the same arguments as the built-in json.dumps(), with some defaults from application configuration. Parameters
obj (Any) – Object to serialize to JSON.
app (Optional[Flask]) – Use this app’s config instead of the active app context or defaults.
kwargs (Any) – Extra a... | |
doc_20169 | 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_20170 | set the volume of a playing channel set_volume(value) -> None set_volume(left, right) -> None Set the volume (loudness) of a playing sound. When a channel starts to play its volume value is reset. This only affects the current sound. The value argument is between 0.0 and 1.0. If one argument is passed, it will be the... | |
doc_20171 |
Return a reversed instance of the Colormap. Parameters
namestr, optional
The name for the reversed colormap. If it's None the name will be the name of the parent colormap + "_r". Returns
LinearSegmentedColormap
The reversed colormap. | |
doc_20172 | Returns True if the DE-9IM intersection matrix for the two geometries is FT*******, F**T***** or F***T****. | |
doc_20173 | Raised when a system function timed out at the system level. Corresponds to errno ETIMEDOUT. | |
doc_20174 | Like map() except that the elements of the iterable are expected to be iterables that are unpacked as arguments. Hence an iterable of [(1,2), (3, 4)] results in [func(1,2),
func(3,4)]. New in version 3.3. | |
doc_20175 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_20176 |
Return the default savefig file format as specified in rcParams["savefig.format"] (default: 'png'). The returned string does not include a period. This method is overridden in backends that only support a single file type. | |
doc_20177 | '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_20178 |
An ExtensionDtype for int16 integer data. Changed in version 1.0.0: Now uses pandas.NA as its missing value, rather than numpy.nan. Attributes
None Methods
None | |
doc_20179 | Simple JSON decoder. Performs the following translations in decoding by default:
JSON Python
object dict
array list
string str
number (int) int
number (real) float
true True
false False
null None It also understands NaN, Infinity, and -Infinity as their corresponding float values, which is outside... | |
doc_20180 | Process a single request. This function calls the following methods in order: get_request(), verify_request(), and process_request(). If the user-provided handle() method of the handler class raises an exception, the server’s handle_error() method will be called. If no request is received within timeout seconds, handle... | |
doc_20181 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizeAndDequantizeV4
tf.raw_ops.QuantizeAndDequantizeV4(
input, input_min, input_max, signed_input=True, num_bits=8, range_given=False,
round_mode='HALF_TO_EVEN', narrow_range=False, axis=-1, name=None
)
This is almost identical to QuantizeAndDequ... | |
doc_20182 | Dictionary mapping macro names to string lists. | |
doc_20183 |
RGB to Haematoxylin-Eosin-DAB (HED) color space conversion. Parameters
rgb(…, 3) array_like
The image in RGB format. Final dimension denotes channels. Returns
out(…, 3) ndarray
The image in HED format. Same dimensions as input. Raises
ValueError
If rgb is not at least 2-D with shape (…, 3). Re... | |
doc_20184 | Bind the socket to address. The socket must not already be bound. (The format of address depends on the address family — refer to the socket documentation for more information.) To mark the socket as re-usable (setting the SO_REUSEADDR option), call the dispatcher object’s set_reuse_addr() method. | |
doc_20185 | This function mirrors isexpr() in that it reports whether an ST object represents an 'exec' form, commonly known as a “suite.” It is not safe to assume that this function is equivalent to not isexpr(st), as additional syntactic fragments may be supported in the future. | |
doc_20186 | A decorator for running tests that require support for xattr. | |
doc_20187 | Return a message object structure tree from an open binary file object. This is equivalent to BytesParser().parse(fp). _class and policy are interpreted as with the BytesParser class constructor. New in version 3.2. Changed in version 3.3: Removed the strict argument. Added the policy keyword. | |
doc_20188 |
Reconstruct an ExtensionArray after factorization. Parameters
values:ndarray
An integer ndarray with the factorized values.
original:ExtensionArray
The original ExtensionArray that factorize was called on. See also factorize
Top-level factorize method that dispatches here. ExtensionArray.factorize
... | |
doc_20189 |
Return self as an ndarray object. Equivalent to np.asarray(self). Parameters
None
Returns
retndarray
self as an ndarray Examples >>> x = np.matrix(np.arange(12).reshape((3,4))); x
matrix([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11]])
>>> x.getA()
array([[ 0, 1, 2, 3],
... | |
doc_20190 |
Invoke function on values of Series. Can be ufunc (a NumPy function that applies to the entire Series) or a Python function that only works on single values. Parameters
func:function
Python function or NumPy ufunc to apply.
convert_dtype:bool, default True
Try to find better dtype for elementwise function r... | |
doc_20191 |
Probability estimates. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input data. Returns
y_probndarray of shape (n_samples, n_classes)
The predicted probability of the sample for each class in the model, where classes are ordered as they are in self.classes_. | |
doc_20192 | '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_20193 | The maximum amount of processor time (in seconds) that a process can use. If this limit is exceeded, a SIGXCPU signal is sent to the process. (See the signal module documentation for information about how to catch this signal and do something useful, e.g. flush open files to disk.) | |
doc_20194 |
Return whether the text can be wrapped. | |
doc_20195 | Stops the listener. This asks the thread to terminate, and then waits for it to do so. Note that if you don’t call this before your application exits, there may be some records still left on the queue, which won’t be processed. | |
doc_20196 | Return the decoded contents of the pointed-to file as a string: >>> p = Path('my_text_file')
>>> p.write_text('Text file contents')
18
>>> p.read_text()
'Text file contents'
The file is opened and then closed. The optional parameters have the same meaning as in open(). New in version 3.5. | |
doc_20197 |
Apply dimensionality reduction to X using the model. Compute the expected mean of the latent variables. See Barber, 21.2.33 (or Bishop, 12.66). Parameters
Xarray-like of shape (n_samples, n_features)
Training data. Returns
X_newndarray of shape (n_samples, n_components)
The latent variables of X. | |
doc_20198 |
Find the edge magnitude using the Prewitt transform. Parameters
imagearray
The input image.
maskarray of bool, optional
Clip the output image to this mask. (Values where mask=0 will be set to 0.)
axisint or sequence of int, optional
Compute the edge filter along this axis. If not provided, the edge magn... | |
doc_20199 |
Return Series/DataFrame with requested index / column level(s) removed. Parameters
level:int, str, or list-like
If a string is given, must be the name of a level If list-like, elements must be names or positional indexes of levels.
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
Axis along which the level(s)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.