_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_11200
Destroys the test databases, restoring pre-test conditions. old_config is a data structure defining the changes in the database configuration that need to be reversed. It’s the return value of the setup_databases() method.
doc_11201
Return specified diagonals. In NumPy 1.9 the returned array is a read-only view instead of a copy as in previous NumPy versions. In a future version the read-only restriction will be removed. Refer to numpy.diagonal for full documentation. See also numpy.diagonal equivalent function
doc_11202
Controls whether or not a constraint should be created in the database for this foreign key. The default is True, and that’s almost certainly what you want; setting this to False can be very bad for data integrity. That said, here are some scenarios where you might want to do this: You have legacy data that is not val...
doc_11203
cleaned_data is the cleaned data from the form which is used for string formatting
doc_11204
Create a new directory on the server.
doc_11205
Add the current instance (self.object) to the standard get_form_kwargs().
doc_11206
Close the sequence.
doc_11207
Return the normalized sinc function. The sinc function is \(\sin(\pi x)/(\pi x)\). Note Note the normalization factor of pi used in the definition. This is the most commonly used definition in signal processing. Use sinc(x / np.pi) to obtain the unnormalized sinc function \(\sin(x)/(x)\) that is more common in mathe...
doc_11208
Computes input<other\text{input} < \text{other} element-wise. The second argument can be a number or a tensor whose shape is broadcastable with the first argument. Parameters input (Tensor) – the tensor to compare other (Tensor or float) – the tensor or value to compare Keyword Arguments out (Tensor, optional)...
doc_11209
Bases: matplotlib.ticker.Formatter Format axis values using engineering prefixes to represent powers of 1000, plus a specified unit, e.g., 10 MHz instead of 1e7. Parameters unitstr, default: "" Unit symbol to use, suitable for use with single-letter representations of powers of 1000. For example, 'Hz' or 'm'. ...
doc_11210
Windows file attributes: dwFileAttributes member of the BY_HANDLE_FILE_INFORMATION structure returned by GetFileInformationByHandle(). See the FILE_ATTRIBUTE_* constants in the stat module.
doc_11211
Alias for get_edgecolor.
doc_11212
Add a non-resampled image to the figure. The image is attached to the lower or upper left corner depending on origin. Parameters X The image data. This is an array of one of the following shapes: MxN: luminance (grayscale) values MxNx3: RGB values MxNx4: RGBA values xo, yoint The x/y image offset in pixels....
doc_11213
Compute a confusion matrix for each class or sample. New in version 0.21. Compute class-wise (default) or sample-wise (samplewise=True) multilabel confusion matrix to evaluate the accuracy of a classification, and output confusion matrices for each class or sample. In multilabel confusion matrix \(MCM\), the count ...
doc_11214
Get the image as a memoryview to the renderer's buffer. draw must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.
doc_11215
Function that computes the Hessian of a given scalar function. Parameters func (function) – a Python function that takes Tensor inputs and returns a Tensor with a single element. inputs (tuple of Tensors or Tensor) – inputs to the function func. create_graph (bool, optional) – If True, the Hessian will be compu...
doc_11216
A generic version of collections.defaultdict. New in version 3.5.2. Deprecated since version 3.9: collections.defaultdict now supports []. See PEP 585 and Generic Alias Type.
doc_11217
Switch to a temporary renderer for image filtering effects. Currently only supported by the agg renderer.
doc_11218
'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_11219
self.char() is equivalent to self.to(torch.int8). See to(). Parameters memory_format (torch.memory_format, optional) – the desired memory format of returned Tensor. Default: torch.preserve_format.
doc_11220
See Migration guide for more details. tf.compat.v1.sparse.add tf.compat.v1.sparse_add( a, b, threshold=None, thresh=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (thresh). They will be removed in a future version. Instructions for updating: thresh is deprecated, use threshold instead If one SparseTensor and one...
doc_11221
Return a list of names of all currently available turtle shapes. >>> screen.getshapes() ['arrow', 'blank', 'circle', ..., 'turtle']
doc_11222
from django.shortcuts import get_object_or_404 from myapps.serializers import UserSerializer from rest_framework import viewsets from rest_framework.response import Response class UserViewSet(viewsets.ViewSet): """ A simple ViewSet for listing or retrieving users. """ def list(self, request): q...
doc_11223
Returns a string describing the reason why a geometry is invalid.
doc_11224
Update this artist's properties from the dict props. Parameters propsdict
doc_11225
Bases: matplotlib.ticker.Locator Set a tick on each integer multiple of a base within the view interval. set_params(base)[source] Set parameters within this locator. tick_values(vmin, vmax)[source] Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax...
doc_11226
class sklearn.linear_model.RidgeClassifier(alpha=1.0, *, fit_intercept=True, normalize=False, copy_X=True, max_iter=None, tol=0.001, class_weight=None, solver='auto', random_state=None) [source] Classifier using Ridge regression. This classifier first converts the target values into {-1, 1} and then treats the proble...
doc_11227
Apply a function to 1-D slices along the given axis. Execute func1d(a, *args, **kwargs) where func1d operates on 1-D arrays and a is a 1-D slice of arr along axis. This is equivalent to (but faster than) the following use of ndindex and s_, which sets each of ii, jj, and kk to a tuple of indices: Ni, Nk = a.shape[:ax...
doc_11228
Generate a stereo fragment from a mono fragment. Each pair of samples in the stereo fragment are computed from the mono sample, whereby left channel samples are multiplied by lfactor and right channel samples by rfactor.
doc_11229
Raised on dbm.ndbm-specific errors, such as I/O errors. KeyError is raised for general mapping errors like specifying an incorrect key.
doc_11230
Identify the client using a plaintext password. The password will be quoted.
doc_11231
Sparse inverse covariance w/ cross-validated choice of the l1 penalty. See glossary entry for cross-validation estimator. Read more in the User Guide. Changed in version v0.20: GraphLassoCV has been renamed to GraphicalLassoCV Parameters alphasint or array-like of shape (n_alphas,), dtype=float, default=4 If ...
doc_11232
See Migration guide for more details. tf.compat.v1.io.write_graph, tf.compat.v1.train.write_graph tf.io.write_graph( graph_or_graph_def, logdir, name, as_text=True ) The graph is written as a text proto unless as_text is False. v = tf.Variable(0, name='my_variable') sess = tf.compat.v1.Session() tf.io.write_grap...
doc_11233
Set the edgecolor(s) of the LineCollection. Parameters ccolor or list of colors Single color (all lines have same color), or a sequence of rgba tuples; if it is a sequence the lines will cycle through the sequence.
doc_11234
Create a 3D stem plot. A stem plot draws lines perpendicular to a baseline, and places markers at the heads. By default, the baseline is defined by x and y, and stems are drawn vertically from bottom to z. Parameters x, y, zarray-like The positions of the heads of the stems. The stems are drawn along the orient...
doc_11235
See Migration guide for more details. tf.compat.v1.raw_ops.TridiagonalSolve tf.raw_ops.TridiagonalSolve( diagonals, rhs, partial_pivoting=True, name=None ) Solves tridiagonal systems of equations. Supports batch dimensions and multiple right-hand sides per each left-hand side. On CPU, solution is computed via Ga...
doc_11236
Return a string containing a help message, including the program usage and information about the arguments registered with the ArgumentParser.
doc_11237
Construct a RcParams instance from the default Matplotlib rc file.
doc_11238
Instances of this class have __call__() methods identical in signature to compile_command(); the difference is that if the instance compiles program text containing a __future__ statement, the instance ‘remembers’ and compiles all subsequent program texts with the statement in force.
doc_11239
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_11240
Apply a CSS-styling function to the index or column headers, level-wise. Updates the HTML representation with the result. New in version 1.4.0. Parameters func:function func should take a Series and return a string array of the same length. axis:{0, 1, “index”, “columns”} The headers over which to apply t...
doc_11241
Read all the data from the text-mode file-like object fp, parse the resulting text, and return the root message object. fp must support both the readline() and the read() methods on file-like objects. Other than the text mode requirement, this method operates like BytesParser.parse().
doc_11242
Set this transformation from the frozen copy of another Affine2DBase object.
doc_11243
Parameters master – some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas with scrollbars added Used by class Screen, which thus automatically provides a ScrolledCanvas as playground for the turtles.
doc_11244
Embed the TTF font from the named file into the document.
doc_11245
Estimate a covariance matrix, given data and weights. Covariance indicates the level to which two variables vary together. If we examine N-dimensional samples, \(X = [x_1, x_2, ... x_N]^T\), then the covariance matrix element \(C_{ij}\) is the covariance of \(x_i\) and \(x_j\). The element \(C_{ii}\) is the variance ...
doc_11246
Return the output speed of the terminal in bits per second. On software terminal emulators it will have a fixed high value. Included for historical reasons; in former times, it was used to write output loops for time delays and occasionally to change interfaces depending on the line speed.
doc_11247
Exception raised when attempting to use an invalid index key. New in version 1.1.0.
doc_11248
Read and return up to size bytes. If the argument is omitted, None, or negative, data is read and returned until EOF is reached. An empty bytes object is returned if the stream is already at EOF. If the argument is positive, and the underlying raw stream is not interactive, multiple raw reads may be issued to satisfy t...
doc_11249
See Migration guide for more details. tf.compat.v1.raw_ops.AssignSubVariableOp tf.raw_ops.AssignSubVariableOp( resource, value, name=None ) Any ReadVariableOp with a control dependency on this op is guaranteed to see the decremented value or a subsequent newer one. Args resource A Tensor of type resourc...
doc_11250
Set the (group) id for the artist. Parameters gidstr
doc_11251
Executes a function after this request. This is useful to modify response objects. The function is passed the response object and has to return the same or a new one. Example: @app.route('/') def index(): @after_this_request def add_header(response): response.headers['X-Foo'] = 'Parachute' retur...
doc_11252
See Migration guide for more details. tf.compat.v1.raw_ops.GuaranteeConst tf.raw_ops.GuaranteeConst( input, name=None ) The runtime is then free to make optimizations based on this. Only accepts value typed tensors as inputs and rejects resource variable handles as input. Returns the input tensor without modific...
doc_11253
skimage.viewer.viewers.CollectionViewer(…) Viewer for displaying image collections. skimage.viewer.viewers.ImageViewer(image[, …]) Viewer for displaying images. skimage.viewer.viewers.core ImageViewer class for viewing and interacting with images. CollectionViewer class skimage.viewer.viewers.CollectionViewer(i...
doc_11254
Applies a 3D transposed convolution operator over an input image composed of several input planes, sometimes also called “deconvolution” This operator supports TensorFloat32. See ConvTranspose3d for details and output shape. Note In some circumstances when given tensors on a CUDA device and using CuDNN, this operator ...
doc_11255
Return whether tight_layout is called when drawing.
doc_11256
tf.nn.avg_pool2d( input, ksize, strides, padding, data_format='NHWC', name=None ) Each entry in output is the mean of the corresponding size ksize window in value. Args input A 4-D Tensor of shape [batch, height, width, channels] and type float32, float64, qint8, quint8, or qint32. ksize An int or l...
doc_11257
Requests post-handshake authentication (PHA) from a TLS 1.3 client. PHA can only be initiated for a TLS 1.3 connection from a server-side socket, after the initial TLS handshake and with PHA enabled on both sides, see SSLContext.post_handshake_auth. The method does not perform a cert exchange immediately. The server-si...
doc_11258
Return the path of the arrow in the data coordinates.
doc_11259
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_11260
Determines the reflection state for the specified key. key is an already open key, or one of the predefined HKEY_* constants. Returns True if reflection is disabled. Will generally raise NotImplementedError if executed on a 32-bit operating system. Raises an auditing event winreg.QueryReflectionKey with argument key.
doc_11261
List of the names of the available styles. This is meant to be read-only. Use reload_library to update.
doc_11262
Construct a PrettyPrinter instance. This constructor understands several keyword parameters. An output stream may be set using the stream keyword; the only method used on the stream object is the file protocol’s write() method. If not specified, the PrettyPrinter adopts sys.stdout. The amount of indentation added for e...
doc_11263
Holds the socket object connecting to the client.
doc_11264
Given the location and size of the box, return the path of the box around it. Parameters x0, y0, width, heightfloat Location and size of the box. mutation_sizefloat A reference scale for the mutation. Returns Path
doc_11265
Return a random int in the range [0, n).
doc_11266
tf.tan Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.tan, tf.compat.v1.tan tf.math.tan( x, name=None ) Given an input tensor, this function computes tangent of every element in the tensor. Input range is (-inf, inf) and output range is (-inf, inf). If input lies outside the...
doc_11267
Set the hatching pattern hatch can be one of: / - diagonal hatching \ - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large circle . - dots * - stars Letters can be combined, in which case all the specified hatchings are done. If same letter repea...
doc_11268
Allows enabling or disabling coroutine origin tracking. When enabled, the cr_origin attribute on coroutine objects will contain a tuple of (filename, line number, function name) tuples describing the traceback where the coroutine object was created, with the most recent call first. When disabled, cr_origin will be None...
doc_11269
See torch.sqrt()
doc_11270
Inserts a pane at the specified position. pos is either the string “end”, an integer index, or the name of a managed child. If child is already managed by the notebook, moves it to the specified position. See Tab Options for the list of available options.
doc_11271
Returns the current GPU memory occupied by tensors in bytes for a given device. Parameters device (torch.device or int, optional) – selected device. Returns statistic for the current device, given by current_device(), if device is None (default). Note This is likely less than the amount shown in nvidia-smi since...
doc_11272
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_11273
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event.
doc_11274
Returns 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 sha...
doc_11275
Bases: mpl_toolkits.axes_grid1.axes_size._Base Scaled size whose relative part corresponds to the data width of the axes multiplied by the aspect. get_size(renderer)[source] Examples using mpl_toolkits.axes_grid1.axes_size.AxesX HBoxDivider demo Simple Axes Divider 3
doc_11276
Example: >>> from django.contrib.gis.geos import WKTReader >>> wkt_r = WKTReader() >>> wkt_r.read('POINT(1 1)') <Point object at 0x103a88b50>
doc_11277
The nanoseconds of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="ns") ... ) >>> datetime_series 0 2000-01-01 00:00:00.000000000 1 2000-01-01 00:00:00.000000001 2 2000-01-01 00:00:00.000000002 dtype: datetime64[ns] >>> datetime_series.dt.nanosecond ...
doc_11278
See Migration guide for more details. tf.compat.v1.data.experimental.cardinality tf.data.experimental.cardinality( dataset ) The operation returns the cardinality of dataset. The operation may return tf.data.experimental.INFINITE_CARDINALITY if dataset contains an infinite number of elements or tf.data.experimen...
doc_11279
This class represents a subpart of a MIME message. It is identical to EmailMessage, except that no MIME-Version headers are added when set_content() is called, since sub-parts do not need their own MIME-Version headers.
doc_11280
Bind function func to event s. Parameters sstr One of the following events ids: 'button_press_event' 'button_release_event' 'draw_event' 'key_press_event' 'key_release_event' 'motion_notify_event' 'pick_event' 'resize_event' 'scroll_event' 'figure_enter_event', 'figure_leave_event', 'axes_enter_event', 'axes_l...
doc_11281
Fit linear model. Parameters Xndarray of shape (n_samples, n_features) Training data. yndarray of shape (n_samples,) Target values. Returns selfreturns an instance of self.
doc_11282
rotates a vector around the x-axis by the angle in degrees. rotate_x(angle) -> Vector3 Returns a vector which has the same length as self but is rotated counterclockwise around the x-axis by the given angle in degrees.
doc_11283
The psycopg2 range type to use.
doc_11284
Test whether the artist contains the mouse event. Parameters mouseeventmatplotlib.backend_bases.MouseEvent Returns containsbool Whether any values are within the radius. detailsdict An artist-specific dictionary of details of the event context, such as which points are contained in the pick radius. Se...
doc_11285
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_11286
Draw contour lines on an unstructured triangular grid. The triangulation can be specified in one of two ways; either tricontour(triangulation, ...) where triangulation is a Triangulation object, or tricontour(x, y, ...) tricontour(x, y, triangles, ...) tricontour(x, y, triangles=triangles, ...) tricontour(x, y, mask...
doc_11287
The comment associated with the ZIP file as a bytes object. If assigning a comment to a ZipFile instance created with mode 'w', 'x' or 'a', it should be no longer than 65535 bytes. Comments longer than this will be truncated.
doc_11288
Get a response object. If one was passed to the exception it’s returned directly. Parameters environ (Optional[WSGIEnvironment]) – the optional environ for the request. This can be used to modify the response depending on how the request looked like. scope (Optional[dict]) – Returns a Response object or a subc...
doc_11289
Plot the phase spectrum. Compute the phase spectrum (unwrapped angle spectrum) of x. Data is padded to a length of pad_to and the windowing function window is applied to the signal. Parameters x1-D array or sequence Array or sequence containing the data Fsfloat, default: 2 The sampling frequency (samples pe...
doc_11290
Time of last access.
doc_11291
Bases: matplotlib.ticker.MaxNLocator Parameters nbinsint or 'auto', default: 10 Maximum number of intervals; one less than max number of ticks. If the string 'auto', the number of bins will be automatically determined based on the length of the axis. stepsarray-like, optional Sequence of nice numbers starti...
doc_11292
Get tree status. Returns tree_stats: tuple of int (number of trims, number of leaves, number of splits)
doc_11293
Construct an IntervalArray from an array-like of tuples. Parameters data:array-like (1-dimensional) Array of tuples. closed:{‘left’, ‘right’, ‘both’, ‘neither’}, default ‘right’ Whether the intervals are closed on the left-side, right-side, both or neither. copy:bool, default False By-default copy the d...
doc_11294
True if this transform has a corresponding inverse transform.
doc_11295
boolean that is True if the application will be executed only once in a process lifetime. This is the case for CGI for example, but it’s not guaranteed that the execution only happens one time.
doc_11296
Returns the current maximum field size allowed by the parser. If new_limit is given, this becomes the new limit.
doc_11297
Retrieve current values for configuration set by set_config Returns configdict Keys are parameter names that can be passed to set_config. See also config_context Context manager for global scikit-learn configuration. set_config Set global scikit-learn configuration.
doc_11298
Return the Transform applied to the children.
doc_11299
See Migration guide for more details. tf.compat.v1.distribute.experimental_set_strategy tf.distribute.experimental_set_strategy( strategy ) tf.distribute.experimental_set_strategy(strategy1) f() tf.distribute.experimental_set_strategy(strategy2) g() tf.distribute.experimental_set_strategy(None) h() is equivalen...