_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_2000 |
Return a list of the child Artists. | |
doc_2001 |
Insert a given module before a given index in the list. Parameters
index (int) – index to insert.
module (nn.Module) – module to insert | |
doc_2002 | operator.le(a, b)
operator.eq(a, b)
operator.ne(a, b)
operator.ge(a, b)
operator.gt(a, b)
operator.__lt__(a, b)
operator.__le__(a, b)
operator.__eq__(a, b)
operator.__ne__(a, b)
operator.__ge__(a, b)
operator.__gt__(a, b)
Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva... | |
doc_2003 | Some unspecified syntax error was encountered. | |
doc_2004 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_2005 |
DateOffset increments between the last business day of the year. Examples
>>> from pandas.tseries.offsets import BYearEnd
>>> ts = pd.Timestamp('2020-05-24 05:01:15')
>>> ts - BYearEnd()
Timestamp('2019-12-31 05:01:15')
>>> ts + BYearEnd()
Timestamp('2020-12-31 05:01:15')
>>> ts + BYearEnd(3)
Timestamp('2022-12-30 0... | |
doc_2006 | This method takes one parameter, the name of a method implemented by the XML-RPC server. It returns a documentation string describing the use of that method. If no such string is available, an empty string is returned. The documentation string may contain HTML markup. | |
doc_2007 | See Migration guide for more details. tf.compat.v1.raw_ops.DecodeBmp
tf.raw_ops.DecodeBmp(
contents, channels=0, name=None
)
The attr channels indicates the desired number of color channels for the decoded image. Accepted values are: 0: Use the number of channels in the BMP-encoded image. 3: output an RGB image... | |
doc_2008 | Return an iterable over the named items within the package. The iterable returns str resources (e.g. files) and non-resources (e.g. directories). The iterable does not recurse into subdirectories. package is either a name or a module object which conforms to the Package requirements. | |
doc_2009 | class str(object=b'', encoding='utf-8', errors='strict')
Return a str version of object. See str() for details. str is the built-in string class. For general information about strings, see Text Sequence Type — str. | |
doc_2010 | Returns True if x is a qNaN or sNaN; otherwise returns False. | |
doc_2011 | Copy an array to a new surface make_surface(array) -> Surface Create a new Surface that best resembles the data and format on the array. The array can be 2D or 3D with any sized integer values. Function make_surface uses the array struct interface to acquire array properties, so is not limited to just NumPy arrays. S... | |
doc_2012 | Return the path to which the symbolic link points (as returned by os.readlink()): >>> p = Path('mylink')
>>> p.symlink_to('setup.py')
>>> p.readlink()
PosixPath('setup.py')
New in version 3.9. | |
doc_2013 |
Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay). The Laplace distribution is similar to the Gaussian/normal distribution, but is sharper at the peak and has fatter tails. It represents the difference between two independent, identically distributed ... | |
doc_2014 | Format the traceback as a list of lines with newlines. Use the linecache module to retrieve lines from the source code. If limit is set, format the limit most recent frames if limit is positive. Otherwise, format the abs(limit) oldest frames. If most_recent_first is True, the order of the formatted frames is reversed, ... | |
doc_2015 |
Alias for get_facecolor. | |
doc_2016 | Owner has write permission. | |
doc_2017 | This is a required argument. Specifies the underlying data type and behavior for the array. It should be an instance of a subclass of Field. For example, it could be an IntegerField or a CharField. Most field types are permitted, with the exception of those handling relational data (ForeignKey, OneToOneField and ManyTo... | |
doc_2018 |
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters
funccallable
The callback function. It must have the signature: def func(artist: Artist) -> Any
where artist is the calling Artist. Return values may exist but are ignored. Returns
int
The observer id ... | |
doc_2019 |
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_2020 |
Set the path effects. Parameters
path_effectsAbstractPathEffect | |
doc_2021 |
RGB to YIQ color space conversion. Parameters
rgb(…, 3) array_like
The image in RGB format. Final dimension denotes channels. Returns
out(…, 3) ndarray
The image in YIQ format. Same dimensions as input. Raises
ValueError
If rgb is not at least 2-D with shape (…, 3). | |
doc_2022 | If you run f2py with no arguments, and the line numpy Version at the end matches the NumPy version printed from python -m numpy.f2py, then you can use the shorter version. If not, or if you cannot run f2py, you should replace all calls to f2py here with the longer version. Command f2py
When used as a command line to... | |
doc_2023 | sklearn.metrics.classification_report(y_true, y_pred, *, labels=None, target_names=None, sample_weight=None, digits=2, output_dict=False, zero_division='warn') [source]
Build a text report showing the main classification metrics. Read more in the User Guide. Parameters
y_true1d array-like, or label indicator arra... | |
doc_2024 |
Rearranges the elements in the array in such a way that the value of the element in kth position is in the position it would be in a sorted array. All elements smaller than the kth element are moved before this element and all equal or greater are moved behind it. The ordering of the elements in the two partitions is... | |
doc_2025 |
Create a RGBA representation of a gray-level image. Parameters
imagearray_like
Input image.
alphaarray_like, optional
Alpha channel of the output image. It may be a scalar or an array that can be broadcast to image. If not specified it is set to the maximum limit corresponding to the image dtype. Returns... | |
doc_2026 | Raised for module specific errors. | |
doc_2027 |
Sends a tensor asynchronously. Parameters
tensor (Tensor) – Tensor to send.
dst (int) – Destination rank.
group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used.
tag (int, optional) – Tag to match send with remote recv Returns
A distributed request obj... | |
doc_2028 | tf.lookup.StaticVocabularyTable(
initializer, num_oov_buckets, lookup_key_dtype=None, name=None
)
For example, if an instance of StaticVocabularyTable is initialized with a string-to-id initializer that maps:
init = tf.lookup.KeyValueTensorInitializer(
keys=tf.constant(['emerson', 'lake', 'palmer']),
valu... | |
doc_2029 |
Set the path effects. Parameters
path_effectsAbstractPathEffect | |
doc_2030 |
Control behavior of major tick locators. Because the locator is involved in autoscaling, autoscale_view is called automatically after the parameters are changed. Parameters
axis{'both', 'x', 'y'}, default: 'both'
The axis on which to operate.
tightbool or None, optional
Parameter passed to autoscale_view. D... | |
doc_2031 | A base view for displaying a form. It is not intended to be used directly, but rather as a parent class of the django.views.generic.edit.FormView or other views displaying a form. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.edit.FormMixin django.views.generi... | |
doc_2032 | os.POSIX_FADV_SEQUENTIAL
os.POSIX_FADV_RANDOM
os.POSIX_FADV_NOREUSE
os.POSIX_FADV_WILLNEED
os.POSIX_FADV_DONTNEED
Flags that can be used in advice in posix_fadvise() that specify the access pattern that is likely to be used. Availability: Unix. New in version 3.3. | |
doc_2033 | See torch.tile() | |
doc_2034 | Computes the zeroth order modified Bessel function of the first kind for each element of input. outi=I0(inputi)=∑k=0∞(inputi2/4)k(k!)2\text{out}_{i} = I_0(\text{input}_{i}) = \sum_{k=0}^{\infty} \frac{(\text{input}_{i}^2/4)^k}{(k!)^2}
Parameters
input (Tensor) – the input tensor Keyword Arguments
out (Tensor, op... | |
doc_2035 |
Log at WARNING level if locs is longer than Locator.MAXTICKS. This is intended to be called immediately before returning locs from __call__ to inform users in case their Locator returns a huge number of ticks, causing Matplotlib to run out of memory. The "strange" name of this method dates back to when it would raise... | |
doc_2036 |
Plot identical parallel lines at the given positions. This type of plot is commonly used in neuroscience for representing neural events, where it is usually called a spike raster, dot raster, or raster plot. However, it is useful in any situation where you wish to show the timing or position of multiple sets of discr... | |
doc_2037 | The form Field instance from the form class that this BoundField wraps. | |
doc_2038 | Write buf to the SSL socket and return the number of bytes written. The buf argument must be an object supporting the buffer interface. Raise SSLWantReadError or SSLWantWriteError if the socket is non-blocking and the write would block. As at any time a re-negotiation is possible, a call to write() can also cause read ... | |
doc_2039 | Return True if the server is accepting new connections. New in version 3.7. | |
doc_2040 | '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_2041 |
Applies the hardswish function, element-wise, as described in the paper: Searching for MobileNetV3. Hardswish(x)={0if x≤−3,xif x≥+3,x⋅(x+3)/6otherwise\text{Hardswish}(x) = \begin{cases} 0 & \text{if~} x \le -3, \\ x & \text{if~} x \ge +3, \\ x \cdot (x + 3) /6 & \text{otherwise} \end{cases}
See Hardswish for more ... | |
doc_2042 |
Getter for the precision matrix. Returns
precision_array-like of shape (n_features, n_features)
The precision matrix associated to the current covariance object. | |
doc_2043 | See Migration guide for more details. tf.compat.v1.raw_ops.BroadcastTo
tf.raw_ops.BroadcastTo(
input, shape, name=None
)
Broadcasting is the process of making arrays to have compatible shapes for arithmetic operations. Two shapes are compatible if for each dimension pair they are either equal or one of them is o... | |
doc_2044 | See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingAdadeltaParametersGradAccumDebug
tf.raw_ops.LoadTPUEmbeddingAdadeltaParametersGradAccumDebug(
parameters, accumulators, updates, gradient_accumulators, num_shards, shard_id,
table_id=-1, table_name='', config='', name=None
)
An op tha... | |
doc_2045 | See Migration guide for more details. tf.compat.v1.raw_ops.AllToAll
tf.raw_ops.AllToAll(
input, group_assignment, concat_dimension, split_dimension, split_count,
name=None
)
On each replica, the input is split into split_count blocks along split_dimension and send to the other replicas given group_assignment... | |
doc_2046 |
Recall the first view and position from the stack. | |
doc_2047 | class sklearn.neighbors.KNeighborsTransformer(*, mode='distance', n_neighbors=5, algorithm='auto', leaf_size=30, metric='minkowski', p=2, metric_params=None, n_jobs=1) [source]
Transform X into a (weighted) graph of k nearest neighbors The transformed data is a sparse graph as returned by kneighbors_graph. Read more ... | |
doc_2048 | returns True if pygame is currently initialized get_init() -> bool Returns True if pygame is currently initialized. New in pygame 1.9.5. | |
doc_2049 |
Return boolean Series equivalent to left <= series <= right. This function returns a boolean vector containing True wherever the corresponding Series element is between the boundary values left and right. NA values are treated as False. Parameters
left:scalar or list-like
Left boundary.
right:scalar or list-l... | |
doc_2050 | If a function (either a view or any regular callback) in your code uses local variables susceptible to contain sensitive information, you may prevent the values of those variables from being included in error reports using the sensitive_variables decorator: from django.views.decorators.debug import sensitive_variables
... | |
doc_2051 | See Migration guide for more details. tf.compat.v1.ragged.map_flat_values
tf.ragged.map_flat_values(
op, *args, **kwargs
)
Replaces any RaggedTensor in args or kwargs with its flat_values tensor, and then calls op. Returns a RaggedTensor that is constructed from the input RaggedTensors' nested_row_splits and the... | |
doc_2052 |
Return the text rotation mode. | |
doc_2053 | Return a tuple in the form (etag, is_weak). If there is no ETag the return value is (None, None). Return type
Union[Tuple[str, bool], Tuple[None, None]] | |
doc_2054 |
Transform via the mapping y=11+exp(−x)y = \frac{1}{1 + \exp(-x)} and x=logit(y)x = \text{logit}(y) . | |
doc_2055 |
New view of array with the same data. Note Passing None for dtype is different from omitting the parameter, since the former invokes dtype(None) which is an alias for dtype('float_'). Parameters
dtypedata-type or ndarray sub-class, optional
Data-type descriptor of the returned view, e.g., float32 or int16. Om... | |
doc_2056 |
Return series instance that has the specified roots. Returns a series representing the product (x - r[0])*(x - r[1])*...*(x - r[n-1]), where r is a list of roots. Parameters
rootsarray_like
List of roots.
domain{[], None, array_like}, optional
Domain for the resulting series. If None the domain is the inter... | |
doc_2057 |
Computes a partial inverse of MaxPool3d. See MaxUnpool3d for details. | |
doc_2058 | Returns the 1-based index of the first object on the page, relative to all of the objects in the paginator’s list. For example, when paginating a list of 5 objects with 2 objects per page, the second page’s start_index() would return 3. | |
doc_2059 | tf.nn.sparse_softmax_cross_entropy_with_logits(
labels, logits, name=None
)
Measures the probability error in discrete classification tasks in which the classes are mutually exclusive (each entry is in exactly one class). For example, each CIFAR-10 image is labeled with one and only one label: an image can be a do... | |
doc_2060 |
Compute precision, recall, F-measure and support for each class. The precision is the ratio tp / (tp + fp) where tp is the number of true positives and fp the number of false positives. The precision is intuitively the ability of the classifier not to label as positive a sample that is negative. The recall is the rat... | |
doc_2061 | Begin autoincrement mode: schedules a recurring timer event that calls Progressbar.step() every interval milliseconds. If omitted, interval defaults to 50 milliseconds. | |
doc_2062 | Gets or sets whether the font should be rendered in (faked) bold. bold -> bool Whether the font should be rendered in bold. When set to True, this enables the bold rendering of text. This is a fake stretching of the font that doesn't look good on many font types. If possible load the font from a real bold font file. ... | |
doc_2063 | See Migration guide for more details. tf.compat.v1.raw_ops.Reshape
tf.raw_ops.Reshape(
tensor, shape, name=None
)
Given tensor, this operation returns a tensor that has the same values as tensor with shape shape. If one component of 1-D tensor shape is the special value -1, the size of that dimension is computed... | |
doc_2064 | Convert a wait status to an exit code. On Unix: If the process exited normally (if WIFEXITED(status) is true), return the process exit status (return WEXITSTATUS(status)): result greater than or equal to 0. If the process was terminated by a signal (if WIFSIGNALED(status) is true), return -signum where signum is the n... | |
doc_2065 |
Get or set the x limits of the current axes. Call signatures: left, right = xlim() # return the current xlim
xlim((left, right)) # set the xlim to left, right
xlim(left, right) # set the xlim to left, right
If you do not specify args, you can pass left or right as kwargs, i.e.: xlim(right=3) # adjust the rig... | |
doc_2066 | See torch.diff() | |
doc_2067 | A parameter entity reference was found where it was not allowed. | |
doc_2068 | stat.FILE_ATTRIBUTE_COMPRESSED
stat.FILE_ATTRIBUTE_DEVICE
stat.FILE_ATTRIBUTE_DIRECTORY
stat.FILE_ATTRIBUTE_ENCRYPTED
stat.FILE_ATTRIBUTE_HIDDEN
stat.FILE_ATTRIBUTE_INTEGRITY_STREAM
stat.FILE_ATTRIBUTE_NORMAL
stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
stat.FILE_ATTRIBUTE_NO_SCRUB_DATA
stat.FILE_ATTRIBUTE... | |
doc_2069 |
Fill the main diagonal of the given array of any dimensionality. For an array a with a.ndim >= 2, the diagonal is the list of locations with indices a[i, ..., i] all identical. This function modifies the input array in-place, it does not return a value. Parameters
aarray, at least 2-D.
Array whose diagonal is t... | |
doc_2070 | Encode a message header into an RFC-compliant format, possibly wrapping long lines and encapsulating non-ASCII parts in base64 or quoted-printable encodings. Optional splitchars is a string containing characters which should be given extra weight by the splitting algorithm during normal header wrapping. This is in very... | |
doc_2071 | tf.experimental.numpy.empty_like(
a, dtype=None
)
See the NumPy documentation for numpy.empty_like. | |
doc_2072 |
Return an object with matching indices as other object. Conform the object to the same index on all axes. Optional filling logic, placing NaN in locations having no value in the previous index. A new object is produced unless the new index is equivalent to the current one and copy=False. Parameters
other:Object o... | |
doc_2073 |
Update the pixel positions of the annotated point and the text. | |
doc_2074 | operator.__iadd__(a, b)
a = iadd(a, b) is equivalent to a += b. | |
doc_2075 | See Migration guide for more details. tf.compat.v1.debugging.assert_rank_at_least
tf.compat.v1.assert_rank_at_least(
x, rank, data=None, summarize=None, message=None, name=None
)
Example of adding a dependency to an operation: with tf.control_dependencies([tf.compat.v1.assert_rank_at_least(x, 2)]):
output = tf... | |
doc_2076 |
Set whether object should be drawn with antialiased rendering. | |
doc_2077 | Check if an object appears to be a valid element object. element is an element instance. Return True if this is an element object. | |
doc_2078 |
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_2079 | Return the hyperbolic sine of x. | |
doc_2080 |
Floor divide self by other in-place. | |
doc_2081 | Adds an item to the feed. All args are expected to be strings except pubdate and updateddate, which are datetime.datetime objects, and enclosures, which is a list of Enclosure instances. | |
doc_2082 | Return True if the object is a class, whether built-in or created in Python code. | |
doc_2083 | Perform RLE-decompression on the data, as per the binhex4 standard. The algorithm uses 0x90 after a byte as a repeat indicator, followed by a count. A count of 0 specifies a byte value of 0x90. The routine returns the decompressed data, unless data input data ends in an orphaned repeat indicator, in which case the Inco... | |
doc_2084 | '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_2085 |
Used for moving to next business day. | |
doc_2086 |
Return self<=value. | |
doc_2087 | Unpacks and returns a variable length byte stream, similarly to unpack_string(). | |
doc_2088 | This function is called when the timeout attribute has been set to a value other than None and the timeout period has passed with no requests being received. The default action for forking servers is to collect the status of any child processes that have exited, while in threading servers this method does nothing. | |
doc_2089 |
Saves an object to a disk file. See also: saving-loading-tensors Parameters
obj – saved object
f – a file-like object (has to implement write and flush) or a string or os.PathLike object containing a file name
pickle_module – module used for pickling metadata and objects
pickle_protocol – can be specified to o... | |
doc_2090 |
Converts a function decorator into a method decorator. It can be used to decorate methods or classes; in the latter case, name is the name of the method to be decorated and is required. decorator may also be a list or tuple of functions. They are wrapped in reverse order so that the call order is the order in which t... | |
doc_2091 | Get a description for a single group group. If more than one group matches (if ‘group’ is a real wildmat string), return the first match. If no group matches, return an empty string. This elides the response code from the server. If the response code is needed, use descriptions(). | |
doc_2092 | See Migration guide for more details. tf.compat.v1.nn.compute_accidental_hits
tf.nn.compute_accidental_hits(
true_classes, sampled_candidates, num_true, seed=None, name=None
)
In Candidate Sampling, this operation facilitates virtually removing sampled classes which happen to match target classes. This is done i... | |
doc_2093 | Called when the socket is closed. | |
doc_2094 | See Migration guide for more details. tf.compat.v1.saved_model.signature_def_utils.is_valid_signature
tf.compat.v1.saved_model.is_valid_signature(
signature_def
) | |
doc_2095 | tf.compat.v1.debugging.assert_shapes(
shapes, data=None, summarize=None, message=None, name=None
)
This Op checks that a collection of tensors shape relationships satisfies given constraints. Example:
n = 10
q = 3
d = 7
x = tf.zeros([n,q])
y = tf.ones([n,d])
param = tf.Variable([1.0, 2.0, 3.0])
scalar = 1.0
tf.de... | |
doc_2096 | Returns the size of the chunk. | |
doc_2097 | See torch.fliplr() | |
doc_2098 | Clear (unset) the event. Tasks awaiting on wait() will now block until the set() method is called again. | |
doc_2099 | Read-only proxy of a mapping. It provides a dynamic view on the mapping’s entries, which means that when the mapping changes, the view reflects these changes. New in version 3.3. Changed in version 3.9: Updated to support the new union (|) operator from PEP 584, which simply delegates to the underlying mapping.
k... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.