_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_10900 | See Migration guide for more details. tf.compat.v1.test.is_built_with_xla
tf.test.is_built_with_xla() | |
doc_10901 |
lookup_name = 'week_day' | |
doc_10902 |
Compute the condition number of a matrix. This function is capable of returning the condition number using one of seven different norms, depending on the value of p (see Parameters below). Parameters
x(…, M, N) array_like
The matrix whose condition number is sought.
p{None, 1, -1, 2, -2, inf, -inf, ‘fro’}, op... | |
doc_10903 | A tuple of fields whose values are cleaned and subsequently combined into a single value. Each value of the field is cleaned by the corresponding field in fields – the first value is cleaned by the first field, the second value is cleaned by the second field, etc. Once all fields are cleaned, the list of clean values i... | |
doc_10904 | removes all sprites from a layer and returns them as a list. remove_sprites_of_layer(layer_nr) -> sprites | |
doc_10905 | Create a FIFO (a named pipe) named path with numeric mode mode. The current umask value is first masked out from the mode. This function can also support paths relative to directory descriptors. FIFOs are pipes that can be accessed like regular files. FIFOs exist until they are deleted (for example with os.unlink()). G... | |
doc_10906 |
Return a new array of given shape and type, filled with fill_value. Parameters
shapeint or sequence of ints
Shape of the new array, e.g., (2, 3) or 2.
fill_valuescalar or array_like
Fill value.
dtypedata-type, optional
The desired data-type for the array The default, None, means
np.array(fill_value).d... | |
doc_10907 | Copies the tensor to pinned memory, if it’s not already pinned. | |
doc_10908 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_10909 |
Display minor ticks on the Axes. Displaying minor ticks may reduce performance; you may turn them off using minorticks_off() if drawing speed is a problem.
Examples using matplotlib.axes.Axes.minorticks_on
MRI With EEG | |
doc_10910 | A Future represents an eventual result of an asynchronous operation. Not thread-safe. Future is an awaitable object. Coroutines can await on Future objects until they either have a result or an exception set, or until they are cancelled. Typically Futures are used to enable low-level callback-based code (e.g. in protoc... | |
doc_10911 | Lock program segments into memory. The value of op (defined in <sys/lock.h>) determines which segments are locked. Availability: Unix. | |
doc_10912 |
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_10913 | A new array whose items are restricted by typecode, and initialized from the optional initializer value, which must be a list, a bytes-like object, or iterable over elements of the appropriate type. If given a list or string, the initializer is passed to the new array’s fromlist(), frombytes(), or fromunicode() method ... | |
doc_10914 | operator.__imul__(a, b)
a = imul(a, b) is equivalent to a *= b. | |
doc_10915 |
Draw samples from a uniform distribution. Samples are uniformly distributed over the half-open interval [low, high) (includes low, but excludes high). In other words, any value within the given interval is equally likely to be drawn by uniform. Parameters
lowfloat or array_like of floats, optional
Lower boundar... | |
doc_10916 |
Random integers of type np.int_ between low and high, inclusive. Return random integers of type np.int_ from the “discrete uniform” distribution in the closed interval [low, high]. If high is None (the default), then results are from [1, low]. The np.int_ type translates to the C long integer type and its precision i... | |
doc_10917 | See Migration guide for more details. tf.compat.v1.keras.utils.plot_model
tf.keras.utils.plot_model(
model, to_file='model.png', show_shapes=False, show_dtype=False,
show_layer_names=True, rankdir='TB', expand_nested=False, dpi=96
)
Example: input = tf.keras.Input(shape=(100,), dtype='int32', name='input')
x... | |
doc_10918 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_10919 | The number of threads in the thread-pool used by TensorPipeAgent to execute requests. | |
doc_10920 | This method is not defined in BaseHandler, but subclasses should define it if they want to catch all URLs. This method, if implemented, will be called by the parent OpenerDirector. It should return a file-like object as described in the return value of the open() of OpenerDirector, or None. It should raise URLError, un... | |
doc_10921 | find the top level parent of a subsurface get_abs_parent() -> Surface Returns the parent Surface of a subsurface. If this is not a subsurface then this surface will be returned. | |
doc_10922 | Time of most recent access expressed in seconds. | |
doc_10923 |
Predict the closest cluster each sample in X belongs to. In the vector quantization literature, cluster_centers_ is called the code book and each value returned by predict is the index of the closest code in the code book. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
New data to pred... | |
doc_10924 |
Applies a softmax function. Softmax is defined as: Softmax(xi)=exp(xi)∑jexp(xj)\text{Softmax}(x_{i}) = \frac{\exp(x_i)}{\sum_j \exp(x_j)} It is applied to all slices along dim, and will re-scale them so that the elements lie in the range [0, 1] and sum to 1. See Softmax for more details. Parameters
input (Tens... | |
doc_10925 |
Select final periods of time series data based on a date offset. For a DataFrame with a sorted DatetimeIndex, this function selects the last few rows based on a date offset. Parameters
offset:str, DateOffset, dateutil.relativedelta
The offset length of the data that will be selected. For instance, ‘3D’ will dis... | |
doc_10926 | Return the number of the first line in the block this table represents. | |
doc_10927 |
Reset the underlying matrix to the identity transform. | |
doc_10928 |
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_10929 | Return a copy of sys.modules. | |
doc_10930 |
Alias for get_linewidth. | |
doc_10931 | Implements the 'strict' error handling: each encoding or decoding error raises a UnicodeError. | |
doc_10932 |
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters
match
A filter criterion for the matches. This can be
None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct... | |
doc_10933 | tf.experimental.numpy.complex_
tf.experimental.numpy.complex128(
*args, **kwargs
)
numbers, compatible with Python complex. Character code: 'D'. Canonical name: np.cdouble. Alias: np.cfloat. Alias: np.complex_. Alias on this platform: np.complex128: Complex number type composed of 2 64-bit-precision floating-poi... | |
doc_10934 | re.VERBOSE
This flag allows you to write regular expressions that look nicer and are more readable by allowing you to visually separate logical sections of the pattern and add comments. Whitespace within the pattern is ignored, except when in a character class, or when preceded by an unescaped backslash, or within to... | |
doc_10935 | Assign a tuple of ctypes types to specify the argument types that the function accepts. Functions using the stdcall calling convention can only be called with the same number of arguments as the length of this tuple; functions using the C calling convention accept additional, unspecified arguments as well. When a forei... | |
doc_10936 | turtle.pd()
turtle.down()
Pull the pen down – drawing when moving. | |
doc_10937 | see torch.flatten() | |
doc_10938 | See Migration guide for more details. tf.compat.v1.config.set_soft_device_placement
tf.config.set_soft_device_placement(
enabled
)
If enabled, an op will be placed on CPU if any of the following are true there's no GPU implementation for the OP no GPU devices are known or registered need to co-locate with refty... | |
doc_10939 | Quote an etag. Parameters
etag (str) – the etag to quote.
weak (bool) – set to True to tag it “weak”. Return type
str | |
doc_10940 | Get the name of the pygame display backend get_driver() -> name Pygame chooses one of many available display backends when it is initialized. This returns the internal name used for the display backend. This can be used to provide limited information about what display capabilities might be accelerated. See the SDL_V... | |
doc_10941 |
lookup_name = 'quarter' | |
doc_10942 | type_comment is an optional string with the type annotation as a comment. | |
doc_10943 |
Find all masked and/or non-finite points in a set of arguments, and return the arguments with only the unmasked points remaining. Arguments can be in any of 5 categories: 1-D masked arrays 1-D ndarrays ndarrays with more than one dimension other non-string iterables anything else The first argument must be in one o... | |
doc_10944 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomUniformInt
tf.raw_ops.StatelessRandomUniformInt(
shape, seed, minval, maxval, name=None
)
The generated values follow a uniform distribution in the range [minval, maxval). The outputs are a deterministic function of shape, seed, minval, an... | |
doc_10945 |
RGB CIE to RGB color space conversion. Parameters
rgbcie(…, 3) array_like
The image in RGB CIE format. Final dimension denotes channels. Returns
out(…, 3) ndarray
The image in RGB format. Same dimensions as input. Raises
ValueError
If rgbcie is not at least 2-D with shape (…, 3). References
... | |
doc_10946 |
Generates a flat, square-shaped structuring element. Every pixel along the perimeter has a chessboard distance no greater than radius (radius=floor(width/2)) pixels. Parameters
widthint
The width and height of the square. Returns
selemndarray
A structuring element consisting only of ones, i.e. every pix... | |
doc_10947 |
Transform via the mapping y=∣x∣y = |x| . | |
doc_10948 |
Render the Styler including all applied styles to HTML. Deprecated since version 1.4.0. Parameters
sparse_index:bool, optional
Whether to sparsify the display of a hierarchical index. Setting to False will display each explicit level element in a hierarchical key for each row. Defaults to pandas.options.style... | |
doc_10949 |
Set the clip path to a TransformedPath or None. | |
doc_10950 | When this variable is set to an integer value, it determines the maximum number of levels of traceback information printed when an unhandled exception occurs. The default is 1000. When set to 0 or less, all traceback information is suppressed and only the exception type and value are printed. | |
doc_10951 |
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_10952 | tf.compat.v1.logging.flush() | |
doc_10953 | See Migration guide for more details. tf.compat.v1.raw_ops.BesselY1
tf.raw_ops.BesselY1(
x, name=None
)
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64.
name A name for the operation (optional).
Returns A Tensor. Has the same type as x. | |
doc_10954 | This function is useful for programs that want to emulate Python’s interpreter main loop (a.k.a. the read-eval-print loop). The tricky part is to determine when the user has entered an incomplete command that can be completed by entering more text (as opposed to a complete command or a syntax error). This function almo... | |
doc_10955 | Get the current size and peak size of memory blocks traced by the tracemalloc module as a tuple: (current: int, peak: int). | |
doc_10956 | os.execle(path, arg0, arg1, ..., env)
os.execlp(file, arg0, arg1, ...)
os.execlpe(file, arg0, arg1, ..., env)
os.execv(path, args)
os.execve(path, args, env)
os.execvp(file, args)
os.execvpe(file, args, env)
These functions all execute a new program, replacing the current process; they do not return. On U... | |
doc_10957 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayScatterV3
tf.raw_ops.TensorArrayScatterV3(
handle, indices, value, flow_in, name=None
)
indices must be a vector, its length must match the first dim of value.
Args
handle A Tensor of type resource. The handle to a TensorArray.
in... | |
doc_10958 | Returns a LineString representing the line merge of all the components in this MultiLineString. | |
doc_10959 | Creates a hash index. Provide an integer value from 10 to 100 to the fillfactor parameter to tune how packed the index pages will be. PostgreSQL’s default is 90. Use this index only on PostgreSQL 10 and later Hash indexes have been available in PostgreSQL for a long time, but they suffer from a number of data integrit... | |
doc_10960 | calculates the cross- or vector-product cross(Vector2) -> Vector2 calculates the third component of the cross-product. | |
doc_10961 |
Returns a boolean array which is True where the string element in a starts with prefix, otherwise False. Calls str.startswith element-wise. Parameters
aarray_like of str or unicode
prefixstr
start, endint, optional
With optional start, test beginning at that position. With optional end, stop comparing at th... | |
doc_10962 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_10963 | A named tuple containing the three components of the ncurses library version: major, minor, and patch. All values are integers. The components can also be accessed by name, so curses.ncurses_version[0] is equivalent to curses.ncurses_version.major and so on. Availability: if the ncurses library is used. New in version... | |
doc_10964 | If True (default), the value will be stripped of leading and trailing whitespace. | |
doc_10965 |
Return a copy. Returns
new_seriesseries
Copy of self. | |
doc_10966 |
Decorator to mark a function or class as deprecated. Issue a warning when the function is called/the class is instantiated and adds a warning to the docstring. The optional extra argument will be appended to the deprecation message and the docstring. Note: to use this with the default value for extra, put in an empty... | |
doc_10967 |
Return the Rectangle used to frame the legend. | |
doc_10968 | Returns the name of a slug field to be used to look up by slug. By default this returns the value of slug_field. | |
doc_10969 | See Migration guide for more details. tf.compat.v1.io.RaggedFeature.UniformRowLength
tf.io.RaggedFeature.UniformRowLength(
length
)
Attributes
length | |
doc_10970 |
Return the Colormap instance. | |
doc_10971 |
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_10972 | Special subclass of the AppGroup group that supports loading more commands from the configured Flask app. Normally a developer does not have to interface with this class but there are some very advanced use cases for which it makes sense to create an instance of this. see Custom Scripts. Parameters
add_default_comm... | |
doc_10973 |
Returns True if the class loaded from the cache file | |
doc_10974 |
Returns True if the global deterministic flag is turned on. Refer to torch.use_deterministic_algorithms() documentation for more details. | |
doc_10975 |
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_10976 | Arguments that accept RaggedTensors are marked in bold.
tf.batch_gather(params, indices, name=None)
tf.bitwise.bitwise_and(x, y, name=None)
tf.bitwise.bitwise_or(x, y, name=None)
tf.bitwise.bitwise_xor(x, y, name=None)
tf.bitwise.invert(x, name=None)
tf.bitwise.left_shift(x, y, name=None)
tf.bitwise.right_shif... | |
doc_10977 | Should this response object automatically set the content-length header if possible? This is true by default. Changelog New in version 0.8. | |
doc_10978 |
Push the first element onto the top of the stack. The first element is returned. | |
doc_10979 |
Return the Transform instance used by this artist offset. | |
doc_10980 |
Find the edges of an image using the Laplace operator. Parameters
imagendarray
Image to process.
ksizeint, optional
Define the size of the discrete Laplacian operator such that it will have a size of (ksize,) * image.ndim.
maskndarray, optional
An optional mask to limit the application to a certain area... | |
doc_10981 | Sequence of bytecodes that have an absolute jump target. | |
doc_10982 | Return a new frozenset object, optionally with elements taken from iterable. frozenset is a built-in class. See frozenset and Set Types — set, frozenset for documentation about this class. For other containers see the built-in set, list, tuple, and dict classes, as well as the collections module. | |
doc_10983 | Clear the auth info and enable basic auth. | |
doc_10984 |
In-place version of rename(). | |
doc_10985 | Returns the filtered dictionary of POST parameters. Sensitive values are replaced with cleansed_substitute. | |
doc_10986 | A form for logging a user in. Takes request as its first positional argument, which is stored on the form instance for use by sub-classes.
confirm_login_allowed(user)
By default, AuthenticationForm rejects users whose is_active flag is set to False. You may override this behavior with a custom policy to determine w... | |
doc_10987 | See Migration guide for more details. tf.compat.v1.raw_ops.FixedLengthRecordDatasetV2
tf.raw_ops.FixedLengthRecordDatasetV2(
filenames, header_bytes, record_bytes, footer_bytes, buffer_size,
compression_type, name=None
)
Args
filenames A Tensor of type string.
header_bytes A Tensor of type int... | |
doc_10988 | Creates a new session key while retaining the current session data. django.contrib.auth.login() calls this method to mitigate against session fixation. | |
doc_10989 | Closely emulate the interactive Python console. The optional banner argument specify the banner to print before the first interaction; by default it prints a banner similar to the one printed by the standard Python interpreter, followed by the class name of the console object in parentheses (so as not to confuse this w... | |
doc_10990 |
Reduce X to the selected features. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
X_rarray of shape [n_samples, n_selected_features]
The input samples with only the selected features. | |
doc_10991 | dataset = tf.data.Dataset.range(2)
for element in dataset:
print(element)
tf.Tensor(0, shape=(), dtype=int64)
tf.Tensor(1, shape=(), dtype=int64)
or by fetching individual elements explicitly via get_next():
dataset = tf.data.Dataset.range(2)
iterator = iter(dataset)
print(iterator.get_next())
tf.Tensor(0, shape=()... | |
doc_10992 |
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_10993 | Rewind the file pointer to the beginning of the audio stream. | |
doc_10994 | Update and return a dictionary representing the current local symbol table. Free variables are returned by locals() when it is called in function blocks, but not in class blocks. Note that at the module level, locals() and globals() are the same dictionary. Note The contents of this dictionary should not be modified; ... | |
doc_10995 |
Return the string bounding box. | |
doc_10996 | reads num_events midi events from the buffer. read(num_events) -> midi_event_list Reads from the input buffer and gives back midi events.
Parameters:
num_events (int) -- number of input events to read
Returns:
the format for midi_event_list is [[[status, data1, data2, data3], timestamp], ...]
Return type:
... | |
doc_10997 | Return a DOMEventStream from the given input. stream_or_string may be either a file name, or a file-like object. parser, if given, must be an XMLReader object. This function will change the document handler of the parser and activate namespace support; other parser configuration (like setting an entity resolver) must h... | |
doc_10998 |
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event. | |
doc_10999 | Returns the total number of elements in the input tensor. Parameters
input (Tensor) – the input tensor. Example: >>> a = torch.randn(1, 2, 3, 4, 5)
>>> torch.numel(a)
120
>>> a = torch.zeros(4,4)
>>> torch.numel(a)
16 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.