_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_17500
Returns the data column identifier of the cell at position x. The tree column has ID #0.
doc_17501
Return filter function to be used for agg filter.
doc_17502
See Migration guide for more details. tf.compat.v1.app.flags.DuplicateFlagError Methods from_flag @classmethod from_flag( flagname, flag_values, other_flag_values=None ) Creates a DuplicateFlagError by providing flag name and values. Args flagname str, the name of the flag being redefined. flag_valu...
doc_17503
A list of available password hashing algorithms, as crypt.METHOD_* objects. This list is sorted from strongest to weakest.
doc_17504
tf.optimizers.schedules.PiecewiseConstantDecay Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.schedules.PiecewiseConstantDecay tf.keras.optimizers.schedules.PiecewiseConstantDecay( boundaries, values, name=None ) The function returns a 1-arg callable to compute t...
doc_17505
An abstraction of a pipeline.
doc_17506
Draw samples from the standard exponential distribution. standard_exponential is identical to the exponential distribution with a scale parameter of 1. Note New code should use the standard_exponential method of a default_rng() instance instead; please see the Quick Start. Parameters sizeint or tuple of ints, o...
doc_17507
draw a straight line line(surface, color, start_pos, end_pos, width) -> Rect line(surface, color, start_pos, end_pos, width=1) -> Rect Draws a straight line on the given surface. There are no endcaps. For thick lines the ends are squared off. Parameters: surface (Surface) -- surface to draw on color (Color o...
doc_17508
Given a 1d array, return an array of deterministic integers. Parameters vals:ndarray or ExtensionArray encoding:str, default ‘utf8’ Encoding for data & key when strings. hash_key:str, default _default_hash_key Hash_key for string key to encode. categorize:bool, default True Whether to first categorize...
doc_17509
Roll the tensor along the given dimension(s). Elements that are shifted beyond the last position are re-introduced at the first position. If a dimension is not specified, the tensor will be flattened before rolling and then restored to the original shape. Parameters input (Tensor) – the input tensor. shifts (int o...
doc_17510
Returns the torch.dtype with the smallest size and scalar kind that is not smaller nor of lower kind than either type1 or type2. See type promotion documentation for more information on the type promotion logic. Parameters type1 (torch.dtype) – type2 (torch.dtype) – Example: >>> torch.promote_types(torch.int3...
doc_17511
See Migration guide for more details. tf.compat.v1.raw_ops.SpaceToBatchND tf.raw_ops.SpaceToBatchND( input, block_shape, paddings, name=None ) This operation divides "spatial" dimensions [1, ..., M] of the input into a grid of blocks of shape block_shape, and interleaves these blocks with the "batch" dimension (...
doc_17512
Scalar method identical to the corresponding array attribute. Please see ndarray.setflags.
doc_17513
See Migration guide for more details. tf.compat.v1.strings.unicode_split_with_offsets tf.strings.unicode_split_with_offsets( input, input_encoding, errors='replace', replacement_char=65533, name=None ) This op is similar to tf.strings.decode(...), but it also returns the start offset for each character in it...
doc_17514
Bases: skimage.transform._geometric.GeometricTransform 2D piecewise affine transformation. Control points are used to define the mapping. The transform is based on a Delaunay triangulation of the points to form a mesh. Each triangle is used to find a local affine transform. Attributes affineslist of AffineTransfo...
doc_17515
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_17516
Compute the q-th percentile of the data along the specified axis. Returns the q-th percentile(s) of the array elements. Parameters aarray_like Input array or object that can be converted to an array. qarray_like of float Percentile or sequence of percentiles to compute, which must be between 0 and 100 inclu...
doc_17517
socket.SOCK_NONBLOCK These two constants, if defined, can be combined with the socket types and allow you to set some flags atomically (thus avoiding possible race conditions and the need for separate calls). See also Secure File Descriptor Handling for a more thorough explanation. Availability: Linux >= 2.6.27. N...
doc_17518
Bases: mpl_toolkits.axes_grid1.axes_divider.Divider Divider based on the pre-existing axes. Parameters axesAxes xref yref append_axes(position, size, pad=None, add_to_figure=<deprecated parameter>, **kwargs)[source] Create an axes at the given position with the same height (or width) of the main axes. po...
doc_17519
Base class for warnings about features which are obsolete and expected to be deprecated in the future, but are not deprecated at the moment. This class is rarely used as emitting a warning about a possible upcoming deprecation is unusual, and DeprecationWarning is preferred for already active deprecations. Ignored by t...
doc_17520
Set the face color of the Figure rectangle. Parameters colorcolor
doc_17521
Create a zip package directory with a path of zip_dir and zip_basename containing an empty __init__ file and a file script_basename containing the source. If compiled is True, both source files will be compiled and added to the zip package. Return a tuple of the full zip path and the archive name for the zip file.
doc_17522
Predict class log-probabilities for X. 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. Returns pndarray of shape (n_samples, n_classes) The class lo...
doc_17523
sklearn.metrics.pairwise.rbf_kernel(X, Y=None, gamma=None) [source] Compute the rbf (gaussian) kernel between X and Y: K(x, y) = exp(-gamma ||x-y||^2) for each pair of rows x in X and y in Y. Read more in the User Guide. Parameters Xndarray of shape (n_samples_X, n_features) Yndarray of shape (n_samples_Y, n_f...
doc_17524
Bases: matplotlib.widgets._SelectorWidget Select a polygon region of an axes. Place vertices with each mouse click, and make the selection by completing the polygon (clicking on the first vertex). Once drawn individual vertices can be moved by clicking and dragging with the left mouse button, or removed by clicking t...
doc_17525
set position to play from set_pos(pos) -> None This sets the position in the music file where playback will start. The meaning of "pos", a float (or a number that can be converted to a float), depends on the music format. For MOD files, pos is the integer pattern number in the module. For OGG it is the absolute posit...
doc_17526
Handle how a breakpoint must be removed when it is a temporary one. This method must be implemented by derived classes.
doc_17527
Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parameters module (nn.Module) – module containing the tensor to prune name (str) – parameter name within module on which pruning will act.
doc_17528
A Lookup is a generic class to implement lookups. A lookup is a query expression with a left-hand side, lhs; a right-hand side, rhs; and a lookup_name that is used to produce a boolean comparison between lhs and rhs such as lhs in rhs or lhs > rhs. The primary notation to use a lookup in an expression is <lhs>__<lookup...
doc_17529
Return the low median of numeric data. If data is empty, StatisticsError is raised. data can be a sequence or iterable. The low median is always a member of the data set. When the number of data points is odd, the middle value is returned. When it is even, the smaller of the two middle values is returned. >>> median_lo...
doc_17530
Disconnect all callbacks.
doc_17531
Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters lwfloat or list of floats
doc_17532
Return whether the value given by get_alpha() should be used to override any other alpha-channel values.
doc_17533
Register an object which is used to expose method names which have not been registered using register_function(). If instance contains a _dispatch() method, it is called with the requested method name and the parameters from the request; the return value is returned to the client as the result. If instance does not hav...
doc_17534
turtle.ht() Make the turtle invisible. It’s a good idea to do this while you’re in the middle of doing some complex drawing, because hiding the turtle speeds up the drawing observably. >>> turtle.hideturtle()
doc_17535
Bases: object Draw a colorbar in an existing axes. Typically, colorbars are created using Figure.colorbar or pyplot.colorbar and associated with ScalarMappables (such as an AxesImage generated via imshow). In order to draw a colorbar not associated with other elements in the figure, e.g. when showing a colormap by it...
doc_17536
See Migration guide for more details. tf.compat.v1.errors.AlreadyExistsError tf.errors.AlreadyExistsError( node_def, op, message ) For example, running an operation that saves a file (e.g. tf.train.Saver.save) could potentially raise this exception if an explicit filename for an existing file was passed. At...
doc_17537
Predict class labels for samples in X. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape [n_samples] Predicted class label per sample.
doc_17538
Return a sync function that will run the coroutine function. result = app.async_to_sync(func)(*args, **kwargs) Override this method to change how the app converts async code to be synchronously callable. New in version 2.0. Parameters func (Callable[[...], Coroutine]) – Return type Callable[[…], Any]
doc_17539
Initializes instance of HtmlDiff. tabsize is an optional keyword argument to specify tab stop spacing and defaults to 8. wrapcolumn is an optional keyword to specify column number where lines are broken and wrapped, defaults to None where lines are not wrapped. linejunk and charjunk are optional keyword arguments passe...
doc_17540
Computes the nthn^{th} derivative of the digamma function on input. n≥0n \geq 0 is called the order of the polygamma function. ψ(n)(x)=d(n)dx(n)ψ(x)\psi^{(n)}(x) = \frac{d^{(n)}}{dx^{(n)}} \psi(x) Note This function is implemented only for nonnegative integers n≥0n \geq 0 . Parameters n (int) – the order of ...
doc_17541
Implements cached database-backed session store. cache_key_prefix A prefix added to a session key to build a cache key string.
doc_17542
Reverse the transformation operation Parameters Xarray of shape [n_samples, n_selected_features] The input samples. Returns X_rarray of shape [n_samples, n_original_features] X with columns of zeros inserted where features would have been removed by transform.
doc_17543
Standard output stream (StreamReader) or None if the process was created with stdout=None.
doc_17544
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyAdam tf.raw_ops.ApplyAdam( var, m, v, beta1_power, beta2_power, lr, beta1, beta2, epsilon, grad, use_locking=False, use_nesterov=False, name=None ) $$lr_t := \text{learning\_rate} * \sqrt{1 - beta_2^t} / (1 - beta_1^t)$$ $$m_t := beta_1 * m_{...
doc_17545
Create a Header instance from a sequence of pairs as returned by decode_header(). decode_header() takes a header value string and returns a sequence of pairs of the format (decoded_string, charset) where charset is the name of the character set. This function takes one of those sequence of pairs and returns a Header in...
doc_17546
Class Description Warning This is the base class of all warning category classes. It is a subclass of Exception. UserWarning The default category for warn(). DeprecationWarning Base category for warnings about deprecated features when those warnings are intended for other Python developers (ignored by default, u...
doc_17547
Returns the path, plus an appended query string, if applicable. Example: "/music/bands/the_beatles/?print=true"
doc_17548
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi...
doc_17549
Restore the rcParams from Matplotlib's internal default style. Style-blacklisted rcParams (defined in matplotlib.style.core.STYLE_BLACKLIST) are not updated. See also matplotlib.rc_file_defaults Restore the rcParams from the rc file originally loaded by Matplotlib. matplotlib.style.use Use a specific style file....
doc_17550
Subclass of xml.sax.handler.ContentHandler.
doc_17551
tf.exp Compat aliases for migration See Migration guide for more details. tf.compat.v1.exp, tf.compat.v1.math.exp tf.math.exp( x, name=None ) This function computes the exponential of the input tensor element-wise. i.e. math.exp(x) or \(e^x\), where x is the input tensor. \(e\) denotes Euler's number and is appr...
doc_17552
Receive a message, calculate the digest of the message using authkey as the key, and then send the digest back. If a welcome message is not received, then AuthenticationError is raised.
doc_17553
Set zlabel. See doc for set_ylabel for description.
doc_17554
Represents the C signed long datatype. The constructor accepts an optional integer initializer; no overflow checking is done.
doc_17555
Connect to the server specified when the object was created. By default, this is called automatically when making a request if the client does not already have a connection.
doc_17556
Return the built environ. Changelog Changed in version 0.15: The content type and length headers are set based on input stream detection. Previously this only set the WSGI keys. Return type WSGIEnvironment
doc_17557
The interface is currently defined as follows. The __reduce__() method takes no argument and shall return either a string or preferably a tuple (the returned object is often referred to as the “reduce value”). If a string is returned, the string should be interpreted as the name of a global variable. It should be the o...
doc_17558
Returns a new tensor with the sigmoid of the elements of input. outi=11+e−inputi\text{out}_{i} = \frac{1}{1 + e^{-\text{input}_{i}}} Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4) >>> a tensor([ 0.9213, 1.0887, -0.885...
doc_17559
Get the xaxis' tick labels. Parameters minorbool Whether to return the minor or the major ticklabels. whichNone, ('minor', 'major', 'both') Overrides minor. Selects which ticklabels to return Returns list of Text Notes The tick label strings are not populated until a draw method has been called. Se...
doc_17560
Accept: application/json Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed Content-Type: application/json Content-Length: 42 {"detail": "Method 'DELETE' not allowed."} Validation errors are handled slightly differently, and will include...
doc_17561
Enable the toggle tool. trigger calls this method when toggled is False.
doc_17562
This signal is sent when an unhandled exception happens during request processing, including when debugging. The exception is passed to the subscriber as exception. This signal is not sent for HTTPException, or other exceptions that have error handlers registered, unless the exception was raised from an error handler. ...
doc_17563
tf.compat.v1.tpu.experimental.shared_embedding_columns( categorical_columns, dimension, combiner='mean', initializer=None, shared_embedding_collection_name=None, max_sequence_lengths=None, learning_rate_fn=None, embedding_lookup_device=None, tensor_core_shape=None, use_safe_embedding_lookup=True ) Note...
doc_17564
Two-dimensional, size-mutable, potentially heterogeneous tabular data. Data structure also contains labeled axes (rows and columns). Arithmetic operations align on both row and column labels. Can be thought of as a dict-like container for Series objects. The primary pandas data structure. Parameters data:ndarray ...
doc_17565
test if any sound is being mixed get_busy() -> bool Returns True if the mixer is busy mixing any channels. If the mixer is idle then this return False.
doc_17566
'blogs.blog': lambda o: "/blogs/%s/" % o.slug, 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), } The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti...
doc_17567
Return whether the given transform is a sub-tree of this transform. This routine uses transform equality to identify sub-trees, therefore in many situations it is object id which will be used. For the case where the given transform represents the whole of this transform, returns True.
doc_17568
Given a distance (float), returns the point (or closest point) within the geometry (LineString or MultiLineString) at that distance. The normalized version takes the distance as a float between 0 (origin) and 1 (endpoint). Reverse of GEOSGeometry.project().
doc_17569
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju...
doc_17570
Required. 150 characters or fewer. Usernames may contain alphanumeric, _, @, +, . and - characters. The max_length should be sufficient for many use cases. If you need a longer length, please use a custom user model. If you use MySQL with the utf8mb4 encoding (recommended for proper Unicode support), specify at most ma...
doc_17571
Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses that belong to the network, except the Subnet-Router anycast address. For networks with a mask length of 127, the Subnet-Router anycast address is also included in the result. Networks with a mask of 128 will return a li...
doc_17572
See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.apply_brightness_shift tf.keras.preprocessing.image.apply_brightness_shift( x, brightness ) Arguments x Input tensor. Must be 3D. brightness Float. The new brightness value. channel_axis Index of axis for channels i...
doc_17573
Determine whether to include “future” objects on this page, where “future” means objects in which the field specified in date_field is greater than the current date/time. Returns allow_future by default.
doc_17574
alias of mpl_toolkits.axes_grid1.parasite_axes.AxesParasiteParasiteAuxTrans
doc_17575
Bases: matplotlib.patches.Patch 3D patch object. The following kwarg properties are supported 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 unknown animated bool antialiased or aa bool or None capstyle CapStyle...
doc_17576
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceAccumulatorTakeGradient tf.raw_ops.ResourceAccumulatorTakeGradient( handle, num_required, dtype, name=None ) The op blocks until sufficient (i.e., more than num_required) gradients have been accumulated. If the accumulator has already aggregated ...
doc_17577
tf.compat.v1.estimator.DNNLinearCombinedEstimator( head, model_dir=None, linear_feature_columns=None, linear_optimizer='Ftrl', dnn_feature_columns=None, dnn_optimizer='Adagrad', dnn_hidden_units=None, dnn_activation_fn=tf.nn.relu, dnn_dropout=None, input_layer_partitioner=None, config=None, linear_s...
doc_17578
Accept a connection. The socket must be bound to an address and listening for connections. The return value is a pair (conn, address) where conn is a new socket object usable to send and receive data on the connection, and address is the address bound to the socket on the other end of the connection. The newly created ...
doc_17579
Flatten a structured data-type description. Examples >>> from numpy.lib import recfunctions as rfn >>> ndtype = np.dtype([('a', '<i4'), ('b', [('ba', '<f8'), ('bb', '<i4')])]) >>> rfn.flatten_descr(ndtype) (('a', dtype('int32')), ('ba', dtype('float64')), ('bb', dtype('int32')))
doc_17580
See Migration guide for more details. tf.compat.v1.signal.overlap_and_add tf.signal.overlap_and_add( signal, frame_step, name=None ) Adds potentially overlapping frames of a signal with shape [..., frames, frame_length], offsetting subsequent frames by frame_step. The resulting tensor has shape [..., output_size...
doc_17581
Leave One Group Out cross-validator Provides train/test indices to split data according to a third-party provided group. This group information can be used to encode arbitrary domain specific stratifications of the samples as integers. For instance the groups could be the year of collection of the samples and thus al...
doc_17582
An alternative character used by the operating system to separate pathname components, or None if only one separator character exists. This is set to '/' on Windows systems where sep is a backslash. Also available via os.path.
doc_17583
Multi-task Lasso model trained with L1/L2 mixed-norm as regularizer. The optimization objective for Lasso is: (1 / (2 * n_samples)) * ||Y - XW||^2_Fro + alpha * ||W||_21 Where: ||W||_21 = \sum_i \sqrt{\sum_j w_{ij}^2} i.e. the sum of norm of each row. Read more in the User Guide. Parameters alphafloat, default=...
doc_17584
tf.experimental.numpy.nextafter( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.nextafter.
doc_17585
Return the inverse hyperbolic sine of x.
doc_17586
Estimate covariance with the Oracle Approximating Shrinkage algorithm. Parameters Xarray-like of shape (n_samples, n_features) Data from which to compute the covariance estimate. assume_centeredbool, default=False If True, data will not be centered before computation. Useful to work with data whose mean is ...
doc_17587
Predict confidence scores for samples. The confidence score for a sample is proportional to the signed distance of that sample to the hyperplane. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns array, shape=(n_samples,) if n_classes == 2 else (n_samples, n_classes) ...
doc_17588
Return the number of summary properties, through MsiSummaryInfoGetPropertyCount().
doc_17589
See class documentation.
doc_17590
Get the current hatch style.
doc_17591
GDALBand instances are not created explicitly, but rather obtained from a GDALRaster object, through its bands attribute. The GDALBands contain the actual pixel values of the raster. description The name or description of the band, if any. width The width of the band in pixels (X-axis). height The heigh...
doc_17592
class sklearn.cross_decomposition.PLSSVD(n_components=2, *, scale=True, copy=True) [source] Partial Least Square SVD. This transformer simply performs a SVD on the crosscovariance matrix X’Y. It is able to project both the training data X and the targets Y. The training data X is projected on the left singular vector...
doc_17593
tf.random_normal_initializer( mean=0.0, stddev=0.05, seed=None ) Initializers allow you to pre-specify an initialization strategy, encoded in the Initializer object, without knowing the shape and dtype of the variable being initialized. Examples: def make_variables(k, initializer): return (tf.Variable(initializ...
doc_17594
[Deprecated] Update the subplot position from self.figure.subplotpars. Notes Deprecated since version 3.4.
doc_17595
Invokes a CLI command in an isolated environment. See CliRunner.invoke for full method documentation. See Testing CLI Commands for examples. If the obj argument is not given, passes an instance of ScriptInfo that knows how to load the Flask app being tested. Parameters cli (Optional[Any]) – Command object to invoke...
doc_17596
A real dictionary used to store the contents of the UserDict class.
doc_17597
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_17598
Compute the decision function of X. 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. Returns scorendarray of shape (n_samples, n_classes) or (n_samples...
doc_17599
See Migration guide for more details. tf.compat.v1.nn.log_poisson_loss tf.nn.log_poisson_loss( targets, log_input, compute_full_loss=False, name=None ) Gives the log-likelihood loss between the prediction and the target under the assumption that the target has a Poisson distribution. Caveat: By default, this is ...