_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_29800
Set the (group) id for the artist. Parameters gidstr
doc_29801
Raised when a reference is made to a local variable in a function or method, but no value has been bound to that variable. This is a subclass of NameError.
doc_29802
Convert datetime objects to Matplotlib dates. Parameters ddatetime.datetime or numpy.datetime64 or sequences of these Returns float or sequence of floats Number of days since the epoch. See get_epoch for the epoch, which can be changed by rcParams["date.epoch"] (default: '1970-01-01T00:00:00') or set_epoch....
doc_29803
Accept a connection. The socket must be bound to an address and listening for connections. The return value can be either None or 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....
doc_29804
Abort signal from abort(3).
doc_29805
This class is the low-level building block of the module. It uses xml.parsers.expat for efficient, event-based parsing of XML. It can be fed XML data incrementally with the feed() method, and parsing events are translated to a push API - by invoking callbacks on the target object. If target is omitted, the standard Tre...
doc_29806
tf.experimental.numpy.positive( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.positive.
doc_29807
Others have write permission.
doc_29808
determine which modifier keys are being held get_mods() -> int Returns a single integer representing a bitmask of all the modifier keys being held. Using bitwise operators you can test if specific modifier keys are pressed.
doc_29809
Decorator for skipping tests if resource is not available.
doc_29810
Fit the model from data in X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training vector, where n_samples in the number of samples and n_features is the number of features. Returns selfobject Returns the instance itself.
doc_29811
See Migration guide for more details. tf.compat.v1.raw_ops.Erfinv tf.raw_ops.Erfinv( 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_29812
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_29813
max_error metric calculates the maximum residual error. Read more in the User Guide. Parameters y_truearray-like of shape (n_samples,) Ground truth (correct) target values. y_predarray-like of shape (n_samples,) Estimated target values. Returns max_errorfloat A positive floating point value (the bes...
doc_29814
DateOffset of one month end. Attributes base Returns a copy of the calling offset object with n=1 and all other attributes equal. freqstr kwds n name nanos normalize rule_code Methods __call__(*args, **kwargs) Call self as a function. rollback Roll provided date backwar...
doc_29815
Shifted opposite of the Local Outlier Factor of X. Bigger is better, i.e. large values correspond to inliers. Only available for novelty detection (when novelty is set to True). The shift offset allows a zero threshold for being an outlier. The argument X is supposed to contain new data: if X contains a point from trai...
doc_29816
See Migration guide for more details. tf.compat.v1.math.reduce_min tf.compat.v1.reduce_min( input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None, keep_dims=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: kee...
doc_29817
See torch.tril()
doc_29818
Alias for set_linestyle.
doc_29819
copy Sound samples into an array array(Sound) -> array Creates a new array for the sound data and copies the samples. The array will always be in the format returned from pygame.mixer.get_init().
doc_29820
See Migration guide for more details. tf.compat.v1.keras.layers.InputLayer tf.keras.layers.InputLayer( input_shape=None, batch_size=None, dtype=None, input_tensor=None, sparse=False, name=None, ragged=False, **kwargs ) It can either wrap an existing tensor (pass an input_tensor argument) or create a placehol...
doc_29821
Fit label encoder and return encoded labels. Parameters yarray-like of shape (n_samples,) Target values. Returns yarray-like of shape (n_samples,)
doc_29822
Instances of this class have __call__() methods identical in signature to the built-in function compile(), but with the difference that if the instance compiles program text containing a __future__ statement, the instance ‘remembers’ and compiles all subsequent program texts with the statement in force.
doc_29823
class sklearn.ensemble.HistGradientBoostingRegressor(loss='least_squares', *, learning_rate=0.1, max_iter=100, max_leaf_nodes=31, max_depth=None, min_samples_leaf=20, l2_regularization=0.0, max_bins=255, categorical_features=None, monotonic_cst=None, warm_start=False, early_stopping='auto', scoring='loss', validation_f...
doc_29824
Create a directory named path with numeric mode mode. If the directory already exists, FileExistsError is raised. On some systems, mode is ignored. Where it is used, the current umask value is first masked out. If bits other than the last 9 (i.e. the last 3 digits of the octal representation of the mode) are set, their...
doc_29825
bytearray.replace(old, new[, count]) Return a copy of the sequence with all occurrences of subsequence old replaced by new. If the optional argument count is given, only the first count occurrences are replaced. The subsequence to search for and its replacement may be any bytes-like object. Note The bytearray versio...
doc_29826
The family of protocols to which the server’s socket belongs. Common examples are socket.AF_INET and socket.AF_UNIX.
doc_29827
Computes the LU factorization of a matrix or batches of matrices A. Returns a tuple containing the LU factorization and pivots of A. Pivoting is done if pivot is set to True. Note The pivots returned by the function are 1-indexed. If pivot is False, then the returned pivots is a tensor filled with zeros of the appropr...
doc_29828
tf.profiler.experimental.client.monitor( service_addr, duration_ms, level=1 ) The monitoring result is a light weight performance summary of your model execution. This method will block the caller thread until it receives the monitoring result. This method currently supports Cloud TPU only. Args service_add...
doc_29829
Parameters input (Tensor) – the input tensor. Tests if any element in input evaluates to True. Note This function matches the behaviour of NumPy in returning output of dtype bool for all supported dtypes except uint8. For uint8 the dtype of output is uint8 itself. Example: >>> a = torch.rand(1, 2).bool() >>> a te...
doc_29830
Assign new columns to a DataFrame. Returns a new object with all original columns in addition to new ones. Existing columns that are re-assigned will be overwritten. Parameters **kwargs:dict of {str: callable or Series} The column names are keywords. If the values are callable, they are computed on the DataFram...
doc_29831
class ast.Sub class ast.Mult class ast.Div class ast.FloorDiv class ast.Mod class ast.Pow class ast.LShift class ast.RShift class ast.BitOr class ast.BitXor class ast.BitAnd class ast.MatMult Binary operator tokens.
doc_29832
Return whether to use fancy math formatting. See also ScalarFormatter.set_useMathText
doc_29833
returns a linear interpolation to the given vector. lerp(Vector2, float) -> Vector2 Returns a Vector which is a linear interpolation between self and the given Vector. The second parameter determines how far between self and other the result is going to be. It must be a value between 0 and 1 where 0 means self and 1 ...
doc_29834
Returns the convolution of this mask with another mask convolve(othermask) -> Mask convolve(othermask, outputmask=None, offset=(0, 0)) -> Mask Convolve this mask with the given othermask. Parameters: othermask (Mask) -- mask to convolve this mask with outputmask (Mask or NoneType) -- (optional) mask for outp...
doc_29835
Compute Harris corner measure response image. This corner detector uses information from the auto-correlation matrix A: A = [(imx**2) (imx*imy)] = [Axx Axy] [(imx*imy) (imy**2)] [Axy Ayy] Where imx and imy are first derivatives, averaged with a gaussian filter. The corner measure is then defined as: det(A)...
doc_29836
from django.shortcuts import get_object_or_404 from myapps.serializers import UserSerializer from rest_framework import viewsets from rest_framework.response import Response class UserViewSet(viewsets.ViewSet): """ A simple ViewSet for listing or retrieving users. """ def list(self, request): q...
doc_29837
Create a spreadsheet-style pivot table as a DataFrame. The levels in the pivot table will be stored in MultiIndex objects (hierarchical indexes) on the index and columns of the result DataFrame. Parameters values:column to aggregate, optional index:column, Grouper, array, or list of the previous If an array i...
doc_29838
Compare two arrays relatively to their spacing. This is a relatively robust method to compare two arrays whose amplitude is variable. Parameters x, yarray_like Input arrays. nulpint, optional The maximum number of unit in the last place for tolerance (see Notes). Default is 1. Returns None Raises A...
doc_29839
Check whether an array-like or dtype is of the Interval dtype. Parameters arr_or_dtype:array-like or dtype The array-like or dtype to check. Returns boolean Whether or not the array-like or dtype is of the Interval dtype. Examples >>> is_interval_dtype(object) False >>> is_interval_dtype(IntervalDtyp...
doc_29840
The device map locations.
doc_29841
Returns a tensor filled with uninitialized data. The shape and strides of the tensor is defined by the variable argument size and stride respectively. torch.empty_strided(size, stride) is equivalent to torch.empty(size).as_strided(size, stride). Warning More than one element of the created tensor may refer to a single...
doc_29842
Ordered list of field names, or None if there are no fields. The names are ordered according to increasing byte offset. This can be used, for example, to walk through all of the named fields in offset order. Examples >>> dt = np.dtype([('name', np.str_, 16), ('grades', np.float64, (2,))]) >>> dt.names ('name', 'grade...
doc_29843
For each element in self, return a copy of the string with all occurrences of substring old replaced by new. See also char.replace
doc_29844
Encode the object as an enumerated type or categorical variable. This method is useful for obtaining a numeric representation of an array when all that matters is identifying distinct values. factorize is available as both a top-level function pandas.factorize(), and as a method Series.factorize() and Index.factorize...
doc_29845
AutoLocator MaxNLocator with simple defaults. This is the default tick locator for most plotting. MaxNLocator Finds up to a max number of intervals with ticks at nice locations. LinearLocator Space ticks evenly from min to max. LogLocator Space ticks logarithmically from min to max. MultipleLocator Ticks and ra...
doc_29846
The Control widget is also known as the SpinBox widget. The user can adjust the value by pressing the two arrow buttons or by entering the value directly into the entry. The new value will be checked against the user-defined upper and lower limits.
doc_29847
Fits this SelfTrainingClassifier to a dataset. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Array representing the data. y{array-like, sparse matrix} of shape (n_samples,) Array representing the labels. Unlabeled samples should have the label -1. Returns selfobject Return...
doc_29848
Outputs the record to the file, catering for rollover as described previously.
doc_29849
Return the alternate marker face color. See also set_markerfacecoloralt.
doc_29850
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyAdadelta tf.raw_ops.ResourceSparseApplyAdadelta( var, accum, accum_update, lr, rho, epsilon, grad, indices, use_locking=False, name=None ) Args var A Tensor of type resource. accum A Tensor of type resource. Should...
doc_29851
Returns the quality of the key. Changelog New in version 0.6: In previous versions you had to use the item-lookup syntax (eg: obj[key] instead of obj.quality(key))
doc_29852
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_29853
Get the radix character (decimal dot, decimal comma, etc.).
doc_29854
Return True if pathname path is a mount point: a point in a file system where a different file system has been mounted. On POSIX, the function checks whether path’s parent, path/.., is on a different device than path, or whether path/.. and path point to the same i-node on the same device — this should detect mount poi...
doc_29855
Alias for set_linestyle.
doc_29856
Query or modify the heading options for the specified column. If kw is not given, returns a dict of the heading option values. If option is specified then the value for that option is returned. Otherwise, sets the options to the corresponding values. The valid options/values are: text: text The text to display in t...
doc_29857
See Migration guide for more details. tf.compat.v1.raw_ops.StringJoin tf.raw_ops.StringJoin( inputs, separator='', name=None ) with the given separator (default is an empty separator). Examples: s = ["hello", "world", "tensorflow"] tf.strings.join(s, " ") <tf.Tensor: shape=(), dtype=string, numpy=b'hello world ...
doc_29858
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_29859
Return self@value.
doc_29860
Test whether the artist contains the mouse event. Parameters mouseeventmatplotlib.backend_bases.MouseEvent Returns containsbool Whether any values are within the radius. detailsdict An artist-specific dictionary of details of the event context, such as which points are contained in the pick radius. Se...
doc_29861
Add a horizontal line across the axis. Parameters yfloat, default: 0 y position in data coordinates of the horizontal line. xminfloat, default: 0 Should be between 0 and 1, 0 being the far left of the plot, 1 the far right of the plot. xmaxfloat, default: 1 Should be between 0 and 1, 0 being the far lef...
doc_29862
Remove and return an element from the left side of the deque. If no elements are present, raises an IndexError.
doc_29863
URL linking to a comment from the server explaining the function of this cookie, or None.
doc_29864
Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return...
doc_29865
Convert argument strings to objects and assign them as attributes of the namespace. Return the populated namespace. Previous calls to add_argument() determine exactly what objects are created and how they are assigned. See the documentation for add_argument() for details. args - List of strings to parse. The default ...
doc_29866
Appends a given parameter at the end of the list. Parameters parameter (nn.Parameter) – parameter to append
doc_29867
Make a horizontal bar plot. The bars are positioned at y with the given alignment. Their dimensions are given by width and height. The horizontal baseline is left (default 0). Many parameters can take either a single value applying to all bars or a sequence of values, one for each bar. Parameters yfloat or array-...
doc_29868
Return True if the object is a coroutine created by an async def function. New in version 3.5.
doc_29869
See Migration guide for more details. tf.compat.v1.raw_ops.SparseToSparseSetOperation tf.raw_ops.SparseToSparseSetOperation( set1_indices, set1_values, set1_shape, set2_indices, set2_values, set2_shape, set_operation, validate_indices=True, name=None ) See SetOperationOp::SetOperationFromContext for values o...
doc_29870
Perform Affinity Propagation Clustering of data. Read more in the User Guide. Parameters dampingfloat, default=0.5 Damping factor (between 0.5 and 1) is the extent to which the current value is maintained relative to incoming values (weighted 1 - damping). This in order to avoid numerical oscillations when upda...
doc_29871
Initialize self. See help(type(self)) for accurate signature.
doc_29872
See Migration guide for more details. tf.compat.v1.image.resize_image_with_crop_or_pad, tf.compat.v1.image.resize_with_crop_or_pad tf.image.resize_with_crop_or_pad( image, target_height, target_width ) Resizes an image to a target width and height by either centrally cropping the image or padding it evenly with ...
doc_29873
Returns the character decomposition mapping assigned to the character chr as string. An empty string is returned in case no such mapping is defined.
doc_29874
Wraps the single paragraph in text, and returns a single string containing the wrapped paragraph. fill() is shorthand for "\n".join(wrap(text, ...)) In particular, fill() accepts exactly the same keyword arguments as wrap().
doc_29875
See Migration guide for more details. tf.compat.v1.sysconfig.get_compile_flags tf.sysconfig.get_compile_flags() Returns The compilation flags.
doc_29876
See Migration guide for more details. tf.compat.v1.estimator.TrainSpec tf.estimator.TrainSpec( input_fn, max_steps=None, hooks=None, saving_listeners=None ) TrainSpec determines the input data for the training, as well as the duration. Optional hooks run at various stages of training. Usage: train_spec = tf.est...
doc_29877
Set padding of X data limits prior to autoscaling. m times the data interval will be added to each end of that interval before it is used in autoscaling. For example, if your data is in the range [0, 2], a factor of m = 0.1 will result in a range [-0.2, 2.2]. Negative values -0.5 < m < 0 will result in clipping of th...
doc_29878
self != 0
doc_29879
Setup for writing the movie file. Parameters figFigure The figure object that contains the information for frames. outfilestr The filename of the resulting movie file. dpifloat, default: fig.dpi The DPI (or resolution) for the file. This controls the size in pixels of the resulting movie file.
doc_29880
The header to issue if the help output has a section for undocumented commands (that is, there are do_*() methods without corresponding help_*() methods).
doc_29881
Return a list of the child Artists of this Artist.
doc_29882
Compute the per-sample average log-likelihood of the given data X. Parameters Xarray-like of shape (n_samples, n_dimensions) List of n_features-dimensional data points. Each row corresponds to a single data point. Returns log_likelihoodfloat Log likelihood of the Gaussian mixture given X.
doc_29883
See set_ylim.
doc_29884
See Migration guide for more details. tf.compat.v1.raw_ops.Digamma tf.raw_ops.Digamma( x, name=None ) Gamma(x)), element-wise. 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 t...
doc_29885
Observer module for computing the quantization parameters based on the running per channel min and max values. This observer uses the tensor min/max statistics to compute the per channel quantization parameters. The module records the running minimum and maximum of incoming tensors, and uses this statistic to compute...
doc_29886
See Migration guide for more details. tf.compat.v1.raw_ops.IsBoostedTreesEnsembleInitialized tf.raw_ops.IsBoostedTreesEnsembleInitialized( tree_ensemble_handle, name=None ) Args tree_ensemble_handle A Tensor of type resource. Handle to the tree ensemble resource. name A name for the operation (opt...
doc_29887
Complex number type composed of two extended-precision floating-point numbers. Character code 'G' Alias numpy.clongfloat Alias numpy.longcomplex Alias on this platform (Linux x86_64) numpy.complex256: Complex number type composed of 2 128-bit extended-precision floating-point numbers.
doc_29888
The input stream for the uploaded file. This usually points to an open temporary file.
doc_29889
A function call. func is the function, which will often be a Name or Attribute object. Of the arguments: args holds a list of the arguments passed by position. keywords holds a list of keyword objects representing arguments passed by keyword. When creating a Call node, args and keywords are required, but they can b...
doc_29890
Allows the handler to completely override the parsing of the raw HTTP input. input_data is a file-like object that supports read()-ing. META is the same object as request.META. content_length is the length of the data in input_data. Don’t read more than content_length bytes from input_data. boundary is the MIME boundar...
doc_29891
tf.compat.v1.data.experimental.SqlDataset( driver_name, data_source_name, query, output_types ) Args driver_name A 0-D tf.string tensor containing the database type. Currently, the only supported value is 'sqlite'. data_source_name A 0-D tf.string tensor containing a connection string to connect to ...
doc_29892
Warning This method does nothing, except raise a ValueError exception. A masked array does not own its data and therefore cannot safely be resized in place. Use the numpy.ma.resize function instead. This method is difficult to implement safely and may be deprecated in future releases of NumPy.
doc_29893
Set the spine to be linear.
doc_29894
See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.Rescaling tf.keras.layers.experimental.preprocessing.Rescaling( scale, offset=0.0, name=None, **kwargs ) For instance: To rescale an input in the [0, 255] range to be in the [0, 1] range, you would pass scale=1./255. To r...
doc_29895
Shift index by desired number of time frequency increments. This method is for shifting the values of datetime-like indexes by a specified time increment a given number of times. Parameters periods:int, default 1 Number of periods (or increments) to shift by, can be positive or negative. freq:pandas.DateOffse...
doc_29896
get an available event poll() -> Event Returns next event on queue. If there is no event waiting on the queue, this will return an event with type NOEVENT.
doc_29897
See Migration guide for more details. tf.compat.v1.ragged.range tf.ragged.range( starts, limits=None, deltas=1, dtype=None, name=None, row_splits_dtype=tf.dtypes.int64 ) Each row of the returned RaggedTensor contains a single sequence: ragged.range(starts, limits, deltas)[i] == tf.range(starts[i], limits...
doc_29898
Sets the random number generator state. Parameters new_state (torch.ByteTensor) – The desired state
doc_29899
See Migration guide for more details. tf.compat.v1.math.unsorted_segment_prod, tf.compat.v1.unsorted_segment_prod tf.math.unsorted_segment_prod( data, segment_ids, num_segments, name=None ) Read the section on segmentation for an explanation of segments. This operator is similar to the unsorted segment sum opera...