_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_30200
input_type: 'text' template_name: 'django/forms/widgets/datetime.html' Renders as: <input type="text" ...> Takes same arguments as TextInput, with one more optional argument: format The format in which this field’s initial value will be displayed. If no format argument is provided, the default format is th...
doc_30201
Returns the median of the values in input, ignoring NaN values. This function is identical to torch.median() when there are no NaN values in input. When input has one or more NaN values, torch.median() will always return NaN, while this function will return the median of the non-NaN elements in input. If all the elemen...
doc_30202
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_30203
Subtract one Laguerre series from another. Returns the difference of two Laguerre series c1 - c2. The sequences of coefficients are from lowest order term to highest, i.e., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters c1, c2array_like 1-D arrays of Laguerre series coefficients ordered from low ...
doc_30204
Run score function on (X, y) and get the appropriate features. Parameters Xarray-like of shape (n_samples, n_features) The training input samples. yarray-like of shape (n_samples,) The target values (class labels in classification, real numbers in regression). Returns selfobject
doc_30205
This exception is derived from RuntimeError. In user defined base classes, abstract methods should raise this exception when they require derived classes to override the method, or while the class is being developed to indicate that the real implementation still needs to be added. Note It should not be used to indicat...
doc_30206
Create a new element in the current theme, of the given etype which is expected to be either “image”, “from” or “vsapi”. The latter is only available in Tk 8.6a for Windows XP and Vista and is not described here. If “image” is used, args should contain the default image name followed by statespec/value pairs (this is t...
doc_30207
Specifies the UUID layout given in RFC 4122.
doc_30208
Set to the top level directory for the test package.
doc_30209
Test whether mouseevent occurred on the line. An event is deemed to have occurred "on" the line if it is less than self.pickradius (default: 5 points) away from it. Use get_pickradius or set_pickradius to get or set the pick radius. Parameters mouseeventmatplotlib.backend_bases.MouseEvent Returns containsbo...
doc_30210
Return a Maildir instance representing the folder whose name is folder. A NoSuchMailboxError exception is raised if the folder does not exist.
doc_30211
Return True if the object argument appears callable, False if not. If this returns True, it is still possible that a call fails, but if it is False, calling object will never succeed. Note that classes are callable (calling a class returns a new instance); instances are callable if their class has a __call__() method. ...
doc_30212
accessor for ‘no-cache’
doc_30213
Returns the client address. Changed in version 3.3: Previously, a name lookup was performed. To avoid name resolution delays, it now always returns the IP address.
doc_30214
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_30215
tf.compat.v1.lite.TFLiteConverter( graph_def, input_tensors, output_tensors, input_arrays_with_shape=None, output_arrays=None, experimental_debug_info_func=None ) This is used to convert from a TensorFlow GraphDef, SavedModel or tf.keras model into either a TFLite FlatBuffer or graph visualization. Example usa...
doc_30216
Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
doc_30217
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_30218
A data structure of functions to call to pass extra context values when rendering templates, in the format {scope: [functions]}. The scope key is the name of a blueprint the functions are active for, or None for all requests. To register a function, use the context_processor() decorator. This data structure is internal...
doc_30219
Return selected slices of this array along given axis. Refer to numpy.compress for full documentation. See also numpy.compress equivalent function
doc_30220
Return a list of URLs, one for each element of the collection. The list contains None for elements without a URL. See Hyperlinks for an example.
doc_30221
Return the marker edge width in points. See also set_markeredgewidth.
doc_30222
Return the label used for this artist in the legend.
doc_30223
Reset the axes stack.
doc_30224
Slice substrings from each element in the Series or Index. Parameters start:int, optional Start position for slice operation. stop:int, optional Stop position for slice operation. step:int, optional Step size for slice operation. Returns Series or Index of object Series or Index from sliced substr...
doc_30225
Mock objects limit the results of dir(some_mock) to useful results. For mocks with a spec this includes all the permitted attributes for the mock. See FILTER_DIR for what this filtering does, and how to switch it off.
doc_30226
mmap.MADV_RANDOM mmap.MADV_SEQUENTIAL mmap.MADV_WILLNEED mmap.MADV_DONTNEED mmap.MADV_REMOVE mmap.MADV_DONTFORK mmap.MADV_DOFORK mmap.MADV_HWPOISON mmap.MADV_MERGEABLE mmap.MADV_UNMERGEABLE mmap.MADV_SOFT_OFFLINE mmap.MADV_HUGEPAGE mmap.MADV_NOHUGEPAGE mmap.MADV_DONTDUMP mmap.MADV_DODUMP m...
doc_30227
tf.compat.v1.map_fn( fn, elems, dtype=None, parallel_iterations=None, back_prop=True, swap_memory=False, infer_shape=True, name=None, fn_output_signature=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (dtype). They will be removed in a future version. Instructions for updating: Use fn_output_signature instead ...
doc_30228
See Migration guide for more details. tf.compat.v1.strings.reduce_join tf.compat.v1.reduce_join( inputs, axis=None, keep_dims=None, separator='', name=None, reduction_indices=None, keepdims=None ) tf.strings.reduce_join([['abc','123'], ['def','456']]).numpy() b'abc123def456' tf.strin...
doc_30229
Computes the eigenvalues and eigenvectors of a real square matrix. Note Since eigenvalues and eigenvectors might be complex, backward pass is supported only if eigenvalues and eigenvectors are all real valued. When input is on CUDA, torch.eig() causes host-device synchronization. Parameters input (Tensor) – the s...
doc_30230
Return (a % i), that is pre-Python 2.6 string formatting (interpolation), element-wise for a pair of array_likes of str or unicode. Parameters aarray_like of str or unicode valuesarray_like of values These values will be element-wise interpolated into the string. Returns outndarray Output array of str...
doc_30231
Any value error related to the address.
doc_30232
Convert an integer number to an octal string prefixed with “0o”. The result is a valid Python expression. If x is not a Python int object, it has to define an __index__() method that returns an integer. For example: >>> oct(8) '0o10' >>> oct(-56) '-0o70' If you want to convert an integer number to octal string either ...
doc_30233
If prop is None, return a list of strings of all settable properties and their valid values. If prop is not None, it is a valid property name and that property will be returned as a string of property : valid values.
doc_30234
Building URLs works pretty much the other way round. Instead of match you call build and pass it the endpoint and a dict of arguments for the placeholders. The build function also accepts an argument called force_external which, if you set it to True will force external URLs. Per default external URLs (include the serv...
doc_30235
Bases: matplotlib.dviread.Dvi A virtual font (*.vf file) containing subroutines for dvi files. Parameters filenamestr or path-like Notes The virtual font format is a derivative of dvi: http://mirrors.ctan.org/info/knuth/virtual-fonts This class reuses some of the machinery of Dvi but replaces the _read loop a...
doc_30236
Test whether input is an instance of MaskedArray. This function returns True if x is an instance of MaskedArray and returns False otherwise. Any object is accepted as input. Parameters xobject Object to test. Returns resultbool True if x is a MaskedArray. See also isMA Alias to isMaskedArray. is...
doc_30237
Calculate the euclidean distances in the presence of missing values. Compute the euclidean distance between each pair of samples in X and Y, where Y=X is assumed if Y=None. When calculating the distance between a pair of samples, this formulation ignores feature coordinates with a missing value in either sample and s...
doc_30238
Chebyshev series whose graph is a straight line. Parameters off, sclscalars The specified line is given by off + scl*x. Returns yndarray This module’s representation of the Chebyshev series for off + scl*x. See also numpy.polynomial.polynomial.polyline numpy.polynomial.legendre.legline numpy.polyn...
doc_30239
When passed a quoted tag it will check if this tag is part of the set. If the tag is weak it is checked against weak and strong tags, otherwise strong only.
doc_30240
Alias for clamp_().
doc_30241
Display url using the browser handled by this controller. If new is 1, a new browser window is opened if possible. If new is 2, a new browser page (“tab”) is opened if possible.
doc_30242
A generic version of contextlib.AbstractContextManager. New in version 3.5.4. New in version 3.6.0. Deprecated since version 3.9: contextlib.AbstractContextManager now supports []. See PEP 585 and Generic Alias Type.
doc_30243
A dictionary or other mapping object used to store an object’s (writable) attributes.
doc_30244
Command that was used to spawn the child process.
doc_30245
From the AuthenticationMiddleware: An instance of AUTH_USER_MODEL representing the currently logged-in user. If the user isn’t currently logged in, user will be set to an instance of AnonymousUser. You can tell them apart with is_authenticated, like so: if request.user.is_authenticated: ... # Do something for logge...
doc_30246
asyncio.isfuture(obj) Return True if obj is either of: an instance of asyncio.Future, an instance of asyncio.Task, a Future-like object with a _asyncio_future_blocking attribute. New in version 3.5. asyncio.ensure_future(obj, *, loop=None) Return: obj argument as is, if obj is a Future, a Task, or a Futur...
doc_30247
Return a bytes object which is a printable representation of the character ch. Control characters are represented as a caret followed by the character, for example as b'^C'. Printing characters are left as they are.
doc_30248
With a context of {'first_name': 'John', 'last_name': 'Doe'}, this template renders to: My first name is John. My last name is Doe. Dictionary lookup, attribute lookup and list-index lookups are implemented with a dot notation: {{ my_dict.key }} {{ my_object.attribute }} {{ my_list.0 }} If a variable resolves to a c...
doc_30249
Return whether method object o is an alias for another method.
doc_30250
See Migration guide for more details. tf.compat.v1.raw_ops.Merge tf.raw_ops.Merge( inputs, name=None ) Merge waits for at least one of the tensors in inputs to become available. It is usually combined with Switch to implement branching. Merge forwards the first tensor to become available to output, and sets valu...
doc_30251
See Migration guide for more details. tf.compat.v1.raw_ops.StatsAggregatorHandleV2 tf.raw_ops.StatsAggregatorHandleV2( container='', shared_name='', name=None ) Args container An optional string. Defaults to "". shared_name An optional string. Defaults to "". name A name for the operation (o...
doc_30252
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_30253
Returns True if x is subnormal; otherwise returns False.
doc_30254
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_30255
See Migration guide for more details. tf.compat.v1.raw_ops.ParseTensor tf.raw_ops.ParseTensor( serialized, out_type, name=None ) Args serialized A Tensor of type string. A scalar string containing a serialized TensorProto proto. out_type A tf.DType. The type of the serialized tensor. The provided ...
doc_30256
Make a violin plot. Make a violin plot for each column of dataset or each vector in sequence dataset. Each filled area extends to represent the entire data range, with optional lines at the mean, the median, the minimum, the maximum, and user-specified quantiles. Parameters datasetArray or a sequence of vectors. ...
doc_30257
Is raised for non-fatal errors when using TarFile.extract(), but only if TarFile.errorlevel== 2.
doc_30258
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_30259
Return this Axis' tick lines as a list of Line2Ds. Examples using matplotlib.axis.Axis.get_ticklines Fig Axes Customize Simple Artist tutorial
doc_30260
Raised when trying to run an operation without the adequate access rights - for example filesystem permissions. Corresponds to errno EACCES and EPERM.
doc_30261
Enable keyboard traversal for a toplevel window containing this notebook. This will extend the bindings for the toplevel window containing the notebook as follows: Control-Tab: selects the tab following the currently selected one. Shift-Control-Tab: selects the tab preceding the currently selected one. Alt-K: where...
doc_30262
Return a list of all the message’s field values.
doc_30263
See torch.mv()
doc_30264
A subscript, such as l[1]. value is the subscripted object (usually sequence or mapping). slice is an index, slice or key. It can be a Tuple and contain a Slice. ctx is Load, Store or Del according to the action performed with the subscript. >>> print(ast.dump(ast.parse('l[1:2, 3]', mode='eval'), indent=4)) Expression(...
doc_30265
Number of elements in the array. Equal to np.prod(a.shape), i.e., the product of the array’s dimensions. Notes a.size returns a standard arbitrary precision Python integer. This may not be the case with other methods of obtaining the same value (like the suggested np.prod(a.shape), which returns an instance of np.int...
doc_30266
Return self//=value.
doc_30267
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
doc_30268
Bases: dateutil.rrule.rrulebase That's the base of the rrule operation. It accepts all the keywords defined in the RFC as its constructor parameters (except byday, which was renamed to byweekday) and more. The constructor prototype is: rrule(freq) Where freq must be one of YEARLY, MONTHLY, WEEKLY, DAILY, HOURLY, MIN...
doc_30269
Set the Figure instance the artist belongs to. Parameters figFigure
doc_30270
Return True if the string is a valid identifier according to the language definition, section Identifiers and keywords. Call keyword.iskeyword() to test whether string s is a reserved identifier, such as def and class. Example: >>> from keyword import iskeyword >>> 'hello'.isidentifier(), iskeyword('hello') True, Fals...
doc_30271
Returns the aggregation period for date_list. Returns date_list_period by default.
doc_30272
See Migration guide for more details. tf.compat.v1.raw_ops.MatrixSolveLs tf.raw_ops.MatrixSolveLs( matrix, rhs, l2_regularizer, fast=True, name=None ) matrix is a tensor of shape [..., M, N] whose inner-most 2 dimensions form real or complex matrices of size [M, N]. Rhs is a tensor of the same type as matrix and...
doc_30273
alias of werkzeug.routing.Rule
doc_30274
See Migration guide for more details. tf.compat.v1.conj, tf.compat.v1.math.conj tf.math.conj( x, name=None ) Given a tensor x of complex numbers, this operation returns a tensor of complex numbers that are the complex conjugate of each element in x. The complex numbers in x must be of the form \(a + bj\), where ...
doc_30275
Perform standardization by centering and scaling Parameters X{array-like, sparse matrix of shape (n_samples, n_features) The data used to scale along the features axis. copybool, default=None Copy the input X or not. Returns X_tr{ndarray, sparse matrix} of shape (n_samples, n_features) Transformed a...
doc_30276
Define the picking behavior of the artist. Parameters pickerNone or bool or float or callable This can be one of the following: None: Picking is disabled for this artist (default). A boolean: If True then picking will be enabled and the artist will fire a pick event if the mouse event is over the artist. A fl...
doc_30277
A return statement. >>> print(ast.dump(ast.parse('return 4'), indent=4)) Module( body=[ Return( value=Constant(value=4))], type_ignores=[])
doc_30278
Perform classification on samples in X. For a one-class model, +1 or -1 is returned. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples_test, n_samples_train) For kernel=”precomputed”, the expected shape of X is (n_samples_test, n_samples_train). Returns y_predndarray o...
doc_30279
Filename of the image. str: Filename of the image to use in a Toolbar. If None, the name is used as a label in the toolbar button.
doc_30280
In-place version of unsqueeze()
doc_30281
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyAdagrad tf.raw_ops.ResourceApplyAdagrad( var, accum, lr, grad, use_locking=False, update_slots=True, name=None ) accum += grad * grad var -= lr * grad * (1 / sqrt(accum)) Args var A Tensor of type resource. Should be from a Variable...
doc_30282
Return the scalar type of highest precision of the same kind as the input. Parameters tdtype or dtype specifier The input data type. This can be a dtype object or an object that is convertible to a dtype. Returns outdtype The highest precision data type of the same kind (dtype.kind) as t. See also ...
doc_30283
Set new codes on MultiIndex. Defaults to returning new index. Parameters codes:sequence or list of sequence New codes to apply. level:int, level name, or sequence of int/level names (default None) Level(s) to set (None for all levels). inplace:bool If True, mutates in place. Deprecated since version 1....
doc_30284
Compute standard deviation of groups, excluding missing values. For multiple groupings, the result index will be a MultiIndex. Parameters ddof:int, default 1 Degrees of freedom. engine:str, default None 'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT...
doc_30285
Touch all locations in ancestors of the window that have been changed in the window.
doc_30286
Parameters nx, nx1int Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (but excluding nx1-th column) is specified. ny, ny1int Same as nx and nx1, but for row positions. axes renderer
doc_30287
Return an array formed from the elements of a at the given indices. Refer to numpy.take for full documentation. See also numpy.take equivalent function
doc_30288
Read and return a list of lines from the stream. hint can be specified to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds hint. Note that it’s already possible to iterate on file objects using for line in file: ... without calling file.rea...
doc_30289
Get a serializable descriptor from the dtype. The .descr attribute of a dtype object cannot be round-tripped through the dtype() constructor. Simple types, like dtype(‘float32’), have a descr which looks like a record array with one field with ‘’ as a name. The dtype() constructor interprets this as a request to give...
doc_30290
Fills the 2D input Tensor as a sparse matrix, where the non-zero elements will be drawn from the normal distribution N(0,0.01)\mathcal{N}(0, 0.01) , as described in Deep learning via Hessian-free optimization - Martens, J. (2010). Parameters tensor – an n-dimensional torch.Tensor sparsity – The fraction of elem...
doc_30291
Run all scheduled events. This method will wait (using the delayfunc() function passed to the constructor) for the next event, then execute it and so on until there are no more scheduled events. If blocking is false executes the scheduled events due to expire soonest (if any) and then return the deadline of the next sc...
doc_30292
Converts a frequency into a MIDI note. Rounds to the closest midi note. frequency_to_midi(midi_note) -> midi_note example: frequency_to_midi(27.5) == 21 New in pygame 1.9.5.
doc_30293
Test whether the mouse event occurred within the image.
doc_30294
Return local mean of an image. Parameters image([P,] M, N) ndarray (uint8, uint16) Input image. selemndarray The neighborhood expressed as an ndarray of 1’s and 0’s. out([P,] M, N) array (same dtype as input) If None, a new array is allocated. maskndarray (integer or float), optional Mask array that...
doc_30295
returns a vector with the same direction but length 1. normalize() -> Vector2 Returns a new vector that has length equal to 1 and the same direction as self.
doc_30296
The transposed array. Same as self.transpose(). See also transpose Examples >>> x = np.array([[1.,2.],[3.,4.]]) >>> x array([[ 1., 2.], [ 3., 4.]]) >>> x.T array([[ 1., 3.], [ 2., 4.]]) >>> x = np.array([1.,2.,3.,4.]) >>> x array([ 1., 2., 3., 4.]) >>> x.T array([ 1., 2., 3., 4.])
doc_30297
This is a subclass derived from IMAP4 that connects to the stdin/stdout file descriptors created by passing command to subprocess.Popen().
doc_30298
Compute the linear kernel between X and Y. Read more in the User Guide. Parameters Xndarray of shape (n_samples_X, n_features) Yndarray of shape (n_samples_Y, n_features), default=None dense_outputbool, default=True Whether to return dense output even when the input is sparse. If False, the output is sparse...
doc_30299
Asserts that two URLs are the same, ignoring the order of query string parameters except for parameters with the same name. For example, /path/?x=1&y=2 is equal to /path/?y=2&x=1, but /path/?a=1&a=2 isn’t equal to /path/?a=2&a=1.