_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_28800
Dump a pickle of the array to the specified file. The array can be read back with pickle.load or numpy.load. Parameters filestr or Path A string naming the dump file. Changed in version 1.17.0: pathlib.Path objects are now accepted.
doc_28801
Add widget to plugin. Alternatively, Plugin’s __add__ method is overloaded to add widgets: plugin += Widget(...) Widgets can adjust required or optional arguments of filter function or parameters for the plugin. This is specified by the Widget’s ptype.
doc_28802
Return unbiased skew over requested axis. Normalized by N-1. Parameters axis:{index (0), columns (1)} 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), coun...
doc_28803
See Migration guide for more details. tf.compat.v1.FixedLenSequenceFeature, tf.compat.v1.io.FixedLenSequenceFeature tf.io.FixedLenSequenceFeature( shape, dtype, allow_missing=False, default_value=None ) The resulting Tensor of parsing a single SequenceExample or Example has a static shape of [None] + shape and t...
doc_28804
Linear classifiers (SVM, logistic regression, etc.) with SGD training. This estimator implements regularized linear models with stochastic gradient descent (SGD) learning: the gradient of the loss is estimated each sample at a time and the model is updated along the way with a decreasing strength schedule (aka learni...
doc_28805
Logs a message with level DEBUG on the root logger. The msg is the message format string, and the args are the arguments which are merged into msg using the string formatting operator. (Note that this means that you can use keywords in the format string, together with a single dictionary argument.) There are three keyw...
doc_28806
Return True for ignorable characters. The character ch is ignorable if ch is a space or tab, otherwise it is not ignorable. Used as a default for parameter charjunk in ndiff().
doc_28807
Return the canvas width and height in display coords.
doc_28808
Parameters position{'left', 'right'}
doc_28809
The native integral thread ID of this thread. This is a non-negative integer, or None if the thread has not been started. See the get_native_id() function. This represents the Thread ID (TID) as assigned to the thread by the OS (kernel). Its value may be used to uniquely identify this particular thread system-wide (unt...
doc_28810
Join the background thread. This can only be used after close() has been called. It blocks until the background thread exits, ensuring that all data in the buffer has been flushed to the pipe. By default if a process is not the creator of the queue then on exit it will attempt to join the queue’s background thread. The...
doc_28811
Return a fixed frequency DatetimeIndex. Returns the range of equally spaced time points (where the difference between any two adjacent points is specified by the given frequency) such that they all satisfy start <[=] x <[=] end, where the first one and the last one are, resp., the first and last time points in that r...
doc_28812
Return a (tight) bounding box of the figure in inches. Note that FigureBase differs from all other artists, which return their Bbox in pixels. Artists that have artist.set_in_layout(False) are not included in the bbox. Parameters rendererRendererBase subclass renderer that will be used to draw the figures (i.e....
doc_28813
See Migration guide for more details. tf.compat.v1.raw_ops.StringLength tf.raw_ops.StringLength( input, unit='BYTE', name=None ) Computes the length of each string given in the input tensor. strings = tf.constant(['Hello','TensorFlow', '\U0001F642']) tf.strings.length(strings).numpy() # default counts bytes arr...
doc_28814
Get the memory usage in bytes of the tracemalloc module used to store traces of memory blocks. Return an int.
doc_28815
sklearn.metrics.consensus_score(a, b, *, similarity='jaccard') [source] The similarity of two sets of biclusters. Similarity between individual biclusters is computed. Then the best matching between sets is found using the Hungarian algorithm. The final score is the sum of similarities divided by the size of the larg...
doc_28816
Scanned page. This image of printed text is useful for demonstrations requiring uneven background illumination. Returns page(191, 384) uint8 ndarray Page image.
doc_28817
The name that will be used by default for the relation from a related object back to this one. The default is <model_name>_set. This option also sets related_query_name. As the reverse name for a field should be unique, be careful if you intend to subclass your model. To work around name collisions, part of the name sh...
doc_28818
Alias for torch.asinh().
doc_28819
See torch.argmin()
doc_28820
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_28821
An N-dimensional tuple of current coordinates. Examples >>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.coords (0, 0) >>> next(fl) 0 >>> fl.coords (0, 1)
doc_28822
Statistic on memory allocations. Snapshot.statistics() returns a list of Statistic instances. See also the StatisticDiff class. count Number of memory blocks (int). size Total size of memory blocks in bytes (int). traceback Traceback where the memory block was allocated, Traceback instance.
doc_28823
Represents a parsed URL. This behaves like a regular tuple but also has some extra attributes that give further insight into the URL. Create new instance of _URLTuple(scheme, netloc, path, query, fragment) Parameters scheme (str) – netloc (str) – path (str) – query (str) – fragment (str) – encode(char...
doc_28824
Add a toolitem to the container. This method must be implemented per backend. The callback associated with the button click event, must be exactly self.trigger_tool(name). Parameters namestr Name of the tool to add, this gets used as the tool's ID and as the default label of the buttons. groupstr Name of th...
doc_28825
Module containing the models, e.g. <module 'django.contrib.admin.models' from 'django/contrib/admin/models.py'>. It may be None if the application doesn’t contain a models module. Note that the database related signals such as pre_migrate and post_migrate are only emitted for applications that have a models module.
doc_28826
Scalar method identical to the corresponding array attribute. Please see ndarray.byteswap.
doc_28827
class sklearn.dummy.DummyClassifier(*, strategy='prior', random_state=None, constant=None) [source] DummyClassifier is a classifier that makes predictions using simple rules. This classifier is useful as a simple baseline to compare with other (real) classifiers. Do not use it for real problems. Read more in the User...
doc_28828
Finder for modules declared in the Windows registry. This class implements the importlib.abc.MetaPathFinder ABC. Only class methods are defined by this class to alleviate the need for instantiation. New in version 3.3. Deprecated since version 3.6: Use site configuration instead. Future versions of Python may not en...
doc_28829
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_28830
Bases: tuple Represents the information on a composite element of a composite char. Create new instance of CompositePart(name, dx, dy) dx x-displacement of the part from the origin. dy y-displacement of the part from the origin. name Name of the part, e.g. 'acute'.
doc_28831
Alias for torch.div().
doc_28832
The nanoseconds of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="ns") ... ) >>> datetime_series 0 2000-01-01 00:00:00.000000000 1 2000-01-01 00:00:00.000000001 2 2000-01-01 00:00:00.000000002 dtype: datetime64[ns] >>> datetime_series.dt.nanosecond ...
doc_28833
Check whether the provided array or dtype is of an integer dtype. Unlike in is_any_int_dtype, timedelta64 instances will return False. The nullable Integer dtypes (e.g. pandas.Int64Dtype) are also considered as integer by this function. Parameters arr_or_dtype:array-like or dtype The array or dtype to check. ...
doc_28834
tf.compat.v1.profiler.write_op_log( graph, log_dir, op_log=None, run_meta=None, add_trace=True ) The API also assigns ops in tf.compat.v1.trainable_variables() an op type called '_trainable_variables'. The API also logs 'flops' statistics for ops with op.RegisterStatistics() defined. flops calculation depends on T...
doc_28835
Return whether the artist uses clipping.
doc_28836
Alias to SIGCHLD.
doc_28837
Fill NaN values using an interpolation method. Please note that only method='linear' is supported for DataFrame/Series with a MultiIndex. Parameters method:str, default ‘linear’ Interpolation technique to use. One of: ‘linear’: Ignore the index and treat the values as equally spaced. This is the only method su...
doc_28838
Reverse the transformation operation Parameters Xarray of shape [n_samples, n_selected_features] The input samples. Returns X_rarray of shape [n_samples, n_original_features] X with columns of zeros inserted where features would have been removed by transform.
doc_28839
Set the Figure instance the artist belongs to. Parameters figFigure
doc_28840
Returns the maximum number of extra inline forms to use. By default, returns the InlineModelAdmin.max_num attribute. Override this method to programmatically determine the maximum number of inline forms. For example, this may be based on the model instance (passed as the keyword argument obj): class BinaryTreeAdmin(adm...
doc_28841
See Migration guide for more details. tf.compat.v1.raw_ops.IteratorGetNext tf.raw_ops.IteratorGetNext( iterator, output_types, output_shapes, name=None ) Args iterator A Tensor of type resource. output_types A list of tf.DTypes that has length >= 1. output_shapes A list of shapes (each a tf....
doc_28842
Do not dump the file.
doc_28843
Return the current callback function used on floating-point errors. When the error handling for a floating-point error (one of “divide”, “over”, “under”, or “invalid”) is set to ‘call’ or ‘log’, the function that is called or the log instance that is written to is returned by geterrcall. This function or log instance...
doc_28844
Return the current state of the decoder. This must be a tuple with two items, the first must be the buffer containing the still undecoded input. The second must be an integer and can be additional state info. (The implementation should make sure that 0 is the most common additional state info.) If this additional state...
doc_28845
Set the Figure instance the artist belongs to. Parameters figFigure
doc_28846
This read-only attribute provides the column names of the last query. To remain compatible with the Python DB API, it returns a 7-tuple for each column where the last six items of each tuple are None. It is set for SELECT statements without any matching rows as well.
doc_28847
Return the index of the first of occurrence of b in a.
doc_28848
The method the request was made with, such as GET.
doc_28849
Predict class for X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix. Returns yndarray of shape (n_samples,) The predicted values.
doc_28850
Read-only name identifying the axis.
doc_28851
class socketserver.ThreadingMixIn Forking and threading versions of each type of server can be created using these mix-in classes. For instance, ThreadingUDPServer is created as follows: class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass The mix-in class comes first, since it overrides a method defined in...
doc_28852
Set the transparent colorkey set_colorkey(Color, flags=0) -> None set_colorkey(None) -> None Set the current color key for the Surface. When blitting this Surface onto a destination, any pixels that have the same color as the colorkey will be transparent. The color can be an RGB color or a mapped color integer. If No...
doc_28853
Flag indicating whether to print only the filenames of files containing whitespace related problems. This is set to true by the -q option if called as a script.
doc_28854
Return str(self).
doc_28855
A valid email address. By default Django uses the DEFAULT_FROM_EMAIL.
doc_28856
Sets the system identifier of this InputSource.
doc_28857
class graphlib.TopologicalSorter(graph=None) Provides functionality to topologically sort a graph of hashable nodes. A topological order is a linear ordering of the vertices in a graph such that for every directed edge u -> v from vertex u to vertex v, vertex u comes before vertex v in the ordering. For instance, the...
doc_28858
Return the current hatching pattern.
doc_28859
Construct a new Decimal object based from value. value can be an integer, string, tuple, float, or another Decimal object. If no value is given, returns Decimal('0'). If value is a string, it should conform to the decimal numeric string syntax after leading and trailing whitespace characters, as well as underscores thr...
doc_28860
Return the message’s main content type. This is the maintype part of the string returned by get_content_type().
doc_28861
Set to os.getcwd().
doc_28862
This is the default backend. Email will be sent through a SMTP server. The value for each argument is retrieved from the matching setting if the argument is None: host: EMAIL_HOST port: EMAIL_PORT username: EMAIL_HOST_USER password: EMAIL_HOST_PASSWORD use_tls: EMAIL_USE_TLS use_ssl: EMAIL_USE_SSL timeout...
doc_28863
Return True if the queue is empty, False otherwise. Because of multithreading/multiprocessing semantics, this is not reliable.
doc_28864
Alias for set_linestyle.
doc_28865
See Migration guide for more details. tf.compat.v1.make_ndarray tf.make_ndarray( tensor ) Create a numpy ndarray with the same shape and data as the tensor. For example: # Tensor a has shape (2,3) a = tf.constant([[1,2,3],[4,5,6]]) proto_tensor = tf.make_tensor_proto(a) # convert `tensor a` to a proto tensor tf...
doc_28866
Bases: matplotlib.patches._Style ConnectionStyle is a container class which defines several connectionstyle classes, which is used to create a path between two points. These are mainly used with FancyArrowPatch. A connectionstyle object can be either created as: ConnectionStyle.Arc3(rad=0.2) or: ConnectionStyle("Arc...
doc_28867
A RegexValidator instance that ensures a value consists of only letters, numbers, underscores or hyphens.
doc_28868
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 e...
doc_28869
Blit the canvas in bbox (default entire canvas).
doc_28870
Find good place to draw a label (relatively flat part of the contour).
doc_28871
The loader which loaded the module. Defaults to None. This attribute is to match importlib.machinery.ModuleSpec.loader as stored in the attr:__spec__ object. Note A future version of Python may stop setting this attribute by default. To guard against this potential change, preferrably read from the __spec__ attribute ...
doc_28872
tf.keras.losses.kl_divergence, tf.keras.losses.kld, tf.keras.losses.kullback_leibler_divergence, tf.keras.metrics.KLD, tf.keras.metrics.kl_divergence, tf.keras.metrics.kld, tf.keras.metrics.kullback_leibler_divergence, tf.losses.KLD, tf.losses.kl_divergence, tf.losses.kld, tf.losses.kullback_leibler_divergence, tf.metr...
doc_28873
The node that immediately precedes this one with the same parent. For instance the element with an end-tag that comes just before the self element’s start-tag. Of course, XML documents are made up of more than just elements so the previous sibling could be text, a comment, or something else. If this node is the first c...
doc_28874
Load an SPSS file from the file path, returning a DataFrame. New in version 0.25.0. Parameters path:str or Path File path. usecols:list-like, optional Return a subset of the columns. If None, return all columns. convert_categoricals:bool, default is True Convert categorical columns into pd.Categorical...
doc_28875
tf.compat.v1.losses.get_losses( scope=None, loss_collection=tf.GraphKeys.LOSSES ) Args scope An optional scope name for filtering the losses to return. loss_collection Optional losses collection. Returns a list of loss tensors.
doc_28876
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_28877
See torch.stft() Warning This function changed signature at version 0.4.1. Calling with the previous signature may cause error or return incorrect result.
doc_28878
select_template() is just like get_template(), except it takes a list of template names. It tries each name in order and returns the first template that exists.
doc_28879
Alias for torch.atanh().
doc_28880
Convert bytes in the encoding used by a subprocess into a filesystem-appropriate str. Inherited from exec_command, and possibly incorrect.
doc_28881
See Migration guide for more details. tf.compat.v1.raw_ops.NonMaxSuppressionWithOverlaps tf.raw_ops.NonMaxSuppressionWithOverlaps( overlaps, scores, max_output_size, overlap_threshold, score_threshold, name=None ) pruning away boxes that have high overlaps with previously selected boxes. Bounding boxes with scor...
doc_28882
Define how the connection between two line segments is drawn. For a visual impression of each JoinStyle, view these docs online, or run JoinStyle.demo. Lines in Matplotlib are typically defined by a 1D Path and a finite linewidth, where the underlying 1D Path represents the center of the stroked line. By default, Gra...
doc_28883
Dequantizes an incoming tensor Examples:: >>> input = torch.tensor([[1., -1.], [1., -1.]]) >>> scale, zero_point, dtype = 1.0, 2, torch.qint8 >>> qm = Quantize(scale, zero_point, dtype) >>> quantized_input = qm(input) >>> dqm = DeQuantize() >>> dequantized = dqm(quantized_input) >>> print(dequantized) tensor([[ 1.,...
doc_28884
Return the bottom coord of the rectangle.
doc_28885
tf.summary.experimental.set_step( step ) For convenience, this function sets a default value for the step parameter used in summary-writing functions elsewhere in the API so that it need not be explicitly passed in every such invocation. The value can be a constant or a variable, and can be retrieved via tf.summar...
doc_28886
If there is no certificate for the peer on the other end of the connection, return None. If the SSL handshake hasn’t been done yet, raise ValueError. If the binary_form parameter is False, and a certificate was received from the peer, this method returns a dict instance. If the certificate was not validated, the dict i...
doc_28887
See Migration guide for more details. tf.compat.v1.raw_ops.DenseToCSRSparseMatrix tf.raw_ops.DenseToCSRSparseMatrix( dense_input, indices, name=None ) Args dense_input A Tensor. Must be one of the following types: float32, float64, complex64, complex128. A Dense tensor. indices A Tensor of type in...
doc_28888
tf.compat.v1.disable_eager_execution() This function can only be called before any Graphs, Ops, or Tensors have been created. It can be used at the beginning of the program for complex migration projects from TensorFlow 1.x to 2.x.
doc_28889
Generate random samples from the model. Currently, this is implemented only for gaussian and tophat kernels. Parameters n_samplesint, default=1 Number of samples to generate. random_stateint, RandomState instance or None, default=None Determines random number generation used to generate random samples. Pass...
doc_28890
See Migration guide for more details. tf.compat.v1.raw_ops.DirectedInterleaveDataset tf.raw_ops.DirectedInterleaveDataset( selector_input_dataset, data_input_datasets, output_types, output_shapes, name=None ) Args selector_input_dataset A Tensor of type variant. A dataset of scalar DT_INT64 elements...
doc_28891
Return whether the artist uses clipping.
doc_28892
A hook allowing the expression to coerce value into a more appropriate type. expression is the same as self.
doc_28893
andrews_curves(frame, class_column[, ax, ...]) Generate a matplotlib plot of Andrews curves, for visualising clusters of multivariate data. autocorrelation_plot(series[, ax]) Autocorrelation plot for time series. bootstrap_plot(series[, fig, size, samples]) Bootstrap plot on mean, median and mid-range statistics. ...
doc_28894
turns a midi note off (note must be on) note_off(note, velocity=None, channel=0) -> None Turn a note off in the output stream. The note must already be on for this to work correctly.
doc_28895
Load MIME information from a file named filename. This uses readfp() to parse the file. If strict is True, information will be added to list of standard types, else to the list of non-standard types.
doc_28896
Token value for "*".
doc_28897
DistanceMetric class This class provides a uniform interface to fast distance metric functions. The various metrics can be accessed via the get_metric class method and the metric string identifier (see below). Examples >>> from sklearn.neighbors import DistanceMetric >>> dist = DistanceMetric.get_metric('euclidean') >>...
doc_28898
Rename categories. Parameters new_categories:list-like, dict-like or callable New categories which will replace old categories. list-like: all items must be unique and the number of items in the new categories must match the existing number of categories. dict-like: specifies a mapping from old categories to n...
doc_28899
Packs a Tensor containing padded sequences of variable length. input can be of size T x B x * where T is the length of the longest sequence (equal to lengths[0]), B is the batch size, and * is any number of dimensions (including 0). If batch_first is True, B x T x * input is expected. For unsorted sequences, use enfo...