_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_29500
Exception raised when an error occurs while attempting to compile the file.
doc_29501
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_29502
'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_29503
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_29504
Start the timer object. Parameters intervalint, optional Timer interval in milliseconds; overrides a previously set interval if provided.
doc_29505
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_29506
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
doc_29507
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_29508
See Migration guide for more details. tf.compat.v1.raw_ops.TensorStridedSliceUpdate tf.raw_ops.TensorStridedSliceUpdate( input, begin, end, strides, value, begin_mask=0, end_mask=0, ellipsis_mask=0, new_axis_mask=0, shrink_axis_mask=0, name=None ) The values of value are assigned to the positions in the tens...
doc_29509
Name of a model field which will be auto-populated with the width of the image each time the model instance is saved.
doc_29510
col_offset end_lineno end_col_offset Instances of ast.expr and ast.stmt subclasses have lineno, col_offset, lineno, and col_offset attributes. The lineno and end_lineno are the first and last line numbers of source text span (1-indexed so the first line is line 1) and the col_offset and end_col_offset are the cor...
doc_29511
Bases: matplotlib.ticker.Locator Used to locate theta ticks. This will work the same as the base locator except in the case that the view spans the entire circle. In such cases, the previously used default locations of every 45 degrees are returned. refresh()[source] set_axis(axis)[source] view_limits(vmin,...
doc_29512
Set the location of tick in data coords with scalar loc.
doc_29513
class ast.NotEq class ast.Lt class ast.LtE class ast.Gt class ast.GtE class ast.Is class ast.IsNot class ast.In class ast.NotIn Comparison operator tokens.
doc_29514
Get mailbox status. The result is a tuple of 2 integers: (message count, mailbox size).
doc_29515
Draw samples from a standard Normal distribution (mean=0, stdev=1). Note New code should use the standard_normal method of a default_rng() instance instead; please see the Quick Start. Parameters sizeint or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples ar...
doc_29516
Provide rolling window calculations. Parameters window:int, offset, or BaseIndexer subclass Size of the moving window. If an integer, the fixed number of observations used for each window. If an offset, the time period of each window. Each window will be a variable sized based on the observations included in th...
doc_29517
Alias for get_linestyle.
doc_29518
The model which the inline is using. This is required.
doc_29519
Return a bytestring representing the current working directory. Changed in version 3.8: The function now uses the UTF-8 encoding on Windows, rather than the ANSI code page: see PEP 529 for the rationale. The function is no longer deprecated on Windows.
doc_29520
Convert the value to a valid JSON type and add the tag structure around it. Parameters value (Any) – Return type Any
doc_29521
See torch.narrow() Example: >>> x = torch.tensor([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>> x.narrow(0, 0, 2) tensor([[ 1, 2, 3], [ 4, 5, 6]]) >>> x.narrow(1, 1, 2) tensor([[ 2, 3], [ 5, 6], [ 8, 9]])
doc_29522
A generic version of collections.deque. New in version 3.5.4. New in version 3.6.1. Deprecated since version 3.9: collections.deque now supports []. See PEP 585 and Generic Alias Type.
doc_29523
Return log of posterior probabilities of classification. Parameters Xarray-like of shape (n_samples, n_features) Array of samples/test vectors. Returns Cndarray of shape (n_samples, n_classes) Posterior log-probabilities of classification per class.
doc_29524
The number of non- fill_value points. Examples >>> s = SparseArray([0, 0, 1, 1, 1], fill_value=0) >>> s.npoints 3
doc_29525
lookup_name = 'week'
doc_29526
Set the locations of the ticks. This method is called before computing the tick labels because some formatters need to know all tick locations to do so.
doc_29527
See Migration guide for more details. tf.compat.v1.raw_ops.InfeedEnqueueTuple tf.raw_ops.InfeedEnqueueTuple( inputs, shapes, layouts=[], device_ordinal=-1, name=None ) Args inputs A list of Tensor objects. A list of tensors that will be provided using the infeed mechanism. shapes A list of shapes ...
doc_29528
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 bbox_to_anchor unknown child unknown clip_box Bbox clip_on bool clip_pa...
doc_29529
Return the handler map.
doc_29530
The same as fold(), except that the returned value should be a bytes object rather than a string. value may contain surrogateescaped binary data. These could be converted back into binary data in the returned bytes object.
doc_29531
A function that needs to be called when figure dpi changes during the drawing (e.g., rasterizing). It recovers the bbox and re-adjust it with the new dpi.
doc_29532
Returns x multiplied by y, plus z.
doc_29533
Return whether the artist is to be rasterized.
doc_29534
Return a list of the child Artists of this Artist.
doc_29535
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_29536
Return non-zero if the mode is from an event port. New in version 3.4.
doc_29537
Return the fixed value specified when the timezone instance is constructed. The dt argument is ignored. The return value is a timedelta instance equal to the difference between the local time and UTC. Changed in version 3.7: The UTC offset is not restricted to a whole number of minutes.
doc_29538
Encode a Unicode or bytes object as a file system path encode_file_path([obj [, etype]]) -> bytes or None obj: If Unicode, encode; if bytes, return unaltered; if anything else, return None; if not given, raise SyntaxError. etype (exception type): If given, the exception type to raise for an encoding error. The defaul...
doc_29539
See CosineEmbeddingLoss for details.
doc_29540
C14N 2.0 transformation function. Canonicalization is a way to normalise XML output in a way that allows byte-by-byte comparisons and digital signatures. It reduced the freedom that XML serializers have and instead generates a more constrained XML representation. The main restrictions regard the placement of namespace ...
doc_29541
Returns a bool array, where True if input element is complex. What is tested is whether the input has a non-zero imaginary part, not if the input type is complex. Parameters xarray_like Input array. Returns outndarray of bools Output array. See also isreal iscomplexobj Return True if x is a compl...
doc_29542
Translate an Internet protocol name (for example, 'icmp') to a constant suitable for passing as the (optional) third argument to the socket() function. This is usually only needed for sockets opened in “raw” mode (SOCK_RAW); for the normal socket modes, the correct protocol is chosen automatically if the protocol is om...
doc_29543
Required. A list, tuple, QuerySet, or other sliceable object with a count() or __len__() method. For consistent pagination, QuerySets should be ordered, e.g. with an order_by() clause or with a default ordering on the model. Performance issues paginating large QuerySets If you’re using a QuerySet with a very large num...
doc_29544
Set slider value to val. Parameters valtuple or array-like of float
doc_29545
The name of the form field.
doc_29546
Instantiates a QueryDict object based on query_string. >>> QueryDict('a=1&a=2&c=3') <QueryDict: {'a': ['1', '2'], 'c': ['3']}> If query_string is not passed in, the resulting QueryDict will be empty (it will have no keys or values). Most QueryDicts you encounter, and in particular those at request.POST and request.GET...
doc_29547
Return last n rows of each group. Similar to .apply(lambda x: x.tail(n)), but it returns a subset of rows from the original DataFrame with original index and order preserved (as_index flag is ignored). Parameters n:int If positive: number of entries to include from end of each group. If negative: number of entr...
doc_29548
alias of matplotlib.backends.backend_svg.FigureCanvasSVG
doc_29549
Cosine element-wise. Parameters xarray_like Input array in radians. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (po...
doc_29550
Modify attributes of the font.
doc_29551
True if the epoll object is closed.
doc_29552
Optional (blank=True). Email address.
doc_29553
Grass. Returns grass(512, 512) uint8 image Some grass. Notes The original image was downloaded from DeviantArt and licensed underthe Creative Commons CC0 License. The downloaded image was cropped to include a region of (512, 512) pixels around the top left corner, converted to grayscale, then to uint8 prior...
doc_29554
Inner product of two arrays. Ordinary inner product of vectors for 1-D arrays (without complex conjugation), in higher dimensions a sum product over the last axes. Parameters a, barray_like If a and b are nonscalar, their last dimensions must match. Returns outndarray If a and b are both scalars or both...
doc_29555
Identical to the pack() function, using the compiled format. (len(result) will equal size.)
doc_29556
See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingAdadeltaParameters tf.raw_ops.LoadTPUEmbeddingAdadeltaParameters( parameters, accumulators, updates, num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that loads optimization parameters into HBM for embedd...
doc_29557
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_29558
Extract the device major number from a raw device number (usually the st_dev or st_rdev field from stat).
doc_29559
class ast.Sub class ast.Mult class ast.Div class ast.FloorDiv class ast.Mod class ast.Pow class ast.LShift class ast.RShift class ast.BitOr class ast.BitXor class ast.BitAnd class ast.MatMult Binary operator tokens.
doc_29560
Return Modulo of series and other, element-wise (binary operator rmod). Equivalent to other % series, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existing missing (NaN)...
doc_29561
Pickles the record’s attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. To unpickle the record at the receiving end into a LogRecord, use the makeLogRecord() function.
doc_29562
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
doc_29563
Returns the bottom panel in the panel stack.
doc_29564
All pending input is processed, and a bytes object containing the remaining compressed output is returned. mode can be selected from the constants Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_BLOCK (zlib 1.2.3.4), or Z_FINISH, defaulting to Z_FINISH. Except Z_FINISH, all constants allow compressing furthe...
doc_29565
Register the XML-RPC multicall function system.multicall.
doc_29566
Return the product of the values over the requested axis. Parameters axis:{index (0)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when computing the result. level:int or level name, default None If the axis is a MultiIndex (hierarchical), count along a partic...
doc_29567
tf.metrics.get Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.get tf.keras.metrics.get( identifier ) The identifier may be the string name of a metric function or class. metric = tf.keras.metrics.get("categorical_crossentropy") type(metric) <class 'function'> metri...
doc_29568
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
doc_29569
Computes the squared Mahalanobis distances of given observations. Parameters Xarray-like of shape (n_samples, n_features) The observations, the Mahalanobis distances of the which we compute. Observations are assumed to be drawn from the same distribution than the data used in fit. Returns distndarray of s...
doc_29570
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_29571
SSL sockets provide the following methods of Socket Objects: accept() bind() close() connect() detach() fileno() getpeername(), getsockname() getsockopt(), setsockopt() gettimeout(), settimeout(), setblocking() listen() makefile() recv(), recv_into() (but passing a non-zero flags argument is not allowed) send(...
doc_29572
Return the total number of seconds contained in the duration. Equivalent to td / timedelta(seconds=1). For interval units other than seconds, use the division form directly (e.g. td / timedelta(microseconds=1)). Note that for very large time intervals (greater than 270 years on most platforms) this method will lose mic...
doc_29573
tf.experimental.numpy.random.uniform( low=0.0, high=1.0, size=None ) See the NumPy documentation for numpy.random.uniform.
doc_29574
See Migration guide for more details. tf.compat.v1.raw_ops.EncodePng tf.raw_ops.EncodePng( image, compression=-1, name=None ) image is a 3-D uint8 or uint16 Tensor of shape [height, width, channels] where channels is: 1: for grayscale. 2: for grayscale + alpha. 3: for RGB. 4: for RGBA. The ZLIB compression lev...
doc_29575
Each process scatters list of input tensors to all processes in a group and return gathered list of tensors in output list. Parameters output_tensor_list (list[Tensor]) – List of tensors to be gathered one per rank. input_tensor_list (list[Tensor]) – List of tensors to scatter one per rank. group (ProcessGroup,...
doc_29576
sklearn.utils.register_parallel_backend(name, factory, make_default=False) [source] Register a new Parallel backend factory. The new backend can then be selected by passing its name as the backend argument to the Parallel class. Moreover, the default backend can be overwritten globally by setting make_default=True. T...
doc_29577
Alias for is_monotonic.
doc_29578
Predict x- and y-coordinates using the estimated model. Parameters tarray Angles in circle in radians. Angles start to count from positive x-axis to positive y-axis in a right-handed system. params(5, ) array, optional Optional custom parameter set. Returns xy(…, 2) array Predicted x- and y-coordina...
doc_29579
See Migration guide for more details. tf.compat.v1.keras.layers.AlphaDropout tf.keras.layers.AlphaDropout( rate, noise_shape=None, seed=None, **kwargs ) Alpha Dropout is a Dropout that keeps mean and variance of inputs to their original values, in order to ensure the self-normalizing property even after this dro...
doc_29580
Fetch the concrete values of args and kwargs of node n from the current execution environment. Parameters n (Node) – The node for which args and kwargs should be fetched. Returns args and kwargs with concrete values for n. Return type Tuple[Tuple, Dict]
doc_29581
See torch.cosh()
doc_29582
Return the cosine of x.
doc_29583
Suspend execution of the calling thread until the delivery of one of the signals specified in the signal set sigset. The function accepts the signal and removes it from the pending list of signals. If one of the signals in sigset is already pending for the calling thread, the function will return immediately with infor...
doc_29584
returns a tuple with radial distance, inclination and azimuthal angle. as_spherical() -> (r, theta, phi) Returns a tuple (r, theta, phi) where r is the radial distance, theta is the inclination angle and phi is the azimuthal angle.
doc_29585
Apply transforms, and predict_proba of the final estimator Parameters Xiterable Data to predict on. Must fulfill input requirements of first step of the pipeline. Returns y_probaarray-like of shape (n_samples, n_classes)
doc_29586
Push ch so the next get_wch() will return it. Note Only one ch can be pushed before get_wch() is called. New in version 3.3.
doc_29587
Whether each element in the DataFrame is contained in values. Parameters values:iterable, Series, DataFrame or dict The result will only be true at a location if all the labels match. If values is a Series, that’s the index. If values is a dict, the keys must be the column names, which must match. If values is ...
doc_29588
See torch.qr()
doc_29589
tf.compat.v1.tpu.rewrite( computation, inputs=None, infeed_queue=None, device_assignment=None, name=None, xla_options=None ) Args computation A Python function that builds a computation to apply to the input. If the function takes n inputs, 'inputs' should be a list of n tensors. computation may retur...
doc_29590
Computes the squared Mahalanobis distances of given observations. Parameters Xarray-like of shape (n_samples, n_features) The observations, the Mahalanobis distances of the which we compute. Observations are assumed to be drawn from the same distribution than the data used in fit. Returns distndarray of s...
doc_29591
Return a tuple of three or four floats from 0-1.
doc_29592
Context manager to swap out an attribute with a new object. Usage: with swap_attr(obj, "attr", 5): ... This will set obj.attr to 5 for the duration of the with block, restoring the old value at the end of the block. If attr doesn’t exist on obj, it will be created and then deleted at the end of the block. The old ...
doc_29593
Convert series to series of this class. The series is expected to be an instance of some polynomial series of one of the types supported by by the numpy.polynomial module, but could be some other class that supports the convert method. New in version 1.7.0. Parameters seriesseries The series instance to be co...
doc_29594
Gets the array system types currently supported. get_arraytypes () -> tuple DEPRECATED: Checks, which array systems are available and returns them as a tuple of strings. The values of the tuple can be used directly in the pygame.sndarray.use_arraytype() () method. If no supported array system could be found, None wil...
doc_29595
tf.experimental.numpy.zeros( shape, dtype=float ) See the NumPy documentation for numpy.zeros.
doc_29596
Return specified diagonals. In NumPy 1.9 the returned array is a read-only view instead of a copy as in previous NumPy versions. In a future version the read-only restriction will be removed. Refer to numpy.diagonal for full documentation. See also numpy.diagonal equivalent function
doc_29597
operator.__add__(a, b) Return a + b, for a and b numbers.
doc_29598
Returns the dimension of the geometry: 0 for Points and MultiPoints 1 for LineStrings and MultiLineStrings 2 for Polygons and MultiPolygons -1 for empty GeometryCollections the maximum dimension of its elements for non-empty GeometryCollections
doc_29599
select.poll()-based selector.