_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_7000 | Tuples may be constructed in a number of ways: Using a pair of parentheses to denote the empty tuple: ()
Using a trailing comma for a singleton tuple: a, or (a,)
Separating items with commas: a, b, c or (a, b, c)
Using the tuple() built-in: tuple() or tuple(iterable)
The constructor builds a tuple whose items are... | |
doc_7001 |
Autoscale the axis view to the data (toggle). Convenience method for simple axis view autoscaling. It turns autoscaling on or off, and then, if autoscaling for either axis is on, it performs the autoscaling on the specified axis or Axes. Parameters
enablebool or None, default: True
True turns autoscaling on, Fa... | |
doc_7002 | Returns the Lookup named lookup_name registered in the class. The default implementation looks recursively on all parent classes and checks if any has a registered lookup named lookup_name, returning the first match. | |
doc_7003 | See Migration guide for more details. tf.compat.v1.experimental.register_filesystem_plugin
tf.experimental.register_filesystem_plugin(
plugin_location
)
Args
plugin_location Path to the plugin. Relative or absolute filesystem plugin path to a dynamic library file.
Returns None
Raises
... | |
doc_7004 | Module calendar
General calendar related functions.
Module time
Time access and conversions. Package dateutil
Third-party library with expanded time zone and parsing support. Aware and Naive Objects Date and time objects may be categorized as “aware” or “naive” depending on whether or not they include timez... | |
doc_7005 | Raised when a buffer related operation cannot be performed. | |
doc_7006 |
Bases: matplotlib.backends.backend_webagg_core.FigureCanvasWebAggCore | |
doc_7007 | Extent (boundary values) of the raster source, as a 4-tuple (xmin, ymin, xmax, ymax) in the spatial reference system of the source. >>> rst = GDALRaster({'width': 10, 'height': 20, 'srid': 4326})
>>> rst.extent
(0.0, -20.0, 10.0, 0.0)
>>> rst.origin.x = 100
>>> rst.extent
(100.0, -20.0, 110.0, 0.0) | |
doc_7008 | operator.__not__(obj)
Return the outcome of not obj. (Note that there is no __not__() method for object instances; only the interpreter core defines this operation. The result is affected by the __bool__() and __len__() methods.) | |
doc_7009 | sklearn.utils.estimator_html_repr(estimator) [source]
Build a HTML representation of an estimator. Read more in the User Guide. Parameters
estimatorestimator object
The estimator to visualize. Returns
html: str
HTML representation of estimator. | |
doc_7010 |
This function provides for conatiner type refinement in TorchScript. It can refine parameterized containers of the List, Dict, Tuple, and Optional types. E.g. List[str], Dict[str, List[torch.Tensor]], Optional[Tuple[int,str,int]]. It can also refine basic types such as bools and ints that are available in TorchScript... | |
doc_7011 | A list of nodes contained within this node. This is a read-only attribute. | |
doc_7012 |
Multi-layer Perceptron regressor. This model optimizes the squared-loss using LBFGS or stochastic gradient descent. New in version 0.18. Parameters
hidden_layer_sizestuple, length = n_layers - 2, default=(100,)
The ith element represents the number of neurons in the ith hidden layer.
activation{‘identity’, ... | |
doc_7013 | See torch.fix(). | |
doc_7014 | bytearray.title()
Return a titlecased version of the binary sequence where words start with an uppercase ASCII character and the remaining characters are lowercase. Uncased byte values are left unmodified. For example: >>> b'Hello world'.title()
b'Hello World'
Lowercase ASCII characters are those byte values in the ... | |
doc_7015 | The full name of a template to display the confirm password view. Default value is registration/password_reset_confirm.html. | |
doc_7016 | Files and subdirectories in a, filtered by hide and ignore. | |
doc_7017 |
Learn and apply the dimension reduction on the train data. Parameters
Xarray-like of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of predictors.
yarray-like of shape (n_samples, n_targets), default=None
Target vectors, where n_samples ... | |
doc_7018 | Clear the regular expression cache. | |
doc_7019 | Reference pixels into a 2d array pixels2d(Surface) -> array Create a new 2D array that directly references the pixel values in a Surface. Any changes to the array will affect the pixels in the Surface. This is a fast operation since no data is copied. Pixels from a 24-bit Surface cannot be referenced, but all other S... | |
doc_7020 | Return True if ‘header_name’ is an HTTP/1.1 “Hop-by-Hop” header, as defined by RFC 2616. | |
doc_7021 | The keyword arguments that would be passed to the view function, as parsed from the URL. | |
doc_7022 | Retrieve initial data for the form. By default, returns a copy of initial. | |
doc_7023 |
Draw samples from the standard exponential distribution. standard_exponential is identical to the exponential distribution with a scale parameter of 1. Parameters
sizeint or tuple of ints, optional
Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which ... | |
doc_7024 |
Simulate the quantize and dequantize operations in training time. The output of this module is given by x_out = (clamp(round(x/scale + zero_point), quant_min, quant_max)-zero_point)*scale
scale defines the scale factor used for quantization.
zero_point specifies the quantized value to which 0 in floating point map... | |
doc_7025 | There is also a way to pass additional information to title and description templates, if you need to supply more than the two variables mentioned before. You can provide your implementation of get_context_data method in your Feed subclass. For example: from mysite.models import Article
from django.contrib.syndication.... | |
doc_7026 | Validates the filename by calling get_valid_name() and returns a filename to be passed to the save() method. The filename argument may include a path as returned by FileField.upload_to. In that case, the path won’t be passed to get_valid_name() but will be prepended back to the resulting name. The default implementatio... | |
doc_7027 | The template loader instance that constructed this Origin. If the template is instantiated directly rather than through a template loader, this is None. django.template.loaders.cached.Loader requires all of its wrapped loaders to set this attribute, typically by instantiating the Origin with loader=self. | |
doc_7028 |
Convert an image to single-precision (32-bit) floating point format. Parameters
imagendarray
Input image.
force_copybool, optional
Force a copy of the data, irrespective of its current dtype. Returns
outndarray of float32
Output image. Notes The range of a floating point image is [0.0, 1.0] or [... | |
doc_7029 | In-place version of expm1() | |
doc_7030 | writes up to 3 bytes of midi data to the Output write_short(status) -> None write_short(status, data1=0, data2=0) -> None Output MIDI information of 3 bytes or less. The data fields are optional and assumed to be 0 if omitted. Examples of status byte values: 0xc0 # program change
0x90 # note on
# etc. Example: # no... | |
doc_7031 |
Return the text angle in degrees between 0 and 360. | |
doc_7032 |
Return whether the artist uses clipping. | |
doc_7033 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_7034 |
Print Series in Markdown-friendly format. New in version 1.0.0. Parameters
buf:str, Path or StringIO-like, optional, default None
Buffer to write to. If None, the output is returned as a string.
mode:str, optional
Mode in which file is opened, “wt” by default.
index:bool, optional, default True
Add in... | |
doc_7035 |
Predict on the data matrix X using the ClassifierChain model. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input data. Returns
Y_predarray-like of shape (n_samples, n_classes)
The predicted values. | |
doc_7036 | Symbolic link. | |
doc_7037 |
For each element in a, return a list of the words in the string, using sep as the delimiter string. Calls str.rsplit element-wise. Except for splitting from the right, rsplit behaves like split. Parameters
aarray_like of str or unicode
sepstr or unicode, optional
If sep is not specified or None, any whitespac... | |
doc_7038 |
alias of matplotlib.backends.backend_ps.FigureCanvasPS
classmatplotlib.backends.backend_ps.FigureCanvasPS(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 beca... | |
doc_7039 |
Test whether points on a specified grid are inside a polygon. For each (r, c) coordinate on a grid, i.e. (0, 0), (0, 1) etc., test whether that point lies inside a polygon. Parameters
shapetuple (M, N)
Shape of the grid.
verts(V, 2) array
Specify the V vertices of the polygon, sorted either clockwise or ant... | |
doc_7040 | This method is called to process arbitrary data (e.g. text nodes and the content of <script>...</script> and <style>...</style>). | |
doc_7041 |
Scale input vectors individually to unit norm (vector length). Read more in the User Guide. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The data to normalize, element by element. scipy.sparse matrices should be in CSR format to avoid an un-necessary copy.
norm{‘l1’, ‘l2’, ‘max’}, ... | |
doc_7042 | See Migration guide for more details. tf.compat.v1.estimator.experimental.stop_if_no_increase_hook
tf.estimator.experimental.stop_if_no_increase_hook(
estimator, metric_name, max_steps_without_increase, eval_dir=None, min_steps=0,
run_every_secs=60, run_every_steps=None
)
Usage example: estimator = ...
# Hoo... | |
doc_7043 | See Migration guide for more details. tf.compat.v1.raw_ops.CSRSparseMatrixComponents
tf.raw_ops.CSRSparseMatrixComponents(
csr_sparse_matrix, index, type, name=None
)
This op is meant only for debugging / testing, and its interface is not expected to be stable.
Args
csr_sparse_matrix A Tensor of type va... | |
doc_7044 | Return a year’s calendar as a complete HTML page. width (defaulting to 3) specifies the number of months per row. css is the name for the cascading style sheet to be used. None can be passed if no style sheet should be used. encoding specifies the encoding to be used for the output (defaulting to the system default enc... | |
doc_7045 | Restrict how cookies are sent with requests from external sites. Can be set to 'Lax' (recommended) or 'Strict'. See Set-Cookie options. Default: None Changelog New in version 1.0. | |
doc_7046 |
Alias for set_facecolor. | |
doc_7047 |
Add an Artist to the Axes; return the artist. Use add_artist only for artists for which there is no dedicated "add" method; and if necessary, use a method such as update_datalim to manually update the dataLim if the artist is to be included in autoscaling. If no transform has been specified when creating the artist (... | |
doc_7048 |
Roll provided date backward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_7049 | class sklearn.linear_model.Lars(*, fit_intercept=True, verbose=False, normalize=True, precompute='auto', n_nonzero_coefs=500, eps=2.220446049250313e-16, copy_X=True, fit_path=True, jitter=None, random_state=None) [source]
Least Angle Regression model a.k.a. LAR Read more in the User Guide. Parameters
fit_intercep... | |
doc_7050 | tf.compat.v1.nn.erosion2d(
value, kernel, strides, rates, padding, name=None
)
The value tensor has shape [batch, in_height, in_width, depth] and the kernel tensor has shape [kernel_height, kernel_width, depth], i.e., each input channel is processed independently of the others with its own structuring function. Th... | |
doc_7051 |
Bases: matplotlib.axis.YAxis A radial Axis. This overrides certain properties of a YAxis to provide special-casing for a radial axis. Parameters
axesmatplotlib.axes.Axes
The Axes to which the created Axis belongs.
pickradiusfloat
The acceptance radius for containment tests. See also Axis.contains. axi... | |
doc_7052 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_enum_class
tf.compat.v1.flags.DEFINE_enum_class(
name, default, enum_class, help, flag_values=_flagvalues.FLAGS,
module_name=None, case_sensitive=False, **args
)
Args
name str, the flag name.
default Enum|str|None, the default... | |
doc_7053 | Subclass of ValueError for statistics-related exceptions. | |
doc_7054 |
Load the California housing dataset (regression).
Samples total 20640
Dimensionality 8
Features real
Target real 0.15 - 5. Read more in the User Guide. Parameters
data_homestr, default=None
Specify another download and cache folder for the datasets. By default all scikit-learn data is stored in ‘~/sci... | |
doc_7055 | Files which are identical in both a and b, using the class’s file comparison operator. | |
doc_7056 | tf.nn.learned_unigram_candidate_sampler Compat aliases for migration See Migration guide for more details. tf.compat.v1.nn.learned_unigram_candidate_sampler, tf.compat.v1.random.learned_unigram_candidate_sampler
tf.random.learned_unigram_candidate_sampler(
true_classes, num_true, num_sampled, unique, range_max, s... | |
doc_7057 |
Backward fill the values. Parameters
limit:int, optional
Limit of how many values to fill. Returns
Series or DataFrame
Object with missing values filled. See also Series.bfill
Backward fill the missing values in the dataset. DataFrame.bfill
Backward fill the missing values in the dataset. Series... | |
doc_7058 |
Return whether the given transform is a sub-tree of this transform. This routine uses transform equality to identify sub-trees, therefore in many situations it is object id which will be used. For the case where the given transform represents the whole of this transform, returns True. | |
doc_7059 | Determines if Django will use the pre-1.6 django.db.models.Model.save() algorithm. The old algorithm uses SELECT to determine if there is an existing row to be updated. The new algorithm tries an UPDATE directly. In some rare cases the UPDATE of an existing row isn’t visible to Django. An example is the PostgreSQL ON U... | |
doc_7060 |
Compute the variance along the specified axis, while ignoring NaNs. Returns the variance of the array elements, a measure of the spread of a distribution. The variance is computed for the flattened array by default, otherwise over the specified axis. For all-NaN slices or slices with zero degrees of freedom, NaN is r... | |
doc_7061 | By default, Django’s admin uses a select-box interface (<select>) for fields that are ForeignKey or have choices set. If a field is present in radio_fields, Django will use a radio-button interface instead. Assuming group is a ForeignKey on the Person model: class PersonAdmin(admin.ModelAdmin):
radio_fields = {"gro... | |
doc_7062 |
Access a single value for a row/column label pair. Similar to loc, in that both provide label-based lookups. Use at if you only need to get or set a single value in a DataFrame or Series. Raises
KeyError
If ‘label’ does not exist in DataFrame. See also DataFrame.iat
Access a single value for a row/column p... | |
doc_7063 |
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi... | |
doc_7064 | The full name of a template to use for generating the email with the reset password link. Defaults to registration/password_reset_email.html if not supplied. | |
doc_7065 | class sklearn.model_selection.ShuffleSplit(n_splits=10, *, test_size=None, train_size=None, random_state=None) [source]
Random permutation cross-validator Yields indices to split data into training and test sets. Note: contrary to other cross-validation strategies, random splits do not guarantee that all folds will b... | |
doc_7066 | This routine allows/disallows the SQLite engine to load SQLite extensions from shared libraries. SQLite extensions can define new functions, aggregates or whole new virtual table implementations. One well-known extension is the fulltext-search extension distributed with SQLite. Loadable extensions are disabled by defau... | |
doc_7067 | See Migration guide for more details. tf.compat.v1.raw_ops.ArgMax
tf.raw_ops.ArgMax(
input, dimension, output_type=tf.dtypes.int64, name=None
)
Note that in case of ties the identity of the return value is not guaranteed. Usage: import tensorflow as tf
a = [1, 10, 26.9, 2.8, 166.32, 62.3]
b = tf.math.argmax(inpu... | |
doc_7068 | See Migration guide for more details. tf.compat.v1.raw_ops.IsVariableInitialized
tf.raw_ops.IsVariableInitialized(
ref, name=None
)
Outputs boolean scalar indicating whether the tensor has been initialized.
Args
ref A mutable Tensor. Should be from a Variable node. May be uninitialized.
name A nam... | |
doc_7069 |
Quantizes an incoming tensor Parameters
scale – scale of the output Quantized Tensor
zero_point – zero_point of output Quantized Tensor
dtype – data type of output Quantized Tensor Variables
zero_point, dtype (`scale`,) – Examples::
>>> t = torch.tensor([[1., -1.], [1., -1.]])
>>> scale, zero_point, dty... | |
doc_7070 |
Search for fonts in the specified font paths. If no paths are given, will use a standard set of system paths, as well as the list of fonts tracked by fontconfig if fontconfig is installed and available. A list of TrueType fonts are returned by default with AFM fonts as an option. | |
doc_7071 | Windows only: returns the current value of the ctypes-private copy of the system LastError variable in the calling thread. Raises an auditing event ctypes.get_last_error with no arguments. | |
doc_7072 | See Migration guide for more details. tf.compat.v1.keras.callbacks.TerminateOnNaN
tf.keras.callbacks.TerminateOnNaN()
Methods set_model View source
set_model(
model
)
set_params View source
set_params(
params
) | |
doc_7073 |
Normalize semi-structured JSON data into a flat table. Parameters
data:dict or list of dicts
Unserialized JSON objects.
record_path:str or list of str, default None
Path in each object to list of records. If not passed, data will be assumed to be an array of records.
meta:list of paths (str or list of str... | |
doc_7074 | Add a section named section to the instance. If a section by the given name already exists, DuplicateSectionError is raised. If the default section name is passed, ValueError is raised. Type of section is not checked which lets users create non-string named sections. This behaviour is unsupported and may cause internal... | |
doc_7075 |
Apply a decorator to all methods in a class matching a regular expression. The given decorator is applied to all public methods of cls that are matched by the regular expression testmatch (testmatch.search(methodname)). Methods that are private, i.e. start with an underscore, are ignored. Parameters
clsclass
Cl... | |
doc_7076 | Called when an element contains a namespace declaration. Namespace declarations are processed before the StartElementHandler is called for the element on which declarations are placed. | |
doc_7077 | If your command defines mandatory positional arguments, you can customize the message error returned in the case of missing arguments. The default is output by argparse (“too few arguments”). | |
doc_7078 | sklearn.datasets.make_sparse_uncorrelated(n_samples=100, n_features=10, *, random_state=None) [source]
Generate a random regression problem with sparse uncorrelated design. This dataset is described in Celeux et al [1]. as: X ~ N(0, 1)
y(X) = X[:, 0] + 2 * X[:, 1] - 2 * X[:, 2] - 1.5 * X[:, 3]
Only the first 4 featu... | |
doc_7079 |
Return the first n rows. This function returns the first n rows for the object based on position. It is useful for quickly testing if your object has the right type of data in it. For negative values of n, this function returns all rows except the last n rows, equivalent to df[:-n]. Parameters
n:int, default 5
... | |
doc_7080 | See Migration guide for more details. tf.compat.v1.decode_compressed, tf.compat.v1.io.decode_compressed
tf.io.decode_compressed(
bytes, compression_type='', name=None
)
This op decompresses each element of the bytes input Tensor, which is assumed to be compressed using the given compression_type. The output is a... | |
doc_7081 | The default JSON decoder. This does not change any behavior from the built-in json.JSONDecoder. Assign a subclass of this to flask.Flask.json_decoder or flask.Blueprint.json_decoder to override the default. | |
doc_7082 |
Bases: matplotlib.axes._axes.Axes An abstract base class for geographic projections. Build an Axes in a figure. Parameters
figFigure
The Axes is built in the Figure fig.
rect[left, bottom, width, height]
The Axes is built in the rectangle rect. rect is in Figure coordinates.
sharex, shareyAxes, optional
... | |
doc_7083 | tf.scalar_mul
tf.math.scalar_mul(
scalar, x, name=None
)
Intended for use in gradient code which might deal with IndexedSlices objects, which are easy to multiply by a scalar but more expensive to multiply with arbitrary tensors.
Args
scalar A 0-D scalar Tensor. Must have known shape.
x A Tensor o... | |
doc_7084 |
Add a SubFigure to the figure as part of a subplot arrangement. Parameters
subplotspecgridspec.SubplotSpec
Defines the region in a parent gridspec where the subfigure will be placed. Returns
figure.SubFigure
Other Parameters
**kwargs
Are passed to the SubFigure object. See also Figure.subfigures | |
doc_7085 |
same as feature_implies() but combining ‘names’ | |
doc_7086 | Convert the return value from a view function to an instance of response_class. Parameters
rv (Union[Response, AnyStr, Dict[str, Any], Generator[AnyStr, None, None], Tuple[Union[Response, AnyStr, Dict[str, Any], Generator[AnyStr, None, None]], Union[Headers, Dict[str, Union[str, List[str], Tuple[str, ...]]], List[Tup... | |
doc_7087 | Set the attribute key on the element to value. | |
doc_7088 | See Migration guide for more details. tf.compat.v1.random.set_random_seed
tf.compat.v1.set_random_seed(
seed
)
Operations that rely on a random seed actually derive it from two seeds: the graph-level and operation-level seeds. This sets the graph-level seed. Its interactions with operation-level seeds is as foll... | |
doc_7089 |
This is a sequential container which calls the Conv 2d and Batch Norm 2d modules. During quantization this will be replaced with the corresponding fused module. | |
doc_7090 |
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_7091 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchMatrixDeterminant
tf.raw_ops.BatchMatrixDeterminant(
input, name=None
)
Args
input A Tensor. Must be one of the following types: float32, float64, complex64, complex128.
name A name for the operation (optional).
Returns A Te... | |
doc_7092 |
Draw a glyph described by info to the reference point (ox, oy). | |
doc_7093 |
Bases: matplotlib.artist.Artist Place a legend on the axes at location loc. Parameters
parentAxes or Figure
The artist that contains the legend.
handleslist of Artist
A list of Artists (lines, patches) to be added to the legend.
labelslist of str
A list of labels to show next to the artists. The length ... | |
doc_7094 |
Remove a callback based on its observer id. See also add_callback | |
doc_7095 |
Test whether all matrix elements along a given axis evaluate to True. Parameters
See `numpy.all` for complete descriptions
See also numpy.all
Notes This is the same as ndarray.all, but it returns a matrix object. Examples >>> x = np.matrix(np.arange(12).reshape((3,4))); x
matrix([[ 0, 1, 2, 3],
[... | |
doc_7096 | os.execle(path, arg0, arg1, ..., env)
os.execlp(file, arg0, arg1, ...)
os.execlpe(file, arg0, arg1, ..., env)
os.execv(path, args)
os.execve(path, args, env)
os.execvp(file, args)
os.execvpe(file, args, env)
These functions all execute a new program, replacing the current process; they do not return. On U... | |
doc_7097 |
Returns the pickle of the array as a string. pickle.loads will convert the string back to an array. Parameters
None | |
doc_7098 | A data structure of functions to call at the end of each request even if an exception is raised, in the format {scope: [functions]}. The scope key is the name of a blueprint the functions are active for, or None for all requests. To register a function, use the teardown_request() decorator. This data structure is inter... | |
doc_7099 |
Return a tuple of three or four floats from 0-1. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.