_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_8200
Sets the callable application as the WSGI application that will receive requests.
doc_8201
sklearn.inspection.plot_partial_dependence(estimator, X, features, *, feature_names=None, target=None, response_method='auto', n_cols=3, grid_resolution=100, percentiles=0.05, 0.95, method='auto', n_jobs=None, verbose=0, line_kw=None, contour_kw=None, ax=None, kind='average', subsample=1000, random_state=None) [source]...
doc_8202
Writes the element tree to a file, as XML. file is a file name, or a file object opened for writing. encoding 1 is the output encoding (default is US-ASCII). xml_declaration controls if an XML declaration should be added to the file. Use False for never, True for always, None for only if not US-ASCII or UTF-8 or Unicod...
doc_8203
Moves all model parameters and buffers to the CPU. Returns self Return type Module
doc_8204
tf.compat.v1.gfile.Exists( filename ) Args filename string, a path Returns True if the path exists, whether it's a file or a directory. False if the path does not exist and there are no filesystem errors. Raises errors.OpError Propagates any errors reported by the FileSystem API.
doc_8205
Functions that operate element by element on whole arrays. To see the documentation for a specific ufunc, use info. For example, np.info(np.sin). Because ufuncs are written in C (for speed) and linked into Python with NumPy’s ufunc facility, Python’s help() function finds this page whenever help() is called on a ufun...
doc_8206
Remove and return an item from the queue.
doc_8207
Transform the points by the projection matrix
doc_8208
Block view of the input n-dimensional array (using re-striding). Blocks are non-overlapping views of the input array. Parameters arr_inndarray N-d input array. block_shapetuple The shape of the block. Each dimension must divide evenly into the corresponding dimensions of arr_in. Returns arr_outndarray...
doc_8209
Bases: matplotlib.transforms.Transform Parameters shorthand_namestr A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when DEBUG=True. has_inverse=True True if this transform has a corresponding inverse transform. ...
doc_8210
Initialize self. See help(type(self)) for accurate signature.
doc_8211
Return a string representing the “From ” line that marks the start of the message in an mbox mailbox. The leading “From ” and the trailing newline are excluded.
doc_8212
tf.nn.RNNCellDropoutWrapper( *args, **kwargs ) Args cell an RNNCell, a projection to output_size is added to it. input_keep_prob unit Tensor or float between 0 and 1, input keep probability; if it is constant and 1, no input dropout will be added. output_keep_prob unit Tensor or float between ...
doc_8213
Default widget: TextInput Empty value: None Normalizes to: A Python timedelta. Validates that the given value is a string which can be converted into a timedelta. The value must be between datetime.timedelta.min and datetime.timedelta.max. Error message keys: required, invalid, overflow. Accepts any format understo...
doc_8214
Registers a backward hook on the module. This function is deprecated in favor of nn.Module.register_full_backward_hook() and the behavior of this function will change in future versions. Returns a handle that can be used to remove the added hook by calling handle.remove() Return type torch.utils.hooks.RemovableHand...
doc_8215
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
doc_8216
The appropriate version number: 4 for IPv4, 6 for IPv6.
doc_8217
operator.__floordiv__(a, b) Return a // b.
doc_8218
sys.abiflags On POSIX systems where Python was built with the standard configure script, this contains the ABI flags as specified by PEP 3149. Changed in version 3.8: Default flags became an empty string (m flag for pymalloc has been removed). New in version 3.2. sys.addaudithook(hook) Append the callable h...
doc_8219
Perform ceil operation on the data to the specified freq. Parameters freq:str or Offset The frequency level to ceil the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possible freq values. ambiguous:‘infer’, bool-ndarray, ‘NaT’, default ‘raise’ ...
doc_8220
Return the first n rows. This function returns the first n rows for the object based on position. It is useful for quickly testing if your object has the right type of data in it. For negative values of n, this function returns all rows except the last n rows, equivalent to df[:-n]. Parameters n:int, default 5 ...
doc_8221
Alias for set_linewidth.
doc_8222
Get the default value for a namespace attribute, as set by either add_argument() or by set_defaults(): >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--foo', default='badger') >>> parser.get_default('foo') 'badger'
doc_8223
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_8224
See Migration guide for more details. tf.compat.v1.raw_ops.SparseDenseCwiseMul tf.raw_ops.SparseDenseCwiseMul( sp_indices, sp_values, sp_shape, dense, name=None ) The output locations corresponding to the implicitly zero elements in the sparse tensor will be zero (i.e., will not take up storage space), regardles...
doc_8225
Like find, but raises ValueError when the substring is not found. Calls str.index element-wise. Parameters aarray_like of str or unicode substr or unicode start, endint, optional Returns outndarray Output array of ints. Returns -1 if sub is not found. See also find, str.find
doc_8226
The value of the cookie.
doc_8227
class sklearn.covariance.GraphicalLassoCV(*, alphas=4, n_refinements=4, cv=None, tol=0.0001, enet_tol=0.0001, max_iter=100, mode='cd', n_jobs=None, verbose=False, assume_centered=False) [source] Sparse inverse covariance w/ cross-validated choice of the l1 penalty. See glossary entry for cross-validation estimator. R...
doc_8228
Alias for get_linestyle.
doc_8229
Cause requests to go through a proxy. If proxies is given, it must be a dictionary mapping protocol names to URLs of proxies. The default is to read the list of proxies from the environment variables <protocol>_proxy. If no proxy environment variables are set, then in a Windows environment proxy settings are obtained f...
doc_8230
Return an iterable of the ParameterDict keys.
doc_8231
Run a Python subprocess with the given arguments. kw is extra keyword args to pass to subprocess.Popen(). Returns a subprocess.Popen object.
doc_8232
Gradient Boosting for regression. GB builds an additive model in a forward stage-wise fashion; it allows for the optimization of arbitrary differentiable loss functions. In each stage a regression tree is fit on the negative gradient of the given loss function. Read more in the User Guide. Parameters loss{‘ls’, ‘...
doc_8233
A legacy method for loading a module. If the module cannot be loaded, ImportError is raised, otherwise the loaded module is returned. If the requested module already exists in sys.modules, that module should be used and reloaded. Otherwise the loader should create a new module and insert it into sys.modules before any ...
doc_8234
In addition to methods provided by the django.contrib.syndication.views.Feed base class, GeoDjango’s Feed class provides the following overrides. Note that these overrides may be done in multiple ways: from django.contrib.gis.feeds import Feed class MyFeed(Feed): # First, as a class attribute. geometry = ... ...
doc_8235
Returns a field of the given array as a certain type. A field is a view of the array data with a given data-type. The values in the view are determined by the given type and the offset into the current array in bytes. The offset needs to be such that the view dtype fits in the array dtype; for example an array of dty...
doc_8236
Determine whether code is in tableD.2 (Characters with bidirectional property “L”).
doc_8237
Context-manager that disabled gradient calculation. Disabling gradient calculation is useful for inference, when you are sure that you will not call Tensor.backward(). It will reduce memory consumption for computations that would otherwise have requires_grad=True. In this mode, the result of every computation will ha...
doc_8238
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_8239
Scalar method identical to the corresponding array attribute. Please see ndarray.getfield.
doc_8240
Save the data loaded into the Stats object to a file named filename. The file is created if it does not exist, and is overwritten if it already exists. This is equivalent to the method of the same name on the profile.Profile and cProfile.Profile classes.
doc_8241
True if this transform is separable in the x- and y- dimensions.
doc_8242
Return the snap setting. See set_snap for details.
doc_8243
Token value for "%".
doc_8244
Return first n rows of each group. Similar to .apply(lambda x: x.head(n)), but it returns a subset of rows from the original DataFrame with original index and order preserved (as_index flag is ignored). Parameters n:int If positive: number of entries to include from start of each group. If negative: number of e...
doc_8245
Convert to a string, using engineering notation if an exponent is needed. Engineering notation has an exponent which is a multiple of 3. This can leave up to 3 digits to the left of the decimal place and may require the addition of either one or two trailing zeros. For example, this converts Decimal('123E+1') to Decima...
doc_8246
Returns the maximum value of all elements in the input tensor. Warning This function produces deterministic (sub)gradients unlike max(dim=0) Parameters input (Tensor) – the input tensor. Example: >>> a = torch.randn(1, 3) >>> a tensor([[ 0.6763, 0.7445, -2.2369]]) >>> torch.max(a) tensor(0.7445) torch.max(inp...
doc_8247
Return a Path for the primary part of the marker. For unfilled markers this is the whole marker, for filled markers, this is the area to be drawn with markerfacecolor.
doc_8248
Return number of non-NA/null observations in the Series. Parameters level:int or level name, default None If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing into a smaller Series. Returns int or Series (if level specified) Number of non-null values in the Series. S...
doc_8249
Given a context and a command name, this returns a Command object if it exists or returns None.
doc_8250
Build fontspec preamble from rc.
doc_8251
Files and subdirectories in both a and b.
doc_8252
Set the artist transform. Parameters tTransform
doc_8253
name = models.CharField(max_length=30, db_index=True, db_tablespace="indexes") data = models.CharField(max_length=255, db_index=True) shortcut = models.CharField(max_length=7) edges = models.ManyToManyField(to="self", db_tablespace="indexes") class Meta: db_tablespace = "tables" ind...
doc_8254
Read-only access to the unique name of the shared memory block.
doc_8255
Define the picking behavior of the artist. Parameters pickerNone or bool or float or callable This can be one of the following: None: Picking is disabled for this artist (default). A boolean: If True then picking will be enabled and the artist will fire a pick event if the mouse event is over the artist. A fl...
doc_8256
Return the name of the encoding used to convert between Unicode filenames and bytes filenames. For best compatibility, str should be used for filenames in all cases, although representing filenames as bytes is also supported. Functions accepting or returning filenames should support either str or bytes and internally c...
doc_8257
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_8258
Bases: matplotlib.tri.trirefine.TriRefiner Uniform mesh refinement by recursive subdivisions. Parameters triangulationTriangulation The encapsulated triangulation (to be refined) refine_field(z, triinterpolator=None, subdiv=3)[source] Refine a field defined on the encapsulated triangulation. Parameters...
doc_8259
Gets or sets the I1I2I3 representation of the Color. i1i2i3 -> tuple The I1I2I3 representation of the Color. The I1I2I3 components are in the ranges I1 = [0, 1], I2 = [-0.5, 0.5], I3 = [-0.5, 0.5]. Note that this will not return the absolutely exact I1I2I3 values for the set RGB values in all cases. Due to the RGB ma...
doc_8260
The days of the period.
doc_8261
Make plots of Series or DataFrame. Uses the backend specified by the option plotting.backend. By default, matplotlib is used. Parameters data:Series or DataFrame The object for which the method is called. x:label or position, default None Only used if data is a DataFrame. y:label, position or list of labe...
doc_8262
Return the alpha value used for blending - not supported on all backends.
doc_8263
In-place version of true_divide_()
doc_8264
Returns an opened, file-like object for binary reading of the resource. If the resource cannot be found, FileNotFoundError is raised.
doc_8265
tf.compat.v1.nn.weighted_moments( x, axes, frequency_weights, name=None, keep_dims=None, keepdims=None ) Args x A tensor. axes 1-d tensor of int32 values; these are the axes along which to compute mean and variance. frequency_weights A tensor of positive weights which can be broadcast with x. ...
doc_8266
Normalize value data in the [vmin, vmax] interval into the [0.0, 1.0] interval and return it. Parameters value Data to normalize. clipbool If None, defaults to self.clip (which defaults to False). Notes If not already initialized, self.vmin and self.vmax are initialized using self.autoscale_None(value).
doc_8267
alias of matplotlib.backends.backend_nbagg.FigureCanvasNbAgg
doc_8268
Make a blocking RPC call to run function func on worker to. RPC messages are sent and received in parallel to execution of Python code. This method is thread-safe. Parameters to (str or WorkerInfo or int) – name/rank/WorkerInfo of the destination worker. func (callable) – a callable function, such as Python call...
doc_8269
A context manager to temporarily set the training mode of ‘model’ to ‘mode’, resetting it when we exit the with-block. A no-op if mode is None. In version 1.6 changed to this from set_training
doc_8270
The regular expression object whose match() or search() method produced this match instance.
doc_8271
Bases: object 4-panel imshow (RGB, R, G, B). Layout: RGB R G B Subclasses can override the _defaultAxesClass attribute. Attributes RGB_defaultAxesClass The axes object for the three-channel imshow. R_defaultAxesClass The axes object for the red channel imshow. G_defaultAxesClass The axes object ...
doc_8272
Applies local response normalization over an input signal composed of several input planes, where channels occupy the second dimension. Applies normalization across channels. See LocalResponseNorm for details.
doc_8273
Is called whenever the parser encounters a new namespace declaration, before the start() callback for the opening element that defines it. prefix is '' for the default namespace and the declared namespace prefix name otherwise. uri is the namespace URI. New in version 3.8.
doc_8274
Draw samples from a chi-square distribution. When df independent random variables, each with standard normal distributions (mean 0, variance 1), are squared and summed, the resulting distribution is chi-square (see Notes). This distribution is often used in hypothesis testing. Parameters dffloat or array_like of ...
doc_8275
Perform classification on an array of test vectors X. Parameters Xarray-like of shape (n_samples, n_features) Returns Cndarray of shape (n_samples,) Predicted target values for X
doc_8276
Parameters new_scale (float) – Value to use as the new scale growth factor.
doc_8277
Tests if each element of input is positive infinity or not. Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example:: >>> a = torch.tensor([-float('inf'), float('inf'), 1.2]) >>> torch.isposinf(a) tensor([False, True, False])
doc_8278
See Migration guide for more details. tf.compat.v1.keras.wrappers.scikit_learn.KerasRegressor tf.keras.wrappers.scikit_learn.KerasRegressor( build_fn=None, **sk_params ) Methods check_params View source check_params( params ) Checks for user typos in params. Arguments params dictionary; the parame...
doc_8279
Specialized version of sendmsg() for AF_ALG socket. Set mode, IV, AEAD associated data length and flags for AF_ALG socket. Availability: Linux >= 2.6.38. New in version 3.6.
doc_8280
Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
doc_8281
This is the class of the low-level test runner which is used to execute the individual tests and format the results. By default it is set to unittest.TextTestRunner. Despite the unfortunate similarity in naming conventions, this is not the same type of class as DiscoverRunner, which covers a broader set of responsibili...
doc_8282
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_8283
Called when there is out of band (OOB) data for a socket connection. This will almost never happen, as OOB is tenuously supported and rarely used.
doc_8284
Wait for child process to terminate. Set and return returncode attribute. If the process does not terminate after timeout seconds, raise a TimeoutExpired exception. It is safe to catch this exception and retry the wait. Note This will deadlock when using stdout=PIPE or stderr=PIPE and the child process generates enoug...
doc_8285
Get the formatter of the major ticker.
doc_8286
Convert 32-bit positive integers from host to network byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 4-byte swap operation.
doc_8287
Returns the strftime() format to use when parsing the month. Returns month_format by default.
doc_8288
Send mail. The required arguments are an RFC 822 from-address string, a list of RFC 822 to-address strings (a bare string will be treated as a list with 1 address), and a message string. The caller may pass a list of ESMTP options (such as 8bitmime) to be used in MAIL FROM commands as mail_options. ESMTP options (such ...
doc_8289
Disconnect callback by its id (returned by connect_event).
doc_8290
Return whether the artist is animated.
doc_8291
pygame module for interacting with events and queues pygame.fastevent is a wrapper for Bob Pendleton's fastevent library. It provides fast events for use in multithreaded environments. When using pygame.fastevent, you can not use any of the pump, wait, poll, post, get, peek, etc. functions from pygame.event, but y...
doc_8292
See Migration guide for more details. tf.compat.v1.raw_ops.RefMerge tf.raw_ops.RefMerge( inputs, name=None ) Merge waits for at least one of the tensors in inputs to become available. It is usually combined with Switch to implement branching. Merge forwards the first tensor for become available to output, and se...
doc_8293
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_8294
Return the clipbox.
doc_8295
Delete a cookie. Fails silently if key doesn’t exist. Parameters key (str) – the key (name) of the cookie to be deleted. path (str) – if the cookie that should be deleted was limited to a path, the path has to be defined here. domain (Optional[str]) – if the cookie that should be deleted was limited to a domain, ...
doc_8296
Generate an image with random shapes, labeled with bounding boxes. The image is populated with random shapes with random sizes, random locations, and random colors, with or without overlap. Shapes have random (row, col) starting coordinates and random sizes bounded by min_size and max_size. It can occur that a random...
doc_8297
Return index for first non-NA value or None, if no NA value is found. Returns scalar:type of index Notes If all elements are non-NA/null, returns None. Also returns None for empty Series/DataFrame.
doc_8298
Get a string that can be used as a format string for time.strftime() to represent a date in a locale-specific way.
doc_8299
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.