_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_5600 | Optional A string defining the aggregation period for date_list. It must be one of 'year' (default), 'month', or 'day'. | |
doc_5601 |
Function to fast-forward the state of the SobolEngine by n steps. This is equivalent to drawing n samples without using the samples. Parameters
n (Int) – The number of steps to fast-forward by. | |
doc_5602 | Get the names and default values of a Python function’s parameters. A named tuple is returned: FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults,
annotations) args is a list of the positional parameter names. varargs is the name of the * parameter or None if arbitrary positional arguments are not a... | |
doc_5603 |
Return the kernel k(X, Y) and optionally its gradient. Parameters
Xndarray of shape (n_samples_X, n_features)
Left argument of the returned kernel k(X, Y)
Yndarray of shape (n_samples_Y, n_features), default=None
Right argument of the returned kernel k(X, Y). If None, k(X, X) if evaluated instead.
eval_gr... | |
doc_5604 | Whether the OpenSSL library has built-in support for the TLS 1.0 protocol. New in version 3.7. | |
doc_5605 |
Return a random matrix with data from the “standard normal” distribution. randn generates a matrix filled with random floats sampled from a univariate “normal” (Gaussian) distribution of mean 0 and variance 1. Parameters
*argsArguments
Shape of the output. If given as N integers, each integer specifies the size... | |
doc_5606 | Force write of file with filedescriptor fd to disk. Does not force update of metadata. Availability: Unix. Note This function is not available on MacOS. | |
doc_5607 | Requests that the underlying shared memory block be destroyed. In order to ensure proper cleanup of resources, unlink() should be called once (and only once) across all processes which have need for the shared memory block. After requesting its destruction, a shared memory block may or may not be immediately destroyed ... | |
doc_5608 | '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_5609 |
Set the url for the artist. Parameters
urlstr | |
doc_5610 |
Compute the roots of a Laguerre series. Return the roots (a.k.a. “zeros”) of the polynomial \[p(x) = \sum_i c[i] * L_i(x).\] Parameters
c1-D array_like
1-D array of coefficients. Returns
outndarray
Array of the roots of the series. If all the roots are real, then out is also real, otherwise it is compl... | |
doc_5611 |
Return whether mathtext parsing is considered for this Text. | |
doc_5612 | In-place version of tril() | |
doc_5613 | Returns (system, release, version) aliased to common marketing names used for some systems. It also does some reordering of the information in some cases where it would otherwise cause confusion. | |
doc_5614 | returns True if there's data, or False if not. poll() -> bool Used to indicate if any data exists.
Returns:
True if there is data, False otherwise
Return type:
bool
Raises:
MidiException -- on error | |
doc_5615 |
Creates a criterion that measures the triplet loss given an input tensors x1x1 , x2x2 , x3x3 and a margin with a value greater than 00 . This is used for measuring a relative similarity between samples. A triplet is composed by a, p and n (i.e., anchor, positive examples and negative examples respectively). The shap... | |
doc_5616 | Represents an incoming WSGI HTTP request, with headers and body taken from the WSGI environment. Has properties and methods for using the functionality defined by various HTTP specs. The data in requests object is read-only. Text data is assumed to use UTF-8 encoding, which should be true for the vast majority of moder... | |
doc_5617 | Subclass of SAXException raised when a SAX XMLReader is confronted with an unrecognized feature or property. SAX applications and extensions may use this class for similar purposes. | |
doc_5618 | Context manager to check that no ResourceWarning was raised. You must remove the object which may emit ResourceWarning before the end of the context manager. | |
doc_5619 | AnchoredAuxTransformBox(transform, loc[, ...]) An anchored container with transformed coordinates.
AnchoredDirectionArrows(transform, label_x, ...) Draw two perpendicular arrows to indicate directions.
AnchoredDrawingArea(width, height, xdescent, ...) An anchored container with a fixed size and fillable DrawingArea... | |
doc_5620 |
Predict class or regression value for X. For a classification model, the predicted class for each sample in X is returned. For a regression model, the predicted value based on X is returned. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be conver... | |
doc_5621 | tf.experimental.numpy.logical_or(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.logical_or. | |
doc_5622 | >>> pnt = GEOSGeometry('POINT(5 23)') # WKT
>>> pnt = GEOSGeometry('010100000000000000000014400000000000003740') # HEX
>>> pnt = GEOSGeometry(buffer('\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14@\x00\x00\x00\x00\x00\x007@'))
>>> pnt = GEOSGeometry('{ "type": "Point", "coordinates": [ 5.000000, 23.000000 ] }') # Geo... | |
doc_5623 |
Detect missing values for an array-like object. This function takes a scalar or array-like object and indicates whether values are missing (NaN in numeric arrays, None or NaN in object arrays, NaT in datetimelike). Parameters
obj:scalar or array-like
Object to check for null or missing values. Returns
bool... | |
doc_5624 | Equivalent to put(item, False). | |
doc_5625 | Returns a list of the data with the requested key. Returns an empty list if the key doesn’t exist and default is None. It’s guaranteed to return a list unless the default value provided isn’t a list. | |
doc_5626 |
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy. | |
doc_5627 | self.bool() is equivalent to self.to(torch.bool). See to(). Parameters
memory_format (torch.memory_format, optional) – the desired memory format of returned Tensor. Default: torch.preserve_format. | |
doc_5628 |
Set the normalization instance. Parameters
normNormalize or None
Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default. | |
doc_5629 |
Return the cumulative sum of the elements along the given axis. Refer to numpy.cumsum for full documentation. See also numpy.cumsum
equivalent function | |
doc_5630 | Return a ctypes array allocated from shared memory. typecode_or_type determines the type of the elements of the returned array: it is either a ctypes type or a one character typecode of the kind used by the array module. If size_or_initializer is an integer then it determines the length of the array, and the array will... | |
doc_5631 |
Set the direction in which theta increases. clockwise, -1:
Theta increases in the clockwise direction counterclockwise, anticlockwise, 1:
Theta increases in the counterclockwise direction | |
doc_5632 | Returns True, if all input values are true, default if all values are null or if there are no values, otherwise False. Usage example: class Comment(models.Model):
body = models.TextField()
published = models.BooleanField()
rank = models.IntegerField()
>>> from django.db.models import Q
>>> from django.cont... | |
doc_5633 |
Bases: mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple This subclass always returns the same bounding box. Parameters
extremes(float, float, float, float)
The bounding box that this helper always returns. __call__(transform_xy, x1, y1, x2, y2)[source]
Compute an approximation of the bounding box... | |
doc_5634 | ABC for generator classes that implement the protocol defined in PEP 342 that extends iterators with the send(), throw() and close() methods. See also the definition of generator. New in version 3.5. | |
doc_5635 | show various surfarray effects arraydemo.main(arraytype=None) -> None Another example filled with various surfarray effects. It requires the surfarray and image modules to be installed. This little demo can also make a good starting point for any of your own tests with surfarray The arraytype parameter is deprecated;... | |
doc_5636 | See torch.eig() | |
doc_5637 |
Bases: matplotlib.patches.Rectangle A cell is a Rectangle with some associated Text. As a user, you'll most likely not creates cells yourself. Instead, you should use either the table factory function or Table.add_cell. Parameters
xy2-tuple
The position of the bottom left corner of the cell.
widthfloat
The ... | |
doc_5638 | sklearn.manifold.locally_linear_embedding(X, *, n_neighbors, n_components, reg=0.001, eigen_solver='auto', tol=1e-06, max_iter=100, method='standard', hessian_tol=0.0001, modified_tol=1e-12, random_state=None, n_jobs=None) [source]
Perform a Locally Linear Embedding analysis on the data. Read more in the User Guide. ... | |
doc_5639 |
For a line passing through (cx, cy) and having an angle t, return locations of the two points located along its perpendicular line at the distance of length. | |
doc_5640 | The total number of bits in the address representation for this version: 32 for IPv4, 128 for IPv6. The prefix defines the number of leading bits in an address that are compared to determine whether or not an address is part of a network. | |
doc_5641 | See Migration guide for more details. tf.compat.v1.ones
tf.ones(
shape, dtype=tf.dtypes.float32, name=None
)
See also tf.ones_like, tf.zeros, tf.fill, tf.eye. This operation returns a tensor of type dtype with shape shape and all elements set to one.
tf.ones([3, 4], tf.int32)
<tf.Tensor: shape=(3, 4), dtype=int... | |
doc_5642 |
Repeat elements of an array. Refer to numpy.repeat for full documentation. See also numpy.repeat
equivalent function | |
doc_5643 | draw one image onto another blit(source, dest, area=None, special_flags=0) -> Rect Draws a source Surface onto this Surface. The draw can be positioned with the dest argument. The dest argument can either be a pair of coordinates representing the position of the upper left corner of the blit or a Rect, where the uppe... | |
doc_5644 | Exception raised when non-blocking get() (or get_nowait()) is called on a Queue object which is empty. | |
doc_5645 |
V-measure cluster labeling given a ground truth. This score is identical to normalized_mutual_info_score with the 'arithmetic' option for averaging. The V-measure is the harmonic mean between homogeneity and completeness: v = (1 + beta) * homogeneity * completeness
/ (beta * homogeneity + completeness)
This met... | |
doc_5646 | See torch.asinh() | |
doc_5647 |
Suppress whole rows of a 2-D array that contain masked values. This is equivalent to np.ma.compress_rowcols(a, 0), see compress_rowcols for details. See also compress_rowcols | |
doc_5648 |
Bases: matplotlib.transforms.AffineBase The base class of all 2D affine transformations. 2D affine transformations are performed using a 3x3 numpy array: a c e
b d f
0 0 1
This class provides the read-only interface. For a mutable 2D affine transformation, use Affine2D. Subclasses of this class will generally only n... | |
doc_5649 |
Filter: Select the pvalues below alpha based on a FPR test. FPR test stands for False Positive Rate test. It controls the total amount of false detections. Read more in the User Guide. Parameters
score_funccallable, default=f_classif
Function taking two arrays X and y, and returning a pair of arrays (scores, pv... | |
doc_5650 |
Return the artist's zorder. | |
doc_5651 |
Return element-wise a copy of the string with uppercase characters converted to lowercase and vice versa. Calls str.swapcase element-wise. For 8-bit strings, this method is locale-dependent. Parameters
aarray_like, {str, unicode}
Input array. Returns
outndarray, {str, unicode}
Output array of str or uni... | |
doc_5652 | See Migration guide for more details. tf.compat.v1.errors.UnknownError
tf.errors.UnknownError(
node_def, op, message, error_code=UNKNOWN
)
An example of where this error may be returned is if a Status value received from another address space belongs to an error-space that is not known to this address space. Als... | |
doc_5653 | Debug an expression executed via the eval() function. globals and locals have the same meaning as in run(). | |
doc_5654 | The column corresponding to pos (may be None). | |
doc_5655 | Initializes the Handler instance by setting its level, setting the list of filters to the empty list and creating a lock (using createLock()) for serializing access to an I/O mechanism. | |
doc_5656 | This method returns a ctypes type instance exported by a shared library. name is the name of the symbol that exports the data, library is the loaded shared library. | |
doc_5657 | See Migration guide for more details. tf.compat.v1.nn.avg_pool2d
tf.compat.v1.nn.avg_pool(
value, ksize, strides, padding, data_format='NHWC', name=None,
input=None
)
Each entry in output is the mean of the corresponding size ksize window in value.
Args
value A 4-D Tensor of shape [batch, height, wi... | |
doc_5658 |
True if two arrays have the same shape and elements, False otherwise. Parameters
a1, a2array_like
Input arrays.
equal_nanbool
Whether to compare NaN’s as equal. If the dtype of a1 and a2 is complex, values will be considered equal if either the real or the imaginary component of a given value is nan. New i... | |
doc_5659 |
Draw a Gouraud-shaded triangle. Parameters
gcGraphicsContextBase
The graphics context.
points(3, 2) array-like
Array of (x, y) points for the triangle.
colors(3, 4) array-like
RGBA colors for each point of the triangle.
transformmatplotlib.transforms.Transform
An affine transform to apply to the poi... | |
doc_5660 | If the debugger should stop on this function call, invoke the user_call() method (which should be overridden in subclasses). Raise a BdbQuit exception if the Bdb.quitting flag is set (which can be set from user_call()). Return a reference to the trace_dispatch() method for further tracing in that scope. | |
doc_5661 |
Determine residuals of data to model. For each point the shortest distance to the ellipse is returned. Parameters
data(N, 2) array
N points with (x, y) coordinates, respectively. Returns
residuals(N, ) array
Residual for each data point. | |
doc_5662 |
Called when the mouse moves during a pan operation. Parameters
buttonMouseButton
The pressed mouse button.
keystr or None
The pressed key, if any.
x, yfloat
The mouse coordinates in display coords. Notes This is intended to be overridden by new projection types. | |
doc_5663 | Raised on dbm.dumb-specific errors, such as I/O errors. KeyError is raised for general mapping errors like specifying an incorrect key. | |
doc_5664 | A special MultiDict that has convenience methods to add files to it. This is used for EnvironBuilder and generally useful for unittesting. Changelog New in version 0.5.
add_file(name, file, filename=None, content_type=None)
Adds a new file to the dict. file can be a file name or a file-like or a FileStorage objec... | |
doc_5665 |
Bases: matplotlib.patches._Style BoxStyle is a container class which defines several boxstyle classes, which are used for FancyBboxPatch. A style object can be created as: BoxStyle.Round(pad=0.2)
or: BoxStyle("Round", pad=0.2)
or: BoxStyle("Round, pad=0.2")
The following boxstyle classes are defined.
Class Name... | |
doc_5666 |
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_5667 | See Migration guide for more details. tf.compat.v1.raw_ops.Restore
tf.raw_ops.Restore(
file_pattern, tensor_name, dt, preferred_shard=-1, name=None
)
Reads a tensor stored in one or several files. If there are several files (for instance because a tensor was saved as slices), file_pattern may contain wildcard sy... | |
doc_5668 | The number of bytes that can be allocated for POSIX message queues. Availability: Linux 2.6.8 or later. New in version 3.4. | |
doc_5669 |
DateOffset subclass representing possibly n business days. Attributes
base Returns a copy of the calling offset object with n=1 and all other attributes equal.
offset Alias for self._offset.
calendar
freqstr
holidays
kwds
n
name
nanos
normalize
rule_code
weekmask Meth... | |
doc_5670 | sklearn.datasets.fetch_lfw_pairs(*, subset='train', data_home=None, funneled=True, resize=0.5, color=False, slice_=slice(70, 195, None), slice(78, 172, None), download_if_missing=True) [source]
Load the Labeled Faces in the Wild (LFW) pairs dataset (classification). Download it if necessary.
Classes 2
Samples tot... | |
doc_5671 |
Alias for get_facecolor. | |
doc_5672 |
Bases: matplotlib.collections.PolyCollection A collection of 3D polygons. Note Filling of 3D polygons There is no simple definition of the enclosed surface of a 3D polygon unless the polygon is planar. In practice, Matplotlib fills the 2D projection of the polygon. This gives a correct filling appearance only for pl... | |
doc_5673 | quopri.decode(input, output, header=False)
Decode the contents of the input file and write the resulting decoded binary data to the output file. input and output must be binary file objects. If the optional argument header is present and true, underscore will be decoded as space. This is used to decode “Q”-encoded he... | |
doc_5674 |
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_5675 | Widget used by all of the range fields. Based on MultiWidget. RangeWidget has one required argument:
base_widget
A RangeWidget comprises a 2-tuple of base_widget.
decompress(value)
Takes a single “compressed” value of a field, for example a DateRangeField, and returns a tuple representing a lower and upper bo... | |
doc_5676 |
Return unbiased variance over requested axis. Normalized by N-1 by default. This can be changed using the ddof argument. Parameters
axis:{index (0), columns (1)}
skipna:bool, default True
Exclude NA/null values. If an entire row/column is NA, the result will be NA.
level:int or level name, default None
If... | |
doc_5677 | Copies the sign from y to x. | |
doc_5678 | cluster_resolver=...)
coordinator = (
tf.distribute.experimental.coordinator.ClusterCoordinator(strategy))
with strategy.scope():
v1 = tf.Variable(initial_value=0.0)
v2 = tf.Variable(initial_value=1.0)
@tf.function
def worker_fn():
v1.assign_add(0.1)
v2.assign_sub(0.2)
return v1.read_value() / v2.re... | |
doc_5679 | tf.compat.v1.estimator.experimental.KMeans(
num_clusters, model_dir=None, initial_clusters=RANDOM_INIT,
distance_metric=SQUARED_EUCLIDEAN_DISTANCE, seed=None, use_mini_batch=True,
mini_batch_steps_per_iteration=1, kmeans_plus_plus_num_retries=2,
relative_tolerance=None, config=None, feature_columns=None... | |
doc_5680 |
For each element in self, return a list of the words in the string, using sep as the delimiter string. See also char.split | |
doc_5681 | Similar to DateInput.format | |
doc_5682 | Create and return an attribute node with a namespace. The tagName may have a prefix. This method does not associate the attribute node with any particular element. You must use setAttributeNode() on the appropriate Element object to use the newly created attribute instance. | |
doc_5683 | Default widget: TextInput
Empty value: None
Normalizes to: A UUID object. Error message keys: required, invalid
This field will accept any string format accepted as the hex argument to the UUID constructor. | |
doc_5684 |
Set the artist's clip path. Parameters
pathPatch or Path or TransformedPath or None
The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed.
transformTransform, optional
Only used if path is a Path, in which case the given Path is converted to a Tra... | |
doc_5685 | A mock intended to be used as a property, or other descriptor, on a class. PropertyMock provides __get__() and __set__() methods so you can specify a return value when it is fetched. Fetching a PropertyMock instance from an object calls the mock, with no args. Setting it calls the mock with the value being set. >>> cla... | |
doc_5686 |
Get the line width of the Figure rectangle. | |
doc_5687 |
Apply the filter in reverse to the given data. Parameters
data(M,N) ndarray
Input data.
impulse_responsecallable f(r, c, **filter_params)
Impulse response of the filter. See LPIFilter2D.__init__.
filter_paramsdict
Additional keyword parameters to the impulse_response function.
max_gainfloat
Limit th... | |
doc_5688 | Return a string specifying the flags that are currently set. If the message complies with the standard Maildir format, the result is the concatenation in alphabetical order of zero or one occurrence of each of 'D', 'F', 'P', 'R', 'S', and 'T'. The empty string is returned if no flags are set or if “info” contains exper... | |
doc_5689 | The file system permissions that the file will receive when it is saved. Defaults to FILE_UPLOAD_PERMISSIONS. | |
doc_5690 | Return the context identifier the local objects use internally for this context. You cannot override this method to change the behavior but use it to link other context local objects (such as SQLAlchemy’s scoped sessions) to the Werkzeug locals. Deprecated since version 2.0: Will be removed in Werkzeug 2.1. Changelo... | |
doc_5691 | Set the etag, and override the old one if there was one. Parameters
etag (str) –
weak (bool) – Return type
None | |
doc_5692 | repeatedly create an event on the event queue set_timer(eventid, milliseconds) -> None set_timer(eventid, milliseconds, once) -> None Set an event type to appear on the event queue every given number of milliseconds. The first event will not appear until the amount of time has passed. Every event type can have a sepa... | |
doc_5693 |
Divide one Legendre series by another. Returns the quotient-with-remainder of two Legendre series c1 / c2. The arguments are sequences of coefficients from lowest order “term” to highest, e.g., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters
c1, c2array_like
1-D arrays of Legendre series coefficie... | |
doc_5694 |
Return width, height and descent of the text. | |
doc_5695 |
Invert the x-axis. See also xaxis_inverted
get_xlim, set_xlim
get_xbound, set_xbound | |
doc_5696 |
Connect events. | |
doc_5697 |
Set the sketch parameters. Parameters
scalefloat, optional
The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided.
lengthfloat, optional
The length of the wiggle along the line, in pixels (default 128.0)
randomnessfloat... | |
doc_5698 |
Implements datetime.replace, handles nanoseconds. Parameters
year:int, optional
month:int, optional
day:int, optional
hour:int, optional
minute:int, optional
second:int, optional
microsecond:int, optional
nanosecond:int, optional
tzinfo:tz-convertible, optional
fold:int, optional
Returns
Ti... | |
doc_5699 | authreq should be the name of the header where the information about the realm is included in the request, host should be the host to authenticate to, req should be the (failed) Request object, and headers should be the error headers. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.