_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_10700 |
Set the url for links in compatible backends. | |
doc_10701 |
Gauss-HermiteE quadrature. Computes the sample points and weights for Gauss-HermiteE quadrature. These sample points and weights will correctly integrate polynomials of degree \(2*deg - 1\) or less over the interval \([-\inf, \inf]\) with the weight function \(f(x) = \exp(-x^2/2)\). Parameters
degint
Number of ... | |
doc_10702 |
Switch display mode with overline for labelling p>1/2. Parameters
use_overlinebool, default: False
If x > 1/2, with x = 1-v, indicate if x should be displayed as $overline{v}$. The default is to display $1-v$. | |
doc_10703 | Tries to create a socket; on failure, uses an exponential back-off algorithm. On initial failure, the handler will drop the message it was trying to send. When subsequent messages are handled by the same instance, it will not try connecting until some time has passed. The default parameters are such that the initial de... | |
doc_10704 | See Migration guide for more details. tf.compat.v1.raw_ops.DecodeJpeg
tf.raw_ops.DecodeJpeg(
contents, channels=0, ratio=1, fancy_upscaling=True,
try_recover_truncated=False, acceptable_fraction=1, dct_method='',
name=None
)
The attr channels indicates the desired number of color channels for the decoded... | |
doc_10705 |
function
A class attribute describing the function that will be generated. Specifically, the function will be interpolated as the function placeholder within template. Defaults to None.
template
A class attribute, as a format string, that describes the SQL that is generated for this function. Defaults to '%(f... | |
doc_10706 |
See SoftMarginLoss for details. | |
doc_10707 | Is True if the Tensor is a meta tensor, False otherwise. Meta tensors are like normal tensors, but they carry no data. | |
doc_10708 | Outputs the record to the file, but first calls reopenIfNeeded() to reopen the file if it has changed. | |
doc_10709 | Returns the application iterator for the given environ. Depending on the request method and the current status code the return value might be an empty response rather than the one from the response. If the request method is HEAD or the status code is in a range where the HTTP specification requires an empty response, a... | |
doc_10710 |
Return the derivative of the specified order of a polynomial. Note This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in numpy.polynomial is preferred. A summary of the differences can be found in the transition guide. Parameters
ppoly1d or sequence
Polynomial to diff... | |
doc_10711 | Create a symbolic link pointing to src named dst. On Windows, a symlink represents either a file or a directory, and does not morph to the target dynamically. If the target is present, the type of the symlink will be created to match. Otherwise, the symlink will be created as a directory if target_is_directory is True ... | |
doc_10712 |
Draw histogram of the input series using matplotlib. Parameters
by:object, optional
If passed, then used to form histograms for separate groups.
ax:matplotlib axis object
If not passed, uses gca().
grid:bool, default True
Whether to show axis grid lines.
xlabelsize:int, default None
If specified cha... | |
doc_10713 | The host that the request originated from. Set access_control_allow_origin on the response to indicate which origins are allowed. | |
doc_10714 |
Get the zaxis' tick labels. Parameters
minorbool
Whether to return the minor or the major ticklabels.
whichNone, ('minor', 'major', 'both')
Overrides minor. Selects which ticklabels to return Returns
list of Text
Notes The tick label strings are not populated until a draw method has been called. Se... | |
doc_10715 | Decorator for bigmem tests. size is a requested size for the test (in arbitrary, test-interpreted units.) memuse is the number of bytes per unit for the test, or a good estimate of it. For example, a test that needs two byte buffers, of 4 GiB each, could be decorated with @bigmemtest(size=_4G, memuse=2). The size argum... | |
doc_10716 | tf.compat.v1.lite.experimental.get_potentially_supported_ops()
The potentially support list contains a list of ops that are partially or fully supported, which is derived by simply scanning op names to check whether they can be handled without real conversion and specific parameters. Given that some ops may be partial... | |
doc_10717 |
Set up axis ticks and labels to treat data along the xaxis as dates. Parameters
tzstr or datetime.tzinfo, default: rcParams["timezone"] (default: 'UTC')
The timezone used to create date labels. | |
doc_10718 | platform.architecture(executable=sys.executable, bits='', linkage='')
Queries the given executable (defaults to the Python interpreter binary) for various architecture information. Returns a tuple (bits, linkage) which contain information about the bit architecture and the linkage format used for the executable. Both... | |
doc_10719 | '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_10720 | Creates a new dataclass with name cls_name, fields as defined in fields, base classes as given in bases, and initialized with a namespace as given in namespace. fields is an iterable whose elements are each either name, (name, type), or (name, type, Field). If just name is supplied, typing.Any is used for type. The val... | |
doc_10721 |
Grab the image information from the figure and save as a movie frame. All keyword arguments in savefig_kwargs are passed on to the savefig call that saves the figure. | |
doc_10722 | See Migration guide for more details. tf.compat.v1.raw_ops.FlatMapDataset
tf.raw_ops.FlatMapDataset(
input_dataset, other_arguments, f, output_types, output_shapes, name=None
)
Unlike MapDataset, the f in FlatMapDataset is expected to return a Dataset variant, and FlatMapDataset will flatten successive results i... | |
doc_10723 | See Migration guide for more details. tf.compat.v1.raw_ops.MaxPoolGrad
tf.raw_ops.MaxPoolGrad(
orig_input, orig_output, grad, ksize, strides, padding, explicit_paddings=[],
data_format='NHWC', name=None
)
Args
orig_input A Tensor. Must be one of the following types: float32, float64, int32, uint8, i... | |
doc_10724 |
Fit Ridge regression model with cv. Parameters
Xndarray of shape (n_samples, n_features)
Training data. If using GCV, will be cast to float64 if necessary.
yndarray of shape (n_samples,) or (n_samples, n_targets)
Target values. Will be cast to X’s dtype if necessary.
sample_weightfloat or ndarray of shape... | |
doc_10725 |
Bases: matplotlib.axes._axes.Axes Build an Axes in a figure. Parameters
figFigure
The Axes is built in the Figure fig.
rect[left, bottom, width, height]
The Axes is built in the rectangle rect. rect is in Figure coordinates.
sharex, shareyAxes, optional
The x or y axis is shared with the x or y axis in ... | |
doc_10726 | Return a bytes containing up to n bytes starting from the current file position. If the argument is omitted, None or negative, return all bytes from the current file position to the end of the mapping. The file position is updated to point after the bytes that were returned. Changed in version 3.3: Argument can be omi... | |
doc_10727 |
Visualization of Haar-like features. Parameters
image(M, N) ndarray
The region of an integral image for which the features need to be computed.
rint
Row-coordinate of top left corner of the detection window.
cint
Column-coordinate of top left corner of the detection window.
widthint
Width of the det... | |
doc_10728 | Classes can further influence how their instances are pickled; if the class defines the method __getstate__(), it is called and the returned object is pickled as the contents for the instance, instead of the contents of the instance’s dictionary. If the __getstate__() method is absent, the instance’s __dict__ is pickle... | |
doc_10729 |
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation. | |
doc_10730 | The instance namespace for the URL pattern that matches the URL. | |
doc_10731 | tf.compat.v1.ragged.constant_value(
pylist, dtype=None, ragged_rank=None, inner_shape=None,
row_splits_dtype='int64'
)
Warning: This function returns a RaggedTensorValue, not a RaggedTensor. If you wish to construct a constant RaggedTensor, use ragged.constant(...) instead. Example:
tf.compat.v1.ragged.consta... | |
doc_10732 |
Draw samples from the geometric distribution. Bernoulli trials are experiments with one of two outcomes: success or failure (an example of such an experiment is flipping a coin). The geometric distribution models the number of trials that must be run in order to achieve success. It is therefore supported on the posit... | |
doc_10733 | Signal the parser that the data stream is terminated. Unlike XMLParser.close(), this method always returns None. Any events not yet retrieved when the parser is closed can still be read with read_events(). | |
doc_10734 | get the length of the Sound get_length() -> seconds Return the length of this Sound in seconds. | |
doc_10735 |
Compute data covariance with the FactorAnalysis model. cov = components_.T * components_ + diag(noise_variance) Returns
covndarray of shape (n_features, n_features)
Estimated covariance of data. | |
doc_10736 |
Use an index array to construct a new array from a list of choices. Given an array of integers and a list of n choice arrays, this method will create a new array that merges each of the choice arrays. Where a value in index is i, the new array will have the value that choices[i] contains in the same place. Parameter... | |
doc_10737 |
Bases: enum.IntEnum Backend-independent cursor types. HAND=2[source]
MOVE=4[source]
POINTER=1[source]
RESIZE_HORIZONTAL=6[source]
RESIZE_VERTICAL=7[source]
SELECT_REGION=3[source]
WAIT=5[source] | |
doc_10738 |
Scalar method identical to the corresponding array attribute. Please see ndarray.searchsorted. | |
doc_10739 |
Return the first element in obj. This is an type-independent way of obtaining the first element, supporting both index access and the iterator protocol. | |
doc_10740 | See Migration guide for more details. tf.compat.v1.raw_ops.PaddingFIFOQueue
tf.raw_ops.PaddingFIFOQueue(
component_types, shapes=[], capacity=-1, container='',
shared_name='', name=None
)
Variable-size shapes are allowed by setting the corresponding shape dimensions to 0 in the shape attr. In this case Deque... | |
doc_10741 | sys.__displayhook__
sys.__excepthook__
sys.__unraisablehook__
These objects contain the original values of breakpointhook, displayhook, excepthook, and unraisablehook at the start of the program. They are saved so that breakpointhook, displayhook and excepthook, unraisablehook can be restored in case they happen ... | |
doc_10742 | from django.shortcuts import get_object_or_404
from myapps.serializers import UserSerializer
from rest_framework import viewsets
from rest_framework.response import Response
class UserViewSet(viewsets.ViewSet):
"""
A simple ViewSet for listing or retrieving users.
"""
def list(self, request):
q... | |
doc_10743 |
Return this Axis' major tick locations in data coordinates. | |
doc_10744 |
Set appearance parameters for ticks, ticklabels, and gridlines. For documentation of keyword arguments, see matplotlib.axes.Axes.tick_params().
Examples using matplotlib.axis.Axis.set_tick_params
Violin plot customization
Dollar Ticks
Scatter Histogram (Locatable Axes)
Pythonic Matplotlib... | |
doc_10745 |
Retrieve pandas object stored in file. Parameters
key:str
Returns
object
Same type as object stored in file. | |
doc_10746 | class sklearn.impute.SimpleImputer(*, missing_values=nan, strategy='mean', fill_value=None, verbose=0, copy=True, add_indicator=False) [source]
Imputation transformer for completing missing values. Read more in the User Guide. New in version 0.20: SimpleImputer replaces the previous sklearn.preprocessing.Imputer est... | |
doc_10747 |
Bases: matplotlib.patches.BoxStyle._Base A circular box. Parameters
padfloat, default: 0.3
The amount of padding around the original box. __call__(x0, y0, width, height, mutation_size, mutation_aspect=<deprecated parameter>)[source]
Given the location and size of the box, return the path of the box arou... | |
doc_10748 | This is a convenience method for calling sendmail() with the message represented by an email.message.Message object. The arguments have the same meaning as for sendmail(), except that msg is a Message object. If from_addr is None or to_addrs is None, send_message fills those arguments with addresses extracted from the ... | |
doc_10749 | A base view for displaying a single object. It is not intended to be used directly, but rather as a parent class of the django.views.generic.detail.DetailView or other views representing details of a single object. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic... | |
doc_10750 |
Loads the scaler state. If this instance is disabled, load_state_dict() is a no-op. Parameters
state_dict (dict) – scaler state. Should be an object returned from a call to state_dict(). | |
doc_10751 | A Q object to control the filtering. | |
doc_10752 |
Alias for get_linewidth. | |
doc_10753 |
Validate the markevery property of a Line2D object. Parameters
sNone, int, (int, int), slice, float, (float, float), or list[int]
Returns
None, int, (int, int), slice, float, (float, float), or list[int] | |
doc_10754 |
The inverse of fftshift. Although identical for even-length x, the functions differ by one sample for odd-length x. Parameters
xarray_like
Input array.
axesint or shape tuple, optional
Axes over which to calculate. Defaults to None, which shifts all axes. Returns
yndarray
The shifted array. See... | |
doc_10755 | See Migration guide for more details. tf.compat.v1.estimator.Exporter
Attributes
name Directory name. A directory name under the export base directory where exports of this type are written. Should not be None nor empty.
Methods export View source
@abc.abstractmethod
export(
estimator, export_path, c... | |
doc_10756 |
Set Matplotlib's root logger and root logger handler level, creating the handler if it does not exist yet. Typically, one should call set_loglevel("info") or set_loglevel("debug") to get additional debugging information. Parameters
level{"notset", "debug", "info", "warning", "error", "critical"}
The log level o... | |
doc_10757 | Registers trace_callback to be called for each SQL statement that is actually executed by the SQLite backend. The only argument passed to the callback is the statement (as string) that is being executed. The return value of the callback is ignored. Note that the backend does not only run statements passed to the Cursor... | |
doc_10758 | class to manage a cdrom drive CD(id) -> CD You can create a CD object for each cdrom on the system. Use pygame.cdrom.get_count() to determine how many drives actually exist. The id argument is an integer of the drive, starting at zero. The CD object is not initialized, you can only call CD.get_id() and CD.get_name() ... | |
doc_10759 | grow or shrink the rectangle size, in place inflate_ip(x, y) -> None Same as the Rect.inflate() method, but operates in place. | |
doc_10760 | In BytesIO, this is the same as readinto(). New in version 3.5. | |
doc_10761 |
Perform total-variation denoising using split-Bregman optimization. Total-variation denoising (also know as total-variation regularization) tries to find an image with less total-variation under the constraint of being similar to the input image, which is controlled by the regularization parameter ([1], [2], [3], [4]... | |
doc_10762 | get a single event from the queue poll() -> EventType instance Returns a single event from the queue. If the event queue is empty an event of type pygame.NOEVENT will be returned immediately. The returned event is removed from the queue. Caution This function should only be called in the thread that initialized pyga... | |
doc_10763 |
Given an input and a flow-field grid, computes the output using input values and pixel locations from grid. Currently, only spatial (4-D) and volumetric (5-D) input are supported. In the spatial (4-D) case, for input with shape (N,C,Hin,Win)(N, C, H_\text{in}, W_\text{in}) and grid with shape (N,Hout,Wout,2)(N, H_\t... | |
doc_10764 | Validates whether the password is sufficiently different from certain attributes of the user. The user_attributes parameter should be an iterable of names of user attributes to compare to. If this argument is not provided, the default is used: 'username', 'first_name', 'last_name', 'email'. Attributes that don’t exist ... | |
doc_10765 |
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_10766 | See Migration guide for more details. tf.compat.v1.raw_ops.ReduceDataset
tf.raw_ops.ReduceDataset(
input_dataset, initial_state, other_arguments, f, output_types, output_shapes,
use_inter_op_parallelism=True, name=None
)
Args
input_dataset A Tensor of type variant. A variant tensor representing the ... | |
doc_10767 | Get a loader object for module_or_name. If the module or package is accessible via the normal import mechanism, a wrapper around the relevant part of that machinery is returned. Returns None if the module cannot be found or imported. If the named module is not already imported, its containing package (if any) is import... | |
doc_10768 | tf.experimental.numpy.arcsin(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.arcsin. | |
doc_10769 |
Return a dictionary of all the properties of the artist. | |
doc_10770 | Reverses the PixelShuffle operation by rearranging elements in a tensor of shape (∗,C,H×r,W×r)(*, C, H \times r, W \times r) to a tensor of shape (∗,C×r2,H,W)(*, C \times r^2, H, W) , where r is the downscale_factor. See PixelUnshuffle for details. Parameters
input (Tensor) – the input tensor
downscale_factor (in... | |
doc_10771 |
Return self<=value. | |
doc_10772 | See Migration guide for more details. tf.compat.v1.image.adjust_contrast
tf.image.adjust_contrast(
images, contrast_factor
)
This is a convenience method that converts RGB images to float representation, adjusts their contrast, and then converts them back to the original data type. If several adjustments are cha... | |
doc_10773 |
Convert continuous line to mid-steps. Given a set of N points convert to 2N points which when connected linearly give a step function which changes values at the middle of the intervals. Parameters
xarray
The x location of the steps. May be empty.
y1, ..., yparray
y arrays to be turned into steps; all must ... | |
doc_10774 |
Fuses a list of modules into a single module Fuses only the following sequence of modules: conv, bn conv, bn, relu conv, relu linear, relu bn, relu All other sequences are left unchanged. For these sequences, replaces the first item in the list with the fused module, replacing the rest of the modules with identity. ... | |
doc_10775 |
Adjust a range as needed to avoid singularities. This method gets called during autoscaling, with (v0, v1) set to the data limits on the axes if the axes contains any data, or (-inf, +inf) if not. If v0 == v1 (possibly up to some floating point slop), this method returns an expanded interval around this value. If (v... | |
doc_10776 | read_pickle(filepath_or_buffer[, ...]) Load pickled pandas object (or any object) from file.
DataFrame.to_pickle(path[, compression, ...]) Pickle (serialize) object to file. Flat file
read_table(filepath_or_buffer[, sep, ...]) Read general delimited file into DataFrame.
read_csv(filepath_or_buffer[, sep... | |
doc_10777 | Return the current contents of the line buffer (rl_line_buffer in the underlying library). | |
doc_10778 | Set during Python startup, before site.py is run, to the same value as exec_prefix. If not running in a virtual environment, the values will stay the same; if site.py finds that a virtual environment is in use, the values of prefix and exec_prefix will be changed to point to the virtual environment, whereas base_prefix... | |
doc_10779 | See Migration guide for more details. tf.compat.v1.raw_ops.LessEqual
tf.raw_ops.LessEqual(
x, y, name=None
)
Note: math.less_equal supports broadcasting. More about broadcasting here
Example: x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.less_equal(x, y) ==> [True, True, False]
x = tf.constant([5, 4... | |
doc_10780 |
Gray-level “camera” image. Can be used for segmentation and denoising examples. Returns
camera(512, 512) uint8 ndarray
Camera image. Notes No copyright restrictions. CC0 by the photographer (Lav Varshney). Changed in version 0.18: This image was replaced due to copyright restrictions. For more information,... | |
doc_10781 | moves the rectangle, in place move_ip(x, y) -> None Same as the Rect.move() method, but operates in place. | |
doc_10782 |
Compute the mean structural similarity index between two images. Parameters
im1, im2ndarray
Images. Any dimensionality with same shape.
win_sizeint or None, optional
The side-length of the sliding window used in comparison. Must be an odd value. If gaussian_weights is True, this is ignored and the window si... | |
doc_10783 |
Returns a 3-dimensional view of each input tensor with zero dimensions. Input tensors with three or more dimensions are returned as-is. :param input: :type input: Tensor or list of Tensors Returns
output (Tensor or tuple of Tensors) Example >>> x = torch.tensor(0.5)
>>> x
tensor(0.5000)
>>> torch.atleast_3d(x)
te... | |
doc_10784 | See Migration guide for more details. tf.compat.v1.raw_ops.ParallelMapDatasetV2
tf.raw_ops.ParallelMapDatasetV2(
input_dataset, other_arguments, num_parallel_calls, f, output_types,
output_shapes, use_inter_op_parallelism=True, deterministic='default',
preserve_cardinality=False, name=None
)
Unlike a "Ma... | |
doc_10785 | Raises ValidationError with the following codes:
'max_digits' if the number of digits is larger than max_digits.
'max_decimal_places' if the number of decimals is larger than decimal_places.
'max_whole_digits' if the number of whole digits is larger than the difference between max_digits and decimal_places. | |
doc_10786 | Return the number of items in the queue. | |
doc_10787 |
Return the Transform instance used by this artist. | |
doc_10788 | A Python context manager that uses django.utils.translation.activate() to fetch the translation object for a given language, activates it as the translation object for the current thread and reactivates the previous active language on exit. Optionally, it can deactivate the temporary translation on exit with django.uti... | |
doc_10789 |
Generate a Vandermonde matrix. The columns of the output matrix are powers of the input vector. The order of the powers is determined by the increasing boolean argument. Specifically, when increasing is False, the i-th output column is the input vector raised element-wise to the power of N - i - 1. Such a matrix with... | |
doc_10790 |
Set the data array for y. Parameters
y1D array | |
doc_10791 | Output is used to send midi to an output device Output(device_id) -> None Output(device_id, latency=0) -> None Output(device_id, buffer_size=256) -> None Output(device_id, latency, buffer_size) -> None The buffer_size specifies the number of output events to be buffered waiting for output. In some cases (see below) P... | |
doc_10792 | The text to put at the top of the admin index page (a string). By default, this is “Site administration”. | |
doc_10793 |
Derived should override this method. The arguments are the same as matplotlib.backend_bases.RendererBase.draw_path() except the first argument is a renderer. | |
doc_10794 |
Create a view into the array with the given shape and strides. Warning This function has to be used with extreme care, see notes. Parameters
xndarray
Array to create a new.
shapesequence of int, optional
The shape of the new array. Defaults to x.shape.
stridessequence of int, optional
The strides of t... | |
doc_10795 |
Predict using the linear model. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
Carray, shape (n_samples,)
Returns predicted values. | |
doc_10796 | set ^= other
Update the set, keeping only elements found in either set, but not in both. | |
doc_10797 |
Set vmin, vmax to min, max of A. | |
doc_10798 | Remove the given parameter completely from the Content-Type header. The header will be re-written in place without the parameter or its value. Optional header specifies an alternative to Content-Type. Use of the requote parameter with EmailMessage objects is deprecated. | |
doc_10799 |
True if this transform is separable in the x- and y- dimensions. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.