_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_28700 | Returns the database column data type for fields such as ForeignKey and OneToOneField that point to the Field, taking into account the connection. See Custom database types for usage in custom fields. | |
doc_28701 | Retrieve the specified ANNOTATIONs for mailbox. The method is non-standard, but is supported by the Cyrus server. | |
doc_28702 |
Set the position to use for z-sorting. | |
doc_28703 |
Alias for set_antialiased. | |
doc_28704 | tf.compat.v1.distributions.Laplace(
loc, scale, validate_args=False, allow_nan_stats=True, name='Laplace'
)
Mathematical details The probability density function (pdf) of this distribution is, pdf(x; mu, sigma) = exp(-|x - mu| / sigma) / Z
Z = 2 sigma
where loc = mu, scale = sigma, and Z is the normalization cons... | |
doc_28705 | tf.compat.v1.distributions.ReparameterizationType(
rep_type
)
Two static instances exist in the distributions library, signifying one of two possible properties for samples from a distribution: FULLY_REPARAMETERIZED: Samples from the distribution are fully reparameterized, and straight-through gradients are suppor... | |
doc_28706 |
Bases: matplotlib.patches.BoxStyle._Base A square box. Parameters
padfloat, default: 0.3
The amount of padding around the original box. __call__(x0, y0, width, height, mutation_size, mutation_aspect=<deprecated parameter>)[source]
Given the location and size of the box, return the path of the box around... | |
doc_28707 |
Alias for set_horizontalalignment. | |
doc_28708 |
A string identifying the data type. Will be used for display in, e.g. Series.dtype | |
doc_28709 |
Share the y-axis with other. This is equivalent to passing sharey=other when constructing the axes, and cannot be used if the y-axis is already being shared with another Axes. | |
doc_28710 |
If pass_through is True, all ancestors will always be invalidated, even if 'self' is already invalid. | |
doc_28711 | See Migration guide for more details. tf.compat.v1.keras.layers.UpSampling2D
tf.keras.layers.UpSampling2D(
size=(2, 2), data_format=None, interpolation='nearest', **kwargs
)
Repeats the rows and columns of the data by size[0] and size[1] respectively. Examples:
input_shape = (2, 2, 1, 3)
x = np.arange(np.prod(i... | |
doc_28712 | Return the group database entry for the given numeric group ID. KeyError is raised if the entry asked for cannot be found. Deprecated since version 3.6: Since Python 3.6 the support of non-integer arguments like floats or strings in getgrgid() is deprecated. | |
doc_28713 |
Return the registered default canvas for given file format. Handles deferred import of required backend. | |
doc_28714 | An immutable list. Changelog New in version 0.5. Private | |
doc_28715 | class sklearn.kernel_approximation.PolynomialCountSketch(*, gamma=1.0, degree=2, coef0=0, n_components=100, random_state=None) [source]
Polynomial kernel approximation via Tensor Sketch. Implements Tensor Sketch, which approximates the feature map of the polynomial kernel: K(X, Y) = (gamma * <X, Y> + coef0)^degree
b... | |
doc_28716 | Create a new CAB file named cabname. files must be a list of tuples, each containing the name of the file on disk, and the name of the file inside the CAB file. The files are added to the CAB file in the order they appear in the list. All files are added into a single CAB file, using the MSZIP compression algorithm. Ca... | |
doc_28717 | Tidy up any resources used by the handler. This version does no output but removes the handler from an internal list of handlers which is closed when shutdown() is called. Subclasses should ensure that this gets called from overridden close() methods. | |
doc_28718 |
Draw a marker at each of path's vertices (excluding control points). This provides a fallback implementation of draw_markers that makes multiple calls to draw_path(). Some backends may want to override this method in order to draw the marker only once and reuse it multiple times. Parameters
gcGraphicsContextBase
... | |
doc_28719 |
The last colorbar associated with this ScalarMappable. May be None. | |
doc_28720 |
Set the JoinStyle for the collection (for all its elements). Parameters
jsJoinStyle or {'miter', 'round', 'bevel'} | |
doc_28721 |
Encodes a bytestring to a base64 string for use in URLs, stripping any trailing equal signs. | |
doc_28722 |
Calculate TimedeltaArray of difference between index values and index converted to PeriodArray at specified freq. Used for vectorized offsets. Parameters
freq:Period frequency
Returns
TimedeltaArray/Index | |
doc_28723 |
Return the offsets for the collection. | |
doc_28724 | See torch.sign() | |
doc_28725 |
Find indices where elements should be inserted to maintain order. Find the indices into a sorted array a such that, if the corresponding elements in v were inserted before the indices, the order of a would be preserved. Assuming that a is sorted:
side returned index i satisfies
left a[i-1] < v <= a[i]
right a... | |
doc_28726 |
If pass_through is True, all ancestors will always be invalidated, even if 'self' is already invalid. | |
doc_28727 | Joins the applied CAN filters such that only CAN frames that match all given CAN filters are passed to user space. This constant is documented in the Linux documentation. Availability: Linux >= 4.1. New in version 3.9. | |
doc_28728 | See Migration guide for more details. tf.compat.v1.estimator.StopAtStepHook, tf.compat.v1.train.StopAtStepHook
tf.estimator.StopAtStepHook(
num_steps=None, last_step=None
)
Args
num_steps Number of steps to execute.
last_step Step after which to stop.
Raises
ValueError If one of the ar... | |
doc_28729 |
Copy properties from other to self. | |
doc_28730 |
Exports an EventList as a Chrome tracing tools file. The checkpoint can be later loaded and inspected under chrome://tracing URL. Parameters
path (str) – Path where the trace will be written. | |
doc_28731 | Alias for torch.acos(). | |
doc_28732 | A data structure of functions to call at the end of each request, 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 after_request() decorator. This data structure is internal. It should not be modified dir... | |
doc_28733 |
Calculate the ewm (exponential weighted moment) sample correlation. Parameters
other:Series or DataFrame, optional
If not supplied then will default to self and produce pairwise output.
pairwise:bool, default None
If False then only matching columns between self and other will be used and the output will be... | |
doc_28734 | Show my ACLs for a mailbox (i.e. the rights that I have on mailbox). | |
doc_28735 |
Return input with invalid data masked and replaced by a fill value. Invalid data means values of nan, inf, etc. Parameters
aarray_like
Input array, a (subclass of) ndarray.
masksequence, optional
Mask. Must be convertible to an array of booleans with the same shape as data. True indicates a masked (i.e. inv... | |
doc_28736 | See Migration guide for more details. tf.compat.v1.string_to_hash_bucket_fast, tf.compat.v1.strings.to_hash_bucket_fast
tf.strings.to_hash_bucket_fast(
input, num_buckets, name=None
)
The hash function is deterministic on the content of the string within the process and will never change. However, it is not suit... | |
doc_28737 | <section class="expandable">
<h4 class="showalways">View aliases</h4>
<p>
<b>Compat aliases for migration</b>
<p>See
<a href="https://www.tensorflow.org/guide/migrate">Migration guide</a> for
more details.</p>
<p>`tf.compat.v1.raw_ops.For`</p>
</p>
</section>
<pre class="devsite-click-to-copy prettyprint lang-py t... | |
doc_28738 | tf.compat.v1.to_float(
x, name='ToFloat'
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead.
Args
x A Tensor or SparseTensor or IndexedSlices.
name A name for the operation (optional).
Returns A Tensor or SparseTen... | |
doc_28739 | Extract all members from the archive to the current working directory or directory path. If optional members is given, it must be a subset of the list returned by getmembers(). Directory information like owner, modification time and permissions are set after all members have been extracted. This is done to work around ... | |
doc_28740 | class sklearn.metrics.DetCurveDisplay(*, fpr, fnr, estimator_name=None, pos_label=None) [source]
DET curve visualization. It is recommend to use plot_det_curve to create a visualizer. All parameters are stored as attributes. Read more in the User Guide. New in version 0.24. Parameters
fprndarray
False positiv... | |
doc_28741 | Return a tuple containing all schemes currently supported in sysconfig. | |
doc_28742 |
Calculate the Hausdorff distance between nonzero elements of given images. The Hausdorff distance [1] is the maximum distance between any point on image0 and its nearest point on image1, and vice-versa. Parameters
image0, image1ndarray
Arrays where True represents a point that is included in a set of points. Bo... | |
doc_28743 |
Computes a partial inverse of MaxPool2d. See MaxUnpool2d for details. | |
doc_28744 |
Error raised for unsupported Numba engine routines. | |
doc_28745 |
Transform via the mapping y=xexponenty = x^{\text{exponent}} . | |
doc_28746 |
Return local gradient of an image (i.e. local maximum - local minimum). Only greyvalues between percentiles [p0, p1] are considered in the filter. Parameters
image2-D array (uint8, uint16)
Input image.
selem2-D array
The neighborhood expressed as a 2-D array of 1’s and 0’s.
out2-D array (same dtype as inp... | |
doc_28747 | operator.__xor__(a, b)
Return the bitwise exclusive or of a and b. | |
doc_28748 | List of all bands of the source, as GDALBand instances. >>> rst = GDALRaster({"width": 1, "height": 2, 'srid': 4326,
... "bands": [{"data": [0, 1]}, {"data": [2, 3]}]})
>>> len(rst.bands)
2
>>> rst.bands[1].data()
array([[ 2., 3.]], dtype=float32) | |
doc_28749 |
Return whether the x-axis is autoscaled. | |
doc_28750 | Reallocate storage for a curses window to adjust its dimensions to the specified values. If either dimension is larger than the current values, the window’s data is filled with blanks that have the current background rendition (as set by bkgdset()) merged into them. | |
doc_28751 | See Migration guide for more details. tf.compat.v1.raw_ops.AvgPool3DGrad
tf.raw_ops.AvgPool3DGrad(
orig_input_shape, grad, ksize, strides, padding, data_format='NDHWC',
name=None
)
Args
orig_input_shape A Tensor of type int32. The original input dimensions.
grad A Tensor. Must be one of the fo... | |
doc_28752 | See Migration guide for more details. tf.compat.v1.raw_ops.InitializeTableFromTextFile
tf.raw_ops.InitializeTableFromTextFile(
table_handle, filename, key_index, value_index, vocab_size=-1,
delimiter='\t', name=None
)
It inserts one key-value pair into the table for each line of the file. The key and value i... | |
doc_28753 | See Migration guide for more details. tf.compat.v1.raw_ops.IFFT
tf.raw_ops.IFFT(
input, name=None
)
Computes the inverse 1-dimensional discrete Fourier transform over the inner-most dimension of input.
Args
input A Tensor. Must be one of the following types: complex64, complex128. A complex tensor.
... | |
doc_28754 |
Return an xarray object from the pandas object. Returns
xarray.DataArray or xarray.Dataset
Data in the pandas structure converted to Dataset if the object is a DataFrame, or a DataArray if the object is a Series. See also DataFrame.to_hdf
Write DataFrame to an HDF5 file. DataFrame.to_parquet
Write a Data... | |
doc_28755 |
Return item and drop from frame. Raise KeyError if not found. Parameters
item:label
Label of column to be popped. Returns
Series
Examples
>>> df = pd.DataFrame([('falcon', 'bird', 389.0),
... ('parrot', 'bird', 24.0),
... ('lion', 'mammal', 80.5),
... ... | |
doc_28756 | find a specific font on the system match_font(name, bold=False, italic=False) -> path Returns the full path to a font file on the system. If bold or italic are set to true, this will attempt to find the correct family of font. The font name can also be an iterable of font names, a string of comma-separated font names... | |
doc_28757 | Returns True if value is naive, False if it is aware. This function assumes that value is a datetime. | |
doc_28758 |
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ... | |
doc_28759 | Make the response object ready to be pickled. Does the following: Buffer the response into a list, ignoring implicity_sequence_conversion and direct_passthrough. Set the Content-Length header. Generate an ETag header if one is not already set. Changed in version 2.0: An ETag header is added, the no_etag parameter is... | |
doc_28760 | See Migration guide for more details. tf.compat.v1.raw_ops.Exit
tf.raw_ops.Exit(
data, name=None
)
Exit makes its input data available to the parent frame.
Args
data A Tensor. The tensor to be made available to the parent frame.
name A name for the operation (optional).
Returns A Tensor.... | |
doc_28761 | Returns a new instance of the SocketHandler class intended to communicate with a remote machine whose address is given by host and port. Changed in version 3.4: If port is specified as None, a Unix domain socket is created using the value in host - otherwise, a TCP socket is created.
close()
Closes the socket.
... | |
doc_28762 | See Migration guide for more details. tf.compat.v1.train.queue_runner.QueueRunner
tf.compat.v1.train.QueueRunner(
queue=None, enqueue_ops=None, close_op=None, cancel_op=None,
queue_closed_exception_types=None, queue_runner_def=None, import_scope=None
)
Queues are a convenient TensorFlow mechanism to compute ... | |
doc_28763 |
Down/up samples the input to either the given size or the given scale_factor The algorithm used for interpolation is determined by mode. Currently temporal, spatial and volumetric sampling are supported, i.e. expected inputs are 3-D, 4-D or 5-D in shape. The input dimensions are interpreted in the form: mini-batch x ... | |
doc_28764 |
Returns True if a certain feature is exist and covered within _Config.conf_features. Parameters
‘name’: str
feature name in uppercase. | |
doc_28765 | See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingMomentumParameters
tf.raw_ops.RetrieveTPUEmbeddingMomentumParameters(
num_shards, shard_id, table_id=-1, table_name='', config='',
name=None
)
An op that retrieves optimization parameters from embedding to host memory. Must be pre... | |
doc_28766 |
Write the figure to a PNG file. Parameters
filename_or_objstr or path-like or file-like
The file to write to.
metadatadict, optional
Metadata in the PNG file as key-value pairs of bytes or latin-1 encodable strings. According to the PNG specification, keys must be shorter than 79 chars. The PNG specificatio... | |
doc_28767 | Returns a datetime of the last modified time of the file. For storage systems unable to return the last modified time this will raise NotImplementedError. If USE_TZ is True, returns an aware datetime, otherwise returns a naive datetime in the local timezone. | |
doc_28768 | In-place version of not_equal(). | |
doc_28769 | Assign a ctypes type to specify the result type of the foreign function. Use None for void, a function not returning anything. It is possible to assign a callable Python object that is not a ctypes type, in this case the function is assumed to return a C int, and the callable will be called with this integer, allowing ... | |
doc_28770 | Return True if this entry is a file or a symbolic link pointing to a file; return False if the entry is or points to a directory or other non-file entry, or if it doesn’t exist anymore. If follow_symlinks is False, return True only if this entry is a file (without following symlinks); return False if the entry is a dir... | |
doc_28771 | tf.optimizers.get Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.get
tf.keras.optimizers.get(
identifier
)
Arguments
identifier Optimizer identifier, one of String: name of an optimizer Dictionary: configuration dictionary. - Keras Optimizer instance (i... | |
doc_28772 |
Applies weight normalization to a parameter in the given module. w=gv∥v∥\mathbf{w} = g \dfrac{\mathbf{v}}{\|\mathbf{v}\|}
Weight normalization is a reparameterization that decouples the magnitude of a weight tensor from its direction. This replaces the parameter specified by name (e.g. 'weight') with two parameter... | |
doc_28773 |
Scalar method identical to the corresponding array attribute. Please see ndarray.trace. | |
doc_28774 | Return a tuple (real_value, coded_value) from a string representation. real_value can be any type. This method does no decoding in BaseCookie — it exists so it can be overridden. | |
doc_28775 | See torch.all() | |
doc_28776 |
The real part of the array. See also numpy.real
equivalent function Examples >>> x = np.sqrt([1+0j, 0+1j])
>>> x.real
array([ 1. , 0.70710678])
>>> x.real.dtype
dtype('float64') | |
doc_28777 |
Remove a callback based on its observer id. See also add_callback | |
doc_28778 | See Migration guide for more details. tf.compat.v1.nn.with_space_to_batch
tf.nn.with_space_to_batch(
input, dilation_rate, padding, op, filter_shape=None, spatial_dims=None,
data_format=None
)
This has the effect of transforming sliding window operations into the corresponding "atrous" operation in which the... | |
doc_28779 | See Migration guide for more details. tf.compat.v1.get_static_value
tf.get_static_value(
tensor, partial=False
)
This function attempts to partially evaluate the given tensor, and returns its value as a numpy ndarray if this succeeds. Compatibility(V1): If constant_value(tensor) returns a non-None result, it wil... | |
doc_28780 | See Migration guide for more details. tf.compat.v1.raw_ops.MaxPoolWithArgmax
tf.raw_ops.MaxPoolWithArgmax(
input, ksize, strides, padding, Targmax=tf.dtypes.int64,
include_batch_in_index=False, name=None
)
The indices in argmax are flattened, so that a maximum value at position [b, y, x, c] becomes flattened... | |
doc_28781 |
Return a dataframe of the components (days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas. Returns
DataFrame | |
doc_28782 |
Return whether any element is Truthy. Parameters
*args
Required for compatibility with numpy. **kwargs
Required for compatibility with numpy. Returns
any:bool or array-like (if axis is specified)
A single element array-like may be converted to bool. See also Index.all
Return whether all elements ... | |
doc_28783 | Get the current default floating point torch.dtype. Example: >>> torch.get_default_dtype() # initial default for floating point is torch.float32
torch.float32
>>> torch.set_default_dtype(torch.float64)
>>> torch.get_default_dtype() # default is now changed to torch.float64
torch.float64
>>> torch.set_default_tensor_t... | |
doc_28784 | Adds the specified filter filter to this logger. | |
doc_28785 | Specifies that the STARTUPINFO.wShowWindow attribute contains additional information. | |
doc_28786 | skimage.filters.rank.autolevel(image, selem) Auto-level image using local histogram.
skimage.filters.rank.autolevel_percentile(…) Return greyscale local autolevel of an image.
skimage.filters.rank.bottomhat(image, selem) Local bottom-hat of an image.
skimage.filters.rank.enhance_contrast(image, …) Enhance contras... | |
doc_28787 | A boolean that controls whether or not authenticated users accessing the login page will be redirected as if they had just successfully logged in. Defaults to False. Warning If you enable redirect_authenticated_user, other websites will be able to determine if their visitors are authenticated on your site by requestin... | |
doc_28788 | Return the current protocol. | |
doc_28789 |
Bases: object A base class for path effects. Subclasses should override the draw_path method to add effect functionality. Parameters
offset(float, float), default: (0, 0)
The (x, y) offset to apply to the path, measured in points. draw_path(renderer, gc, tpath, affine, rgbFace=None)[source]
Derived shou... | |
doc_28790 | Call the exception as WSGI application. Parameters
environ (WSGIEnvironment) – the WSGI environment.
start_response (StartResponse) – the response callable provided by the WSGI server. Return type
Iterable[bytes] | |
doc_28791 | If the value for a header in the Message object originated from a parser (as opposed to being set by a program), this attribute indicates whether or not a generator should refold that value when transforming the message back into serialized form. The possible values are:
none all source values use original folding
... | |
doc_28792 |
Sets the current device. Usage of this function is discouraged in favor of device. In most cases it’s better to use CUDA_VISIBLE_DEVICES environmental variable. Parameters
device (torch.device or int) – selected device. This function is a no-op if this argument is negative. | |
doc_28793 |
Set the path effects. Parameters
path_effectsAbstractPathEffect | |
doc_28794 |
Returns
transformTransform
The transform used for drawing y-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in axis coordinates and the y-direction is in data coordinates
valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}
The tex... | |
doc_28795 |
Return a string representation of data. 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. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ... | |
doc_28796 | See torch.arctanh() | |
doc_28797 |
First discrete difference of element. Calculates the difference of a Dataframe element compared with another element in the Dataframe (default is element in previous row). Parameters
periods:int, default 1
Periods to shift for calculating difference, accepts negative values.
axis:{0 or ‘index’, 1 or ‘columns’... | |
doc_28798 | This class implements the portion of the TestCase interface which allows the test runner to drive the test, but does not provide the methods which test code can use to check and report errors. This is used to create test cases using legacy test code, allowing it to be integrated into a unittest-based test framework. | |
doc_28799 |
Return index of first occurrence of maximum over requested axis. NA/null values are excluded. Parameters
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
The axis to use. 0 or ‘index’ for row-wise, 1 or ‘columns’ for column-wise.
skipna:bool, default True
Exclude NA/null values. If an entire row/column is NA,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.