_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_13700
Return the maximum along a given axis. Parameters axis{None, int}, optional Axis along which to operate. By default, axis is None and the flattened input is used. outarray_like, optional Alternative output array in which to place the result. Must be of the same shape and buffer length as the expected output...
doc_13701
Perform fit on X and returns labels for X. Returns -1 for outliers and 1 for inliers. Parameters X{array-like, sparse matrix, dataframe} of shape (n_samples, n_features) yIgnored Not used, present for API consistency by convention. Returns yndarray of shape (n_samples,) 1 for inliers, -1 for outliers.
doc_13702
Tests if each element of input has its sign bit set (is less than zero) or not. Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.tensor([0.7, -1.2, 0., 2.3]) >>> torch.signbit(a) tensor([ False, True, False, False])
doc_13703
A subclass of ImproperConnectionState.
doc_13704
The day of the week with Monday=0, Sunday=6. Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which is denoted by 6. This method is available on both Series with datetime values (using the dt accessor) or DatetimeIndex. Returns Series or Index Containin...
doc_13705
tf.optimizers.SGD Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.SGD tf.keras.optimizers.SGD( learning_rate=0.01, momentum=0.0, nesterov=False, name='SGD', **kwargs ) Update rule for parameter w with gradient g when momentum is 0: w = w - learning_rate * g Updat...
doc_13706
'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', ] } You can also set the renderers used for an individual view, or viewset, using the APIView class-based views. from django.contrib.auth.models import User from rest_framewor...
doc_13707
Return whether face is colored.
doc_13708
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 array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or list of bools array a...
doc_13709
Prevents a document from loading any cross-origin resources that do not explicitly grant the document permission. Values must be a member of the werkzeug.http.COEP enum.
doc_13710
Return a list of network interface information (index int, name string) tuples. OSError if the system call fails. Availability: Unix, Windows. New in version 3.3. Changed in version 3.8: Windows support was added. Note On Windows network interfaces have different names in different contexts (all names are examples...
doc_13711
Bases: matplotlib.offsetbox.OffsetBox An offset box placed according to location loc. AnchoredOffsetbox has a single child. When multiple children are needed, use an extra OffsetBox to enclose them. By default, the offset box is anchored against its parent axes. You may explicitly specify the bbox_to_anchor. Paramet...
doc_13712
A one-character string used to quote fields containing special characters, such as the delimiter or quotechar, or which contain new-line characters. It defaults to '"'.
doc_13713
Return the current setting for feature featurename. If the feature is not recognized, SAXNotRecognizedException is raised. The well-known featurenames are listed in the module xml.sax.handler.
doc_13714
tf.compat.v1.scatter_add( ref, indices, updates, use_locking=False, name=None ) This operation computes # Scalar indices ref[indices, ...] += updates[...] # Vector indices (for each i) ref[indices[i], ...] += updates[i, ...] # High rank indices (for each i, ..., j) ref[indices[i, ..., j], ...] += updates[i, ...,...
doc_13715
alias of mpl_toolkits.axisartist.floating_axes.FloatingAxesHostAxes
doc_13716
The type for code objects such as returned by compile(). Raises an auditing event code.__new__ with arguments code, filename, name, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags. Note that the audited arguments may not match the names or positions required by the initializer. The audit event only...
doc_13717
socket.PF_PACKET PACKET_* Many constants of these forms, documented in the Linux documentation, are also defined in the socket module. Availability: Linux >= 2.2.
doc_13718
load an image from a file (or file-like object) load_extended(filename) -> Surface load_extended(fileobj, namehint="") -> Surface This function is similar to pygame.image.load(), except that this function can only be used if pygame was built with extended image format support. From version 2.0.1, this function is alw...
doc_13719
Compute prod of group values. Parameters numeric_only:bool, default True Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. min_count:int, default 0 The required number of valid values to perform the operation. If fewer than min_count non-NA values...
doc_13720
Sort by the values. Sort a Series in ascending or descending order by some criterion. Parameters axis:{0 or ‘index’}, default 0 Axis to direct sorting. The value ‘index’ is accepted for compatibility with DataFrame.sort_values. ascending:bool or list of bools, default True If True, sort values in ascending ...
doc_13721
The first source line of the code object (if available)
doc_13722
Wait until the event is set. If the event is set, return True immediately. Otherwise block until another task calls set().
doc_13723
Forces completion of a torch.jit.Future[T] asynchronous task, returning the result of the task. See fork() for docs and examples. :param func: an asynchronous task reference, created through torch.jit.fork :type func: torch.jit.Future[T] Returns the return value of the the completed task Return type T
doc_13724
Convert a value to a tagged representation if necessary. Parameters value (Any) – Return type Dict[str, Any]
doc_13725
operator.__contains__(a, b) Return the outcome of the test b in a. Note the reversed operands.
doc_13726
Return the sum of x and y.
doc_13727
tf.estimator.experimental.RNNClassifier( sequence_feature_columns, context_feature_columns=None, units=None, cell_type=USE_DEFAULT, rnn_cell_fn=None, return_sequences=False, model_dir=None, n_classes=2, weight_column=None, label_vocabulary=None, optimizer='Adagrad', loss_reduction=losses_utils.Reduc...
doc_13728
Used if copy.deepcopy is called on an array.
doc_13729
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_13730
Returns a list of feature names, ordered by their indices. If one-of-K coding is applied to categorical features, this will include the constructed feature names but not the original ones.
doc_13731
os.O_DIRECT os.O_DIRECTORY os.O_NOFOLLOW os.O_NOATIME os.O_PATH os.O_TMPFILE os.O_SHLOCK os.O_EXLOCK The above constants are extensions and not present if they are not defined by the C library. Changed in version 3.4: Add O_PATH on systems that support it. Add O_TMPFILE, only available on Linux Kernel ...
doc_13732
Make box plots from DataFrameGroupBy data. Parameters grouped:Grouped DataFrame subplots:bool False - no subplots will be used True - create a subplot for each group. column:column name or list of names, or vector Can be any valid input to groupby. fontsize:int or str rot:label rotation angle grid...
doc_13733
Apply the power transform to each feature using the fitted lambdas. Parameters Xarray-like of shape (n_samples, n_features) The data to be transformed using a power transformation. Returns X_transndarray of shape (n_samples, n_features) The transformed data.
doc_13734
See Migration guide for more details. tf.compat.v1.raw_ops.Erfc tf.raw_ops.Erfc( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_13735
Return the normal form form for the Unicode string unistr. Valid values for form are ‘NFC’, ‘NFKC’, ‘NFD’, and ‘NFKD’. The Unicode standard defines various normalization forms of a Unicode string, based on the definition of canonical equivalence and compatibility equivalence. In Unicode, several characters can be expre...
doc_13736
Draw lines on the colorbar. The lines are appended to the list lines. Parameters levelsarray-like The positions of the lines. colorscolor or list of colors Either a single color applying to all lines or one color value for each line. linewidthsfloat or array-like Either a single linewidth applying to al...
doc_13737
The name of the manager to use for the model’s _default_manager.
doc_13738
Create and return a ctypes object from a numpy array. Actually anything that exposes the __array_interface__ is accepted.
doc_13739
By default, wake up one thread waiting on this condition, if any. If the calling thread has not acquired the lock when this method is called, a RuntimeError is raised. This method wakes up at most n of the threads waiting for the condition variable; it is a no-op if no threads are waiting. The current implementation wa...
doc_13740
Call to <new_target>.dnd_enter(source, event) Call to <target>.dnd_commit(source, event) to notify of drop Call to <source>.dnd_end(target, event) to signal end of drag-and-drop class tkinter.dnd.DndHandler(source, event) The DndHandler class handles drag-and-drop events tracking Motion and ButtonRelease events ...
doc_13741
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_13742
See Migration guide for more details. tf.compat.v1.raw_ops.TruncatedNormal tf.raw_ops.TruncatedNormal( shape, dtype, seed=0, seed2=0, name=None ) The generated values follow a normal distribution with mean 0 and standard deviation 1, except that values whose magnitude is more than 2 standard deviations from the ...
doc_13743
Return the default unit for x or None for the given axis.
doc_13744
See Migration guide for more details. tf.compat.v1.one_hot tf.one_hot( indices, depth, on_value=None, off_value=None, axis=None, dtype=None, name=None ) See also tf.fill, tf.eye. The locations represented by indices in indices take value on_value, while all other locations take value off_value. on_value and off_...
doc_13745
Return an OpenerDirector instance, which chains the handlers in the order given. handlers can be either instances of BaseHandler, or subclasses of BaseHandler (in which case it must be possible to call the constructor without any parameters). Instances of the following classes will be in front of the handlers, unless t...
doc_13746
Return whether the Unicode string unistr is in the normal form form. Valid values for form are ‘NFC’, ‘NFKC’, ‘NFD’, and ‘NFKD’. New in version 3.8.
doc_13747
Get number of calls. Returns n_calls: int number of distance computation calls
doc_13748
Performs a single optimization step. Parameters closure (callable, optional) – A closure that reevaluates the model and returns the loss.
doc_13749
This method is the main public interface to the TextTestRunner. This method takes a TestSuite or TestCase instance. A TestResult is created by calling _makeResult() and the test(s) are run and the results printed to stdout.
doc_13750
Event handler for single-click event on file.
doc_13751
Uuencode file in_file into file out_file. The uuencoded file will have the header specifying name and mode as the defaults for the results of decoding the file. The default defaults are taken from in_file, or '-' and 0o666 respectively. If backtick is true, zeros are represented by '`' instead of spaces. Changed in ve...
doc_13752
Computes the Mean Squared Error between two covariance estimators. (In the sense of the Frobenius norm). Parameters comp_covarray-like of shape (n_features, n_features) The covariance to compare with. norm{“frobenius”, “spectral”}, default=”frobenius” The type of norm used to compute the error. Available er...
doc_13753
An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctyp...
doc_13754
Find the edge magnitude using the Farid transform. Parameters image2-D array Image to process. mask2-D array, optional An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. Returns o...
doc_13755
Decode the base85-encoded bytes-like object or ASCII string b and return the decoded bytes. Padding is implicitly removed, if necessary. New in version 3.4.
doc_13756
Fill NA/NaN values with the specified value. Parameters value:scalar Scalar value to use to fill holes (e.g. 0). This value cannot be a list-likes. downcast:dict, default is None A dict of item->dtype of what to downcast if possible, or the string ‘infer’ which will try to downcast to an appropriate equal t...
doc_13757
Return a dictionary of all the properties of the artist.
doc_13758
See Migration guide for more details. tf.compat.v1.train.latest_checkpoint tf.train.latest_checkpoint( checkpoint_dir, latest_filename=None ) Gets the checkpoint state given the provided checkpoint_dir and looks for a corresponding TensorFlow 2 (preferred) or TensorFlow 1.x checkpoint path. The latest_filename a...
doc_13759
Return boolean Series denoting duplicate rows. Considering certain columns is optional. Parameters subset:column label or sequence of labels, optional Only consider certain columns for identifying duplicates, by default use all of the columns. keep:{‘first’, ‘last’, False}, default ‘first’ Determines which ...
doc_13760
Set the artist's clip Bbox. Parameters clipboxBbox
doc_13761
Return whether the artist is animated.
doc_13762
Series basis polynomial of degree deg. Returns the series representing the basis polynomial of degree deg. New in version 1.7.0. Parameters degint Degree of the basis polynomial for the series. Must be >= 0. domain{None, array_like}, optional If given, the array must be of the form [beg, end], where beg a...
doc_13763
Set the background property of the window to the character ch, with attributes attr. The change is then applied to every character position in that window: The attribute of every character in the window is changed to the new background attribute. Wherever the former background character appears, it is changed to the n...
doc_13764
Show ImageViewer and attached plugins. This behaves much like matplotlib.pyplot.show and QWidget.show.
doc_13765
Return the names of defined fonts.
doc_13766
Return whether the artist is to be rasterized.
doc_13767
Special hook for ufuncs. Wraps the numpy array and sets the mask according to context.
doc_13768
Bases: torch.distributions.distribution.Distribution Creates a Geometric distribution parameterized by probs, where probs is the probability of success of Bernoulli trials. It represents the probability that in k+1k + 1 Bernoulli trials, the first kk trials failed, before seeing a success. Samples are non-negative ...
doc_13769
New in Django 3.2. Callback signaling that the upload was interrupted, e.g. when the user closed their browser during file upload.
doc_13770
See Migration guide for more details. tf.compat.v1.raw_ops.MatrixDiagPart tf.raw_ops.MatrixDiagPart( input, name=None ) This operation returns a tensor with the diagonal part of the batched input. The diagonal part is computed as follows: Assume input has k dimensions [I, J, K, ..., M, N], then the output is a t...
doc_13771
Alias for get_linestyle.
doc_13772
Checks for an ASCII alphabetic character; it is equivalent to isupper(c) or islower(c).
doc_13773
Adds object_list to the context. If allow_empty is True then display an empty list. If allow_empty is False then raise a 404 error.
doc_13774
See Migration guide for more details. tf.compat.v1.raw_ops.RegexReplace tf.raw_ops.RegexReplace( input, pattern, rewrite, replace_global=True, name=None ) replacement string provided in rewrite. It follows the re2 syntax (https://github.com/google/re2/wiki/Syntax) Args: input: A Tensor of type string. The text t...
doc_13775
operator.__mul__(a, b) Return a * b, for a and b numbers.
doc_13776
Convert series to series of this class. The series is expected to be an instance of some polynomial series of one of the types supported by by the numpy.polynomial module, but could be some other class that supports the convert method. New in version 1.7.0. Parameters seriesseries The series instance to be co...
doc_13777
Acquire the lock. This method waits until the lock is unlocked, sets it to locked and returns True. When more than one coroutine is blocked in acquire() waiting for the lock to be unlocked, only one coroutine eventually proceeds. Acquiring a lock is fair: the coroutine that proceeds will be the first coroutine that sta...
doc_13778
See Migration guide for more details. tf.compat.v1.raw_ops.Gather tf.raw_ops.Gather( params, indices, validate_indices=True, name=None ) indices must be an integer tensor of any dimension (usually 0-D or 1-D). Produces an output tensor with shape indices.shape + params.shape[1:] where: # Scalar indices output[:,...
doc_13779
Register a new tag with this serializer. Parameters tag_class (Type[flask.json.tag.JSONTag]) – tag class to register. Will be instantiated with this serializer instance. force (bool) – overwrite an existing tag. If false (default), a KeyError is raised. index (Optional[int]) – index to insert the new tag in the t...
doc_13780
Integer or None. Netscape cookies have version 0. RFC 2965 and RFC 2109 cookies have a version cookie-attribute of 1. However, note that http.cookiejar may ‘downgrade’ RFC 2109 cookies to Netscape cookies, in which case version is 0.
doc_13781
Bases: torch.distributions.exp_family.ExponentialFamily Creates a normal (also called Gaussian) distribution parameterized by loc and scale. Example: >>> m = Normal(torch.tensor([0.0]), torch.tensor([1.0])) >>> m.sample() # normally distributed with loc=0 and scale=1 tensor([ 0.1046]) Parameters loc (float or T...
doc_13782
See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.SlurmClusterResolver tf.distribute.cluster_resolver.SlurmClusterResolver( jobs=None, port_base=8888, gpus_per_node=None, gpus_per_task=None, tasks_per_node=None, auto_set_gpu=True, rpc_layer='grpc' ) This is an implementation of C...
doc_13783
Gaussian distribution. mu is the mean, and sigma is the standard deviation. This is slightly faster than the normalvariate() function defined below. Multithreading note: When two threads call this function simultaneously, it is possible that they will receive the same return value. This can be avoided in three ways. 1)...
doc_13784
Draw a bounding box around self. Parameters rectpropsdict with properties for patches.FancyBboxPatch The default boxstyle is 'square'. The mutation scale of the patches.FancyBboxPatch is set to the fontsize. Examples t.set_bbox(dict(facecolor='red', alpha=0.5))
doc_13785
Add video data to summary. Note that this requires the moviepy package. Parameters tag (string) – Data identifier vid_tensor (torch.Tensor) – Video data global_step (int) – Global step value to record fps (float or int) – Frames per second walltime (float) – Optional override default walltime (time.time()) se...
doc_13786
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters **paramsdict Estimator parameters. Returns...
doc_13787
Returns the distance of each sample from the decision boundary for each class. This can only be used with estimators which implement the decision_function method. Parameters Xarray-like of shape (n_samples, n_features) Returns Tarray-like of shape (n_samples, n_classes) or (n_samples,) for binary classifica...
doc_13788
Perform ceil operation on the data to the specified freq. Parameters freq:str or Offset The frequency level to ceil the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possible freq values. ambiguous:‘infer’, bool-ndarray, ‘NaT’, default ‘raise’ ...
doc_13789
tf.optimizers.Adam Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.Adam tf.keras.optimizers.Adam( learning_rate=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-07, amsgrad=False, name='Adam', **kwargs ) Adam optimization is a stochastic gradient descent method tha...
doc_13790
Size, in bytes, of the “chunks” Django should store into memory and feed into the handler. That is, this attribute controls the size of chunks fed into FileUploadHandler.receive_data_chunk. For maximum performance the chunk sizes should be divisible by 4 and should not exceed 2 GB (231 bytes) in size. When there are mu...
doc_13791
Return an array representing the data in the Index. Warning We recommend using Index.array or Index.to_numpy(), depending on whether you need a reference to the underlying data or a NumPy array. Returns array: numpy.ndarray or ExtensionArray See also Index.array Reference to the underlying data. Index.to_...
doc_13792
UNUSED: Set the canvas size in pixels. Certain backends may implement a similar method internally, but this is not a requirement of, nor is it used by, Matplotlib itself.
doc_13793
Returns the file system path to the resource. If the resource does not concretely exist on the file system, raise FileNotFoundError.
doc_13794
Select a scale for the range from vmin to vmax. Subclasses should override this method to change locator behaviour.
doc_13795
Bases: mpl_toolkits.axisartist.grid_helper_curvelinear.GridHelperCurveLinear aux_trans : a transform from the source (curved) coordinate to target (rectilinear) coordinate. An instance of MPL's Transform (inverse transform should be defined) or a tuple of two callable objects which defines the transform and its inver...
doc_13796
Perform Fast Independent Component Analysis. Read more in the User Guide. Parameters Xarray-like of shape (n_samples, n_features) Training vector, where n_samples is the number of samples and n_features is the number of features. n_componentsint, default=None Number of components to extract. If None no dime...
doc_13797
The SSL version to use (defaults to ssl.PROTOCOL_SSLv23).
doc_13798
Return the complex number x with polar coordinates r and phi. Equivalent to r * (math.cos(phi) + math.sin(phi)*1j).
doc_13799
Return the shell-style pattern converted to a regular expression for using with re.match(). Example: >>> import fnmatch, re >>> >>> regex = fnmatch.translate('*.txt') >>> regex '(?s:.*\\.txt)\\Z' >>> reobj = re.compile(regex) >>> reobj.match('foobar.txt') <re.Match object; span=(0, 10), match='foobar.txt'>