_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_6900 | Construct a Bytecode instance from the given traceback, setting current_offset to the instruction responsible for the exception. | |
doc_6901 |
Return str(self). | |
doc_6902 | tf.experimental.numpy.vdot(
a, b
)
See the NumPy documentation for numpy.vdot. | |
doc_6903 |
This is the quantized version of BatchNorm2d. | |
doc_6904 | See Migration guide for more details. tf.compat.v1.keras.layers.Wrapper
tf.keras.layers.Wrapper(
layer, **kwargs
)
Wrappers take another layer and augment it in various ways. Do not use this class as a layer, it is only an abstract base class. Two usable wrappers are the TimeDistributed and Bidirectional wrapper... | |
doc_6905 | tf.compat.v1.nn.convolution(
input, filter, padding, strides=None, dilation_rate=None, name=None,
data_format=None, filters=None, dilations=None
)
This also supports either output striding via the optional strides parameter or atrous convolution (also known as convolution with holes or dilated convolution, bas... | |
doc_6906 | Abstract. | |
doc_6907 | tf.experimental.numpy.shape(
a
)
See the NumPy documentation for numpy.shape. | |
doc_6908 |
Compute the variance along the specified axis. Returns the variance of the array elements, a measure of the spread of a distribution. The variance is computed for the flattened array by default, otherwise over the specified axis. Parameters
aarray_like
Array containing numbers whose variance is desired. If a is... | |
doc_6909 | See Migration guide for more details. tf.compat.v1.nest.flatten
tf.nest.flatten(
structure, expand_composites=False
)
If nest is not a structure , tuple (or a namedtuple), dict, or an attrs class, then returns a single-element list: [nest]. In the case of dict instances, the sequence consists of the values, sort... | |
doc_6910 | Given a Tensor quantized by linear(affine) quantization, returns the zero_point of the underlying quantizer(). | |
doc_6911 |
Generator to create n_packs slices going up to n. Parameters
nint
n_packsint
Number of slices to generate.
n_samplesint, default=None
Number of samples. Pass n_samples when the slices are to be used for sparse matrix indexing; slicing off-the-end raises an exception, while it works for NumPy arrays. Yi... | |
doc_6912 | os.POSIX_FADV_SEQUENTIAL
os.POSIX_FADV_RANDOM
os.POSIX_FADV_NOREUSE
os.POSIX_FADV_WILLNEED
os.POSIX_FADV_DONTNEED
Flags that can be used in advice in posix_fadvise() that specify the access pattern that is likely to be used. Availability: Unix. New in version 3.3. | |
doc_6913 | Return the path to the file named filename. If no match is found filename is returned. This does not equal a failure since it could be the path to the file. Setting subdir indicates a relative path to use to find the file rather than looking directly in the path directories. | |
doc_6914 | To be called just before drawing a shape to be filled. | |
doc_6915 | true if the drive is paused get_paused() -> bool Returns True if the drive is currently paused. | |
doc_6916 | See torch.median() | |
doc_6917 | See Migration guide for more details. tf.compat.v1.raw_ops.Rank
tf.raw_ops.Rank(
input, name=None
)
This operation returns an integer representing the rank of input. For example: # 't' is [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]
# shape of tensor 't' is [2, 2, 3]
rank(t) ==> 3
Note: The rank of a tenso... | |
doc_6918 |
Connect press/release events and lock the canvas. | |
doc_6919 | By default when using getboolean(), config parsers consider the following values True: '1', 'yes', 'true', 'on' and the following values False: '0', 'no', 'false', 'off'. You can override this by specifying a custom dictionary of strings and their Boolean outcomes. For example: >>> custom = configparser.ConfigParser()
... | |
doc_6920 |
Return self.tzinfo.utcoffset(self). | |
doc_6921 |
Wrapper around a CUDA event. CUDA events are synchronization markers that can be used to monitor the device’s progress, to accurately measure timing, and to synchronize CUDA streams. The underlying CUDA events are lazily initialized when the event is first recorded or exported to another process. After creation, only... | |
doc_6922 | All arguments are required. Arguments must be integers, in the following ranges: MINYEAR <= year <= MAXYEAR 1 <= month <= 12 1 <= day <= number of days in the given month and year If an argument outside those ranges is given, ValueError is raised. | |
doc_6923 | 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. | |
doc_6924 | Alias for clamp(). | |
doc_6925 | Flag indicating whether to print verbose messages. This is incremented by the -v option if called as a script. | |
doc_6926 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseSegmentSqrtN
tf.raw_ops.SparseSegmentSqrtN(
data, indices, segment_ids, name=None
)
N is the size of the segment being reduced. See tf.sparse.segment_sum for usage examples.
Args
data A Tensor. Must be one of the following types: bfloat16,... | |
doc_6927 | class sklearn.cluster.SpectralCoclustering(n_clusters=3, *, svd_method='randomized', n_svd_vecs=None, mini_batch=False, init='k-means++', n_init=10, n_jobs='deprecated', random_state=None) [source]
Spectral Co-Clustering algorithm (Dhillon, 2001). Clusters rows and columns of an array X to solve the relaxed normalize... | |
doc_6928 | 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_6929 |
Find the cross edges of an image using the Roberts’ Cross operator. The kernel is applied to the input image to produce separate measurements of the gradient component one orientation. Parameters
image2-D array
Image to process.
mask2-D array, optional
An optional mask to limit the application to a certain ... | |
doc_6930 | An abstract base class for resource readers capable of serving the files interface. Subclasses ResourceReader and provides concrete implementations of the ResourceReader’s abstract methods. Therefore, any loader supplying TraversableReader also supplies ResourceReader. New in version 3.9. | |
doc_6931 |
Add a Patch to the Axes; return the patch.
Examples using matplotlib.axes.Axes.add_patch
Curve with error band
Image Demo
Axes box aspect
Controlling view limits using margins and sticky_edges
Boxplots
Plot a confidence ellipse of a two-dimensional dataset
Annotating ... | |
doc_6932 | tf.compat.v1.ConditionalAccumulator(
dtype, shape=None, shared_name=None, name='conditional_accumulator',
reduction_type='MEAN'
)
Up-to-date gradients (i.e., time step at which gradient was computed is equal to the accumulator's time step) are added to the accumulator. Extraction of the average gradient is blo... | |
doc_6933 | See Migration guide for more details. tf.compat.v1.initializers.zeros, tf.compat.v1.keras.initializers.zeros, tf.compat.v1.zeros_initializer
tf.compat.v1.keras.initializers.Zeros(
dtype=tf.dtypes.float32
)
Methods from_config View source
@classmethod
from_config(
config
)
Instantiates an initializer from a... | |
doc_6934 | See Migration guide for more details. tf.compat.v1.raw_ops.Asin
tf.raw_ops.Asin(
x, name=None
)
The tf.math.asin operation returns the inverse of tf.math.sin, such that if y = tf.math.sin(x) then, x = tf.math.asin(y).
Note: The output of tf.math.asin will lie within the invertible range of sine, i.e [-pi/2, pi/... | |
doc_6935 |
Returns an iterator over all modules in the network. Yields
Module – a module in the network Note Duplicate modules are returned only once. In the following example, l will be returned only once. Example: >>> l = nn.Linear(2, 2)
>>> net = nn.Sequential(l, l)
>>> for idx, m in enumerate(net.modules()):
p... | |
doc_6936 |
lookup_name = 'day' | |
doc_6937 | See Migration guide for more details. tf.compat.v1.raw_ops.DecodeBase64
tf.raw_ops.DecodeBase64(
input, name=None
)
Input may or may not have padding at the end. See EncodeBase64 for padding. Web-safe means that input must use - and _ instead of + and /.
Args
input A Tensor of type string. Base64 string... | |
doc_6938 | Set the ForeignKey to its default value; a default for the ForeignKey must be set. | |
doc_6939 | Creates a new shared memory block or attaches to an existing shared memory block. Each shared memory block is assigned a unique name. In this way, one process can create a shared memory block with a particular name and a different process can attach to that same shared memory block using that same name. As a resource f... | |
doc_6940 | This is a possible value for the flags argument in setxattr(). It indicates the operation must replace an existing attribute. | |
doc_6941 | See Migration guide for more details. tf.compat.v1.raw_ops.Lgamma
tf.raw_ops.Lgamma(
x, name=None
)
For positive numbers, this function computes log((input - 1)!) for every element in the tensor. lgamma(5) = log((5-1)!) = log(4!) = log(24) = 3.1780539 Example: x = tf.constant([0, 0.5, 1, 4.5, -4, -5.6])
tf.math.... | |
doc_6942 | The DirSelectDialog widget presents the directories in the file system in a dialog window. The user can use this dialog window to navigate through the file system to select the desired directory. | |
doc_6943 | 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 values are returned as strings. Values that cannot be determined are re... | |
doc_6944 |
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_6945 |
Generate coordinates of pixels within polygon. Parameters
r(N,) ndarray
Row coordinates of vertices of polygon.
c(N,) ndarray
Column coordinates of vertices of polygon.
shapetuple, optional
Image shape which is used to determine the maximum extent of output pixel coordinates. This is useful for polygons... | |
doc_6946 |
Return the Colormap instance. | |
doc_6947 | Returns the minimum value of each slice of the input tensor in the given dimension(s) dim. Note
The difference between max/min and amax/amin is:
amax/amin supports reducing on multiple dimensions,
amax/amin does not return indices,
amax/amin evenly distributes gradient between equal values, while max(dim)/min(... | |
doc_6948 | tf.experimental.numpy.repeat(
a, repeats, axis=None
)
See the NumPy documentation for numpy.repeat. | |
doc_6949 |
Returns the number of splitting iterations in the cross-validator Parameters
Xobject
Always ignored, exists for compatibility.
yobject
Always ignored, exists for compatibility.
groupsobject
Always ignored, exists for compatibility. Returns
n_splitsint
Returns the number of splitting iterations i... | |
doc_6950 | '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_6951 | Parameters
delay – positive integer Set or return the drawing delay in milliseconds. (This is approximately the time interval between two consecutive canvas updates.) The longer the drawing delay, the slower the animation. Optional argument: >>> screen.delay()
10
>>> screen.delay(5)
>>> screen.delay()
5 | |
doc_6952 |
Bases: torch.distributions.distribution.Distribution Reinterprets some of the batch dims of a distribution as event dims. This is mainly useful for changing the shape of the result of log_prob(). For example to create a diagonal Normal distribution with the same shape as a Multivariate Normal distribution (so they ar... | |
doc_6953 | """
May be applied as a `default=...` value on a serializer field.
Returns the current user.
"""
requires_context = True
def __call__(self, serializer_field):
return serializer_field.context['request'].user
When serializing the instance, default will be used if the object attribute or ... | |
doc_6954 |
Returns a new bit generator with the state jumped. Jumps the state as-if jumps * 210306068529402873165736369884012333109 random numbers have been generated. Parameters
jumpsinteger, positive
Number of times to jump the state of the bit generator returned Returns
bit_generatorPCG64DXSM
New instance of ge... | |
doc_6955 | See torch.histc() | |
doc_6956 | (default: True) If true, wrapping will occur preferably on whitespaces and right after hyphens in compound words, as it is customary in English. If false, only whitespaces will be considered as potentially good places for line breaks, but you need to set break_long_words to false if you want truly insecable words. Defa... | |
doc_6957 |
Print DataFrame in Markdown-friendly format. New in version 1.0.0. Parameters
buf:str, Path or StringIO-like, optional, default None
Buffer to write to. If None, the output is returned as a string.
mode:str, optional
Mode in which file is opened, “wt” by default.
index:bool, optional, default True
Add... | |
doc_6958 |
Create a new null Bbox from (inf, inf) to (-inf, -inf). | |
doc_6959 | See Migration guide for more details. tf.compat.v1.random.stateless_parameterized_truncated_normal
tf.random.stateless_parameterized_truncated_normal(
shape, seed, means=0.0, stddevs=1.0, minvals=-2.0, maxvals=2.0, name=None
)
The generated values follow a normal distribution with specified mean and standard dev... | |
doc_6960 |
Return the index of the leaf that each sample is predicted as. New in version 0.17. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix.
check_inputbool, def... | |
doc_6961 | The handlers raise this exception (or derived exceptions) when they run into a problem. It is a subclass of OSError.
reason
The reason for this error. It can be a message string or another exception instance.
Changed in version 3.3: URLError has been made a subclass of OSError instead of IOError. | |
doc_6962 | If True, causes get_object() to perform its lookup using both the primary key and the slug. Defaults to False. This attribute can help mitigate insecure direct object reference attacks. When applications allow access to individual objects by a sequential primary key, an attacker could brute-force guess all URLs; thereb... | |
doc_6963 |
Multi target regression This strategy consists of fitting one regressor per target. This is a simple strategy for extending regressors that do not natively support multi-target regression. New in version 0.18. Parameters
estimatorestimator object
An estimator object implementing fit and predict.
n_jobsint o... | |
doc_6964 | asyncio.get_event_loop_policy()
Return the current process-wide policy.
asyncio.set_event_loop_policy(policy)
Set the current process-wide policy to policy. If policy is set to None, the default policy is restored.
Policy Objects The abstract event loop policy base class is defined as follows:
class asyncio... | |
doc_6965 |
Return the dtypes as a Series for the underlying MultiIndex. | |
doc_6966 | See Migration guide for more details. tf.compat.v1.nn.ctc_beam_search_decoder_v2
tf.nn.ctc_beam_search_decoder(
inputs, sequence_length, beam_width=100, top_paths=1
)
Note: The ctc_greedy_decoder is a special case of the ctc_beam_search_decoder with top_paths=1 and beam_width=1 (but that decoder is faster for t... | |
doc_6967 | Whether the OpenSSL library has built-in support for the SSL 2.0 protocol. New in version 3.7. | |
doc_6968 | Return the Python code generated from the Graph underlying this GraphModule. | |
doc_6969 | See torch.lcm() | |
doc_6970 | Reference pixel blue into a 2d array. pixels_blue (Surface) -> array Create a new 2D array that directly references the blue 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 can only work on 24-bit or 32-bit Surfaces. The Surfa... | |
doc_6971 | This class represents an aggregation of individual test cases and test suites. The class presents the interface needed by the test runner to allow it to be run as any other test case. Running a TestSuite instance is the same as iterating over the suite, running each test individually. If tests is given, it must be an i... | |
doc_6972 |
Return a match score between size1 and size2. If size2 (the size specified in the font file) is 'scalable', this function always returns 0.0, since any font size can be generated. Otherwise, the result is the absolute distance between size1 and size2, normalized so that the usual range of font sizes (6pt - 72pt) will... | |
doc_6973 | tf.experimental.numpy.copy(
a
)
Unsupported arguments: order, subok. See the NumPy documentation for numpy.copy. | |
doc_6974 |
Load the Olivetti faces data-set from AT&T (classification). Download it if necessary.
Classes 40
Samples total 400
Dimensionality 4096
Features real, between 0 and 1 Read more in the User Guide. Parameters
data_homestr, default=None
Specify another download and cache folder for the datasets. By defau... | |
doc_6975 |
Scalar attribute identical to the corresponding array attribute. Please see ndarray.T. | |
doc_6976 |
This is the quantized version of Hardswish. Parameters
scale – quantization scale of the output tensor
zero_point – quantization zero point of the output tensor | |
doc_6977 | Determine the URL to redirect to when the form is successfully validated. Returns django.views.generic.edit.ModelFormMixin.success_url if it is provided; otherwise, attempts to use the get_absolute_url() of the object. | |
doc_6978 | class dict(mapping, **kwarg)
class dict(iterable, **kwarg)
Create a new dictionary. The dict object is the dictionary class. See dict and Mapping Types — dict for documentation about this class. For other containers see the built-in list, set, and tuple classes, as well as the collections module. | |
doc_6979 | from myapp.serializers import PurchaseSerializer
from rest_framework import generics
class PurchaseList(generics.ListAPIView):
serializer_class = PurchaseSerializer
def get_queryset(self):
"""
This view should return a list of all the purchases
for the currently authenticated user.
... | |
doc_6980 |
Get the bounding box (ink) height of character c (space is 0). | |
doc_6981 | See Migration guide for more details. tf.compat.v1.raw_ops.MapIncompleteSize
tf.raw_ops.MapIncompleteSize(
dtypes, capacity=0, memory_limit=0, container='',
shared_name='', name=None
)
Args
dtypes A list of tf.DTypes.
capacity An optional int that is >= 0. Defaults to 0.
memory_limit An ... | |
doc_6982 | Deletes the current session data from the session and deletes the session cookie. This is used if you want to ensure that the previous session data can’t be accessed again from the user’s browser (for example, the django.contrib.auth.logout() function calls it). | |
doc_6983 | A dictionary containing initial data for the form. | |
doc_6984 |
Write the contained data to an HDF5 file using HDFStore. Hierarchical Data Format (HDF) is self-describing, allowing an application to interpret the structure and contents of a file with no outside information. One HDF file can hold a mix of related objects which can be accessed as a group or as individual objects. I... | |
doc_6985 |
Alias for get_linestyle. | |
doc_6986 | Search for a module specified by fullname. fullname must be the fully qualified (dotted) module name. It returns the zipimporter instance itself if the module was found, or None if it wasn’t. The optional path argument is ignored—it’s there for compatibility with the importer protocol. | |
doc_6987 |
Get the width, height, and descent (offset from the bottom to the baseline), in display coords, of the string s with FontProperties prop. | |
doc_6988 |
Return the marker fill style. See also set_fillstyle. | |
doc_6989 | bytearray.isalnum()
Return True if all bytes in the sequence are alphabetical ASCII characters or ASCII decimal digits and the sequence is not empty, False otherwise. Alphabetic ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'. ASCII decimal digits are tho... | |
doc_6990 |
Fit the model using X, y as training data. Parameters
Xarray-like of shape (n_samples, n_features)
Training data.
yarray-like of shape (n_samples,) or (n_samples, n_targets)
Target values. Will be cast to X’s dtype if necessary Returns
selfobject
returns an instance of self. | |
doc_6991 |
Return the indices for the lower-triangle of an (n, m) array. Parameters
nint
The row dimension of the arrays for which the returned indices will be valid.
kint, optional
Diagonal offset (see tril for details).
mint, optional
New in version 1.9.0. The column dimension of the arrays for which the retur... | |
doc_6992 |
Return indices of the maximum values along the given axis. Refer to numpy.argmax for full documentation. See also numpy.argmax
equivalent function | |
doc_6993 | A special class-level marker to specify absence of default values and annotations. | |
doc_6994 |
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_6995 | Return True if the module specified by fullname is a package. Raise ZipImportError if the module couldn’t be found. | |
doc_6996 |
Get the locator of the minor ticker. | |
doc_6997 | Return sequence of Cookie objects extracted from response object. See the documentation for extract_cookies() for the interfaces required of the response and request arguments. | |
doc_6998 | A decorator for importlib.abc.Loader.load_module() to handle selecting the proper module object to load with. The decorated method is expected to have a call signature taking two positional arguments (e.g. load_module(self, module)) for which the second argument will be the module object to be used by the loader. Note ... | |
doc_6999 | Proxy requests under a path to an external server, routing other requests to the app. This middleware can only proxy HTTP requests, as HTTP is the only protocol handled by the WSGI server. Other protocols, such as WebSocket requests, cannot be proxied at this layer. This should only be used for development, in producti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.