_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_29200
Parameters: signal – A signal or a list of signals to connect a function to.
doc_29201
Compute mean of groups, excluding missing values. Parameters numeric_only:bool, default True Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. engine:str, default None 'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs...
doc_29202
Finish the compression process. Returns the compressed data left in internal buffers. The compressor object may not be used after this method has been called.
doc_29203
Context manager to swap out an item with a new object. Usage: with swap_item(obj, "item", 5): ... This will set obj["item"] to 5 for the duration of the with block, restoring the old value at the end of the block. If item doesn’t exist on obj, it will be created and then deleted at the end of the block. The old va...
doc_29204
See Migration guide for more details. tf.compat.v1.raw_ops.ComputeBatchSize tf.raw_ops.ComputeBatchSize( input_dataset, name=None ) Args input_dataset A Tensor of type variant. name A name for the operation (optional). Returns A Tensor of type int64.
doc_29205
Sets the seed for generating random numbers to a random number on all GPUs. It’s safe to call this function if CUDA is not available; in that case, it is silently ignored.
doc_29206
The version number of this module, as a tuple of integers. This is not the version of the SQLite library.
doc_29207
Add an Axes to the figure. Call signatures: add_axes(rect, projection=None, polar=False, **kwargs) add_axes(ax) Parameters rectsequence of float The dimensions [left, bottom, width, height] of the new Axes. All quantities are in fractions of figure width and height. projection{None, 'aitoff', 'hammer', 'lamb...
doc_29208
See Migration guide for more details. tf.compat.v1.raw_ops.OptionalNone tf.raw_ops.OptionalNone( name=None ) Args name A name for the operation (optional). Returns A Tensor of type variant.
doc_29209
class sklearn.linear_model.Perceptron(*, penalty=None, alpha=0.0001, l1_ratio=0.15, fit_intercept=True, max_iter=1000, tol=0.001, shuffle=True, verbose=0, eta0=1.0, n_jobs=None, random_state=0, early_stopping=False, validation_fraction=0.1, n_iter_no_change=5, class_weight=None, warm_start=False) [source] Read more i...
doc_29210
A type, introduced in PEP 593 (Flexible function and variable annotations), to decorate existing types with context-specific metadata (possibly multiple pieces of it, as Annotated is variadic). Specifically, a type T can be annotated with metadata x via the typehint Annotated[T, x]. This metadata can be used for either...
doc_29211
Compute count of group, excluding missing values. Returns Series or DataFrame Count of values within each group. See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.
doc_29212
See Migration guide for more details. tf.compat.v1.raw_ops.OneShotIterator tf.raw_ops.OneShotIterator( dataset_factory, output_types, output_shapes, container='', shared_name='', name=None ) A one-shot iterator bundles the logic for defining the dataset and the state of the iterator in a single op, which all...
doc_29213
Set the title used in the generated HTML documentation. This title will be used inside the HTML “title” element.
doc_29214
See Migration guide for more details. tf.compat.v1.raw_ops.NonDeterministicInts tf.raw_ops.NonDeterministicInts( shape, dtype=tf.dtypes.int64, name=None ) This op may use some OS-provided source of non-determinism (e.g. an RNG), so each execution will give different results. Args shape A Tensor. The sha...
doc_29215
Marks strings for translation but doesn’t translate them now. This can be used to store strings in global variables that should stay in the base language (because they might be used externally) and will be translated later.
doc_29216
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_29217
Return the current axisline style.
doc_29218
Extract element from each component at specified position. Extract element from lists, tuples, or strings in each element in the Series/Index. Parameters i:int Position of element to extract. Returns Series or Index Examples >>> s = pd.Series(["String", ... (1, 2, 3), ... ["...
doc_29219
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_29220
Return the running event loop in the current OS thread. If there is no running event loop a RuntimeError is raised. This function can only be called from a coroutine or a callback. New in version 3.7.
doc_29221
self.double() is equivalent to self.to(torch.float64). See to(). Parameters memory_format (torch.memory_format, optional) – the desired memory format of returned Tensor. Default: torch.preserve_format.
doc_29222
See Migration guide for more details. tf.compat.v1.raw_ops.FixedLengthRecordDataset tf.raw_ops.FixedLengthRecordDataset( filenames, header_bytes, record_bytes, footer_bytes, buffer_size, name=None ) Args filenames A Tensor of type string. A scalar or a vector containing the name(s) of the file(s) to be ...
doc_29223
Creates a new object of the same type of instance, replacing fields with values from changes. If instance is not a Data Class, raises TypeError. If values in changes do not specify fields, raises TypeError. The newly returned object is created by calling the __init__() method of the dataclass. This ensures that __post_...
doc_29224
Returns the originating port of the request using information from the HTTP_X_FORWARDED_PORT (if USE_X_FORWARDED_PORT is enabled) and SERVER_PORT META variables, in that order.
doc_29225
Close currently selected mailbox. Deleted messages are removed from writable mailbox. This is the recommended command before LOGOUT.
doc_29226
String representing a port or a set of ports (eg. ‘80’, or ‘80,8080’), or None.
doc_29227
Compute median of groups, excluding missing values. For multiple groupings, the result index will be a MultiIndex Parameters numeric_only:bool, default True Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. Returns Series or DataFrame Median of ...
doc_29228
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_29229
The module is mainly for debug and records the tensor values during runtime. Parameters dtype – Quantized data type qscheme – Quantization scheme to be used reduce_range – Reduces the range of the quantized data type by 1 bit
doc_29230
Extract FAST corners for a given image. Parameters image2D ndarray Input image. nint, optional Minimum number of consecutive pixels out of 16 pixels on the circle that should all be either brighter or darker w.r.t testpixel. A point c on the circle is darker w.r.t test pixel p if Ic < Ip - threshold and bri...
doc_29231
class sklearn.neighbors.KNeighborsRegressor(n_neighbors=5, *, weights='uniform', algorithm='auto', leaf_size=30, p=2, metric='minkowski', metric_params=None, n_jobs=None, **kwargs) [source] Regression based on k-nearest neighbors. The target is predicted by local interpolation of the targets associated of the nearest...
doc_29232
Convert series to a different kind and/or domain and/or window. Parameters domainarray_like, optional The domain of the converted series. If the value is None, the default domain of kind is used. kindclass, optional The polynomial series type class to which the current instance should be converted. If kind ...
doc_29233
This method always returns a list of values associated with form field name. The method returns an empty list if no such form field or value exists for name. It returns a list consisting of one item if only one such value exists.
doc_29234
Set the CapStyle for the collection (for all its elements). Parameters csCapStyle or {'butt', 'projecting', 'round'}
doc_29235
tf.nn.sufficient_statistics( x, axes, shift=None, keepdims=False, name=None ) These sufficient statistics are computed using the one pass algorithm on an input that's optionally shifted. See: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Computing_shifted_data Args x A Tensor. axes...
doc_29236
Return image subtracted from its local mean. Only greyvalues between percentiles [p0, p1] are considered in the filter. Parameters image2-D array (uint8, uint16) Input image. selem2-D array The neighborhood expressed as a 2-D array of 1’s and 0’s. out2-D array (same dtype as input) If None, a new array ...
doc_29237
sklearn.preprocessing.add_dummy_feature(X, value=1.0) [source] Augment dataset with an additional dummy feature. This is useful for fitting an intercept term with implementations which cannot otherwise fit it directly. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Data. valuefloat ...
doc_29238
Just returns self, this method is only to comply with the Decimal Specification.
doc_29239
For text/* content-types, the character set (i.e. utf8) supplied by the browser. Again, “trust but verify” is the best policy here.
doc_29240
Run the command described by args. Wait for command to complete, then return a CompletedProcess instance. The arguments shown above are merely the most common ones, described below in Frequently Used Arguments (hence the use of keyword-only notation in the abbreviated signature). The full function signature is largely ...
doc_29241
Like setdefault(), except it takes a list of values instead of a single value.
doc_29242
True if this transform has a corresponding inverse transform.
doc_29243
Bases: matplotlib.patheffects.Stroke A shortcut PathEffect for applying Stroke and then drawing the original Artist. With this class you can use artist.set_path_effects([path_effects.withStroke()]) as a shortcut for artist.set_path_effects([path_effects.Stroke(), path_effects.Normal()]) The...
doc_29244
Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate.
doc_29245
Return a new path with the suffix changed. If the original path doesn’t have a suffix, the new suffix is appended instead. If the suffix is an empty string, the original suffix is removed: >>> p = PureWindowsPath('c:/Downloads/pathlib.tar.gz') >>> p.with_suffix('.bz2') PureWindowsPath('c:/Downloads/pathlib.tar.bz2') >>...
doc_29246
Delete all the content of the data home cache. Parameters data_homestr, default=None The path to scikit-learn data directory. If None, the default path is ~/sklearn_learn_data.
doc_29247
Applies a 3D convolution over a quantized 3D input composed of several input planes. See Conv3d for details and output shape. Parameters input – quantized input tensor of shape (minibatch,in_channels,iD,iH,iW)(\text{minibatch} , \text{in\_channels} , iD , iH , iW) weight – quantized filters of shape (out_chann...
doc_29248
This method is called to handle the start of a tag (e.g. <div id="main">). The tag argument is the name of the tag converted to lower case. The attrs argument is a list of (name, value) pairs containing the attributes found inside the tag’s <> brackets. The name will be translated to lower case, and quotes in the value...
doc_29249
Inverse the transformation. Return a vector of size nb_features with the values of Xred assigned to each group of features Parameters Xredarray-like of shape (n_samples, n_clusters) or (n_clusters,) The values to be assigned to each cluster of samples Returns Xndarray of shape (n_samples, n_features) or (...
doc_29250
The namespace associated with the element name. This will be a string or None. This is a read-only attribute.
doc_29251
Provides a mutable list-like object where all values stored within are stored in a shared memory block. This constrains storable values to only the int, float, bool, str (less than 10M bytes each), bytes (less than 10M bytes each), and None built-in data types. It also notably differs from the built-in list type in tha...
doc_29252
Alias for get_edgecolor.
doc_29253
Return whether the artist is animated.
doc_29254
Comment element factory. This factory function creates a special element that will be serialized as an XML comment by the standard serializer. The comment string can be either a bytestring or a Unicode string. text is a string containing the comment string. Returns an element instance representing a comment. Note that ...
doc_29255
Alias for dim()
doc_29256
Split arrays or matrices into random train and test subsets Quick utility that wraps input validation and next(ShuffleSplit().split(X, y)) and application to input data into a single call for splitting (and optionally subsampling) data in a oneliner. Read more in the User Guide. Parameters *arrayssequence of inde...
doc_29257
This is a Python type object that represents the socket object type. It is the same as type(socket(...)).
doc_29258
Return the clk_id of the thread-specific CPU-time clock for the specified thread_id. Use threading.get_ident() or the ident attribute of threading.Thread objects to get a suitable value for thread_id. Warning Passing an invalid or expired thread_id may result in undefined behavior, such as segmentation fault. Availab...
doc_29259
The User model has a custom manager that has the following helper methods (in addition to the methods provided by BaseUserManager): create_user(username, email=None, password=None, **extra_fields) Creates, saves and returns a User. The username and password are set as given. The domain portion of email is automatic...
doc_29260
This is one of two standard signal handling options; it will simply perform the default function for the signal. For example, on most systems the default action for SIGQUIT is to dump core and exit, while the default action for SIGCHLD is to simply ignore it.
doc_29261
Bases: skimage.viewer.canvastools.base.CanvasToolBase, matplotlib.widgets.RectangleSelector Widget for selecting a rectangular region in a plot. After making the desired selection, press “Enter” to accept the selection and call the on_enter callback function. Parameters managerViewer or PlotPlugin. Skimage view...
doc_29262
Returns a namedtuple (values, indices) where values is the cumulative minimum of elements of input in the dimension dim. And indices is the index location of each maximum value found in the dimension dim. yi=min(x1,x2,x3,…,xi)y_i = min(x_1, x_2, x_3, \dots, x_i) Parameters input (Tensor) – the input tensor. dim...
doc_29263
Assert that the __all__ variable of module contains all public names. The module’s public names (its API) are detected automatically based on whether they match the public name convention and were defined in module. The name_of_module argument can specify (as a string or tuple thereof) what module(s) an API could be de...
doc_29264
See Migration guide for more details. tf.compat.v1.parallel_stack tf.parallel_stack( values, name='parallel_stack' ) Requires that the shape of inputs be known at graph construction time. Packs the list of tensors in values into a tensor with rank one higher than each tensor in values, by packing them along the ...
doc_29265
See Migration guide for more details. tf.compat.v1.estimator.GlobalStepWaiterHook, tf.compat.v1.train.GlobalStepWaiterHook tf.estimator.GlobalStepWaiterHook( wait_until_step ) This hook delays execution until global step reaches to wait_until_step. It is used to gradually start workers in distributed settings. O...
doc_29266
Return True if all elements of the iterable are true (or if the iterable is empty). Equivalent to: def all(iterable): for element in iterable: if not element: return False return True
doc_29267
Flushes the stream by calling its flush() method. Note that the close() method is inherited from Handler and so does no output, so an explicit flush() call may be needed at times.
doc_29268
tf.compat.v1.metrics.mean_per_class_accuracy( labels, predictions, num_classes, weights=None, metrics_collections=None, updates_collections=None, name=None ) Calculates the accuracy for each class, then takes the mean of that. For estimation of the metric over a stream of data, the function creates an update_o...
doc_29269
In-place version of arcsin()
doc_29270
tf.losses.serialize Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.serialize tf.keras.losses.serialize( loss ) Arguments loss A Keras Loss instance or a loss function. Returns Loss configuration dictionary.
doc_29271
Alias for get_linestyle.
doc_29272
Returns True if the useragent is allowed to fetch the url according to the rules contained in the parsed robots.txt file.
doc_29273
Commit the changes pending in the current transaction, by calling MSIDatabaseCommit().
doc_29274
The CliRunner subclass, by default FlaskCliRunner that is used by test_cli_runner(). Its __init__ method should take a Flask app object as the first argument. Changelog New in version 1.0.
doc_29275
Find the loader for a module, optionally within the specified path. If the module is in sys.modules, then sys.modules[name].__loader__ is returned (unless the loader would be None or is not set, in which case ValueError is raised). Otherwise a search using sys.meta_path is done. None is returned if no loader is found. ...
doc_29276
tf.initializers.Constant, tf.initializers.constant, tf.keras.initializers.constant tf.keras.initializers.Constant( value=0 ) Also available via the shortcut function tf.keras.initializers.constant. Only scalar values are allowed. The constant value provided must be convertible to the dtype requested when calling...
doc_29277
scale a surface to an arbitrary size smoothly smoothscale(Surface, (width, height), DestSurface = None) -> Surface Uses one of two different algorithms for scaling each dimension of the input surface as required. For shrinkage, the output pixels are area averages of the colors they cover. For expansion, a bilinear fi...
doc_29278
A popular third-party coverage tool that provides HTML output along with advanced features such as branch coverage. Command-Line Usage The trace module can be invoked from the command line. It can be as simple as python -m trace --count -C . somefile.py ... The above will execute somefile.py and generate annotated...
doc_29279
Alias for is_monotonic_increasing.
doc_29280
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_29281
Set the flag(s) specified by flag without changing other flags. To add more than one flag at a time, flag may be a string of more than one character.
doc_29282
class multiprocessing.shared_memory.SharedMemory(name=None, create=False, size=0) Creates a new shared memory block or attaches to an existing shared memory block. Each shared memory block is assigned a unique name. In this way, one process can create a shared memory block with a particular name and a different proce...
doc_29283
'blogs.blog': lambda o: "/blogs/%s/" % o.slug, 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), } The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti...
doc_29284
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceGatherNd tf.raw_ops.ResourceGatherNd( resource, indices, dtype, name=None ) Args resource A Tensor of type resource. indices A Tensor. Must be one of the following types: int32, int64. dtype A tf.DType. name A name for ...
doc_29285
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_29286
Applies a softmax function. Softmax is defined as: Softmax(xi)=exp(xi)∑jexp(xj)\text{Softmax}(x_{i}) = \frac{exp(x_i)}{\sum_j exp(x_j)} where i,ji, j run over sparse tensor indices and unspecified entries are ignores. This is equivalent to defining unspecified entries as negative infinity so that exp(xk)=0exp(x_k) ...
doc_29287
tkinter.WRITABLE tkinter.EXCEPTION Constants used in the mask arguments.
doc_29288
tf.saved_model.LoadOptions( experimental_io_device=None ) This function may be used in the options argument in functions that load a SavedModel (tf.saved_model.load, tf.keras.models.load_model). Args experimental_io_device string. Applies in a distributed setting. Tensorflow device to use to access the fi...
doc_29289
Compute decision function of X for each iteration. This method allows monitoring (i.e. determine error on testing set) after each stage. 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 prov...
doc_29290
The following exception is defined: exception webbrowser.Error Exception raised when a browser control error occurs. The following functions are defined: webbrowser.open(url, new=0, autoraise=True) Display url using the default browser. If new is 0, the url is opened in the same browser window if possible. I...
doc_29291
See InlineModelAdmin objects below as well as ModelAdmin.get_formsets_with_inlines().
doc_29292
tf.image.decode_bmp Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_bmp, tf.compat.v1.io.decode_bmp tf.io.decode_bmp( contents, channels=0, name=None ) The attr channels indicates the desired number of color channels for the decoded image. Accepted values are: 0: Use...
doc_29293
Top level Artist, which holds all plot elements. Many methods are implemented in FigureBase. SubFigure A logical figure inside a figure, usually added to a figure (or parent SubFigure) with Figure.add_subfigure or Figure.subfigures methods (provisional API v3.4). SubplotParams Control the default spacing between s...
doc_29294
Resample arrays or sparse matrices in a consistent way. The default strategy implements one step of the bootstrapping procedure. Parameters *arrayssequence of array-like of shape (n_samples,) or (n_samples, n_outputs) Indexable data-structures can be arrays, lists, dataframes or scipy sparse matrices with consi...
doc_29295
Gets or sets the red value of the Color. r -> int The red value of the Color.
doc_29296
Alias for numel()
doc_29297
Set the tty attributes for file descriptor fd from the attributes, which is a list like the one returned by tcgetattr(). The when argument determines when the attributes are changed: TCSANOW to change immediately, TCSADRAIN to change after transmitting all queued output, or TCSAFLUSH to change after transmitting all qu...
doc_29298
Return the string obtained by doing backslash substitution on the template string template, as done by the sub() method. Escapes such as \n are converted to the appropriate characters, and numeric backreferences (\1, \2) and named backreferences (\g<1>, \g<name>) are replaced by the contents of the corresponding group....
doc_29299
Parameters urlslist of str or None Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends.