_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_27500
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_27501
A subclass of HTTPException.
doc_27502
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_27503
Returns a request with the data. If the request class is not specified request_class is used. Parameters cls (Optional[Type[werkzeug.wrappers.request.Request]]) – The request wrapper to use. Return type werkzeug.wrappers.request.Request
doc_27504
Force as many objects as possible to be collected. This is needed because timely deallocation is not guaranteed by the garbage collector. This means that __del__ methods may be called later than expected and weakrefs may remain alive for longer than expected.
doc_27505
This signal is sent when an application context is pushed. The sender is the application. This is usually useful for unittests in order to temporarily hook in information. For instance it can be used to set a resource early onto the g object. Example usage: from contextlib import contextmanager from flask import appcon...
doc_27506
stat.IO_REPARSE_TAG_MOUNT_POINT stat.IO_REPARSE_TAG_APPEXECLINK New in version 3.8.
doc_27507
Retrieves the target object and calls its delete() method, then redirects to the success URL.
doc_27508
class sklearn.linear_model.LinearRegression(*, fit_intercept=True, normalize=False, copy_X=True, n_jobs=None, positive=False) [source] Ordinary least squares Linear Regression. LinearRegression fits a linear model with coefficients w = (w1, …, wp) to minimize the residual sum of squares between the observed targets i...
doc_27509
Select and call the function that accepts *args, **kwargs. funcs is a list of functions which should not raise any exception (other than TypeError if the arguments passed do not match their signature). select_matching_signature tries to call each of the functions in funcs with *args, **kwargs (in the order in which t...
doc_27510
See torch.cholesky_inverse()
doc_27511
Computes the (weighted) graph of k-Neighbors for points in X Parameters Xarray-like of shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’, default=None The query point or points. If not provided, neighbors of each indexed point are returned. In this case, the query point is not ...
doc_27512
Wide char variant of ungetch(), accepting a Unicode value.
doc_27513
See Migration guide for more details. tf.compat.v1.keras.backend.set_image_data_format tf.keras.backend.set_image_data_format( data_format ) Arguments data_format string. 'channels_first' or 'channels_last'. Example: tf.keras.backend.image_data_format() 'channels_last' tf.keras.backend.set_image_dat...
doc_27514
tf.compat.v1.keras.layers.experimental.preprocessing.StringLookup( max_tokens=None, num_oov_indices=1, mask_token='', oov_token='[UNK]', vocabulary=None, encoding=None, invert=False, **kwargs ) Methods adapt View source adapt( data, reset_state=True ) Fits the state of the preprocessing layer to the ...
doc_27515
Bases: skimage.viewer.canvastools.base.CanvasToolBase Widget for line selection in a plot. Parameters managerViewer or PlotPlugin. Skimage viewer or plot plugin object. on_movefunction Function called whenever a control handle is moved. This function must accept the end points of line as the only argument. ...
doc_27516
Used by session backends to determine if a Set-Cookie header should be set for this session cookie for this response. If the session has been modified, the cookie is set. If the session is permanent and the SESSION_REFRESH_EACH_REQUEST config is true, the cookie is always set. This check is usually skipped if the sessi...
doc_27517
Handler for Patch instances. Parameters patch_funccallable, optional The function that creates the legend key artist. patch_func should have the signature: def patch_func(legend=legend, orig_handle=orig_handle, xdescent=xdescent, ydescent=ydescent, width=width, height=height, fonts...
doc_27518
Sparse representation of the fitted coef_.
doc_27519
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorLowerTriangular tf.linalg.LinearOperatorLowerTriangular( tril, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=None, name='LinearOperatorLowerTriangular' ) This operator acts like a [batch] lower triangul...
doc_27520
This function resizes the internal memory buffer of obj, which must be an instance of a ctypes type. It is not possible to make the buffer smaller than the native size of the objects type, as given by sizeof(type(obj)), but it is possible to enlarge the buffer.
doc_27521
Return the members as a list of their names. It has the same order as the list returned by getmembers().
doc_27522
For syntax errors - the compiler error message.
doc_27523
Set the JoinStyle for the collection (for all its elements). Parameters jsJoinStyle or {'miter', 'round', 'bevel'}
doc_27524
tf.image.stateless_random_flip_up_down( image, seed ) Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed settings (e.g. tf.random.set_seed). Example usage: image = np.array([[[1], [2]], [[3], [4]]]) seed = (2, 3) tf.image.stateless_...
doc_27525
Alias for PROTOCOL_TLS. Deprecated since version 3.6: Use PROTOCOL_TLS instead.
doc_27526
Close open elements, up to (and including) the element identified by the given identifier. Parameters id Element identifier, as returned by the start() method.
doc_27527
Date ticklabels often overlap, so it is useful to rotate them and right align them. Also, a common use case is a number of subplots with shared x-axis where the x-axis is date data. The ticklabels are often long, and it helps to rotate them on the bottom subplot and turn them off on other subplots, as well as turn of...
doc_27528
def make_variables(k, initializer): return (tf.Variable(initializer(shape=[k], dtype=tf.float32)), tf.Variable(initializer(shape=[k, k], dtype=tf.float32))) v1, v2 = make_variables(3, tf.ones_initializer()) v1 <tf.Variable ... shape=(3,) ... numpy=array([1., 1., 1.], dtype=float32)> v2 <tf.Variable ... shap...
doc_27529
Partial Dependence Plot (PDP). This can also display individual partial dependencies which are often referred to as: Individual Condition Expectation (ICE). It is recommended to use plot_partial_dependence to create a PartialDependenceDisplay. All parameters are stored as attributes. Read more in Advanced Plotting Wi...
doc_27530
tf.metrics.SensitivityAtSpecificity Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.SensitivityAtSpecificity tf.keras.metrics.SensitivityAtSpecificity( specificity, num_thresholds=200, name=None, dtype=None ) the sensitivity at a given specificity. Sensitivity measur...
doc_27531
Transforms the option name option as found in an input file or as passed in by client code to the form that should be used in the internal structures. The default implementation returns a lower-case version of option; subclasses may override this or client code can set an attribute of this name on instances to affect t...
doc_27532
draw an antialiased polygon aapolygon(surface, points, color) -> None Draws an unfilled antialiased polygon on the given surface. The adjacent coordinates in the points argument, as well as the first and last points, will be connected by line segments. e.g. For the points [(x1, y1), (x2, y2), (x3, y3)] a line segment...
doc_27533
operator.__sub__(a, b) Return a - b.
doc_27534
tf.compat.v1.distribute.get_loss_reduction() This is used to decide whether loss should be scaled in optimizer (used only for estimator + v1 optimizer use case). Returns tf.distribute.ReduceOp corresponding to the last loss reduction for estimator and v1 optimizer use case. tf.distribute.ReduceOp.SUM otherwise.
doc_27535
Return the maximum allowed number of headers named name. Called when a header is added to an EmailMessage or Message object. If the returned value is not 0 or None, and there are already a number of headers with the name name greater than or equal to the value returned, a ValueError is raised. Because the default behav...
doc_27536
class sklearn.cluster.SpectralClustering(n_clusters=8, *, eigen_solver=None, n_components=None, random_state=None, n_init=10, gamma=1.0, affinity='rbf', n_neighbors=10, eigen_tol=0.0, assign_labels='kmeans', degree=3, coef0=1, kernel_params=None, n_jobs=None, verbose=False) [source] Apply clustering to a projection o...
doc_27537
Add the given payload to the current payload, which must be None or a list of Message objects before the call. After the call, the payload will always be a list of Message objects. If you want to set the payload to a scalar object (e.g. a string), use set_payload() instead. This is a legacy method. On the EmailMessage ...
doc_27538
Return an iterable of the ModuleDict values.
doc_27539
Returns a panel object, associating it with the given window win. Be aware that you need to keep the returned panel object referenced explicitly. If you don’t, the panel object is garbage collected and removed from the panel stack.
doc_27540
Use this method to render the raw value of this field as it would be rendered by a Widget: >>> initial = {'subject': 'welcome'} >>> unbound_form = ContactForm(initial=initial) >>> bound_form = ContactForm(data={'subject': 'hi'}, initial=initial) >>> print(unbound_form['subject'].value()) welcome >>> print(bound_form['s...
doc_27541
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_27542
Creates an SSL key for development. This should be used instead of the 'adhoc' key which generates a new cert on each server start. It accepts a path for where it should store the key and cert and either a host or CN. If a host is given it will use the CN *.host/CN=host. For more information see run_simple(). Changelo...
doc_27543
Declares that function should be used as a “reduction” function for objects of type type. function should return either a string or a tuple containing two or three elements. The optional constructor parameter, if provided, is a callable object which can be used to reconstruct the object when called with the tuple of ar...
doc_27544
An array that represents the months of the year in the current locale. This follows normal convention of January being month number 1, so it has a length of 13 and month_name[0] is the empty string.
doc_27545
Vandermonde matrix of given degree. Returns the Vandermonde matrix of degree deg and sample points x. The Vandermonde matrix is defined by \[V[..., i] = x^i,\] where 0 <= i <= deg. The leading indices of V index the elements of x and the last index is the power of x. If c is a 1-D array of coefficients of length n +...
doc_27546
Return the index of the header in the set or raise an IndexError. Parameters header – the header to be looked up.
doc_27547
Context-manager that disabled gradient calculation. Disabling gradient calculation is useful for inference, when you are sure that you will not call Tensor.backward(). It will reduce memory consumption for computations that would otherwise have requires_grad=True. In this mode, the result of every computation will ha...
doc_27548
The child return code, set by poll() and wait() (and indirectly by communicate()). A None value indicates that the process hasn’t terminated yet. A negative value -N indicates that the child was terminated by signal N (POSIX only).
doc_27549
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_27550
Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. See also char.isdigit
doc_27551
Return a reference to the shared axes Grouper object for y axes.
doc_27552
Attributes partition_graphs repeated GraphDef partition_graphs post_optimization_graph GraphDef post_optimization_graph pre_optimization_graph GraphDef pre_optimization_graph
doc_27553
Set the antialiasing state for rendering. Parameters aabool or list of bools
doc_27554
Casts this storage to bool type
doc_27555
Django view for the model instance(s) deletion confirmation page. See note below.
doc_27556
User identifier of the file owner.
doc_27557
set - other - ... Return a new set with elements in the set that are not in the others.
doc_27558
Set the propertyname to value. If the property is not recognized, SAXNotRecognizedException is raised. If the property or its setting is not supported by the parser, SAXNotSupportedException is raised.
doc_27559
See Migration guide for more details. tf.compat.v1.raw_ops.RGBToHSV tf.raw_ops.RGBToHSV( images, name=None ) Outputs a tensor of the same shape as the images tensor, containing the HSV value of the pixels. The output is only well defined if the value in images are in [0,1]. output[..., 0] contains hue, output[.....
doc_27560
Check whether we should break here, depending on the way the breakpoint b was set. If it was set via line number, it checks if b.line is the same as the one in the frame also passed as argument. If the breakpoint was set via function name, we have to check we are in the right frame (the right function) and if we are in...
doc_27561
Set whether the widget is active.
doc_27562
Bases: matplotlib.transforms.Affine2DBase BboxTransform linearly transforms points from one Bbox to another. Create a new BboxTransform that linearly transforms points from boxin to boxout. __init__(boxin, boxout, **kwargs)[source] Create a new BboxTransform that linearly transforms points from boxin to boxout. ...
doc_27563
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
doc_27564
Rename this file or directory to the given target, and return a new Path instance pointing to target. On Unix, if target exists and is a file, it will be replaced silently if the user has permission. target can be either a string or another path object: >>> p = Path('foo') >>> p.open('w').write('some text') 9 >>> targe...
doc_27565
Return a Dataframe of the components of the Timedeltas. Returns DataFrame Examples >>> s = pd.Series(pd.to_timedelta(np.arange(5), unit='s')) >>> s 0 0 days 00:00:00 1 0 days 00:00:01 2 0 days 00:00:02 3 0 days 00:00:03 4 0 days 00:00:04 dtype: timedelta64[ns] >>> s.dt.components days hours minu...
doc_27566
See Migration guide for more details. tf.compat.v1.raw_ops.RandomCrop tf.raw_ops.RandomCrop( image, size, seed=0, seed2=0, name=None ) size is a 1-D int64 tensor with 2 elements representing the crop height and width. The values must be non negative. This Op picks a random location in image and crops a height by...
doc_27567
An abstract base class for objects representing a file system path, e.g. pathlib.PurePath. New in version 3.6. abstractmethod __fspath__() Return the file system path representation of the object. The method should only return a str or bytes object, with the preference being for str.
doc_27568
Update the pixel positions of the annotation text and the arrow patch.
doc_27569
Start a Unix socket server. Similar to start_server() but works with Unix sockets. See also the documentation of loop.create_unix_server(). Availability: Unix. New in version 3.7: The ssl_handshake_timeout and start_serving parameters. Changed in version 3.7: The path parameter can now be a path-like object.
doc_27570
Test element-wise for positive or negative infinity. Returns a boolean array of the same shape as x, True where x == +/-inf, otherwise False. Parameters xarray_like Input values outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a s...
doc_27571
Called after the request is dispatched and the response is returned, right before the request context is popped. This calls all functions decorated with teardown_request(), and Blueprint.teardown_request() if a blueprint handled the request. Finally, the request_tearing_down signal is sent. This is called by RequestCon...
doc_27572
Create and return a comment node containing the data passed as a parameter. As with the other creation methods, this one does not insert the node into the tree.
doc_27573
Return the artist's zorder.
doc_27574
Sets the random number generator state of all devices. Parameters new_states (Iterable of torch.ByteTensor) – The desired state for each device
doc_27575
In-memory text streams are also available as StringIO objects: f = io.StringIO("some initial text data") The text stream API is described in detail in the documentation of TextIOBase. Binary I/O Binary I/O (also called buffered I/O) expects bytes-like objects and produces bytes objects. No encoding, decoding, or newl...
doc_27576
>>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) '["foo", {"bar": ["baz", null, 1.0, 2]}]' >>> print(json.dumps("\"foo\bar")) "\"foo\bar" >>> print(json.dumps('\u1234')) "\u1234" >>> print(json.dumps('\\')) "\\" >>> print(json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True)) {"a": 0, "b": 0, "c": 0} >>> from io ...
doc_27577
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_27578
For each element in a, return a copy with the leading and trailing characters removed. Calls str.strip element-wise. Parameters aarray-like of str or unicode charsstr or unicode, optional The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defa...
doc_27579
tf.experimental.dlpack.to_dlpack( tf_tensor ) This operation ensures the underlying data memory is ready when returns. a = tf.tensor([1, 10]) dlcapsule = tf.experimental.dlpack.to_dlpack(a) # dlcapsule represents the dlpack data structure Args tf_tensor Tensorflow eager tensor, to be converted to dlpack ...
doc_27580
See Migration guide for more details. tf.compat.v1.raw_ops.RaggedRange tf.raw_ops.RaggedRange( starts, limits, deltas, Tsplits=tf.dtypes.int64, name=None ) Returns a RaggedTensor result composed from rt_dense_values and rt_nested_splits, such that result[i] = range(starts[i], limits[i], deltas[i]). (rt_nested_sp...
doc_27581
Fills fields from output with fields from input, with support for nested structures. Parameters inputndarray Input array. outputndarray Output array. Notes output should be at least the same size as input Examples >>> from numpy.lib import recfunctions as rfn >>> a = np.array([(1, 10.), (2, 20.)], d...
doc_27582
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None f...
doc_27583
Sort an array in-place. Refer to numpy.sort for full documentation. Parameters axisint, optional Axis along which to sort. Default is -1, which means sort along the last axis. kind{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, optional Sorting algorithm. The default is ‘quicksort’. Note that both ‘stable...
doc_27584
Removes the spectral normalization reparameterization from a module. Parameters module (Module) – containing module name (str, optional) – name of weight parameter Example >>> m = spectral_norm(nn.Linear(40, 10)) >>> remove_spectral_norm(m)
doc_27585
See Migration guide for more details. tf.compat.v1.keras.layers.LocallyConnected2D tf.keras.layers.LocallyConnected2D( filters, kernel_size, strides=(1, 1), padding='valid', data_format=None, activation=None, use_bias=True, kernel_initializer='glorot_uniform', bias_initializer='zeros', kernel_regulari...
doc_27586
See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixMatMul tf.raw_ops.SparseMatrixMatMul( a, b, transpose_a=False, transpose_b=False, adjoint_a=False, adjoint_b=False, transpose_output=False, conjugate_output=False, name=None ) Returns a dense matrix. For inputs A and B, where A is CSR and...
doc_27587
Compute the cross-spectral density. The cross spectral density \(P_{xy}\) by Welch's average periodogram method. The vectors x and y are 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 prod...
doc_27588
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None f...
doc_27589
See Migration guide for more details. tf.compat.v1.Tensor tf.Tensor( op, value_index, dtype ) tf.Tensor object. All elements are of a single known data type. When writing a TensorFlow program, the main object that is manipulated and passed around is the tf.Tensor. A tf.Tensor has the following properties: a sin...
doc_27590
Check gradients of gradients computed via small finite differences against analytical gradients w.r.t. tensors in inputs and grad_outputs that are of floating point or complex type and with requires_grad=True. This function checks that backpropagating through the gradients computed to the given grad_outputs are corre...
doc_27591
Parameters vlist of axes_size sizes for vertical division
doc_27592
Fit linear model with Passive Aggressive algorithm. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Subset of the training data ynumpy array of shape [n_samples] Subset of the target values classesarray, shape = [n_classes] Classes across all calls to partial_fit. Can be obtaine...
doc_27593
Learning curve. Determines cross-validated training and test scores for different training set sizes. A cross-validation generator splits the whole dataset k times in training and test data. Subsets of the training set with varying sizes will be used to train the estimator and a score for each training subset size an...
doc_27594
Return True if class is a subclass (direct, indirect or virtual) of classinfo. A class is considered a subclass of itself. classinfo may be a tuple of class objects, in which case every entry in classinfo will be checked. In any other case, a TypeError exception is raised.
doc_27595
The list of fields that should be used to validate the field’s value (in the order in which they are provided). >>> from django.forms import ComboField >>> f = ComboField(fields=[CharField(max_length=20), EmailField()]) >>> f.clean('test@example.com') 'test@example.com' >>> f.clean('longemailaddress@example.com') Trace...
doc_27596
class collections.abc.MutableSet ABCs for read-only and mutable sets.
doc_27597
Turn the x- and y-axis off. This affects the axis lines, ticks, ticklabels, grid and axis labels.
doc_27598
[Deprecated] Notes Deprecated since version 3.4:
doc_27599
Return a new Timestamp floored to this resolution. Parameters freq:str Frequency string indicating the flooring resolution. ambiguous:bool or {‘raise’, ‘NaT’}, default ‘raise’ The behavior is as follows: bool contains flags to determine if time is dst or not (note that this flag is only applicable for ambi...