_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_28300 | The Example that failed. | |
doc_28301 | Performs the element-wise multiplication of tensor1 by tensor2, multiply the result by the scalar value and add it to input. outi=inputi+value×tensor1i×tensor2i\text{out}_i = \text{input}_i + \text{value} \times \text{tensor1}_i \times \text{tensor2}_i
The shapes of tensor, tensor1, and tensor2 must be broadcastable... | |
doc_28302 | from myapp.serializers import UserSerializer
from rest_framework import generics
from rest_framework.permissions import IsAdminUser
class UserList(generics.ListCreateAPIView):
queryset = User.objects.all()
serializer_class = UserSerializer
permission_classes = [IsAdminUser]
For more complex cases you migh... | |
doc_28303 |
Alias for get_verticalalignment. | |
doc_28304 |
Integral image / summed area table. The integral image contains the sum of all elements above and to the left of it, i.e.: \[S[m, n] = \sum_{i \leq m} \sum_{j \leq n} X[i, j]\] Parameters
imagendarray
Input image. Returns
Sndarray
Integral image/summed area table of same shape as input image. Refer... | |
doc_28305 |
Return Floating division of series and other, element-wise (binary operator truediv). Equivalent to series / other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters
other:Series or scalar value
fill_value:None or float value, default None (NaN)
Fill existing... | |
doc_28306 | See Migration guide for more details. tf.compat.v1.raw_ops.CountUpTo
tf.raw_ops.CountUpTo(
ref, limit, name=None
)
Args
ref A mutable Tensor. Must be one of the following types: int32, int64. Should be from a scalar Variable node.
limit An int. If incrementing ref would bring it above limit, inste... | |
doc_28307 |
Unsupervised Outlier Detection using Local Outlier Factor (LOF) The anomaly score of each sample is called Local Outlier Factor. It measures the local deviation of density of a given sample with respect to its neighbors. It is local in that the anomaly score depends on how isolated the object is with respect to the s... | |
doc_28308 | See Migration guide for more details. tf.compat.v1.raw_ops.TopKV2
tf.raw_ops.TopKV2(
input, k, sorted=True, name=None
)
If the input is a vector (rank-1), finds the k largest entries in the vector and outputs their values and indices as vectors. Thus values[j] is the j-th largest entry in input, and its index is... | |
doc_28309 | Returns the key that follows key in the traversal. The following code prints every key in the database db, without having to create a list in memory that contains them all: k = db.firstkey()
while k != None:
print(k)
k = db.nextkey(k) | |
doc_28310 | An XML declaration was found somewhere other than the start of the input data. | |
doc_28311 | True if the session is new, False otherwise. | |
doc_28312 |
Return the snap setting. See set_snap for details. | |
doc_28313 |
Sparse Principal Components Analysis (SparsePCA). Finds the set of sparse components that can optimally reconstruct the data. The amount of sparseness is controllable by the coefficient of the L1 penalty, given by the parameter alpha. Read more in the User Guide. Parameters
n_componentsint, default=None
Number ... | |
doc_28314 | Simple lightweight unbounded function cache. Sometimes called “memoize”. Returns the same as lru_cache(maxsize=None), creating a thin wrapper around a dictionary lookup for the function arguments. Because it never needs to evict old values, this is smaller and faster than lru_cache() with a size limit. For example: @ca... | |
doc_28315 |
Check that all items of arrays differ in at most N Units in the Last Place. Parameters
a, barray_like
Input arrays to be compared.
maxulpint, optional
The maximum number of units in the last place that elements of a and b can differ. Default is 1.
dtypedtype, optional
Data-type to convert a and b to if ... | |
doc_28316 | tf.keras.callbacks.experimental.BackupAndRestore(
backup_dir
)
BackupAndRestore callback is intended to recover from interruptions that happened in the middle of a model.fit execution by backing up the training states in a temporary checkpoint file (based on TF CheckpointManager) at the end of each epoch. If train... | |
doc_28317 | In-place version of sgn() | |
doc_28318 |
Enable the toggle tool. trigger calls this method when toggled is False. | |
doc_28319 | Seal will disable the automatic creation of mocks when accessing an attribute of the mock being sealed or any of its attributes that are already mocks recursively. If a mock instance with a name or a spec is assigned to an attribute it won’t be considered in the sealing chain. This allows one to prevent seal from fixin... | |
doc_28320 |
Random integers of type np.int_ between low and high, inclusive. Return random integers of type np.int_ from the “discrete uniform” distribution in the closed interval [low, high]. If high is None (the default), then results are from [1, low]. The np.int_ type translates to the C long integer type and its precision i... | |
doc_28321 |
Fit linear model with Stochastic Gradient Descent. Parameters
X{array-like, sparse matrix}, shape (n_samples, n_features)
Training data.
yndarray of shape (n_samples,)
Target values.
coef_initndarray of shape (n_classes, n_features), default=None
The initial coefficients to warm-start the optimization. ... | |
doc_28322 |
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal. | |
doc_28323 | Like the default UnicodeConverter, but it also matches slashes. This is useful for wikis and similar applications: Rule('/<path:wikipage>')
Rule('/<path:wikipage>/edit')
Parameters
map (Map) – the Map.
args (Any) –
kwargs (Any) – Return type
None | |
doc_28324 | A base class for connection-related issues. Subclasses are BrokenPipeError, ConnectionAbortedError, ConnectionRefusedError and ConnectionResetError. | |
doc_28325 | operator.__imul__(a, b)
a = imul(a, b) is equivalent to a *= b. | |
doc_28326 | An integer specifying the number of “overflow” objects the last page can contain. This extends the paginate_by limit on the last page by up to paginate_orphans, in order to keep the last page from having a very small number of objects. | |
doc_28327 |
Bases: matplotlib.backend_tools.ViewsPositionsBase Move forward in the view lim stack. default_keymap=['right', 'v', 'MouseButton.FORWARD']
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
description='Forward to ne... | |
doc_28328 | This is a standard context defined by the General Decimal Arithmetic Specification. Precision is set to nine. Rounding is set to ROUND_HALF_UP. All flags are cleared. All traps are enabled (treated as exceptions) except Inexact, Rounded, and Subnormal. Because many of the traps are enabled, this context is useful for d... | |
doc_28329 | A RegexValidator subclass that ensures a value looks like a URL, and raises an error code of 'invalid' if it doesn’t. Loopback addresses and reserved IP spaces are considered valid. Literal IPv6 addresses (RFC 3986#section-3.2.2) and Unicode domains are both supported. In addition to the optional arguments of its paren... | |
doc_28330 | 'DEFAULT_THROTTLE_CLASSES': [
'rest_framework.throttling.AnonRateThrottle',
'rest_framework.throttling.UserRateThrottle'
],
'DEFAULT_THROTTLE_RATES': {
'anon': '100/day',
'user': '1000/day'
}
}
The rate descriptions used in DEFAULT_THROTTLE_RATES may include second, minu... | |
doc_28331 |
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned. | |
doc_28332 |
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_28333 | Determine if the formatted representation of object is “readable”, or can be used to reconstruct the value using eval(). This always returns False for recursive objects. >>> pprint.isreadable(stuff)
False | |
doc_28334 | tf.experimental.numpy.add(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.add. | |
doc_28335 | Print the formatted representation of object on the configured stream, followed by a newline. | |
doc_28336 |
Pandas ExtensionArray for storing Period data. Users should use period_array() to create new instances. Alternatively, array() can be used to create new instances from a sequence of Period scalars. Parameters
values:Union[PeriodArray, Series[period], ndarray[int], PeriodIndex]
The data to store. These should be... | |
doc_28337 | Returns an iterator over module buffers. Parameters
recurse (bool) – if True, then yields buffers of this module and all submodules. Otherwise, yields only buffers that are direct members of this module. Yields
torch.Tensor – module buffer Example: >>> for buf in model.buffers():
>>> print(type(buf), buf.size... | |
doc_28338 | Parse a query string given as a string argument (data of type application/x-www-form-urlencoded). Data are returned as a list of name, value pairs. The optional argument keep_blank_values is a flag indicating whether blank values in percent-encoded queries should be treated as blank strings. A true value indicates that... | |
doc_28339 | Remove this file or symbolic link. If the path points to a directory, use Path.rmdir() instead. If missing_ok is false (the default), FileNotFoundError is raised if the path does not exist. If missing_ok is true, FileNotFoundError exceptions will be ignored (same behavior as the POSIX rm -f command). Changed in versio... | |
doc_28340 |
Determine the type of data indicated by the target. Note that this type is the most specific type that can be inferred. For example:
binary is more specific but compatible with multiclass.
multiclass of integers is more specific but compatible with continuous.
multilabel-indicator is more specific but compatible ... | |
doc_28341 | Open the database file file and return a corresponding object. If the database file already exists, the whichdb() function is used to determine its type and the appropriate module is used; if it does not exist, the first module listed above that can be imported is used. The optional flag argument can be:
Value Meani... | |
doc_28342 | Set to sys.maxsize for big memory tests. | |
doc_28343 | tf.experimental.numpy.cos(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.cos. | |
doc_28344 | Set-group-ID bit. This bit has several special uses. For a directory it indicates that BSD semantics is to be used for that directory: files created there inherit their group ID from the directory, not from the effective group ID of the creating process, and directories created there will also get the S_ISGID bit set. ... | |
doc_28345 |
Bases: matplotlib.colors.LinearSegmentedColormap LinearSegmentedColormap in which color varies smoothly. This class is a simplification of LinearSegmentedColormap, which doesn’t support jumps in color intensities. Parameters
namestr
Name of colormap.
segmented_datadict
Dictionary of ‘red’, ‘green’, ‘blue’, ... | |
doc_28346 |
Average anomaly score of X of the base classifiers. The anomaly score of an input sample is computed as the mean anomaly score of the trees in the forest. The measure of normality of an observation given a tree is the depth of the leaf containing this observation, which is equivalent to the number of splittings requi... | |
doc_28347 | Compile the source into a code or AST object. Code objects can be executed by exec() or eval(). source can either be a normal string, a byte string, or an AST object. Refer to the ast module documentation for information on how to work with AST objects. The filename argument should give the file from which the code was... | |
doc_28348 |
Plot detection error tradeoff (DET) curve. Extra keyword arguments will be passed to matplotlib’s plot. Read more in the User Guide. New in version 0.24. Parameters
estimatorestimator instance
Fitted classifier or a fitted Pipeline in which the last estimator is a classifier.
X{array-like, sparse matrix} of... | |
doc_28349 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.EinsumDense
tf.keras.layers.experimental.EinsumDense(
equation, output_shape, activation=None, bias_axes=None,
kernel_initializer='glorot_uniform',
bias_initializer='zeros', kernel_regularizer=None,
bias_regularizer=None, act... | |
doc_28350 | window.insstr(y, x, str[, attr])
Insert a character string (as many characters as will fit on the line) before the character under the cursor. All characters to the right of the cursor are shifted right, with the rightmost characters on the line being lost. The cursor position does not change (after moving to y, x, i... | |
doc_28351 | Like decode(), except that it accepts a source bytes and returns the corresponding decoded bytes. | |
doc_28352 | See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingADAMParameters
tf.raw_ops.RetrieveTPUEmbeddingADAMParameters(
num_shards, shard_id, table_id=-1, table_name='', config='',
name=None
)
An op that retrieves optimization parameters from embedding to host memory. Must be preceded by... | |
doc_28353 |
# Using the standard RequestFactory API to create a form POST request
factory = APIRequestFactory()
request = factory.post('/notes/', {'title': 'new idea'})
Using the format argument Methods which create a request body, such as post, put and patch, include a format argument, which make it easy to generate requests us... | |
doc_28354 |
Prune (currently unpruned) units in a tensor by zeroing out the ones with the lowest L1-norm. Parameters
amount (int or float) – quantity of parameters to prune. If float, should be between 0.0 and 1.0 and represent the fraction of parameters to prune. If int, it represents the absolute number of parameters to prun... | |
doc_28355 | Returns an instance of the paginator to use for this view. By default, instantiates an instance of paginator_class. | |
doc_28356 |
Create a record array from a (flat) list of arrays Parameters
arrayListlist or tuple
List of array-like objects (such as lists, tuples, and ndarrays).
dtypedata-type, optional
valid dtype for all arrays
shapeint or tuple of ints, optional
Shape of the resulting array. If not provided, inferred from arra... | |
doc_28357 | Given a Tensor quantized by linear (affine) per-channel quantization, returns a tensor of zero_points of the underlying quantizer. It has the number of elements that matches the corresponding dimensions (from q_per_channel_axis) of the tensor. | |
doc_28358 |
Fetch and parse configuration statements that required for defining the targeted CPU features, statements should be declared in the top of source in between C comment and start with a special mark @targets. Configuration statements are sort of keywords representing CPU features names, group of statements and policies... | |
doc_28359 | tf.greater Compat aliases for migration See Migration guide for more details. tf.compat.v1.greater, tf.compat.v1.math.greater
tf.math.greater(
x, y, name=None
)
Note: math.greater supports broadcasting. More about broadcasting here
Example: x = tf.constant([5, 4, 6])
y = tf.constant([5, 2, 5])
tf.math.greater(... | |
doc_28360 | Instead of referring to User directly, you should reference the user model using django.contrib.auth.get_user_model(). This method will return the currently active user model – the custom user model if one is specified, or User otherwise. When you define a foreign key or many-to-many relations to the user model, you sh... | |
doc_28361 |
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | |
doc_28362 | File type. | |
doc_28363 |
Remove a colormap recognized by get_cmap(). You may not remove built-in colormaps. If the named colormap is not registered, returns with no error, raises if you try to de-register a default colormap. Warning Colormap names are currently a shared namespace that may be used by multiple packages. Use unregister_cmap on... | |
doc_28364 | tf.compat.v1.estimator.DNNLinearCombinedClassifier(
model_dir=None, linear_feature_columns=None, linear_optimizer='Ftrl',
dnn_feature_columns=None, dnn_optimizer='Adagrad',
dnn_hidden_units=None, dnn_activation_fn=tf.nn.relu, dnn_dropout=None,
n_classes=2, weight_column=None, label_vocabulary=None,
... | |
doc_28365 | Return the system default NIS domain. | |
doc_28366 | De-initialize the library, and return terminal to normal status. | |
doc_28367 | Returns a new tensor with the same data as the self tensor but of a different shape. The returned tensor shares the same data and must have the same number of elements, but may have a different size. For a tensor to be viewed, the new view size must be compatible with its original size and stride, i.e., each new view d... | |
doc_28368 |
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
antialiased or aa bool or None
capstyle CapStyle or {'butt', 'projecting', 'r... | |
doc_28369 | returns the Euclidean length of the vector. length() -> float calculates the Euclidean length of the vector which follows from the Pythagorean theorem: vec.length() == math.sqrt(vec.x**2 + vec.y**2 + vec.z**2) | |
doc_28370 | Return a shallow copy of the underlying mapping. | |
doc_28371 |
Set the axisline style. The new style is completely defined by the passed attributes. Existing style attributes are forgotten. Parameters
axisline_stylestr or None
The line style, e.g. '->', optionally followed by a comma-separated list of attributes. Alternatively, the attributes can be provided as keywords. I... | |
doc_28372 | Sequence of all compare operation names. | |
doc_28373 |
An ExtensionDtype for uint64 integer data. Changed in version 1.0.0: Now uses pandas.NA as its missing value, rather than numpy.nan. Attributes
None Methods
None | |
doc_28374 | A prefix added to a session key to build a cache key string. | |
doc_28375 | Moves item to position index in parent’s list of children. It is illegal to move an item under one of its descendants. If index is less than or equal to zero, item is moved to the beginning; if greater than or equal to the number of children, it is moved to the end. If item was detached it is reattached. | |
doc_28376 | Provides a mechanism for looking up an object associated with the current HTTP request. Methods and Attributes
model
The model that this view will display data for. Specifying model
= Foo is effectively the same as specifying queryset =
Foo.objects.all(), where objects stands for Foo’s default manager.
queryset... | |
doc_28377 | class socketserver.ForkingUDPServer
class socketserver.ThreadingTCPServer
class socketserver.ThreadingUDPServer
These classes are pre-defined using the mix-in classes. | |
doc_28378 | The spatial reference system of the raster, as a SpatialReference instance. The SRS can be changed by setting it to an other SpatialReference or providing any input that is accepted by the SpatialReference constructor. >>> rst = GDALRaster({'width': 10, 'height': 20, 'srid': 4326})
>>> rst.srs.srid
4326
>>> rst.srs = 3... | |
doc_28379 |
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters
Xarray-like of shape (n_samples, n_features)
Test samples.
yarray-like of shap... | |
doc_28380 | Read from a file descriptor fd at a position of offset into mutable bytes-like objects buffers, leaving the file offset unchanged. Transfer data into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. The flags argument contains a bitwise OR of zero or more of... | |
doc_28381 | format_field() simply calls the global format() built-in. The method is provided so that subclasses can override it. | |
doc_28382 |
Return True if all entries of a and b are equal, using fill_value as a truth value where either or both are masked. Parameters
a, barray_like
Input arrays to compare.
fill_valuebool, optional
Whether masked values in a or b are considered equal (True) or not (False). Returns
ybool
Returns True if th... | |
doc_28383 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_28384 |
Remove tool named name. Parameters
namestr
Name of the tool. | |
doc_28385 |
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters
rendererRendererBase subclass.
Notes This method is overridden in the Artist subclasses. | |
doc_28386 | path is the path to a directory that should contain subdirectories “common”, “posix”, “nt”, each containing scripts destined for the bin directory in the environment. The contents of “common” and the directory corresponding to os.name are copied after some text replacement of placeholders:
__VENV_DIR__ is replaced wi... | |
doc_28387 |
Default object formatter. | |
doc_28388 | Finds text for the first subelement matching match. match may be a tag name or a path. Returns the text content of the first matching element, or default if no element was found. Note that if the matching element has no text content an empty string is returned. namespaces is an optional mapping from namespace prefix to... | |
doc_28389 |
Set the offsets for the collection. Parameters
offsets(N, 2) or (2,) array-like | |
doc_28390 |
Callback for mouse button release in pan/zoom mode. | |
doc_28391 | Change if autograd should record operations on this tensor: sets this tensor’s requires_grad attribute in-place. Returns this tensor. requires_grad_()’s main use case is to tell autograd to begin recording operations on a Tensor tensor. If tensor has requires_grad=False (because it was obtained through a DataLoader, or... | |
doc_28392 |
Alias for set_linestyle. | |
doc_28393 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_multi_string
tf.compat.v1.flags.DEFINE_multi_string(
name, default, help, flag_values=_flagvalues.FLAGS, **args
)
Use the flag on the command line multiple times to place multiple string values into the list. The 'default' may be a single string... | |
doc_28394 |
Get the current colorable artist. Specifically, returns the current ScalarMappable instance (Image created by imshow or figimage, Collection created by pcolor or scatter, etc.), or None if no such instance has been defined. The current image is an attribute of the current Axes, or the nearest earlier Axes in the curr... | |
doc_28395 | class sklearn.cross_decomposition.CCA(n_components=2, *, scale=True, max_iter=500, tol=1e-06, copy=True) [source]
Canonical Correlation Analysis, also known as “Mode B” PLS. Read more in the User Guide. Parameters
n_componentsint, default=2
Number of components to keep. Should be in [1, min(n_samples,
n_feature... | |
doc_28396 | tf.compat.v1.keras.layers.experimental.preprocessing.Normalization(
axis=-1, dtype=None, **kwargs
)
This layer will coerce its inputs into a distribution centered around 0 with standard deviation 1. It accomplishes this by precomputing the mean and variance of the data, and calling (input-mean)/sqrt(var) at runtim... | |
doc_28397 |
Efficient softmax approximation as described in Efficient softmax approximation for GPUs by Edouard Grave, Armand Joulin, Moustapha Cissé, David Grangier, and Hervé Jégou. Adaptive softmax is an approximate strategy for training models with large output spaces. It is most effective when the label distribution is high... | |
doc_28398 | A class that represents thread-local data. For more details and extensive examples, see the documentation string of the _threading_local module. | |
doc_28399 |
Node is the data structure that represents individual operations within a Graph. For the most part, Nodes represent callsites to various entities, such as operators, methods, and Modules (some exceptions include nodes that specify function inputs and outputs). Each Node has a function specified by its op property. Th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.