_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_27700 |
Scalar method identical to the corresponding array attribute. Please see ndarray.diagonal. | |
doc_27701 | stop the music playback stop() -> None Stops the music playback if it is currently playing. It Won't Unload the music. | |
doc_27702 | os.spawn*
Information about how the subprocess module can be used to replace these modules and functions can be found in the following sections. See also PEP 324 – PEP proposing the subprocess module Using the subprocess Module The recommended approach to invoking subprocesses is to use the run() function for all us... | |
doc_27703 | This specifies the HTTP protocol version used in responses. If set to 'HTTP/1.1', the server will permit HTTP persistent connections; however, your server must then include an accurate Content-Length header (using send_header()) in all of its responses to clients. For backwards compatibility, the setting defaults to 'H... | |
doc_27704 | Turn off the standout attribute. On some terminals this has the side effect of turning off all attributes. | |
doc_27705 | See Migration guide for more details. tf.compat.v1.math.special.bessel_k0
tf.math.special.bessel_k0(
x, name=None
)
Modified Bessel function of order 0. It is preferable to use the numerically stabler function k0e(x) instead.
tf.math.special.bessel_k0([0.5, 1., 2., 4.]).numpy()
array([0.92441907, 0.42102444, 0.... | |
doc_27706 | See Migration guide for more details. tf.compat.v1.raw_ops.MaxPoolGradWithArgmax
tf.raw_ops.MaxPoolGradWithArgmax(
input, grad, argmax, ksize, strides, padding, include_batch_in_index=False,
name=None
)
Args
input A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, i... | |
doc_27707 | Search for files *.py and add the corresponding file to the archive. If the optimize parameter to PyZipFile was not given or -1, the corresponding file is a *.pyc file, compiling if necessary. If the optimize parameter to PyZipFile was 0, 1 or 2, only files with that optimization level (see compile()) are added to the ... | |
doc_27708 |
Standardize features by removing the mean and scaling to unit variance The standard score of a sample x is calculated as: z = (x - u) / s where u is the mean of the training samples or zero if with_mean=False, and s is the standard deviation of the training samples or one if with_std=False. Centering and scaling happ... | |
doc_27709 | sklearn.metrics.mean_absolute_error(y_true, y_pred, *, sample_weight=None, multioutput='uniform_average') [source]
Mean absolute error regression loss. Read more in the User Guide. Parameters
y_truearray-like of shape (n_samples,) or (n_samples, n_outputs)
Ground truth (correct) target values.
y_predarray-lik... | |
doc_27710 |
Load dataset from multiple files in SVMlight format This function is equivalent to mapping load_svmlight_file over a list of files, except that the results are concatenated into a single, flat list and the samples vectors are constrained to all have the same number of features. In case the file contains a pairwise pr... | |
doc_27711 | Send a SLAVE command. Return the server’s response. | |
doc_27712 |
Set the height of the box. Parameters
heightfloat | |
doc_27713 | """
May be applied as a `default=...` value on a serializer field.
Returns the current user.
"""
requires_context = True
def __call__(self, serializer_field):
return serializer_field.context['request'].user
When serializing the instance, default will be used if the object attribute or ... | |
doc_27714 | Return the total number of headers, including duplicates. | |
doc_27715 | See Migration guide for more details. tf.compat.v1.raw_ops.CompressElement
tf.raw_ops.CompressElement(
components, name=None
)
Args
components A list of Tensor objects.
name A name for the operation (optional).
Returns A Tensor of type variant. | |
doc_27716 |
Set the artist's clip Bbox. Parameters
clipboxBbox | |
doc_27717 | Returns the content length if available or None otherwise. Return type
Optional[int] | |
doc_27718 | Returns True if self tensor is contiguous in memory in the order specified by memory format. Parameters
memory_format (torch.memory_format, optional) – Specifies memory allocation order. Default: torch.contiguous_format. | |
doc_27719 |
Computes the Mean Squared Error between two covariance estimators. (In the sense of the Frobenius norm). Parameters
comp_covarray-like of shape (n_features, n_features)
The covariance to compare with.
norm{“frobenius”, “spectral”}, default=”frobenius”
The type of norm used to compute the error. Available er... | |
doc_27720 | Return a proxy to object which uses a weak reference. This supports use of the proxy in most contexts instead of requiring the explicit dereferencing used with weak reference objects. The returned object will have a type of either ProxyType or CallableProxyType, depending on whether object is callable. Proxy objects ar... | |
doc_27721 | The latest representable date, date(MAXYEAR, 12, 31). | |
doc_27722 | Returns a dictionary mapping MIME types to a list of mailcap file entries. This dictionary must be passed to the findmatch() function. An entry is stored as a list of dictionaries, but it shouldn’t be necessary to know the details of this representation. The information is derived from all of the mailcap files found on... | |
doc_27723 | bytearray.rsplit(sep=None, maxsplit=-1)
Split the binary sequence into subsequences of the same type, using sep as the delimiter string. If maxsplit is given, at most maxsplit splits are done, the rightmost ones. If sep is not specified or None, any subsequence consisting solely of ASCII whitespace is a separator. Ex... | |
doc_27724 |
Set multiple properties at once. Supported properties are
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha scalar or None
animated bool
backgroundcolor color
bbox dict with properties for patches.FancyBboxPatch
... | |
doc_27725 | Return the first value for the key if it is in the headers, otherwise set the header to the value given by default and return that. Parameters
key – The header key to get.
default – The value to set for the key if it is not in the headers. | |
doc_27726 | Alias for output, for symmetry with stderr. | |
doc_27727 | alias of ConvTranspose3d | |
doc_27728 | Return the longest common sub-path of each pathname in the sequence paths. Raise ValueError if paths contain both absolute and relative pathnames, the paths are on the different drives or if paths is empty. Unlike commonprefix(), this returns a valid path. Availability: Unix, Windows. New in version 3.5. Changed in ... | |
doc_27729 |
Set the path effects. Parameters
path_effectsAbstractPathEffect | |
doc_27730 |
Adds a buffer to the module. This is typically used to register a buffer that should not to be considered a model parameter. For example, BatchNorm’s running_mean is not a parameter, but is part of the module’s state. Buffers, by default, are persistent and will be saved alongside parameters. This behavior can be cha... | |
doc_27731 |
Bases: object | |
doc_27732 | Sets up a new event loop to run the test, collecting the result into the TestResult object passed as result. If result is omitted or None, a temporary result object is created (by calling the defaultTestResult() method) and used. The result object is returned to run()’s caller. At the end of the test all the tasks in t... | |
doc_27733 | The constant string used by the operating system to refer to the parent directory. This is '..' for Windows and POSIX. Also available via os.path. | |
doc_27734 |
Dump FontManager data as JSON to the file named filename. See also json_load
Notes File paths that are children of the Matplotlib data path (typically, fonts shipped with Matplotlib) are stored relative to that data path (to remain valid across virtualenvs). This function temporarily locks the output file to prev... | |
doc_27735 |
Alias for get_facecolor. | |
doc_27736 |
Set the colormap for luminance data. Parameters
cmapColormap or str or None | |
doc_27737 |
-self | |
doc_27738 |
Applies a 3D average pooling over an input signal composed of several input planes. In the simplest case, the output value of the layer with input size (N,C,D,H,W)(N, C, D, H, W) , output (N,C,Dout,Hout,Wout)(N, C, D_{out}, H_{out}, W_{out}) and kernel_size (kD,kH,kW)(kD, kH, kW) can be precisely described as: out... | |
doc_27739 | New in Django 3.2. An optional string of a field name (with an optional "-" prefix which indicates descending order) or an expression (or a tuple or list of strings and/or expressions) that specifies the ordering of the elements in the result list. Examples are the same as for ArrayAgg.ordering. | |
doc_27740 | Return string-valued system configuration values. name specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX, Unix 95, Unix 98, and others). Some platforms define additional names as well. The names known ... | |
doc_27741 |
Create a numpy array from a ctypes array or POINTER. The numpy array shares the memory with the ctypes object. The shape parameter must be given if converting from a ctypes POINTER. The shape parameter is ignored if converting from a ctypes array
numpy.ctypeslib.as_ctypes(obj)[source]
Create and return a ctypes... | |
doc_27742 | By default, AuthenticationForm rejects users whose is_active flag is set to False. You may override this behavior with a custom policy to determine which users can log in. Do this with a custom form that subclasses AuthenticationForm and overrides the confirm_login_allowed() method. This method should raise a Validatio... | |
doc_27743 | Wait for completion of a child process, and return a tuple containing its pid and exit status indication: a 16-bit number, whose low byte is the signal number that killed the process, and whose high byte is the exit status (if the signal number is zero); the high bit of the low byte is set if a core file was produced. ... | |
doc_27744 | A class used to check the whether the actual output from a doctest example matches the expected output. OutputChecker defines two methods: check_output(), which compares a given pair of outputs, and returns True if they match; and output_difference(), which returns a string describing the differences between two output... | |
doc_27745 |
lookup_name = 'month' | |
doc_27746 |
Set the path effects. Parameters
path_effectsAbstractPathEffect | |
doc_27747 |
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_27748 |
Load the Labeled Faces in the Wild (LFW) pairs dataset (classification). Download it if necessary.
Classes 2
Samples total 13233
Dimensionality 5828
Features real, between 0 and 255 In the official README.txt this task is described as the “Restricted” task. As I am not sure as to implement the “Unrestricted... | |
doc_27749 |
Return a list of all the top-level nodes. Each node returned is not a pandas storage object. Returns
list
List of objects. | |
doc_27750 | Return a tuple containing event and the current node as xml.dom.minidom.Document if event equals START_DOCUMENT, xml.dom.minidom.Element if event equals START_ELEMENT or END_ELEMENT or xml.dom.minidom.Text if event equals CHARACTERS. The current node does not contain information about its children, unless expandNode() ... | |
doc_27751 | The reverse operation to url_parse(). This accepts arbitrary as well as URL tuples and returns a URL as a string. Parameters
components (Tuple[str, str, str, str, str]) – the parsed URL as tuple which should be converted into a URL string. Return type
str | |
doc_27752 |
Return the positions of the grid cells in figure coordinates. Parameters
figFigure
The figure the grid should be applied to. The subplot parameters (margins and spacing between subplots) are taken from fig.
rawbool, default: False
If True, the subplot parameters of the figure are not taken into account. The... | |
doc_27753 |
Return a copy of the Bbox, shrunk by the factor mx in the x direction and the factor my in the y direction. The lower left corner of the box remains unchanged. Normally mx and my will be less than 1, but this is not enforced. | |
doc_27754 |
Copy properties from other to self. | |
doc_27755 | Register a user signal: install a handler for the signum signal to dump the traceback of all threads, or of the current thread if all_threads is False, into file. Call the previous handler if chain is True. The file must be kept open until the signal is unregistered by unregister(): see issue with file descriptors. Not... | |
doc_27756 | Set the first sequence to be compared. The second sequence to be compared is not changed. | |
doc_27757 | See Migration guide for more details. tf.compat.v1.raw_ops.Relu6Grad
tf.raw_ops.Relu6Grad(
gradients, features, name=None
)
Args
gradients A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, int64, bfloat16, uint16, half, uint32, uint64. The backpropagated gradient... | |
doc_27758 | See Migration guide for more details. tf.compat.v1.estimator.export.TensorServingInputReceiver
tf.estimator.export.TensorServingInputReceiver(
features, receiver_tensors, receiver_tensors_alternatives=None
)
This is for use with models that expect a single Tensor or SparseTensor as an input feature, as opposed t... | |
doc_27759 |
Return self==value. | |
doc_27760 |
Set one or more properties on an Artist, or list allowed values. Parameters
objArtist or list of Artist
The artist(s) whose properties are being set or queried. When setting properties, all artists are affected; when querying the allowed values, only the first instance in the sequence is queried. For example, t... | |
doc_27761 | Decodes the query part of the URL. Ths is a shortcut for calling url_decode() on the query argument. The arguments and keyword arguments are forwarded to url_decode() unchanged. Parameters
args (Any) –
kwargs (Any) – Return type
ds.MultiDict[str, str] | |
doc_27762 |
Return the value of an Artist's property, or print all of them. Parameters
objArtist
The queried artist; e.g., a Line2D, a Text, or an Axes.
propertystr or None, default: None
If property is 'somename', this function returns obj.get_somename(). If it's None (or unset), it prints all gettable properties from... | |
doc_27763 |
Regression based on k-nearest neighbors. The target is predicted by local interpolation of the targets associated of the nearest neighbors in the training set. Read more in the User Guide. New in version 0.9. Parameters
n_neighborsint, default=5
Number of neighbors to use by default for kneighbors queries.
... | |
doc_27764 |
Initialize vertices with path codes. | |
doc_27765 |
Return a copy of the vertices used in this patch. If the patch contains Bezier curves, the curves will be interpolated by line segments. To access the curves as curves, use get_path. | |
doc_27766 |
Segments image using k-means clustering in Color-(x,y,z) space. Parameters
image2D, 3D or 4D ndarray
Input image, which can be 2D or 3D, and grayscale or multichannel (see multichannel parameter). Input image must either be NaN-free or the NaN’s must be masked out
n_segmentsint, optional
The (approximate) n... | |
doc_27767 | Output of the child process if it was captured by run() or check_output(). Otherwise, None. | |
doc_27768 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DWithBiasSumAndRelu
tf.raw_ops.QuantizedConv2DWithBiasSumAndRelu(
input, filter, bias, min_input, max_input, min_filter, max_filter, summand,
strides, padding, out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1],
padding_list=[], name=... | |
doc_27769 | Decorator to require that a view only accepts the POST method. | |
doc_27770 | Based on DateTimeField and translates its input into DateTimeTZRange. Default for DateTimeRangeField. | |
doc_27771 |
Add a SubFigure to the figure as part of a subplot arrangement. Parameters
subplotspecgridspec.SubplotSpec
Defines the region in a parent gridspec where the subfigure will be placed. Returns
figure.SubFigure
Other Parameters
**kwargs
Are passed to the SubFigure object. See also Figure.subfigures | |
doc_27772 | Alias for torch.transpose(). This function is equivalent to NumPy’s swapaxes function. Examples: >>> x = torch.tensor([[[0,1],[2,3]],[[4,5],[6,7]]])
>>> x
tensor([[[0, 1],
[2, 3]],
[[4, 5],
[6, 7]]])
>>> torch.swapdims(x, 0, 1)
tensor([[[0, 1],
[4, 5]],
[[2, 3],
[6, 7]]... | |
doc_27773 |
Bases: matplotlib.backend_bases.FigureCanvasBase draw()[source]
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving t... | |
doc_27774 |
list of weak references to the object (if defined) | |
doc_27775 |
Computes the squared Mahalanobis distances of given observations. Parameters
Xarray-like of shape (n_samples, n_features)
The observations, the Mahalanobis distances of the which we compute. Observations are assumed to be drawn from the same distribution than the data used in fit. Returns
distndarray of s... | |
doc_27776 | See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNParamsToCanonicalV2
tf.raw_ops.CudnnRNNParamsToCanonicalV2(
num_layers, num_units, input_size, params, num_params_weights,
num_params_biases, rnn_mode='lstm',
input_mode='linear_input', direction='unidirectional',
dropout=0, seed=0, se... | |
doc_27777 | A dictionary mapping names to descriptors for nested functions and classes. New in version 3.7. | |
doc_27778 |
Predict using GLM with feature matrix X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Samples. Returns
y_predarray of shape (n_samples,)
Returns predicted values. | |
doc_27779 | Register the factory function with the name name. The factory function should return an object which implements the DOMImplementation interface. The factory function can return the same object every time, or a new one for each call, as appropriate for the specific implementation (e.g. if that implementation supports so... | |
doc_27780 |
Get the matrix for the affine part of this transform. | |
doc_27781 | The tokenize() generator requires one argument, readline, which must be a callable object which provides the same interface as the io.IOBase.readline() method of file objects. Each call to the function should return one line of input as bytes. The generator produces 5-tuples with these members: the token type; the toke... | |
doc_27782 |
Bases: matplotlib.patches.Patch An elliptical annulus. Parameters
xy(float, float)
xy coordinates of annulus centre.
rfloat or (float, float)
The radius, or semi-axes: If float: radius of the outer circle. If two floats: semi-major and -minor axes of outer ellipse.
widthfloat
Width (thickness) of the ... | |
doc_27783 |
Bases: matplotlib.backend_bases.Event An event that has a screen location. A LocationEvent has a number of special attributes in addition to those defined by the parent Event class. Attributes
x, yint or None
Event location in pixels from bottom left of canvas.
inaxesAxes or None
The Axes instance over whic... | |
doc_27784 |
Predict class probabilities of the input samples X. The predicted class probability is the fraction of samples of the same class in a leaf. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is p... | |
doc_27785 |
Return the axes padding. Returns
hpad, vpad
Padding (horizontal pad, vertical pad) in inches. | |
doc_27786 | class ast.Sub
class ast.Mult
class ast.Div
class ast.FloorDiv
class ast.Mod
class ast.Pow
class ast.LShift
class ast.RShift
class ast.BitOr
class ast.BitXor
class ast.BitAnd
class ast.MatMult
Binary operator tokens. | |
doc_27787 | Casts all floating point parameters and buffers to half datatype. Returns
self Return type
Module | |
doc_27788 |
Plot horizontal lines at each y from xmin to xmax. Parameters
yfloat or array-like
y-indexes where to plot the lines.
xmin, xmaxfloat or array-like
Respective beginning and end of each line. If scalars are provided, all lines will have same length.
colorslist of colors, default: rcParams["lines.color"] (d... | |
doc_27789 |
Display data as an image, i.e., on a 2D regular raster. The input may either be actual RGB(A) data, or 2D scalar data, which will be rendered as a pseudocolor image. For displaying a grayscale image set up the colormapping using the parameters cmap='gray', vmin=0, vmax=255. The number of pixels used to render an imag... | |
doc_27790 |
Set the font properties that control the text. Parameters
fpfont_manager.FontProperties or str or pathlib.Path
If a str, it is interpreted as a fontconfig pattern parsed by FontProperties. If a pathlib.Path, it is interpreted as the absolute path to a font file. | |
doc_27791 |
Return the average log-likelihood of all samples. See. “Pattern Recognition and Machine Learning” by C. Bishop, 12.2.1 p. 574 or http://www.miketipping.com/papers/met-mppca.pdf Parameters
Xarray-like of shape (n_samples, n_features)
The data.
yIgnored
Returns
llfloat
Average log-likelihood of the samp... | |
doc_27792 |
Animation using a fixed set of Artist objects. Before creating an instance, all plotting should have taken place and the relevant artists saved. Note You must store the created Animation in a variable that lives as long as the animation should run. Otherwise, the Animation object will be garbage-collected and the an... | |
doc_27793 |
Check whether iterations are left, and perform a single internal iteration without returning the result. Used in the C-style pattern do-while pattern. For an example, see nditer. Returns
iternextbool
Whether or not there are iterations left. | |
doc_27794 | get the name of a key identifier name(key) -> string Get the descriptive name of the button from a keyboard button id constant. | |
doc_27795 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesTrainingPredict
tf.raw_ops.BoostedTreesTrainingPredict(
tree_ensemble_handle, cached_tree_ids, cached_node_ids, bucketized_features,
logits_dimension, name=None
)
computes the update to cached logits. It is designed to be used during trai... | |
doc_27796 | See Migration guide for more details. tf.compat.v1.raw_ops.DestroyResourceOp
tf.raw_ops.DestroyResourceOp(
resource, ignore_lookup_error=True, name=None
)
All subsequent operations using the resource will result in a NotFound error status.
Args
resource A Tensor of type resource. handle to the resource ... | |
doc_27797 | The name of the ContentType foreign key field on the model. Defaults to content_type. | |
doc_27798 | joins two rectangles into one union(Rect) -> Rect Returns a new rectangle that completely covers the area of the two provided rectangles. There may be area inside the new Rect that is not covered by the originals. | |
doc_27799 | tf.debugging.assert_non_positive(
x, message=None, summarize=None, name=None
)
This Op checks that x[i] <= 0 holds for every element of x. If x is empty, this is trivially satisfied. If x is not <= 0 everywhere, message, as well as the first summarize entries of x are printed, and InvalidArgumentError is raised.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.