_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_20300
Decorator to mark a class or function to be unavailable at runtime. This decorator is itself not available at runtime. It is mainly intended to mark classes that are defined in type stub files if an implementation returns an instance of a private class: @type_check_only class Response: # private or not available at ru...
doc_20301
Returns a list of slices corresponding to the masked clumps of a 1-D array. (A “clump” is defined as a contiguous region of the array). Parameters andarray A one-dimensional masked array. Returns sliceslist of slice The list of slices, one for each continuous region of masked elements in a. See als...
doc_20302
Enforce that the WSGI response is a response object of the current type. Werkzeug will use the Response internally in many situations like the exceptions. If you call get_response() on an exception you will get back a regular Response object, even if you are using a custom subclass. This method can enforce a given resp...
doc_20303
Set the antialiasing state for rendering. Parameters aabool or list of bools
doc_20304
class range(start, stop[, step]) Rather than being a function, range is actually an immutable sequence type, as documented in Ranges and Sequence Types — list, tuple, range.
doc_20305
Splits the tensor into chunks. Each chunk is a view of the original tensor. If split_size_or_sections is an integer type, then tensor will be split into equally sized chunks (if possible). Last chunk will be smaller if the tensor size along the given dimension dim is not divisible by split_size. If split_size_or_sect...
doc_20306
Return DateOffset object from string or tuple representation or datetime.timedelta object. Parameters freq:str, datetime.timedelta, BaseOffset or None Returns DateOffset or None Raises ValueError If freq is an invalid frequency See also BaseOffset Standard kind of date increment used for a date r...
doc_20307
tf.compat.v1.nn.dropout( x, keep_prob=None, noise_shape=None, seed=None, name=None, rate=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_prob). They will be removed in a future version. Instructions for updating: Please use rate instead of keep_prob. Rate should be set to rate = 1 - keep_prob. For each elemen...
doc_20308
Return index for last non-NA value or None, if no NA value is found. Returns scalar:type of index Notes If all elements are non-NA/null, returns None. Also returns None for empty Series/DataFrame.
doc_20309
See Migration guide for more details. tf.compat.v1.raw_ops.MaxPool tf.raw_ops.MaxPool( input, ksize, strides, padding, explicit_paddings=[], data_format='NHWC', name=None ) Args input A Tensor. Must be one of the following types: half, bfloat16, float32, float64, int32, int64, uint8, int16, int8, ui...
doc_20310
Apply the non-affine part of this transform to Path path, returning a new Path. transform_path(path) is equivalent to transform_path_affine(transform_path_non_affine(values)).
doc_20311
Converts the object back into an HTTP header.
doc_20312
Returns a bitmask specifying the mixer controls that may be used to record. See the code example for controls() for an example of reading from a bitmask.
doc_20313
Copy properties from other to self.
doc_20314
This decorator is used on the admin views that require authorization. A view decorated with this function will have the following behavior: If the user is logged in, is a staff member (User.is_staff=True), and is active (User.is_active=True), execute the view normally. Otherwise, the request will be redirected to the ...
doc_20315
Bases: mpl_toolkits.axisartist.axislines.AxisArtistHelper.Fixed nth_coord = along which coordinate value varies in 2D, nth_coord = 0 -> x axis, nth_coord = 1 -> y axis get_tick_iterators(axes)[source] tick_loc, tick_angle, tick_label
doc_20316
mplot3d FAQ How is mplot3d different from Mayavi? My 3D plot doesn't look right at certain viewing angles I don't like how the 3D plot is laid out, how do I change that? Note pyplot cannot be used to add content to 3D plots, because its function signatures are strictly 2D and cannot handle the additional informatio...
doc_20317
tf.compat.v1.trainable_variables( scope=None ) When passed trainable=True, the Variable() constructor automatically adds new variables to the graph collection GraphKeys.TRAINABLE_VARIABLES. This convenience function returns the contents of that collection. Args scope (Optional.) A string. If supplied, the...
doc_20318
Try to match a single stored value (dv) with a supplied value (v).
doc_20319
tf.experimental.numpy.ascontiguousarray( a, dtype=None ) See the NumPy documentation for numpy.ascontiguousarray.
doc_20320
Perform regression on samples in X. For an one-class model, +1 (inlier) or -1 (outlier) is returned. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) For kernel=”precomputed”, the expected shape of X is (n_samples_test, n_samples_train). Returns y_predndarray of shape (n_samples,)
doc_20321
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
doc_20322
A simple object subclass that provides attribute access to its namespace, as well as a meaningful repr. Unlike object, with SimpleNamespace you can add and remove attributes. If a SimpleNamespace object is initialized with keyword arguments, those are directly added to the underlying namespace. The type is roughly equi...
doc_20323
Noise feature. 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,] M, N) array (same dtype as input) If None, a new array is allocated. maskndarray (integer or float), optional Mask array that defines (>0) ar...
doc_20324
See torch.atan()
doc_20325
Add a table to an Axes. At least one of cellText or cellColours must be specified. These parameters must be 2D lists, in which the outer lists define the rows and the inner list define the column values per row. Each row must have the same number of elements. The table can optionally have row and column headers, whic...
doc_20326
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_20327
Return x * (2**i). This is essentially the inverse of function frexp().
doc_20328
Filename of the image. str: Filename of the image to use in a Toolbar. If None, the name is used as a label in the toolbar button.
doc_20329
Compute pairwise correlation. Pairwise correlation is computed between rows or columns of DataFrame with rows or columns of Series or DataFrame. DataFrames are first aligned along both axes before computing the correlations. Parameters other:DataFrame, Series Object with which to compute correlations. axis:{0...
doc_20330
Bases: matplotlib.artist.Artist A line - the line can have both a solid linestyle connecting all the vertices, and a marker at each vertex. Additionally, the drawing of the solid line is influenced by the drawstyle, e.g., one can create "stepped" lines in various styles. Create a Line2D instance with x and y data in ...
doc_20331
Return the artist's zorder.
doc_20332
New in Django 4.0. Specifies the renderer to use for ErrorList. Defaults to None which means to use the default renderer specified by the FORM_RENDERER setting.
doc_20333
For each element in self, return a copy of the string where all characters occurring in the optional argument deletechars are removed, and the remaining characters have been mapped through the given translation table. See also char.translate
doc_20334
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_20335
The name of the module. Expected to match importlib.machinery.ModuleSpec.name.
doc_20336
Draw samples from a logarithmic series distribution. Samples are drawn from a log series distribution with specified shape parameter, 0 < p < 1. Note New code should use the logseries method of a default_rng() instance instead; please see the Quick Start. Parameters pfloat or array_like of floats Shape parame...
doc_20337
The smallest possible difference between non-equal timedelta objects, timedelta(microseconds=1).
doc_20338
Abstract base class for constraints. A constraint object represents a region over which a variable is valid, e.g. within which a variable can be optimized. Variables ~Constraint.is_discrete (bool) – Whether constrained space is discrete. Defaults to False. ~Constraint.event_dim (int) – Number of rightmost dimens...
doc_20339
operator.__irshift__(a, b) a = irshift(a, b) is equivalent to a >>= b.
doc_20340
Return a list of all available password database entries, in arbitrary order.
doc_20341
tf.greater_equal Compat aliases for migration See Migration guide for more details. tf.compat.v1.greater_equal, tf.compat.v1.math.greater_equal tf.math.greater_equal( x, y, name=None ) Note: math.greater_equal supports broadcasting. More about broadcasting here Example: x = tf.constant([5, 4, 6, 7]) y = tf.con...
doc_20342
Compute the maximum absolute value to be used for later scaling. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data used to compute the per-feature minimum and maximum used for later scaling along the features axis. yNone Ignored. Returns selfobject Fitted scaler.
doc_20343
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyProximalAdagrad tf.raw_ops.ApplyProximalAdagrad( var, accum, lr, l1, l2, grad, use_locking=False, name=None ) accum += grad * grad prox_v = var - lr * grad * (1 / sqrt(accum)) var = sign(prox_v)/(1+lr*l2) * max{|prox_v|-lr*l1,0} Args var A ...
doc_20344
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_20345
Apply inverse transformation. Coordinates outside of the mesh will be set to - 1. Parameters coords(N, 2) array Source coordinates. Returns coords(N, 2) array Transformed coordinates.
doc_20346
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_20347
Return the reference count of the object. The count returned is generally one higher than you might expect, because it includes the (temporary) reference as an argument to getrefcount().
doc_20348
Unquote a single etag: >>> unquote_etag('W/"bar"') ('bar', True) >>> unquote_etag('"bar"') ('bar', False) Parameters etag (Optional[str]) – the etag identifier to unquote. Returns a (etag, weak) tuple. Return type Union[Tuple[str, bool], Tuple[None, None]]
doc_20349
Warning raised when reading different dtypes in a column from a file. Raised for a dtype incompatibility. This can happen whenever read_csv or read_table encounter non-uniform dtypes in a column(s) of a given CSV file. See also read_csv Read CSV (comma-separated) file into a DataFrame. read_table Read general de...
doc_20350
Add all subplots specified by this GridSpec to its parent figure. See Figure.subplots for detailed documentation.
doc_20351
tf.image.stateless_random_jpeg_quality( image, min_jpeg_quality, max_jpeg_quality, seed ) Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed settings (e.g. tf.random.set_seed). min_jpeg_quality must be in the interval [0, 100] and le...
doc_20352
See Migration guide for more details. tf.compat.v1.raw_ops.LoadAndRemapMatrix tf.raw_ops.LoadAndRemapMatrix( ckpt_path, old_tensor_name, row_remapping, col_remapping, initializing_values, num_rows, num_cols, max_rows_in_memory=-1, name=None ) at ckpt_path and potentially reorders its rows and columns using t...
doc_20353
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_20354
This widget uses an OpenStreetMap base layer to display geographic objects on. Attributes are: template_name gis/openlayers-osm.html default_lat default_lon The default center latitude and longitude are 47 and 5, respectively, which is a location in eastern France. default_zoom The default map zoom ...
doc_20355
Returns transformTransform The transform used for drawing secondary x-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in axis coordinates valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}...
doc_20356
tf.compat.v1.count_up_to( ref, limit, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Prefer Dataset.range instead. Args ref A Variable. Must be one of the following types: int32, int64. Should be from a scalar Variable node. limit ...
doc_20357
Raise a Hermite series to a power. Returns the Hermite series c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. i.e., [1,2,3] is the series P_0 + 2*P_1 + 3*P_2. Parameters carray_like 1-D array of Hermite series coefficients ordered from low to high. powinteger ...
doc_20358
Get the underlying transformation matrix as a 3x3 numpy array: a c e b d f 0 0 1 .
doc_20359
Parameters angle – a number (optional) Set or return the current tilt-angle. If angle is given, rotate the turtleshape to point in the direction specified by angle, regardless of its current tilt-angle. Do not change the turtle’s heading (direction of movement). If angle is not given: return the current tilt-angle,...
doc_20360
Removes the pruning reparameterization from a module. The pruned parameter named name remains permanently pruned, and the parameter named name+'_orig' is removed from the parameter list. Similarly, the buffer named name+'_mask' is removed from the buffers. Note Pruning itself is NOT undone or reversed!
doc_20361
Serialize data to JSON and wrap it in a Response with the application/json mimetype. Uses dumps() to serialize the data, but args and kwargs are treated as data rather than arguments to json.dumps(). Single argument: Treated as a single value. Multiple arguments: Treated as a list of values. jsonify(1, 2, 3) is the sa...
doc_20362
Return a 2-D array with ones on the diagonal and zeros elsewhere. Parameters Nint Number of rows in the output. Mint, optional Number of columns in the output. If None, defaults to N. kint, optional Index of the diagonal: 0 (the default) refers to the main diagonal, a positive value refers to an upper d...
doc_20363
Send the data bytes to the remote peer given by addr (a transport-dependent target address). If addr is None, the data is sent to the target address given on transport creation. This method does not block; it buffers the data and arranges for it to be sent out asynchronously.
doc_20364
See torch.solve()
doc_20365
Used to display HTML or access attributes for a single field of a Form instance. The __str__() method of this object displays the HTML for this field.
doc_20366
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_20367
Reset the broadcasted result’s iterator(s). Parameters None Returns None Examples >>> x = np.array([1, 2, 3]) >>> y = np.array([[4], [5], [6]]) >>> b = np.broadcast(x, y) >>> b.index 0 >>> next(b), next(b), next(b) ((1, 4), (2, 4), (3, 4)) >>> b.index 3 >>> b.reset() >>> b.index 0
doc_20368
load cursor data from an XBM file load_xbm(cursorfile) -> cursor_args load_xbm(cursorfile, maskfile) -> cursor_args This loads cursors for a simple subset of XBM files. XBM files are traditionally used to store cursors on UNIX systems, they are an ASCII format used to represent simple images. Sometimes the black and ...
doc_20369
Check if the Index holds categorical data. Returns bool True if the Index is categorical. See also CategoricalIndex Index for categorical data. is_boolean Check if the Index only consists of booleans. is_integer Check if the Index only consists of integers. is_floating Check if the Index is a floatin...
doc_20370
Set the calculation method for the z-order. Parameters zsort{'average', 'min', 'max'} The function applied on the z-coordinates of the vertices in the viewer's coordinate system, to determine the z-order.
doc_20371
Subtypes Rational and adds a conversion to int. Provides defaults for float(), numerator, and denominator. Adds abstract methods for ** and bit-string operations: <<, >>, &, ^, |, ~.
doc_20372
Identity function. If p is the returned series, then p(x) == x for all values of x. Parameters domain{None, array_like}, optional If given, the array must be of the form [beg, end], where beg and end are the endpoints of the domain. If None is given then the class domain is used. The default is None. window{N...
doc_20373
Replace values where the condition is True. Parameters cond:bool Series/DataFrame, array-like, or callable Where cond is False, keep the original value. Where True, replace with corresponding value from other. If cond is callable, it is computed on the Series/DataFrame and should return boolean Series/DataFrame...
doc_20374
test if extended image formats can be loaded get_extended() -> bool If pygame is built with extended image formats this function will return True. It is still not possible to determine which formats will be available, but generally you will be able to load them all.
doc_20375
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred) ** 2).sum() and \(v\) is the total sum of squares ((y_true - y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c...
doc_20376
'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_20377
Returns a hook which opens each file with open(), using the given encoding and errors to read the file. Usage example: fi = fileinput.FileInput(openhook=fileinput.hook_encoded("utf-8", "surrogateescape")) Changed in version 3.6: Added the optional errors parameter.
doc_20378
The details of this function differ on Unix and Windows. On Unix: Wait for completion of a child process given by process id pid, and return a tuple containing its process id and exit status indication (encoded as for wait()). The semantics of the call are affected by the value of the integer options, which should be 0...
doc_20379
Return True if the platform supports creating a TCP socket which can handle both IPv4 and IPv6 connections. New in version 3.8.
doc_20380
Like get_template(), except it takes a list of names and returns the first template that was found.
doc_20381
bytearray.index(sub[, start[, end]]) Like find(), but raise ValueError when the subsequence is not found. The subsequence to search for may be any bytes-like object or an integer in the range 0 to 255. Changed in version 3.3: Also accept an integer in the range 0 to 255 as the subsequence.
doc_20382
Returns the user model instance associated with the given request’s session. It checks if the authentication backend stored in the session is present in AUTHENTICATION_BACKENDS. If so, it uses the backend’s get_user() method to retrieve the user model instance and then verifies the session by calling the user model’s g...
doc_20383
Change the mode of path to the numeric mode. If path is a symlink, this affects the symlink rather than the target. See the docs for chmod() for possible values of mode. As of Python 3.3, this is equivalent to os.chmod(path, mode, follow_symlinks=False). Raises an auditing event os.chmod with arguments path, mode, dir_...
doc_20384
The prototype of create_user() should accept the username field, plus all required fields as arguments. For example, if your user model uses email as the username field, and has date_of_birth as a required field, then create_user should be defined as: def create_user(self, email, date_of_birth, password=None): # cr...
doc_20385
Computes the Davies-Bouldin score. The score is defined as the average similarity measure of each cluster with its most similar cluster, where similarity is the ratio of within-cluster distances to between-cluster distances. Thus, clusters which are farther apart and less dispersed will result in a better score. The ...
doc_20386
Perform column-wise combine with another DataFrame. Combines a DataFrame with other DataFrame using func to element-wise combine columns. The row and column indexes of the resulting DataFrame will be the union of the two. Parameters other:DataFrame The DataFrame to merge column-wise. func:function Function ...
doc_20387
See Migration guide for more details. tf.compat.v1.raw_ops.MatrixExponential tf.raw_ops.MatrixExponential( input, name=None ) Args input A Tensor. Must be one of the following types: float64, float32, half, complex64, complex128. name A name for the operation (optional). Returns A Tensor...
doc_20388
Set the JoinStyle for the collection (for all its elements). Parameters jsJoinStyle or {'miter', 'round', 'bevel'}
doc_20389
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArraySizeV2 tf.raw_ops.TensorArraySizeV2( handle, flow_in, name=None ) Args handle A Tensor of type string. flow_in A Tensor of type float32. name A name for the operation (optional). Returns A Tensor of type int32.
doc_20390
Return the mutation scale. Returns scalar
doc_20391
See Migration guide for more details. tf.compat.v1.nn.ctc_greedy_decoder tf.nn.ctc_greedy_decoder( inputs, sequence_length, merge_repeated=True ) Note: Regardless of the value of merge_repeated, if the maximum index of a given time and batch corresponds to the blank index (num_classes - 1), no new element is em...
doc_20392
Play the SystemHand sound.
doc_20393
Row and column indices of the i’th bicluster. Only works if rows_ and columns_ attributes exist. Parameters iint The index of the cluster. Returns row_indndarray, dtype=np.intp Indices of rows in the dataset that belong to the bicluster. col_indndarray, dtype=np.intp Indices of columns in the datase...
doc_20394
Return str(self).
doc_20395
A read-only description of the dialect in use by the writer.
doc_20396
A file_dispatcher takes a file descriptor or file object along with an optional map argument and wraps it for use with the poll() or loop() functions. If provided a file object or anything with a fileno() method, that method will be called and passed to the file_wrapper constructor. Availability: Unix.
doc_20397
Returns whether the kernel is defined on fixed-length feature vectors or generic objects. Defaults to True for backward compatibility.
doc_20398
Bases: matplotlib.projections.geo._GeoTransform The base Aitoff transform. Create a new geographical transform. Resolution is the number of steps to interpolate between each input line segment to approximate its path in curved space. has_inverse=True True if this transform has a corresponding inverse transform. ...
doc_20399
A string representing the (local or global) root, if any: >>> PureWindowsPath('c:/Program Files/').root '\\' >>> PureWindowsPath('c:Program Files/').root '' >>> PurePosixPath('/etc').root '/' UNC shares always have a root: >>> PureWindowsPath('//host/share').root '\\'