_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_23500
Add a rotation (in degrees) around the point (x, y) in place. Returns self, so this method can easily be chained with more calls to rotate(), rotate_deg(), translate() and scale().
doc_23501
See torch.cross()
doc_23502
Return the clip path.
doc_23503
Predict using the linear model. In addition to the mean of the predictive distribution, also its standard deviation can be returned. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Samples. return_stdbool, default=False Whether to return the standard deviation of posterior predictio...
doc_23504
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_23505
Connect to a TCP service listening on the Internet address (a 2-tuple (host, port)), and return the socket object. This is a higher-level function than socket.connect(): if host is a non-numeric hostname, it will try to resolve it for both AF_INET and AF_INET6, and then try to connect to all possible addresses in turn ...
doc_23506
Convert the view interval to datetime objects.
doc_23507
See Migration guide for more details. tf.compat.v1.compat.dimension_value, tf.compat.v1.dimension_value tf.compat.dimension_value( dimension ) Until the release of TF 2.0, we need the legacy behavior of TensorShape to coexist with the new behavior. This utility is a bridge between the two. When accessing the val...
doc_23508
Alias for get_edgecolor.
doc_23509
Coffee cup. This photograph is courtesy of Pikolo Espresso Bar. It contains several elliptical shapes as well as varying texture (smooth porcelain to course wood grain). Returns coffee(400, 600, 3) uint8 ndarray Coffee image. Notes No copyright restrictions. CC0 by the photographer (Rachel Michetti).
doc_23510
See Migration guide for more details. tf.compat.v1.ragged.row_splits_to_segment_ids tf.ragged.row_splits_to_segment_ids( splits, name=None, out_type=None ) Returns an integer vector segment_ids, where segment_ids[i] == j if splits[j] <= i < splits[j+1]. Example: print(tf.ragged.row_splits_to_segment_ids([0, 3, ...
doc_23511
unlock() Maildir mailboxes do not support (or require) locking, so these methods do nothing.
doc_23512
Perform a shortest-path graph search on a positive directed or undirected graph. Parameters dist_matrixarraylike or sparse matrix, shape = (N,N) Array of positive distances. If vertex i is connected to vertex j, then dist_matrix[i,j] gives the distance between the vertices. If vertex i is not connected to vertex ...
doc_23513
Return the RFC 3977 capabilities advertised by the server, as a dict instance mapping capability names to (possibly empty) lists of values. On legacy servers which don’t understand the CAPABILITIES command, an empty dictionary is returned instead. >>> s = NNTP('news.gmane.io') >>> 'POST' in s.getcapabilities() True N...
doc_23514
Instances of FileCookieJar raise this exception on failure to load cookies from a file. LoadError is a subclass of OSError. Changed in version 3.3: LoadError was made a subclass of OSError instead of IOError.
doc_23515
The @cached_property decorator caches the result of a method with a single self argument as a property. The cached result will persist as long as the instance does, so if the instance is passed around and the function subsequently invoked, the cached result will be returned. Consider a typical case, where a view migh...
doc_23516
Run the tests associated with this suite without collecting the result. This allows exceptions raised by the test to be propagated to the caller and can be used to support running tests under a debugger.
doc_23517
See torch.div()
doc_23518
Return boolean if values in the object are monotonic_increasing. Returns bool
doc_23519
Windows only: this function is probably the worst-named thing in ctypes. It creates an instance of OSError. If code is not specified, GetLastError is called to determine the error code. If descr is not specified, FormatError() is called to get a textual description of the error. Changed in version 3.3: An instance of ...
doc_23520
Grab the image information from the figure and save as a movie frame. All keyword arguments in savefig_kwargs are passed on to the savefig call that saves the figure.
doc_23521
tf.compat.v1.zeros_like( tensor, dtype=None, name=None, optimize=True ) See also tf.zeros. Given a single tensor (tensor), this operation returns a tensor of the same type and shape as tensor with all elements set to zero. Optionally, you can use dtype to specify a new type for the returned tensor. Examples: tens...
doc_23522
Combine the Series with a Series or scalar according to func. Combine the Series and other using func to perform elementwise selection for combined Series. fill_value is assumed when value is missing at some index from one of the two objects being combined. Parameters other:Series or scalar The value(s) to be c...
doc_23523
socket.AF_INET socket.AF_INET6 These constants represent the address (and protocol) families, used for the first argument to socket(). If the AF_UNIX constant is not defined then this protocol is unsupported. More constants may be available depending on the system.
doc_23524
Print a warning into sys.__stderr__. Format the message as: f"Warning -- {msg}". If msg is made of multiple lines, add "Warning -- " prefix to each line. New in version 3.9.
doc_23525
See Migration guide for more details. tf.compat.v1.raw_ops.SparseDenseCwiseAdd tf.raw_ops.SparseDenseCwiseAdd( sp_indices, sp_values, sp_shape, dense, name=None ) (1) Broadcasts the dense side to have the same shape as the sparse side, if eligible; (2) Then, only the dense values pointed to by the indices of the...
doc_23526
See Migration guide for more details. tf.compat.v1.config.threading.get_inter_op_parallelism_threads tf.config.threading.get_inter_op_parallelism_threads() Determines the number of threads used by independent non-blocking operations. 0 means the system picks an appropriate number. Returns Number of parallel t...
doc_23527
sklearn.metrics.cluster.pair_confusion_matrix(labels_true, labels_pred) [source] Pair confusion matrix arising from two clusterings. The pair confusion matrix \(C\) computes a 2 by 2 similarity matrix between two clusterings by considering all pairs of samples and counting pairs that are assigned into the same or int...
doc_23528
Alias for get_facecolor.
doc_23529
Writes all the attributes of a key to the registry. key is an already open key, or one of the predefined HKEY_* constants. It is not necessary to call FlushKey() to change a key. Registry changes are flushed to disk by the registry using its lazy flusher. Registry changes are also flushed to disk at system shutdown. Un...
doc_23530
Run the event loop until stop() is called. If stop() is called before run_forever() is called, the loop will poll the I/O selector once with a timeout of zero, run all callbacks scheduled in response to I/O events (and those that were already scheduled), and then exit. If stop() is called while run_forever() is running...
doc_23531
sklearn.utils.graph_shortest_path.graph_shortest_path() Perform a shortest-path graph search on a positive directed or undirected graph. Parameters dist_matrixarraylike or sparse matrix, shape = (N,N) Array of positive distances. If vertex i is connected to vertex j, then dist_matrix[i,j] gives the distance bet...
doc_23532
The offset of the local (non-DST) timezone, in seconds west of UTC (negative in most of Western Europe, positive in the US, zero in the UK). See note below.
doc_23533
alias of matplotlib.backends.backend_agg.FigureCanvasAgg classmatplotlib.backends.backend_agg.FigureCanvasAgg(figure=None)[source] Bases: matplotlib.backend_bases.FigureCanvasBase buffer_rgba()[source] Get the image as a memoryview to the renderer's buffer. draw must be called at least once before this func...
doc_23534
See Migration guide for more details. tf.compat.v1.raw_ops.SparseCrossV2 tf.raw_ops.SparseCrossV2( indices, values, shapes, dense_inputs, sep, name=None ) The op takes two lists, one of 2D SparseTensor and one of 2D Tensor, each representing features of one feature column. It outputs a 2D SparseTensor with the b...
doc_23535
See Migration guide for more details. tf.compat.v1.debugging.is_strictly_increasing, tf.compat.v1.is_strictly_increasing, tf.compat.v1.math.is_strictly_increasing tf.math.is_strictly_increasing( x, name=None ) Elements of x are compared in row-major order. The tensor [x[0],...] is strictly increasing if for ever...
doc_23536
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_23537
Differentiate a Hermite series. Returns the Hermite series coefficients c differentiated m times along axis. At each iteration the result is multiplied by scl (the scaling factor is for use in a linear change of variable). The argument c is an array of coefficients from low to high degree along each axis, e.g., [1,2,...
doc_23538
Remove a callback based on its observer id. See also add_callback
doc_23539
Fit the model from data in X and transform X. Parameters X{array-like, sparse graph, BallTree, KDTree} Training vector, where n_samples in the number of samples and n_features is the number of features. yIgnored Returns X_newarray-like, shape (n_samples, n_components)
doc_23540
Call timeit() a few times. This is a convenience function that calls the timeit() repeatedly, returning a list of results. The first argument specifies how many times to call timeit(). The second argument specifies the number argument for timeit(). Note It’s tempting to calculate mean and standard deviation from the r...
doc_23541
Wait for the child process to terminate. Set and return the returncode attribute. Note This method can deadlock when using stdout=PIPE or stderr=PIPE and the child process generates so much output that it blocks waiting for the OS pipe buffer to accept more data. Use the communicate() method when using pipes to avoid ...
doc_23542
Compute slice locations for input labels. Parameters start:label, default None If None, defaults to the beginning. end:label, default None If None, defaults to the end. step:int, defaults None If None, defaults to 1. kind:{‘loc’, ‘getitem’} or None Deprecated since version 1.4.0. Returns sta...
doc_23543
Unpacks and returns a fixed length opaque data stream, similarly to unpack_fstring().
doc_23544
Implement Netscape protocol.
doc_23545
colorsys.rgb_to_yiq(r, g, b) Convert the color from RGB coordinates to YIQ coordinates. colorsys.yiq_to_rgb(y, i, q) Convert the color from YIQ coordinates to RGB coordinates. colorsys.rgb_to_hls(r, g, b) Convert the color from RGB coordinates to HLS coordinates. colorsys.hls_to_rgb(h, l, s) Convert...
doc_23546
Perform a circular Hough transform. Parameters image(M, N) ndarray Input image with nonzero values representing edges. radiusscalar or sequence of scalars Radii at which to compute the Hough transform. Floats are converted to integers. normalizeboolean, optional (default True) Normalize the accumulator ...
doc_23547
Return a datetime corresponding to a date_string in one of the formats emitted by date.isoformat() and datetime.isoformat(). Specifically, this function supports strings in the format: YYYY-MM-DD[*HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]]] where * can match any single character. Caution This does not support pars...
doc_23548
MultiPolygon objects may be instantiated by passing Polygon objects as arguments, or a single sequence of Polygon objects: >>> p1 = Polygon( ((0, 0), (0, 1), (1, 1), (0, 0)) ) >>> p2 = Polygon( ((1, 1), (1, 2), (2, 2), (1, 1)) ) >>> mp = MultiPolygon(p1, p2) >>> mp = MultiPolygon([p1, p2])
doc_23549
The returned function prototype creates functions that use the standard C calling convention. The function will release the GIL during the call. If use_errno is set to true, the ctypes private copy of the system errno variable is exchanged with the real errno value before and after the call; use_last_error does the sam...
doc_23550
Returns cosine similarity between x1 and x2, computed along dim. similarity=x1⋅x2max⁡(∥x1∥2⋅∥x2∥2,ϵ)\text{similarity} = \dfrac{x_1 \cdot x_2}{\max(\Vert x_1 \Vert _2 \cdot \Vert x_2 \Vert _2, \epsilon)} Parameters x1 (Tensor) – First input. x2 (Tensor) – Second input (of size matching x1). dim (int, optional) ...
doc_23551
tf.compat.v1.summary.text( name, tensor, collections=None ) Text data summarized via this plugin will be visible in the Text Dashboard in TensorBoard. The standard TensorBoard Text Dashboard will render markdown in the strings, and will automatically organize 1d and 2d tensors into tables. If a tensor with more th...
doc_23552
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorInversion tf.linalg.LinearOperatorInversion( operator, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=None, name=None ) This operator represents the inverse of another operator. # Create a 2 x 2 linear o...
doc_23553
The textual representation of the modified object’s primary key.
doc_23554
Get integer location, slice or boolean mask for requested label. Parameters key:label method:{None, ‘pad’/’ffill’, ‘backfill’/’bfill’, ‘nearest’}, optional default: exact matches only. pad / ffill: find the PREVIOUS index value if no exact match. backfill / bfill: use NEXT index value if no exact match neare...
doc_23555
Bases: matplotlib.units.ConversionInterface Converter for datetime.date and datetime.datetime data, or for date/time data represented as it would be converted by date2num. The 'unit' tag for such data is None or a tzinfo instance. axisinfo(unit, axis)[source] Return the AxisInfo for unit. unit is a tzinfo instanc...
doc_23556
Returns the least int >= self. This method can also be accessed through the math.ceil() function.
doc_23557
#cython: language_level=3 """ This file shows how the to use a BitGenerator to create a distribution. """ import numpy as np cimport numpy as np cimport cython from cpython.pycapsule cimport PyCapsule_IsValid, PyCapsule_GetPointer from libc.stdint cimport uint16_t, uint64_t from numpy.random cimport bitgen_t from numpy...
doc_23558
This constant is true if Python was not started with an -O option. See also the assert statement.
doc_23559
See torch.logcumsumexp()
doc_23560
class sklearn.manifold.TSNE(n_components=2, *, perplexity=30.0, early_exaggeration=12.0, learning_rate=200.0, n_iter=1000, n_iter_without_progress=300, min_grad_norm=1e-07, metric='euclidean', init='random', verbose=0, random_state=None, method='barnes_hut', angle=0.5, n_jobs=None, square_distances='legacy') [source] ...
doc_23561
Create a decompressor object, which can be used to decompress data incrementally. For a more convenient way of decompressing an entire compressed stream at once, see decompress(). The format argument specifies the container format that should be used. The default is FORMAT_AUTO, which can decompress both .xz and .lzma ...
doc_23562
See Migration guide for more details. tf.compat.v1.raw_ops.ParameterizedTruncatedNormal tf.raw_ops.ParameterizedTruncatedNormal( shape, means, stdevs, minvals, maxvals, seed=0, seed2=0, name=None ) scalar which applies to the entire output, or a vector of length shape[0] which stores the parameters for each batc...
doc_23563
exception zipfile.BadZipFile The error raised for bad ZIP files. New in version 3.2. exception zipfile.BadZipfile Alias of BadZipFile, for compatibility with older Python versions. Deprecated since version 3.2. exception zipfile.LargeZipFile The error raised when a ZIP file would require ZIP64 functio...
doc_23564
returns a linear interpolation to the given vector. lerp(Vector3, float) -> Vector3 Returns a Vector which is a linear interpolation between self and the given Vector. The second parameter determines how far between self an other the result is going to be. It must be a value between 0 and 1, where 0 means self and 1 ...
doc_23565
sklearn.metrics.pairwise.manhattan_distances(X, Y=None, *, sum_over_features=True) [source] Compute the L1 distances between the vectors in X and Y. With sum_over_features equal to False it returns the componentwise distances. Read more in the User Guide. Parameters Xarray-like of shape (n_samples_X, n_features) ...
doc_23566
Compute the mean Silhouette Coefficient of all samples. The Silhouette Coefficient is calculated using the mean intra-cluster distance (a) and the mean nearest-cluster distance (b) for each sample. The Silhouette Coefficient for a sample is (b - a) / max(a, b). To clarify, b is the distance between a sample and the n...
doc_23567
Alias for set_linestyle.
doc_23568
Bases: matplotlib.projections.geo._GeoTransform 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. inverted()[source] Ret...
doc_23569
pyclbr.readmodule(module, path=None) Return a dictionary mapping module-level class names to class descriptors. If possible, descriptors for imported base classes are included. Parameter module is a string with the name of the module to read; it may be the name of a module within a package. If given, path is a sequen...
doc_23570
Handle an unraisable exception. Called when an exception has occurred but there is no way for Python to handle it. For example, when a destructor raises an exception or during garbage collection (gc.collect()). The unraisable argument has the following attributes: exc_type: Exception type. exc_value: Exception value...
doc_23571
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterMax tf.raw_ops.ResourceScatterMax( resource, indices, updates, name=None ) This operation computes # Scalar indices ref[indices, ...] = max(ref[indices, ...], updates[...]) # Vector indices (for each i) ref[indices[i], ...] = max(ref[indi...
doc_23572
Draw a collection of paths selecting drawing properties from the lists facecolors, edgecolors, linewidths, linestyles and antialiaseds. offsets is a list of offsets to apply to each of the paths. The offsets in offsets are first transformed by offsetTrans before being applied. offset_position is unused now, but the a...
doc_23573
traceback.print_tb(tb, limit=None, file=None) Print up to limit stack trace entries from traceback object tb (starting from the caller’s frame) if limit is positive. Otherwise, print the last abs(limit) entries. If limit is omitted or None, all entries are printed. If file is omitted or None, the output goes to sys.s...
doc_23574
See Migration guide for more details. tf.compat.v1.raw_ops.OutfeedDequeueTupleV2 tf.raw_ops.OutfeedDequeueTupleV2( device_ordinal, dtypes, shapes, name=None ) tensor allowing dynamic outfeed. This operation will block indefinitely until data is available. Output i corresponds to XLA tuple element i. Args: device...
doc_23575
See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_multi tf.compat.v1.flags.DEFINE_multi( parser, serializer, name, default, help, flag_values=_flagvalues.FLAGS, module_name=None, **args ) Auxiliary function. Normal users should NOT use it directly. Developers who need to create their own 'P...
doc_23576
Bases: object Create a light source coming from the specified azimuth and elevation. Angles are in degrees, with the azimuth measured clockwise from north and elevation up from the zero plane of the surface. shade is used to produce "shaded" rgb values for a data array. shade_rgb can be used to combine an rgb image w...
doc_23577
Schedule the closure of the default executor and wait for it to join all of the threads in the ThreadPoolExecutor. After calling this method, a RuntimeError will be raised if loop.run_in_executor() is called while using the default executor. Note that there is no need to call this function when asyncio.run() is used. ...
doc_23578
Fit the EllipticEnvelope model. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training data. yIgnored Not used, present for API consistency by convention.
doc_23579
Optional. Either a method or attribute. If it’s a method, it should return the absolute path for a given object as returned by items(). If it’s an attribute, its value should be a string representing an absolute path to use for every object returned by items(). In both cases, “absolute path” means a URL that doesn’t in...
doc_23580
If tzinfo is None, returns None, else returns self.tzinfo.utcoffset(self), and raises an exception if the latter doesn’t return None or a timedelta object with magnitude less than one day. Changed in version 3.7: The UTC offset is not restricted to a whole number of minutes.
doc_23581
Prevents a TLSv1 connection. This option is only applicable in conjunction with PROTOCOL_TLS. It prevents the peers from choosing TLSv1 as the protocol version. New in version 3.2. Deprecated since version 3.7: The option is deprecated since OpenSSL 1.1.0, use the new SSLContext.minimum_version and SSLContext.maximu...
doc_23582
Return image after stretching or shrinking its intensity levels. The desired intensity range of the input and output, in_range and out_range respectively, are used to stretch or shrink the intensity range of the input image. See examples below. Parameters imagearray Image array. in_range, out_rangestr or 2-tu...
doc_23583
See Migration guide for more details. tf.compat.v1.debugging.disable_check_numerics tf.debugging.disable_check_numerics() This method can be used after a call to tf.debugging.enable_check_numerics() to disable the numerics-checking mechanism that catches infinity and NaN values output by ops executed eagerly or in t...
doc_23584
alias of matplotlib.backends.backend_tkagg.FigureCanvasTkAgg
doc_23585
Set the Figure instance the artist belongs to. Parameters figFigure
doc_23586
Return self^value.
doc_23587
class sklearn.tree.DecisionTreeClassifier(*, criterion='gini', splitter='best', max_depth=None, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_features=None, random_state=None, max_leaf_nodes=None, min_impurity_decrease=0.0, min_impurity_split=None, class_weight=None, ccp_alpha=0.0) [source]...
doc_23588
Construct a URL from a tuple as returned by urlparse(). The parts argument can be any six-item iterable. This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had unnecessary delimiters (for example, a ? with an empty query; the RFC states that these are equivalent).
doc_23589
Return date object with same year, month and day.
doc_23590
Called when some data is received. data is a non-empty bytes object containing the incoming data. Whether the data is buffered, chunked or reassembled depends on the transport. In general, you shouldn’t rely on specific semantics and instead make your parsing generic and flexible. However, data is always received in th...
doc_23591
Tries to locate the instance path if it was not provided to the constructor of the application class. It will basically calculate the path to a folder named instance next to your main file or the package. Changelog New in version 0.8. Return type str
doc_23592
Returns a 2-D tensor with ones on the diagonal and zeros elsewhere. Parameters n (int) – the number of rows m (int, optional) – the number of columns with default being n Keyword Arguments out (Tensor, optional) – the output tensor. dtype (torch.dtype, optional) – the desired data type of returned tensor. D...
doc_23593
Returns the inverse Transform of this transform. This should satisfy t.inv.inv is t.
doc_23594
Return True if either the real or the imaginary part of x is an infinity, and False otherwise.
doc_23595
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_23596
start playing audio play(track, start=None, end=None) -> None Playback audio from an audio cdrom in the drive. Besides the track number argument, you can also pass a starting and ending time for playback. The start and end time are in seconds, and can limit the section of an audio track played. If you pass a start ti...
doc_23597
Returns a tensor with the same shape as Tensor input filled with random integers generated uniformly between low (inclusive) and high (exclusive). Parameters input (Tensor) – the size of input will determine size of the output tensor. low (int, optional) – Lowest integer to be drawn from the distribution. Default:...
doc_23598
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_23599
Segmentation fault: invalid memory reference.