_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_19100
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_19101
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_19102
Return Exponential power of series and other, element-wise (binary operator pow). Equivalent to series ** other, 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 mi...
doc_19103
Return a string of the type inferred from the values.
doc_19104
Write a list (or any iterable) of data bytes to the transport. This is functionally equivalent to calling write() on each element yielded by the iterable, but may be implemented more efficiently.
doc_19105
Returns a new numpy.recarray with fields in drop_names dropped.
doc_19106
Applies a bilinear transformation to the incoming data: y=x1TAx2+by = x_1^T A x_2 + b Parameters in1_features – size of each first input sample in2_features – size of each second input sample out_features – size of each output sample bias – If set to False, the layer will not learn an additive bias. Default: ...
doc_19107
tf.initializers.Ones, tf.initializers.ones, tf.keras.initializers.ones Also available via the shortcut function tf.keras.initializers.ones. Examples: # Standalone usage: initializer = tf.keras.initializers.Ones() values = initializer(shape=(2, 2)) # Usage in a Keras layer: initializer = tf.keras.initializers.Ones()...
doc_19108
Compute the anomalies (deviations from the arithmetic mean) along the given axis. Returns an array of anomalies, with the same shape as the input and where the arithmetic mean is computed along the given axis. Parameters axisint, optional Axis over which the anomalies are taken. The default is to use the mean o...
doc_19109
A dictionary of context data that will be added to the default context data passed to the template.
doc_19110
Clear up any closed Comms.
doc_19111
Return a tuple (real_value, coded_value). val can be any type, but coded_value will always be converted to a string. This method does no encoding in BaseCookie — it exists so it can be overridden. In general, it should be the case that value_encode() and value_decode() are inverses on the range of value_decode.
doc_19112
Get the filename of the default font get_default_font() -> string Return the filename of the default pygame font. This is not the full path to the file. The file is usually in the same directory as the font module, but can also be bundled in a separate archive.
doc_19113
See Migration guide for more details. tf.compat.v1.keras.applications.mobilenet_v2.decode_predictions tf.keras.applications.mobilenet_v2.decode_predictions( preds, top=5 ) Arguments preds Numpy array encoding a batch of predictions. top Integer, how many top-guesses to return. Defaults to 5. ...
doc_19114
Get the FreeType hinting type to use with this particular backend.
doc_19115
Draw contour regions on an unstructured triangular grid. The triangulation can be specified in one of two ways; either tricontourf(triangulation, ...) where triangulation is a Triangulation object, or tricontourf(x, y, ...) tricontourf(x, y, triangles, ...) tricontourf(x, y, triangles=triangles, ...) tricontourf(x, ...
doc_19116
exception struct.error Exception raised on various occasions; argument is a string describing what is wrong. struct.pack(format, v1, v2, ...) Return a bytes object containing the values v1, v2, … packed according to the format string format. The arguments must match the values required by the format exactly. ...
doc_19117
Replace the message corresponding to key with message. Raise a KeyError exception if no message already corresponds to key. As with add(), parameter message may be a Message instance, an email.message.Message instance, a string, a byte string, or a file-like object (which should be open in binary mode). If message is a...
doc_19118
Set the artist's visibility. Parameters bbool
doc_19119
The name of the encoding.
doc_19120
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_19121
Return the mantissa and exponent of x as the pair (m, e). m is a float and e is an integer such that x == m * 2**e exactly. If x is zero, returns (0.0, 0), otherwise 0.5 <= abs(m) < 1. This is used to “pick apart” the internal representation of a float in a portable way.
doc_19122
Sets a cookie in the client’s cookie jar. The server name is required and has to match the one that is also passed to the open call. Parameters server_name (str) – key (str) – value (str) – max_age (Optional[Union[datetime.timedelta, int]]) – expires (Optional[Union[str, datetime.datetime, int, float]]) – ...
doc_19123
Token value for ">>=".
doc_19124
Stack arrays in sequence vertically (row wise). This is equivalent to concatenation along the first axis after 1-D arrays of shape (N,) have been reshaped to (1,N). Rebuilds arrays divided by vsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (first a...
doc_19125
Decorator for only running the test if HAVE_DOCSTRINGS.
doc_19126
class sklearn.semi_supervised.LabelSpreading(kernel='rbf', *, gamma=20, n_neighbors=7, alpha=0.2, max_iter=30, tol=0.001, n_jobs=None) [source] LabelSpreading model for semi-supervised learning This model is similar to the basic Label Propagation algorithm, but uses affinity matrix based on the normalized graph Lapla...
doc_19127
Verifies if the underlying skippable modules satisfy integrity. Every skip tensor must have only one pair of stash and pop. If there are one or more unmatched pairs, it will raise TypeError with the detailed messages. Here are a few failure cases. verify_skippables() will report failure for these cases: # Layer1 stas...
doc_19128
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyRMSProp tf.raw_ops.ApplyRMSProp( var, ms, mom, lr, rho, momentum, epsilon, grad, use_locking=False, name=None ) Note that in dense implementation of this algorithm, ms and mom will update even if the grad is zero, but in this sparse implementation, ...
doc_19129
curses.panel.bottom_panel() Returns the bottom panel in the panel stack. curses.panel.new_panel(win) Returns a panel object, associating it with the given window win. Be aware that you need to keep the returned panel object referenced explicitly. If you don’t, the panel object is garbage collected and removed f...
doc_19130
Applies the logical operation xor between each operand’s digits.
doc_19131
Combines a given template with a given context dictionary and returns an HttpResponse object with that rendered text. Django does not provide a shortcut function which returns a TemplateResponse because the constructor of TemplateResponse offers the same level of convenience as render().
doc_19132
True if the domain explicitly specified by the server began with a dot ('.').
doc_19133
Write array to a file as text or binary (default). Data is always written in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters fidfile or str or Path An open file object, or a string containing a filename. Changed in version 1....
doc_19134
Sets a header unless it has already been set.
doc_19135
Return whether the artist is animated.
doc_19136
Returns sample width in bytes.
doc_19137
Finds the neighbors within a given radius of a point or points. Return the indices and distances of each point from the dataset lying in a ball with size radius around the points of the query array. Points lying on the boundary are included in the results. The result points are not necessarily sorted by distance to t...
doc_19138
Bases: matplotlib.patches.ArrowStyle._Base A fancy arrow. Only works with a quadratic Bezier curve. Parameters head_lengthfloat, default: 0.4 Length of the arrow head. head_widthfloat, default: 0.4 Width of the arrow head. tail_widthfloat, default: 0.4 Width of the arrow tail. transmute(path, muta...
doc_19139
Register a defect on obj. In the email package, defect will always be a subclass of Defect. The default implementation calls the append method of the defects attribute of obj. When the email package calls handle_defect, obj will normally have a defects attribute that has an append method. Custom object types used with ...
doc_19140
Return the integer indices that would sort the index. Parameters *args Passed to numpy.ndarray.argsort. **kwargs Passed to numpy.ndarray.argsort. Returns np.ndarray[np.intp] Integer indices that would sort the index if used as an indexer. See also numpy.argsort Similar method for NumPy arrays. Ind...
doc_19141
An Hermite series class. The Hermite class provides the standard Python numerical methods ‘+’, ‘-’, ‘*’, ‘//’, ‘%’, ‘divmod’, ‘**’, and ‘()’ as well as the attributes and methods listed in the ABCPolyBase documentation. Parameters coefarray_like Hermite coefficients in order of increasing degree, i.e, (1, 2, 3)...
doc_19142
Fills the 2-dimensional input Tensor with the identity matrix. Preserves the identity of the inputs in Linear layers, where as many inputs are preserved as possible. Parameters tensor – a 2-dimensional torch.Tensor Examples >>> w = torch.empty(3, 5) >>> nn.init.eye_(w)
doc_19143
Set a new gamma value and regenerate colormap.
doc_19144
Error raised when an operation would introduce duplicate labels. New in version 1.2.0. Examples >>> s = pd.Series([0, 1, 2], index=['a', 'b', 'c']).set_flags( ... allows_duplicate_labels=False ... ) >>> s.reindex(['a', 'a', 'b']) Traceback (most recent call last): ... DuplicateLabelError: Index has duplicat...
doc_19145
Reads path as a binary file and returns the bytes from it.
doc_19146
Binds the request context to the current context. Return type None
doc_19147
See Migration guide for more details. tf.compat.v1.raw_ops.TensorScatterAdd tf.raw_ops.TensorScatterAdd( tensor, indices, updates, name=None ) This operation creates a new tensor by adding sparse updates to the passed in tensor. This operation is very similar to tf.scatter_nd_add, except that the updates are add...
doc_19148
See Migration guide for more details. tf.compat.v1.raw_ops.SelectV2 tf.raw_ops.SelectV2( condition, t, e, name=None ) Args condition A Tensor of type bool. t A Tensor. e A Tensor. Must have the same type as t. name A name for the operation (optional). Returns A Tensor. Has th...
doc_19149
See Migration guide for more details. tf.compat.v1.train.CheckpointOptions tf.train.CheckpointOptions( experimental_io_device=None ) Used as the _options argument to the tf.Checkpoint constructor to adjust how variables are saved. Example: Run IO ops on "localhost" while saving a checkpoint: step = tf.Variable(0...
doc_19150
Checkpoint mailbox on server.
doc_19151
Check, inclusively, whether an interval includes a given value. Parameters interval(float, float) The endpoints of the interval. valfloat Value to check is within interval. Returns bool Whether val is within the interval.
doc_19152
Series.notnull is an alias for Series.notna. Detect existing (non-missing) values. Return a boolean same-sized object indicating if the values are not NA. Non-missing values get mapped to True. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_inf_as...
doc_19153
Finalize stream.
doc_19154
Exception raised when a curses library function returns an error.
doc_19155
tf.compat.v1.nn.embedding_lookup( params, ids, partition_strategy='mod', name=None, validate_indices=True, max_norm=None ) This function is used to perform parallel lookups on the list of tensors in params. It is a generalization of tf.gather, where params is interpreted as a partitioning of a large embedding ...
doc_19156
Return False if cookies should not be returned, given cookie domain. This method is an optimization. It removes the need for checking every cookie with a particular domain (which might involve reading many files). Returning true from domain_return_ok() and path_return_ok() leaves all the work to return_ok(). If domain_...
doc_19157
Return whether the given points are inside the patch. Parameters points(N, 2) array The points to check, in target coordinates of self.get_transform(). These are display coordinates for patches that are added to a figure or axes. Columns contain x and y values. radiusfloat, optional Add an additional margin...
doc_19158
from myapp.serializers import UserSerializer from rest_framework import generics from rest_framework.permissions import IsAdminUser class UserList(generics.ListCreateAPIView): queryset = User.objects.all() serializer_class = UserSerializer permission_classes = [IsAdminUser] For more complex cases you migh...
doc_19159
See Migration guide for more details. tf.compat.v1.app.flags.ArgumentParser The parse() method checks to make sure that the string argument is a legal value and convert it to a native type. If the value cannot be converted, it should throw a 'ValueError' exception with a human readable explanation of why the value is ...
doc_19160
Bases: torch.distributions.distribution.Distribution Creates a multivariate normal distribution with covariance matrix having a low-rank form parameterized by cov_factor and cov_diag: covariance_matrix = cov_factor @ cov_factor.T + cov_diag Example >>> m = LowRankMultivariateNormal(torch.zeros(2), torch.tensor([[1.]...
doc_19161
A 33-element string array that contains the ASCII mnemonics for the thirty-two ASCII control characters from 0 (NUL) to 0x1f (US), in order, plus the mnemonic SP for the space character.
doc_19162
Split strings around given separator/delimiter. Splits the string in the Series/Index from the end, at the specified delimiter string. Parameters pat:str or compiled regex, optional String or regular expression to split on. If not specified, split on whitespace. n:int, default -1 (all) Limit number of split...
doc_19163
Many-to-many relationship to Permission
doc_19164
Return the width of the turtle window. >>> screen.window_width() 640
doc_19165
create a new event object Event(type, dict) -> EventType instance Event(type, **attributes) -> EventType instance Creates a new event with the given type and attributes. The attributes can come from a dictionary argument with string keys or from keyword arguments.
doc_19166
Return a 2-tuple; the first element is a string containing the command line to be executed (which can be passed to os.system()), and the second element is the mailcap entry for a given MIME type. If no matching MIME type can be found, (None, None) is returned. key is the name of the field desired, which represents the ...
doc_19167
Parameters urlslist of str or None Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends.
doc_19168
tf.compat.v1.enable_tensor_equality() Comparing tensors with element-wise allows comparisons such as tf.Variable(1.0) == 1.0. Element-wise equality implies that tensors are unhashable. Thus tensors can no longer be directly used in sets or as a key in a dictionary.
doc_19169
Join a sequence of arrays along an existing axis. Parameters a1, a2, …sequence of array_like The arrays must have the same shape, except in the dimension corresponding to axis (the first, by default). axisint, optional The axis along which the arrays will be joined. If axis is None, arrays are flattened bef...
doc_19170
Generates a octahedron-shaped structuring element. This is the 3D equivalent of a diamond. A pixel is part of the neighborhood (i.e. labeled 1) if the city block/Manhattan distance between it and the center of the neighborhood is no greater than radius. Parameters radiusint The radius of the octahedron-shaped s...
doc_19171
View inputs as arrays with at least three dimensions. Parameters arys1, arys2, …array_like One or more array-like sequences. Non-array inputs are converted to arrays. Arrays that already have three or more dimensions are preserved. Returns res1, res2, …ndarray An array, or list of arrays, each with a.nd...
doc_19172
Bases: torch.distributions.transformed_distribution.TransformedDistribution Samples from a Pareto Type 1 distribution. Example: >>> m = Pareto(torch.tensor([1.0]), torch.tensor([1.0])) >>> m.sample() # sample from a Pareto distribution with scale=1 and alpha=1 tensor([ 1.5623]) Parameters scale (float or Tensor...
doc_19173
Returns the state of the scaler as a dict. It contains five entries: "scale" - a Python float containing the current scale "growth_factor" - a Python float containing the current growth factor "backoff_factor" - a Python float containing the current backoff factor "growth_interval" - a Python int containing the ...
doc_19174
rotates the vector around the x-axis by the angle in degrees in place. rotate_x_ip(angle) -> None Rotates the vector counterclockwise around the x-axis by the given angle in degrees. The length of the vector is not changed.
doc_19175
Applies the element-wise function: LogSigmoid(x)=log⁡(11+exp⁡(−x))\text{LogSigmoid}(x) = \log\left(\frac{ 1 }{ 1 + \exp(-x)}\right) Shape: Input: (N,∗)(N, *) where * means, any number of additional dimensions Output: (N,∗)(N, *) , same shape as the input Examples: >>> m = nn.LogSigmoid() >>> input = torch....
doc_19176
Iterate over each bezier curve (lines included) in a Path. Parameters **kwargs Forwarded to iter_segments. Yields Bmatplotlib.bezier.BezierSegment The bezier curves that make up the current path. Note in particular that freestanding points are bezier curves of order 0, and lines are bezier curves of order...
doc_19177
When passed a dict of code -> exception items it can be used as callable that raises exceptions. If the first argument to the callable is an integer it will be looked up in the mapping, if it’s a WSGI application it will be raised in a proxy exception. The rest of the arguments are forwarded to the exception constructo...
doc_19178
See Migration guide for more details. tf.compat.v1.raw_ops.InTopK tf.raw_ops.InTopK( predictions, targets, k, name=None ) This outputs a batch_size bool array, an entry out[i] is true if the prediction for the target class is among the top k predictions among all predictions for example i. Note that the behavior...
doc_19179
Can be overridden by a subclass to hook into the matching of the request. Return type None
doc_19180
Map values using input an input mapping or function. Maps the values (their categories, not the codes) of the index to new categories. If the mapping correspondence is one-to-one the result is a CategoricalIndex which has the same order property as the original, otherwise an Index is returned. If a dict or Series is ...
doc_19181
This class method constructs a Fraction representing the exact value of dec, which must be a decimal.Decimal instance. Note From Python 3.2 onwards, you can also construct a Fraction instance directly from a decimal.Decimal instance.
doc_19182
Return a copy of the Bbox anchored to c within container. Parameters c(float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...} Either an (x, y) pair of relative coordinates (0 is left or bottom, 1 is right or top), 'C' (center), or a cardinal direction ('SW', southwest, is bottom left, etc.). containerBbox, o...
doc_19183
Register a callback function that will be called after the TLS Client Hello handshake message has been received by the SSL/TLS server when the TLS client specifies a server name indication. The server name indication mechanism is specified in RFC 6066 section 3 - Server Name Indication. Only one callback can be set per...
doc_19184
bytearray.split(sep=None, maxsplit=-1) Split the binary sequence into subsequences of the same type, using sep as the delimiter string. If maxsplit is given and non-negative, at most maxsplit splits are done (thus, the list will have at most maxsplit+1 elements). If maxsplit is not specified or is -1, then there is n...
doc_19185
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_19186
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_19187
Return the length of the lines used to mark each event.
doc_19188
See torch.pow()
doc_19189
tf.keras.applications.efficientnet.EfficientNetB5 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.EfficientNetB5, tf.compat.v1.keras.applications.efficientnet.EfficientNetB5 tf.keras.applications.EfficientNetB5( include_top=True, weights='imagenet', input_tensor=...
doc_19190
pygame module for camera use Pygame currently supports only Linux and v4l2 cameras. EXPERIMENTAL!: This API may change or disappear in later pygame releases. If you use this, your code will very likely break with the next pygame release. The Bayer to RGB function is based on: Sonix SN9C101 based webcam basic I/F r...
doc_19191
Loads an external XML section into this element tree. source is a file name or file object. parser is an optional parser instance. If not given, the standard XMLParser parser is used. Returns the section root element.
doc_19192
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_19193
Returns a new instance of the QueueListener class. The instance is initialized with the queue to send messages to and a list of handlers which will handle entries placed on the queue. The queue can be any queue-like object; it’s passed as-is to the dequeue() method, which needs to know how to get messages from it. The ...
doc_19194
Returns the absolute URI form of location. If no location is provided, the location will be set to request.get_full_path(). If the location is already an absolute URI, it will not be altered. Otherwise the absolute URI is built using the server variables available in this request. For example: >>> request.build_absolut...
doc_19195
Return elements chosen from x or y depending on condition. Note When only condition is provided, this function is a shorthand for np.asarray(condition).nonzero(). Using nonzero directly should be preferred, as it behaves correctly for subclasses. The rest of this documentation covers only the case where all three ar...
doc_19196
The total number of addresses in the network.
doc_19197
Return the readonly Path of the unit circle. For most cases, Path.circle() will be what you want.
doc_19198
See Migration guide for more details. tf.compat.v1.broadcast_static_shape tf.broadcast_static_shape( shape_x, shape_y ) When shape_x and shape_y are fully known TensorShapes this computes a TensorShape which is the shape of the result of a broadcasting op applied in tensors of shapes shape_x and shape_y. For exa...
doc_19199
Set parameters within this locator