_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_12800 | ssl.ALERT_DESCRIPTION_INTERNAL_ERROR
ALERT_DESCRIPTION_*
Alert Descriptions from RFC 5246 and others. The IANA TLS Alert Registry contains this list and references to the RFCs where their meaning is defined. Used as the return value of the callback function in SSLContext.set_servername_callback(). New in version 3... | |
doc_12801 |
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_12802 | Shut down one or both halves of the connection. If how is SHUT_RD, further receives are disallowed. If how is SHUT_WR, further sends are disallowed. If how is SHUT_RDWR, further sends and receives are disallowed. | |
doc_12803 | class sklearn.feature_selection.RFE(estimator, *, n_features_to_select=None, step=1, verbose=0, importance_getter='auto') [source]
Feature ranking with recursive feature elimination. Given an external estimator that assigns weights to features (e.g., the coefficients of a linear model), the goal of recursive feature ... | |
doc_12804 |
Add text to the Axes. Add the text s to the Axes at location x, y in data coordinates. Parameters
x, yfloat
The position to place the text. By default, this is in data coordinates. The coordinate system can be changed using the transform parameter.
sstr
The text.
fontdictdict, default: None
A dictionary... | |
doc_12805 | tf.train.experimental.FixedLossScale Compat aliases for migration See Migration guide for more details. tf.compat.v1.mixed_precision.FixedLossScale, tf.compat.v1.mixed_precision.experimental.FixedLossScale, tf.compat.v1.train.experimental.FixedLossScale
tf.mixed_precision.experimental.FixedLossScale(
loss_scale_v... | |
doc_12806 | class argparse.RawTextHelpFormatter
class argparse.ArgumentDefaultsHelpFormatter
class argparse.MetavarTypeHelpFormatter | |
doc_12807 | Return the path of the user base directory, USER_BASE. If it is not initialized yet, this function will also set it, respecting PYTHONUSERBASE. New in version 3.2. | |
doc_12808 | Tuple type; Tuple[X, Y] is the type of a tuple of two items with the first item of type X and the second of type Y. The type of the empty tuple can be written as Tuple[()]. Example: Tuple[T1, T2] is a tuple of two elements corresponding to type variables T1 and T2. Tuple[int, float, str] is a tuple of an int, a float a... | |
doc_12809 |
Predict class probabilities at each iteration. This method allows monitoring (i.e. determine error on testing set) after each stage. Parameters
Xarray-like of shape (n_samples, n_features)
The input samples. Yields
ygenerator of ndarray of shape (n_samples,)
The predicted class probabilities of the inpu... | |
doc_12810 |
Pair confusion matrix arising from two clusterings. The pair confusion matrix \(C\) computes a 2 by 2 similarity matrix between two clusterings by considering all pairs of samples and counting pairs that are assigned into the same or into different clusters under the true and predicted clusterings. Considering a pair... | |
doc_12811 | See Migration guide for more details. tf.compat.v1.debugging.assert_near
tf.compat.v1.assert_near(
x, y, rtol=None, atol=None, data=None, summarize=None, message=None, name=None
)
Example of adding a dependency to an operation: with tf.control_dependencies([tf.compat.v1.assert_near(x, y)]):
output = tf.reduce_... | |
doc_12812 |
Dataset shuffled from the original dataset. This class is useful to shuffle an existing instance of an IterableDataset. The buffer with buffer_size is filled with the items from the dataset first. Then, each item will be yielded from the buffer by reservoir sampling via iterator. buffer_size is required to be larger ... | |
doc_12813 |
Forward fill the values. Parameters
limit:int, optional
Limit of how many values to fill. Returns
An upsampled Series.
See also Series.fillna
Fill NA/NaN values using the specified method. DataFrame.fillna
Fill NA/NaN values using the specified method. | |
doc_12814 |
Bases: object Some widgets, like the cursor, draw onto the canvas, and this is not desirable under all circumstances, like when the toolbar is in zoom-to-rect mode and drawing a rectangle. To avoid this, a widget can acquire a canvas' lock with canvas.widgetlock(widget) before drawing on the canvas; this will prevent... | |
doc_12815 | Does a linear interpolation of two tensors start (given by input) and end based on a scalar or tensor weight and returns the resulting out tensor. outi=starti+weighti×(endi−starti)\text{out}_i = \text{start}_i + \text{weight}_i \times (\text{end}_i - \text{start}_i)
The shapes of start and end must be broadcastable.... | |
doc_12816 | runpy.run_module(mod_name, init_globals=None, run_name=None, alter_sys=False)
Execute the code of the specified module and return the resulting module globals dictionary. The module’s code is first located using the standard import mechanism (refer to PEP 302 for details) and then executed in a fresh module namespace... | |
doc_12817 | tf.losses.get Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.get
tf.keras.losses.get(
identifier
)
The identifier may be the string name of a loss function or Loss class.
loss = tf.keras.losses.get("categorical_crossentropy")
type(loss)
<class 'function'>
loss = tf.... | |
doc_12818 |
Bases: matplotlib.patheffects.AbstractPathEffect Draws a PathPatch instance whose Path comes from the original PathEffect artist. Parameters
offset(float, float), default: (0, 0)
The (x, y) offset to apply to the path, in points. **kwargs
All keyword arguments are passed through to the PathPatch constructor. ... | |
doc_12819 | The default selector class, using the most efficient implementation available on the current platform. This should be the default choice for most users. | |
doc_12820 | Identical to CLOCK_MONOTONIC, except it also includes any time that the system is suspended. This allows applications to get a suspend-aware monotonic clock without having to deal with the complications of CLOCK_REALTIME, which may have discontinuities if the time is changed using settimeofday() or similar. Availabilit... | |
doc_12821 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayGradWithShape
tf.raw_ops.TensorArrayGradWithShape(
handle, flow_in, shape_to_prepend, source, name=None
)
Similar to TensorArrayGradV3. However it creates an accumulator with an expanded shape compared to the input TensorArray whose gradient i... | |
doc_12822 | Push a line of source text to the interpreter. The line should not have a trailing newline; it may have internal newlines. The line is appended to a buffer and the interpreter’s runsource() method is called with the concatenated contents of the buffer as source. If this indicates that the command was executed or invali... | |
doc_12823 | See Migration guide for more details. tf.compat.v1.nn.conv1d_transpose
tf.nn.conv1d_transpose(
input, filters, output_shape, strides, padding='SAME',
data_format='NWC', dilations=None, name=None
)
This operation is sometimes called "deconvolution" after (Zeiler et al., 2010), but is actually the transpose (g... | |
doc_12824 | stat.IO_REPARSE_TAG_MOUNT_POINT
stat.IO_REPARSE_TAG_APPEXECLINK
New in version 3.8. | |
doc_12825 | Assert that the mock was called exactly once and that that call was with the specified arguments. >>> mock = Mock(return_value=None)
>>> mock('foo', bar='baz')
>>> mock.assert_called_once_with('foo', bar='baz')
>>> mock('other', bar='values')
>>> mock.assert_called_once_with('other', bar='values')
Traceback (most recen... | |
doc_12826 | An enum-like class for available reduction operations: SUM, PRODUCT, MIN, MAX, BAND, BOR, and BXOR. Note that BAND, BOR, and BXOR reductions are not available when using the NCCL backend. Additionally, MAX, MIN and PRODUCT are not supported for complex tensors. The values of this class can be accessed as attributes, e.... | |
doc_12827 | sklearn.metrics.precision_recall_fscore_support(y_true, y_pred, *, beta=1.0, labels=None, pos_label=1, average=None, warn_for='precision', 'recall', 'f-score', sample_weight=None, zero_division='warn') [source]
Compute precision, recall, F-measure and support for each class. The precision is the ratio tp / (tp + fp) ... | |
doc_12828 | copy an array to another array, using surface format map_array(<array>, <array>, <surface>) -> None Map an array of color element values - (w, h, ..., 3) - to an array of pixels - (w, h) according to the format of <surface>. | |
doc_12829 | Basic interface for resolving entities. If you create an object implementing this interface, then register the object with your Parser, the parser will call the method in your object to resolve all external entities. | |
doc_12830 | Open file and return a corresponding file object. If the file cannot be opened, an OSError is raised. See Reading and Writing Files for more examples of how to use this function. file is a path-like object giving the pathname (absolute or relative to the current working directory) of the file to be opened or an integer... | |
doc_12831 |
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters
**paramsdict
Estimator parameters. Returns... | |
doc_12832 |
Return the kerning pair distance (possibly 0) for chars c1 and c2. | |
doc_12833 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchDatasetV2
tf.raw_ops.BatchDatasetV2(
input_dataset, batch_size, drop_remainder, output_types, output_shapes,
parallel_copy=False, name=None
)
Args
input_dataset A Tensor of type variant.
batch_size A Tensor of type int64. A scalar... | |
doc_12834 | Return a string with all the information about the breakpoint, nicely formatted: The breakpoint number. If it is temporary or not. Its file,line position. The condition that causes a break. If it must be ignored the next N times. The breakpoint hit count. New in version 3.2. | |
doc_12835 |
Function Description
acorr Plot the autocorrelation of x.
angle_spectrum Plot the angle spectrum.
annotate Annotate the point xy with text text.
arrow Add an arrow to the Axes.
autoscale Autoscale the axis view to the data (toggle).
axes Add an axes to the current figure and make it the current axes. ... | |
doc_12836 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_12837 | tf.compat.v1.distributions.Multinomial(
total_count, logits=None, probs=None, validate_args=False, allow_nan_stats=True,
name='Multinomial'
)
This Multinomial distribution is parameterized by probs, a (batch of) length-K prob (probability) vectors (K > 1) such that tf.reduce_sum(probs, -1) = 1, and a total_cou... | |
doc_12838 | Returns the public identifier of this InputSource. | |
doc_12839 | Special type construct to mark class variables. As introduced in PEP 526, a variable annotation wrapped in ClassVar indicates that a given attribute is intended to be used as a class variable and should not be set on instances of that class. Usage: class Starship:
stats: ClassVar[dict[str, int]] = {} # class variab... | |
doc_12840 | This class provides an API similar to TestCase and also accepts coroutines as test functions. New in version 3.8.
coroutine asyncSetUp()
Method called to prepare the test fixture. This is called after setUp(). This is called immediately before calling the test method; other than AssertionError or SkipTest, any ex... | |
doc_12841 | This function loads the template with the given name and returns a Template object. The exact type of the return value depends on the backend that loaded the template. Each backend has its own Template class. get_template() tries each template engine in order until one succeeds. If the template cannot be found, it rais... | |
doc_12842 | See Migration guide for more details. tf.compat.v1.math.unsorted_segment_sqrt_n, tf.compat.v1.unsorted_segment_sqrt_n
tf.math.unsorted_segment_sqrt_n(
data, segment_ids, num_segments, name=None
)
Read the section on segmentation for an explanation of segments. This operator is similar to the tf.math.unsorted_seg... | |
doc_12843 | Wrap the coro coroutine into a Task and schedule its execution. Return the Task object. If name is not None, it is set as the name of the task using Task.set_name(). The task is executed in the loop returned by get_running_loop(), RuntimeError is raised if there is no running loop in current thread. This function has b... | |
doc_12844 | Casts all parameters and buffers to dst_type. Parameters
dst_type (type or string) – the desired type Returns
self Return type
Module | |
doc_12845 | Same as isfile(). | |
doc_12846 |
Multi-dimensional Gaussian filter. Parameters
imagearray-like
Input image (grayscale or color) to filter.
sigmascalar or sequence of scalars, optional
Standard deviation for Gaussian kernel. The standard deviations of the Gaussian filter are given for each axis as a sequence, or as a single number, in which... | |
doc_12847 |
A class method to set the default handler map. | |
doc_12848 | tf.compat.v1.data.Iterator(
iterator_resource, initializer, output_types, output_shapes, output_classes
)
Args
iterator_resource A tf.resource scalar tf.Tensor representing the iterator.
initializer A tf.Operation that should be run to initialize this iterator.
output_types A nested structure ... | |
doc_12849 | Acquire the underlying lock. This method waits until the underlying lock is unlocked, sets it to locked and returns True. | |
doc_12850 | tf.compat.v1.convert_to_tensor(
value, dtype=None, name=None, preferred_dtype=None, dtype_hint=None
)
This function converts Python objects of various types to Tensor objects. It accepts Tensor objects, numpy arrays, Python lists, and Python scalars. For example: import numpy as np
def my_func(arg):
arg = tf.co... | |
doc_12851 |
Predict class labels for samples in X. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
Carray, shape [n_samples]
Predicted class label per sample. | |
doc_12852 |
Test whether the mouse event occurred on the figure. Returns
bool, {} | |
doc_12853 |
Plot a 3D field of arrows. The arguments could be array-like or scalars, so long as they they can be broadcast together. The arguments can also be masked arrays. If an element in any of argument is masked, then that corresponding quiver element will not be plotted. Parameters
X, Y, Zarray-like
The x, y and z co... | |
doc_12854 |
Push o to the stack at current position. Discard all later elements. o is returned. | |
doc_12855 | Return the tuple as described in getmarkers() for the mark with the given id. | |
doc_12856 | In-place version of addcmul() | |
doc_12857 | alias of torch.distributions.constraints._Multinomial | |
doc_12858 | See Migration guide for more details. tf.compat.v1.train.experimental.PythonState This is an abstract class which allows extensions to TensorFlow's object-based checkpointing (see tf.train.Checkpoint). For example a wrapper for NumPy arrays: import io
import numpy
class NumpyWrapper(tf.train.experimental.PythonState)... | |
doc_12859 |
Predict class labels for X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Returns
majarray-like of shape (n_samples,)
Predicted class labels. | |
doc_12860 | tf.compat.v1.moving_average_variables(
scope=None
)
If an ExponentialMovingAverage object is created and the apply() method is called on a list of variables, these variables will be added to the GraphKeys.MOVING_AVERAGE_VARIABLES collection. This convenience function returns the contents of that collection.
A... | |
doc_12861 | See Migration guide for more details. tf.compat.v1.switch_case
tf.switch_case(
branch_index, branch_fns, default=None, name='switch_case'
)
See also tf.case. This op can be substantially more efficient than tf.case when exactly one branch will be selected. tf.switch_case is more like a C++ switch/case statement ... | |
doc_12862 | Like AddIndex, but creates an index with the CONCURRENTLY option. This has a few caveats to be aware of when using this option, see the PostgreSQL documentation of building indexes concurrently. | |
doc_12863 |
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned. | |
doc_12864 |
Set the edgecolor(s) of the LineCollection. Parameters
ccolor or list of colors
Single color (all lines have same color), or a sequence of rgba tuples; if it is a sequence the lines will cycle through the sequence. | |
doc_12865 | PEP 302 Finder that wraps Python’s “classic” import algorithm. If dirname is a string, a PEP 302 finder is created that searches that directory. If dirname is None, a PEP 302 finder is created that searches the current sys.path, plus any modules that are frozen or built-in. Note that ImpImporter does not currently supp... | |
doc_12866 | See Migration guide for more details. tf.compat.v1.raw_ops.NcclAllReduce
tf.raw_ops.NcclAllReduce(
input, reduction, num_devices, shared_name, name=None
)
Outputs a tensor containing the reduction across all input tensors passed to ops within the same `shared_name. The graph should be constructed so if one op ru... | |
doc_12867 | get the device index (deprecated) get_id() -> int Returns the original device index for this device. This is the same value that was passed to the Joystick() constructor. This method can safely be called while the Joystick is not initialized. Deprecated since pygame 2.0.0: The original device index is not useful in ... | |
doc_12868 | draw a filled rectangle box(surface, rect, color) -> None Draws a filled rectangle on the given surface. For an unfilled rectangle use rectangle().
Parameters:
surface (Surface) -- surface to draw on
rect (Rect) -- rectangle to draw, position and dimensions
color (Color or tuple(int, int, int, [int])) -- co... | |
doc_12869 | See Migration guide for more details. tf.compat.v1.accumulate_n, tf.compat.v1.math.accumulate_n
tf.math.accumulate_n(
inputs, shape=None, tensor_dtype=None, name=None
)
Optionally, pass shape and tensor_dtype for shape and type checking, otherwise, these are inferred. accumulate_n performs the same operation as ... | |
doc_12870 | (default: True) If true, after tab expansion but before wrapping, the wrap() method will replace each whitespace character with a single space. The whitespace characters replaced are as follows: tab, newline, vertical tab, formfeed, and carriage return ('\t\n\v\f\r'). Note If expand_tabs is false and replace_whitespac... | |
doc_12871 | sklearn.utils.extmath.density(w, **kwargs) [source]
Compute density of a sparse vector. Parameters
warray-like
The sparse vector. Returns
float
The density of w, between 0 and 1.
Examples using sklearn.utils.extmath.density
Classification of text documents using sparse features | |
doc_12872 | This is a low-level function for calling LAPACK directly. This function returns a namedtuple (a, tau) as defined in LAPACK documentation for geqrf . You’ll generally want to use torch.qr() instead. Computes a QR decomposition of input, but without constructing QQ and RR as explicit separate matrices. Rather, this dir... | |
doc_12873 |
Modify a sequence in-place by shuffling its contents. This function only shuffles the array along the first axis of a multi-dimensional array. The order of sub-arrays is changed but their contents remains the same. Note New code should use the shuffle method of a default_rng() instance instead; please see the Quick ... | |
doc_12874 | get the joystick instance id get_instance_id() -> int Get the joystick instance ID. This matches the instance_id field that is given in joystick events. New in pygame 2.0.0dev11. | |
doc_12875 | A dictionary with URL defaults that is added to each and every URL that was defined with the blueprint. | |
doc_12876 | A string representing the scheme of the request (http or https usually). | |
doc_12877 | Return the average over all samples in the fragment. | |
doc_12878 |
Call self as a function. | |
doc_12879 |
An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctyp... | |
doc_12880 |
Transform documents to document-term matrix. Uses the vocabulary and document frequencies (df) learned by fit (or fit_transform). Parameters
raw_documentsiterable
An iterable which yields either str, unicode or file objects. Returns
Xsparse matrix of (n_samples, n_features)
Tf-idf-weighted document-term... | |
doc_12881 | Get a list of frame records for a frame and all outer frames. These frames represent the calls that lead to the creation of frame. The first entry in the returned list represents frame; the last entry represents the outermost call on frame’s stack. Changed in version 3.5: A list of named tuples FrameInfo(frame, filena... | |
doc_12882 | change the pixel format of an image including per pixel alphas convert_alpha(Surface) -> Surface convert_alpha() -> Surface Creates a new copy of the surface with the desired pixel format. The new surface will be in a format suited for quick blitting to the given format with per pixel alpha. If no surface is given, t... | |
doc_12883 |
Set the url for the artist. Parameters
urlstr | |
doc_12884 | operator.__xor__(a, b)
Return the bitwise exclusive or of a and b. | |
doc_12885 |
Precision Recall visualization. It is recommend to use plot_precision_recall_curve to create a visualizer. All parameters are stored as attributes. Read more in the User Guide. Parameters
precisionndarray
Precision values.
recallndarray
Recall values.
average_precisionfloat, default=None
Average precisi... | |
doc_12886 | See Migration guide for more details. tf.compat.v1.io.decode_raw
tf.compat.v1.decode_raw(
input_bytes=None, out_type=None, little_endian=True, name=None, bytes=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (bytes). They will be removed in a future version. Instructions for updating: bytes is deprecated, use inp... | |
doc_12887 |
Set the parameters of this kernel. The method works on simple kernels as well as on nested kernels. The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Returns
self | |
doc_12888 |
template_name: 'django/forms/widgets/clearable_file_input.html'
Renders as: <input type="file" ...> with an additional checkbox input to clear the field’s value, if the field is not required and has initial data. | |
doc_12889 | See Migration guide for more details. tf.compat.v1.initializers.ones, tf.compat.v1.keras.initializers.ones, tf.compat.v1.ones_initializer
tf.compat.v1.keras.initializers.Ones(
dtype=tf.dtypes.float32
)
Methods from_config View source
@classmethod
from_config(
config
)
Instantiates an initializer from a con... | |
doc_12890 | A string representing the drive letter or name, if any: >>> PureWindowsPath('c:/Program Files/').drive
'c:'
>>> PureWindowsPath('/Program Files/').drive
''
>>> PurePosixPath('/etc').drive
''
UNC shares are also considered drives: >>> PureWindowsPath('//host/share/foo.txt').drive
'\\\\host\\share' | |
doc_12891 | Called when an exception is raised and not otherwise handled. The default version prints a condensed traceback. | |
doc_12892 |
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass. | |
doc_12893 |
Adjust the text angle and text alignment of axis label according to the matplotlib convention.
property left bottom right top
axislabel angle 180 0 0 180
axislabel va center top center bottom
axislabel ha right center right center Note that the text angles are actually relative to (90 + angle of the direc... | |
doc_12894 |
Pseudo-Vandermonde matrix of given degrees. Returns the pseudo-Vandermonde matrix of degrees deg and sample points (x, y). The pseudo-Vandermonde matrix is defined by \[V[..., (deg[1] + 1)*i + j] = L_i(x) * L_j(y),\] where 0 <= i <= deg[0] and 0 <= j <= deg[1]. The leading indices of V index the points (x, y) and th... | |
doc_12895 |
A torch.nn.Linear module with lazy initialization. In this module, the weight and bias are of torch.nn.UninitializedParameter class. They will be initialized after the first call to forward is done and the module will become a regular torch.nn.Linear module. Check the torch.nn.modules.lazy.LazyModuleMixin for further... | |
doc_12896 | Interrupt from keyboard (CTRL + C). Default action is to raise KeyboardInterrupt. | |
doc_12897 | '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_12898 |
Update this artist's properties from the dict props. Parameters
propsdict | |
doc_12899 |
Copy of the array, cast to a specified type. Parameters
dtypestr or dtype
Typecode or data-type to which the array is cast.
order{‘C’, ‘F’, ‘A’, ‘K’}, optional
Controls the memory layout order of the result. ‘C’ means C order, ‘F’ means Fortran order, ‘A’ means ‘F’ order if all the arrays are Fortran contig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.