_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_18100
Set the quitting attribute to True. This raises BdbQuit in the next call to one of the dispatch_*() methods.
doc_18101
class sklearn.feature_selection.SelectFromModel(estimator, *, threshold=None, prefit=False, norm_order=1, max_features=None, importance_getter='auto') [source] Meta-transformer for selecting features based on importance weights. New in version 0.17. Read more in the User Guide. Parameters estimatorobject The ...
doc_18102
Callback processing for pick events. This method will be called by artists who are picked and will fire off PickEvent callbacks registered listeners. Note that artists are not pickable by default (see Artist.set_picker).
doc_18103
Write a row with the field names (as specified in the constructor) to the writer’s file object, formatted according to the current dialect. Return the return value of the csvwriter.writerow() call used internally. New in version 3.2. Changed in version 3.8: writeheader() now also returns the value returned by the cs...
doc_18104
Set the featurename to value. If the feature is not recognized, SAXNotRecognizedException is raised. If the feature or its setting is not supported by the parser, SAXNotSupportedException is raised.
doc_18105
Send a file using high-performance os.sendfile if possible. Return the total number of bytes sent. Asynchronous version of socket.sendfile(). sock must be a non-blocking socket.SOCK_STREAM socket. file must be a regular file object open in binary mode. offset tells from where to start reading the file. If specified, co...
doc_18106
A copy of the seven-element boolean mask indicating valid days.
doc_18107
An abstract method to return the bytes for the data located at path. Loaders that have a file-like storage back-end that allows storing arbitrary data can implement this abstract method to give direct access to the data stored. OSError is to be raised if the path cannot be found. The path is expected to be constructed ...
doc_18108
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_18109
Create an application archive from source. The source can be any of the following: The name of a directory, or a path-like object referring to a directory, in which case a new application archive will be created from the content of that directory. The name of an existing application archive file, or a path-like object...
doc_18110
Adjust the subplot layout parameters. Unset parameters are left unmodified; initial values are given by rcParams["figure.subplot.[name]"]. Parameters leftfloat, optional The position of the left edge of the subplots, as a fraction of the figure width. rightfloat, optional The position of the right edge of t...
doc_18111
Set the object that defines floating-point error handling. The error object contains all information that defines the error handling behavior in NumPy. seterrobj is used internally by the other functions that set error handling behavior (seterr, seterrcall). Parameters errobjlist The error object, a list contai...
doc_18112
Concrete implementation of Loader.load_module(). Deprecated since version 3.4: Use exec_module() instead.
doc_18113
tf.compat.v1.keras.layers.disable_v2_dtype_behavior() See tf.compat.v1.keras.layers.enable_v2_dtype_behavior.
doc_18114
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_18115
Reverse the order of a n-D tensor along given axis in dims. Note torch.flip makes a copy of input’s data. This is different from NumPy’s np.flip, which returns a view in constant time. Since copying a tensor’s data is more work than viewing that data, torch.flip is expected to be slower than np.flip. Parameters i...
doc_18116
alias of matplotlib.backends.backend_cairo.FigureCanvasCairo
doc_18117
See Migration guide for more details. tf.compat.v1.app.flags Modules tf_decorator module: Base TFDecorator class and utility functions for working with decorators. Classes class ArgumentParser: Base class used to parse and convert arguments. class ArgumentSerializer: Base class for generating string representations of...
doc_18118
Construct an array by repeating A the number of times given by reps. If reps has length d, the result will have dimension of max(d, A.ndim). If A.ndim < d, A is promoted to be d-dimensional by prepending new axes. So a shape (3,) array is promoted to (1, 3) for 2-D replication, or shape (1, 1, 3) for 3-D replication....
doc_18119
'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_18120
Computes the (weighted) graph of k-Neighbors for points in X Parameters Xarray-like of shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’, default=None The query point or points. If not provided, neighbors of each indexed point are returned. In this case, the query point is not ...
doc_18121
Return the result of the Task. If the Task is done, the result of the wrapped coroutine is returned (or if the coroutine raised an exception, that exception is re-raised.) If the Task has been cancelled, this method raises a CancelledError exception. If the Task’s result isn’t yet available, this method raises a Invali...
doc_18122
Returns the next Node in the linked list of Nodes. Returns The next Node in the linked list of Nodes.
doc_18123
Time of last modification.
doc_18124
Set the bbox that the legend will be anchored to. Parameters bboxBboxBase or tuple The bounding box can be specified in the following ways: A BboxBase instance A tuple of (left, bottom, width, height) in the given transform (normalized axes coordinate if None) A tuple of (left, bottom) where the width and heig...
doc_18125
The command to stash a skip tensor. def forward(self, input): yield stash('name', input) return f(input) Parameters name (str) – name of skip tensor input (torch.Tensor or None) – tensor to pass to the skip connection
doc_18126
Logs an exception. This is called by handle_exception() if debugging is disabled and right before the handler is called. The default implementation logs the exception as error on the logger. Changelog New in version 0.8. Parameters exc_info (Union[Tuple[type, BaseException, types.TracebackType], Tuple[None, None, N...
doc_18127
Return the score of the model on the data X. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yIgnored Not used, present for API consistency by convention. Returns scorefloat
doc_18128
Wake up at most n tasks (1 by default) waiting on this condition. The method is no-op if no tasks are waiting. The lock must be acquired before this method is called and released shortly after. If called with an unlocked lock a RuntimeError error is raised.
doc_18129
Other Members ASSETS_DIRECTORY 'assets' ASSETS_KEY 'saved_model_assets' DEBUG_DIRECTORY 'debug' DEBUG_INFO_FILENAME_PB 'saved_model_debug_info.pb' LEGACY_INIT_OP_KEY 'legacy_init_op' MAIN_OP_KEY 'saved_model_main_op' SAVED_MODEL_FILENAME_PB 'saved_model.pb' SAVED_MODEL_F...
doc_18130
A list of names of fields. This is interpreted the same way as the Meta.fields attribute of ModelForm. This is a required attribute if you are generating the form class automatically (e.g. using model). Omitting this attribute will result in an ImproperlyConfigured exception.
doc_18131
Returns the ISO-8601 week-numbering year. lookup_name = 'iso_year'
doc_18132
An alias for blinker.base.Namespace if blinker is available, otherwise a dummy class that creates fake signals. This class is available for Flask extensions that want to provide the same fallback system as Flask itself. signal(name, doc=None) Creates a new signal for this namespace if blinker is available, otherwis...
doc_18133
Convenience method for conditional requests. Parameters environ (WSGIEnvironment) – the WSGI environment of the request to be checked. etag (Optional[str]) – the etag for the response for comparison. data (Optional[bytes]) – or alternatively the data of the response to automatically generate an etag using generat...
doc_18134
Which headers can be sent with the cross origin request.
doc_18135
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
doc_18136
Create a 3D filled contour plot. Note This method currently produces incorrect output due to a longstanding bug in 3D PolyCollection rendering. Parameters X, Y, Zarray-like Input data. See tricontourf for acceptable data shapes. zdir{'x', 'y', 'z'}, default: 'z' The direction to use. offsetfloat, option...
doc_18137
Add other to self in-place.
doc_18138
Encode the bytes-like object s using Base32 and return the encoded bytes.
doc_18139
Bind the arguments provided into a dict. When passed a function, a tuple of arguments and a dict of keyword arguments bind_arguments returns a dict of names as the function would see it. This can be useful to implement a cache decorator that uses the function arguments to build the cache key based on the values of the ...
doc_18140
Exit code that means an internal software error was detected. Availability: Unix.
doc_18141
Close the stream if it was opened by wave, and make the instance unusable. This is called automatically on object collection.
doc_18142
Parse a Content-Type like header into a tuple with the content type and the options: >>> parse_options_header('text/html; charset=utf8') ('text/html', {'charset': 'utf8'}) This should not be used to parse Cache-Control like headers that use a slightly different format. For these headers use the parse_dict_header() fun...
doc_18143
Return True if the specified window was modified since the last call to refresh(); otherwise return False.
doc_18144
Generate isotropic Gaussian and label samples by quantile. This classification dataset is constructed by taking a multi-dimensional standard normal distribution and defining classes separated by nested concentric multi-dimensional spheres such that roughly equal numbers of samples are in each class (quantiles of the ...
doc_18145
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_18146
Check, excluding endpoints, whether an interval includes a given value. Parameters interval(float, float) The endpoints of the interval. valfloat Value to check is within interval. Returns bool Whether val is within the interval.
doc_18147
Fit the model to X. Parameters Xarray-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features. yIgnored Returns self
doc_18148
Compute the 2-dimensional FFT of a real array. Parameters aarray Input array, taken to be real. ssequence of ints, optional Shape of the FFT. axessequence of ints, optional Axes over which to compute the FFT. norm{“backward”, “ortho”, “forward”}, optional New in version 1.10.0. Normalization mode ...
doc_18149
tf.equal Compat aliases for migration See Migration guide for more details. tf.compat.v1.equal, tf.compat.v1.math.equal tf.math.equal( x, y, name=None ) Performs a broadcast with the arguments and then an element-wise equality comparison, returning a Tensor of boolean values. For example: x = tf.constant([2, 4]...
doc_18150
This function attempts to import an admin module in each installed application. Such modules are expected to register models with the admin. Typically you won’t need to call this function directly as AdminConfig calls it when Django starts.
doc_18151
operator.__itruediv__(a, b) a = itruediv(a, b) is equivalent to a /= b.
doc_18152
If this attribute is set to a callable, the rotate() method delegates to this callable. The parameters passed to the callable are those passed to rotate(). New in version 3.3.
doc_18153
Boolean thresholding of array-like or scipy.sparse matrix. Read more in the User Guide. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data to binarize, element by element. scipy.sparse matrices should be in CSR or CSC format to avoid an un-necessary copy. thresholdfloat, default...
doc_18154
Randomly permute a sequence, or return a permuted range. Parameters xint or array_like If x is an integer, randomly permute np.arange(x). If x is an array, make a copy and shuffle the elements randomly. axisint, optional The axis which x is shuffled along. Default is 0. Returns outndarray Permuted s...
doc_18155
A concrete datetime.tzinfo subclass that represents an IANA time zone specified by the string key. Calls to the primary constructor will always return objects that compare identically; put another way, barring cache invalidation via ZoneInfo.clear_cache(), for all values of key, the following assertion will always be t...
doc_18156
Take no action. If your database backend enforces referential integrity, this will cause an IntegrityError unless you manually add an SQL ON DELETE constraint to the database field.
doc_18157
tf.experimental.numpy.equal( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.equal.
doc_18158
See Migration guide for more details. tf.compat.v1.raw_ops.BatchDataset tf.raw_ops.BatchDataset( input_dataset, batch_size, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. batch_size A Tensor of type int64. A scalar representing the number of elements to accum...
doc_18159
A read-only property for the median of a normal distribution.
doc_18160
Reduce dimensionality through sparse random projection. Sparse random matrix is an alternative to dense random projection matrix that guarantees similar embedding quality while being much more memory efficient and allowing faster computation of the projected data. If we note s = 1 / density the components of the rand...
doc_18161
Compute indexer and mask for new index given the current index. The indexer should be then used as an input to ndarray.take to align the current data to the new index. Parameters target:Index method:{None, ‘pad’/’ffill’, ‘backfill’/’bfill’, ‘nearest’}, optional default: exact matches only. pad / ffill: find ...
doc_18162
Split the string at the last occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return a 3-tuple containing two empty strings, followed by the string itself.
doc_18163
sklearn.utils.multiclass.is_multilabel(y) [source] Check if y is in a multilabel format. Parameters yndarray of shape (n_samples,) Target values. Returns outbool Return True, if y is in a multilabel format, else `False. Examples >>> import numpy as np >>> from sklearn.utils.multiclass import is_mult...
doc_18164
Alias for get_linewidth.
doc_18165
(default: '') String that will be prepended to all lines of wrapped output except the first. Counts towards the length of each line except the first.
doc_18166
See Migration guide for more details. tf.compat.v1.raw_ops.BesselJ0 tf.raw_ops.BesselJ0( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_18167
Given the 2D view coordinates attempt to guess a 3D coordinate. Looks for the nearest edge to the point and then assumes that the point is at the same z location as the nearest point on the edge.
doc_18168
Return the sample arithmetic mean of data which can be a sequence or iterable. The arithmetic mean is the sum of the data divided by the number of data points. It is commonly called “the average”, although it is only one of many different mathematical averages. It is a measure of the central location of the data. If da...
doc_18169
Check if types match. New in version 1.7.0. Parameters otherobject Class instance. Returns boolboolean True if other is same class as self
doc_18170
Return an embeddable JavaScript snippet, which, if run on a browser which supports JavaScript, will act the same as if the HTTP header was sent. The meaning for attrs is the same as in output().
doc_18171
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_18172
Possible value for SSLContext.verify_mode, or the cert_reqs parameter to wrap_socket(). In client mode, CERT_OPTIONAL has the same meaning as CERT_REQUIRED. It is recommended to use CERT_REQUIRED for client-side sockets instead. In server mode, a client certificate request is sent to the client. The client may either i...
doc_18173
Pseudo-Vandermonde matrix of given degree. Returns the pseudo-Vandermonde matrix of degree deg and sample points x. The pseudo-Vandermonde matrix is defined by \[V[..., i] = L_i(x)\] where 0 <= i <= deg. The leading indices of V index the elements of x and the last index is the degree of the Laguerre polynomial. If ...
doc_18174
Multiplies mat (given by input3) by the orthogonal Q matrix of the QR factorization formed by torch.geqrf() that is represented by (a, tau) (given by (input, input2)). This directly calls the underlying LAPACK function ?ormqr. See LAPACK documentation for ormqr for further details. Parameters input (Tensor) – the a...
doc_18175
Alias for set_edgecolor.
doc_18176
Asserts that a response produced the given status_code and that text does not appear in its content. Set html to True to handle text as HTML. The comparison with the response content will be based on HTML semantics instead of character-by-character equality. Whitespace is ignored in most cases, attribute ordering is no...
doc_18177
CFFI interface Returns interfacenamedtuple Named tuple containing CFFI wrapper state_address - Memory address of the state struct state - pointer to the state struct next_uint64 - function pointer to produce 64 bit integers next_uint32 - function pointer to produce 32 bit integers next_double - function pointe...
doc_18178
Reduces the tensor data across all machines. Only the process with rank dst is going to receive the final result. Parameters tensor (Tensor) – Input and output of the collective. The function operates in-place. dst (int) – Destination rank op (optional) – One of the values from torch.distributed.ReduceOp enum. ...
doc_18179
Check if the object is an iterator. This is intended for generators, not list-like objects. Parameters obj:The object to check Returns is_iter:bool Whether obj is an iterator. Examples >>> import datetime >>> is_iterator((x for x in [])) True >>> is_iterator([1, 2, 3]) False >>> is_iterator(datetime....
doc_18180
Calls str.encode element-wise. See also char.encode
doc_18181
Bases: matplotlib.collections._CollectionWithSizes A collection of n-sided regular polygons. Parameters numsidesint The number of sides of the polygon. rotationfloat The rotation of the polygon in radians. sizestuple of float The area of the circle circumscribing the polygon in points^2. **kwargs Forw...
doc_18182
Computes and returns a pruned version of input tensor t according to the pruning rule specified in compute_mask(). Parameters t (torch.Tensor) – tensor to prune (of same dimensions as default_mask). importance_scores (torch.Tensor) – tensor of importance scores (of same shape as t) used to compute mask for pruning...
doc_18183
Convert angle x from degrees to radians.
doc_18184
Return True if the path points to a regular file (or a symbolic link pointing to a regular file), False if it points to another kind of file. False is also returned if the path doesn’t exist or is a broken symlink; other errors (such as permission errors) are propagated.
doc_18185
Use layoutgrid to determine pos positions within Axes. See also set_constrained_layout_pads. Returns layoutgridprivate debugging object
doc_18186
A dictionary that maps Unicode code points to HTML entity names.
doc_18187
The format string used to construct this Struct object. Changed in version 3.7: The format string type is now str instead of bytes.
doc_18188
tf.random.experimental.Generator Compat aliases for migration See Migration guide for more details. tf.compat.v1.random.Generator, tf.compat.v1.random.experimental.Generator tf.random.Generator( copy_from=None, state=None, alg=None ) Example: Creating a generator from a seed: g = tf.random.Generator.from_seed(1...
doc_18189
Applies element-wise, the function Softplus(x)=1β∗log⁡(1+exp⁡(β∗x))\text{Softplus}(x) = \frac{1}{\beta} * \log(1 + \exp(\beta * x)) . For numerical stability the implementation reverts to the linear function when input×β>thresholdinput \times \beta > threshold . See Softplus for more details.
doc_18190
A generic version of collections.Counter. New in version 3.5.4. New in version 3.6.1. Deprecated since version 3.9: collections.Counter now supports []. See PEP 585 and Generic Alias Type.
doc_18191
See Migration guide for more details. tf.compat.v1.keras.callbacks.CSVLogger tf.keras.callbacks.CSVLogger( filename, separator=',', append=False ) Supports all values that can be represented as a string, including 1D iterables such as np.ndarray. Example: csv_logger = CSVLogger('training.log') model.fit(X_train,...
doc_18192
tf.compat.v1.local_variables( scope=None ) Local variables - per process variables, usually not saved/restored to checkpoint and used for temporary or intermediate values. For example, they can be used as counters for metrics computation or number of epochs this machine has read data. The tf.contrib.framework.loca...
doc_18193
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesUpdateEnsembleV2 tf.raw_ops.BoostedTreesUpdateEnsembleV2( tree_ensemble_handle, feature_ids, dimension_ids, node_ids, gains, thresholds, left_node_contribs, right_node_contribs, split_types, max_depth, learning_rate, pruning_mode, logi...
doc_18194
Set the filename of the fontfile to use. In this case, all other properties will be ignored.
doc_18195
operator.__lshift__(a, b) Return a shifted left by b.
doc_18196
tf.compat.v1.train.noisy_linear_cosine_decay( learning_rate, global_step, decay_steps, initial_variance=1.0, variance_decay=0.55, num_periods=0.5, alpha=0.0, beta=0.001, name=None ) Note that linear cosine decay is more aggressive than cosine decay and larger initial learning rates can typically be used. When ...
doc_18197
Set the state of the decoder to state. state must be a decoder state returned by getstate().
doc_18198
Read from the store, close it if we opened it. Retrieve pandas object stored in file, optionally based on where criteria. Warning Pandas uses PyTables for reading and writing HDF5 files, which allows serializing object-dtype data with pickle when using the “fixed” format. Loading pickled data received from untrusted...
doc_18199
class sklearn.model_selection.LeavePGroupsOut(n_groups) [source] Leave P Group(s) Out cross-validator Provides train/test indices to split data according to a third-party provided group. This group information can be used to encode arbitrary domain specific stratifications of the samples as integers. For instance the...