_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_10200 | See Migration guide for more details. tf.compat.v1.io.TFRecordOptions, tf.compat.v1.python_io.TFRecordOptions
tf.io.TFRecordOptions(
compression_type=None, flush_mode=None, input_buffer_size=None,
output_buffer_size=None, window_bits=None, compression_level=None,
compression_method=None, mem_level=None, c... | |
doc_10201 | tf.compat.v1.gfile.MkDir(
dirname
)
Args
dirname string, name of the directory to be created Notes: The parent directories need to exist. Use tf.io.gfile.makedirs instead if there is the possibility that the parent dirs don't exist.
Raises
errors.OpError If the operation fails. | |
doc_10202 | See Migration guide for more details. tf.compat.v1.strings.to_hash_bucket
tf.compat.v1.string_to_hash_bucket(
string_tensor=None, num_buckets=None, name=None, input=None
)
The hash function is deterministic on the content of the string within the process. Note that the hash function may change from time to time.... | |
doc_10203 |
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar. | |
doc_10204 |
Returns True if the z-axis is inverted. | |
doc_10205 |
Return the fractional and integral parts of an array, element-wise. The fractional and integral parts are negative if the given number is negative. Parameters
xarray_like
Input array.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must ha... | |
doc_10206 | Read and return size bytes, or if size is not given or negative, until EOF or if the read call would block in non-blocking mode. | |
doc_10207 | Returns an iterable of permission names used by the mixin. Defaults to the permission_required attribute, converted to a tuple if necessary. | |
doc_10208 | Move an existing key to either end of an ordered dictionary. The item is moved to the right end if last is true (the default) or to the beginning if last is false. Raises KeyError if the key does not exist: >>> d = OrderedDict.fromkeys('abcde')
>>> d.move_to_end('b')
>>> ''.join(d.keys())
'acdeb'
>>> d.move_to_end('b',... | |
doc_10209 | Return a memoryview of the memory area underlying this buffer. The returned object is a one-dimensional, C-contiguous memoryview with format B (unsigned bytes). BufferError is raised if the buffer is neither C- nor Fortran-contiguous. | |
doc_10210 |
pygame module to work with touch input New in pygame 2: This module requires SDL2. pygame._sdl2.touch.get_num_devices()
get the number of touch devices get_num_devices() -> int Return the number of available touch devices.
pygame._sdl2.touch.get_device()
get the a touch device id for a given index get... | |
doc_10211 |
Return True if there are any NaNs. Enables various performance speedups. | |
doc_10212 |
Return whether any element is True, potentially over an axis. Returns False unless there is at least one element within a series or along a Dataframe axis that is True or equivalent (e.g. non-zero or non-empty). Parameters
axis:{0 or ‘index’, 1 or ‘columns’, None}, default 0
Indicate which axis or axes should b... | |
doc_10213 |
Draw samples from the triangular distribution over the interval [left, right]. The triangular distribution is a continuous probability distribution with lower limit left, peak at mode, and upper limit right. Unlike the other distributions, these parameters directly define the shape of the pdf. Note New code should u... | |
doc_10214 |
Return a boolean indicating whether the data is contiguous. Parameters
None
Examples >>> x = np.ma.array([1, 2, 3])
>>> x.iscontiguous()
True
iscontiguous returns one of the flags of the masked array: >>> x.flags
C_CONTIGUOUS : True
F_CONTIGUOUS : True
OWNDATA : False
WRITEABLE : True
ALIGNED : True
... | |
doc_10215 |
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_10216 | Token value for ")". | |
doc_10217 |
Compute numerical data ranks (1 through n) along axis. By default, equal values are assigned a rank that is the average of the ranks of those values. Parameters
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
Index to direct ranking.
method:{‘average’, ‘min’, ‘max’, ‘first’, ‘dense’}, default ‘average’
How t... | |
doc_10218 | Called each time around the asynchronous loop to determine whether a channel’s socket should be added to the list on which read events can occur. The default method simply returns True, indicating that by default, all channels will be interested in read events. | |
doc_10219 | See Migration guide for more details. tf.compat.v1.raw_ops.StagePeek
tf.raw_ops.StagePeek(
index, dtypes, capacity=0, memory_limit=0, container='',
shared_name='', name=None
)
underlying container does not contain sufficient elements this op will block until it does. This Op is optimized for performance.
... | |
doc_10220 |
Get parameters for this estimator. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns
paramsdict
Parameter names mapped to their values. | |
doc_10221 | Subclass of Exception, this can be raised by uu.decode() under various situations, such as described above, but also including a badly formatted header, or truncated input file. | |
doc_10222 | This function supports dynamic execution of Python code. object must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then executed (unless a syntax error occurs). 1 If it is a code object, it is simply executed. In all cases, the code that’s executed... | |
doc_10223 | Installs the btree_gist extension. | |
doc_10224 |
Return value<<self. | |
doc_10225 | A dictionary mapping numeric error codes to their string descriptions. New in version 3.2. | |
doc_10226 |
Writes entries directly to event files in the log_dir to be consumed by TensorBoard. The SummaryWriter class provides a high-level API to create an event file in a given directory and add summaries and events to it. The class updates the file contents asynchronously. This allows a training program to call methods to ... | |
doc_10227 | Moves all model parameters and buffers to the XPU. This also makes associated parameters and buffers different objects. So it should be called before constructing optimizer if the module will live on XPU while being optimized. Parameters
device (int, optional) – if specified, all parameters will be copied to that dev... | |
doc_10228 |
Alias for get_linestyle. | |
doc_10229 |
Wrapper for kernels in sklearn.metrics.pairwise. A thin wrapper around the functionality of the kernels in sklearn.metrics.pairwise. Note: Evaluation of eval_gradient is not analytic but numeric and all
kernels support only isotropic distances. The parameter gamma is considered to be a hyperparameter and may be opt... | |
doc_10230 | pass
obj = Dict(red=1, green=2, blue=3) # this object is weak referenceable
CPython implementation detail: Other built-in types such as tuple and int do not support weak references even when subclassed. Extension types can easily be made to support weak references; see Weak Reference Support.
class weakref.... | |
doc_10231 |
Set the url for the artist. Parameters
urlstr | |
doc_10232 |
Return a tuple representing the internal state of the generator. For more details, see set_state. Parameters
legacybool, optional
Flag indicating to return a legacy tuple state when the BitGenerator is MT19937, instead of a dict. Returns
out{tuple(str, ndarray of 624 uints, int, int, float), dict}
The r... | |
doc_10233 |
Describes monthly dates in last week of month like “the last Tuesday of each month”. Parameters
n:int, default 1
weekday:int {0, 1, …, 6}, default 0
A specific integer for the day of the week. 0 is Monday 1 is Tuesday 2 is Wednesday 3 is Thursday 4 is Friday 5 is Saturday 6 is Sunday. Attributes
... | |
doc_10234 |
Applies a 1D max pooling over an input signal composed of several input planes. In the simplest case, the output value of the layer with input size (N,C,L)(N, C, L) and output (N,C,Lout)(N, C, L_{out}) can be precisely described as: out(Ni,Cj,k)=maxm=0,…,kernel_size−1input(Ni,Cj,stride×k+m)out(N_i, C_j, k) = \max... | |
doc_10235 |
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas. | |
doc_10236 | Enable automatic garbage collection. | |
doc_10237 | A top-level index page showing the “latest” objects, by date. Objects with a date in the future are not included unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseArchiveIndex... | |
doc_10238 |
Set the colormap for luminance data. Parameters
cmapColormap or str or None | |
doc_10239 |
Adjust the subplot layout parameters. Unset parameters are left unmodified; initial values are given by rcParams["figure.subplot.[name]"]. Parameters
leftfloat, optional
The position of the left edge of the subplots, as a fraction of the figure width.
rightfloat, optional
The position of the right edge of t... | |
doc_10240 | Discard all session cookies. Discards all contained cookies that have a true discard attribute (usually because they had either no max-age or expires cookie-attribute, or an explicit discard cookie-attribute). For interactive browsers, the end of a session usually corresponds to closing the browser window. Note that th... | |
doc_10241 | Get information about a frame or traceback object. A named tuple Traceback(filename, lineno, function, code_context, index) is returned. | |
doc_10242 | Base class for model range fields.
base_field
The model field class to use.
range_type
The psycopg2 range type to use.
form_field
The form field class to use. Should be a subclass of django.contrib.postgres.forms.BaseRangeField. | |
doc_10243 | A wrapper around any of the 3 key-value stores (TCPStore, FileStore, and HashStore) that adds a prefix to each key inserted to the store. Parameters
prefix (str) – The prefix string that is prepended to each key before being inserted into the store.
store (torch.distributed.store) – A store object that forms the u... | |
doc_10244 | The scheduler class defines a generic interface to scheduling events. It needs two functions to actually deal with the “outside world” — timefunc should be callable without arguments, and return a number (the “time”, in any units whatsoever). The delayfunc function should be callable with one argument, compatible with ... | |
doc_10245 | bytearray.isspace()
Return True if all bytes in the sequence are ASCII whitespace and the sequence is not empty, False otherwise. ASCII whitespace characters are those byte values in the sequence b' \t\n\r\x0b\f' (space, tab, newline, carriage return, vertical tab, form feed). | |
doc_10246 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayReadV3
tf.raw_ops.TensorArrayReadV3(
handle, index, flow_in, dtype, name=None
)
Args
handle A Tensor of type resource. The handle to a TensorArray.
index A Tensor of type int32.
flow_in A Tensor of type float32. A float sc... | |
doc_10247 | Return the feature importances. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardinality features (many unique values). See sklearn.ins... | |
doc_10248 |
Return the smallest n elements. Parameters
n:int, default 5
Return this many ascending sorted values.
keep:{‘first’, ‘last’, ‘all’}, default ‘first’
When there are duplicate values that cannot all fit in a Series of n elements: first : return the first n occurrences in order of appearance. last : return th... | |
doc_10249 | See Migration guide for more details. tf.compat.v1.strings.regex_full_match
tf.strings.regex_full_match(
input, pattern, name=None
)
The input is a string tensor of any shape. The pattern is a scalar string tensor which is applied to every element of the input tensor. The boolean values (True or False) of the ou... | |
doc_10250 |
Filename of the image. str: Filename of the image to use in a Toolbar. If None, the name is used as a label in the toolbar button. | |
doc_10251 | A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable will be an empty string or None. | |
doc_10252 |
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_10253 | Return an iterator of the summarized network range given the first and last IP addresses. first is the first IPv4Address or IPv6Address in the range and last is the last IPv4Address or IPv6Address in the range. A TypeError is raised if first or last are not IP addresses or are not of the same version. A ValueError is r... | |
doc_10254 |
Squeeze 1 dimensional axis objects into scalars. Series or DataFrames with a single element are squeezed to a scalar. DataFrames with a single column or a single row are squeezed to a Series. Otherwise the object is unchanged. This method is most useful when you don’t know if your object is a Series or DataFrame, but... | |
doc_10255 |
Estimate circle model from data using total least squares. Parameters
data(N, 2) array
N points with (x, y) coordinates, respectively. Returns
successbool
True, if model estimation succeeds. References
1
Halir, R.; Flusser, J. “Numerically stable direct least squares fitting of ellipses”. In Pro... | |
doc_10256 |
Return index locations of values between particular times of day (e.g., 9:00-9:30AM). Parameters
start_time, end_time:datetime.time, str
Time passed either as object (datetime.time) or as string in appropriate format (“%H:%M”, “%H%M”, “%I:%M%p”, “%I%M%p”, “%H:%M:%S”, “%H%M%S”, “%I:%M:%S%p”,”%I%M%S%p”).
includ... | |
doc_10257 | By default, forms use django.forms.utils.ErrorList to format validation errors. ErrorList is a list like object where initlist is the list of errors. In addition this class has the following attributes and methods.
error_class
The CSS classes to be used when rendering the error list. Any provided classes are added ... | |
doc_10258 |
Scatters picklable objects in scatter_object_input_list to the whole group. Similar to scatter(), but Python objects can be passed in. On each rank, the scattered object will be stored as the first element of scatter_object_output_list. Note that all objects in scatter_object_input_list must be picklable in order to ... | |
doc_10259 | turtle.setpos(x, y=None)
turtle.setposition(x, y=None)
Parameters
x – a number or a pair/vector of numbers
y – a number or None
If y is None, x must be a pair of coordinates or a Vec2D (e.g. as returned by pos()). Move turtle to an absolute position. If the pen is down, draw line. Do not change the turtle’... | |
doc_10260 | See Migration guide for more details. tf.compat.v1.debugging.assert_positive
tf.compat.v1.assert_positive(
x, data=None, summarize=None, message=None, name=None
)
When running in graph mode, you should add a dependency on this operation to ensure that it runs. Example of adding a dependency to an operation: with... | |
doc_10261 |
Return the Transform instance used by this artist offset. | |
doc_10262 |
Set whether object should be drawn with antialiased rendering. | |
doc_10263 |
alias of mpl_toolkits.axes_grid1.parasite_axes.AxesHostAxes | |
doc_10264 | Open local files. | |
doc_10265 | Write the XML-RPC encoding of this DateTime item to the out stream object. | |
doc_10266 | The Content-MD5 entity-header field, as defined in RFC 1864, is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body. (Note: a MIC is good for detecting accidental modification of the entity-body in transit, but is not proof against malicious attac... | |
doc_10267 |
Opposite of the anomaly score defined in the original paper. The anomaly score of an input sample is computed as the mean anomaly score of the trees in the forest. The measure of normality of an observation given a tree is the depth of the leaf containing this observation, which is equivalent to the number of splitti... | |
doc_10268 |
Update the bounds of the Bbox based on the passed in data. After updating, the bounds will have positive width and height; x0 and y0 will be the minimal values. Parameters
xyndarray
A numpy array of 2D points.
ignorebool, optional
When True, ignore the existing bounds of the Bbox. When False, include the e... | |
doc_10269 | Alias of torch.outer(). Warning This function is deprecated and will be removed in a future PyTorch release. Use torch.outer() instead. | |
doc_10270 |
Compute the hidden layer activation probabilities, P(h=1|v=X). Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The data to be transformed. Returns
hndarray of shape (n_samples, n_components)
Latent representations of the data. | |
doc_10271 |
Set the artist offset transform. Parameters
transOffsetTransform | |
doc_10272 | A list containing 2-tuples of TestCase instances and strings holding formatted tracebacks. Each tuple represents a test which raised an unexpected exception. | |
doc_10273 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_10274 | See Migration guide for more details. tf.compat.v1.quantize_and_dequantize_v4
tf.quantize_and_dequantize_v4(
input, input_min, input_max, signed_input=True, num_bits=8, range_given=False,
round_mode='HALF_TO_EVEN', narrow_range=False, axis=-1, name=None
)
This is almost identical to QuantizeAndDequantizeV2, ... | |
doc_10275 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesCreateQuantileStreamResource
tf.raw_ops.BoostedTreesCreateQuantileStreamResource(
quantile_stream_resource_handle, epsilon, num_streams,
max_elements=1099511627776, name=None
)
Args
quantile_stream_resource_handle A Tensor of typ... | |
doc_10276 | Return an upper bound on ratio() very quickly. | |
doc_10277 | Releases the contents of the local for the current context. This makes it possible to use locals without a manager. Example: >>> loc = Local()
>>> loc.foo = 42
>>> release_local(loc)
>>> hasattr(loc, 'foo')
False
With this function one can release Local objects as well as LocalStack objects. However it is not possible... | |
doc_10278 |
Synchronizes all processes. This collective blocks processes until the whole group enters this function, if async_op is False, or if async work handle is called on wait(). Parameters
group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used.
async_op (bool, op... | |
doc_10279 | Round to the nearest integer without signaling Inexact or Rounded. If given, applies rounding; otherwise, uses the rounding method in either the supplied context or the current context. | |
doc_10280 | See Migration guide for more details. tf.compat.v1.nn.max_pool3d
tf.nn.max_pool3d(
input, ksize, strides, padding, data_format='NDHWC', name=None
)
Args
input A 5-D Tensor of the format specified by data_format.
ksize An int or list of ints that has length 1, 3 or 5. The size of the window for eac... | |
doc_10281 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_10282 | See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.Resizing
tf.keras.layers.experimental.preprocessing.Resizing(
height, width, interpolation='bilinear', name=None, **kwargs
)
Resize the batched image input to target height and width. The input should be a 4-D tensor in th... | |
doc_10283 |
Return the clipbox. | |
doc_10284 | tf.initializers.Identity, tf.initializers.identity, tf.keras.initializers.identity
tf.keras.initializers.Identity(
gain=1.0
)
Also available via the shortcut function tf.keras.initializers.identity. Only usable for generating 2D matrices. Examples:
# Standalone usage:
initializer = tf.keras.initializers.Identit... | |
doc_10285 | Return the host for the given WSGI environment. The Host header is preferred, then SERVER_NAME if it’s not set. The returned host will only contain the port if it is different than the standard port for the protocol. Optionally, verify that the host is trusted using host_is_trusted() and raise a SecurityError if it is ... | |
doc_10286 | '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_10287 |
Set the width of the ellipse. Parameters
widthfloat | |
doc_10288 |
Return whether the artist is to be rasterized. | |
doc_10289 |
Get Equal to of dataframe and other, element-wise (binary operator eq). Among flexible wrappers (eq, ne, le, lt, ge, gt) to comparison operators. Equivalent to ==, !=, <=, <, >=, > with support to choose axis (rows or columns) and level for comparison. Parameters
other:scalar, sequence, Series, or DataFrame
Any... | |
doc_10290 |
Bases: dict __call__(*v, **kwargs)[source]
Call self as a function. | |
doc_10291 | Insert a new child node before an existing child. It must be the case that refChild is a child of this node; if not, ValueError is raised. newChild is returned. If refChild is None, it inserts newChild at the end of the children’s list. | |
doc_10292 | Call the system call setsid(). See the Unix manual for the semantics. Availability: Unix. | |
doc_10293 | This is called for actual sessions returned by open_session() at the end of the request. This is still called during a request context so if you absolutely need access to the request you can do that. Parameters
app (Flask) –
session (flask.sessions.SessionMixin) –
response (Response) – Return type
None | |
doc_10294 | See Migration guide for more details. tf.compat.v1.raw_ops.StopGradient
tf.raw_ops.StopGradient(
input, name=None
)
When executed in a graph, this op outputs its input tensor as-is. When building ops to compute gradients, this op prevents the contribution of its inputs to be taken into account. Normally, the gra... | |
doc_10295 | Apply inverse transformations in reverse order All estimators in the pipeline must support inverse_transform. Parameters
Xtarray-like of shape (n_samples, n_transformed_features)
Data samples, where n_samples is the number of samples and n_features is the number of features. Must fulfill input requirements of las... | |
doc_10296 | Returns an iterator over immediate children modules, yielding both the name of the module as well as the module itself. Yields
(string, Module) – Tuple containing a name and child module Example: >>> for name, module in model.named_children():
>>> if name in ['conv4', 'conv5']:
>>> print(module) | |
doc_10297 | Remove the archive format name from the list of supported formats. | |
doc_10298 | Base class for sessions based on signed cookies. This session backend will set the modified and accessed attributes. It cannot reliably track whether a session is new (vs. empty), so new remains hard coded to False. Parameters
initial (Any) – Return type
None
accessed = False
header, which allows caching pro... | |
doc_10299 | Apply this logger’s filters to the record and return True if the record is to be processed. The filters are consulted in turn, until one of them returns a false value. If none of them return a false value, the record will be processed (passed to handlers). If one returns a false value, no further processing of the reco... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.