_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_18000 |
Create the projection matrix from the current viewing position. | |
doc_18001 |
The base class for anything that participates in the transform tree and needs to invalidate its parents or be invalidated. This includes classes that are not really transforms, such as bounding boxes, since some transforms depend on bounding boxes to compute their values. | |
doc_18002 |
Check if windows match. New in version 1.6.0. Parameters
otherclass instance
The other class must have the window attribute. Returns
boolboolean
True if the windows are the same, False otherwise. | |
doc_18003 | tf.compat.v1.batch_scatter_update(
ref, indices, updates, use_locking=True, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed after 2018-11-29. Instructions for updating: Use the batch_scatter_update method of Variable instead. Analogous to batch_gather. This assumes that ref, indices and update... | |
doc_18004 | A string representation of the network, with the mask in net mask notation. | |
doc_18005 | This signal is sent when the application is flashing a message. The messages is sent as message keyword argument and the category as category. Example subscriber: recorded = []
def record(sender, message, category, **extra):
recorded.append((message, category))
from flask import message_flashed
message_flashed.con... | |
doc_18006 | Sometimes ctypes data instances do not own the memory block they contain, instead they share part of the memory block of a base object. The _b_base_ read-only member is the root ctypes object that owns the memory block. | |
doc_18007 |
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters
ccolor or list of colors | |
doc_18008 | Return an accurate floating point sum of values in the iterable. Avoids loss of precision by tracking multiple intermediate partial sums: >>> sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1])
0.9999999999999999
>>> fsum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1])
1.0
The algorithm’s accuracy depends on IEEE-754 arithmetic g... | |
doc_18009 | See Migration guide for more details. tf.compat.v1.raw_ops.DenseToSparseBatchDataset
tf.raw_ops.DenseToSparseBatchDataset(
input_dataset, batch_size, row_shape, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant. A handle to an input dataset. Must have a single componen... | |
doc_18010 | tf.compat.v1.to_int64(
x, name='ToInt64'
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead.
Args
x A Tensor or SparseTensor or IndexedSlices.
name A name for the operation (optional).
Returns A Tensor or SparseTen... | |
doc_18011 |
Convert series to a different kind and/or domain and/or window. Parameters
domainarray_like, optional
The domain of the converted series. If the value is None, the default domain of kind is used.
kindclass, optional
The polynomial series type class to which the current instance should be converted. If kind ... | |
doc_18012 | See Migration guide for more details. tf.compat.v1.is_tensor
tf.is_tensor(
x
)
Use is_tensor to differentiate types that can ingested by TensorFlow ops without any conversion (e.g., tf.Tensor, tf.SparseTensor, and tf.RaggedTensor) from types that need to be converted into tensors before they are ingested (e.g., ... | |
doc_18013 |
Count number of occurrences of each value in array of non-negative ints. The number of bins (of size 1) is one larger than the largest value in x. If minlength is specified, there will be at least this number of bins in the output array (though it will be longer if necessary, depending on the contents of x). Each bin... | |
doc_18014 | Alias for ExpatError. | |
doc_18015 | tf.compat.v1.lite.experimental.nn.dynamic_rnn(
cell, inputs, sequence_length=None, initial_state=None, dtype=None,
parallel_iterations=None, swap_memory=False, time_major=True, scope=None
)
Performs fully dynamic unrolling of inputs. Example: # create a BasicRNNCell
rnn_cell = tf.compat.v1.nn.rnn_cell.BasicRNN... | |
doc_18016 |
Bases: matplotlib.patches.Patch Patch showing the shape bounded by a Bbox. Parameters
bboxmatplotlib.transforms.Bbox
Bbox to use for the extents of this patch. **kwargs
Patch properties. Valid arguments include:
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a... | |
doc_18017 | Return current thread count and copy of dangling threads. | |
doc_18018 | See Migration guide for more details. tf.compat.v1.math.reduce_euclidean_norm
tf.math.reduce_euclidean_norm(
input_tensor, axis=None, keepdims=False, name=None
)
Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axi... | |
doc_18019 | Call the underlying PlaySound() function from the Platform API. The sound parameter may be a filename, a system sound alias, audio data as a bytes-like object, or None. Its interpretation depends on the value of flags, which can be a bitwise ORed combination of the constants described below. If the sound parameter is N... | |
doc_18020 | tf.experimental.numpy.uint32(
*args, **kwargs
)
Character code: 'I'. Canonical name: np.uintc. Alias on this platform: np.uint32: 32-bit unsigned integer (0 to 4294967295). Methods all
all()
Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimpl... | |
doc_18021 | Add x to the right side of the deque. | |
doc_18022 |
Validate the markevery property of a Line2D object. Parameters
sNone, int, (int, int), slice, float, (float, float), or list[int]
Returns
None, int, (int, int), slice, float, (float, float), or list[int] | |
doc_18023 |
Read Stata file into DataFrame. Parameters
filepath_or_buffer:str, path object or file-like object
Any valid string path is acceptable. The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a host is expected. A local file could be: file://localhost/path/to/table.dta. If y... | |
doc_18024 | class sklearn.gaussian_process.kernels.WhiteKernel(noise_level=1.0, noise_level_bounds=1e-05, 100000.0) [source]
White kernel. The main use-case of this kernel is as part of a sum-kernel where it explains the noise of the signal as independently and identically normally-distributed. The parameter noise_level equals t... | |
doc_18025 | uninitialize the font module quit() -> None Manually uninitialize SDL_ttf's font system. This is called automatically by pygame.quit(). It is safe to call this function even if font is currently not initialized. | |
doc_18026 | The name of the library passed in the constructor. | |
doc_18027 |
Modify Series in place using values from passed Series. Uses non-NA values from passed Series to make updates. Aligns on index. Parameters
other:Series, or object coercible into Series
Examples
>>> s = pd.Series([1, 2, 3])
>>> s.update(pd.Series([4, 5, 6]))
>>> s
0 4
1 5
2 6
dtype: int64
>>> s = ... | |
doc_18028 |
Partial Least Square SVD. This transformer simply performs a SVD on the crosscovariance matrix X’Y. It is able to project both the training data X and the targets Y. The training data X is projected on the left singular vectors, while the targets are projected on the right singular vectors. Read more in the User Guid... | |
doc_18029 | Works like make_line_iter() but accepts a separator which divides chunks. If you want newline based processing you should use make_line_iter() instead as it supports arbitrary newline markers. Changelog New in version 0.11.10: added support for the cap_at_buffer parameter. New in version 0.9: added support for itera... | |
doc_18030 |
Force collects GPU memory after it has been released by CUDA IPC. Note Checks if any sent CUDA tensors could be cleaned from the memory. Force closes shared memory file used for reference counting if there is no active counters. Useful when the producer process stopped actively sending tensors and want to release un... | |
doc_18031 | The name of the encoding that raised the error. | |
doc_18032 | The next operation will be performed elementwise. elementwise() -> VectorElementwiseProxy Applies the following operation to each element of the vector. | |
doc_18033 | sklearn.model_selection.cross_val_score(estimator, X, y=None, *, groups=None, scoring=None, cv=None, n_jobs=None, verbose=0, fit_params=None, pre_dispatch='2*n_jobs', error_score=nan) [source]
Evaluate a score by cross-validation Read more in the User Guide. Parameters
estimatorestimator object implementing ‘fit’... | |
doc_18034 | Saves the specified key, and all its subkeys to the specified file. key is an already open key, or one of the predefined HKEY_* constants. file_name is the name of the file to save registry data to. This file cannot already exist. If this filename includes an extension, it cannot be used on file allocation table (FAT) ... | |
doc_18035 | Receive notification of ignorable whitespace in element content. Validating Parsers must use this method to report each chunk of ignorable whitespace (see the W3C XML 1.0 recommendation, section 2.10): non-validating parsers may also use this method if they are capable of parsing and using content models. SAX parsers m... | |
doc_18036 |
Combine date, time into datetime with same date and time fields. Examples
>>> from datetime import date, time
>>> pd.Timestamp.combine(date(2020, 3, 14), time(15, 30, 15))
Timestamp('2020-03-14 15:30:15') | |
doc_18037 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomNormal
tf.raw_ops.StatelessRandomNormal(
shape, seed, dtype=tf.dtypes.float32, name=None
)
The generated values will have mean 0 and standard deviation 1. The outputs are a deterministic function of shape and seed.
Args
shape A Te... | |
doc_18038 | tf.compat.v1.data.experimental.RaggedTensorStructure(
dtype, shape, ragged_rank
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.RaggedTensorSpec instead. | |
doc_18039 |
Calculate the expanding median. Parameters
engine:str, default None
'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba.
None : Defaults to 'cython' or globally setting compute.use_numba New in version 1.3.0.
engine_kwargs:dic... | |
doc_18040 |
Generate Kernel Density Estimate plot using Gaussian kernels. In statistics, kernel density estimation (KDE) is a non-parametric way to estimate the probability density function (PDF) of a random variable. This function uses Gaussian kernels and includes automatic bandwidth determination. Parameters
bw_method:str... | |
doc_18041 | The name is returned unchanged. If the input value has a name attribute and it matches name ignoring case, the value is returned unchanged. Otherwise the name and value are passed to header_factory, and the resulting header object is returned as the value. In this case a ValueError is raised if the input value contains... | |
doc_18042 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_18043 | unescape() the markup, remove tags, and normalize whitespace to single spaces. >>> Markup("Main » <em>About</em>").striptags()
'Main » About'
Return type
str | |
doc_18044 | This method will parse and dispatch the request to the appropriate do_*() method. You should never need to override it. | |
doc_18045 | Returns a new instance of the SysLogHandler class intended to communicate with a remote Unix machine whose address is given by address in the form of a (host, port) tuple. If address is not specified, ('localhost', 514) is used. The address is used to open a socket. An alternative to providing a (host, port) tuple is p... | |
doc_18046 |
Bases: object A mapping of registered projection names to projection classes. get_projection_class(name)[source]
Get a projection class from its name.
get_projection_names()[source]
Return the names of all projections currently registered.
register(*projections)[source]
Register a new set of projectio... | |
doc_18047 | class sklearn.multiclass.OutputCodeClassifier(estimator, *, code_size=1.5, random_state=None, n_jobs=None) [source]
(Error-Correcting) Output-Code multiclass strategy Output-code based strategies consist in representing each class with a binary code (an array of 0s and 1s). At fitting time, one binary classifier per ... | |
doc_18048 | Returns the value of this tensor as a standard Python number. This only works for tensors with one element. For other cases, see tolist(). This operation is not differentiable. Example: >>> x = torch.tensor([1.0])
>>> x.item()
1.0 | |
doc_18049 | See torch.atanh() | |
doc_18050 |
Compute tensor dot product along specified axes. Given two tensors, a and b, and an array_like object containing two array_like objects, (a_axes, b_axes), sum the products of a’s and b’s elements (components) over the axes specified by a_axes and b_axes. The third argument can be a single non-negative integer_like sc... | |
doc_18051 | tf.compat.v1.train.sdca_shrink_l1(
weights, l1, l2, name=None
)
Args
weights A list of Tensor objects with type mutable float32. a list of vectors where each value is the weight associated with a feature group.
l1 A float. Symmetric l1 regularization strength.
l2 A float. Symmetric l2 regulari... | |
doc_18052 | See torch.cumprod() | |
doc_18053 |
Applies a 3D adaptive average pooling over an input signal composed of several input planes. The output is of size D x H x W, for any input size. The number of output features is equal to the number of input planes. Parameters
output_size – the target output size of the form D x H x W. Can be a tuple (D, H, W) or a... | |
doc_18054 | 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_18055 |
Calculate the expanding custom aggregation function. Parameters
func:function
Must produce a single value from an ndarray input if raw=True or a single value from a Series if raw=False. Can also accept a Numba JIT function with engine='numba' specified. Changed in version 1.0.0.
raw:bool, default False
F... | |
doc_18056 |
Return the canvas width and height in display coords. | |
doc_18057 |
Create a decorator for methods that are delegated to a sub-estimator This enables ducktyping by hasattr returning True according to the sub-estimator. Parameters
delegatestring, list of strings or tuple of strings
Name of the sub-estimator that can be accessed as an attribute of the base object. If a list or a ... | |
doc_18058 | Bind a callback for the given event sequence to the tag tagname. When an event is delivered to an item, the callbacks for each of the item’s tags option are called. | |
doc_18059 |
Return the face color. | |
doc_18060 | Return a callable finalizer object which will be called when obj is garbage collected. Unlike an ordinary weak reference, a finalizer will always survive until the reference object is collected, greatly simplifying lifecycle management. A finalizer is considered alive until it is called (either explicitly or at garbage... | |
doc_18061 |
Alias for set_markerfacecoloralt. | |
doc_18062 |
Return the aspect ratio of the bbox mutation. | |
doc_18063 | logical_or() is a logical operation which takes two logical operands (see Logical operands). The result is the digit-wise or of the two operands. | |
doc_18064 | The maximum length of any line in the serialized output, not counting the end of line character(s). Default is 78, per RFC 5322. A value of 0 or None indicates that no line wrapping should be done at all. | |
doc_18065 |
Set the precision used to display values. Deprecated since version 1.3.0. Parameters
precision:int
Returns
self:Styler
Notes This method is deprecated see Styler.format. | |
doc_18066 |
Graph of the pixel-to-pixel connections Edges exist if 2 voxels are connected. Parameters
n_xint
Dimension in x axis
n_yint
Dimension in y axis
n_zint, default=1
Dimension in z axis
maskndarray of shape (n_x, n_y, n_z), dtype=bool, default=None
An optional mask of the image, to consider only part of... | |
doc_18067 | returns a list of available cameras list_cameras() -> [cameras] Checks the computer for available cameras and returns a list of strings of camera names, ready to be fed into pygame.camera.Camera. | |
doc_18068 | Parameters
cv – a tkinter.Canvas Provides screen oriented methods like setbg() etc. that are described above. | |
doc_18069 |
Set the z position of the text. Parameters
zfloat | |
doc_18070 |
Select a scale for the range from vmin to vmax. Subclasses should override this method to change locator behaviour. | |
doc_18071 |
When the text changes, call this func with event. A connection id is returned which can be used to disconnect. | |
doc_18072 |
Inplace column scaling of a CSC/CSR matrix. Scale each feature of the data matrix by multiplying with specific scale provided by the caller assuming a (n_samples, n_features) shape. Parameters
Xsparse matrix of shape (n_samples, n_features)
Matrix to normalize using the variance of the features. It should be of... | |
doc_18073 | A mixin class that performs template-based response rendering for views that operate upon a list of object instances. Requires that the view it is mixed with provides self.object_list, the list of object instances that the view is operating on. self.object_list may be, but is not required to be, a QuerySet. Extends Te... | |
doc_18074 | tf.distribute.experimental.CollectiveCommunication Compat aliases for migration See Migration guide for more details. tf.compat.v1.distribute.experimental.CollectiveCommunication, tf.compat.v1.distribute.experimental.CommunicationImplementation Warning: The alias tf.distribute.experimental.CollectiveCommunication is d... | |
doc_18075 | class sklearn.decomposition.PCA(n_components=None, *, copy=True, whiten=False, svd_solver='auto', tol=0.0, iterated_power='auto', random_state=None) [source]
Principal component analysis (PCA). Linear dimensionality reduction using Singular Value Decomposition of the data to project it to a lower dimensional space. T... | |
doc_18076 | See Migration guide for more details. tf.compat.v1.keras.callbacks.ProgbarLogger
tf.keras.callbacks.ProgbarLogger(
count_mode='samples', stateful_metrics=None
)
Arguments
count_mode One of "steps" or "samples". Whether the progress bar should count samples seen or steps (batches) seen.
stateful_metr... | |
doc_18077 |
Save an array as an image file. Parameters
fnamestr or path-like or file-like
A path or a file-like object to store the image in. If format is not set, then the output format is inferred from the extension of fname, if any, and from rcParams["savefig.format"] (default: 'png') otherwise. If format is set, it det... | |
doc_18078 |
Finds the neighbors within a given radius of a point or points. Return the indices and distances of each point from the dataset lying in a ball with size radius around the points of the query array. Points lying on the boundary are included in the results. The result points are not necessarily sorted by distance to t... | |
doc_18079 | Get a wide character. Return a character for most keys, or an integer for function keys, keypad keys, and other special keys. In no-delay mode, raise an exception if there is no input. New in version 3.3. | |
doc_18080 | Update LINES and COLS. Useful for detecting manual screen resize. New in version 3.5. | |
doc_18081 | The version number of the run-time SQLite library, as a tuple of integers. | |
doc_18082 | @tf_contextlib.contextmanager
tf.compat.v1.variable_creator_scope(
variable_creator
)
variable_creator is expected to be a function with the following signature: def variable_creator(next_creator, **kwargs)
The creator is supposed to eventually call the next_creator to create a variable if it does want to create ... | |
doc_18083 |
Parameters:
file_h (a Python file object or a string path to the file) – input file that contains spatial data
Return type:
a GEOSGeometry corresponding to the spatial data in the file Example: >>> from django.contrib.gis.geos import fromfile
>>> g = fromfile('/home/bob/geom.wkt') | |
doc_18084 |
Being similar to get_parallels, returns control points of two quadratic Bezier lines having a width roughly parallel to given one separated by width. | |
doc_18085 | Returns a single string identifying the underlying platform with as much useful information as possible. The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended. If aliased is true, the function will use aliases for various platforms t... | |
doc_18086 |
Series basis polynomial of degree deg. Returns the series representing the basis polynomial of degree deg. New in version 1.7.0. Parameters
degint
Degree of the basis polynomial for the series. Must be >= 0.
domain{None, array_like}, optional
If given, the array must be of the form [beg, end], where beg a... | |
doc_18087 | tf.metrics.binary_accuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.binary_accuracy
tf.keras.metrics.binary_accuracy(
y_true, y_pred, threshold=0.5
)
Standalone usage:
y_true = [[1], [1], [0], [0]]
y_pred = [[1], [1], [0], [0]]
m = tf.keras.metrics.binary_acc... | |
doc_18088 | __getitem__(key)
Return a representation of the message corresponding to key. If no such message exists, default is returned if the method was called as get() and a KeyError exception is raised if the method was called as __getitem__(). The message is represented as an instance of the appropriate format-specific Mess... | |
doc_18089 | Some curses routines that return an integer, such as getch(), return ERR upon failure. | |
doc_18090 |
Get the width of the lines used to mark each event. | |
doc_18091 | class sklearn.decomposition.KernelPCA(n_components=None, *, kernel='linear', gamma=None, degree=3, coef0=1, kernel_params=None, alpha=1.0, fit_inverse_transform=False, eigen_solver='auto', tol=0, max_iter=None, remove_zero_eig=False, random_state=None, copy_X=True, n_jobs=None) [source]
Kernel Principal component ana... | |
doc_18092 |
Samples elements sequentially, always in the same order. Parameters
data_source (Dataset) – dataset to sample from | |
doc_18093 |
[Deprecated] List font filenames known to fc-list having the given extension. Notes Deprecated since version 3.5. | |
doc_18094 | The constructor for DataSource only requires one parameter: the path of the file you want to read. However, OGR also supports a variety of more complex data sources, including databases, that may be accessed by passing a special name string instead of a path. For more information, see the OGR Vector Formats documentati... | |
doc_18095 | """
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_18096 | Return a list of objects directly referred to by any of the arguments. The referents returned are those objects visited by the arguments’ C-level tp_traverse methods (if any), and may not be all objects actually directly reachable. tp_traverse methods are supported only by objects that support garbage collection, and a... | |
doc_18097 | Create an array and return a proxy for it. | |
doc_18098 |
Find the set difference of two arrays. Return the unique values in ar1 that are not in ar2. Parameters
ar1array_like
Input array.
ar2array_like
Input comparison array.
assume_uniquebool
If True, the input arrays are both assumed to be unique, which can speed up the calculation. Default is False. Retu... | |
doc_18099 | sklearn.utils.validation.column_or_1d(y, *, warn=False) [source]
Ravel column or 1d numpy array, else raises an error. Parameters
yarray-like
warnbool, default=False
To control display of warnings. Returns
yndarray |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.