_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_1500 |
Return a data hash of the Index/Series/DataFrame. Parameters
obj:Index, Series, or DataFrame
index:bool, default True
Include the index in the hash (if Series/DataFrame).
encoding:str, default ‘utf8’
Encoding for data & key when strings.
hash_key:str, default _default_hash_key
Hash_key for string key ... | |
doc_1501 |
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g... | |
doc_1502 | Return a file descriptor referring to the process pid. This descriptor can be used to perform process management without races and signals. The flags argument is provided for future extensions; no flag values are currently defined. See the pidfd_open(2) man page for more details. Availability: Linux 5.3+ New in versio... | |
doc_1503 |
Mixin class for all regression estimators in scikit-learn. Methods
score(X, y[, sample_weight]) Return the coefficient of determination \(R^2\) of the prediction.
score(X, y, sample_weight=None) [source]
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \... | |
doc_1504 |
Bases: skimage.viewer.plugins.base.Plugin Plugin for ImageViewer that contains a plot canvas. Base class for plugins that contain a Matplotlib plot canvas, which can, for example, display an image histogram. See base Plugin class for additional details.
__init__(image_filter=None, height=150, width=400, **kwargs) [... | |
doc_1505 |
Alias for get_linewidth. | |
doc_1506 | Return True if the symbol is nonlocal. | |
doc_1507 | Returns a list of subcommand names in the order they should appear. | |
doc_1508 | The name of the header (the portion of the field before the ‘:’). This is exactly the value passed in the header_factory call for name; that is, case is preserved. | |
doc_1509 |
Bases: mpl_toolkits.axisartist.axislines.Axes 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
The x or y axis is shared with the x o... | |
doc_1510 | A single context manager in a with block. context_expr is the context manager, often a Call node. optional_vars is a Name, Tuple or List for the as foo part, or None if that isn’t used. >>> print(ast.dump(ast.parse("""\
... with a as b, c as d:
... something(b, d)
... """), indent=4))
Module(
body=[
With... | |
doc_1511 | Writes all values from the tensor src into self at the indices specified in the index tensor. For each value in src, its output index is specified by its index in src for dimension != dim and by the corresponding value in index for dimension = dim. For a 3-D tensor, self is updated as: self[index[i][j][k]][j][k] = src[... | |
doc_1512 |
Set multiple properties at once. Supported properties are
Property Description
adjustable {'box', 'datalim'}
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
anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}... | |
doc_1513 | Return a list of namespaces bound to this name. | |
doc_1514 | The type of bound methods of some built-in data types and base classes. For example it is the type of object().__str__. New in version 3.7. | |
doc_1515 | Warns about common errors in the WSGI and HTTP behavior of the server and wrapped application. Some of the issues it checks are: invalid status codes non-bytes sent to the WSGI server strings returned from the WSGI application non-empty conditional responses unquoted etags relative URLs in the Location header unsafe c... | |
doc_1516 | The arguments are an object and a string. The result is True if the string is the name of one of the object’s attributes, False if not. (This is implemented by calling getattr(object, name) and seeing whether it raises an AttributeError or not.) | |
doc_1517 | Decodes obj using the codec registered for encoding. Errors may be given to set the desired error handling scheme. The default error handler is 'strict' meaning that decoding errors raise ValueError (or a more codec specific subclass, such as UnicodeDecodeError). Refer to Codec Base Classes for more information on code... | |
doc_1518 | New in Django 4.0. Set search_help_text to specify a descriptive text for the search box which will be displayed below it. | |
doc_1519 |
Aggregate using one or more operations over the specified axis. Parameters
func:function, str, list or dict
Function to use for aggregating the data. If a function, must either work when passed a Series/Dataframe or when passed to Series/Dataframe.apply. Accepted combinations are: function string function name... | |
doc_1520 |
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_1521 | Flushes the builder buffers, and returns the toplevel document element. Returns an Element instance. | |
doc_1522 | The lowercase letters 'abcdefghijklmnopqrstuvwxyz'. This value is not locale-dependent and will not change. | |
doc_1523 |
Return the YAxis instance. The use of this function is discouraged. You should instead directly access the attribute ax.yaxis. | |
doc_1524 |
Attributes
allocator_type string allocator_type
allow_growth bool allow_growth
deferred_deletion_bytes int64 deferred_deletion_bytes
experimental Experimental experimental
force_gpu_compatible bool force_gpu_compatible
per_process_gpu_memory_fraction double per_process_gpu_memory_... | |
doc_1525 |
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su... | |
doc_1526 | A lazier version of map(). The chunksize argument is the same as the one used by the map() method. For very long iterables using a large value for chunksize can make the job complete much faster than using the default value of 1. Also if chunksize is 1 then the next() method of the iterator returned by the imap() metho... | |
doc_1527 | mmap.MADV_RANDOM
mmap.MADV_SEQUENTIAL
mmap.MADV_WILLNEED
mmap.MADV_DONTNEED
mmap.MADV_REMOVE
mmap.MADV_DONTFORK
mmap.MADV_DOFORK
mmap.MADV_HWPOISON
mmap.MADV_MERGEABLE
mmap.MADV_UNMERGEABLE
mmap.MADV_SOFT_OFFLINE
mmap.MADV_HUGEPAGE
mmap.MADV_NOHUGEPAGE
mmap.MADV_DONTDUMP
mmap.MADV_DODUMP
m... | |
doc_1528 | Execute command args with messages identified by UID, rather than message number. Returns response appropriate to command. At least one argument must be supplied; if none are provided, the server will return an error and an exception will be raised. | |
doc_1529 |
Set whether the z-axis is autoscaled on the next draw or call to Axes.autoscale_view. Parameters
bbool | |
doc_1530 | Allows specifying that the module named oldname is in fact the package named newname. | |
doc_1531 |
Fit a Generalized Linear Model. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training data.
yarray-like of shape (n_samples,)
Target values.
sample_weightarray-like of shape (n_samples,), default=None
Sample weights. Returns
selfreturns an instance of self. | |
doc_1532 | tf.compat.v1.Print(
input_, data, message=None, first_n=None, summarize=None, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed after 2018-08-20. Instructions for updating: Use tf.print instead of tf.Print. Note that tf.print returns a no-output operator that directly prints the output. Outside ... | |
doc_1533 |
Return the cap height as float. | |
doc_1534 | See Migration guide for more details. tf.compat.v1.keras.constraints.get
tf.keras.constraints.get(
identifier
) | |
doc_1535 |
Draw random samples from a normal (Gaussian) distribution. The probability density function of the normal distribution, first derived by De Moivre and 200 years later by both Gauss and Laplace independently [2], is often called the bell curve because of its characteristic shape (see the example below). The normal dis... | |
doc_1536 |
Alias for get_edgecolor. | |
doc_1537 |
Draw samples from the standard exponential distribution. standard_exponential is identical to the exponential distribution with a scale parameter of 1. Note New code should use the standard_exponential method of a default_rng() instance instead; please see the Quick Start. Parameters
sizeint or tuple of ints, o... | |
doc_1538 |
Replaces specified elements of an array with given values. The indexing works on the flattened target array. put is roughly equivalent to: a.flat[ind] = v
Parameters
andarray
Target array.
indarray_like
Target indices, interpreted as integers.
varray_like
Values to place in a at target indices. If v is... | |
doc_1539 | See torch.logaddexp2() | |
doc_1540 | tf.experimental.numpy.greater_equal(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.greater_equal. | |
doc_1541 |
Spectral embedding for non-linear dimensionality reduction. Forms an affinity matrix given by the specified function and applies spectral decomposition to the corresponding graph laplacian. The resulting transformation is given by the value of the eigenvectors for each data point. Note : Laplacian Eigenmaps is the ac... | |
doc_1542 | Call os.unlink() on filename. On Windows platforms, this is wrapped with a wait loop that checks for the existence fo the file. | |
doc_1543 | play the full aliens example aliens.main() -> None This started off as a port of the SDL demonstration, Aliens. Now it has evolved into something sort of resembling fun. This demonstrates a lot of different uses of sprites and optimized blitting. Also transparency, colorkeys, fonts, sound, music, joystick, and more. ... | |
doc_1544 | stat.FILE_ATTRIBUTE_COMPRESSED
stat.FILE_ATTRIBUTE_DEVICE
stat.FILE_ATTRIBUTE_DIRECTORY
stat.FILE_ATTRIBUTE_ENCRYPTED
stat.FILE_ATTRIBUTE_HIDDEN
stat.FILE_ATTRIBUTE_INTEGRITY_STREAM
stat.FILE_ATTRIBUTE_NORMAL
stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
stat.FILE_ATTRIBUTE_NO_SCRUB_DATA
stat.FILE_ATTRIBUTE... | |
doc_1545 | Write the contents of buffers to file descriptor fd. buffers must be a sequence of bytes-like objects. Buffers are processed in array order. Entire contents of the first buffer is written before proceeding to the second, and so on. Returns the total number of bytes actually written. The operating system may set a limit... | |
doc_1546 | Finish the compression process, returning a bytes object containing any data stored in the compressor’s internal buffers. The compressor cannot be used after this method has been called. | |
doc_1547 | tf.compat.v1.logging.warning(
msg, *args, **kwargs
) | |
doc_1548 |
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also
set_picker, get_picker, pickable | |
doc_1549 | This mixin, just like the permission_required decorator, checks whether the user accessing a view has all given permissions. You should specify the permission (or an iterable of permissions) using the permission_required parameter: from django.contrib.auth.mixins import PermissionRequiredMixin
class MyView(PermissionR... | |
doc_1550 | Address space of a memory block (int or None). tracemalloc uses the domain 0 to trace memory allocations made by Python. C extensions can use other domains to trace other resources. | |
doc_1551 | See Migration guide for more details. tf.compat.v1.estimator.EvalSpec
tf.estimator.EvalSpec(
input_fn, steps=100, name=None, hooks=None, exporters=None,
start_delay_secs=120, throttle_secs=600
)
EvalSpec combines details of evaluation of the trained model as well as its export. Evaluation consists of computi... | |
doc_1552 |
Other Members
ABORTED 10
ALREADY_EXISTS 6
CANCELLED 1
DATA_LOSS 15
DEADLINE_EXCEEDED 4
FAILED_PRECONDITION 9
INTERNAL 13
INVALID_ARGUMENT 3
NOT_FOUND 5
OK 0
OUT_OF_RANGE 11
PERMISSION_DENIED 7
RESOURCE_EXHAUSTED 8
UNAUTHENTICATED 16 ... | |
doc_1553 |
Expresses to what extent the local structure is retained. The trustworthiness is within [0, 1]. It is defined as \[T(k) = 1 - \frac{2}{nk (2n - 3k - 1)} \sum^n_{i=1} \sum_{j \in \mathcal{N}_{i}^{k}} \max(0, (r(i, j) - k))\] where for each sample i, \(\mathcal{N}_{i}^{k}\) are its k nearest neighbors in the output sp... | |
doc_1554 | Wraps a callback so that it’s guaranteed to be executed with the script’s application context. If callbacks are registered directly to the app.cli object then they are wrapped with this function by default unless it’s disabled. | |
doc_1555 | Return the password database entry for the given numeric user ID. | |
doc_1556 | Set the debug mode of the event loop. Changed in version 3.7: The new Python Development Mode can now also be used to enable the debug mode. | |
doc_1557 | See Migration guide for more details. tf.compat.v1.raw_ops.Print
tf.raw_ops.Print(
input, data, message='', first_n=-1, summarize=3, name=None
)
Passes input through to output and prints data when evaluating.
Args
input A Tensor. The tensor passed to output
data A list of Tensor objects. A list of... | |
doc_1558 |
Set the font variant. Values are: 'normal' or 'small-caps'. | |
doc_1559 | Add the file name to the archive. name may be any type of file (directory, fifo, symbolic link, etc.). If given, arcname specifies an alternative name for the file in the archive. Directories are added recursively by default. This can be avoided by setting recursive to False. Recursion adds entries in sorted order. If ... | |
doc_1560 |
Transform the given label sets. Parameters
yiterable of iterables
A set of labels (any orderable and hashable object) for each sample. If the classes parameter is set, y will not be iterated. Returns
y_indicatorarray or CSR matrix, shape (n_samples, n_classes)
A matrix such that y_indicator[i, j] = 1 if... | |
doc_1561 |
Make a horizontal bar plot. A horizontal bar plot is a plot that presents quantitative data with rectangular bars with lengths proportional to the values that they represent. A bar plot shows comparisons among discrete categories. One axis of the plot shows the specific categories being compared, and the other axis r... | |
doc_1562 |
Return the alpha value used for blending - not supported on all backends. | |
doc_1563 | class sklearn.linear_model.RANSACRegressor(base_estimator=None, *, min_samples=None, residual_threshold=None, is_data_valid=None, is_model_valid=None, max_trials=100, max_skips=inf, stop_n_inliers=inf, stop_score=inf, stop_probability=0.99, loss='absolute_loss', random_state=None) [source]
RANSAC (RANdom SAmple Conse... | |
doc_1564 |
Draw a filled black rectangle from (x1, y1) to (x2, y2). | |
doc_1565 |
DateOffset increments between the last business day of the month. Examples
>>> from pandas.tseries.offsets import BMonthEnd
>>> ts = pd.Timestamp('2020-05-24 05:01:15')
>>> ts + BMonthEnd()
Timestamp('2020-05-29 05:01:15')
>>> ts + BMonthEnd(2)
Timestamp('2020-06-30 05:01:15')
>>> ts + BMonthEnd(-2)
Timestamp('2020-... | |
doc_1566 | Loads the Flask app (if not yet loaded) and returns it. Calling this multiple times will just result in the already loaded app to be returned. | |
doc_1567 | Iterate over all rules or the rules of an endpoint. Parameters
endpoint (Optional[str]) – if provided only the rules for that endpoint are returned. Returns
an iterator Return type
Iterator[werkzeug.routing.Rule] | |
doc_1568 |
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_1569 | tf.compat.v1.nn.sufficient_statistics(
x, axes, shift=None, keep_dims=None, name=None, keepdims=None
)
These sufficient statistics are computed using the one pass algorithm on an input that's optionally shifted. See: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Computing_shifted_data For examp... | |
doc_1570 | Called when a file has finished uploading. The handler should return an UploadedFile object that will be stored in request.FILES. Handlers may also return None to indicate that the UploadedFile object should come from subsequent upload handlers. | |
doc_1571 |
The number of elements in the gentype. | |
doc_1572 |
Cast a pandas object to a specified dtype dtype. Parameters
dtype:data type, or dict of column name -> data type
Use a numpy.dtype or Python type to cast entire pandas object to the same type. Alternatively, use {col: dtype, …}, where col is a column label and dtype is a numpy.dtype or Python type to cast one o... | |
doc_1573 |
Execute a call_method node and return the result. Parameters
target (Target) – The call target for this node. See Node for details on semantics
args (Tuple) – Tuple of positional args for this invocation
kwargs (Dict) – Dict of keyword arguments for this invocation Return
Any: The value returned by the met... | |
doc_1574 | sklearn.datasets.make_swiss_roll(n_samples=100, *, noise=0.0, random_state=None) [source]
Generate a swiss roll dataset. Read more in the User Guide. Parameters
n_samplesint, default=100
The number of sample points on the S curve.
noisefloat, default=0.0
The standard deviation of the gaussian noise.
rando... | |
doc_1575 |
Blocking call to interact with the figure. Wait for user input and return True if a key was pressed, False if a mouse button was pressed and None if no input was given within timeout seconds. Negative values deactivate timeout. | |
doc_1576 | tf.compat.v1.distributions.Distribution(
dtype, reparameterization_type, validate_args, allow_nan_stats, parameters=None,
graph_parents=None, name=None
)
Distribution is a base class for constructing and organizing properties (e.g., mean, variance) of random variables (e.g, Bernoulli, Gaussian). Subclassing Su... | |
doc_1577 | By default, ArgumentParser groups command-line arguments into “positional arguments” and “optional arguments” when displaying help messages. When there is a better conceptual grouping of arguments than this default one, appropriate groups can be created using the add_argument_group() method: >>> parser = argparse.Argum... | |
doc_1578 |
Returns whether the kernel is stationary. | |
doc_1579 |
Number of array dimensions. Examples >>> x = np.array([1, 2, 3])
>>> x.ndim
1
>>> y = np.zeros((2, 3, 4))
>>> y.ndim
3 | |
doc_1580 |
Set the pick radius used for containment tests. Parameters
prfloat
Pick radius, in points. | |
doc_1581 |
alias of mpl_toolkits.axes_grid1.axes_size.Scaled | |
doc_1582 |
Fit the model with X. Samples random projection according to n_features. Parameters
X{array-like, sparse matrix}, shape (n_samples, n_features)
Training data, where n_samples in the number of samples and n_features is the number of features. Returns
selfobject
Returns the transformer. | |
doc_1583 | Return the name of start method used for starting processes. If the start method has not been fixed and allow_none is false, then the start method is fixed to the default and the name is returned. If the start method has not been fixed and allow_none is true then None is returned. The return value can be 'fork', 'spawn... | |
doc_1584 |
Update this artist's properties from the dict props. Parameters
propsdict | |
doc_1585 | Hann window function. w[n]=12[1−cos(2πnN−1)]=sin2(πnN−1),w[n] = \frac{1}{2}\ \left[1 - \cos \left( \frac{2 \pi n}{N - 1} \right)\right] = \sin^2 \left( \frac{\pi n}{N - 1} \right),
where NN is the full window size. The input window_length is a positive integer controlling the returned window size. periodic flag d... | |
doc_1586 | Creates and returns a generator object that manages the state of the algorithm which produces pseudo random numbers. Used as a keyword argument in many In-place random sampling functions. Parameters
device (torch.device, optional) – the desired device for the generator. Returns
An torch.Generator object. Return ty... | |
doc_1587 | Performs global post-test teardown, such as removing instrumentation from the template system and restoring normal email services. | |
doc_1588 |
Bases: matplotlib.patches.FancyArrowPatch A patch that connects two points (possibly in different axes). Connect point xyA in coordsA with point xyB in coordsB. Valid keys are
Key Description
arrowstyle the arrow style
connectionstyle the connection style
relpos default is (0.5, 0.5)
patchA default is bou... | |
doc_1589 | If the range is for bytes, the length is not None and there is exactly one range and it is satisfiable it returns a (start, stop) tuple, otherwise None. | |
doc_1590 | tf.losses.SquaredHinge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.SquaredHinge
tf.keras.losses.SquaredHinge(
reduction=losses_utils.ReductionV2.AUTO, name='squared_hinge'
)
loss = square(maximum(1 - y_true * y_pred, 0)) y_true values are expected to be -1 or 1. I... | |
doc_1591 | Register callables to be executed when a new child process is forked using os.fork() or similar process cloning APIs. The parameters are optional and keyword-only. Each specifies a different call point.
before is a function called before forking a child process.
after_in_parent is a function called from the parent p... | |
doc_1592 | See Migration guide for more details. tf.compat.v1.raw_ops.RefSelect
tf.raw_ops.RefSelect(
index, inputs, name=None
)
Args
index A Tensor of type int32. A scalar that determines the input that gets selected.
inputs A list of at least 1 mutable Tensor objects with the same type. A list of ref tenso... | |
doc_1593 | '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_1594 |
Complex-conjugate all elements. Refer to numpy.conjugate for full documentation. See also numpy.conjugate
equivalent function | |
doc_1595 | This method makes an HttpResponse instance a file-like object. | |
doc_1596 | The code object has a variable positional parameter (*args-like). | |
doc_1597 |
Returns a new distribution instance (or populates an existing instance provided by a derived class) with batch dimensions expanded to batch_shape. This method calls expand on the distribution’s parameters. As such, this does not allocate new memory for the expanded distribution instance. Additionally, this does not r... | |
doc_1598 |
Fit estimator. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Use dtype=np.float32 for maximum efficiency. Sparse matrices are also supported, use sparse csc_matrix for maximum efficiency.
yIgnored
Not used, present for API consistency by convention.
sample_wei... | |
doc_1599 |
Check if coefficients match. New in version 1.6.0. Parameters
otherclass instance
The other class must have the coef attribute. Returns
boolboolean
True if the coefficients are the same, False otherwise. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.