_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_24300
Perform multiple patches in a single call. It takes the object to be patched (either as an object or a string to fetch the object by importing) and keyword arguments for the patches: with patch.multiple(settings, FIRST_PATCH='one', SECOND_PATCH='two'): ... Use DEFAULT as the value if you want patch.multiple() to c...
doc_24301
Alias for set_linestyle.
doc_24302
Applies a 3D convolution over an input signal composed of several input planes. In the simplest case, the output value of the layer with input size (N,Cin,D,H,W)(N, C_{in}, D, H, W) and output (N,Cout,Dout,Hout,Wout)(N, C_{out}, D_{out}, H_{out}, W_{out}) can be precisely described as: out(Ni,Coutj)=bias(Coutj)+∑k...
doc_24303
Convert an image to 16-bit signed integer format. Parameters imagendarray Input image. force_copybool, optional Force a copy of the data, irrespective of its current dtype. Returns outndarray of int16 Output image. Notes The values are scaled between -32768 and 32767. If the input data-type is p...
doc_24304
Parameters hlist of axes_size sizes for horizontal division
doc_24305
Return the current local date and time. If optional argument tz is None or not specified, this is like today(), but, if possible, supplies more precision than can be gotten from going through a time.time() timestamp (for example, this may be possible on platforms supplying the C gettimeofday() function). If tz is not N...
doc_24306
Return True if sources contains C++ files
doc_24307
A secret key that will be used for securely signing the session cookie and can be used for any other security related needs by extensions or your application. It should be a long random bytes or str. For example, copy the output of this to your config: $ python -c 'import os; print(os.urandom(16))' b'_5#y2L"F4Q8z\n\xec...
doc_24308
Returns the event type for the record. Override this if you want to specify your own types. This version does a mapping using the handler’s typemap attribute, which is set up in __init__() to a dictionary which contains mappings for DEBUG, INFO, WARNING, ERROR and CRITICAL. If you are using your own levels, you will ei...
doc_24309
Returns either True or False, depending on whether the user’s session cookie will expire when the user’s web browser is closed.
doc_24310
tkinter.messagebox.showerror(title=None, message=None, **options)
doc_24311
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or list of bools array a...
doc_24312
Return the glyph case size get_cache_size() -> long See pygame.freetype.init().
doc_24313
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array.
doc_24314
Generates a star shaped structuring element. Start has 8 vertices and is an overlap of square of size 2*a + 1 with its 45 degree rotated version. The slanted sides are 45 or 135 degrees to the horizontal axis. Parameters aint Parameter deciding the size of the star structural element. The side of the square arr...
doc_24315
Return the size, in bytes, of path. Raise OSError if the file does not exist or is inaccessible. Changed in version 3.6: Accepts a path-like object.
doc_24316
Pretend count lines have been changed, starting with line start. If changed is supplied, it specifies whether the affected lines are marked as having been changed (changed=True) or unchanged (changed=False).
doc_24317
This is the fixed number of times the underlying field will be used.
doc_24318
Unix V7 synonym for S_IWUSR.
doc_24319
True if the address is otherwise IETF reserved.
doc_24320
Resets the starting point in tracking maximum GPU memory managed by the caching allocator for a given device. See max_memory_cached() for details. Parameters device (torch.device or int, optional) – selected device. Returns statistic for the current device, given by current_device(), if device is None (default). ...
doc_24321
See Migration guide for more details. tf.compat.v1.raw_ops.ConjugateTranspose tf.raw_ops.ConjugateTranspose( x, perm, name=None ) The output y has the same rank as x. The shapes of x and y satisfy: y.shape[i] == x.shape[perm[i]] for i in [0, 1, ..., rank(x) - 1] y[i,j,k,...,s,t,u] == conj(x[perm[i], perm[j], per...
doc_24322
Repeat elements of an array. Refer to numpy.repeat for full documentation. See also numpy.repeat equivalent function
doc_24323
Return the pathname of the current directory on the server.
doc_24324
If distinct=True, Sum returns the sum of unique values. This is the SQL equivalent of SUM(DISTINCT <field>). The default value is False.
doc_24325
Replace a header. Replace the first header found in the message that matches _name, retaining header order and field name case of the original header. If no matching header is found, raise a KeyError.
doc_24326
Returns the logger used by multiprocessing. If necessary, a new one will be created. When first created the logger has level logging.NOTSET and no default handler. Messages sent to this logger will not by default propagate to the root logger. Note that on Windows child processes will only inherit the level of the paren...
doc_24327
Return the clipbox.
doc_24328
Add a set of hyperparameters to be compared in TensorBoard. Parameters hparam_dict (dict) – Each key-value pair in the dictionary is the name of the hyper parameter and it’s corresponding value. The type of the value can be one of bool, string, float, int, or None. metric_dict (dict) – Each key-value pair in the...
doc_24329
Returns a tensor filled with random integers generated uniformly between low (inclusive) and high (exclusive). The shape of the tensor is defined by the variable argument size. Note With the global dtype default (torch.float32), this function returns a tensor with dtype torch.int64. Parameters low (int, optional)...
doc_24330
Create a view of an existing torch.Tensor input with specified size, stride and storage_offset. Warning More than one element of a created tensor may refer to a single memory location. As a result, in-place operations (especially ones that are vectorized) may result in incorrect behavior. If you need to write to the t...
doc_24331
Select values at particular time of day (e.g., 9:30AM). Parameters time:datetime.time or str axis:{0 or ‘index’, 1 or ‘columns’}, default 0 Returns Series or DataFrame Raises TypeError If the index is not a DatetimeIndex See also between_time Select values between particular times of the day. ...
doc_24332
Returns True to activate the filtering in get_post_parameters() and get_traceback_frame_variables(). By default the filter is active if DEBUG is False. Note that sensitive request.META values are always filtered along with sensitive setting values, as described in the DEBUG documentation.
doc_24333
Refer to the corresponding method documentation in IPv4Address. New in version 3.9.
doc_24334
Append values to the end of an array. Parameters arrarray_like Values are appended to a copy of this array. valuesarray_like These values are appended to a copy of arr. It must be of the correct shape (the same shape as arr, excluding axis). If axis is not specified, values can be any shape and will be flat...
doc_24335
Return a k sized list of elements chosen from the population with replacement. If the population is empty, raises IndexError. If a weights sequence is specified, selections are made according to the relative weights. Alternatively, if a cum_weights sequence is given, the selections are made according to the cumulative ...
doc_24336
tf.experimental.numpy.broadcast_arrays( *args, **kwargs ) Unsupported arguments: subok. See the NumPy documentation for numpy.broadcast_arrays.
doc_24337
[Deprecated] Run the matplotlib test suite. Notes Deprecated since version 3.5. matplotlib.testing Helper functions for testing. matplotlib.testing.set_font_settings_for_testing()[source] matplotlib.testing.set_reproducibility_for_testing()[source] matplotlib.testing.setup()[source] matplotlib.tes...
doc_24338
Return a dictionary mapping module-level class names to class descriptors. If possible, descriptors for imported base classes are included. Parameter module is a string with the name of the module to read; it may be the name of a module within a package. If given, path is a sequence of directory paths prepended to sys....
doc_24339
The Driver class is used internally to wrap an OGR DataSource driver. driver_count Returns the number of OGR vector drivers currently registered.
doc_24340
Fit Kernel Ridge regression model Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training data. If kernel == “precomputed” this is instead a precomputed kernel matrix, of shape (n_samples, n_samples). yarray-like of shape (n_samples,) or (n_samples, n_targets) Target values sampl...
doc_24341
A namespace of a class. This class inherits SymbolTable. get_methods() Return a tuple containing the names of methods declared in the class.
doc_24342
Decorate a function as responder that accepts the request as the last argument. This works like the responder() decorator but the function is passed the request object as the last argument and the request object will be closed automatically: @Request.application def my_wsgi_app(request): return Response('Hello Worl...
doc_24343
Returns the current random seed of the current GPU. Warning This function eagerly initializes CUDA.
doc_24344
The input stream from which this shlex instance is reading characters.
doc_24345
Create a 3D filled contour plot. Parameters X, Y, Zarray-like Input data. See contourf for acceptable data shapes. zdir{'x', 'y', 'z'}, default: 'z' The direction to use. offsetfloat, optional If specified, plot a projection of the contour lines at this position in a plane normal to zdir. dataindexabl...
doc_24346
Temporary holder object for registering a blueprint with the application. An instance of this class is created by the make_setup_state() method and later passed to all register callback functions. Parameters blueprint (Blueprint) – app (Flask) – options (Any) – first_registration (bool) – Return type None...
doc_24347
Scalar method identical to the corresponding array attribute. Please see ndarray.squeeze.
doc_24348
Tuple of array dimensions. The shape property is usually used to get the current shape of an array, but may also be used to reshape the array in-place by assigning a tuple of array dimensions to it. As with numpy.reshape, one of the new shape dimensions can be -1, in which case its value is inferred from the size of ...
doc_24349
Returns a list of all objects tracked by the collector, excluding the list returned. If generation is not None, return only the objects tracked by the collector that are in that generation. Changed in version 3.8: New generation parameter. Raises an auditing event gc.get_objects with argument generation.
doc_24350
See Migration guide for more details. tf.compat.v1.raw_ops.MaxPoolGradGradWithArgmax tf.raw_ops.MaxPoolGradGradWithArgmax( input, grad, argmax, ksize, strides, padding, include_batch_in_index=False, name=None ) Args input A Tensor. Must be one of the following types: float32, float64, int32, uint8, ...
doc_24351
See Migration guide for more details. tf.compat.v1.raw_ops.EagerPyFunc tf.raw_ops.EagerPyFunc( input, token, Tout, is_async=False, name=None ) semantics of the input, output, and attributes are the same as those for PyFunc. Args input A list of Tensor objects. token A string. Tout A list of ...
doc_24352
See Migration guide for more details. tf.compat.v1.raw_ops.LookupTableExport tf.raw_ops.LookupTableExport( table_handle, Tkeys, Tvalues, name=None ) Args table_handle A Tensor of type mutable string. Handle to the table. Tkeys A tf.DType. Tvalues A tf.DType. name A name for the operati...
doc_24353
Start debugging with a Bdb instance from caller’s frame.
doc_24354
Returns float Always returns 1.
doc_24355
See torch.orgqr()
doc_24356
Bases: matplotlib.offsetbox.AnchoredOffsetbox An anchored container with a fixed size and fillable DrawingArea. Artists added to the drawing_area will have their coordinates interpreted as pixels. Any transformations set on the artists will be overridden. Parameters width, heightfloat width and height of the co...
doc_24357
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Keys are corresponding parameter and buffer names. Returns a dictionary containing a whole state of the module Return type dict Example: >>> module.state_dict().keys() ['bias...
doc_24358
See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_bool, tf.compat.v1.app.flags.DEFINE_boolean, tf.compat.v1.flags.DEFINE_boolean tf.compat.v1.flags.DEFINE_bool( name, default, help, flag_values=_flagvalues.FLAGS, module_name=None, **args ) Such a boolean flag does not take an argument. If a use...
doc_24359
Return the marker face color. See also set_markerfacecolor.
doc_24360
Set a.flat[n] = values[n] for all n in indices. Refer to numpy.put for full documentation. See also numpy.put equivalent function
doc_24361
Checks for an ASCII decimal digit, '0' through '9'. This is equivalent to c in string.digits.
doc_24362
Transform via the mapping y=tanh⁡(x)y = \tanh(x) . It is equivalent to ` ComposeTransform([AffineTransform(0., 2.), SigmoidTransform(), AffineTransform(-1., 2.)]) ` However this might not be numerically stable, thus it is recommended to use TanhTransform instead. Note that one should use cache_size=1 when it comes to...
doc_24363
Return the local sum of pixels. Only greyvalues between percentiles [p0, p1] are considered in the filter. Note that the sum may overflow depending on the data type of the input array. Parameters image2-D array (uint8, uint16) Input image. selem2-D array The neighborhood expressed as a 2-D array of 1’s and ...
doc_24364
Return key in self.
doc_24365
The standard error device. Initially, this is the active console screen buffer, CONOUT$.
doc_24366
Return a Series or DataFrame containing counts of unique rows. New in version 1.4.0. Parameters subset:list-like, optional Columns to use when counting unique combinations. normalize:bool, default False Return proportions rather than frequencies. sort:bool, default True Sort by frequencies. ascendin...
doc_24367
This exception is raised to skip a test. Usually you can use TestCase.skipTest() or one of the skipping decorators instead of raising this directly.
doc_24368
For a call object that represents multiple calls, call_list() returns a list of all the intermediate calls as well as the final call.
doc_24369
template_name: 'django/forms/widgets/multiple_hidden.html' Renders as: multiple <input type="hidden" ...> tags A widget that handles multiple hidden widgets for fields that have a list of values.
doc_24370
Returns the Django version, which should be correct for all built-in Django commands. User-supplied commands can override this method to return their own version.
doc_24371
class sklearn.inspection.PartialDependenceDisplay(pd_results, *, features, feature_names, target_idx, pdp_lim, deciles, kind='average', subsample=1000, random_state=None) [source] Partial Dependence Plot (PDP). This can also display individual partial dependencies which are often referred to as: Individual Condition ...
doc_24372
Transform labels back to original encoding. Parameters yndarray of shape (n_samples,) Target values. Returns yndarray of shape (n_samples,)
doc_24373
If False, follow RFC 5322, supporting non-ASCII characters in headers by encoding them as “encoded words”. If True, follow RFC 6532 and use utf-8 encoding for headers. Messages formatted in this way may be passed to SMTP servers that support the SMTPUTF8 extension (RFC 6531).
doc_24374
Unix V7 synonym for S_IRUSR.
doc_24375
Convert list of tuples to MultiIndex. Parameters tuples:list / sequence of tuple-likes Each tuple is the index of one row/column. sortorder:int or None Level of sortedness (must be lexicographically sorted by that level). names:list / sequence of str, optional Names for the levels in the index. Retur...
doc_24376
Return the sketch parameters for the artist. Returns tuple or None A 3-tuple with the following elements: scale: The amplitude of the wiggle perpendicular to the source line. length: The length of the wiggle along the line. randomness: The scale factor by which the length is shrunken or expanded. Returns Non...
doc_24377
Perform OPTICS clustering. Extracts an ordered list of points and reachability distances, and performs initial clustering using max_eps distance specified at OPTICS object instantiation. Parameters Xndarray of shape (n_samples, n_features), or (n_samples, n_samples) if metric=’precomputed’ A feature array, or a...
doc_24378
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters bbool
doc_24379
Bases: object cla()[source] colorbar(mappable, *, ticks=None, **kwargs)[source] toggle_label(b)[source]
doc_24380
The detect_encoding() function is used to detect the encoding that should be used to decode a Python source file. It requires one argument, readline, in the same way as the tokenize() generator. It will call readline a maximum of twice, and return the encoding used (as a string) and a list of any lines (not decoded fro...
doc_24381
See Migration guide for more details. tf.compat.v1.train.experimental.MixedPrecisionLossScaleOptimizer tf.compat.v1.mixed_precision.MixedPrecisionLossScaleOptimizer( opt, loss_scale ) Loss scaling is a process that multiplies the loss by a multiplier called the loss scale, and divides each gradient by the same m...
doc_24382
Convert Series to DataFrame. Parameters name:object, optional The passed name should substitute for the series name (if it has one). Returns DataFrame DataFrame representation of Series. Examples >>> s = pd.Series(["a", "b", "c"], ... name="vals") >>> s.to_frame() vals 0 a 1 b 2...
doc_24383
Close the TarFile. In write mode, two finishing zero blocks are appended to the archive.
doc_24384
Return the next member of the archive as a TarInfo object, when TarFile is opened for reading. Return None if there is no more available.
doc_24385
An ExtensionDtype for uint32 integer data. Changed in version 1.0.0: Now uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
doc_24386
Display all open figures. Parameters blockbool, optional Whether to wait for all figures to be closed before returning. If True block and run the GUI main loop until all figure windows are closed. If False ensure that all figure windows are displayed and return immediately. In this case, you are responsible for...
doc_24387
os.O_WRONLY os.O_RDWR os.O_APPEND os.O_CREAT os.O_EXCL os.O_TRUNC The above constants are available on Unix and Windows.
doc_24388
Pop the first item for a list on the dict. Afterwards the key is removed from the dict, so additional values are discarded: >>> d = MultiDict({"foo": [1, 2, 3]}) >>> d.pop("foo") 1 >>> "foo" in d False Parameters key – the key to pop. default – if provided the value to return if the key was not in the dictionary.
doc_24389
Returns the number of non-fixed hyperparameters of the kernel.
doc_24390
See Migration guide for more details. tf.compat.v1.raw_ops.ReaderRestoreStateV2 tf.raw_ops.ReaderRestoreStateV2( reader_handle, state, name=None ) Not all Readers support being restored, so this can produce an Unimplemented error. Args reader_handle A Tensor of type resource. Handle to a Reader. sta...
doc_24391
Platform dependent: the time of most recent metadata change on Unix, the time of creation on Windows, expressed in nanoseconds as an integer.
doc_24392
Instance of the class to check the one time link. This will default to default_token_generator, it’s an instance of django.contrib.auth.tokens.PasswordResetTokenGenerator.
doc_24393
Compute first of group values. Parameters numeric_only:bool, default False Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. min_count:int, default -1 The required number of valid values to perform the operation. If fewer than min_count non-NA val...
doc_24394
Generalized function class. Define a vectorized function which takes a nested sequence of objects or numpy arrays as inputs and returns a single numpy array or a tuple of numpy arrays. The vectorized function evaluates pyfunc over successive tuples of the input arrays like the python map function, except it uses the ...
doc_24395
Alias for get_color.
doc_24396
Saves session data for a provided session key, or deletes the session in case the data is empty.
doc_24397
frame The frame which surrounds the text and scroll bar widgets. vbar The scroll bar widget.
doc_24398
get all available fonts get_fonts() -> list of strings Returns a list of all the fonts available on the system. The names of the fonts will be set to lowercase with all spaces and punctuation removed. This works on most systems, but some will return an empty list if they cannot find fonts.
doc_24399
Create a subplot that can act as a host to parasitic axes. Parameters figurematplotlib.figure.Figure Figure to which the subplot will be added. Defaults to the current figure pyplot.gcf(). *args, **kwargs Will be passed on to the underlying Axes object creation.