_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_1700 | Always returns None. | |
doc_1701 | Set the CookiePolicy instance to be used. | |
doc_1702 | See Migration guide for more details. tf.compat.v1.raw_ops.AssignSub
tf.raw_ops.AssignSub(
ref, value, use_locking=False, name=None
)
This operation outputs "ref" after the update is done. This makes it easier to chain operations that need to use the reset value.
Args
ref A mutable Tensor. Must be one o... | |
doc_1703 |
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_1704 |
Helps style a DataFrame or Series according to the data with HTML and CSS. Parameters
data:Series or DataFrame
Data to be styled - either a Series or DataFrame.
precision:int, optional
Precision to round floats to. If not given defaults to pandas.options.styler.format.precision. Changed in version 1.4.0. ... | |
doc_1705 | os.O_DIRECT
os.O_DIRECTORY
os.O_NOFOLLOW
os.O_NOATIME
os.O_PATH
os.O_TMPFILE
os.O_SHLOCK
os.O_EXLOCK
The above constants are extensions and not present if they are not defined by the C library. Changed in version 3.4: Add O_PATH on systems that support it. Add O_TMPFILE, only available on Linux Kernel ... | |
doc_1706 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_1707 | See Migration guide for more details. tf.compat.v1.nn.depthwise_conv2d_backprop_filter, tf.compat.v1.nn.depthwise_conv2d_native_backprop_filter
tf.nn.depthwise_conv2d_backprop_filter(
input, filter_sizes, out_backprop, strides, padding,
data_format='NHWC', dilations=[1, 1, 1, 1], name=None
)
Args
inpu... | |
doc_1708 | Return a new NNTP object, representing a connection to the NNTP server running on host host, listening at port port. An optional timeout can be specified for the socket connection. If the optional user and password are provided, or if suitable credentials are present in /.netrc and the optional flag usenetrc is true, t... | |
doc_1709 |
Map value to the interval [0, 1]. The clip argument is unused. | |
doc_1710 | Raise the SystemExit exception. When not caught, this will cause the thread to exit silently. | |
doc_1711 | Inline, using the role: This text uses inline math: :mathmpl:`\alpha > \beta`.
which produces: This text uses inline math: .
Standalone, using the directive: Here is some standalone math:
.. mathmpl::
\alpha > \beta
which produces: Here is some standalone math: Options The mathmpl role and directive both ... | |
doc_1712 |
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_1713 |
Divide one Laguerre series by another. Returns the quotient-with-remainder of two Laguerre 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 Laguerre series coefficie... | |
doc_1714 |
Bases: matplotlib.offsetbox.AnchoredOffsetbox Draw two perpendicular arrows to indicate directions. Parameters
transformmatplotlib.transforms.Transform
The transformation object for the coordinate system in use, i.e., matplotlib.axes.Axes.transAxes.
label_x, label_ystr
Label text for the x and y arrows
le... | |
doc_1715 | Calls super’s load_module(). Deprecated since version 3.4: Use Loader.exec_module() instead. | |
doc_1716 | An array that represents the abbreviated months of the year in the current locale. This follows normal convention of January being month number 1, so it has a length of 13 and month_abbr[0] is the empty string. | |
doc_1717 |
Return the current hatching pattern. | |
doc_1718 |
Download all datasets for use with scikit-image offline. Scikit-image datasets are no longer shipped with the library by default. This allows us to use higher quality datasets, while keeping the library download size small. This function requires the installation of an optional dependency, pooch, to download the full... | |
doc_1719 | tf.compat.v1.estimator.DNNEstimator(
head, hidden_units, feature_columns, model_dir=None,
optimizer='Adagrad', activation_fn=tf.nn.relu, dropout=None,
input_layer_partitioner=None, config=None, warm_start_from=None,
batch_norm=False
)
Example: sparse_feature_a = sparse_column_with_hash_bucket(...)
spar... | |
doc_1720 | This class is a dictionary-like object whose keys are strings and whose values are Morsel instances. Note that upon setting a key to a value, the value is first converted to a Morsel containing the key and the value. If input is given, it is passed to the load() method. | |
doc_1721 | Create a Timer instance with the given statement, setup code and timer function and run its repeat() method with the given repeat count and number executions. The optional globals argument specifies a namespace in which to execute the code. Changed in version 3.5: The optional globals parameter was added. Changed in... | |
doc_1722 |
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_1723 |
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende... | |
doc_1724 | Remove named header from the request instance (both from regular and unredirected headers). New in version 3.4. | |
doc_1725 | Parse an HTTP WWW-Authenticate header into a WWWAuthenticate object. Parameters
value (Optional[str]) – a WWW-Authenticate header to parse.
on_update (Optional[Callable[[werkzeug.datastructures.WWWAuthenticate], None]]) – an optional callable that is called every time a value on the WWWAuthenticate object is chang... | |
doc_1726 |
Broadcasts picklable objects in object_list to the whole group. Similar to broadcast(), but Python objects can be passed in. Note that all objects in object_list must be picklable in order to be broadcasted. Parameters
object_list (List[Any]) – List of input objects to broadcast. Each object must be picklable. On... | |
doc_1727 | Like CHECKED_HASH, the .pyc file includes a hash of the source file content. However, Python will at runtime assume the .pyc file is up to date and not validate the .pyc against the source file at all. This option is useful when the .pycs are kept up to date by some system external to Python like a build system. | |
doc_1728 | tf.logical_not Compat aliases for migration See Migration guide for more details. tf.compat.v1.logical_not, tf.compat.v1.math.logical_not
tf.math.logical_not(
x, name=None
)
Example:
tf.math.logical_not(tf.constant([True, False]))
<tf.Tensor: shape=(2,), dtype=bool, numpy=array([False, True])>
Args
x ... | |
doc_1729 | Return a token. If tokens have been stacked using push_token(), pop a token off the stack. Otherwise, read one from the input stream. If reading encounters an immediate end-of-file, eof is returned (the empty string ('') in non-POSIX mode, and None in POSIX mode). | |
doc_1730 |
Convert tz-aware axis to target time zone. Parameters
tz:str or tzinfo object
axis:the axis to convert
level:int, str, default None
If axis is a MultiIndex, convert a specific level. Otherwise must be None.
copy:bool, default True
Also make a copy of the underlying data. Returns
{klass}
Object wit... | |
doc_1731 | Create a SaveAs dialog and return a file object opened in write-only mode. | |
doc_1732 | Parses a range header into a Range object. If the header is missing or malformed None is returned. ranges is a list of (start, stop) tuples where the ranges are non-inclusive. Changelog New in version 0.7. Parameters
value (Optional[str]) –
make_inclusive (bool) – Return type
Optional[werkzeug.datastructure... | |
doc_1733 |
Compute Lasso path with coordinate descent The Lasso optimization function varies for mono and multi-outputs. For mono-output tasks it is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1
For multi-output tasks it is: (1 / (2 * n_samples)) * ||Y - XW||^2_Fro + alpha * ||W||_21
Where: ||W||_21 = \sum_i \sqrt... | |
doc_1734 |
Concatenate pandas objects along a particular axis with optional set logic along the other axes. Can also add a layer of hierarchical indexing on the concatenation axis, which may be useful if the labels are the same (or overlapping) on the passed axis number. Parameters
objs:a sequence or mapping of Series or Da... | |
doc_1735 | Indicates unpack completion. Raises an Error exception if all of the data has not been unpacked. | |
doc_1736 | See Migration guide for more details. tf.compat.v1.raw_ops.LogicalAnd
tf.raw_ops.LogicalAnd(
x, y, name=None
)
Note: LogicalAnd supports broadcasting. More about broadcasting here
Args
x A Tensor of type bool.
y A Tensor of type bool.
name A name for the operation (optional).
Retur... | |
doc_1737 | Create an invalid file descriptor by opening and closing a temporary file, and returning its descriptor. | |
doc_1738 | Return a month’s calendar as an HTML table. If withyear is true the year will be included in the header, otherwise just the month name will be used. | |
doc_1739 |
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_1740 |
Clips gradient norm of an iterable of parameters. The norm is computed over all gradients together, as if they were concatenated into a single vector. Gradients are modified in-place. Parameters
parameters (Iterable[Tensor] or Tensor) – an iterable of Tensors or a single Tensor that will have gradients normalized... | |
doc_1741 | Prints the formatted representation of object followed by a newline. If sort_dicts is false (the default), dictionaries will be displayed with their keys in insertion order, otherwise the dict keys will be sorted. args and kwargs will be passed to pprint() as formatting parameters. New in version 3.8. | |
doc_1742 |
Return the eigenvalues and eigenvectors of a complex Hermitian (conjugate symmetric) or a real symmetric matrix. Returns two objects, a 1-D array containing the eigenvalues of a, and a 2-D square array or matrix (depending on the input type) of the corresponding eigenvectors (in columns). Parameters
a(…, M, M) ar... | |
doc_1743 | sklearn.utils.extmath.safe_sparse_dot(a, b, *, dense_output=False) [source]
Dot product that handle the sparse matrix case correctly. Parameters
a{ndarray, sparse matrix}
b{ndarray, sparse matrix}
dense_outputbool, default=False
When False, a and b both being sparse will yield sparse output. When True, outp... | |
doc_1744 |
Generate the “Friedman #1” regression problem. This dataset is described in Friedman [1] and Breiman [2]. Inputs X are independent features uniformly distributed on the interval [0, 1]. The output y is created according to the formula: y(X) = 10 * sin(pi * X[:, 0] * X[:, 1]) + 20 * (X[:, 2] - 0.5) ** 2 + 10 * X[:, 3]... | |
doc_1745 |
Return the Colormap instance. | |
doc_1746 | class socketserver.UnixDatagramServer(server_address, RequestHandlerClass, bind_and_activate=True)
These more infrequently used classes are similar to the TCP and UDP classes, but use Unix domain sockets; they’re not available on non-Unix platforms. The parameters are the same as for TCPServer. | |
doc_1747 | See Migration guide for more details. tf.compat.v1.keras.activations.tanh
tf.keras.activations.tanh(
x
)
For example:
a = tf.constant([-3.0,-1.0, 0.0,1.0,3.0], dtype = tf.float32)
b = tf.keras.activations.tanh(a)
b.numpy()
array([-0.9950547, -0.7615942, 0., 0.7615942, 0.9950547], dtype=float32)
Argumen... | |
doc_1748 |
True if this transform is separable in the x- and y- dimensions. | |
doc_1749 |
Return x, y values at equally spaced points in domain. Returns the x, y values at n linearly spaced points across the domain. Here y is the value of the polynomial at the points x. By default the domain is the same as that of the series instance. This method is intended mostly as a plotting aid. New in version 1.5.0... | |
doc_1750 |
Set printing options. These options determine the way floating point numbers, arrays and other NumPy objects are displayed. Parameters
precisionint or None, optional
Number of digits of precision for floating point output (default 8). May be None if floatmode is not fixed, to print as many digits as necessary t... | |
doc_1751 | Apply, test or remove a POSIX lock on an open file descriptor. fd is an open file descriptor. cmd specifies the command to use - one of F_LOCK, F_TLOCK, F_ULOCK or F_TEST. len specifies the section of the file to lock. Raises an auditing event os.lockf with arguments fd, cmd, len. Availability: Unix. New in version 3.... | |
doc_1752 | Returns an iterator over all modules in the network. Yields
Module – a module in the network Note Duplicate modules are returned only once. In the following example, l will be returned only once. Example: >>> l = nn.Linear(2, 2)
>>> net = nn.Sequential(l, l)
>>> for idx, m in enumerate(net.modules()):
pri... | |
doc_1753 |
Linear regression model that is robust to outliers. The Huber Regressor optimizes the squared loss for the samples where |(y - X'w) / sigma| < epsilon and the absolute loss for the samples where |(y - X'w) / sigma| > epsilon, where w and sigma are parameters to be optimized. The parameter sigma makes sure that if y i... | |
doc_1754 | Deserialize s (a str, bytes or bytearray instance containing a JSON document) to a Python object using this conversion table. The other arguments have the same meaning as in load(). If the data being deserialized is not a valid JSON document, a JSONDecodeError will be raised. Changed in version 3.6: s can now be of ty... | |
doc_1755 | sys.last_value
sys.last_traceback
These three variables are not always defined; they are set when an exception is not handled and the interpreter prints an error message and a stack traceback. Their intended use is to allow an interactive user to import a debugger module and engage in post-mortem debugging without ... | |
doc_1756 |
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters
valuesarray
The input v... | |
doc_1757 |
Bases: mpl_toolkits.axisartist.angle_helper.FormatterDMS __call__(direction, factor, values)[source]
Call self as a function.
deg_mark='^\\mathrm{h}'
fmt_d='$%d^\\mathrm{h}$'
fmt_d_m='$%s%d^\\mathrm{h}\\,%02d^\\mathrm{m}$'
fmt_d_m_partial='$%s%d^\\mathrm{h}\\,%02d^\\mathrm{m}\\,'
fmt_d_ms='$%s... | |
doc_1758 |
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 scalar or None
animated bool
clip_box Bbox
clip_on bool
clip_path Patch or (Path, Transform) or None
f... | |
doc_1759 |
Fit linear model. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training data
yarray-like of shape (n_samples,) or (n_samples, n_targets)
Target values. Will be cast to X’s dtype if necessary
sample_weightarray-like of shape (n_samples,), default=None
Individual weights for ea... | |
doc_1760 |
Make two interleaving half circles. A simple toy dataset to visualize clustering and classification algorithms. Read more in the User Guide. Parameters
n_samplesint or tuple of shape (2,), dtype=int, default=100
If int, the total number of points generated. If two-element tuple, number of points in each of two ... | |
doc_1761 | calculates the cross- or vector-product cross(Vector3) -> Vector3 calculates the cross-product. | |
doc_1762 | Initialize the joystick module. init() -> None This function is called automatically by pygame.init(). It initializes the joystick module. The module must be initialized before any other functions will work. It is safe to call this function more than once. | |
doc_1763 | See Migration guide for more details. tf.compat.v1.raw_ops.RandomShuffleQueue
tf.raw_ops.RandomShuffleQueue(
component_types, shapes=[], capacity=-1, min_after_dequeue=0, seed=0, seed2=0,
container='', shared_name='', name=None
)
Args
component_types A list of tf.DTypes that has length >= 1. The typ... | |
doc_1764 | Raised when there is an authentication error. | |
doc_1765 | Set the scrolling region from line top to line bottom. All scrolling actions will take place in this region. | |
doc_1766 | Run the specified WSGI application, app. | |
doc_1767 | The original URL passed to the constructor. Changed in version 3.4. Request.full_url is a property with setter, getter and a deleter. Getting full_url returns the original request URL with the fragment, if it was present. | |
doc_1768 |
DateOffset increments between calendar year begin dates. Attributes
base Returns a copy of the calling offset object with n=1 and all other attributes equal.
freqstr
kwds
month
n
name
nanos
normalize
rule_code Methods
__call__(*args, **kwargs) Call self as a function. ... | |
doc_1769 | Retrieve the currently selected item. | |
doc_1770 |
Set the artist transform. Parameters
tTransform | |
doc_1771 |
The timezone. | |
doc_1772 |
Number of days for each element. | |
doc_1773 | Adjustment factor for the underline position underline_adjustment -> float Gets or sets a factor which, when positive, is multiplied with the font's underline offset to adjust the underline position. A negative value turns an underline into a strike-through or overline. It is multiplied with the ascender. Accepted va... | |
doc_1774 | Returns a datetime of the last accessed time of the file. For storage systems unable to return the last accessed time this will raise NotImplementedError. If USE_TZ is True, returns an aware datetime, otherwise returns a naive datetime in the local timezone. | |
doc_1775 | tf.distribute.MirroredStrategy(
devices=None, cross_device_ops=None
)
This strategy is typically used for training on one machine with multiple GPUs. For TPUs, use tf.distribute.TPUStrategy. To use MirroredStrategy with multiple workers, please refer to tf.distribute.experimental.MultiWorkerMirroredStrategy. For e... | |
doc_1776 | Extra permissions to enter into the permissions table when creating this object. Add, change, delete, and view permissions are automatically created for each model. This example specifies an extra permission, can_deliver_pizzas: permissions = [('can_deliver_pizzas', 'Can deliver pizzas')]
This is a list or tuple of 2-... | |
doc_1777 |
Remove a click and the associated event from the list of clicks. Defaults to the last click. | |
doc_1778 | See Migration guide for more details. tf.compat.v1.raw_ops.QueueEnqueueMany
tf.raw_ops.QueueEnqueueMany(
handle, components, timeout_ms=-1, name=None
)
This operation slices each component tensor along the 0th dimension to make multiple queue elements. All of the tuple components must have the same size in the 0... | |
doc_1779 | codecs.encode(obj, encoding='utf-8', errors='strict')
Encodes obj using the codec registered for encoding. Errors may be given to set the desired error handling scheme. The default error handler is 'strict' meaning that encoding errors raise ValueError (or a more codec specific subclass, such as UnicodeEncodeError). ... | |
doc_1780 | '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_1781 |
Permute the dimensions of an array. This function is exactly equivalent to numpy.transpose. See also numpy.transpose
Equivalent function in top-level NumPy module. Examples >>> import numpy.ma as ma
>>> x = ma.arange(4).reshape((2,2))
>>> x[1, 1] = ma.masked
>>> x
masked_array(
data=[[0, 1],
[2, --]],... | |
doc_1782 | os.spawnle(mode, path, ..., env)
os.spawnlp(mode, file, ...)
os.spawnlpe(mode, file, ..., env)
os.spawnv(mode, path, args)
os.spawnve(mode, path, args, env)
os.spawnvp(mode, file, args)
os.spawnvpe(mode, file, args, env)
Execute the program path in a new process. (Note that the subprocess module provides ... | |
doc_1783 |
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters
match
A filter criterion for the matches. This can be
None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct... | |
doc_1784 |
Implements L-BFGS algorithm, heavily inspired by minFunc <https://www.cs.ubc.ca/~schmidtm/Software/minFunc.html>. Warning This optimizer doesn’t support per-parameter options and parameter groups (there can be only one). Warning Right now all parameters have to be on a single device. This will be improved in the f... | |
doc_1785 |
Fit the model according to the given training data. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and n_features is the number of features.
yarray-like of shape (n_samples,)
Target vector relative to X.
sample_weightarray... | |
doc_1786 | Register a custom template test. Works exactly like the template_test() decorator. Changelog New in version 0.10. Parameters
name (Optional[str]) – the optional name of the test, otherwise the function name will be used.
f (Callable[[Any], bool]) – Return type
None | |
doc_1787 | See Migration guide for more details. tf.compat.v1.raw_ops.Iterator
tf.raw_ops.Iterator(
shared_name, container, output_types, output_shapes, name=None
)
Args
shared_name A string.
container A string.
output_types A list of tf.DTypes that has length >= 1.
output_shapes A list of shapes... | |
doc_1788 |
Map new values to integer identifiers. Parameters
dataiterable of str or bytes
Raises
TypeError
If elements in data are neither str nor bytes. | |
doc_1789 |
Add node n while updating the maximum node id. See also networkx.Graph.add_node(). | |
doc_1790 |
At the end of every ufunc, this method is called on the input object with the highest array priority, or the output object if one was specified. The ufunc-computed array is passed in and whatever is returned is passed to the user. Subclasses inherit a default implementation of this method, which transforms the array ... | |
doc_1791 | List of type map file names commonly installed. These files are typically named mime.types and are installed in different locations by different packages. | |
doc_1792 |
Create a disk level set with binary values. Parameters
image_shapetuple of positive integers
Shape of the image
centertuple of positive integers, optional
Coordinates of the center of the disk given in (row, column). If not given, it defaults to the center of the image.
radiusfloat, optional
Radius of t... | |
doc_1793 |
[Deprecated] Notes Deprecated since version 3.5: | |
doc_1794 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalTakeWhileDataset
tf.raw_ops.ExperimentalTakeWhileDataset(
input_dataset, other_arguments, predicate, output_types, output_shapes,
name=None
)
The predicate function must return a scalar boolean and accept the following arguments: One ten... | |
doc_1795 |
Called when this tool gets used. This method is called by ToolManager.trigger_tool. Parameters
eventEvent
The canvas event that caused this tool to be called.
senderobject
Object that requested the tool to be triggered.
dataobject
Extra data. | |
doc_1796 | This takes a binary file for writing a pickle data stream. The optional protocol argument, an integer, tells the pickler to use the given protocol; supported protocols are 0 to HIGHEST_PROTOCOL. If not specified, the default is DEFAULT_PROTOCOL. If a negative number is specified, HIGHEST_PROTOCOL is selected. The file ... | |
doc_1797 |
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_1798 |
Create new MultiIndex from current that removes unused levels. Unused level(s) means levels that are not expressed in the labels. The resulting MultiIndex will have the same outward appearance, meaning the same .values and ordering. It will also be .equals() to the original. Returns
MultiIndex
Examples
>>> mi ... | |
doc_1799 |
Alias for set_linewidth. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.