_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_12900 |
Convert time series to specified frequency. Returns the original data conformed to a new index with the specified frequency. If the index of this Series 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 index)... | |
doc_12901 | Returns a new instance of the MemoryHandler class. The instance is initialized with a buffer size of capacity (number of records buffered). If flushLevel is not specified, ERROR is used. If no target is specified, the target will need to be set using setTarget() before this handler does anything useful. If flushOnClose... | |
doc_12902 |
Remove a click (by default, the last) from the list of clicks. Parameters
eventMouseEvent | |
doc_12903 | See Migration guide for more details. tf.compat.v1.train.experimental.enable_mixed_precision_graph_rewrite
tf.compat.v1.mixed_precision.enable_mixed_precision_graph_rewrite(
opt, loss_scale='dynamic'
)
Mixed precision is the use of both float32 and float16 data types when training a model to improve performance.... | |
doc_12904 | If shared is True, then memory is shared between all processes. All changes are written to the file. If shared is False, then the changes on the storage do not affect the file. size is the number of elements in the storage. If shared is False, then the file must contain at least size * sizeof(Type) bytes (Type is the t... | |
doc_12905 |
Mini-Batch K-Means clustering. Read more in the User Guide. Parameters
n_clustersint, default=8
The number of clusters to form as well as the number of centroids to generate.
init{‘k-means++’, ‘random’}, callable or array-like of shape (n_clusters, n_features), default=’k-means++’
Method for initialization:... | |
doc_12906 |
Set whether constrained_layout is used upon drawing. If None, rcParams["figure.constrained_layout.use"] (default: False) value will be used. When providing a dict containing the keys w_pad, h_pad the default constrained_layout paddings will be overridden. These pads are in inches and default to 3.0/72.0. w_pad is the... | |
doc_12907 | Use this backend to take advantage of external-to-Django-handled authentication. It authenticates using usernames passed in request.META['REMOTE_USER']. See the Authenticating against REMOTE_USER documentation. If you need more control, you can create your own authentication backend that inherits from this class and ov... | |
doc_12908 |
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_12909 | The arguments that would be passed to the view function, as parsed from the URL. | |
doc_12910 |
Return the Figure instance the artist belongs to. | |
doc_12911 |
Set the artist offset transform. Parameters
transOffsetTransform | |
doc_12912 | Uses localtime() to convert an aware datetime to a date() in a different time zone, by default the current time zone. When value is omitted, it defaults to now(). This function doesn’t work on naive datetimes. | |
doc_12913 | Return a pair (n, d) of integers that represent the given Decimal instance as a fraction, in lowest terms and with a positive denominator: >>> Decimal('-3.14').as_integer_ratio()
(-157, 50)
The conversion is exact. Raise OverflowError on infinities and ValueError on NaNs. | |
doc_12914 |
Fit the k-nearest neighbors regressor 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.
y{array-like, sparse matrix} of shape (n_samples,) or (n_samples, n_outputs)
Target values. Returns
... | |
doc_12915 | stop playback after fading channel out fadeout(time) -> None Stop playback of a channel after fading out the sound over the given time argument in milliseconds. | |
doc_12916 | The operation has exceeded the given deadline. Important This exception is different from the builtin TimeoutError exception. | |
doc_12917 |
Computes a partial inverse of MaxPool3d. MaxPool3d is not fully invertible, since the non-maximal values are lost. MaxUnpool3d takes in as input the output of MaxPool3d including the indices of the maximal values and computes a partial inverse in which all non-maximal values are set to zero. Note MaxPool3d can map s... | |
doc_12918 |
Bases: object A class representing a Type-1 font, for use by backends. Attributes
partstuple
A 3-tuple of the cleartext part, the encrypted part, and the finale of zeros.
decryptedbytes
The decrypted form of parts[1].
propdict[str, Any]
A dictionary of font properties. Initialize a Type-1 font. Par... | |
doc_12919 | tf.nn.conv1d(
input, filters, stride, padding, data_format='NWC', dilations=None,
name=None
)
Given an input tensor of shape batch_shape + [in_width, in_channels] if data_format is "NWC", or batch_shape + [in_channels, in_width] if data_format is "NCW", and a filter / kernel tensor of shape [filter_width, in_c... | |
doc_12920 | Returns the contents of the Sitemap parameter from robots.txt in the form of a list(). If there is no such parameter or the robots.txt entry for this parameter has invalid syntax, return None. New in version 3.8. | |
doc_12921 | Schedule an event for delay more time units. Other than the relative time, the other arguments, the effect and the return value are the same as those for enterabs(). Changed in version 3.3: argument parameter is optional. Changed in version 3.3: kwargs parameter was added. | |
doc_12922 |
Calculate the expanding maximum. Parameters
*args
For NumPy compatibility and will not have an effect on the result.
engine:str, default None
'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba.
None : Defaults to 'cython' or glob... | |
doc_12923 |
Alias for get_facecolor. | |
doc_12924 | Return offset of local time from UTC, as a timedelta object that is positive east of UTC. If local time is west of UTC, this should be negative. This represents the total offset from UTC; for example, if a tzinfo object represents both time zone and DST adjustments, utcoffset() should return their sum. If the UTC offse... | |
doc_12925 | Returns the variance of the distribution. | |
doc_12926 | Common base class for the other pickling exceptions. It inherits Exception. | |
doc_12927 | The default environment variables to be included in every request’s WSGI environment. By default, this is a copy of os.environ at the time that wsgiref.handlers was imported, but subclasses can either create their own at the class or instance level. Note that the dictionary should be considered read-only, since the def... | |
doc_12928 |
Array view compatibility. | |
doc_12929 | sklearn.metrics.fbeta_score(y_true, y_pred, *, beta, labels=None, pos_label=1, average='binary', sample_weight=None, zero_division='warn') [source]
Compute the F-beta score. The F-beta score is the weighted harmonic mean of precision and recall, reaching its optimal value at 1 and its worst value at 0. The beta param... | |
doc_12930 |
Like Artist.get_window_extent, but includes any clipping. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns
Bbox
The enclosing bounding box (in figure pixel coordinates). | |
doc_12931 |
Add a Table to the Axes; return the table. | |
doc_12932 | tf.config.experimental.set_virtual_device_configuration Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.set_virtual_device_configuration, tf.compat.v1.config.set_logical_device_configuration
tf.config.set_logical_device_configuration(
device, logical_devices
)
... | |
doc_12933 |
Bases: matplotlib.units.ConversionInterface staticaxisinfo(unit, axis)[source]
Set the default axis ticks and labels. Parameters
unitUnitData
object string unit information for value
axisAxis
axis for which information is being set Note axis is not used Returns
AxisInfo
Information to support de... | |
doc_12934 |
The Product kernel takes two kernels \(k_1\) and \(k_2\) and combines them via \[k_{prod}(X, Y) = k_1(X, Y) * k_2(X, Y)\] Note that the __mul__ magic method is overridden, so Product(RBF(), RBF()) is equivalent to using the * operator with RBF() * RBF(). Read more in the User Guide. New in version 0.18. Parameter... | |
doc_12935 |
Count the number of bounding boxes that overlap this one. Parameters
bboxessequence of BboxBase | |
doc_12936 |
Return class labels or probabilities for each estimator. Return predictions for X for each estimator. Parameters
X{array-like, sparse matrix, dataframe} of shape (n_samples, n_features)
Input samples
yndarray of shape (n_samples,), default=None
Target values (None for unsupervised transformations).
**fit_... | |
doc_12937 |
Return the offsets for the collection. | |
doc_12938 | django.contrib.auth.models.AnonymousUser is a class that implements the django.contrib.auth.models.User interface, with these differences:
id is always None.
username is always the empty string.
get_username() always returns the empty string.
is_anonymous is True instead of False.
is_authenticated is False instea... | |
doc_12939 | See Migration guide for more details. tf.compat.v1.raw_ops.InitializeTableFromDataset
tf.raw_ops.InitializeTableFromDataset(
table_handle, dataset, name=None
)
Args
table_handle A Tensor of type resource.
dataset A Tensor of type variant.
name A name for the operation (optional).
Ret... | |
doc_12940 |
Draw a marker at each of path's vertices (excluding control points). This provides a fallback implementation of draw_markers that makes multiple calls to draw_path(). Some backends may want to override this method in order to draw the marker only once and reuse it multiple times. Parameters
gcGraphicsContextBase
... | |
doc_12941 |
Set the navigation toolbar button status. Warning this is not a user-API function. | |
doc_12942 |
Reduce X to the selected features and then return the score of the
underlying estimator. Parameters
Xarray of shape [n_samples, n_features]
The input samples.
yarray of shape [n_samples]
The target values. | |
doc_12943 | a 3-Dimensional Vector Vector3() -> Vector3 Vector3(int) -> Vector3 Vector3(float) -> Vector3 Vector3(Vector3) -> Vector3 Vector3(x, y, z) -> Vector3 Vector3((x, y, z)) -> Vector3 Some general information about the Vector3 class. dot()
calculates the dot- or scalar-product with the other vector dot(Vector3) -> fl... | |
doc_12944 |
Alias for set_antialiased. | |
doc_12945 | See Migration guide for more details. tf.compat.v1.raw_ops.UniformCandidateSampler
tf.raw_ops.UniformCandidateSampler(
true_classes, num_true, num_sampled, unique, range_max, seed=0, seed2=0,
name=None
)
See explanations of candidate sampling and the data formats at go/candidate-sampling. For each batch, thi... | |
doc_12946 | Unregister a user signal: uninstall the handler of the signum signal installed by register(). Return True if the signal was registered, False otherwise. Not available on Windows. | |
doc_12947 | Tries to determine the default locale settings and returns them as a tuple of the form (language code, encoding). According to POSIX, a program which has not called setlocale(LC_ALL, '') runs using the portable 'C' locale. Calling setlocale(LC_ALL, '') lets it use the default locale as defined by the LANG variable. Sin... | |
doc_12948 | Return the path of Makefile. | |
doc_12949 |
Return the dtype object of the underlying data. | |
doc_12950 |
Configure the grid lines. Parameters
visiblebool or None, optional
Whether to show the grid lines. If any kwargs are supplied, it is assumed you want the grid on and visible will be set to True. If visible is None and there are no kwargs, this toggles the visibility of the lines.
which{'major', 'minor', 'both... | |
doc_12951 | The number of threads currently waiting in the barrier. | |
doc_12952 | See Migration guide for more details. tf.compat.v1.train.get_checkpoint_state
tf.train.get_checkpoint_state(
checkpoint_dir, latest_filename=None
)
If the "checkpoint" file contains a valid CheckpointState proto, returns it.
Args
checkpoint_dir The directory of checkpoints.
latest_filename Optiona... | |
doc_12953 | get the currently playing Sound get_sound() -> Sound Return the actual Sound object currently playing on this channel. If the channel is idle None is returned. | |
doc_12954 |
Set the JoinStyle for the collection (for all its elements). Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_12955 |
Draw samples from a Weibull distribution. Draw samples from a 1-parameter Weibull distribution with the given shape parameter a. \[X = (-ln(U))^{1/a}\] Here, U is drawn from the uniform distribution over (0,1]. The more common 2-parameter Weibull, including a scale parameter \(\lambda\) is just \(X = \lambda(-ln(U))... | |
doc_12956 | Get the position of an entry or return -1. Parameters
key – The key to be looked up. | |
doc_12957 |
Bases: mpl_toolkits.axisartist.angle_helper.LocatorBase __call__(v1, v2)[source]
Call self as a function. | |
doc_12958 |
Bases: matplotlib.text.Text Text object with 3D position and direction. Parameters
x, y, z
The position of the text.
textstr
The text string to display.
zdir{'x', 'y', 'z', None, 3-tuple}
The direction of the text. See get_dir_vector for a description of the values. Other Parameters
**kwargs
All oth... | |
doc_12959 | Returns the number of leap years in the range from y1 to y2 (exclusive), where y1 and y2 are years. This function works for ranges spanning a century change. | |
doc_12960 | window.insnstr(y, x, str, n[, attr])
Insert a character string (as many characters as will fit on the line) before the character under the cursor, up to n characters. If n is zero or negative, the entire string is inserted. All characters to the right of the cursor are shifted right, with the rightmost characters on ... | |
doc_12961 |
Inverse radon transform. Reconstruct an image from the radon transform, using a single iteration of the Simultaneous Algebraic Reconstruction Technique (SART) algorithm. Parameters
radon_image2D array
Image containing radon transform (sinogram). Each column of the image corresponds to a projection along a diffe... | |
doc_12962 |
Return (x1 == x2) element-wise. Unlike numpy.equal, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters
x1, x2array_like of str or unicode
Input arrays of the same shape. Returns
ou... | |
doc_12963 | tf.experimental.numpy.diag(
v, k=0
)
Raises an error if input is not 1- or 2-d. See the NumPy documentation for numpy.diag. | |
doc_12964 | Compute the pairwise distances between X and Y This is a convenience routine for the sake of testing. For many metrics, the utilities in scipy.spatial.distance.cdist and scipy.spatial.distance.pdist will be faster. Parameters
Xarray-like
Array of shape (Nx, D), representing Nx points in D dimensions.
Yarray-lik... | |
doc_12965 | Called for any characters in the XML document for which no applicable handler has been specified. This means characters that are part of a construct which could be reported, but for which no handler has been supplied. | |
doc_12966 | MIME headers all start with the prefix ‘Content-‘. Each specific header has a certain value, described under the class for that header. Some can also take a list of supplemental parameters, which have a common format. This class serves as a base for all the MIME headers that take parameters.
params
A dictionary map... | |
doc_12967 | Return an iterator that applies function to every item of iterable, yielding the results. If additional iterable arguments are passed, function must take that many arguments and is applied to the items from all iterables in parallel. With multiple iterables, the iterator stops when the shortest iterable is exhausted. F... | |
doc_12968 | Perform a statvfs() system call on the given path. The return value is an object whose attributes describe the filesystem on the given path, and correspond to the members of the statvfs structure, namely: f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files, f_ffree, f_favail, f_flag, f_namemax, f_fsid. Two module-l... | |
doc_12969 | See Migration guide for more details. tf.compat.v1.raw_ops.FloorDiv
tf.raw_ops.FloorDiv(
x, y, name=None
)
Note: floor_div supports broadcasting. More about broadcasting here
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, uint8, int8, uint16, int16, int32, int64... | |
doc_12970 | This method returns a list of 2-tuples of the form returned by parseaddr(). fieldvalues is a sequence of header field values as might be returned by Message.get_all. Here’s a simple example that gets all the recipients of a message: from email.utils import getaddresses
tos = msg.get_all('to', [])
ccs = msg.get_all('cc... | |
doc_12971 | Close the bound socket or named pipe of the listener object. This is called automatically when the listener is garbage collected. However it is advisable to call it explicitly. | |
doc_12972 |
An extremely randomized tree regressor. Extra-trees differ from classic decision trees in the way they are built. When looking for the best split to separate the samples of a node into two groups, random splits are drawn for each of the max_features randomly selected features and the best split among those is chosen.... | |
doc_12973 | tf.experimental.numpy.count_nonzero(
a, axis=None
)
Unsupported arguments: keepdims. See the NumPy documentation for numpy.count_nonzero. | |
doc_12974 | The get_prepopulated_fields method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return a dictionary, as described above in the ModelAdmin.prepopulated_fields section. | |
doc_12975 | Feeds data to the parser. data is encoded data. | |
doc_12976 | Signal the executor that it should free any resources that it is using when the currently pending futures are done executing. Calls to Executor.submit() and Executor.map() made after shutdown will raise RuntimeError. If wait is True then this method will not return until all the pending futures are done executing and t... | |
doc_12977 | tkinter.simpledialog.askinteger(title, prompt, **kw)
tkinter.simpledialog.askstring(title, prompt, **kw)
The above three functions provide dialogs that prompt the user to enter a value of the desired type. | |
doc_12978 |
Return the group id. | |
doc_12979 | The time and date of the last modification to the archive member. This is a tuple of six values:
Index Value
0 Year (>= 1980)
1 Month (one-based)
2 Day of month (one-based)
3 Hours (zero-based)
4 Minutes (zero-based)
5 Seconds (zero-based) Note The ZIP file format does not support timestamps before 1... | |
doc_12980 | Deprecated since version 3.9: Deprecated in favor of status. | |
doc_12981 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalMatchingFilesDataset
tf.raw_ops.ExperimentalMatchingFilesDataset(
patterns, name=None
)
Args
patterns A Tensor of type string.
name A name for the operation (optional).
Returns A Tensor of type variant. | |
doc_12982 |
Demonstrate how each CapStyle looks for a thick line segment. | |
doc_12983 |
Set the colormap to 'jet'. 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_12984 | The supernet containing this network definition, depending on the argument values. prefixlen_diff is the amount our prefix length should be decreased by. new_prefix is the desired new prefix of the supernet; it must be smaller than our prefix. One and only one of prefixlen_diff and new_prefix must be set. Returns a sin... | |
doc_12985 |
Fit the model to data matrix X and targets Y. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input data.
Yarray-like of shape (n_samples, n_classes)
The target values. Returns
selfobject | |
doc_12986 | Return the representation of the referent. | |
doc_12987 |
Clean dead weak references from the dictionary. | |
doc_12988 | This is an abstract base widget containing the logic needed by subclasses. You cannot directly use this widget for a geometry field. Note that the rendering of GeoDjango widgets is based on a template, identified by the template_name class attribute. | |
doc_12989 |
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g... | |
doc_12990 | Bases: skimage.graph._mcp.MCP Find minimum cost paths through an N-d costs array. See the documentation for MCP for full details. This class differs from MCP in that several methods can be overloaded (from pure Python) to modify the behavior of the algorithm and/or create custom algorithms based on MCP. Note that goal_... | |
doc_12991 | If origin_server is true, this string attribute is used to set the HTTP version of the response set to the client. It defaults to "1.0". | |
doc_12992 |
Randomly zero out entire channels (a channel is a 3D feature map, e.g., the jj -th channel of the ii -th sample in the batched input is a 3D tensor input[i,j]\text{input}[i, j] ). Each channel will be zeroed out independently on every forward call with probability p using samples from a Bernoulli distribution. Usuall... | |
doc_12993 |
Write the contained data to an HDF5 file using HDFStore. Hierarchical Data Format (HDF) is self-describing, allowing an application to interpret the structure and contents of a file with no outside information. One HDF file can hold a mix of related objects which can be accessed as a group or as individual objects. I... | |
doc_12994 | re.ASCII
Make \w, \W, \b, \B, \d, \D, \s and \S perform ASCII-only matching instead of full Unicode matching. This is only meaningful for Unicode patterns, and is ignored for byte patterns. Corresponds to the inline flag (?a). Note that for backward compatibility, the re.U flag still exists (as well as its synonym re... | |
doc_12995 | This is a subclass derived from IMAP4 that connects over an SSL encrypted socket (to use this class you need a socket module that was compiled with SSL support). If host is not specified, '' (the local host) is used. If port is omitted, the standard IMAP4-over-SSL port (993) is used. ssl_context is a ssl.SSLContext obj... | |
doc_12996 | Return True if all characters in the string are numeric characters, and there is at least one character, False otherwise. Numeric characters include digit characters, and all characters that have the Unicode numeric value property, e.g. U+2155, VULGAR FRACTION ONE FIFTH. Formally, numeric characters are those with the ... | |
doc_12997 |
Alias for set_edgecolor. | |
doc_12998 | Removes the collations named name. When reversed this is creating a collation with the provided locale, provider, and deterministic arguments. Therefore, locale is required to make this operation reversible. | |
doc_12999 |
Scale each non zero row of X to unit norm Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The data to normalize, row by row. scipy.sparse matrices should be in CSR format to avoid an un-necessary copy.
copybool, default=None
Copy the input X or not. Returns
X_tr{ndarray, spars... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.