_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_600 |
Finish any processing for writing the movie. | |
doc_601 | Removes the extended filesystem attribute attribute from path. attribute should be bytes or str (directly or indirectly through the PathLike interface). If it is a string, it is encoded with the filesystem encoding. This function can support specifying a file descriptor and not following symlinks. Raises an auditing ev... | |
doc_602 | A special class-level marker to specify absence of a return annotation. | |
doc_603 | Returns True if the elements in the DE-9IM intersection matrix for this geometry and the other matches the given pattern – a string of nine characters from the alphabet: {T, F, *, 0}. | |
doc_604 | Decorator to require that a view only accepts the GET and HEAD methods. These methods are commonly considered “safe” because they should not have the significance of taking an action other than retrieving the requested resource. Note Web servers should automatically strip the content of responses to HEAD requests whil... | |
doc_605 | Mark the breakpoint as disabled. | |
doc_606 | Returns an indication of the class of x. | |
doc_607 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseSegmentSqrtNGrad
tf.raw_ops.SparseSegmentSqrtNGrad(
grad, indices, segment_ids, output_dim0, name=None
)
Returns tensor "output" with same shape as grad, except for dimension 0 whose value is output_dim0.
Args
grad A Tensor. Must be one of... | |
doc_608 | Change the window associated with the panel to the window win. | |
doc_609 |
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_610 | A subclass of Mailbox for mailboxes in Maildir format. Parameter factory is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If factory is None, MaildirMessage is used as the default message representation. If create is Tr... | |
doc_611 | Closes the current element. tag is the element name. Returns the closed element. | |
doc_612 |
Return the values (min, max) that are mapped to the colormap limits. | |
doc_613 |
Does nothing: this transformer is stateless. Parameters
Xndarray of shape [n_samples, n_features]
Training data. | |
doc_614 | A list of functions that are called when url_for() raises a BuildError. Each function registered here is called with error, endpoint and values. If a function returns None or raises a BuildError the next function is tried. Changelog New in version 0.9. | |
doc_615 | get the state of the mouse buttons get_pressed(num_buttons=3) -> (button1, button2, button3) get_pressed(num_buttons=5) -> (button1, button2, button3, button4, button5) Returns a sequence of booleans representing the state of all the mouse buttons. A true value means the mouse is currently being pressed at the time o... | |
doc_616 | tf.experimental.tensorrt.Converter(
input_saved_model_dir=None, input_saved_model_tags=None,
input_saved_model_signature_key=None, conversion_params=None
)
Currently this is not available on Windows platform. Note that in V2, is_dynamic_op=False is not supported, meaning TRT engines will be built only when the... | |
doc_617 |
Canonical Correlation Analysis, also known as “Mode B” PLS. Read more in the User Guide. Parameters
n_componentsint, default=2
Number of components to keep. Should be in [1, min(n_samples,
n_features, n_targets)].
scalebool, default=True
Whether to scale X and Y.
max_iterint, default=500
the maximum num... | |
doc_618 | If flag is True, escape sequences will not be timed out. If flag is False, after a few milliseconds, an escape sequence will not be interpreted, and will be left in the input stream as is. | |
doc_619 | class collections.abc.ItemsView
class collections.abc.KeysView
class collections.abc.ValuesView
ABCs for mapping, items, keys, and values views. | |
doc_620 | Read one line from the input stream and return the decoded data. size, if given, is passed as size argument to the stream’s read() method. If keepends is false line-endings will be stripped from the lines returned. | |
doc_621 | 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_622 | '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_623 | Converts a value as returned by the database to a Python object. It is the reverse of get_prep_value(). This method is not used for most built-in fields as the database backend already returns the correct Python type, or the backend itself does the conversion. expression is the same as self. See Converting values to Py... | |
doc_624 | Given the address addr of an SSL-protected server, as a (hostname, port-number) pair, fetches the server’s certificate, and returns it as a PEM-encoded string. If ssl_version is specified, uses that version of the SSL protocol to attempt to connect to the server. If ca_certs is specified, it should be a file containing... | |
doc_625 |
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas. | |
doc_626 | Suitable for serializing messages in conformance with the email RFCs. Like default, but with linesep set to \r\n, which is RFC compliant. | |
doc_627 |
Return probability estimates for the test vector X. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
Carray-like of shape (n_samples, n_classes)
Returns the probability of the samples for each class in the model. The columns correspond to the classes in sorted order, as they appear in the a... | |
doc_628 |
Alias for set_linewidth. | |
doc_629 |
Determine if each string starts with a match of a regular expression. Parameters
pat:str
Character sequence or regular expression.
case:bool, default True
If True, case sensitive.
flags:int, default 0 (no flags)
Regex module flags, e.g. re.IGNORECASE.
na:scalar, optional
Fill value for missing value... | |
doc_630 |
Apply CSS-styles based on a conditional function elementwise. Deprecated since version 1.3.0. Updates the HTML representation with a style which is selected in accordance with the return value of a function. Parameters
cond:callable
cond should take a scalar, and optional keyword arguments, and return a boole... | |
doc_631 | See Migration guide for more details. tf.compat.v1.raw_ops.UnicodeEncode
tf.raw_ops.UnicodeEncode(
input_values, input_splits, output_encoding, errors='replace',
replacement_char=65533, name=None
)
Returns a vector of strings, where output[i] is constructed by encoding the Unicode codepoints in input_values[... | |
doc_632 | Convert doctest tests from one or more text files to a unittest.TestSuite. The returned unittest.TestSuite is to be run by the unittest framework and runs the interactive examples in each file. If an example in any file fails, then the synthesized unit test fails, and a failureException exception is raised showing the ... | |
doc_633 |
Calculate the rolling standard error of mean. 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. **kwargs
For NumPy compatibility and will n... | |
doc_634 |
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | |
doc_635 |
Returns the number of splitting iterations in the cross-validator Parameters
Xarray-like of shape (n_samples, n_features)
Training data, where n_samples is the number of samples and n_features is the number of features.
yobject
Always ignored, exists for compatibility.
groupsobject
Always ignored, exist... | |
doc_636 |
Not supported. Please consider using Cartopy. | |
doc_637 |
Return staged predictions for X. The predicted regression value of an input sample is computed as the weighted median prediction of the classifiers in the ensemble. This generator method yields the ensemble prediction after each iteration of boosting and therefore allows monitoring, such as to determine the predictio... | |
doc_638 |
Computes the paired distances between X and Y. Computes the distances between (X[0], Y[0]), (X[1], Y[1]), etc… Read more in the User Guide. Parameters
Xndarray of shape (n_samples, n_features)
Array 1 for distance computation.
Yndarray of shape (n_samples, n_features)
Array 2 for distance computation.
met... | |
doc_639 | Returns a boolean indicating whether the geometry is ‘simple’. A geometry is simple if and only if it does not intersect itself (except at boundary points). For example, a LineString object is not simple if it intersects itself. Thus, LinearRing and Polygon objects are always simple because they do cannot intersect the... | |
doc_640 | Instantiates a TemplateResponse object with the given request, template, context, content type, HTTP status, and charset.
request An HttpRequest instance.
template A backend-dependent template object (such as those returned by get_template()), the name of a template, or a list of template names.
context A dict o... | |
doc_641 |
Return the cumulative sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. The cumulative sum does not change when NaNs are encountered and leading NaNs are replaced by zeros. Zeros are returned for slices that are all-NaN or empty. New in version 1.12.0. Parameters
aarray_like
Input... | |
doc_642 |
Return a list of the child Artists of this Artist. | |
doc_643 |
Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ImageViewer. For example: viewer += Plugin(...)
Also note that attach automatically calls the filter function so that the image matches the filtered value specified by attached widgets. | |
doc_644 | Render text onto an existing surface render_to(surf, dest, text, fgcolor=None, bgcolor=None, style=STYLE_DEFAULT, rotation=0, size=0) -> Rect Renders the string text to the pygame.Surface surf, at position dest, a (x, y) surface coordinate pair. If either x or y is not an integer it is converted to one if possible. A... | |
doc_645 | turtle.onscreenclick(fun, btn=1, add=None)
Parameters
fun – a function with two arguments which will be called with the coordinates of the clicked point on the canvas
btn – number of the mouse-button, defaults to 1 (left mouse button)
add – True or False – if True, a new binding will be added, otherwise it will... | |
doc_646 | Compress data, a bytes-like object. compresslevel, if given, must be an integer between 1 and 9. The default is 9. For incremental compression, use a BZ2Compressor instead. | |
doc_647 | Returns the WKB of this Geometry in hexadecimal form. Please note that the SRID value is not included in this representation because it is not a part of the OGC specification (use the GEOSGeometry.hexewkb property instead). | |
doc_648 | See Migration guide for more details. tf.compat.v1.image.ssim_multiscale
tf.image.ssim_multiscale(
img1, img2, max_val, power_factors=_MSSSIM_WEIGHTS, filter_size=11,
filter_sigma=1.5, k1=0.01, k2=0.03
)
This function assumes that img1 and img2 are image batches, i.e. the last three dimensions are [height, w... | |
doc_649 | Returns a new tensor with boolean elements representing if each element is finite or not. Real values are finite when they are not NaN, negative infinity, or infinity. Complex values are finite when both their real and imaginary parts are finite. Args:
input (Tensor): the input tensor. Returns:
A boolean tensor tha... | |
doc_650 | Identical to the to_integral_value() method. The to_integral name has been kept for compatibility with older versions. | |
doc_651 | Computes the inverse of rfft(). input is interpreted as a one-sided Hermitian signal in the Fourier domain, as produced by rfft(). By the Hermitian property, the output will be real-valued. Note Some input frequencies must be real-valued to satisfy the Hermitian property. In these cases the imaginary component will be... | |
doc_652 | Raised when trying to create a file or directory which already exists. Corresponds to errno EEXIST. | |
doc_653 |
Get the attribute strings with setters for object. For example, for a line, return ['markerfacecolor', 'linewidth',
....]. | |
doc_654 |
Returns a Python int containing the growth interval. | |
doc_655 | class sklearn.preprocessing.MultiLabelBinarizer(*, classes=None, sparse_output=False) [source]
Transform between iterable of iterables and a multilabel format. Although a list of sets or tuples is a very intuitive format for multilabel data, it is unwieldy to process. This transformer converts between this intuitive ... | |
doc_656 |
Bases: object cla()[source]
draw(renderer)[source]
get_aux_axes(tr=None, viewlim_mode='equal', axes_class=<class 'mpl_toolkits.axes_grid1.mpl_axes.Axes'>)[source]
Add a parasite axes to this host. Despite this method's name, this should actually be thought of as an add_parasite_axes method. tr may be Tran... | |
doc_657 | class sklearn.model_selection.GroupShuffleSplit(n_splits=5, *, test_size=None, train_size=None, random_state=None) [source]
Shuffle-Group(s)-Out cross-validation iterator Provides randomized train/test indices to split data according to a third-party provided group. This group information can be used to encode arbitr... | |
doc_658 |
Bases: torch.distributions.transformed_distribution.TransformedDistribution Creates a half-normal distribution parameterized by scale where: X ~ Normal(0, scale)
Y = |X| ~ HalfNormal(scale)
Example: >>> m = HalfNormal(torch.tensor([1.0]))
>>> m.sample() # half-normal distributed with scale=1
tensor([ 0.1046])
Par... | |
doc_659 |
Return filter function to be used for agg filter. | |
doc_660 | Load a music file for playback load(filename) -> None load(object) -> None This will load a music filename/file object and prepare it for playback. If a music stream is already playing it will be stopped. This does not start the music playing. | |
doc_661 | Exception raised by zipimporter objects. It’s a subclass of ImportError, so it can be caught as ImportError, too. | |
doc_662 | Change system call restart behaviour: if flag is False, system calls will be restarted when interrupted by signal signalnum, otherwise system calls will be interrupted. Returns nothing. Availability: Unix. See the man page siginterrupt(3) for further information. Note that installing a signal handler with signal() will... | |
doc_663 |
Set the edgecolor(s) of the collection. Parameters
ccolor or list of colors or 'face'
The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor. | |
doc_664 |
Make a plot with log scaling on the x axis. Call signatures: semilogx([x], y, [fmt], data=None, **kwargs)
semilogx([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
This is just a thin wrapper around plot which additionally changes the x-axis to log scaling. All of the concepts and parameters of plot can be used here ... | |
doc_665 | See Migration guide for more details. tf.compat.v1.nn.softmax
tf.compat.v1.math.softmax(
logits, axis=None, name=None, dim=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (dim). They will be removed in a future version. Instructions for updating: dim is deprecated, use axis instead This function performs the equi... | |
doc_666 |
Return the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. In NumPy versions <= 1.9.0 Nan is returned for slices that are all-NaN or empty. In later versions zero is returned. Parameters
aarray_like
Array containing numbers whose sum is desired. If a is not an array, a conversion ... | |
doc_667 | tf.keras.applications.efficientnet.EfficientNetB2 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.EfficientNetB2, tf.compat.v1.keras.applications.efficientnet.EfficientNetB2
tf.keras.applications.EfficientNetB2(
include_top=True, weights='imagenet', input_tensor=... | |
doc_668 | Test whether self and other have the same exponent or whether both are NaN. This operation is unaffected by context and is quiet: no flags are changed and no rounding is performed. As an exception, the C version may raise InvalidOperation if the second operand cannot be converted exactly. | |
doc_669 | See Migration guide for more details. tf.compat.v1.debugging.assert_less
tf.compat.v1.assert_less(
x, y, data=None, summarize=None, message=None, name=None
)
This condition holds if for every pair of (possibly broadcast) elements x[i], y[i], we have x[i] < y[i]. If both x and y are empty, this is trivially satis... | |
doc_670 | Returns the number of occurrences of value. | |
doc_671 | tf.image.extract_jpeg_shape Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.extract_jpeg_shape, tf.compat.v1.io.extract_jpeg_shape
tf.io.extract_jpeg_shape(
contents, output_type=tf.dtypes.int32, name=None
)
This op only parses the image header, so it is much faster than Dec... | |
doc_672 |
Get a dict mapping property fullnames to sets of aliases for each alias in the ArtistInspector. e.g., for lines: {'markerfacecolor': {'mfc'},
'linewidth' : {'lw'},
} | |
doc_673 |
Scalar method identical to the corresponding array attribute. Please see ndarray.repeat. | |
doc_674 |
Learn a list of feature name -> indices mappings. Parameters
XMapping or iterable over Mappings
Dict(s) or Mapping(s) from feature names (arbitrary Python objects) to feature values (strings or convertible to dtype). Changed in version 0.24: Accepts multiple string values for one categorical feature.
y(igno... | |
doc_675 |
Set the bounds of the rectangle. Call signatures: set_bounds(left, bottom, width, height)
set_bounds((left, bottom, width, height))
Parameters
left, bottomfloat
The coordinates of the bottom left corner of the rectangle.
width, heightfloat
The width/height of the rectangle. | |
doc_676 | See Migration guide for more details. tf.compat.v1.keras.regularizers.L1L2
tf.keras.regularizers.L1L2(
l1=0.0, l2=0.0
)
The L1 regularization penalty is computed as: loss = l1 * reduce_sum(abs(x)) The L2 regularization penalty is computed as loss = l2 * reduce_sum(square(x)) L1L2 may be passed to a layer as a st... | |
doc_677 | Return an iterator over all of the immediate sub-parts of the message, which will be empty for a non-multipart. (See also walk().) | |
doc_678 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesQuantileStreamResourceAddSummaries
tf.raw_ops.BoostedTreesQuantileStreamResourceAddSummaries(
quantile_stream_resource_handle, summaries, name=None
)
An op that adds a list of quantile summaries to a quantile stream resource. Each summary Ten... | |
doc_679 |
Bases: object A class representing marker types. Instances are immutable. If you need to change anything, create a new instance. Attributes
markerslist
All known markers.
filled_markerslist
All known filled markers. This is a subset of markers.
fillstyleslist
The supported fillstyles. Parameters
... | |
doc_680 |
Return whether this (closed) path completely contains the given path. If transform is not None, the path will be transformed before checking for containment. | |
doc_681 |
int, int, int -> Construct a date from the ISO year, week number and weekday. This is the inverse of the date.isocalendar() function | |
doc_682 |
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned. | |
doc_683 |
Roll the specified axis backwards, until it lies in a given position. This function continues to be supported for backward compatibility, but you should prefer moveaxis. The moveaxis function was added in NumPy 1.11. Parameters
andarray
Input array.
axisint
The axis to be rolled. The positions of the other ... | |
doc_684 | Return the current value of the recursion limit, the maximum depth of the Python interpreter stack. This limit prevents infinite recursion from causing an overflow of the C stack and crashing Python. It can be set by setrecursionlimit(). | |
doc_685 |
Set a.flat[n] = values[n] for all n in indices. Refer to numpy.put for full documentation. See also numpy.put
equivalent function | |
doc_686 |
Create a new AxesLocator for the specified cell. Parameters
ny, ny1int
Integers specifying the row-position of the cell. When ny1 is None, a single ny-th row is specified. Otherwise location of rows spanning between ny to ny1 (but excluding ny1-th row) is specified. | |
doc_687 |
Not supported. Please consider using Cartopy. | |
doc_688 | Measures the agreement between two normal probability distributions. Returns a value between 0.0 and 1.0 giving the overlapping area for the two probability density functions. | |
doc_689 |
Draw a filled black rectangle from (x1, y1) to (x2, y2). | |
doc_690 | copy an array object to a surface array_to_surface(<surface>, <array>) -> None See pygame.surfarray.blit_array(). | |
doc_691 |
Return the vertices of the rectangle. | |
doc_692 |
Scalar method identical to the corresponding array attribute. Please see ndarray.swapaxes. | |
doc_693 | This concrete Policy provides behavior that is intended to be fully compliant with the current email RFCs. These include (but are not limited to) RFC 5322, RFC 2047, and the current MIME RFCs. This policy adds new header parsing and folding algorithms. Instead of simple strings, headers are str subclasses with attribut... | |
doc_694 | Overwrite the window on top of destwin. The windows need not be the same size, in which case only the overlapping region is copied. This copy is destructive, which means that the current background character overwrites the old contents of destwin. To get fine-grained control over the copied region, the second form of o... | |
doc_695 | Returns a tuple of selected items. Changed in version 3.8: selection() no longer takes arguments. For changing the selection state use the following selection methods. | |
doc_696 | See Migration guide for more details. tf.compat.v1.raw_ops.ParallelInterleaveDataset
tf.raw_ops.ParallelInterleaveDataset(
input_dataset, other_arguments, cycle_length, block_length, sloppy,
buffer_output_elements, prefetch_input_elements, f, output_types, output_shapes,
name=None
)
The resulting dataset... | |
doc_697 |
Applies a 1D power-average pooling over an input signal composed of several input planes. If the sum of all inputs to the power of p is zero, the gradient is set to zero as well. See LPPool1d for details. | |
doc_698 | Run doctest.testmod() on the given module. Return (failure_count, test_count). If verbosity is None, doctest.testmod() is run with verbosity set to verbose. Otherwise, it is run with verbosity set to None. optionflags is passed as optionflags to doctest.testmod(). | |
doc_699 | bisect.bisect(a, x, lo=0, hi=len(a))
Similar to bisect_left(), but returns an insertion point which comes after (to the right of) any existing entries of x in a. The returned insertion point i partitions the array a into two halves so that all(val <= x for val in a[lo:i]) for the left side and all(val > x for val in ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.