_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_2100 |
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_2101 |
Set the alpha value used for blending - not supported on all backends. Parameters
alphascalar or None
alpha must be within the 0-1 range, inclusive. | |
doc_2102 | [<Author: Terry Gilliam>, <Author: Terry Jones>]
This is a very fragile solution as it requires the user to know an exact substring of the author’s name. A better approach could be a case-insensitive match (icontains), but this is only marginally better. A database’s more advanced comparison functions If you’re using ... | |
doc_2103 |
Bases: matplotlib.collections.Collection A generic collection of patches. This makes it easier to assign a colormap to a heterogeneous collection of patches. This also may improve plotting speed, since PatchCollection will draw faster than a large number of patches. patches
a sequence of Patch objects. This list ma... | |
doc_2104 | Serialize obj as a JSON formatted stream to fp (a .write()-supporting file-like object) using this conversion table. If skipkeys is true (default: False), then dict keys that are not of a basic type (str, int, float, bool, None) will be skipped instead of raising a TypeError. The json module always produces str objects... | |
doc_2105 |
Add a subfigure to this figure or subfigure. A subfigure has the same artist methods as a figure, and is logically the same as a figure, but cannot print itself. See Figure subfigures. Parameters
nrows, ncolsint, default: 1
Number of rows/columns of the subfigure grid.
squeezebool, default: True
If True, ex... | |
doc_2106 |
Set the alpha value used for blending - not supported on all backends. Parameters
alphaarray-like or scalar or None
All values must be within the 0-1 range, inclusive. Masked values and nans are not supported. | |
doc_2107 |
Convert the Timestamp to a NumPy datetime64. New in version 0.25.0. This is an alias method for Timestamp.to_datetime64(). The dtype and copy parameters are available here only for compatibility. Their values will not affect the return value. Returns
numpy.datetime64
See also DatetimeIndex.to_numpy
Similar... | |
doc_2108 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedReshape
tf.raw_ops.QuantizedReshape(
tensor, shape, input_min, input_max, name=None
)
<!-- Tabular view -->
<table class="responsive fixed orange">
<colgroup><col width="214px"><col></colgroup>
<tr><th colspan="2"><h2 class="add-link">Args</h2... | |
doc_2109 |
Set the mouse buttons for 3D rotation and zooming. Parameters
rotate_btnint or list of int, default: 1
The mouse button or buttons to use for 3D rotation of the axes.
zoom_btnint or list of int, default: 3
The mouse button or buttons to use to zoom the 3D axes. | |
doc_2110 |
Return Not equal to of series and other, element-wise (binary operator ne). Equivalent to series != other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters
other:Series or scalar value
fill_value:None or float value, default None (NaN)
Fill existing missing ... | |
doc_2111 |
alias of matplotlib.backends.backend_pgf.FigureCanvasPgf
classmatplotlib.backends.backend_pgf.FigureCanvasPgf(figure=None)[source]
Bases: matplotlib.backend_bases.FigureCanvasBase draw()[source]
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced ... | |
doc_2112 | Applies a 1D adaptive max pooling over an input signal composed of several input planes. See AdaptiveMaxPool1d for details and output shape. Parameters
output_size – the target output size (single integer)
return_indices – whether to return pooling indices. Default: False | |
doc_2113 |
Clear the Axes. | |
doc_2114 | See Migration guide for more details. tf.compat.v1.raw_ops.Conv2DBackpropFilter
tf.raw_ops.Conv2DBackpropFilter(
input, filter_sizes, out_backprop, strides, padding, use_cudnn_on_gpu=True,
explicit_paddings=[], data_format='NHWC', dilations=[1, 1, 1, 1],
name=None
)
Args
input A Tensor. Must be ... | |
doc_2115 |
Return filter function to be used for agg filter. | |
doc_2116 |
Utility pruning method that does not prune any units but generates the pruning parametrization with a mask of ones.
classmethod apply(module, name) [source]
Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parame... | |
doc_2117 | Return a tuple containing all the subgroups of the match, from 1 up to however many groups are in the pattern. The default argument is used for groups that did not participate in the match; it defaults to None. For example: >>> m = re.match(r"(\d+)\.(\d+)", "24.1632")
>>> m.groups()
('24', '1632')
If we make the decim... | |
doc_2118 | tf.compat.v1.distribute.OneDeviceStrategy(
device
)
Using this strategy will place any variables created in its scope on the specified device. Input distributed through this strategy will be prefetched to the specified device. Moreover, any functions called via strategy.run will also be placed on the specified dev... | |
doc_2119 | Returns the EWKB of this Geometry in hexadecimal form. This is an extension of the WKB specification that includes the SRID value that are a part of this geometry. | |
doc_2120 | See Migration guide for more details. tf.compat.v1.raw_ops.QueueSize
tf.raw_ops.QueueSize(
handle, name=None
)
Args
handle A Tensor of type mutable string. The handle to a queue.
name A name for the operation (optional).
Returns A Tensor of type int32. | |
doc_2121 |
Callback processing for the mouse cursor leaving the canvas. Backend derived classes should call this function when leaving canvas. Parameters
guiEvent
The native UI event that generated the Matplotlib event. | |
doc_2122 |
Get parameters of this kernel. 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_2123 | Add prefix to the beginning of selected lines in text. Lines are separated by calling text.splitlines(True). By default, prefix is added to all lines that do not consist solely of whitespace (including any line endings). For example: >>> s = 'hello\n\n \nworld'
>>> indent(s, ' ')
' hello\n\n \n world'
The optional ... | |
doc_2124 | See Migration guide for more details. tf.compat.v1.raw_ops.MatrixInverse
tf.raw_ops.MatrixInverse(
input, adjoint=False, name=None
)
The input is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. The output is a tensor of the same shape as the input containing the inverse for all ... | |
doc_2125 |
Return self-value. | |
doc_2126 | See Migration guide for more details. tf.compat.v1.raw_ops.Exp
tf.raw_ops.Exp(
x, name=None
)
This function computes the exponential of every element in the input tensor. i.e. exp(x) or e^(x), where x is the input tensor. e denotes Euler's number and is approximately equal to 2.718281. Output is positive for any... | |
doc_2127 | See Migration guide for more details. tf.compat.v1.errors.InternalError
tf.errors.InternalError(
node_def, op, message
)
This exception is raised when some invariant expected by the runtime has been broken. Catching this exception is not recommended.
Attributes
error_code The integer error code that des... | |
doc_2128 |
Purely integer-location based indexing for selection by position. .iloc[] is primarily integer position based (from 0 to length-1 of the axis), but may also be used with a boolean array. Allowed inputs are: An integer, e.g. 5. A list or array of integers, e.g. [4, 3, 0]. A slice object with ints, e.g. 1:7. A boolean... | |
doc_2129 | A tuple of positional arguments values. Dynamically computed from the arguments attribute. | |
doc_2130 |
Replace values where the condition is False. Parameters
cond:bool Series/DataFrame, array-like, or callable
Where cond is True, keep the original value. Where False, replace with corresponding value from other. If cond is callable, it is computed on the Series/DataFrame and should return boolean Series/DataFram... | |
doc_2131 | turtle.turtlesize(stretch_wid=None, stretch_len=None, outline=None)
Parameters
stretch_wid – positive number
stretch_len – positive number
outline – positive number Return or set the pen’s attributes x/y-stretchfactors and/or outline. Set resizemode to “user”. If and only if resizemode is set to “user”, the ... | |
doc_2132 | Module: email.mime.nonmultipart A subclass of MIMEBase, this is an intermediate base class for MIME messages that are not multipart. The primary purpose of this class is to prevent the use of the attach() method, which only makes sense for multipart messages. If attach() is called, a MultipartConversionError exception ... | |
doc_2133 |
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_2134 | axes_grid1.anchored_artists
axes_grid1.axes_divider Helper classes to adjust the positions of multiple axes at drawing time.
axes_grid1.axes_grid
axes_grid1.axes_rgb
axes_grid1.axes_size Provides classes of simple units that will be used with AxesDivider class (or others) to determine the size of each axes. ... | |
doc_2135 | See Migration guide for more details. tf.compat.v1.raw_ops.LookupTableExportV2
tf.raw_ops.LookupTableExportV2(
table_handle, Tkeys, Tvalues, name=None
)
Args
table_handle A Tensor of type resource. Handle to the table.
Tkeys A tf.DType.
Tvalues A tf.DType.
name A name for the operation... | |
doc_2136 |
Computes the inverse of rfftn. This function computes the inverse of the N-dimensional discrete Fourier Transform for real input over any number of axes in an M-dimensional array by means of the Fast Fourier Transform (FFT). In other words, irfftn(rfftn(a), a.shape) == a to within numerical accuracy. (The a.shape is ... | |
doc_2137 | See Migration guide for more details. tf.compat.v1.keras.layers.Dot
tf.keras.layers.Dot(
axes, normalize=False, **kwargs
)
E.g. if applied to a list of two tensors a and b of shape (batch_size, n), the output will be a tensor of shape (batch_size, 1) where each entry i will be the dot product between a[i] and b[... | |
doc_2138 | See Migration guide for more details. tf.compat.v1.raw_ops.If
tf.raw_ops.If(
cond, input, Tout, then_branch, else_branch, output_shapes=[], name=None
)
Args
cond A Tensor. A Tensor. If the tensor is a scalar of non-boolean type, the scalar is converted to a boolean according to the following rule: if th... | |
doc_2139 | class sklearn.preprocessing.MinMaxScaler(feature_range=0, 1, *, copy=True, clip=False) [source]
Transform features by scaling each feature to a given range. This estimator scales and translates each feature individually such that it is in the given range on the training set, e.g. between zero and one. The transformat... | |
doc_2140 | Write the string s to the stream and return the number of characters written. | |
doc_2141 | See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.ClusterResolver This defines the skeleton for all implementations of ClusterResolvers. ClusterResolvers are a way for TensorFlow to communicate with various cluster management systems (e.g. GCE, AWS, etc...) and gives TensorFlow necessary i... | |
doc_2142 |
Alias for get_facecolor. | |
doc_2143 |
Check whether two Interval objects overlap. Two intervals overlap if they share a common point, including closed endpoints. Intervals that only have an open endpoint in common do not overlap. Parameters
other:Interval
Interval to check against for an overlap. Returns
bool
True if the two intervals overlap... | |
doc_2144 |
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
antialiased or aa bool
clip_box Bbox
clip_on bool
clip_path Patch or (Pat... | |
doc_2145 | Returns the log-transformed bounds on the theta. Returns
boundsndarray of shape (n_dims, 2)
The log-transformed bounds on the kernel’s hyperparameters theta | |
doc_2146 |
This is an alias of random_sample. See random_sample for the complete documentation. | |
doc_2147 | tf.metrics.MeanSquaredLogarithmicError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.MeanSquaredLogarithmicError
tf.keras.metrics.MeanSquaredLogarithmicError(
name='mean_squared_logarithmic_error', dtype=None
)
Args
name (Optional) string name of the metri... | |
doc_2148 |
Bases: torch.distributions.exp_family.ExponentialFamily Beta distribution parameterized by concentration1 and concentration0. Example: >>> m = Beta(torch.tensor([0.5]), torch.tensor([0.5]))
>>> m.sample() # Beta distributed with concentration concentration1 and concentration0
tensor([ 0.1046])
Parameters
concen... | |
doc_2149 | Put an item into the queue. If the queue is full, wait until a free slot is available before adding the item. | |
doc_2150 | Identify yourself to the SMTP server using HELO. The hostname argument defaults to the fully qualified domain name of the local host. The message returned by the server is stored as the helo_resp attribute of the object. In normal operation it should not be necessary to call this method explicitly. It will be implicitl... | |
doc_2151 | Return the group database entry for the given group name. KeyError is raised if the entry asked for cannot be found. | |
doc_2152 |
Return the Transform instance mapping patch coordinates to data coordinates. For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5. | |
doc_2153 | New in Django 3.2. Property that returns a pathlib.Path representing the absolute filesystem path to a template for rendering the plain-text representation of the exception. Defaults to the Django provided template. | |
doc_2154 | '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_2155 | In-place version of atanh() | |
doc_2156 | See Migration guide for more details. tf.compat.v1.distribute.Server, tf.compat.v1.train.Server
tf.distribute.Server(
server_or_cluster_def, job_name=None, task_index=None, protocol=None,
config=None, start=True
)
A tf.distribute.Server instance encapsulates a set of devices and a tf.compat.v1.Session target... | |
doc_2157 | See Migration guide for more details. tf.compat.v1.raw_ops.DeviceIndex
tf.raw_ops.DeviceIndex(
device_names, name=None
)
Given a list of device names, this operation returns the index of the device this op runs. The length of the list is returned in two cases: (1) Device does not exist in the given device list. ... | |
doc_2158 |
Alias for get_linestyle. | |
doc_2159 | Checks for buffer full or a record at the flushLevel or higher. | |
doc_2160 | Read a data URL. This kind of URL contains the content encoded in the URL itself. The data URL syntax is specified in RFC 2397. This implementation ignores white spaces in base64 encoded data URLs so the URL may be wrapped in whatever source file it comes from. But even though some browsers don’t mind about a missing p... | |
doc_2161 | class sklearn.preprocessing.PowerTransformer(method='yeo-johnson', *, standardize=True, copy=True) [source]
Apply a power transform featurewise to make data more Gaussian-like. Power transforms are a family of parametric, monotonic transformations that are applied to make data more Gaussian-like. This is useful for m... | |
doc_2162 | See Migration guide for more details. tf.compat.v1.raw_ops.Const
tf.raw_ops.Const(
value, dtype, name=None
)
Args
value A tf.TensorProto. Attr value is the tensor to return.
dtype A tf.DType.
name A name for the operation (optional).
Returns A Tensor of type dtype. | |
doc_2163 |
String used in lieu of missing data when a masked array is printed. By default, this string is '--'. | |
doc_2164 | Returns the ISO-8601 week day with day 1 being Monday and day 7 being Sunday.
lookup_name = 'iso_week_day' | |
doc_2165 |
Compute the coordinates of Haar-like features. Parameters
widthint
Width of the detection window.
heightint
Height of the detection window.
feature_typestr or list of str or None, optional
The type of feature to consider: ‘type-2-x’: 2 rectangles varying along the x axis; ‘type-2-y’: 2 rectangles varyi... | |
doc_2166 | A form for generating and emailing a one-time use link to reset a user’s password.
send_mail(subject_template_name, email_template_name, context, from_email, to_email, html_email_template_name=None)
Uses the arguments to send an EmailMultiAlternatives. Can be overridden to customize how the email is sent to the use... | |
doc_2167 | imghdr.what(filename, h=None)
Tests the image data contained in the file named by filename, and returns a string describing the image type. If optional h is provided, the filename is ignored and h is assumed to contain the byte stream to test. Changed in version 3.6: Accepts a path-like object.
The following imag... | |
doc_2168 | Close the iterator and free acquired resources. This is called automatically when the iterator is exhausted or garbage collected, or when an error happens during iterating. However it is advisable to call it explicitly or use the with statement. New in version 3.6. | |
doc_2169 | The WSGI input stream. In general it’s a bad idea to use this one because you can easily read past the boundary. Use the stream instead. | |
doc_2170 | A string that is ready to be safely inserted into an HTML or XML document, either because it was escaped or because it was marked safe. Passing an object to the constructor converts it to text and wraps it to mark it safe without escaping. To escape the text, use the escape() class method instead. >>> Markup("Hello, <e... | |
doc_2171 |
Check whether all characters in each string are alphanumeric. This is equivalent to running the Python string method str.isalnum() for each element of the Series/Index. If a string has zero characters, False is returned for that check. Returns
Series or Index of bool
Series or Index of boolean values with the sam... | |
doc_2172 | faulthandler.dump_traceback(file=sys.stderr, all_threads=True)
Dump the tracebacks of all threads into file. If all_threads is False, dump only the current thread. Changed in version 3.5: Added support for passing file descriptor to this function.
Fault handler state
faulthandler.enable(file=sys.stderr, all_thr... | |
doc_2173 |
Generate a square mask for the sequence. The masked positions are filled with float(‘-inf’). Unmasked positions are filled with float(0.0). | |
doc_2174 | Callback function for URL defaults for all view functions of the application. It’s called with the endpoint and values and should update the values passed in place. Parameters
f (Callable[[str, dict], None]) – Return type
Callable[[str, dict], None] | |
doc_2175 | See Migration guide for more details. tf.compat.v1.raw_ops.ImmutableConst
tf.raw_ops.ImmutableConst(
dtype, shape, memory_region_name, name=None
)
The current implementation memmaps the tensor from a file.
Args
dtype A tf.DType. Type of the returned tensor.
shape A tf.TensorShape or list of ints. ... | |
doc_2176 |
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters
Xarray-like of shape (n_samples, n_features)
Test samples.
yarray-like of shap... | |
doc_2177 | Sometimes it is necessary to set additional headers in a view. Because views do not have to return response objects but can return a value that is converted into a response object by Flask itself, it becomes tricky to add headers to it. This function can be called instead of using a return and you will get a response o... | |
doc_2178 | Disable the data property to avoid reading from the input stream. Deprecated since version 2.0: Will be removed in Werkzeug 2.1. Create the request with shallow=True instead. Changelog New in version 0.9. | |
doc_2179 |
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_2180 |
Get the current way of handling floating-point errors. Returns
resdict
A dictionary with keys “divide”, “over”, “under”, and “invalid”, whose values are from the strings “ignore”, “print”, “log”, “warn”, “raise”, and “call”. The keys represent possible floating-point exceptions, and the values define how these ... | |
doc_2181 |
Return the week number of the year. Examples
>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.week
11 | |
doc_2182 |
Draw samples from a Gumbel distribution. Draw samples from a Gumbel distribution with specified location and scale. For more information on the Gumbel distribution, see Notes and References below. Note New code should use the gumbel method of a default_rng() instance instead; please see the Quick Start. Parameters... | |
doc_2183 |
Fit the radius neighbors transformer from the training dataset. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples, n_samples) if metric=’precomputed’
Training data. Returns
selfRadiusNeighborsTransformer
The fitted radius neighbors transformer. | |
doc_2184 |
Get the width, height, and descent (offset from the bottom to the baseline), in display coords, of the string s with FontProperties prop. | |
doc_2185 |
Compute the F1 score, also known as balanced F-score or F-measure. The F1 score can be interpreted as a weighted average of the precision and recall, where an F1 score reaches its best value at 1 and worst score at 0. The relative contribution of precision and recall to the F1 score are equal. The formula for the F1 ... | |
doc_2186 |
Divide one Hermite series by another. Returns the quotient-with-remainder of two Hermite 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 Hermite series coefficients... | |
doc_2187 |
Return a list of URLs, one for each element of the collection. The list contains None for elements without a URL. See Hyperlinks for an example. | |
doc_2188 |
Other Members
version '2.4.0' | |
doc_2189 |
Call self as a function. | |
doc_2190 | """
Build the Cython demonstrations of low-level access to NumPy random
Usage: python setup.py build_ext -i
"""
import setuptools # triggers monkeypatching distutils
from distutils.core import setup
from os.path import dirname, join, abspath
import numpy as np
from Cython.Build import cythonize
from numpy.distutils.... | |
doc_2191 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_2192 |
Returns a str object representing arbitrary object s. Treats bytestrings using the encoding codec. If strings_only is True, don’t convert (some) non-string-like objects. | |
doc_2193 |
Bit-flags describing how this data type is to be interpreted. Bit-masks are in numpy.core.multiarray as the constants ITEM_HASOBJECT, LIST_PICKLE, ITEM_IS_POINTER, NEEDS_INIT, NEEDS_PYAPI, USE_GETITEM, USE_SETITEM. A full explanation of these flags is in C-API documentation; they are largely useful for user-defined d... | |
doc_2194 | class sklearn.preprocessing.RobustScaler(*, with_centering=True, with_scaling=True, quantile_range=25.0, 75.0, copy=True, unit_variance=False) [source]
Scale features using statistics that are robust to outliers. This Scaler removes the median and scales the data according to the quantile range (defaults to IQR: Inte... | |
doc_2195 |
Draw contour lines on an unstructured triangular grid. The triangulation can be specified in one of two ways; either tricontour(triangulation, ...)
where triangulation is a Triangulation object, or tricontour(x, y, ...)
tricontour(x, y, triangles, ...)
tricontour(x, y, triangles=triangles, ...)
tricontour(x, y, mask... | |
doc_2196 |
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_2197 | Returns the normalized RGBA values of the Color. normalize() -> tuple Returns the normalized RGBA values of the Color as floating point values. | |
doc_2198 | See Migration guide for more details. tf.compat.v1.io.parse_sequence_example
tf.io.parse_sequence_example(
serialized, context_features=None, sequence_features=None, example_names=None,
name=None
)
Parses a vector of serialized SequenceExample protos given in serialized. This op parses serialized sequence ex... | |
doc_2199 | torch.cuda.can_device_access_peer(device, peer_device) [source]
Checks if peer access between two devices is possible.
torch.cuda.current_blas_handle() [source]
Returns cublasHandle_t pointer to current cuBLAS handle
torch.cuda.current_device() [source]
Returns the index of a currently selected device.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.