_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_16300 |
Sets the module in training mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc. Parameters
mode (bool) – whether to set training mode (True) or evaluation mode (Fal... | |
doc_16301 | Return a copy of the string with its first character capitalized and the rest lowercased. Changed in version 3.8: The first character is now put into titlecase rather than uppercase. This means that characters like digraphs will only have their first letter capitalized, instead of the full character. | |
doc_16302 | URL name: login See the URL documentation for details on using named URL patterns. Methods and Attributes
template_name
The name of a template to display for the view used to log the user in. Defaults to registration/login.html.
next_page
New in Django 4.0. The URL to redirect to after login. Defaults to LO... | |
doc_16303 |
Generates a ball-shaped structuring element. This is the 3D equivalent of a disk. A pixel is within the neighborhood if the Euclidean distance between it and the origin is no greater than radius. Parameters
radiusint
The radius of the ball-shaped structuring element. Returns
selemndarray
The structuring... | |
doc_16304 | Returns a new tensor with the natural logarithm of the elements of input. yi=loge(xi)y_{i} = \log_{e} (x_{i})
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(5)
>>> a
tensor([-0.7168, -0.5471, -0.8933, -1.4428, -0.1190])
... | |
doc_16305 | sklearn.covariance.empirical_covariance(X, *, assume_centered=False) [source]
Computes the Maximum likelihood covariance estimator Parameters
Xndarray of shape (n_samples, n_features)
Data from which to compute the covariance estimate
assume_centeredbool, default=False
If True, data will not be centered bef... | |
doc_16306 | See Migration guide for more details. tf.compat.v1.estimator.export.ExportOutput These typically correspond to model heads. Methods as_signature_def View source
@abc.abstractmethod
as_signature_def(
receiver_tensors
)
Generate a SignatureDef proto for inclusion in a MetaGraphDef. The SignatureDef will specify ou... | |
doc_16307 | See Migration guide for more details. tf.compat.v1.math.cumulative_logsumexp
tf.math.cumulative_logsumexp(
x, axis=0, exclusive=False, reverse=False, name=None
)
By default, this op performs an inclusive cumulative log-sum-exp, which means that the first element of the input is identical to the first element of ... | |
doc_16308 |
Return the child. | |
doc_16309 | Returns a new tensor containing real values of the self tensor. The returned tensor and self share the same underlying storage. Warning real() is only supported for tensors with complex dtypes. Example::
>>> x=torch.randn(4, dtype=torch.cfloat)
>>> x
tensor([(0.3100+0.3553j), (-0.5445-0.7896j), (-1.6492-0.0633j), (... | |
doc_16310 | Compresses the bytes in data, returning a bytes object containing compressed data. level is an integer from 0 to 9 or -1 controlling the level of compression; 1 (Z_BEST_SPEED) is fastest and produces the least compression, 9 (Z_BEST_COMPRESSION) is slowest and produces the most. 0 (Z_NO_COMPRESSION) is no compression. ... | |
doc_16311 |
Return whether units are set on any axis. | |
doc_16312 | See Migration guide for more details. tf.compat.v1.initializers.global_variables
tf.compat.v1.global_variables_initializer()
This is just a shortcut for variables_initializer(global_variables())
Returns An Op that initializes global variables in the graph. | |
doc_16313 |
Draw an RGBA image. Parameters
gcGraphicsContextBase
A graphics context with clipping information.
xscalar
The distance in physical units (i.e., dots or pixels) from the left hand side of the canvas.
yscalar
The distance in physical units (i.e., dots or pixels) from the bottom side of the canvas.
im(N... | |
doc_16314 |
Alias for set_facecolor. | |
doc_16315 |
Difference (subtraction) of two polynomials. 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. Given two polynomials a1 and a2, returns a1 - a2. a1 and a2 can be eithe... | |
doc_16316 | Return the number of audio frames in the file. | |
doc_16317 | Format the current directory in HTML. | |
doc_16318 |
Average of the decision functions of the base classifiers. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input samples. Sparse matrices are accepted only if they are supported by the base estimator. Returns
scorendarray of shape (n_samples, k)
The decision functio... | |
doc_16319 |
Returns the number of processes in the current process group Parameters
group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used. Returns
The world size of the process group -1, if not part of the group | |
doc_16320 |
Alias for get_linestyle. | |
doc_16321 |
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su... | |
doc_16322 | Return the square root of x. | |
doc_16323 | Line number at which an error occurred. | |
doc_16324 | See Migration guide for more details. tf.compat.v1.config.experimental.get_device_policy
tf.config.experimental.get_device_policy()
The device policy controls how operations requiring inputs on a specific device (e.g., on GPU:0) handle inputs on a different device (e.g. GPU:1). This function only gets the device pol... | |
doc_16325 | Computes the determinant of a square matrix input, or of each square matrix in a batched input. This function supports float, double, cfloat and cdouble dtypes. Note When given inputs on a CUDA device, this function synchronizes that device with the CPU. Note The determinant is computed using LU factorization. LAPAC... | |
doc_16326 |
Return the bbox Patch, or None if the patches.FancyBboxPatch is not made. | |
doc_16327 | Returns the panel below the current panel. | |
doc_16328 | A copy of the exported buffer as a single block of bytes. raw -> bytes The buffer data as a str/bytes object. Any gaps in the exported data are removed. | |
doc_16329 | This method calculates the travel cost for going from the current node to the next. The default implementation returns new_cost. Overload this method to adapt the behaviour of the algorithm. | |
doc_16330 | Maps registered blueprint names to blueprint objects. The dict retains the order the blueprints were registered in. Blueprints can be registered multiple times, this dict does not track how often they were attached. Changelog New in version 0.7. | |
doc_16331 |
class Comment:
def __init__(self, email, content, created=None):
self.email = email
self.content = content
self.created = created or datetime.now()
comment = Comment(email='leila@example.com', content='foo bar')
We'll declare a serializer that we can use to serialize and deserialize data ... | |
doc_16332 |
Draw the text instance. Parameters
gcGraphicsContextBase
The graphics context.
xfloat
The x location of the text in display coords.
yfloat
The y location of the text baseline in display coords.
sstr
The text string.
propmatplotlib.font_manager.FontProperties
The font properties.
anglefloat
T... | |
doc_16333 | tf.experimental.numpy.expand_dims(
a, axis
)
See the NumPy documentation for numpy.expand_dims. | |
doc_16334 |
Convert strings in the Series/Index to uppercase. Equivalent to str.upper(). Returns
Series or Index of object
See also Series.str.lower
Converts all characters to lowercase. Series.str.upper
Converts all characters to uppercase. Series.str.title
Converts first character of each word to uppercase and rem... | |
doc_16335 | See Migration guide for more details. tf.compat.v1.raw_ops.TemporaryVariable
tf.raw_ops.TemporaryVariable(
shape, dtype, var_name='', name=None
)
This is an experimental op for internal use only and it is possible to use this op in unsafe ways. DO NOT USE unless you fully understand the risks. It is the caller's... | |
doc_16336 |
Reshape a 2D image into a collection of patches The resulting patches are allocated in a dedicated array. Read more in the User Guide. Parameters
imagendarray of shape (image_height, image_width) or (image_height, image_width, n_channels)
The original image data. For color images, the last dimension specifies t... | |
doc_16337 |
Return the sizes ('areas') of the elements in the collection. Returns
array
The 'area' of each element. | |
doc_16338 | types.new_class(name, bases=(), kwds=None, exec_body=None)
Creates a class object dynamically using the appropriate metaclass. The first three arguments are the components that make up a class definition header: the class name, the base classes (in order), the keyword arguments (such as metaclass). The exec_body argu... | |
doc_16339 | 'DEFAULT_RENDERER_CLASSES': [
'rest_framework.renderers.JSONRenderer',
'rest_framework.renderers.BrowsableAPIRenderer',
]
}
You can also set the renderers used for an individual view, or viewset, using the APIView class-based views. from django.contrib.auth.models import User
from rest_framewor... | |
doc_16340 | Compare a and b (lists of strings); return a delta (a generator generating the delta lines) in context diff format. Context diffs are a compact way of showing just the lines that have changed plus a few lines of context. The changes are shown in a before/after style. The number of context lines is set by n which defaul... | |
doc_16341 | A non-callable version of Mock. The constructor parameters have the same meaning of Mock, with the exception of return_value and side_effect which have no meaning on a non-callable mock. | |
doc_16342 | Override to implement platform-specific file transmission. This method is called only if the application’s return value is an instance of the class specified by the wsgi_file_wrapper attribute. It should return a true value if it was able to successfully transmit the file, so that the default transmission code will not... | |
doc_16343 | operator.__ipow__(a, b)
a = ipow(a, b) is equivalent to a **= b. | |
doc_16344 |
Return the mean of the values over the requested axis. Parameters
axis:{index (0)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result.
level:int or level name, default None
If the axis is a MultiIndex (hierarchical), count along a particula... | |
doc_16345 |
Compute average precision (AP) from prediction scores. AP summarizes a precision-recall curve as the weighted mean of precisions achieved at each threshold, with the increase in recall from the previous threshold used as the weight: \[\text{AP} = \sum_n (R_n - R_{n-1}) P_n\] where \(P_n\) and \(R_n\) are the precisi... | |
doc_16346 | ABC for classes that provide the __iter__() method. Checking isinstance(obj, Iterable) detects classes that are registered as Iterable or that have an __iter__() method, but it does not detect classes that iterate with the __getitem__() method. The only reliable way to determine whether an object is iterable is to call... | |
doc_16347 | Token value for ">>". | |
doc_16348 | tf.gather_nd(
params, indices, batch_dims=0, name=None
)
indices is an K-dimensional integer tensor, best thought of as a (K-1)-dimensional tensor of indices into params, where each element defines a slice of params: output[\\(i_0, ..., i_{K-2}\\)] = params[indices[\\(i_0, ..., i_{K-2}\\)]]
Whereas in tf.gather i... | |
doc_16349 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalLatencyStatsDataset
tf.raw_ops.ExperimentalLatencyStatsDataset(
input_dataset, tag, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant.
tag A Tensor of type string.
output_types A list of... | |
doc_16350 | Prevents a TLSv1.2 connection. This option is only applicable in conjunction with PROTOCOL_TLS. It prevents the peers from choosing TLSv1.2 as the protocol version. Available only with openssl version 1.0.1+. New in version 3.4. Deprecated since version 3.7: The option is deprecated since OpenSSL 1.1.0. | |
doc_16351 | class sklearn.impute.IterativeImputer(estimator=None, *, missing_values=nan, sample_posterior=False, max_iter=10, tol=0.001, n_nearest_features=None, initial_strategy='mean', imputation_order='ascending', skip_complete=False, min_value=- inf, max_value=inf, verbose=0, random_state=None, add_indicator=False) [source]
... | |
doc_16352 | Add a function to be called after tearDownClass() to cleanup resources used during the test class. Functions will be called in reverse order to the order they are added (LIFO). They are called with any arguments and keyword arguments passed into addClassCleanup() when they are added. If setUpClass() fails, meaning that... | |
doc_16353 | Indexing Getter Setter TorchVision support Limitations Supported operators
Adding support for operators ATen operators Non-ATen operators Custom operators
Operator Export Type ONNX ONNX_ATEN ONNX_ATEN_FALLBACK RAW ONNX_FALLTHROUGH Frequently Asked Questions Use external data format Training Functions Exampl... | |
doc_16354 |
Create nditers for use in nested loops Create a tuple of nditer objects which iterate in nested loops over different axes of the op argument. The first iterator is used in the outermost loop, the last in the innermost loop. Advancing one will change the subsequent iterators to point at its new element. Parameters
... | |
doc_16355 | List of all features. | |
doc_16356 |
Return the clip path. | |
doc_16357 | Return a property of the summary, through MsiSummaryInfoGetProperty(). field is the name of the property, and can be one of the constants PID_CODEPAGE, PID_TITLE, PID_SUBJECT, PID_AUTHOR, PID_KEYWORDS, PID_COMMENTS, PID_TEMPLATE, PID_LASTAUTHOR, PID_REVNUMBER, PID_LASTPRINTED, PID_CREATE_DTM, PID_LASTSAVE_DTM, PID_PAGE... | |
doc_16358 | The body of the response, parsed as JSON. Extra keyword arguments are passed to json.loads(). For example: >>> response = client.get('/foo/')
>>> response.json()['name']
'Arthur'
If the Content-Type header is not "application/json", then a ValueError will be raised when trying to parse the response. | |
doc_16359 |
Call self as a function. | |
doc_16360 |
Return the binary representation of the input number as a string. For negative numbers, if width is not given, a minus sign is added to the front. If width is given, the two’s complement of the number is returned, with respect to that width. In a two’s-complement system negative numbers are represented by the two’s c... | |
doc_16361 |
Pass the inputs (and mask) through the decoder layer. Parameters
tgt – the sequence to the decoder layer (required).
memory – the sequence from the last layer of the encoder (required).
tgt_mask – the mask for the tgt sequence (optional).
memory_mask – the mask for the memory sequence (optional).
tgt_key_padd... | |
doc_16362 | Returns the final WSGI response as tuple. The first item in the tuple is the application iterator, the second the status and the third the list of headers. The response returned is created specially for the given environment. For example if the request method in the WSGI environment is 'HEAD' the response will be empty... | |
doc_16363 | Instances of this class behave like CDLL instances, except that the Python GIL is not released during the function call, and after the function execution the Python error flag is checked. If the error flag is set, a Python exception is raised. Thus, this is only useful to call Python C api functions directly. | |
doc_16364 |
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_16365 |
Get a projection class from its name. | |
doc_16366 |
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_16367 | Sets the number of milliseconds to wait after reading an escape character, to distinguish between an individual escape character entered on the keyboard from escape sequences sent by cursor and function keys. New in version 3.9. | |
doc_16368 | Call open() with method set to DELETE. Parameters
args (Any) –
kw (Any) – Return type
werkzeug.test.TestResponse | |
doc_16369 |
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g... | |
doc_16370 | See Migration guide for more details. tf.compat.v1.debugging.assert_greater
tf.compat.v1.assert_greater(
x, y, data=None, summarize=None, message=None, name=None
)
This condition holds if for every pair of (possibly broadcast) elements x[i], y[i], we have x[i] > y[i]. If both x and y are empty, this is trivially... | |
doc_16371 | sklearn.feature_selection.f_regression(X, y, *, center=True) [source]
Univariate linear regression tests. Linear model for testing the individual effect of each of many regressors. This is a scoring function to be used in a feature selection procedure, not a free standing feature selection procedure. This is done in ... | |
doc_16372 | Constructs a sparse tensor in COO(rdinate) format with specified values at the given indices. Note This function returns an uncoalesced tensor. Parameters
indices (array_like) – Initial data for the tensor. Can be a list, tuple, NumPy ndarray, scalar, and other types. Will be cast to a torch.LongTensor internally... | |
doc_16373 | This class works similar to a Local but keeps a stack of objects instead. This is best explained with an example: >>> ls = LocalStack()
>>> ls.push(42)
>>> ls.top
42
>>> ls.push(23)
>>> ls.top
23
>>> ls.pop()
23
>>> ls.top
42
They can be force released by using a LocalManager or with the release_local() function but t... | |
doc_16374 | sklearn.datasets.fetch_20newsgroups(*, data_home=None, subset='train', categories=None, shuffle=True, random_state=42, remove=(), download_if_missing=True, return_X_y=False) [source]
Load the filenames and data from the 20 newsgroups dataset (classification). Download it if necessary.
Classes 20
Samples total 188... | |
doc_16375 | bytearray.isdigit()
Return True if all bytes in the sequence are ASCII decimal digits and the sequence is not empty, False otherwise. ASCII decimal digits are those byte values in the sequence b'0123456789'. For example: >>> b'1234'.isdigit()
True
>>> b'1.23'.isdigit()
False | |
doc_16376 |
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_16377 | See Migration guide for more details. tf.compat.v1.app.flags.UnrecognizedFlagError
tf.compat.v1.flags.UnrecognizedFlagError(
flagname, flagvalue='', suggestions=None
)
Attributes
flagname str, the name of the unrecognized flag.
flagvalue The value of the flag, empty if the flag is not defined. | |
doc_16378 | See Migration guide for more details. tf.compat.v1.ragged.stack
tf.ragged.stack(
values, axis=0, name=None
)
Given a list of tensors or ragged tensors with the same rank R (R >= axis), returns a rank-R+1 RaggedTensor result such that result[i0...iaxis] is [value[i0...iaxis] for value in values]. Examples:
# Sta... | |
doc_16379 | 'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.SessionAuthentication',
]
}
You can also set the authentication scheme on a per-view or per-viewset basis, using the APIView class-based views. from rest_framework.authenticat... | |
doc_16380 |
Converts an n-D structured array into an (n+1)-D unstructured array. The new array will have a new last dimension equal in size to the number of field-elements of the input array. If not supplied, the output datatype is determined from the numpy type promotion rules applied to all the field datatypes. Nested fields, ... | |
doc_16381 | tf.experimental.numpy.imag(
val
)
See the NumPy documentation for numpy.imag. | |
doc_16382 |
Return the label reference position in transAxes. get_label_transform() returns a transform of (transAxes+offset) | |
doc_16383 | Refer to the corresponding attribute documentation in IPv4Address. | |
doc_16384 |
The degree of the series. New in version 1.5.0. Returns
degreeint
Degree of the series, one less than the number of coefficients. | |
doc_16385 | Augmented assignment, such as a += 1. In the following example, target is a Name node for x (with the Store context), op is Add, and value is a Constant with value for 1. The target attribute connot be of class Tuple or List, unlike the targets of Assign. >>> print(ast.dump(ast.parse('x += 2'), indent=4))
Module(
b... | |
doc_16386 | tf.compat.v1.ragged.placeholder(
dtype, ragged_rank, value_shape=None, name=None
)
Key Point: This ragged tensor will produce an error if evaluated. Its value must be fed using the feed_dict optional argument to Session.run(), Tensor.eval(), or Operation.run(). @compatibility{eager} Placeholders are not compatible... | |
doc_16387 | Returns a Tensor of size size filled with 1. By default, the returned Tensor has the same torch.dtype and torch.device as this tensor. Parameters
size (int...) – a list, tuple, or torch.Size of integers defining the shape of the output tensor.
dtype (torch.dtype, optional) – the desired type of returned tensor. De... | |
doc_16388 |
Multiply one Laguerre series by another. Returns the product of two Laguerre series c1 * c2. The arguments are sequences of coefficients, from lowest order “term” to highest, e.g., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters
c1, c2array_like
1-D arrays of Laguerre series coefficients ordered f... | |
doc_16389 | tf.optimizers.schedules Classes class ExponentialDecay: A LearningRateSchedule that uses an exponential decay schedule. class InverseTimeDecay: A LearningRateSchedule that uses an inverse time decay schedule. class LearningRateSchedule: A serializable learning rate decay schedule. class PiecewiseConstantDecay: A Learn... | |
doc_16390 |
Return self>value. | |
doc_16391 | See Migration guide for more details. tf.compat.v1.raw_ops.UnsortedSegmentSum
tf.raw_ops.UnsortedSegmentSum(
data, segment_ids, num_segments, name=None
)
Read the section on segmentation for an explanation of segments. Computes a tensor such that \(output[i] = \sum_{j...} data[j...]\) where the sum is over tuple... | |
doc_16392 | See Migration guide for more details. tf.compat.v1.raw_ops.AdjustSaturation
tf.raw_ops.AdjustSaturation(
images, scale, name=None
)
images is a tensor of at least 3 dimensions. The last dimension is interpreted as channels, and must be three. The input image is considered in the RGB colorspace. Conceptually, the... | |
doc_16393 |
Set multiple properties at once. Supported properties are
Property Description
UVC unknown
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 array-like or scalar or None
animated bool
antialiased or aa or antialiaseds bool or list of b... | |
doc_16394 | tf.compat.v1.train.SingularMonitoredSession(
hooks=None, scaffold=None, master='', config=None,
checkpoint_dir=None, stop_grace_period_secs=120,
checkpoint_filename_with_path=None
)
Please note that this utility is not recommended for distributed settings. For distributed settings, please use tf.compat.v1.... | |
doc_16395 |
Return the font_manager.FontProperties. | |
doc_16396 | Between MINYEAR and MAXYEAR inclusive. | |
doc_16397 |
Return random bytes. Note New code should use the bytes method of a default_rng() instance instead; please see the Quick Start. Parameters
lengthint
Number of random bytes. Returns
outbytes
String of length length. See also Generator.bytes
which should be used for new code. Examples >>> np.r... | |
doc_16398 | Same as ModelChoiceField.iterator. | |
doc_16399 | Remove the file named filename from the server. If successful, returns the text of the response, otherwise raises error_perm on permission errors or error_reply on other errors. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.