_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_1900
See torch.matrix_power()
doc_1901
Creates a new Decimal instance from num but using self as context. Unlike the Decimal constructor, the context precision, rounding method, flags, and traps are applied to the conversion. This is useful because constants are often given to a greater precision than is needed by the application. Another benefit is that ro...
doc_1902
Use an integral image to integrate over a given window. Parameters iindarray Integral image. startList of tuples, each tuple of length equal to dimension of ii Coordinates of top left corner of window(s). Each tuple in the list contains the starting row, col, … index i.e [(row_win1, col_win1, …), (row_win2,...
doc_1903
Return the ticks position ("left", "right", "default", or "unknown").
doc_1904
Return the Transform instance mapping patch coordinates to data coordinates. For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5.
doc_1905
Haematoxylin-Eosin-DAB (HED) to RGB color space conversion. Parameters hed(…, 3) array_like The image in the HED color space. Final dimension denotes channels. Returns out(…, 3) ndarray The image in RGB. Same dimensions as input. Raises ValueError If hed is not at least 2-D with shape (…, 3). ...
doc_1906
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_1907
See torch.count_nonzero()
doc_1908
The error code used by ValidationError if validation fails. Defaults to "invalid".
doc_1909
Logistic Regression CV (aka logit, MaxEnt) classifier. See glossary entry for cross-validation estimator. This class implements logistic regression using liblinear, newton-cg, sag of lbfgs optimizer. The newton-cg, sag and lbfgs solvers support only L2 regularization with primal formulation. The liblinear solver supp...
doc_1910
Creates the module object from the given specification in accordance with PEP 489. New in version 3.5.
doc_1911
See Migration guide for more details. tf.compat.v1.keras.callbacks.LambdaCallback tf.keras.callbacks.LambdaCallback( on_epoch_begin=None, on_epoch_end=None, on_batch_begin=None, on_batch_end=None, on_train_begin=None, on_train_end=None, **kwargs ) This callback is constructed with anonymous functions that wi...
doc_1912
Return the offset as a tuple (x, y). The extent parameters have to be provided to handle the case where the offset is dynamically determined by a callable (see set_offset). Parameters width, height, xdescent, ydescent Extent parameters. rendererRendererBase subclass
doc_1913
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters Xarray-like of shape (n_samples_X, n_features) or list of object Argument to the kernel. Returns K_diagndar...
doc_1914
A tuple containing the five components of the version number: major, minor, micro, releaselevel, and serial. All values except releaselevel are integers; the release level is 'alpha', 'beta', 'candidate', or 'final'. The version_info value corresponding to the Python version 2.0 is (2, 0, 0, 'final', 0). The components...
doc_1915
Applies fn recursively to every submodule (as returned by .children()) as well as self. Typical use includes initializing the parameters of a model (see also torch.nn.init). Parameters fn (Module -> None) – function to be applied to each submodule Returns self Return type Module Example: >>> @torch.no_grad() ...
doc_1916
Return a new path with expanded ~ and ~user constructs, as returned by os.path.expanduser(): >>> p = PosixPath('~/films/Monty Python') >>> p.expanduser() PosixPath('/home/eric/films/Monty Python') New in version 3.5.
doc_1917
Fit the model with X and apply the dimensionality reduction on X. Parameters Xarray-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features. yIgnored Returns X_newndarray of shape (n_samples, n_components) Transformed value...
doc_1918
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_1919
Return whether units are set on any axis.
doc_1920
Like Artist.get_window_extent, but includes any clipping. Parameters rendererRendererBase subclass renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns Bbox The enclosing bounding box (in figure pixel coordinates).
doc_1921
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
doc_1922
tf.compat.v1.nn.rnn_cell.LSTMStateTuple( c, h ) Stores two elements: (c, h), in that order. Where c is the hidden state and h is the output. Only used when state_is_tuple=True. Attributes c h dtype
doc_1923
Reset the iterator to its initial state.
doc_1924
Bases: mpl_toolkits.axisartist.angle_helper.LocatorBase __call__(v1, v2)[source] Call self as a function. Examples using mpl_toolkits.axisartist.angle_helper.LocatorDMS axis_direction demo Curvilinear grid demo floating_axis demo Simple Axis Pad
doc_1925
Convert the Reduced distance to the true distance. The reduced distance, defined for some metrics, is a computationally more efficient measure which preserves the rank of the true distance. For example, in the Euclidean distance metric, the reduced distance is the squared-euclidean distance.
doc_1926
Instances are replaced with an appropriate value for Enum members. By default, the initial value starts at 1.
doc_1927
Return filter function to be used for agg filter.
doc_1928
Broadcasts input to the shape shape. Equivalent to calling input.expand(shape). See expand() for details. Parameters input (Tensor) – the input tensor. shape (list, tuple, or torch.Size) – the new shape. Example: >>> x = torch.tensor([1, 2, 3]) >>> torch.broadcast_to(x, (3, 3)) tensor([[1, 2, 3], [1, 2,...
doc_1929
See Migration guide for more details. tf.compat.v1.raw_ops.DebugGradientRefIdentity tf.raw_ops.DebugGradientRefIdentity( input, name=None ) This op is hidden from public in Python. It is used by TensorFlow Debugger to register gradient tensors for gradient debugging. This op operates on reference-type tensors. ...
doc_1930
Return True if the file descriptors fp1 and fp2 refer to the same file. Availability: Unix, Windows. Changed in version 3.2: Added Windows support. Changed in version 3.6: Accepts a path-like object.
doc_1931
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred) ** 2).sum() and \(v\) is the total sum of squares ((y_true - y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c...
doc_1932
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_1933
Access a group of rows and columns by label(s) or a boolean array. .loc[] is primarily label based, but may also be used with a boolean array. Allowed inputs are: A single label, e.g. 5 or 'a', (note that 5 is interpreted as a label of the index, and never as an integer position along the index). A list or array of ...
doc_1934
Return the index of the leaf that each sample is predicted as. New in version 0.17. 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, def...
doc_1935
Alias for field number 1
doc_1936
Scalar method identical to the corresponding array attribute. Please see ndarray.flatten.
doc_1937
The character conventionally used by the operating system to separate search path components (as in PATH), such as ':' for POSIX or ';' for Windows. Also available via os.path.
doc_1938
Request a widget redraw once control returns to the GUI event loop. Even if multiple calls to draw_idle occur before control returns to the GUI event loop, the figure will only be rendered once. Notes Backends may choose to override the method and implement their own strategy to prevent multiple renderings.
doc_1939
A dictionary object including validation. Validating functions are defined and associated with rc parameters in matplotlib.rcsetup. The list of rcParams is: _internal.classic_mode agg.path.chunksize animation.bitrate animation.codec animation.convert_args animation.convert_path animation.embed_limit animation.ffmpeg...
doc_1940
(default: 8) If expand_tabs is true, then all tab characters in text will be expanded to zero or more spaces, depending on the current column and the given tab size. New in version 3.3.
doc_1941
Set the marker edge color. Parameters eccolor
doc_1942
By default, this is set to False. When False, each value from the repeated fields is stored. When set to True, any trailing values which are blank will be stripped from the result. If the underlying field has required=True, but remove_trailing_nulls is True, then null values are only allowed at the end, and will be str...
doc_1943
See Migration guide for more details. tf.compat.v1.math.polygamma, tf.compat.v1.polygamma tf.math.polygamma( a, x, name=None ) The polygamma function is defined as: \(\psi^{(a)}(x) = \frac{d^a}{dx^a} \psi(x)\) where \(\psi(x)\) is the digamma function. The polygamma function is defined only for non-negative inte...
doc_1944
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_1945
Return the offsets for the collection.
doc_1946
When using CreateView you have access to self.object, which is the object being created. If the object hasn’t been created yet, the value will be None.
doc_1947
See Migration guide for more details. tf.compat.v1.raw_ops.ScatterNd tf.raw_ops.ScatterNd( indices, updates, shape, name=None ) Creates a new tensor by applying sparse updates to individual values or slices within a tensor (initially zero for numeric, empty for string) of the given shape according to indices. Th...
doc_1948
Returns a true division of the inputs, element-wise. Unlike ‘floor division’, true division adjusts the output type to present the best answer, regardless of input types. Parameters x1array_like Dividend array. x2array_like Divisor array. If x1.shape != x2.shape, they must be broadcastable to a common shape...
doc_1949
Cumulative max for each group. Returns Series or DataFrame See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.
doc_1950
Flush and close this stream. This method has no effect if the file is already closed. Once the file is closed, any operation on the file (e.g. reading or writing) will raise a ValueError. As a convenience, it is allowed to call this method more than once; only the first call, however, will have an effect.
doc_1951
Get parameters for this estimator. Returns the parameters given in the constructor as well as the estimators contained within the transformers of the ColumnTransformer. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Retur...
doc_1952
Execute a code object. When an exception occurs, showtraceback() is called to display a traceback. All exceptions are caught except SystemExit, which is allowed to propagate. A note about KeyboardInterrupt: this exception may occur elsewhere in this code, and may not always be caught. The caller should be prepared to d...
doc_1953
Type code C Type Python Type Minimum size in bytes Notes 'b' signed char int 1 'B' unsigned char int 1 'u' wchar_t Unicode character 2 (1) 'h' signed short int 2 'H' unsigned short int 2 'i' signed int int 2 'I' unsigned int int 2 'l' signed long int 4 'L' unsigned long int 4 'q' signed lon...
doc_1954
Returns the matrix exponential. Supports batched input. For a matrix A, the matrix exponential is defined as eA=∑k=0∞Ak/k!\mathrm{e}^A = \sum_{k=0}^\infty A^k / k! The implementation is based on: Bader, P.; Blanes, S.; Casas, F. Computing the Matrix Exponential with an Optimized Taylor Polynomial Approximation. Math...
doc_1955
Toplevel widget of Tix which represents mostly the main window of an application. It has an associated Tcl interpreter. Classes in the tkinter.tix module subclasses the classes in the tkinter. The former imports the latter, so to use tkinter.tix with Tkinter, all you need to do is to import one module. In general, you ...
doc_1956
Set to True when the execution of tests should stop by stop().
doc_1957
alias of numpy.str_
doc_1958
Constructs a test suite that matches the test labels provided. test_labels is a list of strings describing the tests to be run. A test label can take one of four forms: path.to.test_module.TestCase.test_method – Run a single test method in a test case. path.to.test_module.TestCase – Run all the test methods in a tes...
doc_1959
The request was not successfully authenticated, and the highest priority authentication class does not use WWW-Authenticate headers. — An HTTP 403 Forbidden response will be returned. The request was not successfully authenticated, and the highest priority authentication class does use WWW-Authenticate headers. — An ...
doc_1960
A one-dimensional polynomial class. Note This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in numpy.polynomial is preferred. A summary of the differences can be found in the transition guide. A convenience class, used to encapsulate “natural” operations on polynomials so t...
doc_1961
New in Django 4.0. Returns the context for rendering a formset in a template. The available context is: formset : The instance of the formset.
doc_1962
tf.nn.nce_loss( weights, biases, labels, inputs, num_sampled, num_classes, num_true=1, sampled_values=None, remove_accidental_hits=False, name='nce_loss' ) See Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. Also see our Candidate Sampling Algorithms Reference A co...
doc_1963
Returns an instance of LoggerAdapter initialized with an underlying Logger instance and a dict-like object. process(msg, kwargs) Modifies the message and/or keyword arguments passed to a logging call in order to insert contextual information. This implementation takes the object passed as extra to the constructor a...
doc_1964
Applies a 2D transposed convolution operator over an input image composed of several input planes, sometimes also called “deconvolution”. This operator supports TensorFloat32. See ConvTranspose2d for details and output shape. Note In some circumstances when given tensors on a CUDA device and using CuDNN, this operator...
doc_1965
Slices the self tensor along the selected dimension at the given index. This function returns a view of the original tensor with the given dimension removed. Parameters dim (int) – the dimension to slice index (int) – the index to select with Note select() is equivalent to slicing. For example, tensor.select(0...
doc_1966
Extract cookies from HTTP response and store them in the CookieJar, where allowed by policy. The CookieJar will look for allowable Set-Cookie and Set-Cookie2 headers in the response argument, and store cookies as appropriate (subject to the CookiePolicy.set_ok() method’s approval). The response object (usually the resu...
doc_1967
Bases: skimage.viewer.plugins.base.Plugin __init__(maxdist=10, **kwargs) [source] Initialize self. See help(type(self)) for accurate signature. attach(image_viewer) [source] Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the Ima...
doc_1968
tf.metrics.SpecificityAtSensitivity Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.SpecificityAtSensitivity tf.keras.metrics.SpecificityAtSensitivity( sensitivity, num_thresholds=200, name=None, dtype=None ) Sensitivity measures the proportion of actual positives th...
doc_1969
See Migration guide for more details. tf.compat.v1.sets.set_union, tf.compat.v1.sets.union tf.sets.union( a, b, validate_indices=True ) All but the last dimension of a and b must match. Example: import tensorflow as tf import collections # [[{1, 2}, {3}], [{4}, {5, 6}]] a = collections.OrderedDict([ ((0, 0,...
doc_1970
See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNCanonicalToParams tf.raw_ops.CudnnRNNCanonicalToParams( num_layers, num_units, input_size, weights, biases, rnn_mode='lstm', input_mode='linear_input', direction='unidirectional', dropout=0, seed=0, seed2=0, name=None ) Writes a set of we...
doc_1971
Compute number of output features. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data. yNone Ignored. Returns selfobject Fitted transformer.
doc_1972
Whether the OpenSSL library has built-in support for the TLS 1.3 protocol. New in version 3.7.
doc_1973
This function causes the cgitb module to take over the interpreter’s default handling for exceptions by setting the value of sys.excepthook. The optional argument display defaults to 1 and can be set to 0 to suppress sending the traceback to the browser. If the argument logdir is present, the traceback reports are writ...
doc_1974
Bases: object __call__(renderer)[source] Call self as a function.
doc_1975
See Migration guide for more details. tf.compat.v1.raw_ops.ScatterMax tf.raw_ops.ScatterMax( ref, indices, updates, use_locking=False, name=None ) This operation computes # Scalar indices ref[indices, ...] = max(ref[indices, ...], updates[...]) # Vector indices (for each i) ref[indices[i], ...] = max(ref[indice...
doc_1976
The sort command is a variant of search with sorting semantics for the results. Returned data contains a space separated list of matching message numbers. Sort has two arguments before the search_criterion argument(s); a parenthesized list of sort_criteria, and the searching charset. Note that unlike search, the search...
doc_1977
Compare this network to other. In this comparison only the network addresses are considered; host bits aren’t. Returns either -1, 0 or 1. >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.2/32')) -1 >>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.0/32')) 1 >>> ip_network('192.0.2.1...
doc_1978
Initialize QAppliction. The QApplication needs to be initialized before creating any QWidgets
doc_1979
Raised when an operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more precise exception such as IndexError.
doc_1980
Runs the application on a local development server. Do not use run() in a production setting. It is not intended to meet security and performance requirements for a production server. Instead, see Deployment Options for WSGI server recommendations. If the debug flag is set the server will automatically reload for code ...
doc_1981
Return the ZAxis (Axis) instance.
doc_1982
Return x with its trend removed. Parameters xarray or sequence Array or sequence containing the data. key{'default', 'constant', 'mean', 'linear', 'none'} or function The detrending algorithm to use. 'default', 'mean', and 'constant' are the same as detrend_mean. 'linear' is the same as detrend_linear. 'non...
doc_1983
Write the buffers contents to file descriptor fd at a offset offset, leaving the file offset unchanged. buffers must be a sequence of bytes-like objects. Buffers are processed in array order. Entire contents of the first buffer is written before proceeding to the second, and so on. The flags argument contains a bitwise...
doc_1984
Default widget: Select Empty value: '' (an empty string) Normalizes to: A string. Validates that the selected choice exists in the list of choices. Error message keys: required, invalid_choice The field allows choosing from files inside a certain directory. It takes five extra arguments; only path is required: pa...
doc_1985
set the mouse cursor to a system variant set_system_cursor(constant) -> None When the mouse cursor is visible, it will displayed as a operating system specific variant of the options below. Pygame Cursor Constant Description -------------------------------------------- pygame.SYSTEM_CURSOR_ARROW arrow...
doc_1986
See Migration guide for more details. tf.compat.v1.linalg.pinv tf.linalg.pinv( a, rcond=None, validate_args=False, name=None ) Calculate the generalized inverse of a matrix using its singular-value decomposition (SVD) and including all large singular values. The pseudo-inverse of a matrix A, is defined as: 'the ...
doc_1987
A hook for the initial data on admin change forms. By default, fields are given initial values from GET parameters. For instance, ?name=initial_value will set the name field’s initial value to be initial_value. This method should return a dictionary in the form {'fieldname': 'fieldval'}: def get_changeform_initial_data...
doc_1988
For each element in self, return a copy of the string with uppercase characters converted to lowercase and vice versa. See also char.swapcase
doc_1989
Method representing the process’s activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
doc_1990
Return a new path object representing the user’s home directory (as returned by os.path.expanduser() with ~ construct): >>> Path.home() PosixPath('/home/antoine') New in version 3.5.
doc_1991
Token value for ":".
doc_1992
Set the current process’s effective user id. Availability: Unix.
doc_1993
Sets the value of the specified option. Available options: compute.[use_bottleneck, use_numba, use_numexpr] display.[chop_threshold, colheader_justify, column_space, date_dayfirst, date_yearfirst, encoding, expand_frame_repr, float_format] display.html.[border, table_schema, use_mathjax] display.[large_repr] display...
doc_1994
See Migration guide for more details. tf.compat.v1.raw_ops.DatasetToGraphV2 tf.raw_ops.DatasetToGraphV2( input_dataset, external_state_policy=0, strip_device_assignment=False, name=None ) Returns a graph representation for input_dataset. Args input_dataset A Tensor of type variant. A variant tensor repr...
doc_1995
Bases: torch.distributions.transformed_distribution.TransformedDistribution Samples from a Gumbel Distribution. Examples: >>> m = Gumbel(torch.tensor([1.0]), torch.tensor([2.0])) >>> m.sample() # sample from Gumbel distribution with loc=1, scale=2 tensor([ 1.0124]) Parameters loc (float or Tensor) – Location pa...
doc_1996
A string describing the specific codec error.
doc_1997
tf.compat.v1.layers.Dropout( rate=0.5, noise_shape=None, seed=None, name=None, **kwargs ) Dropout consists in randomly setting a fraction rate of input units to 0 at each update during training time, which helps prevent overfitting. The units that are kept are scaled by 1 / (1 - rate), so that their sum is unchang...
doc_1998
Drop specified labels from rows or columns. Remove rows or columns by specifying label names and corresponding axis, or by specifying directly index or column names. When using a multi-index, labels on different levels can be removed by specifying the level. See the user guide <advanced.shown_levels> for more informa...
doc_1999
tf.experimental.numpy.issubdtype( arg1, arg2 ) Parameters arg1, arg2 : dtype_like dtype or string representing a typecode. Returns out : bool See Also issubsctype, issubclass_ numpy.core.numerictypes : Overview of numpy type hierarchy. Examples >>> np.issubdtype('S1', np.string_) True >>> np.issubdtype(np.float64,...