_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_3900 | class sklearn.ensemble.HistGradientBoostingClassifier(loss='auto', *, learning_rate=0.1, max_iter=100, max_leaf_nodes=31, max_depth=None, min_samples_leaf=20, l2_regularization=0.0, max_bins=255, categorical_features=None, monotonic_cst=None, warm_start=False, early_stopping='auto', scoring='loss', validation_fraction=... | |
doc_3901 |
Reduce X to the selected features. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
X_rarray of shape [n_samples, n_selected_features]
The input samples with only the selected features. | |
doc_3902 |
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 array-like or scalar or None
animated bool
antialiased or aa or antialiaseds bool or list of bools
array a... | |
doc_3903 |
Get Less than or equal to of dataframe and other, element-wise (binary operator le). Among flexible wrappers (eq, ne, le, lt, ge, gt) to comparison operators. Equivalent to ==, !=, <=, <, >=, > with support to choose axis (rows or columns) and level for comparison. Parameters
other:scalar, sequence, Series, or Da... | |
doc_3904 | tf.logical_and Compat aliases for migration See Migration guide for more details. tf.compat.v1.logical_and, tf.compat.v1.math.logical_and
tf.math.logical_and(
x, y, name=None
)
The operation works for the following input types: Two single elements of type bool
One tf.Tensor of type bool and one single bool, wh... | |
doc_3905 | Return whether the call has completed. | |
doc_3906 |
The length of one element in bytes. | |
doc_3907 | A raise statement. exc is the exception object to be raised, normally a Call or Name, or None for a standalone raise. cause is the optional part for y in raise x from y. >>> print(ast.dump(ast.parse('raise x from y'), indent=4))
Module(
body=[
Raise(
exc=Name(id='x', ctx=Load()),
cau... | |
doc_3908 |
Function that measures the Binary Cross Entropy between the target and the output. See BCELoss for details. Parameters
input – Tensor of arbitrary shape
target – Tensor of the same shape as input
weight (Tensor, optional) – a manual rescaling weight if provided it’s repeated to match input tensor shape
size_av... | |
doc_3909 |
Return offset of the container. | |
doc_3910 |
Fits the imputer on X and return the transformed X. Parameters
Xarray-like, shape (n_samples, n_features)
Input data, where “n_samples” is the number of samples and “n_features” is the number of features.
yignored.
Returns
Xtarray-like, shape (n_samples, n_features)
The imputed input data. | |
doc_3911 | See Migration guide for more details. tf.compat.v1.raw_ops.ScatterNdUpdate
tf.raw_ops.ScatterNdUpdate(
ref, indices, updates, use_locking=True, name=None
)
variable according to indices. ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indices into ref. It... | |
doc_3912 | Adds a buffer to the module. This is typically used to register a buffer that should not to be considered a model parameter. For example, BatchNorm’s running_mean is not a parameter, but is part of the module’s state. Buffers, by default, are persistent and will be saved alongside parameters. This behavior can be chang... | |
doc_3913 | CRC-32 of the uncompressed file. | |
doc_3914 |
Return a list of the child Artists of this Artist. | |
doc_3915 |
Return a with each element rounded to the given number of decimals. Refer to numpy.around for full documentation. See also numpy.around
equivalent function | |
doc_3916 |
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_3917 |
Computes the additive chi-squared kernel between observations in X and Y. The chi-squared kernel is computed between each pair of rows in X and Y. X and Y have to be non-negative. This kernel is most commonly applied to histograms. The chi-squared kernel is given by: k(x, y) = -Sum [(x - y)^2 / (x + y)]
It can be in... | |
doc_3918 | Captured stderr from the child process. A bytes sequence, or a string if run() was called with an encoding, errors, or text=True. None if stderr was not captured. | |
doc_3919 | Gets or sets whether the font should be rendered with an underline. underline -> bool Whether the font should be rendered in underline. When set to True, all rendered fonts will include an underline. The underline is always one pixel thick, regardless of font size. This can be mixed with the bold and italic modes. N... | |
doc_3920 |
Explicitly mark a string as safe for (HTML) output purposes. The returned object can be used everywhere a string is appropriate. Can be called multiple times on a single string. Can also be used as a decorator. For building up fragments of HTML, you should normally be using django.utils.html.format_html() instead. St... | |
doc_3921 |
Return the maximum theta limit in degrees. | |
doc_3922 |
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_3923 | See Migration guide for more details. tf.compat.v1.signal.irfft3d, tf.compat.v1.spectral.irfft3d
tf.signal.irfft3d(
input_tensor, fft_length=None, name=None
)
Computes the inverse 3-dimensional discrete Fourier transform of a real-valued signal over the inner-most 3 dimensions of input. The inner-most 3 dimensio... | |
doc_3924 |
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_3925 |
Return the Bbox bounding the text, in display units. In addition to being used internally, this is useful for specifying clickable regions in a png file on a web page. Parameters
rendererRenderer, optional
A renderer is needed to compute the bounding box. If the artist has already been drawn, the renderer is ca... | |
doc_3926 |
Bases: matplotlib.patches.Patch A regular polygon patch. Parameters
xy(float, float)
The center position.
numVerticesint
The number of vertices.
radiusfloat
The distance from the center to each of the vertices.
orientationfloat
The polygon rotation angle (in radians). **kwargs
Patch properties: ... | |
doc_3927 | types.LambdaType
The type of user-defined functions and functions created by lambda expressions. Raises an auditing event function.__new__ with argument code. The audit event only occurs for direct instantiation of function objects, and is not raised for normal compilation. | |
doc_3928 |
Return an iterable of the ParameterDict key/value pairs. | |
doc_3929 | tf.experimental.numpy.take(
a, indices, axis=None, out=None, mode='clip'
)
out argument is not supported, and default mode is clip. See the NumPy documentation for numpy.take. | |
doc_3930 | Specifies the type pointed to. | |
doc_3931 |
Return local mode of an image. The mode is the value that appears most often in the local histogram. Parameters
image([P,] M, N) ndarray (uint8, uint16)
Input image.
selemndarray
The neighborhood expressed as an ndarray of 1’s and 0’s.
out([P,] M, N) array (same dtype as input)
If None, a new array is a... | |
doc_3932 | Returns the standard deviation of the data in the provided expression. Default alias: <field>__stddev
Return type: float if input is int, otherwise same as input field, or output_field if supplied Has one optional argument:
sample
By default, StdDev returns the population standard deviation. However, if sample=T... | |
doc_3933 | Kicks off the distributed backward pass using the provided roots. This currently implements the FAST mode algorithm which assumes all RPC messages sent in the same distributed autograd context across workers would be part of the autograd graph during the backward pass. We use the provided roots to discover the autograd... | |
doc_3934 | Casts all floating point parameters and buffers to double datatype. Returns
self Return type
Module | |
doc_3935 | Make an iterator that returns evenly spaced values starting with number start. Often used as an argument to map() to generate consecutive data points. Also, used with zip() to add sequence numbers. Roughly equivalent to: def count(start=0, step=1):
# count(10) --> 10 11 12 13 14 ...
# count(2.5, 0.5) -> 2.5 3.0... | |
doc_3936 |
Compute data precision matrix with the generative model. Equals the inverse of the covariance but computed with the matrix inversion lemma for efficiency. Returns
precisionarray, shape=(n_features, n_features)
Estimated precision of data. | |
doc_3937 | sklearn.datasets.make_hastie_10_2(n_samples=12000, *, random_state=None) [source]
Generates data for binary classification used in Hastie et al. 2009, Example 10.2. The ten features are standard independent Gaussian and the target y is defined by: y[i] = 1 if np.sum(X[i] ** 2) > 9.34 else -1
Read more in the User Gu... | |
doc_3938 | Initialize curses and call another callable object, func, which should be the rest of your curses-using application. If the application raises an exception, this function will restore the terminal to a sane state before re-raising the exception and generating a traceback. The callable object func is then passed the mai... | |
doc_3939 |
Determine all minima of the image with depth >= h. The local minima are defined as connected sets of pixels with equal grey level strictly smaller than the grey levels of all pixels in direct neighborhood of the set. A local minimum M of depth h is a local minimum for which there is at least one path joining M with a... | |
doc_3940 | The name of the URLConf keyword argument that contains the primary key. By default, pk_url_kwarg is 'pk'. | |
doc_3941 | accessor for ‘max-age’ | |
doc_3942 |
Draw samples from a Poisson distribution. The Poisson distribution is the limit of the binomial distribution for large N. Note New code should use the poisson method of a default_rng() instance instead; please see the Quick Start. Parameters
lamfloat or array_like of floats
Expected number of events occurring... | |
doc_3943 | Height and width of the widget map (default is 400x600). | |
doc_3944 | The Package type is defined as Union[str, ModuleType]. This means that where the function describes accepting a Package, you can pass in either a string or a module. Module objects must have a resolvable __spec__.submodule_search_locations that is not None. | |
doc_3945 | Releases the lock. The lock must have been acquired earlier, but not necessarily by the same thread. | |
doc_3946 | Token value for "[". | |
doc_3947 | Parses an XML section from a string constant. This function can be used to embed “XML literals” in Python code. text is a string containing XML data. parser is an optional parser instance. If not given, the standard XMLParser parser is used. Returns an Element instance. | |
doc_3948 | See Migration guide for more details. tf.compat.v1.raw_ops.MatrixSquareRoot
tf.raw_ops.MatrixSquareRoot(
input, name=None
)
matmul(sqrtm(A), sqrtm(A)) = A The input matrix should be invertible. If the input matrix is real, it should have no eigenvalues which are real and negative (pairs of complex conjugate eige... | |
doc_3949 | The suite() function parses the parameter source as if it were an input to compile(source, 'file.py', 'exec'). If the parse succeeds, an ST object is created to hold the internal parse tree representation, otherwise an appropriate exception is raised. | |
doc_3950 | See Migration guide for more details. tf.compat.v1.keras.applications.imagenet_utils.preprocess_input
tf.keras.applications.imagenet_utils.preprocess_input(
x, data_format=None, mode='caffe'
)
Usage example with applications.MobileNet: i = tf.keras.layers.Input([None, None, 3], dtype = tf.uint8)
x = tf.cast(i, t... | |
doc_3951 |
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo... | |
doc_3952 |
For GUI backends, show the figure window and redraw. For non-GUI backends, raise an exception, unless running headless (i.e. on Linux with an unset DISPLAY); this exception is converted to a warning in Figure.show. | |
doc_3953 | Return the number of Thread objects currently alive. The returned count is equal to the length of the list returned by enumerate(). | |
doc_3954 | get the number of trackballs on a Joystick get_numballs() -> int Returns the number of trackball devices on a Joystick. These devices work similar to a mouse but they have no absolute position; they only have relative amounts of movement. The pygame.JOYBALLMOTION event will be sent when the trackball is rolled. It wi... | |
doc_3955 |
Convert an image to floating point format. This function is similar to img_as_float64, but will not convert lower-precision floating point arrays to float64. Parameters
imagendarray
Input image.
force_copybool, optional
Force a copy of the data, irrespective of its current dtype. Returns
outndarray of... | |
doc_3956 | Determines if a type conversion is allowed under PyTorch casting rules described in the type promotion documentation. Parameters
from (dpython:type) – The original torch.dtype.
to (dpython:type) – The target torch.dtype. Example: >>> torch.can_cast(torch.double, torch.float)
True
>>> torch.can_cast(torch.float,... | |
doc_3957 |
Other Members
COMPILER_VERSION '7.3.1 20180303'
GIT_VERSION 'v2.4.0-rc4-71-g582c8d236cb'
GRAPH_DEF_VERSION 561
GRAPH_DEF_VERSION_MIN_CONSUMER 0
GRAPH_DEF_VERSION_MIN_PRODUCER 0
VERSION '2.4.0' | |
doc_3958 | True if arbitrary Unicode strings can be used as file names (within limitations imposed by the file system). | |
doc_3959 | tf.data.experimental.RandomDataset(
seed=None
)
Attributes
element_spec The type specification of an element of this dataset.
dataset = tf.data.Dataset.from_tensor_slices([1, 2, 3])
dataset.element_spec
TensorSpec(shape=(), dtype=tf.int32, name=None)
Methods apply View source
apply(
transformati... | |
doc_3960 |
Creates a biclustering for X. Parameters
Xarray-like of shape (n_samples, n_features)
yIgnored | |
doc_3961 |
Alias for set_linewidth. | |
doc_3962 | Platform
Windows The ioctl() method is a limited interface to the WSAIoctl system interface. Please refer to the Win32 documentation for more information. On other platforms, the generic fcntl.fcntl() and fcntl.ioctl() functions may be used; they accept a socket object as their first argument. Currently only the fo... | |
doc_3963 | Set an attribute value from a string, given a namespaceURI and a qname. Note that a qname is the whole attribute name. This is different than above. | |
doc_3964 |
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_3965 | interactively scale an image using smoothscale scaletest.main(imagefile, convert_alpha=False, run_speed_test=True) -> None arguments: imagefile - file name of source image (required)
convert_alpha - use convert_alpha() on the surf (default False)
run_speed_test - (default False) A smoothscale example that resized an ... | |
doc_3966 | Write audio frames, without correcting nframes. Changed in version 3.4: Any bytes-like object is now accepted. | |
doc_3967 | See Migration guide for more details. tf.compat.v1.raw_ops.SegmentSum
tf.raw_ops.SegmentSum(
data, segment_ids, name=None
)
Read the section on segmentation for an explanation of segments. Computes a tensor such that \(output_i = \sum_j data_j\) where sum is over j such that segment_ids[j] == i. If the sum is em... | |
doc_3968 |
Bases: matplotlib.transforms.TransformedPath A TransformedPatchPath caches a non-affine transformed copy of the Patch. This cached copy is automatically updated when the non-affine part of the transform or the patch changes. Parameters
patchPatch
__init__(patch)[source]
Parameters
patchPatch
_... | |
doc_3969 |
For each element in self, return a copy of the string with uppercase characters converted to lowercase and vice versa. See also char.swapcase | |
doc_3970 | Apply RFC 2965 rules on unverifiable transactions even to Netscape cookies. | |
doc_3971 | Search mailbox for matching messages. charset may be None, in which case no CHARSET will be specified in the request to the server. The IMAP protocol requires that at least one criterion be specified; an exception will be raised when the server returns an error. charset must be None if the UTF8=ACCEPT capability was en... | |
doc_3972 | reserve channels from being automatically used set_reserved(count) -> None The mixer can reserve any number of channels that will not be automatically selected for playback by Sounds. If sounds are currently playing on the reserved channels they will not be stopped. This allows the application to reserve a specific n... | |
doc_3973 | alias of werkzeug.datastructures.ImmutableMultiDict | |
doc_3974 | See Migration guide for more details. tf.compat.v1.keras.experimental.CosineDecay
tf.keras.experimental.CosineDecay(
initial_learning_rate, decay_steps, alpha=0.0, name=None
)
See [Loshchilov & Hutter, ICLR2016], SGDR: Stochastic Gradient Descent with Warm Restarts. https://arxiv.org/abs/1608.03983 When training... | |
doc_3975 |
Set the properties by parsing a fontconfig pattern. This support does not depend on fontconfig; we are merely borrowing its pattern syntax for use here. | |
doc_3976 |
Logical indicating if the date belongs to a leap year. | |
doc_3977 |
Return the kerning pair distance (possibly 0) for chars name1 and name2. | |
doc_3978 |
Get the current Axes. If there is currently no Axes on this Figure, a new one is created using Figure.add_subplot. (To test whether there is currently an Axes on a Figure, check whether figure.axes is empty. To test whether there is currently a Figure on the pyplot figure stack, check whether pyplot.get_fignums() is ... | |
doc_3979 | New in version 3.7.
safe
The UUID was generated by the platform in a multiprocessing-safe way.
unsafe
The UUID was not generated in a multiprocessing-safe way.
unknown
The platform does not provide information on whether the UUID was generated safely or not. | |
doc_3980 |
Alias for set_linestyle. | |
doc_3981 | See Migration guide for more details. tf.compat.v1.test.TestCase
tf.test.TestCase(
methodName='runTest'
)
Child Classes class failureException Methods addCleanup
addCleanup(
*args, **kwargs
)
Add a function, with arguments, to be called when the test is completed. Functions added are called on a LIFO basis... | |
doc_3982 |
Add a label near the point (x, y). Parameters
x, yfloat
The approximate location of the label.
inlinebool, default: True
If True remove the segment of the contour beneath the label.
inline_spacingint, default: 5
Space in pixels to leave on each side of label when placing inline. This spacing will be exa... | |
doc_3983 |
Kernel Density Estimation. Read more in the User Guide. Parameters
bandwidthfloat, default=1.0
The bandwidth of the kernel.
algorithm{‘kd_tree’, ‘ball_tree’, ‘auto’}, default=’auto’
The tree algorithm to use.
kernel{‘gaussian’, ‘tophat’, ‘epanechnikov’, ‘exponential’, ‘linear’, ‘cosine’}, default=’gaussia... | |
doc_3984 |
Return the sketch parameters for the artist. Returns
tuple or None
A 3-tuple with the following elements:
scale: The amplitude of the wiggle perpendicular to the source line.
length: The length of the wiggle along the line.
randomness: The scale factor by which the length is shrunken or expanded. Returns Non... | |
doc_3985 | Represents the C unsigned long long datatype. The constructor accepts an optional integer initializer; no overflow checking is done. | |
doc_3986 | class collections.abc.MutableMapping
ABCs for read-only and mutable mappings. | |
doc_3987 |
New in version 1.13. Any class, ndarray subclass or not, can define this method or set it to None in order to override the behavior of NumPy’s ufuncs. This works quite similarly to Python’s __mul__ and other binary operation routines.
ufunc is the ufunc object that was called.
method is a string indicating which... | |
doc_3988 |
Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc))
<type 'Locator'>
>>> print(loc())
[1, 2, 3, 4] | |
doc_3989 |
router = routers.SimpleRouter()
router.register(r'users', UserViewSet)
router.register(r'accounts', AccountViewSet)
urlpatterns = router.urls
There are two mandatory arguments to the register() method:
prefix - The URL prefix to use for this set of routes.
viewset - The viewset class. Optionally, you may also spe... | |
doc_3990 | Optional. Either True or False. Default is True. Specifies whether files in the specified location should be included. Either this or allow_folders must be True. | |
doc_3991 | True when verbose output is enabled. Should be checked when more detailed information is desired about a running test. verbose is set by test.regrtest. | |
doc_3992 | See Migration guide for more details. tf.compat.v1.python_io.tf_record_iterator
tf.compat.v1.io.tf_record_iterator(
path, options=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use eager execution and: tf.data.TFRecordDataset(path)
Args
path... | |
doc_3993 | tf.summary.create_noop_writer()
This is useful as a placeholder in code that expects a context manager. | |
doc_3994 | Send signal sig to the process pid. Constants for the specific signals available on the host platform are defined in the signal module. Windows: The signal.CTRL_C_EVENT and signal.CTRL_BREAK_EVENT signals are special signals which can only be sent to console processes which share a common console window, e.g., some sub... | |
doc_3995 |
Similar to @classmethod, the @classproperty decorator converts the result of a method with a single cls argument into a property that can be accessed directly from the class. | |
doc_3996 | Return the number of items currently in the history. (This is different from get_history_length(), which returns the maximum number of lines that will be written to a history file.) | |
doc_3997 |
Number of elements in the array. Equal to np.prod(a.shape), i.e., the product of the array’s dimensions. Notes a.size returns a standard arbitrary precision Python integer. This may not be the case with other methods of obtaining the same value (like the suggested np.prod(a.shape), which returns an instance of np.int... | |
doc_3998 |
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_3999 |
Bases: skimage.transform._geometric.ProjectiveTransform 2D affine transformation. Has the following form: X = a0*x + a1*y + a2 =
= sx*x*cos(rotation) - sy*y*sin(rotation + shear) + a2
Y = b0*x + b1*y + b2 =
= sx*x*sin(rotation) + sy*y*cos(rotation + shear) + b2
where sx and sy are scale factors in the x and y d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.