_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_23600
Returns a contraction of a and b over multiple dimensions. tensordot implements a generalized matrix product. Parameters a (Tensor) – Left tensor to contract b (Tensor) – Right tensor to contract dims (int or Tuple[List[int]] containing two lists) – number of dimensions to contract or explicit lists of dimensio...
doc_23601
See Migration guide for more details. tf.compat.v1.keras.applications.inception_resnet_v2.preprocess_input tf.keras.applications.inception_resnet_v2.preprocess_input( x, data_format=None ) Usage example with applications.MobileNet: i = tf.keras.layers.Input([None, None, 3], dtype = tf.uint8) x = tf.cast(i, tf.fl...
doc_23602
Returns the indices of the lower triangular part of a row-by- col matrix in a 2-by-N Tensor, where the first row contains row coordinates of all indices and the second row contains column coordinates. Indices are ordered based on rows and then columns. The lower triangular part of the matrix is defined as the elements ...
doc_23603
os.P_PGID os.P_ALL These are the possible values for idtype in waitid(). They affect how id is interpreted. Availability: Unix. New in version 3.3.
doc_23604
The number of bytes needed to store this object in memory.
doc_23605
Pop and return the smallest item from the heap, maintaining the heap invariant. If the heap is empty, IndexError is raised. To access the smallest item without popping it, use heap[0].
doc_23606
See Migration guide for more details. tf.compat.v1.sparse.placeholder tf.compat.v1.sparse_placeholder( dtype, shape=None, name=None ) Key Point: This sparse tensor will produce an error if evaluated. Its value must be fed using the feed_dict optional argument to Session.run(), Tensor.eval(), or Operation.run(). ...
doc_23607
Used by send_file() to determine the max_age cache value for a given file path if it wasn’t passed. By default, this returns SEND_FILE_MAX_AGE_DEFAULT from the configuration of current_app. This defaults to None, which tells the browser to use conditional requests instead of a timed cache, which is usually preferable. ...
doc_23608
An importer for frozen modules. This class implements the importlib.abc.MetaPathFinder and importlib.abc.InspectLoader ABCs. Only class methods are defined by this class to alleviate the need for instantiation. Changed in version 3.4: Gained create_module() and exec_module() methods.
doc_23609
Compute min of group values. Parameters numeric_only:bool, default False Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. min_count:int, default -1 The required number of valid values to perform the operation. If fewer than min_count non-NA value...
doc_23610
This function creates a mutable unicode character buffer. The returned object is a ctypes array of c_wchar. init_or_size must be an integer which specifies the size of the array, or a string which will be used to initialize the array items. If a string is specified as first argument, the buffer is made one item larger ...
doc_23611
class sklearn.neighbors.NeighborhoodComponentsAnalysis(n_components=None, *, init='auto', warm_start=False, max_iter=50, tol=1e-05, callback=None, verbose=0, random_state=None) [source] Neighborhood Components Analysis Neighborhood Component Analysis (NCA) is a machine learning algorithm for metric learning. It learn...
doc_23612
DateOffset increments between business quarter dates for 52-53 week fiscal year (also known as a 4-4-5 calendar). It is used by companies that desire that their fiscal year always end on the same day of the week. It is a method of managing accounting periods. It is a common calendar structure for some industries, suc...
doc_23613
Convert float rgb values (in the range [0, 1]), in a numpy array to hsv values. Parameters arr(..., 3) array-like All values must be in the range [0, 1] Returns (..., 3) ndarray Colors converted to hsv values in range [0, 1] Examples using matplotlib.colors.rgb_to_hsv List of named colors
doc_23614
bytearray.isalpha() Return True if all bytes in the sequence are alphabetic ASCII characters and the sequence is not empty, False otherwise. Alphabetic ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'. For example: >>> b'ABCabc'.isalpha() True >>> b'ABCabc...
doc_23615
See Migration guide for more details. tf.compat.v1.raw_ops.StageSize tf.raw_ops.StageSize( dtypes, capacity=0, memory_limit=0, container='', shared_name='', name=None ) Args dtypes A list of tf.DTypes. capacity An optional int that is >= 0. Defaults to 0. memory_limit An optional int tha...
doc_23616
The name of the package or module that this object belongs to. Do not change this once it is set by the constructor.
doc_23617
See Migration guide for more details. tf.compat.v1.lookup.experimental.DenseHashTable tf.lookup.experimental.DenseHashTable( key_dtype, value_dtype, default_value, empty_key, deleted_key, initial_num_buckets=None, name='MutableDenseHashTable', checkpoint=True ) Data can be inserted by calling the insert ...
doc_23618
Set the ticks position. Parameters position{'left', 'right', 'both', 'default', 'none'} 'both' sets the ticks to appear on both positions, but does not change the tick labels. 'default' resets the tick positions to the default: ticks on both positions, labels at left. 'none' can be used if you don't want any ti...
doc_23619
The name of the source which is equivalent to the input file path or the name provided upon instantiation. >>> GDALRaster({'width': 10, 'height': 10, 'name': 'myraster', 'srid': 4326}).name 'myraster'
doc_23620
tf.compat.v1.data.experimental.make_batched_features_dataset( file_pattern, batch_size, features, reader=None, label_key=None, reader_args=None, num_epochs=None, shuffle=True, shuffle_buffer_size=10000, shuffle_seed=None, prefetch_buffer_size=None, reader_num_threads=None, parser_num_threads=None, slopp...
doc_23621
Read the entire uploaded data from the file. Be careful with this method: if the uploaded file is huge it can overwhelm your system if you try to read it into memory. You’ll probably want to use chunks() instead; see below.
doc_23622
Set the wakeup file descriptor to fd. When a signal is received, the signal number is written as a single byte into the fd. This can be used by a library to wakeup a poll or select call, allowing the signal to be fully processed. The old wakeup fd is returned (or -1 if file descriptor wakeup was not enabled). If fd is ...
doc_23623
See Migration guide for more details. tf.compat.v1.raw_ops.LRN tf.raw_ops.LRN( input, depth_radius=5, bias=1, alpha=1, beta=0.5, name=None ) The 4-D input tensor is treated as a 3-D array of 1-D vectors (along the last dimension), and each vector is normalized independently. Within a given vector, each component...
doc_23624
Computes the N dimensional inverse discrete Fourier transform of input. Parameters input (Tensor) – the input tensor s (Tuple[int], optional) – Signal size in the transformed dimensions. If given, each dimension dim[i] will either be zero-padded or trimmed to the length s[i] before computing the IFFT. If a length ...
doc_23625
tf.compat.v1.train.SessionManager( local_init_op=None, ready_op=None, ready_for_local_init_op=None, graph=None, recovery_wait_secs=30, local_init_run_options=None, local_init_feed_dict=None ) This class is a small wrapper that takes care of session creation and checkpoint recovery. It also provides functions t...
doc_23626
The URI path. If the Request uses a proxy, then selector will be the full URL that is passed to the proxy.
doc_23627
See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingAdadeltaParametersGradAccumDebug tf.raw_ops.RetrieveTPUEmbeddingAdadeltaParametersGradAccumDebug( num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that retrieves optimization parameters from embedding...
doc_23628
tf.compat.v1.train.AdagradOptimizer( learning_rate, initial_accumulator_value=0.1, use_locking=False, name='Adagrad' ) References: Adaptive Subgradient Methods for Online Learning and Stochastic Optimization :Duchi et al., 2011 (pdf) Args learning_rate A Tensor or a floating point value. The learning ...
doc_23629
Return the number of elements in the underlying data.
doc_23630
Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return...
doc_23631
Decrements interval timer in real time, and delivers SIGALRM upon expiration.
doc_23632
Abstract base class for writing movies. Fundamentally, what a MovieWriter does is provide is a way to grab frames by calling grab_frame(). setup() is called to start the process and finish() is called afterwards. This class is set up to provide for writing movie frame data to a pipe. saving() is provided as a context...
doc_23633
Required. A method that returns a sequence or QuerySet of objects. The framework doesn’t care what type of objects they are; all that matters is that these objects get passed to the location(), lastmod(), changefreq() and priority() methods.
doc_23634
Alias for get_linewidth.
doc_23635
Set the list of labels on the message to labels.
doc_23636
Simply handles the multiplication between the parameter being pruned and the generated mask. Fetches the mask and the original tensor from the module and returns the pruned version of the tensor. Parameters module (nn.Module) – module containing the tensor to prune Returns pruned version of the input tensor Return...
doc_23637
[Deprecated] Create a colorbar on the given axes for the given mappable. Note This is a low-level function to turn an existing axes into a colorbar axes. Typically, you'll want to use colorbar instead, which automatically handles creation and placement of a suitable axes as well. Parameters caxAxes The Axes t...
doc_23638
Unpacks and returns a variable length opaque data string, similarly to unpack_string().
doc_23639
play a Sound on a specific Channel play(Sound, loops=0, maxtime=0, fade_ms=0) -> None This will begin playback of a Sound on a specific Channel. If the Channel is currently playing any other Sound it will be stopped. The loops argument has the same meaning as in Sound.play(): it is the number of times to repeat the s...
doc_23640
Add a child inset Axes to this existing Axes. Parameters bounds[x0, y0, width, height] Lower-left corner of inset Axes, and its width and height. transformTransform Defaults to ax.transAxes, i.e. the units of rect are in Axes-relative coordinates. zordernumber Defaults to 5 (same as Axes.legend). Adjust...
doc_23641
Performs a single optimization step. Parameters closure (callable, optional) – A closure that reevaluates the model and returns the loss.
doc_23642
An abstract method for finding a spec for the specified module. If this is a top-level import, path will be None. Otherwise, this is a search for a subpackage or module and path will be the value of __path__ from the parent package. If a spec cannot be found, None is returned. When passed in, target is a module object ...
doc_23643
TransformerEncoder is a stack of N encoder layers Parameters encoder_layer – an instance of the TransformerEncoderLayer() class (required). num_layers – the number of sub-encoder-layers in the encoder (required). norm – the layer normalization component (optional). Examples:: >>> encoder_layer = nn.Transfo...
doc_23644
Initialize self. See help(type(self)) for accurate signature.
doc_23645
Return if another array is equivalent to this array. Equivalent means that both arrays have the same shape and dtype, and all values compare equal. Missing values in the same location are considered equal (in contrast with normal equality). Parameters other:ExtensionArray Array to compare to this Array. Retu...
doc_23646
url URL of the resource retrieved, commonly used to determine if a redirect was followed. headers Returns the headers of the response in the form of an EmailMessage instance. status New in version 3.9. Status code returned by server. geturl() Deprecated since version 3.9: Deprecated in favor of...
doc_23647
Close and skip to the end of the chunk. This does not close the underlying file.
doc_23648
See torch.isneginf()
doc_23649
Return a dictionary of all the properties of the artist.
doc_23650
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool axis_direction unknown axislabel_direction {"+", "-"} axisline_style str or...
doc_23651
Computes a CRC (Cyclic Redundancy Check) checksum of data. The result is an unsigned 32-bit integer. If value is present, it is used as the starting value of the checksum; otherwise, a default value of 0 is used. Passing in value allows computing a running checksum over the concatenation of several inputs. The algorith...
doc_23652
See Migration guide for more details. tf.compat.v1.raw_ops.UpperBound tf.raw_ops.UpperBound( sorted_inputs, values, out_type=tf.dtypes.int32, name=None ) Each set of rows with the same index in (sorted_inputs, values) is treated independently. The resulting row is the equivalent of calling np.searchsorted(sorted...
doc_23653
tf.keras.layers.experimental.preprocessing.StringLookup( max_tokens=None, num_oov_indices=1, mask_token='', oov_token='[UNK]', vocabulary=None, encoding=None, invert=False, **kwargs ) This layer translates a set of arbitrary strings into an integer output via a table-based lookup, with optional out-of-voca...
doc_23654
Transform data back to its original space. In other words, return an input X_original whose transform would be X. Parameters Xarray-like, shape (n_samples, n_components) New data, where n_samples is the number of samples and n_components is the number of components. Returns X_original array-like, shape (n_...
doc_23655
Setting reset_sequences = True on a TransactionTestCase will make sure sequences are always reset before the test run: class TestsThatDependsOnPrimaryKeySequences(TransactionTestCase): reset_sequences = True def test_animal_pk(self): lion = Animal.objects.create(name="lion", sound="roar") # lio...
doc_23656
'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_23657
Returns a clone of self with given hyperparameters theta. Parameters thetandarray of shape (n_dims,) The hyperparameters
doc_23658
Raised by built-in function next() and an iterator’s __next__() method to signal that there are no further items produced by the iterator. The exception object has a single attribute value, which is given as an argument when constructing the exception, and defaults to None. When a generator or coroutine function return...
doc_23659
Like Flask.before_first_request(). Such a function is executed before the first request to the application. Parameters f (Callable[[], None]) – Return type Callable[[], None]
doc_23660
Bases: object __call__(*args, **kwargs)[source] Call self as a function.
doc_23661
Set the label for the x-axis. Parameters xlabelstr The label text. labelpadfloat, default: rcParams["axes.labelpad"] (default: 4.0) Spacing in points from the Axes bounding box including ticks and tick labels. If None, the previous value is left as is. loc{'left', 'center', 'right'}, default: rcParams["xa...
doc_23662
signal.SIG_DFL This is one of two standard signal handling options; it will simply perform the default function for the signal. For example, on most systems the default action for SIGQUIT is to dump core and exit, while the default action for SIGCHLD is to simply ignore it. signal.SIG_IGN This is another standa...
doc_23663
Convert a block of base64 data back to binary and return the binary data. More than one line may be passed at a time.
doc_23664
See Migration guide for more details. tf.compat.v1.math.special.bessel_j0 tf.math.special.bessel_j0( x, name=None ) Modified Bessel function of order 0. tf.math.special.bessel_j0([0.5, 1., 2., 4.]).numpy() array([ 0.93846981, 0.76519769, 0.22389078, -0.39714981], dtype=float32) Args x A Tensor or Sp...
doc_23665
See Migration guide for more details. tf.compat.v1.signal.frame tf.signal.frame( signal, frame_length, frame_step, pad_end=False, pad_value=0, axis=-1, name=None ) Slides a window of size frame_length over signal's axis dimension with a stride of frame_step, replacing the axis dimension with [frames, frame_lengt...
doc_23666
The logical parent of the path: >>> p = PurePosixPath('/a/b/c/d') >>> p.parent PurePosixPath('/a/b/c') You cannot go past an anchor, or empty path: >>> p = PurePosixPath('/') >>> p.parent PurePosixPath('/') >>> p = PurePosixPath('.') >>> p.parent PurePosixPath('.') Note This is a purely lexical operation, hence the ...
doc_23667
Set an attribute value from a string.
doc_23668
See Migration guide for more details. tf.compat.v1.bitwise.left_shift tf.bitwise.left_shift( x, y, name=None ) If y is negative, or greater than or equal to the width of x in bits the result is implementation defined. Example: import tensorflow as tf from tensorflow.python.ops import bitwise_ops import numpy as ...
doc_23669
Holds an instance of the class specified by the MessageClass class variable. This instance parses and manages the headers in the HTTP request. The parse_headers() function from http.client is used to parse the headers and it requires that the HTTP request provide a valid RFC 2822 style header.
doc_23670
Bases: skimage.measure.fit.BaseModel Total least squares estimator for N-dimensional lines. In contrast to ordinary least squares line estimation, this estimator minimizes the orthogonal distances of points to the estimated line. Lines are defined by a point (origin) and a unit vector (direction) according to the fol...
doc_23671
operator.invert(obj) operator.__inv__(obj) operator.__invert__(obj) Return the bitwise inverse of the number obj. This is equivalent to ~obj.
doc_23672
See Migration guide for more details. tf.compat.v1.numpy_function tf.numpy_function( func, inp, Tout, name=None ) Given a python function func wrap this function as an operation in a TensorFlow function. func must take numpy arrays as its arguments and return numpy arrays as its outputs. The following example cr...
doc_23673
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DWithBiasSumAndReluAndRequantize tf.raw_ops.QuantizedConv2DWithBiasSumAndReluAndRequantize( input, filter, bias, min_input, max_input, min_filter, max_filter, min_freezed_output, max_freezed_output, summand, min_summand, max_summand, ...
doc_23674
Learn the vocabulary dictionary and return document-term matrix. This is equivalent to fit followed by transform, but more efficiently implemented. Parameters raw_documentsiterable An iterable which yields either str, unicode or file objects. Returns Xarray of shape (n_samples, n_features) Document-term...
doc_23675
Ensure that the function is synchronous for WSGI workers. Plain def functions are returned as-is. async def functions are wrapped to run and wait for the response. Override this method to change how the app runs async views. New in version 2.0. Parameters func (Callable) – Return type Callable
doc_23676
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_23677
The masked constant is a special case of MaskedArray, with a float datatype and a null shape. It is used to test whether a specific entry of a masked array is masked, or to mask one or several entries of a masked array: >>> x = ma.array([1, 2, 3], mask=[0, 1, 0]) >>> x[1] is ma.masked True >>> x[-1] = ma.masked >>> x...
doc_23678
Count the number of vertices contained in the Bbox. Any vertices with a non-finite x or y value are ignored. Parameters verticesNx2 Numpy array.
doc_23679
Alias for set_linewidth.
doc_23680
Copy the contents (no metadata) of the file named src to a file named dst and return dst in the most efficient way possible. src and dst are path-like objects or path names given as strings. dst must be the complete target file name; look at copy() for a copy that accepts a target directory path. If src and dst specify...
doc_23681
Set multilinebaseline. If True, the baseline for multiline text is adjusted so that it is (approximately) center-aligned with single-line text. This is used e.g. by the legend implementation so that single-line labels are baseline-aligned, but multiline labels are "center"-aligned with them.
doc_23682
tf.compat.v1.make_template( name_, func_, create_scope_now_=False, unique_name_=None, custom_getter_=None, **kwargs ) This wraps func_ in a Template and partially evaluates it. Templates are functions that create variables the first time they are called and reuse them thereafter. In order for func_ to be compa...
doc_23683
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
doc_23684
Registers a backward hook on the module. The hook will be called every time the gradients with respect to module inputs are computed. The hook should have the following signature: hook(module, grad_input, grad_output) -> tuple(Tensor) or None The grad_input and grad_output are tuples that contain the gradients with re...
doc_23685
This is the standard MSI schema for MSI 2.0, with the tables variable providing a list of table definitions, and _Validation_records providing the data for MSI validation.
doc_23686
Scalar method identical to the corresponding array attribute. Please see ndarray.view.
doc_23687
Set the fontsize in points. If s is not given, reset to rcParams["legend.fontsize"] (default: 'medium').
doc_23688
[Deprecated] Notes Deprecated since version 3.4:
doc_23689
Calculate the rolling weighted window mean. Parameters **kwargs Keyword arguments to configure the SciPy weighted window type. Returns Series or DataFrame Return type is the same as the original object with np.float64 dtype. See also pandas.Series.rolling Calling rolling with Series data. pandas.Dat...
doc_23690
Convert a polynomial to a Hermite series. Convert an array representing the coefficients of a polynomial (relative to the “standard” basis) ordered from lowest degree to highest, to an array of the coefficients of the equivalent Hermite series, ordered from lowest to highest degree. Parameters polarray_like 1-D...
doc_23691
tf.experimental.numpy.isinf( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.isinf.
doc_23692
Compute Shi-Tomasi (Kanade-Tomasi) corner measure response image. This corner detector uses information from the auto-correlation matrix A: A = [(imx**2) (imx*imy)] = [Axx Axy] [(imx*imy) (imy**2)] [Axy Ayy] Where imx and imy are first derivatives, averaged with a gaussian filter. The corner measure is the...
doc_23693
Object whose attributes correspond roughly to the members of the stat structure. It is used for the result of os.stat(), os.fstat() and os.lstat(). Attributes: st_mode File mode: file type and file mode bits (permissions). st_ino Platform dependent, but if non-zero, uniquely identifies the file for a given va...
doc_23694
class torch.utils.benchmark.Timer(stmt='pass', setup='pass', timer=<function timer>, globals=None, label=None, sub_label=None, description=None, env=None, num_threads=1, language=<Language.PYTHON: 0>) [source] Helper class for measuring execution time of PyTorch statements. For a full tutorial on how to use this clas...
doc_23695
Return a boolean mask of the given shape, filled with False. This function returns a boolean ndarray with all entries False, that can be used in common mask manipulations. If a complex dtype is specified, the type of each field is converted to a boolean type. Parameters newshapetuple A tuple indicating the shap...
doc_23696
See Migration guide for more details. tf.compat.v1.image.image_gradients tf.image.image_gradients( image ) Both output tensors have the same shape as the input: [batch_size, h, w, d]. The gradient values are organized so that [I(x+1, y) - I(x, y)] is in location (x, y). That means that dy will always have zeros ...
doc_23697
See Migration guide for more details. tf.compat.v1.raw_ops.LRNGrad tf.raw_ops.LRNGrad( input_grads, input_image, output_image, depth_radius=5, bias=1, alpha=1, beta=0.5, name=None ) Args input_grads A Tensor. Must be one of the following types: half, bfloat16, float32. 4-D with shape [batch, height,...
doc_23698
class sklearn.preprocessing.KBinsDiscretizer(n_bins=5, *, encode='onehot', strategy='quantile', dtype=None) [source] Bin continuous data into intervals. Read more in the User Guide. New in version 0.20. Parameters n_binsint or array-like of shape (n_features,), default=5 The number of bins to produce. Raises ...
doc_23699
Called for references to external entities. base is the current base, as set by a previous call to SetBase(). The public and system identifiers, systemId and publicId, are strings if given; if the public identifier is not given, publicId will be None. The context value is opaque and should only be used as described bel...