_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_19900
Create a TarInfo object.
doc_19901
Construct Python bytes containing the raw data bytes in the array. Constructs Python bytes showing a copy of the raw contents of data memory. The bytes object is produced in C-order by default. This behavior is controlled by the order parameter. New in version 1.9.0. Parameters order{‘C’, ‘F’, ‘A’}, optional ...
doc_19902
SUBROUTINE ZADD(A,B,C,N) C DOUBLE COMPLEX A(*) DOUBLE COMPLEX B(*) DOUBLE COMPLEX C(*) INTEGER N DO 20 J = 1, N C(J) = A(J)+B(J) 20 CONTINUE END This routine simply adds the elements in two contiguous arrays and places the result in a third. The memory for all thre...
doc_19903
See torch.log1p()
doc_19904
Fetch dataset from openml by name or dataset id. Datasets are uniquely identified by either an integer ID or by a combination of name and version (i.e. there might be multiple versions of the ‘iris’ dataset). Please give either name or data_id (not both). In case a name is given, a version can also be provided. Read ...
doc_19905
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyMomentum tf.raw_ops.ApplyMomentum( var, accum, lr, grad, momentum, use_locking=False, use_nesterov=False, name=None ) Set use_nesterov = True if you want to use Nesterov momentum. accum = accum * momentum + grad var -= lr * accum Args var A...
doc_19906
Compute the quantiles used for transforming. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data used to scale along the features axis. If a sparse matrix is provided, it will be converted into a sparse csc_matrix. Additionally, the sparse matrix needs to be nonnegative if ignore_i...
doc_19907
Exit code that means that there were insufficient permissions to perform the operation (but not intended for file system problems). Availability: Unix.
doc_19908
Returns the Model with the given app_label and model_name. As a shortcut, this method also accepts a single argument in the form app_label.model_name. model_name is case-insensitive. Raises LookupError if no such application or model exists. Raises ValueError when called with a single argument that doesn’t contain exac...
doc_19909
Draw samples from the geometric distribution. Bernoulli trials are experiments with one of two outcomes: success or failure (an example of such an experiment is flipping a coin). The geometric distribution models the number of trials that must be run in order to achieve success. It is therefore supported on the posit...
doc_19910
Returns the upper triangular part of a matrix (2-D tensor) or batch of matrices input, the other elements of the result tensor out are set to 0. The upper triangular part of the matrix is defined as the elements on and above the diagonal. The argument diagonal controls which diagonal to consider. If diagonal = 0, all e...
doc_19911
Set the mutation scale. Parameters scalefloat
doc_19912
sys.last_value sys.last_traceback These three variables are not always defined; they are set when an exception is not handled and the interpreter prints an error message and a stack traceback. Their intended use is to allow an interactive user to import a debugger module and engage in post-mortem debugging without ...
doc_19913
Return a sample (or samples) from the “standard normal” distribution. Note This is a convenience function for users porting code from Matlab, and wraps standard_normal. That function takes a tuple to specify the size of the output, which is consistent with other NumPy functions like numpy.zeros and numpy.ones. Not...
doc_19914
Get a mask, or integer index, of the features selected Parameters indicesbool, default=False If True, the return value will be an array of integers, rather than a boolean mask. Returns supportarray An index that selects the retained features from a feature vector. If indices is False, this is a boolean ...
doc_19915
tf.experimental.numpy.ix_( *args ) See the NumPy documentation for numpy.ix_.
doc_19916
Integrate a Hermite_e series. Returns the Hermite_e series coefficients c integrated m times from lbnd along axis. At each iteration the resulting series is multiplied by scl and an integration constant, k, is added. The scaling factor is for use in a linear change of variable. (“Buyer beware”: note that, depending o...
doc_19917
Records operation history and defines formulas for differentiating ops. See the Note on extending the autograd engine for more details on how to use this class: https://pytorch.org/docs/stable/notes/extending.html#extending-torch-autograd Every operation performed on Tensor s creates a new function object, that perfo...
doc_19918
Concatenates results of multiple transformer objects. This estimator applies a list of transformer objects in parallel to the input data, then concatenates the results. This is useful to combine several feature extraction mechanisms into a single transformer. Parameters of the transformers may be set using its name a...
doc_19919
Set the colormap to 'autumn'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
doc_19920
Euclidean distance between two points in Lab color space Parameters lab1array_like reference color (Lab colorspace) lab2array_like comparison color (Lab colorspace) Returns dEarray_like distance between colors lab1 and lab2 References 1 https://en.wikipedia.org/wiki/Color_difference 2 A....
doc_19921
mmap.MADV_RANDOM mmap.MADV_SEQUENTIAL mmap.MADV_WILLNEED mmap.MADV_DONTNEED mmap.MADV_REMOVE mmap.MADV_DONTFORK mmap.MADV_DOFORK mmap.MADV_HWPOISON mmap.MADV_MERGEABLE mmap.MADV_UNMERGEABLE mmap.MADV_SOFT_OFFLINE mmap.MADV_HUGEPAGE mmap.MADV_NOHUGEPAGE mmap.MADV_DONTDUMP mmap.MADV_DODUMP m...
doc_19922
Set attributes on the mock through keyword arguments. Attributes plus return values and side effects can be set on child mocks using standard dot notation and unpacking a dictionary in the method call: >>> mock = Mock() >>> attrs = {'method.return_value': 3, 'other.side_effect': KeyError} >>> mock.configure_mock(**attr...
doc_19923
Return the snap setting. See set_snap for details.
doc_19924
Given the location and size of the box, return the path of the box around it. Parameters x0, y0, width, heightfloat Location and size of the box. mutation_sizefloat A reference scale for the mutation. Returns Path
doc_19925
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.tf_stack.StackTraceFilter Methods get_filtered_filenames View source get_filtered_filenames() reset View source reset() __enter__ View source __enter__() __exit__ View source __exit__( unused_type, unused_value, unused_traceback )
doc_19926
See Migration guide for more details. tf.compat.v1.data.experimental.service.from_dataset_id tf.data.experimental.service.from_dataset_id( processing_mode, service, dataset_id, element_spec=None, job_name=None, max_outstanding_requests=None ) This is useful when the dataset is registered by one process, then...
doc_19927
Discretize the data. Parameters Xarray-like of shape (n_samples, n_features) Data to be discretized. Returns Xt{ndarray, sparse matrix}, dtype={np.float32, np.float64} Data in the binned space. Will be a sparse matrix if self.encode='onehot' and ndarray otherwise.
doc_19928
turtle.bk(distance) turtle.backward(distance) Parameters distance – a number Move the turtle backward by distance, opposite to the direction the turtle is headed. Do not change the turtle’s heading. >>> turtle.position() (0.00,0.00) >>> turtle.backward(30) >>> turtle.position() (-30.00,0.00)
doc_19929
The size of the resulting hash in bytes.
doc_19930
Determines whether the widget will have a value filled in when the form is re-displayed after a validation error (default is False).
doc_19931
class Comment: def __init__(self, email, content, created=None): self.email = email self.content = content self.created = created or datetime.now() comment = Comment(email='leila@example.com', content='foo bar') We'll declare a serializer that we can use to serialize and deserialize data ...
doc_19932
See Migration guide for more details. tf.compat.v1.debugging.set_log_device_placement tf.debugging.set_log_device_placement( enabled ) Args enabled Whether to enabled device placement logging.
doc_19933
inclusive_lower If True (default), the lower bound is inclusive '[', otherwise it’s exclusive '('. inclusive_upper If False (default), the upper bound is exclusive ')', otherwise it’s inclusive ']'.
doc_19934
Array mapping from feature integer indices to feature name. Returns feature_nameslist A list of feature names.
doc_19935
Installs the hstore extension and also sets up the connection to interpret hstore data for possible use in subsequent migrations.
doc_19936
Wait until notified. If the calling task has not acquired the lock when this method is called, a RuntimeError is raised. This method releases the underlying lock, and then blocks until it is awakened by a notify() or notify_all() call. Once awakened, the Condition re-acquires its lock and this method returns True.
doc_19937
get the current clipping area of the Surface get_clip() -> Rect Return a rectangle of the current clipping area. The Surface will always return a valid rectangle that will never be outside the bounds of the image. If the Surface has had None set for the clipping area, the Surface will return a rectangle with the full...
doc_19938
The name that will be used in the widget’s HTML name attribute. It takes the form prefix into account.
doc_19939
Proper font name. name -> string Read only. Returns the real (long) name of the font, as recorded in the font file.
doc_19940
tf.experimental.numpy.iscomplexobj( x ) See the NumPy documentation for numpy.iscomplexobj.
doc_19941
Draw samples from a negative binomial distribution. Samples are drawn from a negative binomial distribution with specified parameters, n successes and p probability of success where n is > 0 and p is in the interval (0, 1]. Parameters nfloat or array_like of floats Parameter of the distribution, > 0. pfloat o...
doc_19942
alias of Conv2d
doc_19943
Set the color of the line. Parameters colorcolor
doc_19944
IEEE 754 floating point representation of positive zero. Returns yfloat A floating point representation of positive zero. See Also NZERO : Defines negative zero. isinf : Shows which elements are positive or negative infinity. isposinf : Shows which elements are positive infinity. isneginf : Shows which elements ...
doc_19945
Shift a single name from PATH_INFO to SCRIPT_NAME and return the name. The environ dictionary is modified in-place; use a copy if you need to keep the original PATH_INFO or SCRIPT_NAME intact. If there are no remaining path segments in PATH_INFO, None is returned. Typically, this routine is used to process each portion...
doc_19946
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_19947
Return a string representing the lowest timedelta resolution. Each timedelta has a defined resolution that represents the lowest OR most granular level of precision. Each level of resolution is represented by a short string as defined below: Resolution: Return value Days: ‘D’ Hours: ‘H’ Minutes: ‘T’ Seconds: ‘S’ Mil...
doc_19948
Return the kernel k(X, Y) and optionally its gradient. Parameters Xndarray of shape (n_samples_X, n_features) Left argument of the returned kernel k(X, Y) Yndarray of shape (n_samples_Y, n_features), default=None Right argument of the returned kernel k(X, Y). If None, k(X, X) if evaluated instead. eval_gr...
doc_19949
Return the name of the error mode used to convert between Unicode filenames and bytes filenames. The encoding name is returned from getfilesystemencoding(). os.fsencode() and os.fsdecode() should be used to ensure that the correct encoding and errors mode are used. New in version 3.6.
doc_19950
list of Groups that contain this Sprite groups() -> group_list Return a list of all the Groups that contain this Sprite.
doc_19951
Cancel the Future and schedule callbacks. If the Future is already done or cancelled, return False. Otherwise, change the Future’s state to cancelled, schedule the callbacks, and return True. Changed in version 3.9: Added the msg parameter.
doc_19952
Token value for "-".
doc_19953
Bind the domain to the locale directory localedir. More concretely, gettext will look for binary .mo files for the given domain using the path (on Unix): localedir/language/LC_MESSAGES/domain.mo, where language is searched for in the environment variables LANGUAGE, LC_ALL, LC_MESSAGES, and LANG respectively. If localed...
doc_19954
Return a list containing a ZipInfo object for each member of the archive. The objects are in the same order as their entries in the actual ZIP file on disk if an existing archive was opened.
doc_19955
A variant of Queue; retrieves entries in priority order (lowest first). Entries are typically tuples of the form (priority_number, data).
doc_19956
Information about the memory layout of the array. Notes The flags object can be accessed dictionary-like (as in a.flags['WRITEABLE']), or by using lowercased attribute names (as in a.flags.writeable). Short flag names are only supported in dictionary access. Only the WRITEBACKIFCOPY, UPDATEIFCOPY, WRITEABLE, and ALIG...
doc_19957
Fit all transformers using X. Parameters Xiterable or array-like, depending on transformers Input data, used to fit transformers. yarray-like of shape (n_samples, n_outputs), default=None Targets for supervised learning. Returns selfFeatureUnion This estimator
doc_19958
Exception raised when an error code signifying a temporary error (response codes in the range 400–499) is received.
doc_19959
a 2-Dimensional Vector Vector2() -> Vector2 Vector2(int) -> Vector2 Vector2(float) -> Vector2 Vector2(Vector2) -> Vector2 Vector2(x, y) -> Vector2 Vector2((x, y)) -> Vector2 Some general information about the Vector2 class. dot() calculates the dot- or scalar-product with the other vector dot(Vector2) -> float ...
doc_19960
Return the default font weight.
doc_19961
A class which postpones the execution of the loader of a module until the module has an attribute accessed. This class only works with loaders that define exec_module() as control over what module type is used for the module is required. For those same reasons, the loader’s create_module() method must return None or a ...
doc_19962
tf.compat.v1.estimator.DNNRegressor( hidden_units, feature_columns, model_dir=None, label_dimension=1, weight_column=None, optimizer='Adagrad', activation_fn=tf.nn.relu, dropout=None, input_layer_partitioner=None, config=None, warm_start_from=None, loss_reduction=tf.compat.v1.losses.Reduction.SUM, batch...
doc_19963
Bases: object Callable helper class for working with Annotation. Parameters artistArtist or BboxBase or Transform The object to compute the offset from. ref_coord(float, float) If artist is an Artist or BboxBase, this values is the location to of the offset origin in fractions of the artist bounding box. If...
doc_19964
tf.compat.v1.initializers.lecun_uniform( seed=None ) It draws samples from a uniform distribution within [-limit, limit] where limit is sqrt(3 / fan_in) where fan_in is the number of input units in the weight tensor. Arguments seed A Python integer. Used to seed the random generator. Returns An ...
doc_19965
Remove axes of length one from a. Parameters aarray_like Input data. axisNone or int or tuple of ints, optional New in version 1.7.0. Selects a subset of the entries of length one in the shape. If an axis is selected with shape entry greater than one, an error is raised. Returns squeezedndarray Th...
doc_19966
Return the row label of the maximum value. If multiple values equal the maximum, the first row label with that value is returned. Parameters axis:int, default 0 For compatibility with DataFrame.idxmax. Redundant for application on Series. skipna:bool, default True Exclude NA/null values. If the entire Serie...
doc_19967
See Migration guide for more details. tf.compat.v1.raw_ops.DecodeWav tf.raw_ops.DecodeWav( contents, desired_channels=-1, desired_samples=-1, name=None ) The -32768 to 32767 signed 16-bit values will be scaled to -1.0 to 1.0 in float. When desired_channels is set, if the input contains fewer channels than this t...
doc_19968
Returns the model class represented by this ContentType instance.
doc_19969
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_19970
In-place version of lt().
doc_19971
New in Django 4.0. The name of the template used when calling as_text(). By default this is 'django/forms/errors/list/text.html'. This template renders the errors as a list of bullet points.
doc_19972
Add a horizontal span (rectangle) across the Axes. The rectangle spans from ymin to ymax vertically, and, by default, the whole x-axis horizontally. The x-span can be set using xmin (default: 0) and xmax (default: 1) which are in axis units; e.g. xmin = 0.5 always refers to the middle of the x-axis regardless of the ...
doc_19973
Add a subfigure to this figure or subfigure. A subfigure has the same artist methods as a figure, and is logically the same as a figure, but cannot print itself. See Figure subfigures. Parameters nrows, ncolsint, default: 1 Number of rows/columns of the subfigure grid. squeezebool, default: True If True, ex...
doc_19974
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters Xndarray of shape (n_samples_X, n_features) Left argument of the returned kernel k(X, Y) Returns K_diagndar...
doc_19975
FixedAxisArtistHelper(grid_helper, side[, ...]) Helper class for a fixed axis. FloatingAxisArtistHelper(grid_helper, ...[, ...]) nth_coord = along which coordinate value varies. GridHelperCurveLinear(aux_trans[, ...]) aux_trans : a transform from the source (curved) coordinate to target (rectilinear) coordinate.
doc_19976
Compute count of group, excluding missing values. Returns Series or DataFrame Count of values within each group. See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.
doc_19977
In-place version of sub()
doc_19978
When instantiating an Engine all arguments must be passed as keyword arguments: dirs is a list of directories where the engine should look for template source files. It is used to configure filesystem.Loader. It defaults to an empty list. app_dirs only affects the default value of loaders. See below. It defaults to...
doc_19979
Converts an array-like to an array of floats. The new dtype will be np.float32 or np.float64, depending on the original type. The function can create a copy or modify the argument depending on the argument copy. Parameters X{array-like, sparse matrix} copybool, default=True If True, a copy of X will be create...
doc_19980
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedBatchNormWithGlobalNormalization tf.raw_ops.QuantizedBatchNormWithGlobalNormalization( t, t_min, t_max, m, m_min, m_max, v, v_min, v_max, beta, beta_min, beta_max, gamma, gamma_min, gamma_max, out_type, variance_epsilon, scale_after_norma...
doc_19981
A datetime designating when the session expires. Expired sessions are not available to a user, however, they may still be stored in the database until the clearsessions management command is run.
doc_19982
Remove a registered file descriptor from the epoll object. Changed in version 3.9: The method no longer ignores the EBADF error.
doc_19983
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 backgroundcolor color bbox dict with properties for patches.FancyBboxPatch ...
doc_19984
Inform the application what path it is mounted under by the application / web server. This is used for generating URLs outside the context of a request (inside a request, the dispatcher is responsible for setting SCRIPT_NAME instead; see Application Dispatching for examples of dispatch configuration). Will be used for ...
doc_19985
pygame module for drawing shapes Draw several simple shapes to a surface. These functions will work for rendering to any format of surface. Rendering to hardware surfaces will be slower than regular software surfaces. Most of the functions take a width argument to represent the size of stroke (thickness) around th...
doc_19986
Class FileInput is the implementation; its methods filename(), fileno(), lineno(), filelineno(), isfirstline(), isstdin(), nextfile() and close() correspond to the functions of the same name in the module. In addition it has a readline() method which returns the next input line, and a __getitem__() method which impleme...
doc_19987
Create an anonymous file and return a file descriptor that refers to it. flags must be one of the os.MFD_* constants available on the system (or a bitwise ORed combination of them). By default, the new file descriptor is non-inheritable. The name supplied in name is used as a filename and will be displayed as the targe...
doc_19988
Return Exponential power of series and other, element-wise (binary operator rpow). Equivalent to other ** series, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existing m...
doc_19989
Return True if the symbol is annotated. New in version 3.6.
doc_19990
The get_list_display_links method is given the HttpRequest and the list or tuple returned by ModelAdmin.get_list_display(). It is expected to return either None or a list or tuple of field names on the changelist that will be linked to the change view, as described in the ModelAdmin.list_display_links section.
doc_19991
create a new Font object from a file Font(filename, size) -> Font Font(object, size) -> Font Load a new font from a given filename or a python file object. The size is the height of the font in pixels. If the filename is None the pygame default font will be loaded. If a font cannot be loaded from the arguments given ...
doc_19992
The function provides scrypt password-based key derivation function as defined in RFC 7914. password and salt must be bytes-like objects. Applications and libraries should limit password to a sensible length (e.g. 1024). salt should be about 16 or more bytes from a proper source, e.g. os.urandom(). n is the CPU/Memory ...
doc_19993
Group has read permission.
doc_19994
Set the flags of path to the numeric flags, like chflags(), but do not follow symbolic links. As of Python 3.3, this is equivalent to os.chflags(path, flags, follow_symlinks=False). Raises an auditing event os.chflags with arguments path, flags. Availability: Unix. Changed in version 3.6: Accepts a path-like object.
doc_19995
Decision function for the OneVsOneClassifier. The decision values for the samples are computed by adding the normalized sum of pair-wise classification confidence levels to the votes in order to disambiguate between the decision values when the votes for all the classes are equal leading to a tie. Parameters Xarr...
doc_19996
Return the local number (population) of pixels. The number of pixels is defined as the number of pixels which are included in the structuring element and the mask. Parameters image([P,] M, N) ndarray (uint8, uint16) Input image. selemndarray The neighborhood expressed as an ndarray of 1’s and 0’s. out([P,...
doc_19997
select an instrument, with a value between 0 and 127 set_instrument(instrument_id, channel=0) -> None Select an instrument.
doc_19998
Query or modify the options for the specified item. If no options are given, a dict with options/values for the item is returned. If option is specified then the value for that option is returned. Otherwise, sets the options to the corresponding values as given by kw.
doc_19999
Like Subdomain but prefixes the URL rule with a given string: url_map = Map([ Rule('/', endpoint='index'), Submount('/blog', [ Rule('/', endpoint='blog/index'), Rule('/entry/<entry_slug>', endpoint='blog/show') ]) ]) Now the rule 'blog/show' matches /blog/entry/<entry_slug>. Parameters ...