_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_27900
Transform data X according to the fitted model. Changed in version 0.18: doc_topic_distr is now normalized Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Document word matrix. Returns doc_topic_distrndarray of shape (n_samples, n_components) Document topic distribution for X.
doc_27901
Return the daylight saving time (DST) adjustment, as a timedelta object or None if DST information isn’t known. Return timedelta(0) if DST is not in effect. If DST is in effect, return the offset as a timedelta object (see utcoffset() for details). Note that DST offset, if applicable, has already been added to the UTC ...
doc_27902
The type of unbound class methods of some built-in data types such as dict.__dict__['fromkeys']. New in version 3.7.
doc_27903
Interact with process: send data to stdin (if input is not None); read data from stdout and stderr, until EOF is reached; wait for process to terminate. The optional input argument is the data (bytes object) that will be sent to the child process. Return a tuple (stdout_data, stderr_data). If either BrokenPipeError o...
doc_27904
accessor for ‘no-store’
doc_27905
exception lzma.LZMAError This exception is raised when an error occurs during compression or decompression, or while initializing the compressor/decompressor state. Reading and writing compressed files lzma.open(filename, mode="rb", *, format=None, check=-1, preset=None, filters=None, encoding=None, errors=None, ...
doc_27906
Return POSIX timestamp corresponding to the datetime instance. The return value is a float similar to that returned by time.time(). Naive datetime instances are assumed to represent local time and this method relies on the platform C mktime() function to perform the conversion. Since datetime supports wider range of va...
doc_27907
Return the list of file formats that compare_images can compare on this system. Returns list of str E.g. ['png', 'pdf', 'svg', 'eps'].
doc_27908
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_27909
Returns a tuple (lhs_string, lhs_params), as returned by compiler.compile(lhs). This method can be overridden to tune how the lhs is processed. compiler is an SQLCompiler object, to be used like compiler.compile(lhs) for compiling lhs. The connection can be used for compiling vendor specific SQL. If lhs is not None, us...
doc_27910
Predict the class labels for the provided data. Parameters Xarray-like of shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’ Test samples. Returns yndarray of shape (n_queries,) or (n_queries, n_outputs) Class labels for each data sample.
doc_27911
Open for binary reading the resource within package. package is either a name or a module object which conforms to the Package requirements. resource is the name of the resource to open within package; it may not contain path separators and it may not have sub-resources (i.e. it cannot be a directory). This function re...
doc_27912
Convert the PeriodArray to the specified frequency freq. Equivalent to applying pandas.Period.asfreq() with the given arguments to each Period in this PeriodArray. Parameters freq:str A frequency. how:str {‘E’, ‘S’}, default ‘E’ Whether the elements should be aligned to the end or start within pa period. ‘...
doc_27913
MultiPoint objects may be instantiated by passing in Point objects as arguments, or a single sequence of Point objects: >>> mp = MultiPoint(Point(0, 0), Point(1, 1)) >>> mp = MultiPoint( (Point(0, 0), Point(1, 1)) )
doc_27914
The day of the week with Monday=0, Sunday=6. Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which is denoted by 6. This method is available on both Series with datetime values (using the dt accessor) or DatetimeIndex. Returns Series or Index Containin...
doc_27915
By default, when reading from /dev/random, getrandom() blocks if no random bytes are available, and when reading from /dev/urandom, it blocks if the entropy pool has not yet been initialized. If the GRND_NONBLOCK flag is set, then getrandom() does not block in these cases, but instead immediately raises BlockingIOError...
doc_27916
Remove all items from the dictionary.
doc_27917
operator.__ifloordiv__(a, b) a = ifloordiv(a, b) is equivalent to a //= b.
doc_27918
Return an Index of values for requested level. This is primarily useful to get an individual level of values from a MultiIndex, but is provided on Index as well for compatibility. Parameters level:int or str It is either the integer position or the name of the level. Returns Index Calling object, as there...
doc_27919
Gets or sets the blue value of the Color. b -> int The blue value of the Color.
doc_27920
See Migration guide for more details. tf.compat.v1.raw_ops.TruncateMod tf.raw_ops.TruncateMod( x, y, name=None ) the result here is consistent with a truncating divide. E.g. truncate(x / y) * y + truncate_mod(x, y) = x. Note: truncatemod supports broadcasting. More about broadcasting here Args x A Ten...
doc_27921
Concrete class for urldefrag() results containing bytes data. The decode() method returns a DefragResult instance. New in version 3.2.
doc_27922
Feature-wise transformation of the data. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data used to scale along the features axis. If a sparse matrix is provided, it will be converted into a sparse csc_matrix. Additionally, the sparse matrix needs to be nonnegative if ignore_impli...
doc_27923
assertIsNotNone(expr, msg=None) Test that expr is (or is not) None. New in version 3.1.
doc_27924
The height of the source in pixels (Y-axis). >>> GDALRaster({'width': 10, 'height': 20, 'srid': 4326}).height 20
doc_27925
Django view for the page that shows the modification history for a given model instance.
doc_27926
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedMatMul tf.raw_ops.QuantizedMatMul( a, b, min_a, max_a, min_b, max_b, Toutput=tf.dtypes.qint32, transpose_a=False, transpose_b=False, Tactivation=tf.dtypes.quint8, name=None ) The inputs must be two-dimensional matrices and the inner dimensio...
doc_27927
Specifies the type of each element in the array.
doc_27928
create an object to help track time Clock() -> Clock Creates a new Clock object that can be used to track an amount of time. The clock also provides several functions to help control a game's framerate. tick() update the clock tick(framerate=0) -> milliseconds This method should be called once per frame. It will...
doc_27929
Scalar method identical to the corresponding array attribute. Please see ndarray.dump.
doc_27930
K-Means clustering. Read more in the User Guide. Parameters n_clustersint, default=8 The number of clusters to form as well as the number of centroids to generate. init{‘k-means++’, ‘random’}, callable or array-like of shape (n_clusters, n_features), default=’k-means++’ Method for initialization: ‘k-means++...
doc_27931
Determine whether code is in tableC.5 (Surrogate codes).
doc_27932
Performs Tensor dtype and/or device conversion. A torch.dtype and torch.device are inferred from the arguments of self.to(*args, **kwargs). Note If the self Tensor already has the correct torch.dtype and torch.device, then self is returned. Otherwise, the returned tensor is a copy of self with the desired torch.dtype ...
doc_27933
A dictionary representing the string environment at the time the interpreter was started. Keys and values are bytes on Unix and str on Windows. For example, environ[b'HOME'] (environ['HOME'] on Windows) is the pathname of your home directory, equivalent to getenv("HOME") in C. Modifying this dictionary does not affect ...
doc_27934
See Migration guide for more details. tf.compat.v1.keras.layers.RNN tf.keras.layers.RNN( cell, return_sequences=False, return_state=False, go_backwards=False, stateful=False, unroll=False, time_major=False, **kwargs ) See the Keras RNN API guide for details about the usage of RNN API. Arguments cell ...
doc_27935
get the current button state get_button(button) -> bool Returns the current state of a joystick button.
doc_27936
Returns a dictionary of CUDA memory allocator statistics for a given device. The return value of this function is a dictionary of statistics, each of which is a non-negative integer. Core statistics: "allocated.{all,large_pool,small_pool}.{current,peak,allocated,freed}": number of allocation requests received by th...
doc_27937
Return whether the colors c1 and c2 are the same. c1, c2 can be single colors or lists/arrays of colors.
doc_27938
Generic version of list. Useful for annotating return types. To annotate arguments it is preferred to use an abstract collection type such as Sequence or Iterable. This type may be used as follows: T = TypeVar('T', int, float) def vec2(x: T, y: T) -> List[T]: return [x, y] def keep_positives(vector: Sequence[T]) ...
doc_27939
terminates outgoing messages immediately abort() -> None The caller should immediately close the output port; this call may result in transmission of a partial midi message. There is no abort for Midi input because the user can simply ignore messages in the buffer and close an input device at any time.
doc_27940
Alias for set_fontweight.
doc_27941
Grid of parameters with a discrete number of values for each. Can be used to iterate over parameter value combinations with the Python built-in function iter. The order of the generated parameter combinations is deterministic. Read more in the User Guide. Parameters param_griddict of str to sequence, or sequence ...
doc_27942
Test if a rule would match. Works like match but returns True if the URL matches, or False if it does not exist. Parameters path_info (Optional[str]) – the path info to use for matching. Overrides the path info specified on binding. method (Optional[str]) – the HTTP method used for matching. Overrides the method s...
doc_27943
Bases: object A simple pyparsing-based parser for fontconfig patterns. parse(pattern)[source] Parse the given fontconfig pattern and return a dictionary of key/value pairs useful for initializing a font_manager.FontProperties object.
doc_27944
Detaches the Tensor from the graph that created it, making it a leaf. Views cannot be detached in-place.
doc_27945
A random forest regressor. A random forest is a meta estimator that fits a number of classifying decision trees on various sub-samples of the dataset and uses averaging to improve the predictive accuracy and control over-fitting. The sub-sample size is controlled with the max_samples parameter if bootstrap=True (defa...
doc_27946
Return the directory that contains the fortranobject.c and .h files. Note This function is not needed when building an extension with numpy.distutils directly from .f and/or .pyf files in one go. Python extension modules built with f2py-generated code need to use fortranobject.c as a source file, and include the fo...
doc_27947
See Migration guide for more details. tf.compat.v1.raw_ops.ReaderReadUpTo tf.raw_ops.ReaderReadUpTo( reader_handle, queue_handle, num_records, name=None ) Will dequeue from the input queue if necessary (e.g. when the Reader needs to start reading from a new file since it has finished with the previous file). It ...
doc_27948
checks if a frame is ready query_image() -> bool If an image is ready to get, it returns true. Otherwise it returns false. Note that some webcams will always return False and will only queue a frame when called with a blocking function like get_image(). This is useful to separate the framerate of the game from that o...
doc_27949
Set the y position of the text. Parameters yfloat
doc_27950
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called.
doc_27951
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array.
doc_27952
controls the position of the candidate list set_text_input_rect(Rect) -> None This sets the rectangle used for typing with an IME. It controls where the candidate list will open, if supported. New in pygame 2.0.0.
doc_27953
Calculate approximate perplexity for data X. Perplexity is defined as exp(-1. * log-likelihood per word) Changed in version 0.19: doc_topic_distr argument has been deprecated and is ignored because user no longer has access to unnormalized distribution Parameters X{array-like, sparse matrix} of shape (n_samples...
doc_27954
Get help information for a function, class, or module. Parameters objectobject or str, optional Input object or name to get information about. If object is a numpy object, its docstring is given. If it is a string, available modules are searched for matching objects. If None, information about info itself is re...
doc_27955
Move back up the view lim stack. For convenience of being directly connected as a GUI callback, which often get passed additional parameters, this method accepts arbitrary parameters, but does not use them.
doc_27956
Resample time-series data. Convenience method for frequency conversion and resampling of time series. The object must have a datetime-like index (DatetimeIndex, PeriodIndex, or TimedeltaIndex), or the caller must pass the label of a datetime-like series/index to the on/level keyword parameter. Parameters rule:Dat...
doc_27957
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_27958
Applies the element-wise function: Hardsigmoid(x)={0if x≤−3,1if x≥+3,x/6+1/2otherwise\text{Hardsigmoid}(x) = \begin{cases} 0 & \text{if~} x \le -3, \\ 1 & \text{if~} x \ge +3, \\ x / 6 + 1 / 2 & \text{otherwise} \end{cases} Parameters inplace – can optionally do the operation in-place. Default: False Shape: ...
doc_27959
Convert coefficient matrix to sparse format. Converts the coef_ member to a scipy.sparse matrix, which for L1-regularized models can be much more memory- and storage-efficient than the usual numpy.ndarray representation. The intercept_ member is not converted. Returns self Fitted estimator. Notes For non-spar...
doc_27960
Check if estimator adheres to scikit-learn conventions. This estimator will run an extensive test-suite for input validation, shapes, etc, making sure that the estimator complies with scikit-learn conventions as detailed in Rolling your own estimator. Additional tests for classifiers, regressors, clustering or transf...
doc_27961
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_27962
Return the requested number of words for PRNG seeding. A BitGenerator should call this method in its constructor with an appropriate n_words parameter to properly seed itself. Parameters n_wordsint dtypenp.uint32 or np.uint64, optional The size of each word. This should only be either uint32 or uint64. String...
doc_27963
Other Members AUTOTUNE -1 INFINITE_CARDINALITY -1 UNKNOWN_CARDINALITY -2
doc_27964
See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyCenteredRMSProp tf.raw_ops.SparseApplyCenteredRMSProp( var, mg, ms, mom, lr, rho, momentum, epsilon, grad, indices, use_locking=False, name=None ) The centered RMSProp algorithm uses an estimate of the centered second moment (i.e., the var...
doc_27965
Return whether the artist uses clipping.
doc_27966
Get parameters of this kernel. 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_27967
Token value for "<".
doc_27968
Return the Transform instance used by this artist.
doc_27969
Applies Batch Normalization for each channel across a batch of data. See BatchNorm1d, BatchNorm2d, BatchNorm3d for details.
doc_27970
Base class of the dialog controls. dlg is the dialog object the control belongs to, and name is the control’s name. event(event, argument, condition=1, ordering=None) Make an entry into the ControlEvent table for this control. mapping(event, attribute) Make an entry into the EventMapping table for this contro...
doc_27971
bytearray.islower() Return True if there is at least one lowercase ASCII character in the sequence and no uppercase ASCII characters, False otherwise. For example: >>> b'hello world'.islower() True >>> b'Hello world'.islower() False Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopq...
doc_27972
A dynamic quantized LSTM module with floating point tensor as inputs and outputs. We adopt the same interface as torch.nn.LSTM, please see https://pytorch.org/docs/stable/nn.html#torch.nn.LSTM for documentation. Examples: >>> rnn = nn.LSTM(10, 20, 2) >>> input = torch.randn(5, 3, 10) >>> h0 = torch.randn(2, 3, 20) >>...
doc_27973
Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters lwfloat or list of floats
doc_27974
Return a set of CPU features that implied by ‘names’ Parameters names: str or sequence of str CPU feature name(s) in uppercase. keep_origins: bool if False(default) then the returned set will not contain any features from ‘names’. This case happens only when two features imply each other. Examples >>> self....
doc_27975
Get a mask, or integer index, of the features selected Parameters indicesbool, default=False If True, the return value will be an array of integers, rather than a boolean mask. Returns supportarray An index that selects the retained features from a feature vector. If indices is False, this is a boolean ...
doc_27976
Computes the element-wise remainder of division. The dividend and divisor may contain both for integer and floating point numbers. The remainder has the same sign as the divisor other. Supports broadcasting to a common shape, type promotion, and integer and float inputs. Note Complex inputs are not supported. In some ...
doc_27977
Remove a prefix from an object series. If the prefix is not present, the original string will be returned. Parameters prefix:str Remove the prefix of the string. Returns Series/Index: object The Series or Index with given prefix removed. See also Series.str.removesuffix Remove a suffix from an obje...
doc_27978
Set the colormap for luminance data. Parameters cmapColormap or str or None
doc_27979
Return the result of the Future. If the Future is done and has a result set by the set_result() method, the result value is returned. If the Future is done and has an exception set by the set_exception() method, this method raises the exception. If the Future has been cancelled, this method raises a CancelledError exce...
doc_27980
Return a list of the row axis labels.
doc_27981
numpy.float128[source] Alias for numpy.longdouble, named after its size in bits. The existence of these aliases depends on the platform.
doc_27982
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_27983
Fill missing values introduced by upsampling. In statistics, imputation is the process of replacing missing data with substituted values [1]. When resampling data, missing values may appear (e.g., when the resampling frequency is higher than the original frequency). Missing values that existed in the original data wi...
doc_27984
Create a new BboxTransform that linearly transforms points from boxin to boxout.
doc_27985
Touch each location in the window that has been touched in any of its ancestor windows. This routine is called by refresh(), so it should almost never be necessary to call it manually.
doc_27986
See Migration guide for more details. tf.compat.v1.lite.OpsSet Warning: Experimental interface, subject to change. Class Variables EXPERIMENTAL_TFLITE_BUILTINS_ACTIVATIONS_INT16_WEIGHTS_INT8 tf.lite.OpsSet SELECT_TF_OPS tf.lite.OpsSet TFLITE_BUILTINS tf.lite.OpsSet TFLITE_BUILTINS_INT8 tf.li...
doc_27987
Groupby iterator. Returns Generator yielding sequence of (name, subsetted object) for each group
doc_27988
Return a list of all valid maps. The domain argument allows overriding the NIS domain used for the lookup. If unspecified, lookup is in the default NIS domain.
doc_27989
Bases: skimage.viewer.utils.core.LinearColormap Color map that varies linearly from alpha = 0 to 1 __init__(rgb, max_alpha=1, name='clear_color') [source] Create color map from linear mapping segments segmentdata argument is a dictionary with a red, green and blue entries. Each entry should be a list of x, y0, y1...
doc_27990
See Migration guide for more details. tf.compat.v1.raw_ops.EluGrad tf.raw_ops.EluGrad( gradients, outputs, name=None ) Args gradients A Tensor. Must be one of the following types: half, bfloat16, float32, float64. The backpropagated gradients to the corresponding Elu operation. outputs A Tensor. M...
doc_27991
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_27992
Inserts the key-value pair into the store based on the supplied key and value. If key already exists in the store, it will overwrite the old value with the new supplied value. Parameters key (str) – The key to be added to the store. value (str) – The value associated with key to be added to the store. Example:...
doc_27993
See Migration guide for more details. tf.compat.v1.raw_ops.RandomStandardNormal tf.raw_ops.RandomStandardNormal( shape, dtype, seed=0, seed2=0, name=None ) The generated values will have mean 0 and standard deviation 1. Args shape A Tensor. Must be one of the following types: int32, int64. The shape of ...
doc_27994
Return the figure's background patch visibility, i.e. whether the figure background will be drawn. Equivalent to Figure.patch.get_visible().
doc_27995
A subclass of FileDialog that creates a dialog window for selecting a destination file. ok_command() Test whether or not the selection points to a valid file that is not a directory. Confirmation is required if an already existing file is selected.
doc_27996
Validation curve. Determine training and test scores for varying parameter values. Compute scores for an estimator with different values of a specified parameter. This is similar to grid search with one parameter. However, this will also compute training scores and is merely a utility for plotting the results. Read m...
doc_27997
Predict multi-class targets using underlying estimators. Parameters X(sparse) array-like of shape (n_samples, n_features) Data. Returns ynumpy array of shape [n_samples] Predicted multi-class targets.
doc_27998
Get the image as ARGB bytes. draw must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.
doc_27999
Set the artist's visibility. Parameters bbool