_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_15000
A dictionary of context data that will be added to the default context data passed to the template.
doc_15001
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None f...
doc_15002
'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', ], 'DEFAULT_PARSER_CLASSES': [ 'rest_framework.parsers.JSONParser', ] } Accessing settings If you need to access the values of REST framework's API settings in your project, you should use the api_settings object. Fo...
doc_15003
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_15004
Moves and/or casts the parameters and buffers. This can be called as to(device=None, dtype=None, non_blocking=False) to(dtype, non_blocking=False) to(tensor, non_blocking=False) to(memory_format=torch.channels_last) Its signature is similar to torch.Tensor.to(), but only accepts floating point or comple...
doc_15005
Register a backend for saving to a given file format. Parameters formatstr File extension backendmodule string or canvas class Backend for handling file output descriptionstr, default: "" Description of the file type.
doc_15006
Print the textual representation of the message object structure rooted at msg to the output file specified when the Generator instance was created. If the policy option cte_type is 8bit, generate the message as if the option were set to 7bit. (This is required because strings cannot represent non-ASCII bytes.) Convert...
doc_15007
The name of the model class.
doc_15008
Name of the file in the archive.
doc_15009
Prevent join_thread() from blocking. In particular, this prevents the background thread from being joined automatically when the process exits – see join_thread(). A better name for this method might be allow_exit_without_flush(). It is likely to cause enqueued data to lost, and you almost certainly will not need to us...
doc_15010
Replaces the passed color in the PixelArray with another one. replace(color, repcolor, distance=0, weights=(0.299, 0.587, 0.114)) -> None Replaces the pixels with the passed color in the PixelArray by changing them them to the passed replacement color. It uses a simple weighted Euclidean distance formula to calculate...
doc_15011
shutil.copyfileobj(fsrc, fdst[, length]) Copy the contents of the file-like object fsrc to the file-like object fdst. The integer length, if given, is the buffer size. In particular, a negative length value means to copy the data without looping over the source data in chunks; by default the data is read in chunks to...
doc_15012
Return the anchor.
doc_15013
Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
doc_15014
Return the value of a single variable name. Equivalent to get_config_vars().get(name). If name is not found, return None.
doc_15015
Returns a Page object with the given 1-based index, while also handling out of range and invalid page numbers. If the page isn’t a number, it returns the first page. If the page number is negative or greater than the number of pages, it returns the last page. Raises an EmptyPage exception only if you specify Paginator(...
doc_15016
tf.compat.v1.train.FtrlOptimizer( learning_rate, learning_rate_power=-0.5, initial_accumulator_value=0.1, l1_regularization_strength=0.0, l2_regularization_strength=0.0, use_locking=False, name='Ftrl', accum_name=None, linear_name=None, l2_shrinkage_regularization_strength=0.0, beta=None ) This version...
doc_15017
Attributes key string key value AttrValue value
doc_15018
Send a file over a transport. Return the total number of bytes sent. The method uses high-performance os.sendfile() if available. file must be a regular file object opened in binary mode. offset tells from where to start reading the file. If specified, count is the total number of bytes to transmit as opposed to sendin...
doc_15019
Whether the redirect should be permanent. The only difference here is the HTTP status code returned. If True, then the redirect will use status code 301. If False, then the redirect will use status code 302. By default, permanent is False.
doc_15020
Compute an approximation of the bounding box obtained by applying transform_xy to the box delimited by (x1, y1, x2, y2). The intended use is to have (x1, y1, x2, y2) in axes coordinates, and have transform_xy be the transform from axes coordinates to data coordinates; this method then returns the range of data coordi...
doc_15021
Bases: object Base class for subplots, which are Axes instances with additional methods to facilitate generating and manipulating a set of Axes within a figure. Parameters figmatplotlib.figure.Figure *argstuple (nrows, ncols, index) or int The array of subplots in the figure has dimensions (nrows, ncols), and...
doc_15022
Measure properties of labeled image regions. Parameters label_image(M, N[, P]) ndarray Labeled input image. Labels with value 0 are ignored. Changed in version 0.14.1: Previously, label_image was processed by numpy.squeeze and so any number of singleton dimensions was allowed. This resulted in inconsistent han...
doc_15023
Hook method for setting up class fixture before running tests in the class.
doc_15024
See Migration guide for more details. tf.compat.v1.raw_ops.MapClear tf.raw_ops.MapClear( dtypes, capacity=0, memory_limit=0, container='', shared_name='', name=None ) Args dtypes A list of tf.DTypes. capacity An optional int that is >= 0. Defaults to 0. memory_limit An optional int that ...
doc_15025
Draw a single-pixel thick line in n dimensions. The line produced will be ndim-connected. That is, two subsequent pixels in the line will be either direct or diagonal neighbours in n dimensions. Parameters startarray-like, shape (N,) The start coordinates of the line. stoparray-like, shape (N,) The end coor...
doc_15026
By default CovarPop returns the general population covariance. However, if sample=True, the return value will be the sample population covariance.
doc_15027
See Migration guide for more details. tf.compat.v1.raw_ops.MatchingFiles tf.raw_ops.MatchingFiles( pattern, name=None ) Note that this routine only supports wildcard characters in the basename portion of the pattern, not in the directory portion. Note also that the order of filenames returned is deterministic. ...
doc_15028
Set the compression type and description. At the moment, only compression type NONE is supported, meaning no compression.
doc_15029
Push the panel to the bottom of the stack.
doc_15030
Set multiple properties at once. Supported properties are Property Description adjustable {'box', 'datalim'} 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 anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}...
doc_15031
Normalize the number by stripping the rightmost trailing zeros and converting any result equal to Decimal('0') to Decimal('0e0'). Used for producing canonical values for attributes of an equivalence class. For example, Decimal('32.100') and Decimal('0.321000e+2') both normalize to the equivalent value Decimal('32.1').
doc_15032
Return a string representing the date, controlled by an explicit format string. Format codes referring to hours, minutes or seconds will see 0 values. For a complete list of formatting directives, see strftime() and strptime() Behavior.
doc_15033
Set the (x, y, z) position of the text. Parameters xyz(float, float, float) The position in 3D space. zdir{'x', 'y', 'z', None, 3-tuple} The direction of the text. If unspecified, the zdir will not be changed.
doc_15034
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_15035
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks (ICML 2019) Functions EfficientNetB0(...): Instantiates the EfficientNetB0 architecture. EfficientNetB1(...): Instantiates the EfficientNetB1 architecture. EfficientNetB2(...): Instantiates the EfficientNetB2 architecture. EfficientNetB3(...): In...
doc_15036
Should return True if editing an inline object is permitted, False otherwise. obj is the parent object being edited.
doc_15037
See Migration guide for more details. tf.compat.v1.math.reciprocal, tf.compat.v1.reciprocal tf.math.reciprocal( x, name=None ) I.e., \(y = 1 / x\). Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, int8, int16, int32, int64, complex64, complex128. name A name f...
doc_15038
See torch.deg2rad()
doc_15039
Compute the truth value of x1 XOR x2, element-wise. Parameters x1, x2array_like Logical XOR is applied to the elements of x1 and x2. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, None, or tuple of ndarray and None, optional A locat...
doc_15040
Called for unparsed (NDATA) entity declarations. This is only present for version 1.2 of the Expat library; for more recent versions, use EntityDeclHandler instead. (The underlying function in the Expat library has been declared obsolete.)
doc_15041
tf.initializers.HeUniform, tf.initializers.he_uniform, tf.keras.initializers.he_uniform tf.keras.initializers.HeUniform( seed=None ) Also available via the shortcut function tf.keras.initializers.he_uniform. Draws samples from a uniform distribution within [-limit, limit], where limit = sqrt(6 / fan_in) (fan_in ...
doc_15042
dis.disco(code, lasti=-1, *, file=None) Disassemble a code object, indicating the last instruction if lasti was provided. The output is divided in the following columns: the line number, for the first instruction of each line the current instruction, indicated as -->, a labelled instruction, indicated with >>, the a...
doc_15043
Replace the set of related objects: >>> new_list = [obj1, obj2, obj3] >>> e.related_set.set(new_list) This method accepts a clear argument to control how to perform the operation. If False (the default), the elements missing from the new set are removed using remove() and only the new ones are added. If clear=True, th...
doc_15044
Stops the listening server which was created with a call to listen(). This is typically called before calling join() on the return value from listen().
doc_15045
Class for writing DataFrame objects into excel sheets. Default is to use : * xlwt for xls * xlsxwriter for xlsx if xlsxwriter is installed otherwise openpyxl * odf for ods. See DataFrame.to_excel for typical usage. The writer should be used as a context manager. Otherwise, call close() to save and close any opened fi...
doc_15046
Same as url_defaults() but application wide. Parameters f (Callable[[str, dict], None]) – Return type Callable[[str, dict], None]
doc_15047
from wsgiref.handlers import CGIHandler from yourapplication import make_app application = make_app() CGIHandler().run(application) Server Setup Usually there are two ways to configure the server. Either just copy the .cgi into a cgi-bin (and use mod_rewrite or something similar to rewrite the URL) or let the serve...
doc_15048
In-place version of negative()
doc_15049
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
doc_15050
Return the key associated with a registered file object. This returns the SelectorKey instance associated to this file object, or raises KeyError if the file object is not registered.
doc_15051
Applies the element-wise function: CELU(x)=max⁡(0,x)+min⁡(0,α∗(exp⁡(x/α)−1))\text{CELU}(x) = \max(0,x) + \min(0, \alpha * (\exp(x/\alpha) - 1)) More details can be found in the paper Continuously Differentiable Exponential Linear Units . Parameters alpha – the α\alpha value for the CELU formulation. Default: ...
doc_15052
Listen for connections made to the socket. The backlog argument specifies the maximum number of queued connections and should be at least 1; the maximum value is system-dependent (usually 5).
doc_15053
Note torch.nonzero(..., as_tuple=False) (default) returns a 2-D tensor where each row is the index for a nonzero value. torch.nonzero(..., as_tuple=True) returns a tuple of 1-D index tensors, allowing for advanced indexing, so x[x.nonzero(as_tuple=True)] gives all nonzero values of tensor x. Of the returned tuple, eac...
doc_15054
Form the union of two Index objects. If the Index objects are incompatible, both Index objects will be cast to dtype(‘object’) first. Changed in version 0.25.0. Parameters other:Index or array-like sort:bool or None, default None Whether to sort the resulting Index. None : Sort the result, except when...
doc_15055
turtle.pd() turtle.down() Pull the pen down – drawing when moving.
doc_15056
Applies a softmin function. Note that Softmin(x)=Softmax(−x)\text{Softmin}(x) = \text{Softmax}(-x) . See softmax definition for mathematical formula. See Softmin for more details. Parameters input (Tensor) – input dim (int) – A dimension along which softmin will be computed (so every slice along dim will sum to ...
doc_15057
The name of a GET field containing the URL to redirect to after login. Defaults to next. Overrides the get_default_redirect_url() URL if the given GET parameter is passed.
doc_15058
Return a count of messages in the mailbox.
doc_15059
Returns the server software’s version string. This is a combination of the server_version and sys_version attributes.
doc_15060
Gets a non-deterministic random number from std::random_device or the current time and uses it to seed a Generator. Example: >>> g_cpu = torch.Generator() >>> g_cpu.seed() 1516516984916
doc_15061
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceAccumulatorApplyGradient tf.raw_ops.ResourceAccumulatorApplyGradient( handle, local_step, gradient, name=None ) Does not add if local_step is lesser than the accumulator's global_step. Args handle A Tensor of type resource. The handle to...
doc_15062
Each instance of ContentType has two fields which, taken together, uniquely describe an installed model: app_label The name of the application the model is part of. This is taken from the app_label attribute of the model, and includes only the last part of the application’s Python import path; django.contrib.conten...
doc_15063
Apply a CSS-styling function elementwise. Updates the HTML representation with the result. Parameters func:function func should take a scalar and return a string. subset:label, array-like, IndexSlice, optional A valid 2d input to DataFrame.loc[<subset>], or, in the case of a 1d input or single key, to DataF...
doc_15064
Call predict_proba on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict_proba. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_15065
Set the colormap to 'viridis'. 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_15066
Calculate approximate log-likelihood as score. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Document word matrix. yIgnored Returns scorefloat Use approximate bound as score.
doc_15067
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ...
doc_15068
Each class keeps a list of weak references to its immediate subclasses. This method returns a list of all those references still alive. The list is in definition order. Example: >>> int.__subclasses__() [<class 'bool'>]
doc_15069
Creates the form data parser. Instantiates the form_data_parser_class with some parameters. Changelog New in version 0.8. Return type werkzeug.formparser.FormDataParser
doc_15070
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with a head at its begin point. Parameters head_lengthfloat, default: 0.4 Length of the arrow head, relative to mutation_scale. head_widthfloat, default: 0.2 Width of the arrow head, relative to mutation_scale. widthAfloat, default: 1.0 Width of the b...
doc_15071
sklearn.base.is_classifier(estimator) [source] Return True if the given estimator is (probably) a classifier. Parameters estimatorobject Estimator object to test. Returns outbool True if estimator is a classifier and False otherwise.
doc_15072
Make one string from sequence of strings, with whitespace in between. The whitespace is chosen to form lines of at most linelen characters, if possible.
doc_15073
Returns an int of the bitwise OR of all non-null input values, or default if all values are null.
doc_15074
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_15075
Return the members of the archive as a list of TarInfo objects. The list has the same order as the members in the archive.
doc_15076
Indicates if an interval is empty, meaning it contains no points. New in version 0.25.0. Returns bool or ndarray A boolean indicating if a scalar Interval is empty, or a boolean ndarray positionally indicating if an Interval in an IntervalArray or IntervalIndex is empty. Examples An Interval that contains p...
doc_15077
Convert a block of quoted-printable data back to binary and return the binary data. More than one line may be passed at a time. If the optional argument header is present and true, underscores will be decoded as spaces.
doc_15078
Add a new attribute node to the element, replacing an existing attribute if necessary if the namespaceURI and localName attributes match. If a replacement occurs, the old attribute node will be returned. If newAttr is already in use, InuseAttributeErr will be raised.
doc_15079
Scalar method identical to the corresponding array attribute. Please see ndarray.sort.
doc_15080
Return the sine of x.
doc_15081
See Migration guide for more details. tf.compat.v1.raw_ops.OrderedMapClear tf.raw_ops.OrderedMapClear( dtypes, capacity=0, memory_limit=0, container='', shared_name='', name=None ) Args dtypes A list of tf.DTypes. capacity An optional int that is >= 0. Defaults to 0. memory_limit An opti...
doc_15082
Enter raw mode. In raw mode, normal line buffering and processing of interrupt, quit, suspend, and flow control keys are turned off; characters are presented to curses input functions one by one.
doc_15083
Convert series to a different kind and/or domain and/or window. Parameters domainarray_like, optional The domain of the converted series. If the value is None, the default domain of kind is used. kindclass, optional The polynomial series type class to which the current instance should be converted. If kind ...
doc_15084
Parameters nx, nx1int Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (but excluding nx1-th column) is specified. ny, ny1int Same as nx and nx1, but for row positions. axes renderer
doc_15085
Differentiate a Hermite_e series. Returns the series coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl (the scaling factor is for use in a linear change of variable). The argument c is an array of coefficients from low to high degree along each axis, e.g., [1,2,3] rep...
doc_15086
Wait for the completion of one or more child processes. idtype can be P_PID, P_PGID, P_ALL, or P_PIDFD on Linux. id specifies the pid to wait on. options is constructed from the ORing of one or more of WEXITED, WSTOPPED or WCONTINUED and additionally may be ORed with WNOHANG or WNOWAIT. The return value is an object re...
doc_15087
Set the extended filesystem attribute attribute on path to value. attribute must be a bytes or str with no embedded NULs (directly or indirectly through the PathLike interface). If it is a str, it is encoded with the filesystem encoding. flags may be XATTR_REPLACE or XATTR_CREATE. If XATTR_REPLACE is given and the attr...
doc_15088
tf.compat.v1.losses.compute_weighted_loss( losses, weights=1.0, scope=None, loss_collection=tf.GraphKeys.LOSSES, reduction=Reduction.SUM_BY_NONZERO_WEIGHTS ) Args losses Tensor of shape [batch_size, d1, ... dN]. weights Optional Tensor whose rank is either 0, or the same rank as losses, and must...
doc_15089
Return the feature importances. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardinality features (many unique values). See sklearn.ins...
doc_15090
'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_15091
Using the file after calling flush() or close() on the mbox instance may yield unpredictable results or raise an exception.
doc_15092
Access a single value for a row/column pair by integer position. Similar to iloc, in that both provide integer-based lookups. Use iat if you only need to get or set a single value in a DataFrame or Series. Raises IndexError When integer position is out of bounds. See also DataFrame.at Access a single value...
doc_15093
Return a datetime with the same attributes, except for those attributes given new values by whichever keyword arguments are specified. Note that tzinfo=None can be specified to create a naive datetime from an aware datetime with no conversion of date and time data. New in version 3.6: Added the fold argument.
doc_15094
Optionally set the Torch Hub directory used to save downloaded models & weights. Parameters d (string) – path to a local folder to save downloaded models & weights.
doc_15095
tf.keras.applications.resnet_v2.ResNet152V2 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.ResNet152V2, tf.compat.v1.keras.applications.resnet_v2.ResNet152V2 tf.keras.applications.ResNet152V2( include_top=True, weights='imagenet', input_tensor=None, input_sh...
doc_15096
Adjust the direction of the ticklabel. Note that the label_directions '+' and '-' are relative to the direction of the increasing coordinate. Parameters tick_direction{"+", "-"}
doc_15097
Return a shallow mutable copy of this object. Keep in mind that the standard library’s copy() function is a no-op for this class like for any other python immutable type (eg: tuple).
doc_15098
Set the colormap for luminance data. Parameters cmapColormap or str or None
doc_15099
Bus error (bad memory access). Availability: Unix.