_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_23900 |
Set the Figure instance the artist belongs to. Parameters
figFigure | |
doc_23901 | Return the phase of x (also known as the argument of x), as a float. phase(x) is equivalent to math.atan2(x.imag,
x.real). The result lies in the range [-π, π], and the branch cut for this operation lies along the negative real axis, continuous from above. On systems with support for signed zeros (which includes most s... | |
doc_23902 |
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_23903 | PyHKEY.__exit__(*exc_info)
The HKEY object implements __enter__() and __exit__() and thus supports the context protocol for the with statement: with OpenKey(HKEY_LOCAL_MACHINE, "foo") as key:
... # work with key
will automatically close key when control leaves the with block. | |
doc_23904 |
Draw samples from a chi-square distribution. When df independent random variables, each with standard normal distributions (mean 0, variance 1), are squared and summed, the resulting distribution is chi-square (see Notes). This distribution is often used in hypothesis testing. Note New code should use the chisquare ... | |
doc_23905 | returns a list with all sprites at that position. get_sprites_at(pos) -> colliding_sprites Bottom sprites first, top last. | |
doc_23906 | Return a context manager that suppresses any of the specified exceptions if they occur in the body of a with statement and then resumes execution with the first statement following the end of the with statement. As with any other mechanism that completely suppresses exceptions, this context manager should be used only ... | |
doc_23907 |
Checks if the MPI backend is available. | |
doc_23908 | Renders the field by rendering the passed widget, adding any HTML attributes passed as attrs. If no widget is specified, then the field’s default widget will be used. only_initial is used by Django internals and should not be set explicitly. | |
doc_23909 |
Fit Naive Bayes classifier according to X, y Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of features.
yarray-like of shape (n_samples,)
Target values.
sample_weightarray-like of shape (n_sa... | |
doc_23910 | Remove history item specified by its position from the history. The position is zero-based. This calls remove_history() in the underlying library. | |
doc_23911 | class sklearn.ensemble.GradientBoostingClassifier(*, loss='deviance', learning_rate=0.1, n_estimators=100, subsample=1.0, criterion='friedman_mse', min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_depth=3, min_impurity_decrease=0.0, min_impurity_split=None, init=None, random_state=None, max_fe... | |
doc_23912 | Exception raised if add_section() is called with the name of a section that is already present or in strict parsers when a section if found more than once in a single input file, string or dictionary. New in version 3.2: Optional source and lineno attributes and arguments to __init__() were added. | |
doc_23913 |
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_23914 | Stack tensors in sequence vertically (row wise). This is equivalent to concatenation along the first axis after all 1-D tensors have been reshaped by torch.atleast_2d(). Parameters
tensors (sequence of Tensors) – sequence of tensors to concatenate Keyword Arguments
out (Tensor, optional) – the output tensor. Exam... | |
doc_23915 | Boolean attribute that is set to True after the registry is fully populated and all AppConfig.ready() methods are called. | |
doc_23916 |
Combines an array of sliding local blocks into a large containing tensor. Warning Currently, only 3-D output tensors (unfolded batched image-like tensors) are supported. See torch.nn.Fold for details | |
doc_23917 | 'DEFAULT_PARSER_CLASSES': [
'rest_framework.parsers.JSONParser',
]
}
You can also set the parsers used for an individual view, or viewset, using the APIView class-based views. from rest_framework.parsers import JSONParser
from rest_framework.response import Response
from rest_framework.views import API... | |
doc_23918 |
Applies Batch Normalization over a 4D input (a mini-batch of 2D inputs with additional channel dimension) as described in the paper Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift . y=x−E[x]Var[x]+ϵ∗γ+βy = \frac{x - \mathrm{E}[x]}{ \sqrt{\mathrm{Var}[x] + \epsilon}} * \ga... | |
doc_23919 | Return True if the buffer is empty and feed_eof() was called. | |
doc_23920 | Returns either True or False, depending on whether the user’s browser accepted the test cookie. Due to the way cookies work, you’ll have to call set_test_cookie() on a previous, separate page request. See Setting test cookies below for more information. | |
doc_23921 | Raised when the import statement has troubles trying to load a module. Also raised when the “from list” in from ... import has a name that cannot be found. The name and path attributes can be set using keyword-only arguments to the constructor. When set they represent the name of the module that was attempted to be imp... | |
doc_23922 | See Migration guide for more details. tf.compat.v1.keras.layers.Lambda
tf.keras.layers.Lambda(
function, output_shape=None, mask=None, arguments=None, **kwargs
)
The Lambda layer exists so that arbitrary TensorFlow functions can be used when constructing Sequential and Functional API models. Lambda layers are be... | |
doc_23923 | tf.compat.v1.user_ops.my_fact() | |
doc_23924 |
Return the first n rows ordered by columns in descending order. Return the first n rows with the largest values in columns, in descending order. The columns that are not specified are returned as well, but not used for ordering. This method is equivalent to df.sort_values(columns, ascending=False).head(n), but more p... | |
doc_23925 | Remove label from the list of labels on the message. | |
doc_23926 |
Bases: matplotlib.widgets.SliderBase A slider representing a floating point range. Create a slider from valmin to valmax in axes ax. For the slider to remain responsive you must maintain a reference to it. Call on_changed() to connect to the slider event. Attributes
valfloat
Slider value. Parameters
axA... | |
doc_23927 |
Computes the OPTICS reachability graph. Read more in the User Guide. Parameters
Xndarray of shape (n_samples, n_features), or (n_samples, n_samples) if metric=’precomputed’.
A feature array, or array of distances between samples if metric=’precomputed’
min_samplesint > 1 or float between 0 and 1
The number ... | |
doc_23928 | Return True if the symbol is a parameter. | |
doc_23929 | This class can be used to generate plain text calendars. TextCalendar instances have the following methods:
formatmonth(theyear, themonth, w=0, l=0)
Return a month’s calendar in a multi-line string. If w is provided, it specifies the width of the date columns, which are centered. If l is given, it specifies the num... | |
doc_23930 | Locale category for formatting of monetary values. The available options are available from the localeconv() function. | |
doc_23931 |
Return the identity array. The identity array is a square array with ones on the main diagonal. Parameters
nint
Number of rows (and columns) in n x n output.
dtypedata-type, optional
Data-type of the output. Defaults to float.
likearray_like
Reference object to allow the creation of arrays which are not... | |
doc_23932 | class sklearn.linear_model.PassiveAggressiveClassifier(*, C=1.0, fit_intercept=True, max_iter=1000, tol=0.001, early_stopping=False, validation_fraction=0.1, n_iter_no_change=5, shuffle=True, verbose=0, loss='hinge', n_jobs=None, random_state=None, warm_start=False, class_weight=None, average=False) [source]
Passive ... | |
doc_23933 | A boolean that is True if the barrier is in the broken state. | |
doc_23934 | Returns a cookie value for a signed cookie, or raises a django.core.signing.BadSignature exception if the signature is no longer valid. If you provide the default argument the exception will be suppressed and that default value will be returned instead. The optional salt argument can be used to provide extra protection... | |
doc_23935 | Return the bytes object that would be written to a file by dump(value, file). The value must be a supported type. Raise a ValueError exception if value has (or contains an object that has) an unsupported type. The version argument indicates the data format that dumps should use (see below). | |
doc_23936 |
Decorator for building a Normalize subclass from a ScaleBase subclass. After @make_norm_from_scale(scale_cls)
class norm_cls(Normalize):
...
norm_cls is filled with methods so that normalization computations are forwarded to scale_cls (i.e., scale_cls is the scale that would be used for the colorbar of a mappabl... | |
doc_23937 |
Encode the object as an enumerated type or categorical variable. This method is useful for obtaining a numeric representation of an array when all that matters is identifying distinct values. factorize is available as both a top-level function pandas.factorize(), and as a method Series.factorize() and Index.factorize... | |
doc_23938 |
Perform DBSCAN clustering from vector array or distance matrix. Read more in the User Guide. Parameters
X{array-like, sparse (CSR) matrix} of shape (n_samples, n_features) or (n_samples, n_samples)
A feature array, or array of distances between samples if metric='precomputed'.
epsfloat, default=0.5
The maxi... | |
doc_23939 |
Generic Python-exception-derived object raised by linalg functions. General purpose exception class, derived from Python’s exception.Exception class, programmatically raised in linalg functions when a Linear Algebra-related condition would prevent further correct execution of the function. Parameters
None
Examp... | |
doc_23940 | winreg.CloseKey(hkey)
Closes a previously opened registry key. The hkey argument specifies a previously opened key. Note If hkey is not closed using this method (or via hkey.Close()), it is closed when the hkey object is destroyed by Python.
winreg.ConnectRegistry(computer_name, key)
Establishes a connection ... | |
doc_23941 |
Calculate the rolling sample covariance. Parameters
other:Series or DataFrame, optional
If not supplied then will default to self and produce pairwise output.
pairwise:bool, default None
If False then only matching columns between self and other will be used and the output will be a DataFrame. If True then ... | |
doc_23942 | Return the inverse hyperbolic sine of x. There are two branch cuts: One extends from 1j along the imaginary axis to ∞j, continuous from the right. The other extends from -1j along the imaginary axis to -∞j, continuous from the left. | |
doc_23943 | See Migration guide for more details. tf.compat.v1.config.experimental.disable_mlir_graph_optimization
tf.config.experimental.disable_mlir_graph_optimization() | |
doc_23944 | class sklearn.feature_selection.GenericUnivariateSelect(score_func=<function f_classif>, *, mode='percentile', param=1e-05) [source]
Univariate feature selector with configurable strategy. Read more in the User Guide. Parameters
score_funccallable, default=f_classif
Function taking two arrays X and y, and retur... | |
doc_23945 | Puts values from the tensor values into the tensor self using the indices specified in indices (which is a tuple of Tensors). The expression tensor.index_put_(indices, values) is equivalent to tensor[indices] = values. Returns self. If accumulate is True, the elements in values are added to self. If accumulate is False... | |
doc_23946 | Call func with the given arguments under control of the Trace object with the current tracing parameters. | |
doc_23947 |
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_23948 | See Migration guide for more details. tf.compat.v1.train.queue_runner.add_queue_runner
tf.compat.v1.train.add_queue_runner(
qr, collection=tf.GraphKeys.QUEUE_RUNNERS
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: To construct input pipelines, use the tf... | |
doc_23949 |
Perform classification on an array of test vectors X. Parameters
Xarray-like of shape (n_samples, n_features) or list of object
Query points where the GP is evaluated for classification. Returns
Cndarray of shape (n_samples,)
Predicted target values for X, values are from classes_ | |
doc_23950 |
Get the text of the label. | |
doc_23951 | tf.compat.v1.metrics.false_negatives_at_thresholds(
labels, predictions, thresholds, weights=None, metrics_collections=None,
updates_collections=None, name=None
)
If weights is None, weights default to 1. Use weights of 0 to mask values.
Args
labels A Tensor whose shape matches predictions. Will be ca... | |
doc_23952 |
Draw an RGBA image. Parameters
gcGraphicsContextBase
A graphics context with clipping information.
xscalar
The distance in physical units (i.e., dots or pixels) from the left hand side of the canvas.
yscalar
The distance in physical units (i.e., dots or pixels) from the bottom side of the canvas.
im(N... | |
doc_23953 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_23954 |
Return (x1 >= x2) element-wise. Unlike numpy.greater_equal, this comparison is performed by first stripping whitespace characters from the end of the string. This behavior is provided for backward-compatibility with numarray. Parameters
x1, x2array_like of str or unicode
Input arrays of the same shape. Retur... | |
doc_23955 | Extract the url from a wrapped URL (that is, a string formatted as <URL:scheme://host/path>, <scheme://host/path>, URL:scheme://host/path or scheme://host/path). If url is not a wrapped URL, it is returned without changes. | |
doc_23956 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_23957 |
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_23958 |
Return the dot product of two arrays. This function is the equivalent of numpy.dot that takes masked values into account. Note that strict and out are in different position than in the method version. In order to maintain compatibility with the corresponding method, it is recommended that the optional arguments be tr... | |
doc_23959 |
Computes the squared Mahalanobis distances of given observations. Parameters
Xarray-like of shape (n_samples, n_features)
The observations, the Mahalanobis distances of the which we compute. Observations are assumed to be drawn from the same distribution than the data used in fit. Returns
distndarray of s... | |
doc_23960 | This method is called to handle the end tag of an element (e.g. </div>). The tag argument is the name of the tag converted to lower case. | |
doc_23961 |
Bases: matplotlib.projections.geo._GeoTransform Create a new geographical transform. Resolution is the number of steps to interpolate between each input line segment to approximate its path in curved space. has_inverse=True
True if this transform has a corresponding inverse transform.
inverted()[source]
Ret... | |
doc_23962 | Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return... | |
doc_23963 | Handle an XML-RPC request. If request_text is given, it should be the POST data provided by the HTTP server, otherwise the contents of stdin will be used. | |
doc_23964 | Alias for Area class. | |
doc_23965 | Return a BytesGenerator object that will write any message provided to the flatten() method, or any surrogateescape encoded text provided to the write() method, to the file-like object outfp. outfp must support a write method that accepts binary data. If optional mangle_from_ is True, put a > character in front of any ... | |
doc_23966 | True if cookie should only be returned over a secure connection. | |
doc_23967 | bytearray.upper()
Return a copy of the sequence with all the lowercase ASCII characters converted to their corresponding uppercase counterpart. For example: >>> b'Hello World'.upper()
b'HELLO WORLD'
Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyz'. Uppercase ASCII charac... | |
doc_23968 |
Other Members
QUANTIZED_DTYPES
bfloat16 tf.dtypes.DType
bool tf.dtypes.DType
complex128 tf.dtypes.DType
complex64 tf.dtypes.DType
double tf.dtypes.DType
float16 tf.dtypes.DType
float32 tf.dtypes.DType
float64 tf.dtypes.DType
half tf.dtypes.DType
int16 ... | |
doc_23969 |
Return the Transform associated with this scale. | |
doc_23970 |
Repeat elements of an array. Refer to numpy.repeat for full documentation. See also numpy.repeat
equivalent function | |
doc_23971 | Get a string that can be used as a format string for time.strftime() to represent date and time in a locale-specific way. | |
doc_23972 |
Update the view limits and position for each axes from the current stack position. If any axes are present in the figure that aren't in the current stack position, use the home view limits for those axes and don't update any positions. | |
doc_23973 | Returns a list of the help texts of all validators. These explain the password requirements to the user. | |
doc_23974 |
Computes and returns a mask for the input tensor t. Starting from a base default_mask (which should be a mask of ones if the tensor has not been pruned yet), generate a mask to apply on top of the default_mask by zeroing out the channels along the specified dim with the lowest Ln-norm. Parameters
t (torch.Tensor)... | |
doc_23975 |
Get or set the PRNG state Returns
statedict
Dictionary containing the information required to describe the state of the PRNG | |
doc_23976 |
Trigonometric inverse cosine, element-wise. The inverse of cos so that, if y = cos(x), then x = arccos(y). Parameters
xarray_like
x-coordinate on the unit circle. For real arguments, the domain is [-1, 1].
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. I... | |
doc_23977 |
Compute the log-likelihood of each sample Parameters
Xndarray of shape (n_samples, n_features)
The data Returns
llndarray of shape (n_samples,)
Log-likelihood of each sample under the current model | |
doc_23978 |
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass. | |
doc_23979 |
Computes the inverse cumulative distribution function using transform(s) and computing the score of the base distribution. | |
doc_23980 | tf.experimental.numpy.conjugate(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.conjugate. | |
doc_23981 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedMaxPool
tf.raw_ops.QuantizedMaxPool(
input, min_input, max_input, ksize, strides, padding, name=None
)
Args
input A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16. The 4D (batch x rows x cols x depth)... | |
doc_23982 |
Change the sign of x1 to that of x2, element-wise. If x2 is a scalar, its sign will be copied to all elements of x1. Parameters
x1array_like
Values to change the sign of.
x2array_like
The sign of x2 is copied to x1. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the sha... | |
doc_23983 |
A character indicating the byte-order of this data-type object. One of:
‘=’ native
‘<’ little-endian
‘>’ big-endian
‘|’ not applicable All built-in data-type objects have byteorder either ‘=’ or ‘|’. Examples >>> dt = np.dtype('i2')
>>> dt.byteorder
'='
>>> # endian is not relevant for 8 bit numbers
>>> np.... | |
doc_23984 | class sklearn.feature_selection.SequentialFeatureSelector(estimator, *, n_features_to_select=None, direction='forward', scoring=None, cv=5, n_jobs=None) [source]
Transformer that performs Sequential Feature Selection. This Sequential Feature Selector adds (forward selection) or removes (backward selection) features t... | |
doc_23985 | operator.__neg__(obj)
Return obj negated (-obj). | |
doc_23986 |
Unsigned integer type, compatible with C unsigned long. Character code
'L' Alias on this platform (Linux x86_64)
numpy.uint64: 64-bit unsigned integer (0 to 18_446_744_073_709_551_615). Alias on this platform (Linux x86_64)
numpy.uintp: Unsigned integer large enough to fit pointer, compatible with C uintptr_t. | |
doc_23987 |
Applies the element-wise function: Tanhshrink(x)=x−tanh(x)\text{Tanhshrink}(x) = x - \tanh(x)
Shape:
Input: (N,∗)(N, *) where * means, any number of additional dimensions Output: (N,∗)(N, *) , same shape as the input Examples: >>> m = nn.Tanhshrink()
>>> input = torch.randn(2)
>>> output = m(input) | |
doc_23988 |
Bases: mpl_toolkits.axisartist.axis_artist.AttributeCopier, matplotlib.lines.Line2D Ticks are derived from Line2D, and note that ticks themselves are markers. Thus, you should use set_mec, set_mew, etc. To change the tick size (length), you need to use set_ticksize. To change the direction of the ticks (ticks are in ... | |
doc_23989 |
Trigonometric sine, element-wise. Parameters
xarray_like
Angle, in radians (\(2 \pi\) rad equals 360 degrees).
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a fresh... | |
doc_23990 | number of cd drives on the system get_count() -> count Return the number of cd drives on the system. When you create CD objects you need to pass an integer id that must be lower than this count. The count will be 0 if there are no drives on the system. | |
doc_23991 | The type of action logged: ADDITION, CHANGE, DELETION. For example, to get a list of all additions done through the admin: from django.contrib.admin.models import ADDITION, LogEntry
LogEntry.objects.filter(action_flag=ADDITION) | |
doc_23992 | See Migration guide for more details. tf.compat.v1.saved_model.signature_def_utils.build_signature_def
tf.compat.v1.saved_model.build_signature_def(
inputs=None, outputs=None, method_name=None
)
Args
inputs Inputs of the SignatureDef defined as a proto map of string to tensor info.
outputs Outputs... | |
doc_23993 |
Attributes
base Returns a copy of the calling offset object with n=1 and all other attributes equal.
cbday_roll Define default roll function to be called in apply method.
month_roll Define default roll function to be called in apply method.
offset Alias for self._offset.
calendar
freqstr
... | |
doc_23994 | Data found after the end of the compressed stream. Before the end of the stream is reached, this will be b"". | |
doc_23995 |
Handler for StepPatch instances. create_artists(legend, orig_handle, xdescent, ydescent, width, height, fontsize, trans)[source] | |
doc_23996 | Copy count bytes from file descriptor src, starting from offset offset_src, to file descriptor dst, starting from offset offset_dst. If offset_src is None, then src is read from the current position; respectively for offset_dst. The files pointed by src and dst must reside in the same filesystem, otherwise an OSError i... | |
doc_23997 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_23998 | start index of operation within bytecode sequence | |
doc_23999 | tf.divide Compat aliases for migration See Migration guide for more details. tf.compat.v1.divide, tf.compat.v1.math.divide
tf.math.divide(
x, y, name=None
)
For example:
x = tf.constant([16, 12, 11])
y = tf.constant([4, 6, 2])
tf.divide(x,y)
<tf.Tensor: shape=(3,), dtype=float64,
numpy=array([4. , 2. , 5.5])>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.