_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_12600
The full name of a template to use for the subject of the email with the reset password link. Defaults to registration/password_reset_subject.txt if not supplied.
doc_12601
A classmethod which can be used for registering a type or callable with the manager class. typeid is a “type identifier” which is used to identify a particular type of shared object. This must be a string. callable is a callable used for creating objects for this type identifier. If a manager instance will be connected...
doc_12602
Find iso-valued contours in a 2D array for a given level value. Uses the “marching squares” method to compute a the iso-valued contours of the input 2D array for a particular level value. Array values are linearly interpolated to provide better precision for the output contours. Parameters image2D ndarray of doub...
doc_12603
Convert the postscript to encapsulated postscript. The bbox of the eps file will be replaced with the given bbox argument. If None, original bbox will be used.
doc_12604
This class implements temporary breakpoints, ignore counts, disabling and (re-)enabling, and conditionals. Breakpoints are indexed by number through a list called bpbynumber and by (file, line) pairs through bplist. The former points to a single instance of class Breakpoint. The latter points to a list of such instance...
doc_12605
tf.saturate_cast Compat aliases for migration See Migration guide for more details. tf.compat.v1.dtypes.saturate_cast, tf.compat.v1.saturate_cast tf.dtypes.saturate_cast( value, dtype, name=None ) This function casts the input to dtype without applying any scaling. If there is a danger that values would over or ...
doc_12606
Return an ndarray of tuples of the form (left, right). Parameters na_tuple:bool, default True Returns NA as a tuple if True, (nan, nan), or just as the NA value itself if False, nan. Returns tuples: ndarray
doc_12607
Gauss-Legendre quadrature. Computes the sample points and weights for Gauss-Legendre quadrature. These sample points and weights will correctly integrate polynomials of degree \(2*deg - 1\) or less over the interval \([-1, 1]\) with the weight function \(f(x) = 1\). Parameters degint Number of sample points and...
doc_12608
Fetch truncated part of a message. Returned data is a tuple of message part envelope and data.
doc_12609
A constant value. The value attribute of the Constant literal contains the Python object it represents. The values represented can be simple types such as a number, string or None, but also immutable container types (tuples and frozensets) if all of their elements are constant. >>> print(ast.dump(ast.parse('123', mode=...
doc_12610
Bases: matplotlib.text.Text Unlike the ordinary text, the get_rotation returns an updated angle in the pixel coordinate assuming that the input rotation is an angle in data coordinate (or whatever transform set). Create a Text instance at x, y with string text. Valid keyword arguments are: Property Description ...
doc_12611
The URL to redirect to, as a string. Or None to raise a 410 (Gone) HTTP error.
doc_12612
Number of array dimensions. Examples >>> x = np.array([1, 2, 3]) >>> x.ndim 1 >>> y = np.zeros((2, 3, 4)) >>> y.ndim 3
doc_12613
Plot the power spectral density. The power spectral density \(P_{xx}\) by Welch's average periodogram method. The vector x is divided into NFFT length segments. Each segment is detrended by function detrend and windowed by function window. noverlap gives the length of the overlap between segments. The \(|\mathrm{fft}...
doc_12614
skimage.registration.optical_flow_ilk(…[, …]) Coarse to fine optical flow estimator. skimage.registration.optical_flow_tvl1(…) Coarse to fine optical flow estimator. skimage.registration.phase_cross_correlation(…) Efficient subpixel image translation registration by cross-correlation. optical_flow_ilk skimage.r...
doc_12615
Parse the given fontconfig pattern and return a dictionary of key/value pairs useful for initializing a font_manager.FontProperties object.
doc_12616
Installs the btree_gin extension.
doc_12617
Return True if the path is a mount point: a point in a file system where a different file system has been mounted. On POSIX, the function checks whether path’s parent, path/.., is on a different device than path, or whether path/.. and path point to the same i-node on the same device — this should detect mount points f...
doc_12618
Deprecated since version 3.2: Use read_file() instead. Changed in version 3.2: readfp() now iterates on fp instead of calling fp.readline(). For existing code calling readfp() with arguments which don’t support iteration, the following generator may be used as a wrapper around the file-like object: def readline_gen...
doc_12619
Exp-Sine-Squared kernel (aka periodic kernel). The ExpSineSquared kernel allows one to model functions which repeat themselves exactly. It is parameterized by a length scale parameter \(l>0\) and a periodicity parameter \(p>0\). Only the isotropic variant where \(l\) is a scalar is supported at the moment. The kernel...
doc_12620
turtle.fd(distance) Parameters distance – a number (integer or float) Move the turtle forward by the specified distance, in the direction the turtle is headed. >>> turtle.position() (0.00,0.00) >>> turtle.forward(25) >>> turtle.position() (25.00,0.00) >>> turtle.forward(-75) >>> turtle.position() (-50.00,0.00)
doc_12621
See Migration guide for more details. tf.compat.v1.strings.ngrams tf.strings.ngrams( data, ngram_width, separator=' ', pad_values=None, padding_width=None, preserve_short_sequences=False, name=None ) Creates a tensor of n-grams based on data. The n-grams are created by joining windows of width adjacent strin...
doc_12622
Return x divided by y.
doc_12623
Return len(a) element-wise. Parameters aarray_like of str or unicode Returns outndarray Output array of integers See also builtins.len
doc_12624
Returns a new tensor with the reciprocal of the elements of input Note Unlike NumPy’s reciprocal, torch.reciprocal supports integral inputs. Integral inputs to reciprocal are automatically promoted to the default scalar type. outi=1inputi\text{out}_{i} = \frac{1}{\text{input}_{i}} Parameters input (Tensor) – the...
doc_12625
The type of the objects returned by expr(), suite() and sequence2st().
doc_12626
Incrementally fit the model to data. Fit a separate model for each output variable. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Data. y{array-like, sparse matrix} of shape (n_samples, n_outputs) Multi-output targets. sample_weightarray-like of shape (n_samples,), default=None ...
doc_12627
Bases: matplotlib.backends._backend_pdf_ps.RendererPDFPSBase check_gc(gc, fillcolor=None)[source] draw_gouraud_triangle(gc, points, colors, trans)[source] Draw a Gouraud-shaded triangle. Parameters gcGraphicsContextBase The graphics context. points(3, 2) array-like Array of (x, y) points for the tri...
doc_12628
Unregister an unpack format. name is the name of the format.
doc_12629
length of a cdrom track get_track_length(track) -> seconds Return a floating point value in seconds of the length of the cdrom track. Note, track 0 is the first track on the CD. Track numbers start at zero.
doc_12630
Creates a criterion that optimizes a multi-label one-versus-all loss based on max-entropy, between input xx and target yy of size (N,C)(N, C) . For each sample in the minibatch: loss(x,y)=−1C∗∑iy[i]∗log⁡((1+exp⁡(−x[i]))−1)+(1−y[i])∗log⁡(exp⁡(−x[i])(1+exp⁡(−x[i])))loss(x, y) = - \frac{1}{C} * \sum_i y[i] * \log((1 ...
doc_12631
Retry the request with authentication information, if available.
doc_12632
Compute the eigenvalues and right eigenvectors of a square array. Parameters a(…, M, M) array Matrices for which the eigenvalues and right eigenvectors will be computed Returns w(…, M) array The eigenvalues, each repeated according to its multiplicity. The eigenvalues are not necessarily ordered. The re...
doc_12633
Atomicity is the defining property of database transactions. atomic allows us to create a block of code within which the atomicity on the database is guaranteed. If the block of code is successfully completed, the changes are committed to the database. If there is an exception, the changes are rolled back. atomic block...
doc_12634
Bases: matplotlib.transforms.Transform Parameters shorthand_namestr A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when DEBUG=True. has_inverse=True True if this transform has a corresponding inverse transform. ...
doc_12635
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_12636
Mixin class for FFMpeg output. To be useful this must be multiply-inherited from with a MovieWriterBase sub-class. __init__(*args, **kwargs) Methods __init__(*args, **kwargs) Attributes output_args propertyoutput_args
doc_12637
Return a iterator of (key, values) pairs, where values is the list of all values associated with the key.
doc_12638
tf.metrics.Recall Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.Recall tf.keras.metrics.Recall( thresholds=None, top_k=None, class_id=None, name=None, dtype=None ) This metric creates two local variables, true_positives and false_negatives, that are used to compute...
doc_12639
Default widget: SplitDateTimeWidget Empty value: None Normalizes to: A Python datetime.datetime object. Validates that the given value is a datetime.datetime or string formatted in a particular datetime format. Error message keys: required, invalid, invalid_date, invalid_time Takes two optional arguments: input_...
doc_12640
A tuple of three values that provides information about the unhandled exception, if any, that occurred during the view. The values are (type, value, traceback), the same as returned by Python’s sys.exc_info(). Their meanings are: type: The type of the exception. value: The exception instance. traceback: A traceback...
doc_12641
tf.sparse.segment_sqrt_n( data, indices, segment_ids, num_segments=None, name=None ) Read the section on segmentation for an explanation of segments. Like tf.sparse.segment_mean, but instead of dividing by the size of the segment, N, divide by sqrt(N) instead. Args data A Tensor with data that will be ass...
doc_12642
Return the anchor.
doc_12643
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessSampleDistortedBoundingBox tf.raw_ops.StatelessSampleDistortedBoundingBox( image_size, bounding_boxes, min_object_covered, seed, aspect_ratio_range=[0.75, 1.33], area_range=[0.05, 1], max_attempts=100, use_image_if_no_bounding_boxes=False...
doc_12644
Generic implementation of the unittest load_tests protocol for use in test packages. pkg_dir is the root directory of the package; loader, standard_tests, and pattern are the arguments expected by load_tests. In simple cases, the test package’s __init__.py can be the following: import os from test.support import load_p...
doc_12645
Check that all arrays have consistent first dimensions. Checks whether all objects in arrays have the same shape or length. Parameters *arrayslist or tuple of input objects. Objects that will be checked for consistent length.
doc_12646
Does a rollover, as described above.
doc_12647
Call open() with method set to TRACE. Parameters args (Any) – kw (Any) – Return type werkzeug.test.TestResponse
doc_12648
QName wrapper. This can be used to wrap a QName attribute value, in order to get proper namespace handling on output. text_or_uri is a string containing the QName value, in the form {uri}local, or, if the tag argument is given, the URI part of a QName. If tag is given, the first argument is interpreted as a URI, and th...
doc_12649
Return a list of the child Artists of this Artist.
doc_12650
tf.experimental.numpy.bool_( *args, **kwargs ) Character code: '?'. Alias: np.bool8. Methods all all() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, all the attributes of the ndarray class so as to provide a uniform API. See als...
doc_12651
tf.batch_to_space( input, block_shape, crops, name=None ) This operation reshapes the "batch" dimension 0 into M + 1 dimensions of shape block_shape + [batch], interleaves these blocks back into the grid defined by the spatial dimensions [1, ..., M], to obtain a result with the same rank as the input. The spatial ...
doc_12652
See Migration guide for more details. tf.compat.v1.io.write_file, tf.compat.v1.write_file tf.io.write_file( filename, contents, name=None ) creates directory if not existing. Args filename A Tensor of type string. scalar. The name of the file to which we write the contents. contents A Tensor of ty...
doc_12653
Returns a GEOS PreparedGeometry for the contents of this geometry. PreparedGeometry objects are optimized for the contains, intersects, covers, crosses, disjoint, overlaps, touches and within operations. Refer to the Prepared Geometries documentation for more information.
doc_12654
Unset the flag(s) specified by flag without changing other flags. To remove more than one flag at a time, flag maybe a string of more than one character. If “info” contains experimental information rather than flags, the current “info” is not modified.
doc_12655
To initialize an area object, pass in a keyword corresponding to the desired unit attribute name set with desired value. For example, the following creates an area object representing 5 square miles: >>> a = Area(sq_mi=5) __getattr__(unit_att) Returns the area value in units corresponding to the given unit attri...
doc_12656
class sklearn.exceptions.ConvergenceWarning [source] Custom warning to capture convergence problems Changed in version 0.18: Moved from sklearn.utils. Attributes args Methods with_traceback Exception.with_traceback(tb) – set self.__traceback__ to tb and return self. with_traceback() Exception.with_tra...
doc_12657
Return atan(y / x), in radians. The result is between -pi and pi. The vector in the plane from the origin to point (x, y) makes this angle with the positive X axis. The point of atan2() is that the signs of both inputs are known to it, so it can compute the correct quadrant for the angle. For example, atan(1) and atan2...
doc_12658
See Migration guide for more details. tf.compat.v1.raw_ops.OptionalHasValue tf.raw_ops.OptionalHasValue( optional, name=None ) Args optional A Tensor of type variant. name A name for the operation (optional). Returns A Tensor of type bool.
doc_12659
A processing class used to execute and verify the interactive examples in a DocTest. The comparison between expected outputs and actual outputs is done by an OutputChecker. This comparison may be customized with a number of option flags; see section Option Flags for more information. If the option flags are insufficien...
doc_12660
class sklearn.model_selection.StratifiedKFold(n_splits=5, *, shuffle=False, random_state=None) [source] Stratified K-Folds cross-validator. Provides train/test indices to split data in train/test sets. This cross-validation object is a variation of KFold that returns stratified folds. The folds are made by preserving...
doc_12661
At this point, you can remove the application name from the registry as a source of event log entries. However, if you do this, you will not be able to see the events as you intended in the Event Log Viewer - it needs to be able to access the registry to get the .dll name. The current version does not do this.
doc_12662
Filter specific data.
doc_12663
Add one or more events at the specified positions.
doc_12664
Perform an indirect partition along the given axis using the algorithm specified by the kind keyword. It returns an array of indices of the same shape as a that index data along the given axis in partitioned order. New in version 1.8.0. Parameters aarray_like Array to sort. kthint or sequence of ints Elem...
doc_12665
Check if the object is a regex pattern instance. Parameters obj:The object to check Returns is_regex:bool Whether obj is a regex pattern. Examples >>> is_re(re.compile(".*")) True >>> is_re("foo") False
doc_12666
The name of the variable. This is a read-only property. New in version 3.7.1.
doc_12667
See torch.argmax()
doc_12668
Bases: matplotlib.patches.ConnectionStyle._Base Creates a piecewise continuous quadratic Bezier path between two points. The path has a one passing-through point placed at the intersecting point of two lines which cross the start and end point, and have a slope of angleA and angleB, respectively. The connecting edges...
doc_12669
Invert all the digits in x.
doc_12670
Thresholds each element of the input Tensor. Threshold is defined as: y={x, if x>thresholdvalue, otherwise y = \begin{cases} x, &\text{ if } x > \text{threshold} \\ \text{value}, &\text{ otherwise } \end{cases} Parameters threshold – The value to threshold at value – The value to replace with inplace – can o...
doc_12671
Create an array from binary file data Parameters fdstr or file type If file is a string or a path-like object then that file is opened, else it is assumed to be a file object. The file object must support random access (i.e. it must have tell and seek methods). dtypedata-type, optional valid dtype for all a...
doc_12672
Set the Figure instance the artist belongs to. Parameters figFigure
doc_12673
Bases: object axis=None create_dummy_axis(**kwargs)[source] set_axis(axis)[source] set_bounds(vmin, vmax)[source] [Deprecated] Notes Deprecated since version 3.5: set_data_interval(vmin, vmax)[source] [Deprecated] Notes Deprecated since version 3.5: set_view_interval(vmin, vmax)[source...
doc_12674
If vmin or vmax are not set, use the min/max of A to set them.
doc_12675
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_12676
Computes the log-likelihood of a Gaussian data set with self.covariance_ as an estimator of its covariance matrix. Parameters X_testarray-like of shape (n_samples, n_features) Test data of which we compute the likelihood, where n_samples is the number of samples and n_features is the number of features. X_test ...
doc_12677
Returns the list of directories that will be searched for a named executable, similar to a shell, when launching a process. env, when specified, should be an environment variable dictionary to lookup the PATH in. By default, when env is None, environ is used. New in version 3.2.
doc_12678
tf.experimental.numpy.minimum( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.minimum.
doc_12679
Returns an iterator over module buffers. Parameters recurse (bool) – if True, then yields buffers of this module and all submodules. Otherwise, yields only buffers that are direct members of this module. Yields torch.Tensor – module buffer Example: >>> for buf in model.buffers(): >>> print(type(buf), buf.size...
doc_12680
Token value used to indicate a comment.
doc_12681
See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyFtrlV2 tf.raw_ops.SparseApplyFtrlV2( var, accum, linear, grad, indices, lr, l1, l2, l2_shrinkage, lr_power, use_locking=False, multiply_linear_by_lr=False, name=None ) That is for rows we have grad for, we update var, accum and linear as f...
doc_12682
Return the Timestamp representation of the Period. Uses the target frequency specified at the part of the period specified by how, which is either Start or Finish. Parameters freq:str or DateOffset Target frequency. Default is ‘D’ if self.freq is week or longer and ‘S’ otherwise. how:str, default ‘S’ (start) ...
doc_12683
Bases: object The canvas the figure renders into. Attributes figurematplotlib.figure.Figure A high-level figure instance. blit(bbox=None)[source] Blit the canvas in bbox (default entire canvas). propertybutton_pick_id button_press_event(x, y, button, dblclick=False, guiEvent=None)[source] Call...
doc_12684
Return the welcome message sent by the server in reply to the initial connection. (This message sometimes contains disclaimers or help information that may be relevant to the user.)
doc_12685
Gaussian process classification (GPC) based on Laplace approximation. The implementation is based on Algorithm 3.1, 3.2, and 5.1 of Gaussian Processes for Machine Learning (GPML) by Rasmussen and Williams. Internally, the Laplace approximation is used for approximating the non-Gaussian posterior by a Gaussian. Curren...
doc_12686
Bases: matplotlib.patheffects.AbstractPathEffect A simple shadow via a line. Parameters offset(float, float), default: (2, -2) The (x, y) offset to apply to the path, in points. shadow_colorcolor, default: 'black' The shadow color. A value of None takes the original artist's color with a scale factor of rho...
doc_12687
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g...
doc_12688
Set both the edgecolor and the facecolor. Parameters ccolor or list of rgba tuples See also Collection.set_facecolor, Collection.set_edgecolor For setting the edge or face color individually.
doc_12689
unicodedata.lookup(name) Look up character by name. If a character with the given name is found, return the corresponding character. If not found, KeyError is raised. Changed in version 3.3: Support for name aliases 1 and named sequences 2 has been added. unicodedata.name(chr[, default]) Returns the name assi...
doc_12690
See Migration guide for more details. tf.compat.v1.image.rgb_to_yuv tf.image.rgb_to_yuv( images ) Outputs a tensor of the same shape as the images tensor, containing the YUV value of the pixels. The output is only well defined if the value in images are in [0, 1]. There are two ways of representing an image: [0,...
doc_12691
Load an ORC object from the file path, returning a DataFrame. New in version 1.0.0. Parameters path:str, path object, or file-like object String, path object (implementing os.PathLike[str]), or file-like object implementing a binary read() function. The string could be a URL. Valid URL schemes include http, f...
doc_12692
class difflib.SequenceMatcher This is a flexible class for comparing pairs of sequences of any type, so long as the sequence elements are hashable. The basic algorithm predates, and is a little fancier than, an algorithm published in the late 1980’s by Ratcliff and Obershelp under the hyperbolic name “gestalt pattern...
doc_12693
Return the day of the week as an integer, where Monday is 1 and Sunday is 7. The same as self.date().isoweekday(). See also weekday(), isocalendar().
doc_12694
Adjust the direction of the axislabel. Note that the label_directions '+' and '-' are relative to the direction of the increasing coordinate. Parameters label_direction{"+", "-"}
doc_12695
Check elementwise if the Intervals contain the value. Return a boolean mask whether the value is contained in the Intervals of the IntervalArray. New in version 0.25.0. Parameters other:scalar The value to check whether it is contained in the Intervals. Returns boolean array See also Interval.contai...
doc_12696
class ast.Or Boolean operator tokens.
doc_12697
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_12698
Randomized search on hyper parameters. RandomizedSearchCV implements a “fit” and a “score” method. It also implements “score_samples”, “predict”, “predict_proba”, “decision_function”, “transform” and “inverse_transform” if they are implemented in the estimator used. The parameters of the estimator used to apply these...
doc_12699
A tuple with the length of each level. Examples >>> mi = pd.MultiIndex.from_arrays([['a'], ['b'], ['c']]) >>> mi MultiIndex([('a', 'b', 'c')], ) >>> mi.levshape (1, 1, 1)