_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_29000
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_29001
Returns the address of the memory buffer as integer. obj must be an instance of a ctypes type. Raises an auditing event ctypes.addressof with argument obj.
doc_29002
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called.
doc_29003
Load a plist from a bytes object. See load() for an explanation of the keyword arguments. New in version 3.4.
doc_29004
Create a qat module from a float module or qparams_dict Args: mod a float module, either produced by torch.quantization utilities or directly from user
doc_29005
DateOffset subclass representing custom business days excluding holidays. Parameters n:int, default 1 normalize:bool, default False Normalize start/end dates to midnight before generating date range. weekmask:str, Default ‘Mon Tue Wed Thu Fri’ Weekmask of valid business days, passed to numpy.busdaycalenda...
doc_29006
Return the string width (including kerning) and string height as a (w, h) tuple.
doc_29007
Alias for set_linestyle.
doc_29008
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
doc_29009
See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.RandomWidth tf.keras.layers.experimental.preprocessing.RandomWidth( factor, interpolation='bilinear', seed=None, name=None, **kwargs ) Adjusts the width of a batch of images by a random factor. The input should be a 4-D te...
doc_29010
This implementation polls process file descriptors (pidfds) to await child process termination. In some respects, PidfdChildWatcher is a “Goldilocks” child watcher implementation. It doesn’t require signals or threads, doesn’t interfere with any processes launched outside the event loop, and scales linearly with the nu...
doc_29011
This exception collects exceptions that are raised during a multi-file operation. For copytree(), the exception argument is a list of 3-tuples (srcname, dstname, exception).
doc_29012
Returns element-wise base array raised to power from second array. This is the masked array version of numpy.power. For details see numpy.power. See also numpy.power Notes The out argument to numpy.power is not supported, third has to be None.
doc_29013
Return the picking behavior of the artist. The possible values are described in set_picker. See also set_picker, pickable, pick
doc_29014
See torch.greater_equal().
doc_29015
Set the bottom coord of the rectangle. Parameters yfloat
doc_29016
Return value>>self.
doc_29017
Do a plural-forms lookup of a message id. singular is used as the message id for purposes of lookup in the catalog, while n is used to determine which plural form to use. If the message id for context is not found in the catalog, and a fallback is specified, the request is forwarded to the fallback’s npgettext() method...
doc_29018
This method returns a list of column names. Immediately after a query, it is the first member of each tuple in Cursor.description.
doc_29019
Exit "raster" mode. All of the drawing that was done since the last start_rasterizing call will be copied to the vector backend by calling draw_image.
doc_29020
Return a logical OR of all video attributes supported by the terminal. This information is useful when a curses program needs complete control over the appearance of the screen.
doc_29021
Apply 2D matrix transform. Parameters coords(N, 2) array x, y coordinates to transform matrix(3, 3) array Homogeneous transformation matrix. Returns coords(N, 2) array Transformed coordinates.
doc_29022
Row and column indices of the i’th bicluster. Only works if rows_ and columns_ attributes exist. Parameters iint The index of the cluster. Returns row_indndarray, dtype=np.intp Indices of rows in the dataset that belong to the bicluster. col_indndarray, dtype=np.intp Indices of columns in the datase...
doc_29023
Gathers picklable objects from the whole group in a single process. Similar to gather(), but Python objects can be passed in. Note that the object must be picklable in order to be gathered. Parameters obj (Any) – Input object. Must be picklable. object_gather_list (list[Any]) – Output list. On the dst rank, it s...
doc_29024
Send AUTHINFO commands with the user name and password. If user and password are None and usenetrc is true, credentials from ~/.netrc will be used if possible. Unless intentionally delayed, login is normally performed during the NNTP object initialization and separately calling this function is unnecessary. To force au...
doc_29025
Create a CLI runner for testing CLI commands. See Testing CLI Commands. Returns an instance of test_cli_runner_class, by default FlaskCliRunner. The Flask app object is passed as the first argument. Changelog New in version 1.0. Parameters kwargs (Any) – Return type FlaskCliRunner
doc_29026
Spec: https://cyber.harvard.edu/rss/rss.html
doc_29027
Bases: matplotlib.ticker.Formatter Probability formatter (using Math text). Parameters use_overlinebool, default: False If x > 1/2, with x = 1-v, indicate if x should be displayed as $overline{v}$. The default is to display $1-v$. one_halfstr, default: r"frac{1}{2}" The string used to represent 1/2. minor...
doc_29028
Return an instance of a GraphicsContextBase.
doc_29029
Return local gradient of an image (i.e. local maximum - local minimum). Parameters image([P,] M, N) ndarray (uint8, uint16) Input image. selemndarray The neighborhood expressed as an ndarray of 1’s and 0’s. out([P,] M, N) array (same dtype as input) If None, a new array is allocated. maskndarray (inte...
doc_29030
Returns the mirrored property assigned to the character chr as integer. Returns 1 if the character has been identified as a “mirrored” character in bidirectional text, 0 otherwise.
doc_29031
-m but not when it is imported: if __name__ == "__main__": # execute only if run as a script main() For a package, the same effect can be achieved by including a __main__.py module, the contents of which will be executed when the module is run with -m.
doc_29032
Assert that the mock was called at least once. >>> mock = Mock() >>> mock.method() <Mock name='mock.method()' id='...'> >>> mock.method.assert_called() New in version 3.6.
doc_29033
moves the sprite to the bottom layer move_to_back(sprite) -> None Moves the sprite to the bottom layer, moving it behind all other layers and adding one additional layer.
doc_29034
Sets the user’s password to the given raw string, taking care of the password hashing. Doesn’t save the User object. When the raw_password is None, the password will be set to an unusable password, as if set_unusable_password() were used.
doc_29035
Fills the input Tensor with the scalar value 0. Parameters tensor – an n-dimensional torch.Tensor Examples >>> w = torch.empty(3, 5) >>> nn.init.zeros_(w)
doc_29036
Alias for set_facecolor.
doc_29037
Enqueues the record on the queue using put_nowait(); you may want to override this if you want to use blocking behaviour, or a timeout, or a customized queue implementation.
doc_29038
See Migration guide for more details. tf.compat.v1.linalg.matrix_rank tf.linalg.matrix_rank( a, tol=None, validate_args=False, name=None ) Arguments a (Batch of) float-like matrix-shaped Tensor(s) which are to be pseudo-inverted. tol Threshold below which the singular value is counted as 'zero'. D...
doc_29039
Return the visibility.
doc_29040
Return bytes containing the entire contents of the buffer.
doc_29041
See Migration guide for more details. tf.compat.v1.distribute.has_strategy tf.distribute.has_strategy() assert not tf.distribute.has_strategy() with strategy.scope(): assert tf.distribute.has_strategy() Returns True if inside a with strategy.scope():.
doc_29042
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters Xarray-like of shape (n_samples,) Left argument of the returned kernel k(X, Y) Returns K_diagndarray of sha...
doc_29043
For each element in self, return a copy of the string with all occurrences of substring old replaced by new. See also char.replace
doc_29044
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_29045
When decompressing, the value of the last modification time field in the most recently read header may be read from this attribute, as an integer. The initial value before reading any headers is None. All gzip compressed streams are required to contain this timestamp field. Some programs, such as gunzip, make use of th...
doc_29046
Randomly zero out entire channels (a channel is a 3D feature map, e.g., the jj -th channel of the ii -th sample in the batched input is a 3D tensor input[i,j]\text{input}[i, j] ) of the input tensor). Each channel will be zeroed out independently on every forward call with probability p using samples from a Bernoulli...
doc_29047
Add a colorbar to a plot. Parameters mappable The matplotlib.cm.ScalarMappable (i.e., AxesImage, ContourSet, etc.) described by this colorbar. This argument is mandatory for the Figure.colorbar method but optional for the pyplot.colorbar function, which sets the default to the current image. Note that one can cre...
doc_29048
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_29049
Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parameters module (nn.Module) – module containing the tensor to prune name (str) – parameter name within module on which pruning will act. args – arguments passed o...
doc_29050
See Migration guide for more details. tf.compat.v1.raw_ops.Size tf.raw_ops.Size( input, out_type=tf.dtypes.int32, name=None ) This operation returns an integer representing the number of elements in input. For example: # 't' is [[[1, 1,, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]] size(t) ==> 12 Args input ...
doc_29051
The named tuple flags exposes the status of command line flags. The attributes are read only. attribute flag debug -d inspect -i interactive -i isolated -I optimize -O or -OO dont_write_bytecode -B no_user_site -s no_site -S ignore_environment -E verbose -v bytes_warning -b quiet -q hash_r...
doc_29052
Generate a pie plot. A pie plot is a proportional representation of the numerical data in a column. This function wraps matplotlib.pyplot.pie() for the specified column. If no column reference is passed and subplots=True a pie plot is drawn for each numerical column independently. Parameters y:int or label, optio...
doc_29053
Get the total number of days in the month that this period falls on. Returns int See also Period.daysinmonth Gets the number of days in the month. DatetimeIndex.daysinmonth Gets the number of days in the month. calendar.monthrange Returns a tuple containing weekday (0-6 ~ Mon-Sun) and number of days (28-...
doc_29054
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ...
doc_29055
tf.initializers.GlorotUniform, tf.initializers.glorot_uniform, tf.keras.initializers.glorot_uniform tf.keras.initializers.GlorotUniform( seed=None ) Also available via the shortcut function tf.keras.initializers.glorot_uniform. Draws samples from a uniform distribution within [-limit, limit], where limit = sqrt(...
doc_29056
Update the location of children if necessary and draw them to the given renderer.
doc_29057
Configures Django by: Loading the settings. Setting up logging. If set_prefix is True, setting the URL resolver script prefix to FORCE_SCRIPT_NAME if defined, or / otherwise. Initializing the application registry. This function is called automatically: When running an HTTP server via Django’s WSGI support. When in...
doc_29058
Makes a PUT request on the provided path and returns a Response object. Useful for testing RESTful interfaces. When data is provided, it is used as the request body, and a Content-Type header is set to content_type. The follow, secure and extra arguments act the same as for Client.get().
doc_29059
Called when a pan operation has started. Parameters x, yfloat The mouse coordinates in display coords. buttonMouseButton The pressed mouse button. Notes This is intended to be overridden by new projection types.
doc_29060
Set the alpha value used for blending - not supported on all backends. Parameters alphaarray-like or scalar or None All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
doc_29061
Optional. Either True or False. Default is False. Specifies whether all subdirectories of path should be included
doc_29062
Call transform on the estimator with the best found parameters. Only available if the underlying estimator supports transform and refit=True. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_29063
This is the default widget used by all GeoDjango form fields. template_name is gis/openlayers.html. OpenLayersWidget and OSMWidget use the openlayers.js file hosted on the cdnjs.cloudflare.com content-delivery network. You can subclass these widgets in order to specify your own version of the OpenLayers.js file in the ...
doc_29064
tf.image.stateless_random_flip_left_right( image, seed ) Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed settings (e.g. tf.random.set_seed). Example usage: image = np.array([[[1], [2]], [[3], [4]]]) seed = (2, 3) tf.image.statele...
doc_29065
For each element in self, return the highest index in the string where substring sub is found, such that sub is contained within [start, end]. See also char.rfind
doc_29066
The last colorbar associated with this ScalarMappable. May be None.
doc_29067
Returns whether PyTorch is built with MKL-DNN support.
doc_29068
Get the extents of the tick labels on either side of the axes.
doc_29069
Bases: matplotlib.offsetbox.OffsetBox A container to add a padding around an Artist. The PaddedBox contains a FancyBboxPatch that is used to visualize it when rendering. Parameters childArtist The contained Artist. padfloat The padding in points. This will be scaled with the renderer dpi. In contrast width ...
doc_29070
Call inverse_transform on the estimator with the best found params. Only available if the underlying estimator implements inverse_transform and refit=True. Parameters Xtindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_29071
See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingMomentumParameters tf.raw_ops.LoadTPUEmbeddingMomentumParameters( parameters, momenta, num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that loads optimization parameters into HBM for embedding. Must be p...
doc_29072
sklearn.datasets.fetch_openml(name: Optional[str] = None, *, version: Union[str, int] = 'active', data_id: Optional[int] = None, data_home: Optional[str] = None, target_column: Optional[Union[str, List]] = 'default-target', cache: bool = True, return_X_y: bool = False, as_frame: Union[str, bool] = 'auto') [source] Fe...
doc_29073
Return the value of the named header field. This is identical to __getitem__() except that optional failobj is returned if the named header is missing (failobj defaults to None).
doc_29074
Call self as a function.
doc_29075
class sklearn.multiclass.OneVsRestClassifier(estimator, *, n_jobs=None) [source] One-vs-the-rest (OvR) multiclass strategy. Also known as one-vs-all, this strategy consists in fitting one classifier per class. For each classifier, the class is fitted against all the other classes. In addition to its computational eff...
doc_29076
The day of the week with Monday=0, Sunday=6.
doc_29077
Returns a dict representation of QueryDict. For every (key, list) pair in QueryDict, dict will have (key, item), where item is one element of the list, using the same logic as QueryDict.__getitem__(): >>> q = QueryDict('a=1&a=3&a=5') >>> q.dict() {'a': '5'}
doc_29078
This class is parallel to BytesParser, but handles string input. Changed in version 3.3: Removed the strict argument. Added the policy keyword. Changed in version 3.6: _class defaults to the policy message_factory. parse(fp, headersonly=False) Read all the data from the text-mode file-like object fp, parse the ...
doc_29079
Alias for set_linestyle.
doc_29080
Yields ModuleInfo for all submodules on path, or, if path is None, all top-level modules on sys.path. path should be either None or a list of paths to look for modules in. prefix is a string to output on the front of every module name on output. Note Only works for a finder which defines an iter_modules() method. This...
doc_29081
Construct an IPv4 address. An AddressValueError is raised if address is not a valid IPv4 address. The following constitutes a valid IPv4 address: A string in decimal-dot notation, consisting of four decimal integers in the inclusive range 0–255, separated by dots (e.g. 192.168.0.1). Each integer represents an octet (b...
doc_29082
Run the pygame unit test suite run(*args, **kwds) -> tuple Positional arguments (optional): The names of tests to include. If omitted then all tests are run. Test names need not include the trailing '_test'. Keyword arguments: incomplete - fail incomplete tests (default False) nosubprocess - run all test suites in th...
doc_29083
Run the tests associated with this suite, collecting the result into the test result object passed as result. Note that unlike TestCase.run(), TestSuite.run() requires the result object to be passed in.
doc_29084
Enable a server to accept connections. If backlog is specified, it must be at least 0 (if it is lower, it is set to 0); it specifies the number of unaccepted connections that the system will allow before refusing new connections. If not specified, a default reasonable value is chosen. Changed in version 3.5: The backl...
doc_29085
The character width (WX).
doc_29086
Convert to float.
doc_29087
clip the area where to draw. Just pass None (default) to reset the clip set_clip(screen_rect=None) -> None
doc_29088
Creates a BRIN index. Set the autosummarize parameter to True to enable automatic summarization to be performed by autovacuum. The pages_per_range argument takes a positive integer. Changed in Django 3.2: Positional argument *expressions was added in order to support functional indexes.
doc_29089
Bases: mpl_toolkits.axes_grid1.axes_size._Base An instance whose size is a fraction of the ref_size. >>> s = Fraction(0.3, AxesX(ax)) get_size(renderer)[source]
doc_29090
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_29091
The object passed as the tzinfo argument to the time constructor, or None if none was passed.
doc_29092
Determine whether code is in tableC.4 (Non-character code points).
doc_29093
Returns the tensor as a (nested) list. For scalars, a standard Python number is returned, just like with item(). Tensors are automatically moved to the CPU first if necessary. This operation is not differentiable. Examples: >>> a = torch.randn(2, 2) >>> a.tolist() [[0.012766935862600803, 0.5415473580360413], [-0.08909...
doc_29094
Synchronize and close the persistent dict object. Operations on a closed shelf will fail with a ValueError.
doc_29095
Predict classes for X. The predicted class of an input sample is computed as the weighted mean prediction of the classifiers in the ensemble. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Sparse matrix can be CSC, CSR, COO, DOK, or LIL. COO, DOK, and LIL ar...
doc_29096
See Migration guide for more details. tf.compat.v1.type_spec_from_value tf.type_spec_from_value( value ) Examples: tf.type_spec_from_value(tf.constant([1, 2, 3])) TensorSpec(shape=(3,), dtype=tf.int32, name=None) tf.type_spec_from_value(np.array([4.0, 5.0], np.float64)) TensorSpec(shape=(2,), dtype=tf.float64, ...
doc_29097
Return the Transform instance used by this artist.
doc_29098
See Migration guide for more details. tf.compat.v1.autograph.experimental.Feature These conversion options are experimental. They are subject to change without notice and offer no guarantees. Example Usage optionals= tf.autograph.experimental.Feature.EQUALITY_OPERATORS @tf.function(experimental_autograph_options=optio...
doc_29099
A form mixin that works on ModelForms, rather than a standalone form. Since this is a subclass of SingleObjectMixin, instances of this mixin have access to the model and queryset attributes, describing the type of object that the ModelForm is manipulating. If you specify both the fields and form_class attributes, an Im...