_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_25100 | The request was not successfully authenticated, and the highest priority authentication class does not use WWW-Authenticate headers. — An HTTP 403 Forbidden response will be returned.
The request was not successfully authenticated, and the highest priority authentication class does use WWW-Authenticate headers. — An ... | |
doc_25101 | keys()
Return an iterator over all keys if called as iterkeys() or return a list of keys if called as keys(). | |
doc_25102 | Return a representation of the proxy object. | |
doc_25103 | Plotting Basic Spans Spectral Statistics Binned Contours 2D arrays Unstructured triangles Text and annotations Vector fields Clearing Appearance Property cycle
Axis / limits Axis limits and direction Axis labels, title, and legend Axis scales Autoscaling and margins Aspect ratio Ticks and tick labels Units Addin... | |
doc_25104 |
Insert a placeholder node into the Graph. A placeholder represents a function input. Parameters
name (str) – A name for the input value. This corresponds to the name of the positional argument to the function this Graph represents.
type_expr (Optional[Any]) – an optional type annotation representing the Python t... | |
doc_25105 | Called when the connection is lost or closed. The argument is either an exception object or None. The latter means a regular EOF is received, or the connection was aborted or closed by this side of the connection. | |
doc_25106 | Return the qualified name for a (namespace, localname) pair. | |
doc_25107 | 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_25108 | Required. The maximum length (in characters) of the field. The max_length is enforced at the database level and in Django’s validation using MaxLengthValidator. Note If you are writing an application that must be portable to multiple database backends, you should be aware that there are restrictions on max_length for ... | |
doc_25109 | Saves a new file using the storage system, preferably with the name specified. If there already exists a file with this name name, the storage system may modify the filename as necessary to get a unique name. The actual name of the stored file will be returned. The max_length argument is passed along to get_available_n... | |
doc_25110 | sklearn.isotonic.check_increasing(x, y) [source]
Determine whether y is monotonically correlated with x. y is found increasing or decreasing with respect to x based on a Spearman correlation test. Parameters
xarray-like of shape (n_samples,)
Training data.
yarray-like of shape (n_samples,)
Training target. ... | |
doc_25111 | Round away from zero if last digit after rounding towards zero would have been 0 or 5; otherwise round towards zero. | |
doc_25112 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchFFT3D
tf.raw_ops.BatchFFT3D(
input, name=None
)
Args
input A Tensor of type complex64.
name A name for the operation (optional).
Returns A Tensor of type complex64. | |
doc_25113 |
Return the position of the rectangle. | |
doc_25114 |
Get the Timestamp for the end of the period. Returns
Timestamp
See also Period.start_time
Return the start Timestamp. Period.dayofyear
Return the day of year. Period.daysinmonth
Return the days in that month. Period.dayofweek
Return the day of the week. | |
doc_25115 |
Set the tail patch. Parameters
patchApatches.Patch | |
doc_25116 |
Apply only the affine part of this transformation on the given array of values. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally a no-op. In affine transformations, this is equivalent to transform(values). Parameters
valuesa... | |
doc_25117 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_25118 | See Migration guide for more details. tf.compat.v1.math.reduce_prod
tf.compat.v1.reduce_prod(
input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None,
keep_dims=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: k... | |
doc_25119 |
Return (x1 != x2) element-wise. Parameters
x1, x2array_like
Input arrays. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output).
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must h... | |
doc_25120 | Open FTP URLs, keeping a cache of open FTP connections to minimize delays. | |
doc_25121 | Optional. Use this when you don’t want to have a last page with very few items. If the last page would normally have a number of items less than or equal to orphans, then those items will be added to the previous page (which becomes the last page) instead of leaving the items on a page by themselves. For example, with ... | |
doc_25122 |
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_25123 |
Bases: matplotlib.backends.backend_cairo.FigureCanvasCairo, matplotlib.backends._backend_tk.FigureCanvasTk 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 ... | |
doc_25124 | Optionally the import path for the Flask application. | |
doc_25125 | See Migration guide for more details. tf.compat.v1.data.experimental.ThreadingOptions
tf.data.experimental.ThreadingOptions()
You can set the threading options of a dataset through the experimental_threading property of tf.data.Options; the property is an instance of tf.data.experimental.ThreadingOptions. options = ... | |
doc_25126 |
Similar to smart_str(), except that lazy instances are resolved to strings, rather than kept as lazy objects. If strings_only is True, don’t convert (some) non-string-like objects. | |
doc_25127 |
Helper decorator for backward methods of custom autograd functions (subclasses of torch.autograd.Function). Ensures that backward executes with the same autocast state as forward. See the example page for more detail. | |
doc_25128 |
Set the label properties - color, fontsize, text. | |
doc_25129 |
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters
in_layoutbool | |
doc_25130 |
Concatenate all images in the collection into an array. Returns
arnp.ndarray
An array having one more dimension than the images in self. Raises
ValueError
If images in the ImageCollection don’t have identical shapes. See also
concatenate_images | |
doc_25131 | Determine the prefix for the generated form. Returns prefix by default. | |
doc_25132 |
Set the locators and formatters of axis to instances suitable for this scale. | |
doc_25133 | Reference pixels into a 3d array pixels3d(Surface) -> array Create a new 3D array that directly references the pixel values in a Surface. Any changes to the array will affect the pixels in the Surface. This is a fast operation since no data is copied. This will only work on Surfaces that have 24-bit or 32-bit formats... | |
doc_25134 | Request message list, result is in the form (response, ['mesg_num octets',
...], octets). If which is set, it is the message to list. | |
doc_25135 |
Learn a NMF model for the data X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Data matrix to be decomposed
yIgnored
Returns
self | |
doc_25136 | at the end of your dataset, and see how it affects your model's step time. take(1).cache().repeat() will cache the first element of your dataset and produce it repeatedly. This should make the dataset very fast, so that the model becomes the bottleneck and you can identify the ideal model speed. With enough workers, t... | |
doc_25137 |
Apply a flat kernel bilateral filter. This is an edge-preserving and noise reducing denoising filter. It averages pixels based on their spatial closeness and radiometric similarity. Spatial closeness is measured by considering only the local pixel neighborhood given by a structuring element. Radiometric similarity is... | |
doc_25138 |
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_25139 |
Performs Sigmoid Correction on the input image. Also known as Contrast Adjustment. This function transforms the input image pixelwise according to the equation O = 1/(1 + exp*(gain*(cutoff - I))) after scaling each pixel to the range 0 to 1. Parameters
imagendarray
Input image.
cutofffloat, optional
Cutoff ... | |
doc_25140 | See Migration guide for more details. tf.compat.v1.raw_ops.ConcatenateDataset
tf.raw_ops.ConcatenateDataset(
input_dataset, another_dataset, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant.
another_dataset A Tensor of type variant.
output_types A list of ... | |
doc_25141 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.Discretization
tf.keras.layers.experimental.preprocessing.Discretization(
bins, **kwargs
)
This layer will place each element of its input data into one of several contiguous ranges and output an integer index indicating w... | |
doc_25142 |
Measure many replicates while keeping timer overhead to a minimum. At a high level, blocked_autorange executes the following pseudo-code: `setup`
total_time = 0
while total_time < min_run_time
start = timer()
for _ in range(block_size):
`stmt`
total_time += (timer() - start)
Note the variable bl... | |
doc_25143 |
Return the maximum along a given axis. Refer to numpy.amax for full documentation. See also numpy.amax
equivalent function | |
doc_25144 | Asserts that the HTML fragment needle is contained in the haystack one. If the count integer argument is specified, then additionally the number of needle occurrences will be strictly verified. Whitespace in most cases is ignored, and attribute ordering is not significant. See assertHTMLEqual() for more details. | |
doc_25145 |
The minutes of the datetime. Examples
>>> datetime_series = pd.Series(
... pd.date_range("2000-01-01", periods=3, freq="T")
... )
>>> datetime_series
0 2000-01-01 00:00:00
1 2000-01-01 00:01:00
2 2000-01-01 00:02:00
dtype: datetime64[ns]
>>> datetime_series.dt.minute
0 0
1 1
2 2
dtype: int64 | |
doc_25146 |
Access a single value for a row/column pair by integer position. Similar to iloc, in that both provide integer-based lookups. Use iat if you only need to get or set a single value in a DataFrame or Series. Raises
IndexError
When integer position is out of bounds. See also DataFrame.at
Access a single value... | |
doc_25147 |
Remove contiguous holes smaller than the specified size. Parameters
arndarray (arbitrary shape, int or bool type)
The array containing the connected components of interest.
area_thresholdint, optional (default: 64)
The maximum area, in pixels, of a contiguous hole that will be filled. Replaces min_size.
c... | |
doc_25148 | Tries to execute this command, performing system checks if needed (as controlled by the requires_system_checks attribute). If the command raises a CommandError, it’s intercepted and printed to stderr. | |
doc_25149 |
Return whether face is colored. | |
doc_25150 | An async def function definition. Has the same fields as FunctionDef. | |
doc_25151 | See Migration guide for more details. tf.compat.v1.linalg.norm
tf.compat.v1.norm(
tensor, ord='euclidean', axis=None, keepdims=None, name=None,
keep_dims=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: keep_dims is deprecated, u... | |
doc_25152 |
Set the locators and formatters of axis to instances suitable for this scale. | |
doc_25153 | Create a RequestContext for a WSGI environment created from the given values. This is mostly useful during testing, where you may want to run a function that uses request data without dispatching a full request. See The Request Context. Use a with block to push the context, which will make request point at the request ... | |
doc_25154 |
Loads the schedulers state. Parameters
state_dict (dict) – scheduler state. Should be an object returned from a call to state_dict(). | |
doc_25155 | A subclass of Shelf which accepts a filename instead of a dict-like object. The underlying file will be opened using dbm.open(). By default, the file will be created and opened for both read and write. The optional flag parameter has the same interpretation as for the open() function. The optional protocol and writebac... | |
doc_25156 | Get a list of frame records for a traceback’s frame and all inner frames. These frames represent calls made as a consequence of frame. The first entry in the list represents traceback; the last entry represents where the exception was raised. Changed in version 3.5: A list of named tuples FrameInfo(frame, filename, li... | |
doc_25157 | bytearray.rjust(width[, fillbyte])
Return a copy of the object right justified in a sequence of length width. Padding is done using the specified fillbyte (default is an ASCII space). For bytes objects, the original sequence is returned if width is less than or equal to len(s). Note The bytearray version of this met... | |
doc_25158 | When serving files, set the cache control max age to this number of seconds. Can be a datetime.timedelta or an int. Override this value on a per-file basis using get_send_file_max_age() on the application or blueprint. If None, send_file tells the browser to use conditional requests will be used instead of a timed cach... | |
doc_25159 |
Inverse short time Fourier Transform. This is expected to be the inverse of stft(). It has the same parameters (+ additional optional parameter of length) and it should return the least squares estimation of the original signal. The algorithm will check using the NOLA condition ( nonzero overlap). Important considera... | |
doc_25160 | alias of werkzeug.useragents._UserAgent | |
doc_25161 | Alternative constructor. The tarfile.open() function is actually a shortcut to this classmethod. | |
doc_25162 |
Matrix or vector norm. This function is able to return one of eight different matrix norms, or one of an infinite number of vector norms (described below), depending on the value of the ord parameter. Parameters
xarray_like
Input array. If axis is None, x must be 1-D or 2-D, unless ord is None. If both axis and... | |
doc_25163 |
Fit all transformers, transform the data and concatenate results. Parameters
X{array-like, dataframe} of shape (n_samples, n_features)
Input data, of which specified subsets are used to fit the transformers.
yarray-like of shape (n_samples,), default=None
Targets for supervised learning. Returns
X_t{a... | |
doc_25164 | Exception failing because of RFC 2109 invalidity: incorrect attributes, incorrect Set-Cookie header, etc. | |
doc_25165 | sklearn.metrics.recall_score(y_true, y_pred, *, labels=None, pos_label=1, average='binary', sample_weight=None, zero_division='warn') [source]
Compute the recall. The recall is the ratio tp / (tp + fn) where tp is the number of true positives and fn the number of false negatives. The recall is intuitively the ability... | |
doc_25166 |
Multiply one Chebyshev series by another. Returns the product of two Chebyshev series c1 * c2. The arguments are sequences of coefficients, from lowest order “term” to highest, e.g., [1,2,3] represents the series T_0 + 2*T_1 + 3*T_2. Parameters
c1, c2array_like
1-D arrays of Chebyshev series coefficients ordere... | |
doc_25167 | tf.compat.v1.get_variable_scope() | |
doc_25168 | In-place version of lcm() | |
doc_25169 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_25170 |
Return the artist's zorder. | |
doc_25171 |
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_25172 |
Set and validate the parameters of estimator. Parameters
**kwargsdict
Estimator parameters. Returns
selfobject
Estimator instance. | |
doc_25173 | stat.FILE_ATTRIBUTE_COMPRESSED
stat.FILE_ATTRIBUTE_DEVICE
stat.FILE_ATTRIBUTE_DIRECTORY
stat.FILE_ATTRIBUTE_ENCRYPTED
stat.FILE_ATTRIBUTE_HIDDEN
stat.FILE_ATTRIBUTE_INTEGRITY_STREAM
stat.FILE_ATTRIBUTE_NORMAL
stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
stat.FILE_ATTRIBUTE_NO_SCRUB_DATA
stat.FILE_ATTRIBUTE... | |
doc_25174 | The Forms API Bound and unbound forms Using forms to validate data Initial form values Checking which form data has changed Accessing the fields from the form Accessing “clean” data Outputting forms as HTML More granular output Customizing BoundField Binding uploaded files to a form Subclassing forms Prefixes for forms... | |
doc_25175 |
alias of matplotlib.backends.backend_template.FigureCanvasTemplate | |
doc_25176 |
Adjust the Axes for a specified data aspect ratio. Depending on get_adjustable this will modify either the Axes box (position) or the view limits. In the former case, get_anchor will affect the position. See also matplotlib.axes.Axes.set_aspect
For a description of aspect ratio handling. matplotlib.axes.Axes.set_... | |
doc_25177 |
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_25178 | This is the base class for all registered handlers — and handles only the simple mechanics of registration. | |
doc_25179 |
Given the location and size of the box, return the path of the box around it. Parameters
x0, y0, width, heightfloat
Location and size of the box.
mutation_sizefloat
A reference scale for the mutation. Returns
Path | |
doc_25180 |
Set the current Axes to be a and return a. | |
doc_25181 | See Migration guide for more details. tf.compat.v1.raw_ops.DeleteRandomSeedGenerator
tf.raw_ops.DeleteRandomSeedGenerator(
handle, deleter, name=None
)
Args
handle A Tensor of type resource.
deleter A Tensor of type variant.
name A name for the operation (optional).
Returns The cre... | |
doc_25182 |
Evaluate a 2-D Laguerre series at points (x, y). This function returns the values: \[p(x,y) = \sum_{i,j} c_{i,j} * L_i(x) * L_j(y)\] The parameters x and y are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after conversion. In either... | |
doc_25183 |
Creates a SummaryWriter that will write out events and summaries to the event file. Parameters
log_dir (string) – Save directory location. Default is runs/CURRENT_DATETIME_HOSTNAME, which changes after each run. Use hierarchical folder structure to compare between runs easily. e.g. pass in ‘runs/exp1’, ‘runs/exp2... | |
doc_25184 | See Migration guide for more details. tf.compat.v1.raw_ops.StringNGrams
tf.raw_ops.StringNGrams(
data, data_splits, separator, ngram_widths, left_pad, right_pad, pad_width,
preserve_short_sequences, name=None
)
This op accepts a ragged tensor with 1 ragged dimension containing only strings and outputs a ragg... | |
doc_25185 | class sklearn.linear_model.LarsCV(*, fit_intercept=True, verbose=False, max_iter=500, normalize=True, precompute='auto', cv=None, max_n_alphas=1000, n_jobs=None, eps=2.220446049250313e-16, copy_X=True) [source]
Cross-validated Least Angle Regression model. See glossary entry for cross-validation estimator. Read more ... | |
doc_25186 | An integer specifying the number of “overflow” objects the last page can contain. By default this returns the value of paginate_orphans. | |
doc_25187 | get the bytes used per Surface pixel get_bytesize() -> int Return the number of bytes used per pixel. | |
doc_25188 | tf.compat.v1.strings.split(
input=None, sep=None, maxsplit=-1, result_type='SparseTensor',
source=None, name=None
)
Let N be the size of input (typically N will be the batch size). Split each element of input based on sep and return a SparseTensor or RaggedTensor containing the split tokens. Empty tokens are i... | |
doc_25189 |
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters
bbool | |
doc_25190 |
Return width, height, xdescent, ydescent of box. | |
doc_25191 |
Alias for set_linestyle. | |
doc_25192 |
Write object to an Excel sheet. To write a single object to an Excel .xlsx file it is only necessary to specify a target file name. To write to multiple sheets it is necessary to create an ExcelWriter object with a target file name, and specify a sheet in the file to write to. Multiple sheets may be written to by spe... | |
doc_25193 |
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters
Xarray-like of shape (n_samples, n_features)
Input samples.
yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None
Target values (None for uns... | |
doc_25194 |
Unsigned integer type, compatible with C unsigned char. Character code
'B' Alias on this platform (Linux x86_64)
numpy.uint8: 8-bit unsigned integer (0 to 255). | |
doc_25195 | tf.image.is_jpeg Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.is_jpeg, tf.compat.v1.io.is_jpeg
tf.io.is_jpeg(
contents, name=None
)
Args
contents 0-D string. The encoded image bytes.
name A name for the operation (optional)
Returns A scalar boolea... | |
doc_25196 |
Bases: matplotlib.ticker.Locator Dynamically find minor tick positions based on the positions of major ticks. The scale must be linear with major ticks evenly spaced. n is the number of subdivisions of the interval between major ticks; e.g., n=2 will place a single minor tick midway between major ticks. If n is omitt... | |
doc_25197 |
Set the threshold for labelling minors ticks. Parameters
minor_thresholdint
Maximum number of locations for labelling some minor ticks. This parameter have no effect if minor is False. | |
doc_25198 |
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con... | |
doc_25199 |
Imputes all missing values in X. Note that this is stochastic, and that if random_state is not fixed, repeated calls, or permuted input, will yield different results. Parameters
Xarray-like of shape (n_samples, n_features)
The input data to complete. Returns
Xtarray-like, shape (n_samples, n_features)
T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.