_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_10000 | For addresses that appear to be Teredo addresses (starting with 2001::/32) as defined by RFC 4380, this property will report the embedded (server, client) IP address pair. For any other address, this property will be None. | |
doc_10001 | closes a midi stream, flushing any pending buffers. close() -> None PortMidi attempts to close open streams when the application exits. Note This is particularly difficult under Windows. | |
doc_10002 | tf.compat.v1.sparse_to_dense(
sparse_indices, output_shape, sparse_values, default_value=0,
validate_indices=True, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Create a tf.sparse.SparseTensor and use tf.sparse.to_dense instead. Builds an a... | |
doc_10003 |
Advance the underlying RNG as-if delta draws have occurred. Parameters
deltainteger, positive
Number of draws to advance the RNG. Must be less than the size state variable in the underlying RNG. Returns
selfPhilox
RNG advanced delta steps Notes Advancing a RNG updates the underlying RNG state as-if ... | |
doc_10004 | Enumerates subkeys of an open registry key, returning a string. key is an already open key, or one of the predefined HKEY_* constants. index is an integer that identifies the index of the key to retrieve. The function retrieves the name of one subkey each time it is called. It is typically called repeatedly until an OS... | |
doc_10005 | tf.compat.v1.scatter_nd_add(
ref, indices, updates, use_locking=False, name=None
)
ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indices into ref. It must be shape [d_0, ..., d_{Q-2}, K] where 0 < K <= P. The innermost dimension of indices (with length K)... | |
doc_10006 | A float indicating the timeout to use for all RPCs. If an RPC does not complete in this timeframe, it will complete with an exception indicating that it has timed out. | |
doc_10007 | Perform the same operation as sub(), but return a tuple (new_string,
number_of_subs_made). Changed in version 3.1: Added the optional flags argument. Changed in version 3.5: Unmatched groups are replaced with an empty string. | |
doc_10008 | Returns a new tensor containing imaginary values of the self tensor. The returned tensor and self share the same underlying storage. Warning imag() is only supported for tensors with complex dtypes. Parameters
input (Tensor) – the input tensor. Example::
>>> x=torch.randn(4, dtype=torch.cfloat)
>>> x
tensor([(0... | |
doc_10009 | tf.compat.v1.reset_default_graph()
Note: The default graph is a property of the current thread. This function applies only to the current thread. Calling this function while a tf.compat.v1.Session or tf.compat.v1.InteractiveSession is active will result in undefined behavior. Using any previously created tf.Operation... | |
doc_10010 | Return an iterator for the month month in the year year similar to itermonthdates(), but not restricted by the datetime.date range. Days returned will simply be day of the month numbers. For the days outside of the specified month, the day number is 0. | |
doc_10011 | tf.experimental.numpy.stack(
arrays, axis=0
)
Unsupported arguments: out. See the NumPy documentation for numpy.stack. | |
doc_10012 |
Plot identical parallel lines at the given positions. This type of plot is commonly used in neuroscience for representing neural events, where it is usually called a spike raster, dot raster, or raster plot. However, it is useful in any situation where you wish to show the timing or position of multiple sets of discr... | |
doc_10013 |
Smooth and then downsample image. Parameters
imagendarray
Input image.
downscalefloat, optional
Downscale factor.
sigmafloat, optional
Sigma for Gaussian filter. Default is 2 * downscale / 6.0 which corresponds to a filter mask twice the size of the scale factor that covers more than 99% of the Gaussian... | |
doc_10014 | accessor for ‘max-age’ | |
doc_10015 | django.db.models.signals.pre_save & django.db.models.signals.post_save Sent before or after a model’s save() method is called.
django.db.models.signals.pre_delete & django.db.models.signals.post_delete Sent before or after a model’s delete() method or queryset’s delete() method is called.
django.db.models.signals.m... | |
doc_10016 | Enter cbreak mode. In cbreak mode (sometimes called “rare” mode) normal tty line buffering is turned off and characters are available to be read one by one. However, unlike raw mode, special characters (interrupt, quit, suspend, and flow control) retain their effects on the tty driver and calling program. Calling first... | |
doc_10017 | internally process pygame event handlers pump() -> None For each frame of your game, you will need to make some sort of call to the event queue. This ensures your program can internally interact with the rest of the operating system. This function is not necessary if your program is consistently processing events on ... | |
doc_10018 | Returns the current value of the spinbox. | |
doc_10019 |
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy. | |
doc_10020 | Vector.cxx
that contain prototypes and code for a variety of functions that have one-dimensional arrays as function arguments. The file: Vector.i
is a SWIG interface file that defines a python module Vector that wraps the functions in Vector.h while utilizing the typemaps in numpy.i to correctly handle the C arrays. ... | |
doc_10021 | tkinter.filedialog.askopenfiles(mode="r", **options)
The above two functions create an Open dialog and return the opened file object(s) in read-only mode. | |
doc_10022 | tf.image.stateless_random_saturation(
image, lower, upper, seed=None
)
Equivalent to adjust_saturation() but uses a saturation_factor randomly picked in the interval [lower, upper). Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed ... | |
doc_10023 | Returns the path for which the cookie should be valid. The default implementation uses the value from the SESSION_COOKIE_PATH config var if it’s set, and falls back to APPLICATION_ROOT or uses / if it’s None. Parameters
app (Flask) – Return type
str | |
doc_10024 | Set the flags of path to the numeric flags. flags may take a combination (bitwise OR) of the following values (as defined in the stat module): stat.UF_NODUMP stat.UF_IMMUTABLE stat.UF_APPEND stat.UF_OPAQUE stat.UF_NOUNLINK stat.UF_COMPRESSED stat.UF_HIDDEN stat.SF_ARCHIVED stat.SF_IMMUTABLE stat.SF_APPEND stat.SF_NOUN... | |
doc_10025 |
Set the height of the figure in inches. Parameters
valfloat
forwardbool
See set_size_inches. See also matplotlib.figure.Figure.set_figwidth
matplotlib.figure.Figure.set_size_inches | |
doc_10026 |
Return the decision path in the tree. New in version 0.18. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix.
check_inputbool, default=True
Allow to bypa... | |
doc_10027 | An instance of ResolverMatch representing the resolved URL. This attribute is only set after URL resolving took place, which means it’s available in all views but not in middleware which are executed before URL resolving takes place (you can use it in process_view() though). | |
doc_10028 | When set, all unreachable objects found will be appended to garbage rather than being freed. This can be useful for debugging a leaking program. | |
doc_10029 |
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_10030 | Send a LIST NEWSGROUPS command, where grouppattern is a wildmat string as specified in RFC 3977 (it’s essentially the same as DOS or UNIX shell wildcard strings). Return a pair (response, descriptions), where descriptions is a dictionary mapping group names to textual descriptions. >>> resp, descs = s.descriptions('gma... | |
doc_10031 |
Pushes a range onto a stack of nested range span. Returns zero-based depth of the range that is started. Parameters
msg (string) – ASCII message to associate with range | |
doc_10032 |
Return whether the renderer is in the process of saving to a file, rather than rendering for an on-screen buffer. | |
doc_10033 | See Migration guide for more details. tf.compat.v1.estimator.experimental.make_stop_at_checkpoint_step_hook
tf.estimator.experimental.make_stop_at_checkpoint_step_hook(
estimator, last_step, wait_after_file_check_secs=30
) | |
doc_10034 | Return a generator of groups with up to n lines of context. Starting with the groups returned by get_opcodes(), this method splits out smaller change clusters and eliminates intervening ranges which have no changes. The groups are returned in the same format as get_opcodes(). | |
doc_10035 | See torch.isinf() | |
doc_10036 | See Migration guide for more details. tf.compat.v1.math.confusion_matrix
tf.compat.v1.confusion_matrix(
labels, predictions, num_classes=None, dtype=tf.dtypes.int32, name=None,
weights=None
)
The matrix columns represent the prediction labels and the rows represent the real labels. The confusion matrix is al... | |
doc_10037 |
Finds the K-neighbors of a point. Returns indices of and distances to the neighbors of each point. Parameters
Xarray-like, shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’, default=None
The query point or points. If not provided, neighbors of each indexed point are returned. I... | |
doc_10038 |
Set the xaxis' tick locations and optionally labels. If necessary, the view limits of the Axis are expanded so that all given ticks are visible. Parameters
tickslist of floats
List of tick locations.
labelslist of str, optional
List of tick labels. If not set, the labels show the data value.
minorbool, de... | |
doc_10039 | Return a record describing the columns of the view, through calling MsiViewGetColumnInfo(). kind can be either MSICOLINFO_NAMES or MSICOLINFO_TYPES. | |
doc_10040 |
Bases: mpl_toolkits.axes_grid1.axes_size.MaxExtent Size whose absolute part is the largest width of the given artist_list. | |
doc_10041 | An implementation of the built-in __import__() function. Note Programmatic importing of modules should use import_module() instead of this function. | |
doc_10042 | Return a sorted sequence of method names found within testCaseClass; this should be a subclass of TestCase. | |
doc_10043 | This is the default AppConfig class for the admin. It calls autodiscover() when Django starts. | |
doc_10044 | See Migration guide for more details. tf.compat.v1.raw_ops.Conv3DBackpropFilter
tf.raw_ops.Conv3DBackpropFilter(
input, filter, out_backprop, strides, padding, dilations=[1, 1, 1, 1, 1],
name=None
)
Args
input A Tensor. Must be one of the following types: half, float32, float64. Shape [batch, depth,... | |
doc_10045 | Creates a copy or symlink to the Python executable in the environment. On POSIX systems, if a specific executable python3.x was used, symlinks to python and python3 will be created pointing to that executable, unless files with those names already exist. | |
doc_10046 |
alias of matplotlib.backends.backend_svg.FigureCanvasSVG
classmatplotlib.backends.backend_svg.FigureCanvasSVG(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 ... | |
doc_10047 |
Call self as a function. | |
doc_10048 | Context manager to wait until all threads created in the with statement exit. | |
doc_10049 |
True if this transform is separable in the x- and y- dimensions. | |
doc_10050 | Modify or inquire widget state. If statespec is specified, sets the widget state according to it and return a new statespec indicating which flags were changed. If statespec is not specified, returns the currently-enabled state flags. | |
doc_10051 | The get_sortable_by() method is passed the HttpRequest and is expected to return a collection (e.g. list, tuple, or set) of field names that will be sortable in the change list page. Its default implementation returns sortable_by if it’s set, otherwise it defers to get_list_display(). For example, to prevent one or mor... | |
doc_10052 |
Returns the sum of each row of the sparse tensor input in the given dimensions dim. If dim is a list of dimensions, reduce over all of them. When sum over all sparse_dim, this method returns a dense tensor instead of a sparse tensor. All summed dim are squeezed (see torch.squeeze()), resulting an output tensor having... | |
doc_10053 | Save the current state of the terminal modes in a buffer, usable by resetty(). | |
doc_10054 | Assert the mock was never called. >>> m = Mock()
>>> m.hello.assert_not_called()
>>> obj = m.hello()
>>> m.hello.assert_not_called()
Traceback (most recent call last):
...
AssertionError: Expected 'hello' to not have been called. Called 1 times.
New in version 3.5. | |
doc_10055 |
The quarter of the date. | |
doc_10056 | Computes the one dimensional inverse discrete Fourier transform of input. Parameters
input (Tensor) – the input tensor
n (int, optional) – Signal length. If given, the input will either be zero-padded or trimmed to this length before computing the IFFT.
dim (int, optional) – The dimension along which to take the ... | |
doc_10057 | A flag that indicates if the session interface is pickle based. This can be used by Flask extensions to make a decision in regards to how to deal with the session object. Changelog New in version 0.10. | |
doc_10058 |
Check if the Index is of the object dtype. Returns
bool
Whether or not the Index is of the object dtype. See also is_boolean
Check if the Index only consists of booleans. is_integer
Check if the Index only consists of integers. is_floating
Check if the Index is a floating type. is_numeric
Check if th... | |
doc_10059 |
Weight function of the Legendre polynomials. The weight function is \(1\) and the interval of integration is \([-1, 1]\). The Legendre polynomials are orthogonal, but not normalized, with respect to this weight function. Parameters
xarray_like
Values at which the weight function will be computed. Returns
... | |
doc_10060 | Headers of the response in the form of an email.message.EmailMessage instance. | |
doc_10061 | Normal distribution. mu is the mean, and sigma is the standard deviation. | |
doc_10062 |
Construct DataFrame from dict of array-like or dicts. Creates DataFrame object from dictionary by columns or by index allowing dtype specification. Parameters
data:dict
Of the form {field : array-like} or {field : dict}.
orient:{‘columns’, ‘index’, ‘tight’}, default ‘columns’
The “orientation” of the data. ... | |
doc_10063 | Filter specific flags. KQ_FILTER_READ and KQ_FILTER_WRITE filter flags:
Constant Meaning
KQ_NOTE_LOWAT low water mark of a socket buffer KQ_FILTER_VNODE filter flags:
Constant Meaning
KQ_NOTE_DELETE unlink() was called
KQ_NOTE_WRITE a write occurred
KQ_NOTE_EXTEND the file was extended
KQ_NOTE_ATTRI... | |
doc_10064 |
Computes the (weighted) graph of k-Neighbors for points in X Read more in the User Guide. Parameters
Xarray-like of shape (n_samples, n_features) or BallTree
Sample data, in the form of a numpy array or a precomputed BallTree.
n_neighborsint
Number of neighbors for each sample.
mode{‘connectivity’, ‘dista... | |
doc_10065 | tf.compat.v1.train.input_producer(
input_tensor, element_shape=None, num_epochs=None, shuffle=True, seed=None,
capacity=32, shared_name=None, summary_name=None, name=None, cancel_op=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Queue-based input... | |
doc_10066 | Deprecated since version 3.8: Support for sequence protocol is deprecated.
getEvent()
Return a tuple containing event and the current node as xml.dom.minidom.Document if event equals START_DOCUMENT, xml.dom.minidom.Element if event equals START_ELEMENT or END_ELEMENT or xml.dom.minidom.Text if event equals CHARAC... | |
doc_10067 | Print up to limit stack trace entries from traceback object tb (starting from the caller’s frame) if limit is positive. Otherwise, print the last abs(limit) entries. If limit is omitted or None, all entries are printed. If file is omitted or None, the output goes to sys.stderr; otherwise it should be an open file or fi... | |
doc_10068 |
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters
**paramsdict
Estimator parameters. Returns... | |
doc_10069 | Process objects represent activity that is run in a separate process. The Process class has equivalents of all the methods of threading.Thread. The constructor should always be called with keyword arguments. group should always be None; it exists solely for compatibility with threading.Thread. target is the callable ob... | |
doc_10070 |
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_10071 |
Given the location and size of the box, return the path of the box around it. Parameters
x0, y0, width, heightfloat
Location and size of the box.
mutation_sizefloat
A reference scale for the mutation. Returns
Path | |
doc_10072 | Type of device if an inode device. | |
doc_10073 |
Calculate the appropriate label rotation given the linecontour coordinates in screen units, the index of the label location and the label width. If lc is not None or empty, also break contours and compute inlining. spacing is the empty space to leave around the label, in pixels. Both tasks are done together to avoid ... | |
doc_10074 |
Unsupervised Outlier Detection. Estimate the support of a high-dimensional distribution. The implementation is based on libsvm. Read more in the User Guide. Parameters
kernel{‘linear’, ‘poly’, ‘rbf’, ‘sigmoid’, ‘precomputed’}, default=’rbf’
Specifies the kernel type to be used in the algorithm. It must be one o... | |
doc_10075 |
Bases: matplotlib.transforms.TransformNode A TransformedPath caches a non-affine transformed copy of the Path. This cached copy is automatically updated when the non-affine part of the transform changes. Note Paths are considered immutable by this class. Any update to the path's vertices/codes will not trigger a tra... | |
doc_10076 |
Python buffer object pointing to the start of the array’s data. | |
doc_10077 | See Migration guide for more details. tf.compat.v1.compat.forward_compatibility_horizon
@tf_contextlib.contextmanager
tf.compat.forward_compatibility_horizon(
year, month, day
)
See Version compatibility. To ensure forward compatibility of generated graphs (see forward_compatible) with older binaries, new featur... | |
doc_10078 | 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_10079 | See Migration guide for more details. tf.compat.v1.keras.initializers.truncated_normal
tf.compat.v1.keras.initializers.TruncatedNormal(
mean=0.0, stddev=0.05, seed=None, dtype=tf.dtypes.float32
)
These values are similar to values from a random_normal_initializer except that values more than two standard deviati... | |
doc_10080 |
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju... | |
doc_10081 | returns the current time in ms of the PortMidi timer time() -> time The time is reset to 0 when the pygame.midi module is initialized. | |
doc_10082 | Initializes the scrap module. init() -> None Initialize the scrap module.
Raises:
pygame.error -- if unable to initialize scrap module Note The scrap module requires pygame.display.set_mode() be called before being initialized. | |
doc_10083 |
Setup for writing the movie file. Parameters
figFigure
The figure object that contains the information for frames.
outfilestr
The filename of the resulting movie file.
dpifloat, default: fig.dpi
The DPI (or resolution) for the file. This controls the size in pixels of the resulting movie file. | |
doc_10084 | The docstring of the module. Defaults to None. | |
doc_10085 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_10086 |
Waits for the event to complete. Waits until the completion of all work currently captured in this event. This prevents the CPU thread from proceeding until the event completes. Note This is a wrapper around cudaEventSynchronize(): see CUDA Event documentation for more info. | |
doc_10087 |
Return the dash style as an (offset, dash-list) pair. The dash list is a even-length list that gives the ink on, ink off in points. See p. 107 of to PostScript blue book for more info. Default value is (None, None). | |
doc_10088 | Holds the address of the client, the second value returned by socket.accept | |
doc_10089 |
[Deprecated] The Matplotlib datalim, autoscaling, locators etc work with scalars which are the units converted to floats given the current unit. The converter may be passed these floats, or arrays of them, even when units are set. Notes Deprecated since version 3.5. | |
doc_10090 |
Convert the input to an array. Parameters
aarray_like
Input data, in any form that can be converted to an array. This includes lists, lists of tuples, tuples, tuples of tuples, tuples of lists and ndarrays.
dtypedata-type, optional
By default, the data-type is inferred from the input data.
order{‘C’, ‘F’,... | |
doc_10091 | Returns a new sparse tensor with values from a strided tensor self filtered by the indices of the sparse tensor mask. The values of mask sparse tensor are ignored. self and mask tensors must have the same shape. Note The returned sparse tensor has the same indices as the sparse tensor mask, even when the corresponding... | |
doc_10092 | Return an estimated length for the object o. First try to return its actual length, then an estimate using object.__length_hint__(), and finally return the default value. New in version 3.4. | |
doc_10093 | See Migration guide for more details. tf.compat.v1.debugging.is_finite, tf.compat.v1.is_finite, tf.compat.v1.math.is_finite
tf.math.is_finite(
x, name=None
)
Example: x = tf.constant([5.0, 4.8, 6.8, np.inf, np.nan])
tf.math.is_finite(x) ==> [True, True, True, False, False]
Args
x A Tensor. Must be one ... | |
doc_10094 | See Migration guide for more details. tf.compat.v1.raw_ops.IRFFT
tf.raw_ops.IRFFT(
input, fft_length, Treal=tf.dtypes.float32, name=None
)
Computes the inverse 1-dimensional discrete Fourier transform of a real-valued signal over the inner-most dimension of input. The inner-most dimension of input is assumed to ... | |
doc_10095 |
Return the JoinStyle. | |
doc_10096 |
Returns log-marginal likelihood of theta for training data. Parameters
thetaarray-like of shape (n_kernel_params,) default=None
Kernel hyperparameters for which the log-marginal likelihood is evaluated. If None, the precomputed log_marginal_likelihood of self.kernel_.theta is returned.
eval_gradientbool, defa... | |
doc_10097 |
Reverse the transformation operation Parameters
Xarray of shape [n_samples, n_selected_features]
The input samples. Returns
X_rarray of shape [n_samples, n_original_features]
X with columns of zeros inserted where features would have been removed by transform. | |
doc_10098 | Run command with arguments. Wait for command to complete. If the return code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. Code needing to capture stdout or stderr should use run() instead: run(..., check=True)
To suppress... | |
doc_10099 |
Convert inputs to arrays with at least one dimension. Scalar inputs are converted to 1-dimensional arrays, whilst higher-dimensional inputs are preserved. Parameters
arys1, arys2, …array_like
One or more input arrays. Returns
retndarray
An array, or list of arrays, each with a.ndim >= 1. Copies are made... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.