_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_22300
Switch between fullscreen and windowed displays toggle_fullscreen() -> int Switches the display window between windowed and fullscreen modes. Display driver support is not great when using pygame 1, but with pygame 2 it is the most reliable method to switch to and from fullscreen. Supported display drivers in pygame ...
doc_22301
Returns a boolean array which is True where the string element in self starts with prefix, otherwise False. See also char.startswith
doc_22302
Add text to figure. Parameters x, yfloat The position to place the text. By default, this is in figure coordinates, floats in [0, 1]. The coordinate system can be changed using the transform keyword. sstr The text string. fontdictdict, optional A dictionary to override the default text properties. If no...
doc_22303
The name of the foreign key on the model. In most cases this will be dealt with automatically, but fk_name must be specified explicitly if there are more than one foreign key to the same parent model.
doc_22304
Sets response.content to the result obtained by SimpleTemplateResponse.rendered_content, runs all post-rendering callbacks, and returns the resulting response object. render() will only have an effect the first time it is called. On subsequent calls, it will return the result obtained from the first call.
doc_22305
Read only version of the headers from a WSGI environment. This provides the same interface as Headers and is constructed from a WSGI environment. From Werkzeug 0.3 onwards, the KeyError raised by this class is also a subclass of the BadRequest HTTP exception and will render a page for a 400 BAD REQUEST if caught in a c...
doc_22306
rotates the vector around the y-axis by the angle in degrees in place. rotate_y_ip(angle) -> None Rotates the vector counterclockwise around the y-axis by the given angle in degrees. The length of the vector is not changed.
doc_22307
MobileNetV2: Inverted Residuals and Linear Bottlenecks (CVPR 2018) Functions MobileNetV2(...): Instantiates the MobileNetV2 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images.
doc_22308
Returns a clone of self with given hyperparameters theta. Parameters thetandarray of shape (n_dims,) The hyperparameters
doc_22309
See Migration guide for more details. tf.compat.v1.raw_ops.SdcaOptimizer tf.raw_ops.SdcaOptimizer( sparse_example_indices, sparse_feature_indices, sparse_feature_values, dense_features, example_weights, example_labels, sparse_indices, sparse_weights, dense_weights, example_state_data, loss_type, l1, l2, n...
doc_22310
class sklearn.feature_selection.SelectorMixin [source] Transformer mixin that performs feature selection given a support mask This mixin provides a feature selector implementation with transform and inverse_transform functionality given an implementation of _get_support_mask. Methods fit_transform(X[, y]) Fit to da...
doc_22311
A clone of threading.Event.
doc_22312
Compute the decision function of X. Parameters X{array-like or sparse matrix} of shape (n_samples, n_features) The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix. Returns scorearray, shape = [n_samples, n_classes] or [n_samples...
doc_22313
Sets the default torch.Tensor type to floating point tensor type t. This type will also be used as default floating point type for type inference in torch.tensor(). The default floating point tensor type is initially torch.FloatTensor. Parameters t (type or string) – the floating point tensor type or its name Exa...
doc_22314
Set the position to use for z-sorting.
doc_22315
Returns the originating host of the request using information from the HTTP_X_FORWARDED_HOST (if USE_X_FORWARDED_HOST is enabled) and HTTP_HOST headers, in that order. If they don’t provide a value, the method uses a combination of SERVER_NAME and SERVER_PORT as detailed in PEP 3333. Example: "127.0.0.1:8000" Raises dj...
doc_22316
Calculate the ewm (exponential weighted moment) standard deviation. Parameters bias:bool, default False Use a standard estimation bias correction. *args For NumPy compatibility and will not have an effect on the result. **kwargs For NumPy compatibility and will not have an effect on the result. Returns ...
doc_22317
This is a subclass of POP3 that connects to the server over an SSL encrypted socket. If port is not specified, 995, the standard POP3-over-SSL port is used. timeout works as in the POP3 constructor. context is an optional ssl.SSLContext object which allows bundling SSL configuration options, certificates and private ke...
doc_22318
An import statement. names is a list of alias nodes. >>> print(ast.dump(ast.parse('import x,y,z'), indent=4)) Module( body=[ Import( names=[ alias(name='x'), alias(name='y'), alias(name='z')])], type_ignores=[])
doc_22319
Most of the time, the attributes of the object returned by parse_args() will be fully determined by inspecting the command-line arguments and the argument actions. set_defaults() allows some additional attributes that are determined without any inspection of the command line to be added: >>> parser = argparse.ArgumentP...
doc_22320
See Migration guide for more details. tf.compat.v1.raw_ops.CompareAndBitpack tf.raw_ops.CompareAndBitpack( input, threshold, name=None ) Each comparison returns a boolean true (if input_value > threshold) or and false otherwise. This operation is useful for Locality-Sensitive-Hashing (LSH) and other algorithms t...
doc_22321
Samples elements randomly. If without replacement, then sample from a shuffled dataset. If with replacement, then user can specify num_samples to draw. Parameters data_source (Dataset) – dataset to sample from replacement (bool) – samples are drawn on-demand with replacement if True, default=``False`` num_sampl...
doc_22322
Draw an RGBA image. Parameters gcGraphicsContextBase A graphics context with clipping information. xscalar The distance in physical units (i.e., dots or pixels) from the left hand side of the canvas. yscalar The distance in physical units (i.e., dots or pixels) from the bottom side of the canvas. im(N...
doc_22323
The unscaled height of the font in font units height -> int Read only. Gets the height of the font. This is the average value of all glyphs in the font.
doc_22324
Returns list CUDA architectures this library was compiled for.
doc_22325
Updates the virtual screen after changes in the panel stack. This does not call curses.doupdate(), so you’ll have to do this yourself.
doc_22326
Return the name of the font that best matches the font properties.
doc_22327
Factor Analysis (FA). A simple linear generative model with Gaussian latent variables. The observations are assumed to be caused by a linear transformation of lower dimensional latent factors and added Gaussian noise. Without loss of generality the factors are distributed according to a Gaussian with zero mean and un...
doc_22328
Alias for get_edgecolor.
doc_22329
Return Floating division of series and other, element-wise (binary operator rtruediv). Equivalent to other / series, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existin...
doc_22330
Return a copy. Returns new_seriesseries Copy of self.
doc_22331
Get Floating division of dataframe and other, element-wise (binary operator rtruediv). Equivalent to other / dataframe, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, truediv. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -...
doc_22332
Returns the name of the query parameter that will contain the URL the user should be redirected to after a successful login. If you set this to None, a query parameter won’t be added. Returns the redirect_field_name attribute by default.
doc_22333
sklearn.metrics.label_ranking_average_precision_score(y_true, y_score, *, sample_weight=None) [source] Compute ranking-based average precision. Label ranking average precision (LRAP) is the average over each ground truth label assigned to each sample, of the ratio of true vs. total labels with lower score. This metri...
doc_22334
sklearn.feature_extraction.image.reconstruct_from_patches_2d(patches, image_size) [source] Reconstruct the image from all of its patches. Patches are assumed to overlap and the image is constructed by filling in the patches from left to right, top to bottom, averaging the overlapping regions. Read more in the User Gu...
doc_22335
__getitem__(key) Return a representation of the message corresponding to key. If no such message exists, default is returned if the method was called as get() and a KeyError exception is raised if the method was called as __getitem__(). The message is represented as an instance of the appropriate format-specific Mess...
doc_22336
Extract a member from the archive to the current working directory; member must be its full name or a ZipInfo object. Its file information is extracted as accurately as possible. path specifies a different directory to extract to. member can be a filename or a ZipInfo object. pwd is the password used for encrypted file...
doc_22337
Draw the arc to the given renderer. Notes Ellipses are normally drawn using an approximation that uses eight cubic Bezier splines. The error of this approximation is 1.89818e-6, according to this unverified source: Lancaster, Don. Approximating a Circle or an Ellipse Using Four Bezier Cubic Splines. https://www.tinaj...
doc_22338
Validates whether the password is not a common password. This converts the password to lowercase (to do a case-insensitive comparison) and checks it against a list of 20,000 common password created by Royce Williams. The password_list_path can be set to the path of a custom file of common passwords. This file should co...
doc_22339
tf.compat.v1.keras.layers.DenseFeatures( feature_columns, trainable=True, name=None, partitioner=None, **kwargs ) Generally a single example in training data is described with FeatureColumns. At the first layer of the model, this column-oriented data should be converted to a single Tensor. This layer can be called...
doc_22340
Return the Transform instance used by this artist offset.
doc_22341
tf.image.decode_and_crop_jpeg Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_and_crop_jpeg, tf.compat.v1.io.decode_and_crop_jpeg tf.io.decode_and_crop_jpeg( contents, crop_window, channels=0, ratio=1, fancy_upscaling=True, try_recover_truncated=False, acceptable_f...
doc_22342
Return a list of existing figure labels.
doc_22343
Status code returned by server.
doc_22344
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_22345
Exactly like BytesParser, except that headersonly defaults to True. New in version 3.3.
doc_22346
set >= other Test whether every element in other is in the set.
doc_22347
See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.SimpleClusterResolver tf.distribute.cluster_resolver.SimpleClusterResolver( cluster_spec, master='', task_type=None, task_id=None, environment='', num_accelerators=None, rpc_layer=None ) Please see the base class for documentation...
doc_22348
Checks if an HTTP exception should be trapped or not. By default this will return False for all exceptions except for a bad request key error if TRAP_BAD_REQUEST_ERRORS is set to True. It also returns True if TRAP_HTTP_EXCEPTIONS is set to True. This is called for all HTTP exceptions raised by a view function. If it re...
doc_22349
Alias for field number 4
doc_22350
Return a relative filepath to path either from the current directory or from an optional start directory. This is a path computation: the filesystem is not accessed to confirm the existence or nature of path or start. On Windows, ValueError is raised when path and start are on different drives. start defaults to os.cur...
doc_22351
Set the colormap to 'cool'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
doc_22352
Union type; Union[X, Y] means either X or Y. To define a union, use e.g. Union[int, str]. Details: The arguments must be types and there must be at least one. Unions of unions are flattened, e.g.: Union[Union[int, str], float] == Union[int, str, float] Unions of a single argument vanish, e.g.: Union[int] == int #...
doc_22353
tf.experimental.numpy.log2( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.log2.
doc_22354
PI element factory. This factory function creates a special element that will be serialized as an XML processing instruction. target is a string containing the PI target. text is a string containing the PI contents, if given. Returns an element instance, representing a processing instruction. Note that XMLParser skips ...
doc_22355
If input is complex with all imaginary parts close to zero, return real parts. “Close to zero” is defined as tol * (machine epsilon of the type for a). Parameters aarray_like Input array. tolfloat Tolerance in machine epsilons for the complex part of the elements in the array. Returns outndarray If ...
doc_22356
See Migration guide for more details. tf.compat.v1.app.flags.EnumClassParser tf.compat.v1.flags.EnumClassParser( enum_class, case_sensitive=True ) Args enum_class class, the Enum class with all possible flag values. case_sensitive bool, whether or not the enum is to be case-sensitive. If False, al...
doc_22357
Locale category for the character type functions. Depending on the settings of this category, the functions of module string dealing with case change their behaviour.
doc_22358
The Tk class is instantiated without arguments. This creates a toplevel widget of Tk which usually is the main window of an application. Each instance has its own associated Tcl interpreter.
doc_22359
from xml.sax import make_parser from xml.sax.handler import feature_external_ges parser = make_parser() parser.setFeature(feature_external_ges, True) parse(filename, parser=parser) Example: from xml.dom import pulldom doc = pulldom.parse('sales_items.xml') for event, node in doc: if event == pulldom.START_ELEME...
doc_22360
Check if a module has parameters that are not initialized
doc_22361
stop playback on a Channel stop() -> None Stop sound playback on a channel. After playback is stopped the channel becomes available for new Sounds to play on it.
doc_22362
Raise an auditing event and trigger any active auditing hooks. event is a string identifying the event, and args may contain optional arguments with more information about the event. The number and types of arguments for a given event are considered a public and stable API and should not be modified between releases. F...
doc_22363
Apply dimensionality reduction to X. X is projected on the first principal components previously extracted from a training set, using minibatches of size batch_size if X is sparse. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) New data, where n_samples is the number of samples and n_f...
doc_22364
Remove modules except for oldmodules and encodings in order to preserve internal cache.
doc_22365
Return the visibility.
doc_22366
Return the value of the named attribute of object. name must be a string. If the string is the name of one of the object’s attributes, the result is the value of that attribute. For example, getattr(x, 'foobar') is equivalent to x.foobar. If the named attribute does not exist, default is returned if provided, otherwise...
doc_22367
Plot Series or DataFrame as lines. This function is useful to plot lines using DataFrame’s values as coordinates. Parameters x:label or position, optional Allows plotting of one column versus another. If not specified, the index of the DataFrame is used. y:label or position, optional Allows plotting of one ...
doc_22368
Token value for "]".
doc_22369
Custom warning to capture convergence problems Changed in version 0.18: Moved from sklearn.utils. Attributes args Methods with_traceback Exception.with_traceback(tb) – set self.__traceback__ to tb and return self. with_traceback() Exception.with_traceback(tb) – set self.__traceback__ to tb and return ...
doc_22370
Returns a warped version of this raster. The warping parameters can be specified through the ds_input argument. The use of ds_input is analogous to the corresponding argument of the class constructor. It is a dictionary with the characteristics of the target raster. Allowed dictionary key values are width, height, SRID...
doc_22371
A version of str.format() for when format_string, args, and/or kwargs contain lazy objects. The first argument is the string to be formatted. For example: from django.utils.text import format_lazy from django.utils.translation import pgettext_lazy urlpatterns = [ path(format_lazy('{person}/<int:pk>/', person=pgett...
doc_22372
Optional. A short, informal identifier for the user such as their first name. If implemented, this replaces the username in the greeting to the user in the header of django.contrib.admin.
doc_22373
convert a mapped integer color value into a Color unmap_rgb(mapped_int) -> Color Convert an mapped integer color into the RGB color components for this Surface. Mapped color values are not often used inside pygame, but can be passed to most functions that require a Surface and a color. See the Surface object document...
doc_22374
turtle.width(width=None) Parameters width – a positive number Set the line thickness to width or return it. If resizemode is set to “auto” and turtleshape is a polygon, that polygon is drawn with the same line thickness. If no argument is given, the current pensize is returned. >>> turtle.pensize() 1 >>> turtle.p...
doc_22375
Add an Artist to the figure. Usually artists are added to Axes objects using Axes.add_artist; this method can be used in the rare cases where one needs to add artists directly to the figure instead. Parameters artistArtist The artist to add to the figure. If the added artist has no transform previously set, its...
doc_22376
See Migration guide for more details. tf.compat.v1.bitwise.bitwise_and tf.bitwise.bitwise_and( x, y, name=None ) The result will have those bits set, that are set in both x and y. The computation is performed on the underlying representations of x and y. For example: import tensorflow as tf from tensorflow.pytho...
doc_22377
Asserts that the response returned a status_code redirect status, redirected to expected_url (including any GET data), and that the final page was received with target_status_code. If your request used the follow argument, the expected_url and target_status_code will be the url and status code for the final point of th...
doc_22378
Set the floating-point error callback function or log object. There are two ways to capture floating-point error messages. The first is to set the error-handler to ‘call’, using seterr. Then, set the function to call using this function. The second is to set the error-handler to ‘log’, using seterr. Floating-point er...
doc_22379
Bases: object Base class for the navigation cursor, version 2. Backends must implement a canvas that handles connections for 'button_press_event' and 'button_release_event'. See FigureCanvasBase.mpl_connect() for more information. They must also define save_figure() save the current figure draw_rubberband() (opti...
doc_22380
[Deprecated] Return a dict of subplot parameters to adjust spacing between subplots or None if resulting axes would have zero height or width. Note that this function ignores geometry information of subplot itself, but uses what is given by the nrows_ncols and num1num2_list parameters. Also, the results could be inco...
doc_22381
New in version 3.6.
doc_22382
Resets the pack buffer to the empty string.
doc_22383
alias of pandas._libs.tslibs.offsets.CustomBusinessMonthEnd
doc_22384
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_22385
Return the URL given in the constructor. Changed in version 3.4. Returns Request.full_url
doc_22386
See Migration guide for more details. tf.compat.v1.raw_ops.WrapDatasetVariant tf.raw_ops.WrapDatasetVariant( input_handle, name=None ) Args input_handle A Tensor of type variant. name A name for the operation (optional). Returns A Tensor of type variant.
doc_22387
Create a pseudocolor plot with a non-regular rectangular grid. Call signature: pcolormesh([X, Y,] C, **kwargs) X and Y can be used to specify the corners of the quadrilaterals. Hint pcolormesh is similar to pcolor. It is much faster and preferred in most cases. For a detailed discussion on the differences see Diffe...
doc_22388
Connect to a remote socket at address. (The format of address depends on the address family — see above.) If the connection is interrupted by a signal, the method waits until the connection completes, or raise a socket.timeout on timeout, if the signal handler doesn’t raise an exception and the socket is blocking or ha...
doc_22389
tf.estimator.DNNLinearCombinedClassifier( model_dir=None, linear_feature_columns=None, linear_optimizer='Ftrl', dnn_feature_columns=None, dnn_optimizer='Adagrad', dnn_hidden_units=None, dnn_activation_fn=tf.nn.relu, dnn_dropout=None, n_classes=2, weight_column=None, label_vocabulary=None, config=None, ...
doc_22390
Bases: object Manages the Comm connection between IPython and the browser (client). Comms are 2 way, with the CommSocket being able to publish a message via the send_json method, and handle a message with on_message. On the JS side figure.send_message and figure.ws.onmessage do the sending and receiving respectively....
doc_22391
Evaluate a 2-D Legendre series on the Cartesian product of x and y. This function returns the values: \[p(a,b) = \sum_{i,j} c_{i,j} * L_i(a) * L_j(b)\] where the points (a, b) consist of all pairs formed by taking a from x and b from y. The resulting points form a grid with x in the first dimension and y in the seco...
doc_22392
Fit the hierarchical clustering from features, or distance matrix. Parameters Xarray-like, shape (n_samples, n_features) or (n_samples, n_samples) Training instances to cluster, or distances between instances if affinity='precomputed'. yIgnored Not used, present here for API consistency by convention. Re...
doc_22393
Draw one histogram of the DataFrame’s columns. A histogram is a representation of the distribution of data. This function groups the values of all given Series in the DataFrame into bins and draws all bins in one matplotlib.axes.Axes. This is useful when the DataFrame’s Series are in a similar scale. Parameters b...
doc_22394
The integer index of the last matched capturing group, or None if no group was matched at all. For example, the expressions (a)b, ((a)(b)), and ((ab)) will have lastindex == 1 if applied to the string 'ab', while the expression (a)(b) will have lastindex == 2, if applied to the same string.
doc_22395
Return True if the current context references a directory.
doc_22396
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_22397
Return the decision path in the forest. New in version 0.18. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, its dtype will be converted to dtype=np.float32. If a sparse matrix is provided, it will be converted into a sparse csr_matrix. Returns ind...
doc_22398
Return a list of the names of all folders.
doc_22399
Gray scale and rotation invariant LBP (Local Binary Patterns). LBP is an invariant descriptor that can be used for texture classification. Parameters image(N, M) array Graylevel image. Pint Number of circularly symmetric neighbour set points (quantization of the angular space). Rfloat Radius of circle (...