_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_12300
Return a short string version of the tick value. Defaults to the position-independent long value.
doc_12301
By default (when DEBUG is True), the template system reads and compiles your templates every time they’re rendered. While the Django template system is quite fast, the overhead from reading and compiling templates can add up. You configure the cached template loader with a list of other loaders that it should wrap. The...
doc_12302
New in Django 3.2. Property that returns a pathlib.Path representing the absolute filesystem path to a template for rendering the HTML representation of the exception. Defaults to the Django provided template.
doc_12303
Set the path effects. Parameters path_effectsAbstractPathEffect
doc_12304
Return the file descriptor number of the control fd.
doc_12305
Return whether the string s contains math expressions. This is done by checking whether s contains an even number of non-escaped dollar signs.
doc_12306
Return a pretty-printed version of the document. indent specifies the indentation string and defaults to a tabulator; newl specifies the string emitted at the end of each line and defaults to \n. The encoding argument behaves like the corresponding argument of toxml(). The standalone argument behaves exactly as in writ...
doc_12307
The last colorbar associated with this ScalarMappable. May be None.
doc_12308
Unsharp masking filter. The sharp details are identified as the difference between the original image and its blurred version. These details are then scaled, and added back to the original image. Parameters image[P, …, ]M[, N][, C] ndarray Input image. radiusscalar or sequence of scalars, optional If a scal...
doc_12309
Handle a notation declaration event.
doc_12310
The same as fold() if cte_type is 7bit, except that the returned value is bytes. If cte_type is 8bit, non-ASCII binary data is converted back into bytes. Headers with binary data are not refolded, regardless of the refold_header setting, since there is no way to know whether the binary data consists of single byte char...
doc_12311
Returns the mean of the distribution.
doc_12312
The affine transformation matrix used to georeference the source, as a tuple of six coefficients which map pixel/line coordinates into georeferenced space using the following relationship: Xgeo = GT(0) + Xpixel*GT(1) + Yline*GT(2) Ygeo = GT(3) + Xpixel*GT(4) + Yline*GT(5) The same values can be retrieved by accessing ...
doc_12313
Current byte index in the parser input.
doc_12314
For common and simple use cases, no other functionality is required. There are, however, some dataclass features that require additional per-field information. To satisfy this need for additional information, you can replace the default field value with a call to the provided field() function. For example: @dataclass c...
doc_12315
Return whether units are set on any axis.
doc_12316
Elastic Net model with iterative fitting along a regularization path. See glossary entry for cross-validation estimator. Read more in the User Guide. Parameters l1_ratiofloat or list of float, default=0.5 float between 0 and 1 passed to ElasticNet (scaling between l1 and l2 penalties). For l1_ratio = 0 the pena...
doc_12317
Return time object with same hour, minute, second, microsecond, fold, and tzinfo attributes. See also method time(). Changed in version 3.6: The fold value is copied to the returned time object.
doc_12318
Close the gdbm database.
doc_12319
Mean squared error regression loss. Read more in the User Guide. Parameters y_truearray-like of shape (n_samples,) or (n_samples, n_outputs) Ground truth (correct) target values. y_predarray-like of shape (n_samples,) or (n_samples, n_outputs) Estimated target values. sample_weightarray-like of shape (n_s...
doc_12320
Call the system initgroups() to initialize the group access list with all of the groups of which the specified username is a member, plus the specified group id. Availability: Unix. New in version 3.2.
doc_12321
Observer module for computing the quantization parameters based on the running min and max values. This observer uses the tensor min/max statistics to compute the quantization parameters. The module records the running minimum and maximum of incoming tensors, and uses this statistic to compute the quantization parame...
doc_12322
socket.SOCK_DGRAM socket.SOCK_RAW socket.SOCK_RDM socket.SOCK_SEQPACKET These constants represent the socket types, used for the second argument to socket(). More constants may be available depending on the system. (Only SOCK_STREAM and SOCK_DGRAM appear to be generally useful.)
doc_12323
Make a plot with log scaling on the x axis. Call signatures: semilogx([x], y, [fmt], data=None, **kwargs) semilogx([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs) This is just a thin wrapper around plot which additionally changes the x-axis to log scaling. All of the concepts and parameters of plot can be used here ...
doc_12324
The mathematical constant π = 3.141592…, to available precision.
doc_12325
Predict x- and y-coordinates using the estimated model. Parameters tarray Angles in circle in radians. Angles start to count from positive x-axis to positive y-axis in a right-handed system. params(3, ) array, optional Optional custom parameter set. Returns xy(…, 2) array Predicted x- and y-coordina...
doc_12326
An iterable Dataset. All datasets that represent an iterable of data samples should subclass it. Such form of datasets is particularly useful when data come from a stream. All subclasses should overwrite __iter__(), which would return an iterator of samples in this dataset. When a subclass is used with DataLoader, ea...
doc_12327
Backward fill the new missing values in the resampled data. In statistics, imputation is the process of replacing missing data with substituted values [1]. When resampling data, missing values may appear (e.g., when the resampling frequency is higher than the original frequency). The backward fill will replace NaN va...
doc_12328
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_12329
class sklearn.discriminant_analysis.LinearDiscriminantAnalysis(solver='svd', shrinkage=None, priors=None, n_components=None, store_covariance=False, tol=0.0001, covariance_estimator=None) [source] Linear Discriminant Analysis A classifier with a linear decision boundary, generated by fitting class conditional densiti...
doc_12330
The flask object implements a WSGI application and acts as the central object. It is passed the name of the module or package of the application. Once it is created it will act as a central registry for the view functions, the URL rules, template configuration and much more. The name of the package is used to resolve r...
doc_12331
Raises an AssertionError if two objects are not equal. Given two objects (scalars, lists, tuples, dictionaries or numpy arrays), check that all elements of these objects are equal. An exception is raised at the first conflicting values. When one of actual and desired is a scalar and the other is array_like, the funct...
doc_12332
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters bbool
doc_12333
Returns the cross product of vectors in dimension dim of input and other. input and other must have the same size, and the size of their dim dimension should be 3. If dim is not given, it defaults to the first dimension found with the size 3. Note that this might be unexpected. Parameters input (Tensor) – the input...
doc_12334
Returns the indices that would sort this array. Refer to numpy.argsort for full documentation. See also numpy.argsort equivalent function
doc_12335
Return a Path for the unit circle arc from angles theta1 to theta2 (in degrees). theta2 is unwrapped to produce the shortest arc within 360 degrees. That is, if theta2 > theta1 + 360, the arc will be from theta1 to theta2 - 360 and not a full circle plus some extra overlap. If n is provided, it is the number of splin...
doc_12336
Override this in subclasses to use a custom SMTPChannel for managing SMTP clients.
doc_12337
For image backends - is not required. For GUI backends - show() is usually the last line of a pyplot script and tells the backend that it is time to draw. In interactive mode, this should do nothing.
doc_12338
Parameters impulse_responsecallable f(r, c, **filter_params) Function that yields the impulse response. r and c are 1-dimensional vectors that represent row and column positions, in other words coordinates are (r[0],c[0]),(r[0],c[1]) etc. **filter_params are passed through. In other words, impulse_response woul...
doc_12339
Perform a diameter closing of the image. Diameter closing removes all dark structures of an image with maximal extension smaller than diameter_threshold. The maximal extension is defined as the maximal extension of the bounding box. The operator is also called Bounding Box Closing. In practice, the result is similar ...
doc_12340
Return the axis offsetText as a Text instance.
doc_12341
See Migration guide for more details. tf.compat.v1.raw_ops.TPUCompilationResult tf.raw_ops.TPUCompilationResult( name=None ) This operation returns the result of a TPU compilation as a serialized CompilationResultProto, which holds a status and an error message if an error occurred during compilation. Args ...
doc_12342
Return the yaxis' scale (as a str).
doc_12343
The value of the stop parameter
doc_12344
Detect non-missing values for an array-like object. This function takes a scalar or array-like object and indicates whether values are valid (not missing, which is NaN in numeric arrays, None or NaN in object arrays, NaT in datetimelike). Parameters obj:array-like or object value Object to check for not null or...
doc_12345
Read the pickled representation of an object from the open file object given in the constructor, and return the reconstituted object hierarchy specified therein. Bytes past the pickled representation of the object are ignored.
doc_12346
Update solid patches, lines, etc. This is meant to be called when the norm of the image or contour plot to which this colorbar belongs changes. If the norm on the mappable is different than before, this resets the locator and formatter for the axis, so if these have been customized, they will need to be customized ag...
doc_12347
Reorder categories as specified in new_categories. new_categories need to include all old categories and no new category items. Parameters new_categories:Index-like The categories in new order. ordered:bool, optional Whether or not the categorical is treated as a ordered categorical. If not given, do not ch...
doc_12348
Return True if the node has any child nodes.
doc_12349
Should return True if displaying the module on the admin index page and accessing the module’s index page is permitted, False otherwise. Uses User.has_module_perms() by default. Overriding it does not restrict access to the view, add, change, or delete views, has_view_permission(), has_add_permission(), has_change_perm...
doc_12350
Return the day of the year. This attribute returns the day of the year on which the particular date occurs. The return value ranges between 1 to 365 for regular years and 1 to 366 for leap years. Returns int The day of year. See also Period.day Return the day of the month. Period.day_of_week Return the d...
doc_12351
The CSS class for the table head for the whole year (used by formatyear()). The default value is "year". New in version 3.7.
doc_12352
Execute the code at the named filesystem location and return the resulting module globals dictionary. As with a script name supplied to the CPython command line, the supplied path may refer to a Python source file, a compiled bytecode file or a valid sys.path entry containing a __main__ module (e.g. a zipfile containin...
doc_12353
Compile the file with path fullname. Return a true value if the file compiled successfully, and a false value otherwise. If ddir is given, it is prepended to the path to the file being compiled for use in compilation time tracebacks, and is also compiled in to the byte-code file, where it will be used in tracebacks and...
doc_12354
tf.size( input, out_type=tf.dtypes.int32, name=None ) See also tf.shape. Returns a 0-D Tensor representing the number of elements in input of type out_type. Defaults to tf.int32. For example: t = tf.constant([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]) tf.size(t) <tf.Tensor: shape=(), dtype=int32, numpy=12> ...
doc_12355
Stack 1-D arrays as columns into a 2-D array. Take a sequence of 1-D arrays and stack them as columns to make a single 2-D array. 2-D arrays are stacked as-is, just like with hstack. 1-D arrays are turned into 2-D columns first. Parameters tupsequence of 1-D or 2-D arrays. Arrays to stack. All of them must have...
doc_12356
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_12357
Applies a 1D average pooling over an input signal composed of several input planes. In the simplest case, the output value of the layer with input size (N,C,L)(N, C, L) , output (N,C,Lout)(N, C, L_{out}) and kernel_size kk can be precisely described as: out(Ni,Cj,l)=1k∑m=0k−1input(Ni,Cj,stride×l+m)\text{out}(N_i, ...
doc_12358
tf.image.resize_with_pad( image, target_height, target_width, method=ResizeMethod.BILINEAR, antialias=False ) Resizes an image to a target width and height by keeping the aspect ratio the same without distortion. If the target dimensions don't match the image dimensions, the image is resized and then padded wi...
doc_12359
The main configuration parser. When defaults is given, it is initialized into the dictionary of intrinsic defaults. When dict_type is given, it will be used to create the dictionary objects for the list of sections, for the options within a section, and for the default values. When delimiters is given, it is used as th...
doc_12360
Return disk usage statistics about the given path as a named tuple with the attributes total, used and free, which are the amount of total, used and free space, in bytes. path may be a file or a directory. New in version 3.3. Changed in version 3.8: On Windows, path can now be a file or directory. Availability: Uni...
doc_12361
Return the zaxis' grid lines as a list of Line2Ds.
doc_12362
nd_grid instance which returns an open multi-dimensional “meshgrid”. An instance of numpy.lib.index_tricks.nd_grid which returns an open (i.e. not fleshed out) mesh-grid when indexed, so that only one dimension of each returned array is greater than 1. The dimension and number of the output arrays are equal to the nu...
doc_12363
See Migration guide for more details. tf.compat.v1.raw_ops.FakeParam tf.raw_ops.FakeParam( dtype, shape, name=None ) valid output when run, so must either be removed (e.g. replaced with a function input) or guaranteed not to be used (e.g. if mirroring an intermediate output needed for the gradient computation of...
doc_12364
A behavioral change was requested after parsing started that can only be changed before parsing has started. This is (currently) only raised by UseForeignDTD().
doc_12365
Copies parameters and buffers from state_dict into this module and its descendants. If strict is True, then the keys of state_dict must exactly match the keys returned by this module’s state_dict() function. Parameters state_dict (dict) – a dict containing parameters and persistent buffers. strict (bool, optional)...
doc_12366
Return the decision path in the tree. New in version 0.18. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix. check_inputbool, default=True Allow to bypa...
doc_12367
See torch.round()
doc_12368
class sklearn.model_selection.ParameterSampler(param_distributions, n_iter, *, random_state=None) [source] Generator on parameters sampled from given distributions. Non-deterministic iterable over random candidate combinations for hyper- parameter search. If all parameters are presented as a list, sampling without re...
doc_12369
Expansion field data. The PKZIP Application Note contains some comments on the internal structure of the data contained in this bytes object.
doc_12370
Return the bbox that the box is anchored to.
doc_12371
Insert x in a in sorted order. This is equivalent to a.insert(bisect.bisect_left(a, x, lo, hi), x) assuming that a is already sorted. Keep in mind that the O(log n) search is dominated by the slow O(n) insertion step.
doc_12372
Bases: matplotlib.collections.PathCollection A collection of 3D paths. Create a collection of flat 3D paths with its normal vector pointed in zdir direction, and located at zs on the zdir axis. 'zs' can be a scalar or an array-like of the same length as the number of paths in the collection. Constructor arguments are...
doc_12373
operator.__pow__(a, b) Return a ** b, for a and b numbers.
doc_12374
Prefix labels with string prefix. For Series, the row labels are prefixed. For DataFrame, the column labels are prefixed. Parameters prefix:str The string to add before each label. Returns Series or DataFrame New Series or DataFrame with updated labels. See also Series.add_suffix Suffix row labels ...
doc_12375
Return boolean if values in the object are unique. Returns bool
doc_12376
Set how the Axes adjusts to achieve the required aspect ratio. Parameters adjustable{'box', 'datalim'} If 'box', change the physical dimensions of the Axes. If 'datalim', change the x or y data limits. sharebool, default: False If True, apply the settings to all shared Axes. See also matplotlib.axes.A...
doc_12377
Return a new Timestamp representing UTC day and time. Examples >>> pd.Timestamp.utcnow() Timestamp('2020-11-16 22:50:18.092888+0000', tz='UTC')
doc_12378
Returns the top panel in the panel stack.
doc_12379
Creates a subkey under the specified key and stores registration information from a specified file into that subkey. key is a handle returned by ConnectRegistry() or one of the constants HKEY_USERS or HKEY_LOCAL_MACHINE. sub_key is a string that identifies the subkey to load. file_name is the name of the file to load r...
doc_12380
Alias for set_antialiased.
doc_12381
Set the scheduling policy for the process with PID pid. A pid of 0 means the calling process. policy is one of the scheduling policy constants above. param is a sched_param instance.
doc_12382
tf.compat.v1.expand_dims( input, axis=None, name=None, dim=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (dim). They will be removed in a future version. Instructions for updating: Use the axis argument instead Given a tensor input, this operation inserts a dimension of length 1 at the dimension index axis of inp...
doc_12383
Pops the request context and unbinds it by doing that. This will also trigger the execution of functions registered by the teardown_request() decorator. Changelog Changed in version 0.9: Added the exc argument. Parameters exc (Optional[BaseException]) – Return type None
doc_12384
Exception raised on various occasions; argument is a string describing what is wrong.
doc_12385
Called once after all tests are executed. New in version 3.1.
doc_12386
Bootstraps pip into the current or designated environment. root specifies an alternative root directory to install relative to. If root is None, then installation uses the default install location for the current environment. upgrade indicates whether or not to upgrade an existing installation of an earlier version of ...
doc_12387
Change the current working directory to the directory represented by the file descriptor fd. The descriptor must refer to an opened directory, not an open file. As of Python 3.3, this is equivalent to os.chdir(fd). Raises an auditing event os.chdir with argument path. Availability: Unix.
doc_12388
Hamming window function. w[n]=α−βcos⁡(2πnN−1),w[n] = \alpha - \beta\ \cos \left( \frac{2 \pi n}{N - 1} \right), where NN is the full window size. The input window_length is a positive integer controlling the returned window size. periodic flag determines whether the returned window trims off the last duplicate valu...
doc_12389
See Migration guide for more details. tf.compat.v1.raw_ops.IteratorFromStringHandleV2 tf.raw_ops.IteratorFromStringHandleV2( string_handle, output_types=[], output_shapes=[], name=None ) Args string_handle A Tensor of type string. output_types An optional list of tf.DTypes. Defaults to []. out...
doc_12390
Represent the C bool datatype (more accurately, _Bool from C99). Its value can be True or False, and the constructor accepts any object that has a truth value.
doc_12391
Use axis view limits to control which ticks are labeled. The locs parameter is ignored in the present algorithm.
doc_12392
Calculate the rolling standard deviation. Parameters ddof:int, default 1 Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements. *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs the...
doc_12393
This class is an abstract subclass of asyncore.dispatcher. To make practical use of the code you must subclass async_chat, providing meaningful collect_incoming_data() and found_terminator() methods. The asyncore.dispatcher methods can be used, although not all make sense in a message/response context. Like asyncore.di...
doc_12394
sklearn.tree.export_text(decision_tree, *, feature_names=None, max_depth=10, spacing=3, decimals=2, show_weights=False) [source] Build a text report showing the rules of a decision tree. Note that backwards compatibility may not be supported. Parameters decision_treeobject The decision tree estimator to be expo...
doc_12395
Peak to peak (maximum - minimum) value along a given axis. Refer to numpy.ptp for full documentation. See also numpy.ptp equivalent function
doc_12396
backward(self: torch._C._distributed_rpc.PyRRef, dist_autograd_ctx_id: int = -1, retain_graph: bool = False) → None Runs the backward pass using the RRef as the root of the backward pass. If dist_autograd_ctx_id is provided, we perform a distributed backward pass using the provided ctx_id starting from the owner ...
doc_12397
Parse a query string and return it as a MultiDict. Parameters s (AnyStr) – The query string to parse. charset (str) – Decode bytes to string with this charset. If not given, bytes are returned as-is. include_empty (bool) – Include keys with empty values in the dict. errors (str) – Error handling behavior when de...
doc_12398
Get the current Axes. If there is currently no Axes on this Figure, a new one is created using Figure.add_subplot. (To test whether there is currently an Axes on a Figure, check whether figure.axes is empty. To test whether there is currently a Figure on the pyplot figure stack, check whether pyplot.get_fignums() is ...
doc_12399
Finds the first subelement matching match. match may be a tag name or a path. Returns an element instance or None. namespaces is an optional mapping from namespace prefix to full name. Pass '' as prefix to move all unprefixed tag names in the expression into the given namespace.