_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_27200
Many programs split up their functionality into a number of sub-commands, for example, the svn program can invoke sub-commands like svn checkout, svn update, and svn commit. Splitting up functionality this way can be a particularly good idea when a program performs several different functions which require different ki...
doc_27201
This signal is sent when the request is tearing down. This is always called, even if an exception is caused. Currently functions listening to this signal are called after the regular teardown handlers, but this is not something you can rely on. Example subscriber: def close_db_connection(sender, **extra): session.c...
doc_27202
The header to issue if the help output has a section for documented commands.
doc_27203
See Migration guide for more details. tf.compat.v1.raw_ops.CholeskyGrad tf.raw_ops.CholeskyGrad( l, grad, name=None ) For an explanation see "Differentiation of the Cholesky algorithm" by Iain Murray http://arxiv.org/abs/1602.07527 Args l A Tensor. Must be one of the following types: half, float32, floa...
doc_27204
The number of days in the month.
doc_27205
sklearn.datasets.dump_svmlight_file(X, y, f, *, zero_based=True, comment=None, query_id=None, multilabel=False) [source] Dump the dataset in svmlight / libsvm file format. This format is a text-based format, with one sample per line. It does not store zero valued features hence is suitable for sparse dataset. The fir...
doc_27206
Draw Artist a only. This method can only be used after an initial draw of the figure, because that creates and caches the renderer needed here.
doc_27207
Isotonic regression model. Read more in the User Guide. New in version 0.13. Parameters y_minfloat, default=None Lower bound on the lowest predicted value (the minimum value may still be higher). If not set, defaults to -inf. y_maxfloat, default=None Upper bound on the highest predicted value (the maximum...
doc_27208
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_27209
See Migration guide for more details. tf.compat.v1.raw_ops.SerializeSparse tf.raw_ops.SerializeSparse( sparse_indices, sparse_values, sparse_shape, out_type=tf.dtypes.string, name=None ) Args sparse_indices A Tensor of type int64. 2-D. The indices of the SparseTensor. sparse_values A Tensor. 1...
doc_27210
Similar to the max() method, but the comparison is done using the absolute values of the operands.
doc_27211
Count the non-masked elements of the array along the given axis. Parameters axisNone or int or tuple of ints, optional Axis or axes along which the count is performed. The default, None, performs the count over all the dimensions of the input array. axis may be negative, in which case it counts from the last to...
doc_27212
Token value for "+=".
doc_27213
See Migration guide for more details. tf.compat.v1.raw_ops.SparseReduceMaxSparse tf.raw_ops.SparseReduceMaxSparse( input_indices, input_values, input_shape, reduction_axes, keep_dims=False, name=None ) This Op takes a SparseTensor and is the sparse counterpart to tf.reduce_max(). In contrast to SparseReduceM...
doc_27214
When used in combination with a with statement this opens a session transaction. This can be used to modify the session that the test client uses. Once the with block is left the session is stored back. with client.session_transaction() as session: session['value'] = 42 Internally this is implemented by going thro...
doc_27215
A memoryview and a PEP 3118 exporter are equal if their shapes are equivalent and if all corresponding values are equal when the operands’ respective format codes are interpreted using struct syntax. For the subset of struct format strings currently supported by tolist(), v and w are equal if v.tolist() == w.tolist(): ...
doc_27216
Asserts that the strings html1 and html2 are not equal. The comparison is based on HTML semantics. See assertHTMLEqual() for details. html1 and html2 must contain HTML. An AssertionError will be raised if one of them cannot be parsed. Output in case of error can be customized with the msg argument.
doc_27217
draw an antialiased ellipse aaellipse(surface, x, y, rx, ry, color) -> None Draws an unfilled antialiased ellipse on the given surface. Parameters: surface (Surface) -- surface to draw on x (int) -- x coordinate of the center of the ellipse y (int) -- y coordinate of the center of the ellipse rx (int) -- h...
doc_27218
Return a with each element rounded to the given number of decimals. Refer to numpy.around for full documentation. See also numpy.around equivalent function
doc_27219
Applies a 1D max pooling over an input signal composed of several input planes. See MaxPool1d for details.
doc_27220
Moves all model parameters and buffers to the CPU. Returns self Return type Module
doc_27221
Clear the filecmp cache. This may be useful if a file is compared so quickly after it is modified that it is within the mtime resolution of the underlying filesystem. New in version 3.4.
doc_27222
re.MULTILINE When specified, the pattern character '^' matches at the beginning of the string and at the beginning of each line (immediately following each newline); and the pattern character '$' matches at the end of the string and at the end of each line (immediately preceding each newline). By default, '^' matches...
doc_27223
The path to the templates folder, relative to root_path, to add to the template loader. None if templates should not be added.
doc_27224
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_27225
Repr.maxlist Repr.maxtuple Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray Limits on the number of entries represented for the named object type. The default is 4 for maxdict, 5 for maxarray, and 6 for the others.
doc_27226
Establish a network connection and return a pair of (reader, writer) objects. The returned reader and writer objects are instances of StreamReader and StreamWriter classes. The loop argument is optional and can always be determined automatically when this function is awaited from a coroutine. limit determines the buffe...
doc_27227
Convert points to display units. You need to override this function (unless your backend doesn't have a dpi, e.g., postscript or svg). Some imaging systems assume some value for pixels per inch: points to pixels = points * pixels_per_inch/72 * dpi/72 Parameters pointsfloat or array-like a float or a numpy arra...
doc_27228
Returns the population covariance as a float, or default if there aren’t any matching rows. Has one optional argument: sample By default CovarPop returns the general population covariance. However, if sample=True, the return value will be the sample population covariance.
doc_27229
Bases: matplotlib.offsetbox.OffsetBox The DrawingArea can contain any Artist as a child. The DrawingArea has a fixed width and height. The position of children relative to the parent is fixed. The children can be clipped at the boundaries of the parent. Parameters width, heightfloat Width and height of the cont...
doc_27230
See Migration guide for more details. tf.compat.v1.keras.layers.Add tf.keras.layers.Add( **kwargs ) It takes as input a list of tensors, all of the same shape, and returns a single tensor (also of the same shape). Examples: input_shape = (2, 3, 4) x1 = tf.random.normal(input_shape) x2 = tf.random.normal(input_s...
doc_27231
Constructs a ZoneInfo object from a file-like object returning bytes (e.g. a file opened in binary mode or an io.BytesIO object). Unlike the primary constructor, this always constructs a new object. The key parameter sets the name of the zone for the purposes of __str__() and __repr__(). Objects created via this constr...
doc_27232
Draw a marker at each of path's vertices (excluding control points). This provides a fallback implementation of draw_markers that makes multiple calls to draw_path(). Some backends may want to override this method in order to draw the marker only once and reuse it multiple times. Parameters gcGraphicsContextBase ...
doc_27233
Returns a boolean indicating whether the geometry is three-dimensional.
doc_27234
Open FTP URLs.
doc_27235
Release the lock on the mailbox, if any.
doc_27236
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters valuesarray The input v...
doc_27237
Applies the Softmax function to an n-dimensional input Tensor rescaling them so that the elements of the n-dimensional output Tensor lie in the range [0,1] and sum to 1. Softmax is defined as: Softmax(xi)=exp⁡(xi)∑jexp⁡(xj)\text{Softmax}(x_{i}) = \frac{\exp(x_i)}{\sum_j \exp(x_j)} When the input Tensor is a sparse...
doc_27238
Bases: dict Register types with conversion interface. get_converter(x)[source] Get the converter interface instance for x, or None.
doc_27239
A tuple of line, column numbers, specifying where the error occurred.
doc_27240
Prevents an SSLv3 connection. This option is only applicable in conjunction with PROTOCOL_TLS. It prevents the peers from choosing SSLv3 as the protocol version. New in version 3.2. Deprecated since version 3.6: SSLv3 is deprecated
doc_27241
Indicate duplicate index values. Duplicated values are indicated as True values in the resulting array. Either all duplicates, all except the first, or all except the last occurrence of duplicates can be indicated. Parameters keep:{‘first’, ‘last’, False}, default ‘first’ The value or values in a set of duplica...
doc_27242
Add a character set alias. alias is the alias name, e.g. latin-1. canonical is the character set’s canonical name, e.g. iso-8859-1. The global charset alias registry is kept in the module global dictionary ALIASES.
doc_27243
Call the set_content() method of the content_manager, passing self as the message object, and passing along any other arguments or keywords as additional arguments. If content_manager is not specified, use the content_manager specified by the current policy.
doc_27244
Returns a new tensor with the data in input fake quantized per channel using scale, zero_point, quant_min and quant_max, across the channel specified by axis. output=min(quant_max,max(quant_min,std::nearby_int(input/scale)+zero_point))\text{output} = min( \text{quant\_max}, max( \text{quant\_min}, \text{std::nearby\_i...
doc_27245
lookup_name = 'time' output_field = TimeField() Changed in Django 3.2: The tzinfo parameter was added.
doc_27246
Create a new instance to handle XML-RPC requests in a CGI environment. The allow_none and encoding parameters are passed on to xmlrpc.client and control the XML-RPC responses that will be returned from the server. The use_builtin_types parameter is passed to the loads() function and controls which types are processed w...
doc_27247
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_27248
Copy the graph with its max node id. See also networkx.Graph.copy().
doc_27249
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
doc_27250
Homogenize the input value for easy and efficient normalization. value can be a scalar or sequence. Returns resultmasked array Masked array with the same shape as value. is_scalarbool Whether value is a scalar. Notes Float dtypes are preserved; integer types with two bytes or smaller are converted to np...
doc_27251
x and y sticky edge lists for autoscaling. When performing autoscaling, if a data limit coincides with a value in the corresponding sticky_edges list, then no margin will be added--the view limit "sticks" to the edge. A typical use case is histograms, where one usually expects no margin on the bottom edge (0) of the ...
doc_27252
Parameters x – a number or a pair/vector of numbers or a turtle instance y – a number if x is a number, else None Return the distance from the turtle to (x,y), the given vector, or the given other turtle, in turtle step units. >>> turtle.home() >>> turtle.distance(30,40) 50.0 >>> turtle.distance((30,40)) 50.0 ...
doc_27253
Return the clip path.
doc_27254
Shift the bits of an integer to the right. Bits are shifted to the right x2. Because the internal representation of numbers is in binary format, this operation is equivalent to dividing x1 by 2**x2. Parameters x1array_like, int Input values. x2array_like, int Number of bits to remove at the right of x1. If ...
doc_27255
A boolean operation, ‘or’ or ‘and’. op is Or or And. values are the values involved. Consecutive operations with the same operator, such as a or b or c, are collapsed into one node with several values. This doesn’t include not, which is a UnaryOp. >>> print(ast.dump(ast.parse('x or y', mode='eval'), indent=4)) Expressi...
doc_27256
Called after the test case test has been executed, regardless of the outcome.
doc_27257
Cursor to use when the tool is active.
doc_27258
Random walker algorithm for segmentation from markers. Random walker algorithm is implemented for gray-level or multichannel images. Parameters dataarray_like Image to be segmented in phases. Gray-level data can be two- or three-dimensional; multichannel data can be three- or four- dimensional (multichannel=Tru...
doc_27259
See Migration guide for more details. tf.compat.v1.truncatemod tf.truncatemod( x, y, name=None ) the result here is consistent with a truncating divide. E.g. truncate(x / y) * y + truncate_mod(x, y) = x. Note: truncatemod supports broadcasting. More about broadcasting here Args x A Tensor. Must be one...
doc_27260
Format a form in HTML.
doc_27261
Predict regression value for X. The predicted regression value of an input sample is computed as the weighted median prediction of the classifiers in the ensemble. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Sparse matrix can be CSC, CSR, COO, DOK, or LIL...
doc_27262
Returns True if the distributed package is available. Otherwise, torch.distributed does not expose any other APIs. Currently, torch.distributed is available on Linux, MacOS and Windows. Set USE_DISTRIBUTED=1 to enable it when building PyTorch from source. Currently, the default value is USE_DISTRIBUTED=1 for Linux an...
doc_27263
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_27264
Release the underlying lock. When invoked on an unlocked lock, a RuntimeError is raised.
doc_27265
Cookies that did not explicitly specify a domain cookie-attribute can only be returned to a domain equal to the domain that set the cookie (eg. spam.example.com won’t be returned cookies from example.com that had no domain cookie-attribute).
doc_27266
See Migration guide for more details. tf.compat.v1.image.generate_bounding_box_proposals tf.image.generate_bounding_box_proposals( scores, bbox_deltas, image_info, anchors, nms_threshold=0.7, pre_nms_topn=6000, min_size=16, post_nms_topn=300, name=None ) Args scores A 4-D float Tensor of shape [num_...
doc_27267
Return the greatest common divisor of the specified integer arguments. If any of the arguments is nonzero, then the returned value is the largest positive integer that is a divisor of all arguments. If all arguments are zero, then the returned value is 0. gcd() without arguments returns 0. New in version 3.5. Change...
doc_27268
Remove categories which are not used. Parameters inplace:bool, default False Whether or not to drop unused categories inplace or return a copy of this categorical with unused categories dropped. Deprecated since version 1.2.0. Returns cat:Categorical or None Categorical with unused categories dropped ...
doc_27269
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None
doc_27270
Return the character at the given position in the window. The bottom 8 bits are the character proper, and upper bits are the attributes.
doc_27271
See Migration guide for more details. tf.compat.v1.strided_slice tf.strided_slice( input_, begin, end, strides=None, begin_mask=0, end_mask=0, ellipsis_mask=0, new_axis_mask=0, shrink_axis_mask=0, var=None, name=None ) See also tf.slice. Instead of calling this op directly most users will want to use the Num...
doc_27272
| NASNet-A (4 @ 1056) | 74.0 % | 91.6 % | 564 M | 5.3 | | NASNet-A (6 @ 4032) | 82.7 % | 96.2 % | 23.8 B | 88.9 | Reference: Learning Transferable Architectures for Scalable Image Recognition (CVPR 2018) Functions NASNetLarge(...): Instantiates a NASNet model in ImageNet mode. NASNetMobile(...): Instantiates a Mobi...
doc_27273
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_27274
Sets whether to materialize output grad tensors. Default is true. This should be called only from inside the forward() method If true, undefined output grad tensors will be expanded to tensors full of zeros prior to calling the backward() method.
doc_27275
Optimize points for projection.
doc_27276
Prints the description for one or more registered options. Call with no arguments to get a listing for all registered options. Available options: compute.[use_bottleneck, use_numba, use_numexpr] display.[chop_threshold, colheader_justify, column_space, date_dayfirst, date_yearfirst, encoding, expand_frame_repr, floa...
doc_27277
Retrieve a module loader for the given fullname. This is a backwards compatibility wrapper around importlib.util.find_spec() that converts most failures to ImportError and only returns the loader rather than the full ModuleSpec. Changed in version 3.3: Updated to be based directly on importlib rather than relying on t...
doc_27278
Join arrays r1 and r2 on key key. The key should be either a string or a sequence of string corresponding to the fields used to join the array. An exception is raised if the key field cannot be found in the two input arrays. Neither r1 nor r2 should have any duplicates along key: the presence of duplicates will make ...
doc_27279
Return the Figure instance the artist belongs to.
doc_27280
turtle.setpos(x, y=None) turtle.setposition(x, y=None) Parameters x – a number or a pair/vector of numbers y – a number or None If y is None, x must be a pair of coordinates or a Vec2D (e.g. as returned by pos()). Move turtle to an absolute position. If the pen is down, draw line. Do not change the turtle’...
doc_27281
gis_widget The widget class to be used for GeometryField. Defaults to OSMWidget. gis_widget_kwargs The keyword arguments that would be passed to the gis_widget. Defaults to an empty dictionary.
doc_27282
The reverse of escape(). This unescapes all the HTML entities, not only those inserted by escape. Deprecated since version 2.0: Will be removed in Werkzeug 2.1. Use MarkupSafe instead. Parameters s (str) – Return type str
doc_27283
heapq.heappush(heap, item) Push the value item onto the heap, maintaining the heap invariant. heapq.heappop(heap) Pop and return the smallest item from the heap, maintaining the heap invariant. If the heap is empty, IndexError is raised. To access the smallest item without popping it, use heap[0]. heapq.hea...
doc_27284
window.vline(y, x, ch, n) Display a vertical line starting at (y, x) with length n consisting of the character ch.
doc_27285
Bases: matplotlib.offsetbox.PackerBase HPacker packs its children horizontally, automatically adjusting their relative positions at draw time. Parameters padfloat, optional The boundary padding in points. sepfloat, optional The spacing between items in points. width, heightfloat, optional Width and heig...
doc_27286
This signal is sent when a template was successfully rendered. The signal is invoked with the instance of the template as template and the context as dictionary (named context). Example subscriber: def log_template_renders(sender, template, context, **extra): sender.logger.debug('Rendering template "%s" with contex...
doc_27287
This class is used to serve either files or output of CGI scripts from the current directory and below. Note that mapping HTTP hierarchic structure to local directory structure is exactly as in SimpleHTTPRequestHandler. Note CGI scripts run by the CGIHTTPRequestHandler class cannot execute redirects (HTTP code 302), b...
doc_27288
Partition (split) each element around the right-most separator. Calls str.rpartition element-wise. For each element in a, split the element as the last occurrence of sep, and return 3 strings containing the part before the separator, the separator itself, and the part after the separator. If the separator is not foun...
doc_27289
A list of CSS classes used for weekday names in the header row. The default is the same as cssclasses. New in version 3.7.
doc_27290
Set the axis view limits. This method is for internal use; Matplotlib users should typically use e.g. set_xlim or set_ylim. If ignore is False (the default), this method will never reduce the preexisting view limits, only expand them if vmin or vmax are not within them. Moreover, the order of vmin and vmax does not m...
doc_27291
Casts all floating point parameters and buffers to double datatype. Returns self Return type Module
doc_27292
Pulls all flashed messages from the session and returns them. Further calls in the same request to the function will return the same messages. By default just the messages are returned, but when with_categories is set to True, the return value will be a list of tuples in the form (category, message) instead. Filter the...
doc_27293
Re-initialize the major and minor Tick lists. Each list starts with a single fresh Tick.
doc_27294
Return a new string with backslashes in str replaced by two backslashes, and double quotes replaced by backslash-double quote.
doc_27295
Initialize the terminal. term is a string giving the terminal name, or None; if omitted or None, the value of the TERM environment variable will be used. fd is the file descriptor to which any initialization sequences will be sent; if not supplied or -1, the file descriptor for sys.stdout will be used.
doc_27296
Return the list of items for a given key. If that key is not in the MultiDict, the return value will be an empty list. Just like get, getlist accepts a type parameter. All items will be converted with the callable defined there. Parameters key – The key to be looked up. type – A callable that is used to cast the v...
doc_27297
Convert Matplotlib dates to datetime objects. Parameters xfloat or sequence of floats Number of days (fraction part represents hours, minutes, seconds) since the epoch. See get_epoch for the epoch, which can be changed by rcParams["date.epoch"] (default: '1970-01-01T00:00:00') or set_epoch. tzstr, default: rc...
doc_27298
Compares fromlines and tolines (lists of strings) and returns a string which is a complete HTML file containing a table showing line by line differences with inter-line and intra-line changes highlighted. fromdesc and todesc are optional keyword arguments to specify from/to file column header strings (both default to a...
doc_27299
See Migration guide for more details. tf.compat.v1.truncatediv tf.truncatediv( x, y, name=None ) Truncation designates that negative numbers will round fractional quantities toward zero. I.e. -7 / 5 = -1. This matches C semantics but it is different than Python semantics. See FloorDiv for a division function tha...