_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_16600
Interchange two axes of an array. Parameters aarray_like Input array. axis1int First axis. axis2int Second axis. Returns a_swappedndarray For NumPy >= 1.10.0, if a is an ndarray, then a view of a is returned; otherwise a new array is created. For earlier NumPy versions a view of a is returned on...
doc_16601
Alias for get_facecolor.
doc_16602
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g...
doc_16603
Call self as a function.
doc_16604
Return True if the argument is canonical and False otherwise. Currently, a Decimal instance is always canonical, so this operation always returns True.
doc_16605
os.O_WRONLY os.O_RDWR os.O_APPEND os.O_CREAT os.O_EXCL os.O_TRUNC The above constants are available on Unix and Windows.
doc_16606
Return the number of leaves of the decision tree. Returns self.tree_.n_leavesint Number of leaves.
doc_16607
Get the width, height, and descent (offset from the bottom to the baseline), in display coords, of the string s with FontProperties prop.
doc_16608
See Migration guide for more details. tf.compat.v1.raw_ops.NextAfter tf.raw_ops.NextAfter( x1, x2, name=None ) This operation returns the same result as the C++ std::nextafter function. It can also return a subnormal number. Args x1 A Tensor. Must be one of the following types: float64, float32. x2 ...
doc_16609
__delitem__(key) discard(key) Delete the message corresponding to key from the mailbox. If no such message exists, a KeyError exception is raised if the method was called as remove() or __delitem__() but no exception is raised if the method was called as discard(). The behavior of discard() may be preferred if the ...
doc_16610
tf.compat.v1.no_regularizer( _ )
doc_16611
Update this artist's properties from the dict props. Parameters propsdict
doc_16612
Bases: mpl_toolkits.axisartist.grid_helper_curvelinear.FloatingAxisArtistHelper nth_coord = along which coordinate value varies. nth_coord = 0 -> x axis, nth_coord = 1 -> y axis get_line(axes)[source] get_tick_iterators(axes)[source] tick_loc, tick_angle, tick_label, (optionally) tick_label update_lim...
doc_16613
operator.__iadd__(a, b) a = iadd(a, b) is equivalent to a += b.
doc_16614
See Migration guide for more details. tf.compat.v1.autograph.experimental.do_not_convert tf.autograph.experimental.do_not_convert( func=None ) Args func function to decorate. Returns If func is not None, returns a Callable which is equivalent to func, but is not converted by AutoGraph. If func...
doc_16615
The SSLContext object this SSL socket is tied to. If the SSL socket was created using the deprecated wrap_socket() function (rather than SSLContext.wrap_socket()), this is a custom context object created for this SSL socket. New in version 3.2.
doc_16616
Transform X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Returns X_newndarray of shape (n_samples, n_components)
doc_16617
tf.losses.Reduction Contains the following values: AUTO: Indicates that the reduction option will be determined by the usage context. For almost all cases this defaults to SUM_OVER_BATCH_SIZE. When used with tf.distribute.Strategy, outside of built-in training loops such as tf.keras compile and fit, we expect reduct...
doc_16618
tf.compat.v1.nn.static_rnn( cell, inputs, initial_state=None, dtype=None, sequence_length=None, scope=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Please use keras.layers.RNN(cell, unroll=True), which is equivalent to this API The simplest form of ...
doc_16619
Format a datetime object or timestamp into an RFC 2822 date string. This is a wrapper for email.utils.format_datetime(). It assumes naive datetime objects are in UTC instead of raising an exception. Parameters timestamp (Optional[Union[datetime.datetime, datetime.date, int, float, time.struct_time]]) – The datetime o...
doc_16620
Very Deep Convolutional Networks for Large-Scale Image Recognition (ICLR 2015) Functions VGG19(...): Instantiates the VGG19 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images.
doc_16621
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorDiag tf.linalg.LinearOperatorDiag( diag, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=None, name='LinearOperatorDiag' ) This operator acts like a [batch] diagonal matrix A with shape [B1,...,Bb, N, N] ...
doc_16622
sklearn.utils.class_weight.compute_sample_weight(class_weight, y, *, indices=None) [source] Estimate sample weights by class for unbalanced datasets. Parameters class_weightdict, list of dicts, “balanced”, or None Weights associated with classes in the form {class_label: weight}. If not given, all classes are s...
doc_16623
Custom warning to notify potential issues with data dimensionality. For example, in random projection, this warning is raised when the number of components, which quantifies the dimensionality of the target projection space, is higher than the number of features, which quantifies the dimensionality of the original so...
doc_16624
draw an antialiased trigon/triangle aatrigon(surface, x1, y1, x2, y2, x3, y3, color) -> None Draws an unfilled antialiased trigon (triangle) on the given surface. An aatrigon can also be drawn using aapolygon() e.g. aapolygon(surface, ((x1, y1), (x2, y2), (x3, y3)), color) Parameters: surface (Surface) -- sur...
doc_16625
class sklearn.neighbors.KNeighborsClassifier(n_neighbors=5, *, weights='uniform', algorithm='auto', leaf_size=30, p=2, metric='minkowski', metric_params=None, n_jobs=None, **kwargs) [source] Classifier implementing the k-nearest neighbors vote. Read more in the User Guide. Parameters n_neighborsint, default=5 N...
doc_16626
Return the currently running Task instance, or None if no task is running. If loop is None get_running_loop() is used to get the current loop. New in version 3.7.
doc_16627
Return filter function to be used for agg filter.
doc_16628
true if the cdrom module is initialized get_init() -> bool Test if the cdrom module is initialized or not. This is different than the CD.init() since each drive must also be initialized individually.
doc_16629
Prepares a copy of the model for quantization calibration or quantization-aware training. Quantization configuration should be assigned preemptively to individual submodules in .qconfig attribute. The model will be attached with observer or fake quant modules, and qconfig will be propagated. Parameters model – in...
doc_16630
Put obj into the queue. If the optional argument block is True (the default) and timeout is None (the default), block if necessary until a free slot is available. If timeout is a positive number, it blocks at most timeout seconds and raises the queue.Full exception if no free slot was available within that time. Otherw...
doc_16631
Stratified K-Folds cross-validator. Provides train/test indices to split data in train/test sets. This cross-validation object is a variation of KFold that returns stratified folds. The folds are made by preserving the percentage of samples for each class. Read more in the User Guide. Parameters n_splitsint, defa...
doc_16632
Test if the start of each string element matches a pattern. Equivalent to str.startswith(). Parameters pat:str Character sequence. Regular expressions are not accepted. na:object, default NaN Object shown if element tested is not a string. The default depends on dtype of the array. For object-dtype, numpy.n...
doc_16633
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_16634
A path to a source file as the argument to the directive: .. plot:: path/to/plot.py When a path to a source file is given, the content of the directive may optionally contain a caption for the plot: .. plot:: path/to/plot.py The plot caption. Additionally, one may specify the name of a function to call (with no a...
doc_16635
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event.
doc_16636
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_16637
class sklearn.cross_decomposition.PLSRegression(n_components=2, *, scale=True, max_iter=500, tol=1e-06, copy=True) [source] PLS regression PLSRegression is also known as PLS2 or PLS1, depending on the number of targets. Read more in the User Guide. New in version 0.8. Parameters n_componentsint, default=2 Num...
doc_16638
Default widget: TextInput Empty value: Whatever you’ve given as empty_value. Normalizes to: A string. Uses RegexValidator to validate that the given value matches a certain regular expression. Error message keys: required, invalid Takes one required argument: regex A regular expression specified either as a str...
doc_16639
Same as create_user(), but sets is_staff and is_superuser to True.
doc_16640
Learn and apply the dimension reduction on the train data. Parameters Xarray-like of shape (n_samples, n_features) Training vectors, where n_samples is the number of samples and n_features is the number of predictors. yarray-like of shape (n_samples, n_targets), default=None Target vectors, where n_samples ...
doc_16641
Array protocol: Python side
doc_16642
Returns the identifier of item’s previous sibling, or ‘’ if item is the first child of its parent.
doc_16643
Plot filled polygons. Parameters *argssequence of x, y, [color] Each polygon is defined by the lists of x and y positions of its nodes, optionally followed by a color specifier. See matplotlib.colors for supported color specifiers. The standard color cycle is used for polygons without a color specifier. You can...
doc_16644
Get a representation of up to 100 values used to represent the values 0 to 99.
doc_16645
Delete an entire directory tree; path must point to a directory (but not a symbolic link to a directory). If ignore_errors is true, errors resulting from failed removals will be ignored; if false or omitted, such errors are handled by calling a handler specified by onerror or, if that is omitted, they raise an exceptio...
doc_16646
Return the underlying file descriptor (an integer) of the stream if it exists. An OSError is raised if the IO object does not use a file descriptor.
doc_16647
Called when this tool gets used. This method is called by ToolManager.trigger_tool. Parameters eventEvent The canvas event that caused this tool to be called. senderobject Object that requested the tool to be triggered. dataobject Extra data.
doc_16648
The scaled ascent of the font in pixels get_sized_ascender(<size>=0) -> int Return the number of units from the font's baseline to the top of the bounding box. It is not adjusted for strong or rotation.
doc_16649
skimage.segmentation.active_contour(image, snake) Active contour model. skimage.segmentation.chan_vese(image[, mu, …]) Chan-Vese segmentation algorithm. skimage.segmentation.checkerboard_level_set(…) Create a checkerboard level set with binary values. skimage.segmentation.circle_level_set(…[, …]) Create a circle ...
doc_16650
Return the default savefig file format as specified in rcParams["savefig.format"] (default: 'png'). The returned string does not include a period. This method is overridden in backends that only support a single file type.
doc_16651
Return highest indexes in each string in Series/Index. Each of the returned indexes corresponds to the position where the substring is fully contained between [start:end]. This is the same as str.rfind except instead of returning -1, it raises a ValueError when the substring is not found. Equivalent to standard str.r...
doc_16652
See Migration guide for more details. tf.compat.v1.raw_ops.CTCLoss tf.raw_ops.CTCLoss( inputs, labels_indices, labels_values, sequence_length, preprocess_collapse_repeated=False, ctc_merge_repeated=True, ignore_longer_outputs_than_inputs=False, name=None ) the gradient. This class performs the softmax op...
doc_16653
Take a snapshot of traces of memory blocks allocated by Python. Return a new Snapshot instance. The snapshot does not include memory blocks allocated before the tracemalloc module started to trace memory allocations. Tracebacks of traces are limited to get_traceback_limit() frames. Use the nframe parameter of the start...
doc_16654
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_16655
Voluntarily relinquish the CPU.
doc_16656
Opposite of the Local Outlier Factor of X. It is the opposite as bigger is better, i.e. large values correspond to inliers. Only available for novelty detection (when novelty is set to True). The argument X is supposed to contain new data: if X contains a point from training, it considers the later in its own neighborh...
doc_16657
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_16658
See Migration guide for more details. tf.compat.v1.raw_ops.EncodeJpegVariableQuality tf.raw_ops.EncodeJpegVariableQuality( images, quality, name=None ) image is a 3-D uint8 Tensor of shape [height, width, channels]. quality is an int32 jpeg compression quality value between 0 and 100. Args images A Tens...
doc_16659
Set the foreground color. Parameters fgcolor isRGBAbool If fg is known to be an (r, g, b, a) tuple, isRGBA can be set to True to improve performance.
doc_16660
The base class for anything that participates in the transform tree and needs to invalidate its parents or be invalidated. This includes classes that are not really transforms, such as bounding boxes, since some transforms depend on bounding boxes to compute their values.
doc_16661
Interpolate a function at the Chebyshev points of the first kind. Returns the Chebyshev series that interpolates func at the Chebyshev points of the first kind in the interval [-1, 1]. The interpolating series tends to a minmax approximation to func with increasing deg if the function is continuous in the interval. ...
doc_16662
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayScatter tf.raw_ops.TensorArrayScatter( handle, indices, value, flow_in, name=None ) Args handle A Tensor of type mutable string. indices A Tensor of type int32. value A Tensor. flow_in A Tensor of type float32. n...
doc_16663
See Migration guide for more details. tf.compat.v1.linalg.adjoint tf.linalg.adjoint( matrix, name=None ) For example: x = tf.constant([[1 + 1j, 2 + 2j, 3 + 3j], [4 + 4j, 5 + 5j, 6 + 6j]]) tf.linalg.adjoint(x) # [[1 - 1j, 4 - 4j], # [2 - 2j, 5 - 5j], ...
doc_16664
tf.compat.v1.distribute.ReplicaContext( strategy, replica_id_in_sync_group ) You can use tf.distribute.get_replica_context to get an instance of ReplicaContext, which can only be called inside the function passed to tf.distribute.Strategy.run. strategy = tf.distribute.MirroredStrategy(['GPU:0', 'GPU:1']) def func...
doc_16665
Call shutil.rmtree() on path or call os.lstat() and os.rmdir() to remove a path and its contents. On Windows platforms, this is wrapped with a wait loop that checks for the existence of the files.
doc_16666
Return a list of existing figure numbers.
doc_16667
Inverse of gradient magnitude. Compute the magnitude of the gradients in the image and then inverts the result in the range [0, 1]. Flat areas are assigned values close to 1, while areas close to borders are assigned values close to 0. This function or a similar one defined by the user should be applied over the imag...
doc_16668
Return Series with duplicate values removed. Parameters keep:{‘first’, ‘last’, False}, default ‘first’ Method to handle dropping duplicates: ‘first’ : Drop duplicates except for the first occurrence. ‘last’ : Drop duplicates except for the last occurrence. False : Drop all duplicates. inplace:bool, default ...
doc_16669
Return whether there is any data available to be read. If timeout is not specified then it will return immediately. If timeout is a number then this specifies the maximum time in seconds to block. If timeout is None then an infinite timeout is used. Note that multiple connection objects may be polled at once by using m...
doc_16670
A mutable mapping of parameters’ names to arguments’ values. Contains only explicitly bound arguments. Changes in arguments will reflect in args and kwargs. Should be used in conjunction with Signature.parameters for any argument processing purposes. Note Arguments for which Signature.bind() or Signature.bind_partial(...
doc_16671
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator There are two ways to create decorators that TensorFlow can introspect into. This is important for documentation generation purposes, so that function signatures aren't obscured by the (*args, **kwds) signature that decorators often provide. Ca...
doc_16672
Factory function for drag-and-drop process.
doc_16673
Return the name of the Python source file in which an object was defined. This will fail with a TypeError if the object is a built-in module, class, or function.
doc_16674
class telnetlib.Telnet(host=None, port=0[, timeout]) Telnet represents a connection to a Telnet server. The instance is initially not connected by default; the open() method must be used to establish a connection. Alternatively, the host name and optional port number can be passed to the constructor too, in which cas...
doc_16675
Return a new NNTP_SSL object, representing an encrypted connection to the NNTP server running on host host, listening at port port. NNTP_SSL objects have the same methods as NNTP objects. If port is omitted, port 563 (NNTPS) is used. ssl_context is also optional, and is a SSLContext object. Please read Security conside...
doc_16676
Scalar method identical to the corresponding array attribute. Please see ndarray.squeeze.
doc_16677
See Migration guide for more details. tf.compat.v1.raw_ops.FFT2D tf.raw_ops.FFT2D( input, name=None ) Computes the 2-dimensional discrete Fourier transform over the inner-most 2 dimensions of input. Args input A Tensor. Must be one of the following types: complex64, complex128. A complex tensor. nam...
doc_16678
Return the Transform instance used by this artist.
doc_16679
A field for storing key-value pairs. The Python data type used is a dict. Keys must be strings, and values may be either strings or nulls (None in Python). To use this field, you’ll need to: Add 'django.contrib.postgres' in your INSTALLED_APPS. Set up the hstore extension in PostgreSQL. You’ll see an error like can'...
doc_16680
Return a dictionary containing the instance-wide defaults.
doc_16681
Returns an array of the weighted modal (most common) value in a. If there is more than one such value, only the first is returned. The bin-count for the modal bins is also returned. This is an extension of the algorithm in scipy.stats.mode. Parameters aarray-like n-dimensional array of which to find mode(s). ...
doc_16682
See Migration guide for more details. tf.compat.v1.linalg.det, tf.compat.v1.matrix_determinant tf.linalg.det( input, name=None ) The input is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. The output is a tensor containing the determinants for all input submatrices [..., :, :]....
doc_16683
Computes the (weighted) graph of Neighbors for points in X Parameters Xarray-like of shape (n_samples_transform, n_features) Sample data Returns Xtsparse matrix of shape (n_samples_transform, n_samples_fit) Xt[i, j] is assigned the weight of edge that connects i to j. Only the neighbors have an explicit...
doc_16684
Open url. If open fails, raises TestFailed.
doc_16685
Return the base 10 logarithm of the input array, element-wise. Parameters xarray_like Input values. 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-allocate...
doc_16686
This is a Linux-specific idtype that indicates that id is a file descriptor that refers to a process. Availability: Linux 5.4+ New in version 3.9.
doc_16687
bytearray.rpartition(sep) Split the sequence at the last occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself or its bytearray copy, and the part after the separator. If the separator is not found, return a 3-tuple containing two empty bytes or bytearray objects, foll...
doc_16688
tf.keras.preprocessing.image.smart_resize( x, size, interpolation='bilinear' ) TensorFlow image datasets typically yield images that have each a different size. However, these images need to be batched before they can be processed by Keras layers. To be batched, images need to share the same height and width. You ...
doc_16689
Bases: object The base class for the mathtext backend-specific code. MathtextBackend subclasses interface between mathtext and specific Matplotlib graphics backends. Subclasses need to override the following: render_glyph() render_rect_filled() get_results() And optionally, if you need to use a FreeType hinting sty...
doc_16690
Construct a Bbox by translating this one by tx and ty.
doc_16691
As a shortcut, the default cache is available as django.core.cache.cache: >>> from django.core.cache import cache This object is equivalent to caches['default'].
doc_16692
Set the filling value of a, if a is a masked array. This function changes the fill value of the masked array a in place. If a is not a masked array, the function returns silently, without doing anything. Parameters aarray_like Input array. fill_valuedtype Filling value. A consistency test is performed to ma...
doc_16693
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk.
doc_16694
tf.compat.v1.estimator.BaselineEstimator( head, model_dir=None, optimizer='Ftrl', config=None ) The estimator uses a user-specified head. This estimator ignores feature values and will learn to predict the average value of each label. E.g. for single-label classification problems, this will predict the probability...
doc_16695
Alias for get_edgecolor.
doc_16696
Dequantize stub module, before calibration, this is same as identity, this will be swapped as nnq.DeQuantize in convert.
doc_16697
tf.compat.v1.train.WorkerSessionCreator( scaffold=None, master='', config=None, max_wait_secs=(30 * 60) ) Args scaffold A Scaffold used for gathering or building supportive ops. If not specified a default one is created. It's used to finalize the graph. master String representation of the TensorFlow...
doc_16698
Percentage change between the current and a prior element. Computes the percentage change from the immediately previous row by default. This is useful in comparing the percentage of change in a time series of elements. Parameters periods:int, default 1 Periods to shift for forming percent change. fill_method:...
doc_16699
Set the point at which create_node and companion methods will insert into the graph. When used within a ‘with’ statement, this will temporary set the insert point and then restore it when the with statement exits: with g.inserting_before(n): ... # inserting before node n ... # insert point restored to what it was...