_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_19200 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceAccumulatorSetGlobalStep
tf.raw_ops.ResourceAccumulatorSetGlobalStep(
handle, new_global_step, name=None
)
Logs warning if the accumulator's value is already higher than new_global_step.
Args
handle A Tensor of type resource. The handle ... | |
doc_19201 |
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_19202 |
Check whether all characters in each string are decimal. This is equivalent to running the Python string method str.isdecimal() for each element of the Series/Index. If a string has zero characters, False is returned for that check. Returns
Series or Index of bool
Series or Index of boolean values with the same l... | |
doc_19203 | from django.views.decorators.cache import cache_page
from django.views.decorators.vary import vary_on_cookie, vary_on_headers
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import viewsets
class UserViewSet(viewsets.ViewSet):
# With cookie: cache request... | |
doc_19204 |
Compute the orientation of corners. The orientation of corners is computed using the first order central moment i.e. the center of mass approach. The corner orientation is the angle of the vector from the corner coordinate to the intensity centroid in the local neighborhood around the corner calculated using first or... | |
doc_19205 | tf.matrix_square_root Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.sqrtm, tf.compat.v1.matrix_square_root
tf.linalg.sqrtm(
input, name=None
)
matmul(sqrtm(A), sqrtm(A)) = A The input matrix should be invertible. If the input matrix is real, it should have no eigenvalues ... | |
doc_19206 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArraySize
tf.raw_ops.TensorArraySize(
handle, flow_in, name=None
)
Args
handle A Tensor of type mutable string.
flow_in A Tensor of type float32.
name A name for the operation (optional).
Returns A Tensor of type int3... | |
doc_19207 |
Set a title for the Axes. Set one of the three available Axes titles. The available titles are positioned above the Axes in the center, flush with the left edge, and flush with the right edge. Parameters
labelstr
Text to use for the title
fontdictdict
A dictionary controlling the appearance of the title tex... | |
doc_19208 | os.O_DIRECT
os.O_DIRECTORY
os.O_NOFOLLOW
os.O_NOATIME
os.O_PATH
os.O_TMPFILE
os.O_SHLOCK
os.O_EXLOCK
The above constants are extensions and not present if they are not defined by the C library. Changed in version 3.4: Add O_PATH on systems that support it. Add O_TMPFILE, only available on Linux Kernel ... | |
doc_19209 |
Homogeneity metric of a cluster labeling given a ground truth. A clustering result satisfies homogeneity if all of its clusters contain only data points which are members of a single class. This metric is independent of the absolute values of the labels: a permutation of the class or cluster label values won’t change... | |
doc_19210 | sklearn.metrics.silhouette_score(X, labels, *, metric='euclidean', sample_size=None, random_state=None, **kwds) [source]
Compute the mean Silhouette Coefficient of all samples. The Silhouette Coefficient is calculated using the mean intra-cluster distance (a) and the mean nearest-cluster distance (b) for each sample.... | |
doc_19211 | Returns the field’s value for the given model instance. This method is often used by value_to_string(). | |
doc_19212 |
Bases: matplotlib.backend_tools.ToolBase default_keymap=['f1']
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='Print tool list, shortcuts and description'
Description of the Tool. str: Tooltip used i... | |
doc_19213 |
Perform ceil operation on the data to the specified freq. Parameters
freq:str or Offset
The frequency level to ceil the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possible freq values.
ambiguous:‘infer’, bool-ndarray, ‘NaT’, default ‘raise’
... | |
doc_19214 | Windows only: This function is a hook which allows implementing in-process COM servers with ctypes. It is called from the DllGetClassObject function that the _ctypes extension dll exports. | |
doc_19215 | Close the wrapped response if possible. You can also use the object in a with statement which will automatically close it. Changelog New in version 0.9: Can now be used in a with statement. Return type
None | |
doc_19216 | Registers a function that is called when the blueprint is registered on the application. This function is called with the state as argument as returned by the make_setup_state() method. Parameters
func (Callable) – Return type
None | |
doc_19217 |
Clip (limit) the values in an array. Given an interval, values outside the interval are clipped to the interval edges. For example, if an interval of [0, 1] is specified, values smaller than 0 become 0, and values larger than 1 become 1. Equivalent to but faster than np.minimum(a_max, np.maximum(a, a_min)). No check ... | |
doc_19218 | See torch.maximum() | |
doc_19219 |
Return the flattened underlying data as an ndarray. Returns
numpy.ndarray or ndarray-like
Flattened data of the Series. See also numpy.ndarray.ravel
Return a flattened array. | |
doc_19220 |
The frequency object of this PeriodDtype. | |
doc_19221 |
Alias for set_linestyle. | |
doc_19222 | Return the sine of x radians. | |
doc_19223 | See Migration guide for more details. tf.compat.v1.raw_ops.Variable
tf.raw_ops.Variable(
shape, dtype, container='', shared_name='', name=None
)
Args
shape A tf.TensorShape or list of ints.
dtype A tf.DType.
container An optional string. Defaults to "".
shared_name An optional string. ... | |
doc_19224 |
Label a contour plot. Adds labels to line contours in this ContourSet (which inherits from this mixin class). Parameters
levelsarray-like, optional
A list of level values, that should be labeled. The list must be a subset of cs.levels. If not given, all levels are labeled.
fontsizestr or float, default: rcPar... | |
doc_19225 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyProximalGradientDescent
tf.raw_ops.ResourceSparseApplyProximalGradientDescent(
var, alpha, l1, l2, grad, indices, use_locking=False, name=None
)
That is for rows we have grad for, we update var as follows: prox_v = var - alpha * grad v... | |
doc_19226 | The header to issue if the help output has a section for miscellaneous help topics (that is, there are help_*() methods without corresponding do_*() methods). | |
doc_19227 | See Migration guide for more details. tf.compat.v1.raw_ops.StageClear
tf.raw_ops.StageClear(
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 optional int t... | |
doc_19228 | Make an iterator that computes the function using arguments obtained from the iterable. Used instead of map() when argument parameters are already grouped in tuples from a single iterable (the data has been “pre-zipped”). The difference between map() and starmap() parallels the distinction between function(a,b) and fun... | |
doc_19229 |
Return the indices of the elements that are non-zero. Refer to numpy.nonzero for full documentation. See also numpy.nonzero
equivalent function | |
doc_19230 |
Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters
lwfloat or list of floats | |
doc_19231 | A dictionary of key/value parameters included in the CONTENT_TYPE header. | |
doc_19232 |
Compute the mean-squared error between two images. Parameters
image0, image1ndarray
Images. Any dimensionality, must have same shape. Returns
msefloat
The mean-squared error (MSE) metric. Notes Changed in version 0.16: This function was renamed from skimage.measure.compare_mse to skimage.metrics.me... | |
doc_19233 | Base class for warnings generated by user code. | |
doc_19234 |
Alias for get_linestyle. | |
doc_19235 |
Call self as a function. | |
doc_19236 | tf.train.experimental.disable_mixed_precision_graph_rewrite()
Warning: THIS FUNCTION IS DEPRECATED. It will be removed after 2020-11-30. Instructions for updating: Use tf.keras.mixed_precision. There is a guide at https://www.tensorflow.org/guide/mixed_precision. Alternatively, tf.compat.v1.mixed_precision.disable_mix... | |
doc_19237 |
Evaluate a 2-D polynomial at points (x, y). This function returns the value \[p(x,y) = \sum_{i,j} c_{i,j} * x^i * y^j\] The parameters x and y are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after conversion. In either case, either... | |
doc_19238 | Each time any Django application raises a 404 error, this middleware checks the flatpages database for the requested URL as a last resort. Specifically, it checks for a flatpage with the given URL with a site ID that corresponds to the SITE_ID setting. If it finds a match, it follows this algorithm: If the flatpage ha... | |
doc_19239 | sklearn.datasets.make_s_curve(n_samples=100, *, noise=0.0, random_state=None) [source]
Generate an S curve dataset. Read more in the User Guide. Parameters
n_samplesint, default=100
The number of sample points on the S curve.
noisefloat, default=0.0
The standard deviation of the gaussian noise.
random_sta... | |
doc_19240 |
Return the y-axis view limits. Returns
bottom, top(float, float)
The current y-axis limits in data coordinates. See also set_ylim
set_ybound, get_ybound
invert_yaxis, yaxis_inverted
Notes The y-axis may be inverted, in which case the bottom value will be greater than the top value. | |
doc_19241 |
Return the zaxis' tick lines as a list of Line2Ds. | |
doc_19242 | Return the current payload, which will be a list of Message objects when is_multipart() is True, or a string when is_multipart() is False. If the payload is a list and you mutate the list object, you modify the message’s payload in place. With optional argument i, get_payload() will return the i-th element of the paylo... | |
doc_19243 | Adds a new file to the dict. file can be a file name or a file-like or a FileStorage object. Parameters
name – the name of the field.
file – a filename or file-like object
filename – an optional filename
content_type – an optional content type | |
doc_19244 |
Context-manager that sets gradient calculation to on or off. set_grad_enabled will enable or disable grads based on its argument mode. It can be used as a context-manager or as a function. This context manager is thread local; it will not affect computation in other threads. Parameters
mode (bool) – Flag whether to... | |
doc_19245 | See Migration guide for more details. tf.compat.v1.range tf.range(limit, delta=1, dtype=None, name='range')
tf.range(start, limit, delta=1, dtype=None, name='range')
Creates a sequence of numbers that begins at start and extends by increments of delta up to but not including limit. The dtype of the resulting tensor i... | |
doc_19246 |
Return the array as an a.ndim-levels deep nested list of Python scalars. Return a copy of the array data as a (nested) Python list. Data items are converted to the nearest compatible builtin Python type, via the item function. If a.ndim is 0, then since the depth of the nested list is 0, it will not be a list at all,... | |
doc_19247 | Register a function to handle errors by code or exception class. A decorator that is used to register a function given an error code. Example: @app.errorhandler(404)
def page_not_found(error):
return 'This page does not exist', 404
You can also register handlers for arbitrary exceptions: @app.errorhandler(Database... | |
doc_19248 | For top-level functions, None. For nested functions, the parent. New in version 3.7. | |
doc_19249 | See Migration guide for more details. tf.compat.v1.autograph.experimental.set_loop_options
tf.autograph.experimental.set_loop_options(
parallel_iterations=UNSPECIFIED, swap_memory=UNSPECIFIED,
maximum_iterations=UNSPECIFIED, shape_invariants=UNSPECIFIED
)
The parameters apply to and only to the immediately e... | |
doc_19250 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_multi_enum_class
tf.compat.v1.flags.DEFINE_multi_enum_class(
name, default, enum_class, help, flag_values=_flagvalues.FLAGS,
module_name=None, case_sensitive=False, **args
)
Use the flag on the command line multiple times to place multiple e... | |
doc_19251 |
Estimate essential matrix using 8-point algorithm. The 8-point algorithm requires at least 8 corresponding point pairs for a well-conditioned solution, otherwise the over-determined solution is estimated. Parameters
src(N, 2) array
Source coordinates.
dst(N, 2) array
Destination coordinates. Returns
s... | |
doc_19252 | Indicate that no more data will be put on this queue by the current process. The background thread will quit once it has flushed all buffered data to the pipe. This is called automatically when the queue is garbage collected. | |
doc_19253 | Specify which protocols the socket should advertise during the SSL/TLS handshake. It should be a list of strings, like ['http/1.1', 'spdy/2'], ordered by preference. The selection of a protocol will happen during the handshake, and will play out according to the Application Layer Protocol Negotiation. After a successfu... | |
doc_19254 | The name of the root element as given in the DOCTYPE declaration, if present. | |
doc_19255 |
Set multiple properties at once. Supported properties are
Property Description
adjustable {'box', 'datalim'}
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
anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}... | |
doc_19256 | Check the validity of an address on this server using SMTP VRFY. Returns a tuple consisting of code 250 and a full RFC 822 address (including human name) if the user address is valid. Otherwise returns an SMTP error code of 400 or greater and an error string. Note Many sites disable SMTP VRFY in order to foil spammers... | |
doc_19257 | A view that displays a confirmation page and deletes an existing object. The given object will only be deleted if the request method is POST. If this view is fetched via GET, it will display a confirmation page that should contain a form that POSTs to the same URL. Ancestors (MRO) This view inherits methods and attribu... | |
doc_19258 |
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event. | |
doc_19259 |
Set the colormap for luminance data. Parameters
cmapColormap or str or None | |
doc_19260 | Width of the image in pixels. | |
doc_19261 |
Return a matrix with ones on the diagonal and zeros elsewhere. Parameters
nint
Number of rows in the output.
Mint, optional
Number of columns in the output, defaults to n.
kint, optional
Index of the diagonal: 0 refers to the main diagonal, a positive value refers to an upper diagonal, and a negative va... | |
doc_19262 |
Alias for self._offset. | |
doc_19263 |
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_19264 |
Predict class log-probabilities for X. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
parray of shape (n_samples, n_classes)
The class log-probabilities of the input samples. The order of the classes corresponds to that in the attribute classes_. | |
doc_19265 | tf.summary.scalar(
name, data, step=None, description=None
)
Arguments
name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scopes.
data A real numeric scalar value, convertible to a float32 Tensor.
step Explicit int64-castable monoto... | |
doc_19266 |
Set the aspect ratios. Axes 3D does not current support any aspect but 'auto' which fills the axes with the data limits. To simulate having equal aspect in data space, set the ratio of your data limits to match the value of get_box_aspect. To control box aspect ratios use set_box_aspect. Parameters
aspect{'auto'}... | |
doc_19267 | assertNotIsInstance(obj, cls, msg=None)
Test that obj is (or is not) an instance of cls (which can be a class or a tuple of classes, as supported by isinstance()). To check for the exact type, use assertIs(type(obj), cls). New in version 3.2. | |
doc_19268 |
Predict using the linear model. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
Carray, shape (n_samples,)
Returns predicted values. | |
doc_19269 | '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_19270 | Return x to the power of y, reduced modulo modulo if given. With two arguments, compute x**y. If x is negative then y must be integral. The result will be inexact unless y is integral and the result is finite and can be expressed exactly in ‘precision’ digits. The rounding mode of the context is used. Results are alway... | |
doc_19271 | tf.initializers.Orthogonal, tf.initializers.orthogonal, tf.keras.initializers.orthogonal
tf.keras.initializers.Orthogonal(
gain=1.0, seed=None
)
Also available via the shortcut function tf.keras.initializers.orthogonal. If the shape of the tensor to initialize is two-dimensional, it is initialized with an orthog... | |
doc_19272 | Connect sock to a remote socket at address. Asynchronous version of socket.connect(). sock must be a non-blocking socket. Changed in version 3.5.2: address no longer needs to be resolved. sock_connect will try to check if the address is already resolved by calling socket.inet_pton(). If not, loop.getaddrinfo() will be... | |
doc_19273 |
A torch.nn.Conv3d module with lazy initialization of the in_channels argument of the Conv3d that is inferred from the input.size(1). Parameters
out_channels (int) – Number of channels produced by the convolution
kernel_size (int or tuple) – Size of the convolving kernel
stride (int or tuple, optional) – Stride ... | |
doc_19274 |
Return the indices to access the main diagonal of an array. This returns a tuple of indices that can be used to access the main diagonal of an array a with a.ndim >= 2 dimensions and shape (n, n, …, n). For a.ndim = 2 this is the usual diagonal, for a.ndim > 2 this is the set of indices to access a[i, i, ..., i] for ... | |
doc_19275 | See Migration guide for more details. tf.compat.v1.app.flags.doc_to_help
tf.compat.v1.flags.doc_to_help(
doc
) | |
doc_19276 | bytearray.ljust(width[, fillbyte])
Return a copy of the object left justified in a sequence of length width. Padding is done using the specified fillbyte (default is an ASCII space). For bytes objects, the original sequence is returned if width is less than or equal to len(s). Note The bytearray version of this meth... | |
doc_19277 |
Samples elements randomly from a given list of indices, without replacement. Parameters
indices (sequence) – a sequence of indices
generator (Generator) – Generator used in sampling. | |
doc_19278 | Concrete class for urlsplit() results containing bytes data. The decode() method returns a SplitResult instance. New in version 3.2. | |
doc_19279 |
Scalar method identical to the corresponding array attribute. Please see ndarray.tolist. | |
doc_19280 | Copy the count bytes starting at offset src to the destination index dest. If the mmap was created with ACCESS_READ, then calls to move will raise a TypeError exception. | |
doc_19281 | Set the number of output channels to nchannels. A value of 1 indicates monophonic sound, 2 stereophonic. Some devices may have more than 2 channels, and some high-end devices may not support mono. Returns the number of channels the device was set to. | |
doc_19282 | Alias for GetoptError; for backward compatibility. | |
doc_19283 |
Performs element-wise comparison of two string arrays using the comparison operator specified by cmp_op. Parameters
a1, a2array_like
Arrays to be compared.
cmp{“<”, “<=”, “==”, “>=”, “>”, “!=”}
Type of comparison.
rstripBoolean
If True, the spaces at the end of Strings are removed before the comparison.... | |
doc_19284 |
Zero-one classification loss. If normalize is True, return the fraction of misclassifications (float), else it returns the number of misclassifications (int). The best performance is 0. Read more in the User Guide. Parameters
y_true1d array-like, or label indicator array / sparse matrix
Ground truth (correct) l... | |
doc_19285 |
Draw samples from a Beta distribution. The Beta distribution is a special case of the Dirichlet distribution, and is related to the Gamma distribution. It has the probability distribution function \[f(x; a,b) = \frac{1}{B(\alpha, \beta)} x^{\alpha - 1} (1 - x)^{\beta - 1},\] where the normalization, B, is the beta f... | |
doc_19286 | See Migration guide for more details. tf.compat.v1.autograph.set_verbosity
tf.autograph.set_verbosity(
level, alsologtostdout=False
)
Debug logging in AutoGraph More verbose logging is useful to enable when filing bug reports or doing more in-depth debugging. There are two means to control the logging verbosity:... | |
doc_19287 |
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_19288 | All built-in, non-system-exiting exceptions are derived from this class. All user-defined exceptions should also be derived from this class. | |
doc_19289 | See torch.unbind() | |
doc_19290 |
Return a backend-specific tuple to return to the backend after all processing is done. | |
doc_19291 | User model
class models.User
Fields
class models.User
User objects have the following fields:
username
Required. 150 characters or fewer. Usernames may contain alphanumeric, _, @, +, . and - characters. The max_length should be sufficient for many use cases. If you need a longer length, please use a custom ... | |
doc_19292 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_19293 | tf.distribute.experimental.CentralStorageStrategy(
compute_devices=None, parameter_device=None
)
Variables are assigned to local CPU or the only GPU. If there is more than one GPU, compute operations (other than variable update operations) will be replicated across all GPUs. For Example: strategy = tf.distribute.e... | |
doc_19294 |
Compute median of groups, excluding missing values. For multiple groupings, the result index will be a MultiIndex Parameters
numeric_only:bool, default True
Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. Returns
Series or DataFrame
Median of ... | |
doc_19295 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyFtrlV2
tf.raw_ops.ResourceApplyFtrlV2(
var, accum, linear, grad, lr, l1, l2, l2_shrinkage, lr_power, use_locking=False,
multiply_linear_by_lr=False, name=None
)
grad_with_shrinkage = grad + 2 * l2_shrinkage * var accum_new = accum + grad... | |
doc_19296 | class sklearn.cross_decomposition.PLSCanonical(n_components=2, *, scale=True, algorithm='nipals', max_iter=500, tol=1e-06, copy=True) [source]
Partial Least Squares transformer and regressor. Read more in the User Guide. New in version 0.8. Parameters
n_componentsint, default=2
Number of components to keep. S... | |
doc_19297 |
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters
**paramsdict
Estimator parameters. Returns... | |
doc_19298 |
Evaluate the estimated pdf on a set of points. Parameters
points(# of dimensions, # of points)-array
Alternatively, a (# of dimensions,) vector can be passed in and treated as a single point. Returns
(# of points,)-array
The values at each point. Raises
ValueErrorif the dimensionality of the input p... | |
doc_19299 | Concrete implementation of importlib.abc.SourceLoader.set_data(). |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.