_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_14900 | A subclass of ImportError which is raised by import when a module could not be located. It is also raised when None is found in sys.modules. New in version 3.6. | |
doc_14901 |
Return the Transform applied to the Patch. | |
doc_14902 |
Compute the sigmoid kernel between X and Y: K(X, Y) = tanh(gamma <X, Y> + coef0)
Read more in the User Guide. Parameters
Xndarray of shape (n_samples_X, n_features)
Yndarray of shape (n_samples_Y, n_features), default=None
gammafloat, default=None
If None, defaults to 1.0 / n_features.
coef0float, defaul... | |
doc_14903 |
Return the indices to access (n, n) arrays, given a masking function. Assume mask_func is a function that, for a square array a of size (n, n) with a possible offset argument k, when called as mask_func(a, k) returns a new array with zeros in certain locations (functions like triu or tril do precisely this). Then thi... | |
doc_14904 |
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_14905 | ABC for classes that provide the __contains__() method. | |
doc_14906 | Return True if x is the marker indicating the end of input. | |
doc_14907 |
Base object if memory is from some other object. Examples The base of an array that owns its memory is None: >>> x = np.array([1,2,3,4])
>>> x.base is None
True
Slicing creates a view, whose memory is shared with x: >>> y = x[2:]
>>> y.base is x
True | |
doc_14908 |
Apply a function func with arguments to this Resampler object and return the function’s result. Use .pipe when you want to improve readability by chaining together functions that expect Series, DataFrames, GroupBy or Resampler objects. Instead of writing
>>> h(g(f(df.groupby('group')), arg1=a), arg2=b, arg3=c)
Y... | |
doc_14909 | Write a warning to a file. The default implementation calls formatwarning(message, category, filename, lineno, line) and writes the resulting string to file, which defaults to sys.stderr. You may replace this function with any callable by assigning to warnings.showwarning. line is a line of source code to be included i... | |
doc_14910 |
Shift each group by periods observations. If freq is passed, the index will be increased using the periods and the freq. Parameters
periods:int, default 1
Number of periods to shift.
freq:str, optional
Frequency string.
axis:axis to shift, default 0
Shift direction.
fill_value:optional
The scalar va... | |
doc_14911 |
Returns a set of sharing strategies supported on a current system. | |
doc_14912 |
Return an array formed from the elements of a at the given indices. Refer to numpy.take for full documentation. See also numpy.take
equivalent function | |
doc_14913 |
Multivariate imputer that estimates each feature from all the others. A strategy for imputing missing values by modeling each feature with missing values as a function of other features in a round-robin fashion. Read more in the User Guide. New in version 0.21. Note This estimator is still experimental for now: th... | |
doc_14914 |
Run score function on (X, y) and get the appropriate features. Parameters
Xarray-like of shape (n_samples, n_features)
The training input samples.
yarray-like of shape (n_samples,)
The target values (class labels in classification, real numbers in regression). Returns
selfobject | |
doc_14915 | Densely Connected Convolutional Networks (CVPR 2017) Functions DenseNet121(...): Instantiates the Densenet121 architecture. DenseNet169(...): Instantiates the Densenet169 architecture. DenseNet201(...): Instantiates the Densenet201 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. pre... | |
doc_14916 |
Add a key to a quiver plot. The positioning of the key depends on X, Y, coordinates, and labelpos. If labelpos is 'N' or 'S', X, Y give the position of the middle of the key arrow. If labelpos is 'E', X, Y positions the head, and if labelpos is 'W', X, Y positions the tail; in either of these two cases, X, Y is somew... | |
doc_14917 | See Migration guide for more details. tf.compat.v1.raw_ops.OrderedMapIncompleteSize
tf.raw_ops.OrderedMapIncompleteSize(
dtypes, capacity=0, memory_limit=0, container='',
shared_name='', name=None
)
Args
dtypes A list of tf.DTypes.
capacity An optional int that is >= 0. Defaults to 0.
memo... | |
doc_14918 |
Normalize, rescale, and colormap this image's data for rendering using renderer, with the given magnification. If unsampled is True, the image will not be scaled, but an appropriate affine transformation will be returned instead. Returns
image(M, N, 4) uint8 array
The RGBA image, resampled unless unsampled is T... | |
doc_14919 | Takes a list of expressions and stores them such that get_source_expressions() can return them. | |
doc_14920 |
Scalar method identical to the corresponding array attribute. Please see ndarray.ptp. | |
doc_14921 | A 64-bit number. New in version 3.6. | |
doc_14922 |
Apply the transform to Path path, returning a new Path. In some cases, this transform may insert curves into the path that began as line segments. | |
doc_14923 | Returns the sum of all elements in the input tensor. Parameters
input (Tensor) – the input tensor. Keyword Arguments
dtype (torch.dtype, optional) – the desired data type of returned tensor. If specified, the input tensor is casted to dtype before the operation is performed. This is useful for preventing data type ... | |
doc_14924 | assertNotAlmostEqual(first, second, places=7, msg=None, delta=None)
Test that first and second are approximately (or not approximately) equal by computing the difference, rounding to the given number of decimal places (default 7), and comparing to zero. Note that these methods round the values to the given number of ... | |
doc_14925 |
Set the hatch color. | |
doc_14926 | Blocking call that copies the value of the RRef from the owner to the local node and returns it. If the current node is the owner, returns a reference to the local value. Parameters
timeout (float, optional) – Timeout for to_here. If the call does not complete within this timeframe, an exception indicating so will be... | |
doc_14927 | New in Django 4.0. The URL to redirect to after login. Defaults to LOGIN_REDIRECT_URL. | |
doc_14928 | A Popen creationflags parameter to specify that a new process will have an idle (lowest) priority. New in version 3.7. | |
doc_14929 |
Scalar attribute identical to the corresponding array attribute. Please see ndarray.base. | |
doc_14930 | Prints the formatted representation of object on stream, followed by a newline. If stream is None, sys.stdout is used. This may be used in the interactive interpreter instead of the print() function for inspecting values (you can even reassign print = pprint.pprint for use within a scope). indent, width, depth, compact... | |
doc_14931 | Use this property to render the ID of this field. For example, if you are manually constructing a <label> in your template (despite the fact that label_tag() will do this for you): <label for="{{ form.my_field.id_for_label }}">...</label>{{ my_field }}
By default, this will be the field’s name prefixed by id_ (“id_my_... | |
doc_14932 |
Least squares fit of Legendre series to data. Return the coefficients of a Legendre series of degree deg that is the least squares fit to the data values y given at points x. If y is 1-D the returned coefficients will also be 1-D. If y is 2-D multiple fits are done, one for each column of y, and the resulting coeffic... | |
doc_14933 |
Return cumulative sum over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative sum. Parameters
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
The index or the name of the axis. 0 is equivalent to None or ‘index’.
skipna:bool, default True
Exclude NA/null valu... | |
doc_14934 | Unpacks IPv4 mapped addresses like ::ffff:192.0.2.1. If this option is enabled that address would be unpacked to 192.0.2.1. Default is disabled. Can only be used when protocol is set to 'both'. | |
doc_14935 |
Set the yaxis' labels with list of string labels. Warning This method should only be used after fixing the tick positions using Axes.set_yticks. Otherwise, the labels may end up in unexpected positions. Parameters
labelslist of str
The label texts.
fontdictdict, optional
A dictionary controlling the appea... | |
doc_14936 | This module contains definitions for the UIText and ActionText tables, for the standard installer actions. | |
doc_14937 | See Migration guide for more details. tf.compat.v1.quantization.quantize_and_dequantize_v2
tf.quantization.quantize_and_dequantize_v2(
input, input_min, input_max, signed_input=True, num_bits=8, range_given=False,
round_mode='HALF_TO_EVEN', name=None, narrow_range=False, axis=None
)
Updates the gradient defi... | |
doc_14938 |
Return self*value. | |
doc_14939 |
Apply a correction to raw Minimum Covariance Determinant estimates. Correction using the empirical correction factor suggested by Rousseeuw and Van Driessen in [RVD]. Parameters
dataarray-like of shape (n_samples, n_features)
The data matrix, with p features and n samples. The data set must be the one which was... | |
doc_14940 | class cmd.Cmd(completekey='tab', stdin=None, stdout=None)
A Cmd instance or subclass instance is a line-oriented interpreter framework. There is no good reason to instantiate Cmd itself; rather, it’s useful as a superclass of an interpreter class you define yourself in order to inherit Cmd’s methods and encapsulate a... | |
doc_14941 |
Return the clip path. | |
doc_14942 | poly1d(c_or_r[, r, variable]) A one-dimensional polynomial class.
polyval(p, x) Evaluate a polynomial at specific values.
poly(seq_of_zeros) Find the coefficients of a polynomial with the given sequence of roots.
roots(p) Return the roots of a polynomial with coefficients given in p. Fitting
polyfit(x, y, d... | |
doc_14943 | The ‘thread identifier’ of this thread or None if the thread has not been started. This is a nonzero integer. See the get_ident() function. Thread identifiers may be recycled when a thread exits and another thread is created. The identifier is available even after the thread has exited. | |
doc_14944 | Performs a matrix multiplication of the matrices input and mat2. If input is a (n×m)(n \times m) tensor, mat2 is a (m×p)(m \times p) tensor, out will be a (n×p)(n \times p) tensor. Note This function does not broadcast. For broadcasting matrix products, see torch.matmul(). Supports strided and sparse 2-D tensors a... | |
doc_14945 | Handle DTD events. This interface specifies only those DTD events required for basic parsing (unparsed entities and attributes). | |
doc_14946 | Return a TarInfo object for member name. If name can not be found in the archive, KeyError is raised. Note If a member occurs more than once in the archive, its last occurrence is assumed to be the most up-to-date version. | |
doc_14947 | rotates the vector around the x-axis by the angle in radians in place. rotate_x_ip_rad(angle) -> None Rotates the vector counterclockwise around the x-axis by the given angle in radians. The length of the vector is not changed. New in pygame 2.0.0. | |
doc_14948 |
Return filter function to be used for agg filter. | |
doc_14949 |
Set the spine to be arc-like. | |
doc_14950 |
Set the artist transform. Parameters
tTransform | |
doc_14951 |
[Deprecated] Notes Deprecated since version 3.4: | |
doc_14952 |
Set the spine to be circular. | |
doc_14953 | An Accept object is just a list subclass for lists of (value, quality) tuples. It is automatically sorted by specificity and quality. All Accept objects work similar to a list but provide extra functionality for working with the data. Containment checks are normalized to the rules of that header: >>> a = CharsetAccept(... | |
doc_14954 | A dictionary containing key-value pairs of pax global headers. | |
doc_14955 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_14956 | An alternative handler for interpolation which implements a more advanced syntax, used for instance in zc.buildout. Extended interpolation is using ${section:option} to denote a value from a foreign section. Interpolation can span multiple levels. For convenience, if the section: part is omitted, interpolation defaults... | |
doc_14957 | A subclass of SSLError raised when the SSL connection has been terminated abruptly. Generally, you shouldn’t try to reuse the underlying transport when this error is encountered. New in version 3.3. | |
doc_14958 | tf.metrics.CategoricalAccuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.CategoricalAccuracy
tf.keras.metrics.CategoricalAccuracy(
name='categorical_accuracy', dtype=None
)
You can provide logits of classes as y_pred, since argmax of logits and probabilities ar... | |
doc_14959 |
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_14960 |
Set the artist transform. Parameters
tTransform | |
doc_14961 |
Set the data values. Parameters
A(M, N) array-like or M*N array-like
If the values are provided as a 2D grid, the shape must match the coordinates grid. If the values are 1D, they are reshaped to 2D. M, N follow from the coordinates grid, where the coordinates grid shape is (M, N) for 'gouraud' shading and (M+1... | |
doc_14962 |
Get Greater than or equal to of dataframe and other, element-wise (binary operator ge). 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... | |
doc_14963 | Return the build time API version of Android as an integer. Availability: Android. New in version 3.7. | |
doc_14964 | See Migration guide for more details. tf.compat.v1.raw_ops.CTCBeamSearchDecoder
tf.raw_ops.CTCBeamSearchDecoder(
inputs, sequence_length, beam_width, top_paths, merge_repeated=True, name=None
)
A note about the attribute merge_repeated: For the beam search decoder, this means that if consecutive entries in a bea... | |
doc_14965 |
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
e... | |
doc_14966 |
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | |
doc_14967 |
Return the magic string for the given file format version. Parameters
majorint in [0, 255]
minorint in [0, 255]
Returns
magicstr
Raises
ValueError if the version cannot be formatted. | |
doc_14968 |
A dynamic quantized linear module with floating point tensor as inputs and outputs. We adopt the same interface as torch.nn.Linear, please see https://pytorch.org/docs/stable/nn.html#torch.nn.Linear for documentation. Similar to torch.nn.Linear, attributes will be randomly initialized at module creation time and will... | |
doc_14969 |
Set the linestyle(s) for the collection.
linestyle description
'-' or 'solid' solid line
'--' or 'dashed' dashed line
'-.' or 'dashdot' dash-dotted line
':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq),
where onoffseq is an even length tup... | |
doc_14970 | tf.keras.regularizers.l1 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.regularizers.L1, tf.compat.v1.keras.regularizers.l1
tf.keras.regularizers.L1(
l1=0.01, **kwargs
)
The L1 regularization penalty is computed as: loss = l1 * reduce_sum(abs(x)) L1 may be passed to a layer... | |
doc_14971 | See Migration guide for more details. tf.compat.v1.signal.idct, tf.compat.v1.spectral.idct
tf.signal.idct(
input, type=2, n=None, axis=-1, norm=None, name=None
)
Currently Types I, II, III, IV are supported. Type III is the inverse of Type II, and vice versa. Note that you must re-normalize by 1/(2n) to obtain a... | |
doc_14972 |
Return Subtraction of series and other, element-wise (binary operator sub). 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_14973 | Returns a mask containing a connected component connected_component() -> Mask connected_component((x, y)) -> Mask A connected component is a group (1 or more) of connected set bits (orthogonally and diagonally). The SAUF algorithm, which checks 8 point connectivity, is used to find a connected component in the mask. ... | |
doc_14974 |
Return the path of this patch. | |
doc_14975 |
Return the radius of the circle. | |
doc_14976 | Start accepting connections. This method is idempotent, so it can be called when the server is already being serving. The start_serving keyword-only parameter to loop.create_server() and asyncio.start_server() allows creating a Server object that is not accepting connections initially. In this case Server.start_serving... | |
doc_14977 | Cast a value to a type. This returns the value unchanged. To the type checker this signals that the return value has the designated type, but at runtime we intentionally don’t check anything (we want this to be as fast as possible). | |
doc_14978 |
Evaluate a polynomial at specific values. Note This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in numpy.polynomial is preferred. A summary of the differences can be found in the transition guide. If p is of length N, this function returns the value: p[0]*x**(N-1) + p[1]*... | |
doc_14979 | Returns a dictionary from argument names to Constraint objects that should be satisfied by each argument of this distribution. Args that are not tensors need not appear in this dict. | |
doc_14980 |
Returns whether PyTorch was built with _GLIBCXX_USE_CXX11_ABI=1 | |
doc_14981 |
Get a mask, or integer index, of the features selected Parameters
indicesbool, default=False
If True, the return value will be an array of integers, rather than a boolean mask. Returns
supportarray
An index that selects the retained features from a feature vector. If indices is False, this is a boolean ... | |
doc_14982 | Delete all existing breakpoints. | |
doc_14983 |
Sort MultiIndex at the requested level. The result will respect the original ordering of the associated factor at that level. Parameters
level:list-like, int or str, default 0
If a string is given, must be a name of the level. If list-like must be names or ints of levels.
ascending:bool, default True
False ... | |
doc_14984 |
Return the ticks as a list of locations. Parameters
minorboolean, default: False
if True return the minor ticks. | |
doc_14985 | Concatenates the given sequence of seq tensors in the given dimension. All tensors must either have the same shape (except in the concatenating dimension) or be empty. torch.cat() can be seen as an inverse operation for torch.split() and torch.chunk(). torch.cat() can be best understood via examples. Parameters
ten... | |
doc_14986 |
Return the total number of days in the month. | |
doc_14987 | Required. The maximum number of items to include on a page, not including orphans (see the orphans optional argument below). | |
doc_14988 |
Return the maximum of the values over the requested axis. If you want the index of the maximum, use idxmax. This is the equivalent of the numpy.ndarray method argmax. Parameters
axis:{index (0)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the resul... | |
doc_14989 | Set the environ attribute to a fully-populated WSGI environment. The default implementation uses all of the above methods and attributes, plus the get_stdin(), get_stderr(), and add_cgi_vars() methods and the wsgi_file_wrapper attribute. It also inserts a SERVER_SOFTWARE key if not present, as long as the origin_server... | |
doc_14990 | Returns the current state of the is_authenticated flag for the given URI. | |
doc_14991 | The index in pattern where compilation failed (may be None). | |
doc_14992 | Mark all lines in the window as unchanged since the last call to refresh(). | |
doc_14993 | sklearn.feature_selection.chi2(X, y) [source]
Compute chi-squared stats between each non-negative feature and class. This score can be used to select the n_features features with the highest values for the test chi-squared statistic from X, which must contain only non-negative features such as booleans or frequencies... | |
doc_14994 |
Compute the differences between consecutive elements of an array. This function is the equivalent of numpy.ediff1d that takes masked values into account, see numpy.ediff1d for details. See also numpy.ediff1d
Equivalent function for ndarrays. | |
doc_14995 | '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_14996 |
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters
bbool | |
doc_14997 |
Scalar method identical to the corresponding array attribute. Please see ndarray.argmax. | |
doc_14998 |
Generate a Hermite series with given roots. The function returns the coefficients of the polynomial \[p(x) = (x - r_0) * (x - r_1) * ... * (x - r_n),\] in Hermite form, where the r_n are the roots specified in roots. If a zero has multiplicity n, then it must appear in roots n times. For instance, if 2 is a root of ... | |
doc_14999 | Dictionary mapping the numeric values of the constants defined in this module back to name strings, allowing more human-readable representation of parse trees to be generated. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.