_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_13800
Moves the underlying storage to shared memory. This is a no-op if the underlying storage is already in shared memory and for CUDA tensors. Tensors in shared memory cannot be resized.
doc_13801
Set the bounds of the rectangle as left, bottom, width, height. The values may be passed as separate parameters or as a tuple: set_bounds(left, bottom, width, height) set_bounds((left, bottom, width, height))
doc_13802
tf.experimental.numpy.cumsum( a, axis=None, dtype=None ) Unsupported arguments: out. See the NumPy documentation for numpy.cumsum.
doc_13803
tf.compat.v1.layers.BatchNormalization( axis=-1, momentum=0.99, epsilon=0.001, center=True, scale=True, beta_initializer=tf.zeros_initializer(), gamma_initializer=tf.ones_initializer(), moving_mean_initializer=tf.zeros_initializer(), moving_variance_initializer=tf.ones_initializer(), beta_regularize...
doc_13804
Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
doc_13805
Register an ExtensionType with pandas as class decorator. This enables operations like .astype(name) for the name of the ExtensionDtype. Returns callable A class decorator. Examples >>> from pandas.api.extensions import register_extension_dtype, ExtensionDtype >>> @register_extension_dtype ... class MyExtens...
doc_13806
default background color bgcolor -> Color Gets or sets the default background rendering color. Initially it is unset and text will render with a transparent background by default. Applies to render() and render_to().
doc_13807
Return a new, equivalent, pipeline template.
doc_13808
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_13809
Returns a tzinfo instance that represents the current time zone.
doc_13810
Get the length of the tick outside of the axes.
doc_13811
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArraySizeV3 tf.raw_ops.TensorArraySizeV3( handle, flow_in, name=None ) Args handle A Tensor of type resource. The handle to a TensorArray (output of TensorArray or TensorArrayGrad). flow_in A Tensor of type float32. A float scalar th...
doc_13812
A string representation of the network, with the mask in host mask notation.
doc_13813
Execute the code of the specified module and return the resulting module globals dictionary. The module’s code is first located using the standard import mechanism (refer to PEP 302 for details) and then executed in a fresh module namespace. The mod_name argument should be an absolute module name. If the module name re...
doc_13814
class typing.TextIO class typing.BinaryIO Generic type IO[AnyStr] and its subclasses TextIO(IO[str]) and BinaryIO(IO[bytes]) represent the types of I/O streams such as returned by open(). These types are also in the typing.io namespace.
doc_13815
Bases: matplotlib.patches.Patch An axis spine -- the line noting the data area boundaries. Spines are the lines connecting the axis tick marks and noting the boundaries of the data area. They can be placed at arbitrary positions. See set_position for more information. The default position is ('outward', 0). Spines ar...
doc_13816
Return repr(self).
doc_13817
Return the maximum of the values over the requested axis. If you want the index of the maximum, use idxmax. This is the equivalent of the numpy.ndarray method argmax. Parameters axis:{index (0), columns (1)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when comput...
doc_13818
IEEE 754 floating point representation of Not a Number (NaN). NaN and NAN are equivalent definitions of nan. Please use nan instead of NaN. See Also nan
doc_13819
tf.inside_function() Returns Boolean, True if the caller code is executing inside a tf.function rather than eagerly. Example: tf.inside_function() False @tf.function def f(): print(tf.inside_function()) f() True
doc_13820
Concatenate multiple array of this dtype. Parameters to_concat:sequence of this type Returns ExtensionArray
doc_13821
See Migration guide for more details. tf.compat.v1.raw_ops.AsString tf.raw_ops.AsString( input, precision=-1, scientific=False, shortest=False, width=-1, fill='', name=None ) Supports many numeric types and boolean. For Unicode, see the https://www.tensorflow.org/tutorials/representation/unicode tutorial. Ex...
doc_13822
Identify yourself to an ESMTP server using EHLO. The hostname argument defaults to the fully qualified domain name of the local host. Examine the response for ESMTP option and store them for use by has_extn(). Also sets several informational attributes: the message returned by the server is stored as the ehlo_resp attr...
doc_13823
Return the number of leaves of the decision tree. Returns self.tree_.n_leavesint Number of leaves.
doc_13824
Create and return a clone of the turtle with same position, heading and turtle properties. >>> mick = Turtle() >>> joe = mick.clone()
doc_13825
The defects attribute contains a list of all the problems found when parsing this message. See email.errors for a detailed description of the possible parsing defects.
doc_13826
A list of (begin, end) tuples for the range header provided. The ranges are non-inclusive.
doc_13827
Bases: mpl_toolkits.axes_grid1.inset_locator.AnchoredLocatorBase Parameters locstr The box location. Valid locations are 'upper left', 'upper center', 'upper right', 'center left', 'center', 'center right', 'lower left', 'lower center, 'lower right'. For backward compatibility, numeric values are accepted as we...
doc_13828
Compute the shape index. The shape index, as defined by Koenderink & van Doorn [1], is a single valued measure of local curvature, assuming the image as a 3D plane with intensities representing heights. It is derived from the eigen values of the Hessian, and its value ranges from -1 to 1 (and is undefined (=NaN) in f...
doc_13829
Return the indices for the lower-triangle of arr. See tril_indices for full details. Parameters arrarray_like The indices will be valid for square arrays whose dimensions are the same as arr. kint, optional Diagonal offset (see tril for details). See also tril_indices, tril Notes New in version 1...
doc_13830
Sets the random number generator state of the specified GPU. Parameters new_state (torch.ByteTensor) – The desired state device (torch.device or int, optional) – The device to set the RNG state. Default: 'cuda' (i.e., torch.device('cuda'), the current CUDA device).
doc_13831
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 array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or list of bools array a...
doc_13832
Return the transpose, which is by definition self. Returns %(klass)s
doc_13833
The width of the band in pixels (X-axis).
doc_13834
tabnanny.check(file_or_dir) If file_or_dir is a directory and not a symbolic link, then recursively descend the directory tree named by file_or_dir, checking all .py files along the way. If file_or_dir is an ordinary Python source file, it is checked for whitespace related problems. The diagnostic messages are writte...
doc_13835
Return the sketch parameters for the artist. Returns tuple or None A 3-tuple with the following elements: scale: The amplitude of the wiggle perpendicular to the source line. length: The length of the wiggle along the line. randomness: The scale factor by which the length is shrunken or expanded. Returns Non...
doc_13836
tf.compat.v1.train.remove_checkpoint( checkpoint_prefix, checkpoint_format_version=tf.train.SaverDef.V2, meta_graph_suffix='meta' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use standard file APIs to delete files with this prefix. Args check...
doc_13837
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_13838
See Migration guide for more details. tf.compat.v1.raw_ops.AvgPool tf.raw_ops.AvgPool( value, ksize, strides, padding, data_format='NHWC', name=None ) Each entry in output is the mean of the corresponding size ksize window in value. Args value A Tensor. Must be one of the following types: half, bfloat16...
doc_13839
The option for waitpid() to return immediately if no child process status is available immediately. The function returns (0, 0) in this case. Availability: Unix.
doc_13840
Return value at the given quantile. Parameters q:float or array-like, default 0.5 (50% quantile) The quantile(s) to compute, which can lie in range: 0 <= q <= 1. interpolation:{‘linear’, ‘lower’, ‘higher’, ‘midpoint’, ‘nearest’} This optional parameter specifies the interpolation method to use, when the des...
doc_13841
Convert parameters to one vector Parameters parameters (Iterable[Tensor]) – an iterator of Tensors that are the parameters of a model. Returns The parameters represented by a single vector
doc_13842
Create the child mocks for attributes and return value. By default child mocks will be the same type as the parent. Subclasses of Mock may want to override this to customize the way child mocks are made. For non-callable mocks the callable variant will be used (rather than any custom subclass).
doc_13843
Build a Bagging ensemble of estimators from the training set (X, y). Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Sparse matrices are accepted only if they are supported by the base estimator. yarray-like of shape (n_samples,) The target values (cl...
doc_13844
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_13845
The DirSelectBox is similar to the standard Motif(TM) directory-selection box. It is generally used for the user to choose a directory. DirSelectBox stores the directories mostly recently selected into a ComboBox widget so that they can be quickly selected again.
doc_13846
Return whether object was opened for reading. If False, read() will raise OSError. Return type bool
doc_13847
Log of probability estimates. This method is only available for log loss and modified Huber loss. When loss=”modified_huber”, probability estimates may be hard zeros and ones, so taking the logarithm is not possible. See predict_proba for details. Parameters X{array-like, sparse matrix} of shape (n_samples, n_featu...
doc_13848
Creates a tensor of size size filled with fill_value. The tensor’s dtype is inferred from fill_value. Parameters size (int...) – a list, tuple, or torch.Size of integers defining the shape of the output tensor. fill_value (Scalar) – the value to fill the output tensor with. Keyword Arguments out (Tensor, opti...
doc_13849
Forward fill the values. Parameters limit:int, optional Limit of how many values to fill. Returns An upsampled Series. See also Series.fillna Fill NA/NaN values using the specified method. DataFrame.fillna Fill NA/NaN values using the specified method.
doc_13850
Pushes a None on to the producer queue. When this producer is popped off the queue it causes the channel to be closed.
doc_13851
Apply the transform to Path path, returning a new Path. In some cases, this transform may insert curves into the path that began as line segments.
doc_13852
Return the Text instance for the legend title.
doc_13853
A file uploaded into memory (i.e. stream-to-memory). This class is used by the MemoryFileUploadHandler.
doc_13854
filename2 For exceptions that involve a file system path (such as open() or os.unlink()), filename is the file name passed to the function. For functions that involve two file system paths (such as os.rename()), filename2 corresponds to the second file name passed to the function.
doc_13855
Return the matrix as a (possibly nested) list. See ndarray.tolist for full documentation. See also ndarray.tolist Examples >>> x = np.matrix(np.arange(12).reshape((3,4))); x matrix([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]]) >>> x.tolist() [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]]
doc_13856
Convert Series to {label -> value} dict or dict-like object. Parameters into:class, default dict The collections.abc.Mapping subclass to use as the return object. Can be the actual class or an empty instance of the mapping type you want. If you want a collections.defaultdict, you must pass it initialized. Re...
doc_13857
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_13858
If pass_through is True, all ancestors will always be invalidated, even if 'self' is already invalid.
doc_13859
See Migration guide for more details. tf.compat.v1.image.hsv_to_rgb tf.image.hsv_to_rgb( images, name=None ) Outputs a tensor of the same shape as the images tensor, containing the RGB value of the pixels. The output is only well defined if the value in images are in [0,1]. See rgb_to_hsv for a description of th...
doc_13860
Bases: object A grid of Axes. In Matplotlib, the axes location (and size) is specified in normalized figure coordinates. This may not be ideal for images that needs to be displayed with a given aspect ratio; for example, it is difficult to display multiple images of a same size with some fixed padding between them. A...
doc_13861
Indicator for whether the date is the last day of a quarter. Returns is_quarter_end:Series or DatetimeIndex The same type as the original data with boolean values. Series will have the same name and index. DatetimeIndex will have the same name. See also quarter Return the quarter of the date. is_quarter...
doc_13862
Number of microseconds (>= 0 and less than 1 second) for each element.
doc_13863
classmethod apply(module, name, mask) [source] Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parameters module (nn.Module) – module containing the tensor to prune name (str) – parameter name within module ...
doc_13864
tf.metrics.sparse_categorical_accuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.sparse_categorical_accuracy tf.keras.metrics.sparse_categorical_accuracy( y_true, y_pred ) Standalone usage: y_true = [2, 1] y_pred = [[0.1, 0.9, 0.8], [0.05, 0.95, 0]] m = tf.ker...
doc_13865
tf.compat.v1.estimator.inputs.pandas_input_fn( x, y=None, batch_size=128, num_epochs=1, shuffle=None, queue_capacity=1000, num_threads=1, target_column='target' ) Note: y's index must match x's index. Args x pandas DataFrame object. y pandas Series object or DataFrame. None if absent. batc...
doc_13866
Deprecated since version 3.9: Deprecated in favor of url.
doc_13867
tkinter.font.BOLD tkinter.font.ITALIC tkinter.font.ROMAN
doc_13868
Check if coefficients match. New in version 1.6.0. Parameters otherclass instance The other class must have the coef attribute. Returns boolboolean True if the coefficients are the same, False otherwise.
doc_13869
Returns a boolean denoting whether the current user has permission to execute the decorated view. By default, this returns the result of calling has_perms() with the list of permissions returned by get_permission_required().
doc_13870
Return list of 5-tuples describing how to turn a into b. Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple has i1 == j1 == 0, and remaining tuples have i1 equal to the i2 from the preceding tuple, and, likewise, j1 equal to the previous j2. The tag values are strings, with these meanings: Value Meanin...
doc_13871
By default, the change list page allows sorting by all model fields (and callables that use the ordering argument to the display() decorator or have the admin_order_field attribute) specified in list_display. If you want to disable sorting for some columns, set sortable_by to a collection (e.g. list, tuple, or set) of ...
doc_13872
Add and return a Bitmap control.
doc_13873
tf.compat.v1.get_session_tensor( handle, dtype, name=None ) This is EXPERIMENTAL and subject to change. Get the value of the tensor from a tensor handle. The tensor is produced in a previous run() and stored in the state of the session. Args handle The string representation of a persistent tensor handle. ...
doc_13874
Return the real part of the complex argument. Parameters valarray_like Input array. Returns outndarray or scalar The real component of the complex argument. If val is real, the type of val is used for the output. If val has complex elements, the returned type is float. See also real_if_close, ima...
doc_13875
Return x formatted as an x-value. This function will use the fmt_xdata attribute if it is not None, else will fall back on the xaxis major formatter.
doc_13876
Create a SAX parser and use it to parse a document. The document, passed in as filename_or_stream, can be a filename or a file object. The handler parameter needs to be a SAX ContentHandler instance. If error_handler is given, it must be a SAX ErrorHandler instance; if omitted, SAXParseException will be raised on all e...
doc_13877
Linear Support Vector Classification. Similar to SVC with parameter kernel=’linear’, but implemented in terms of liblinear rather than libsvm, so it has more flexibility in the choice of penalties and loss functions and should scale better to large numbers of samples. This class supports both dense and sparse input a...
doc_13878
Bases: object PDF file object. Parameters filenamestr or path-like or file-like Output target; if a string, a file will be opened for writing. metadatadict from strings to strings and dates Information dictionary object (see PDF reference section 10.2.1 'Document Information Dictionary'), e.g.: {'Creator': ...
doc_13879
This is an alias for the builtin open() function. This function raises an auditing event open with arguments path, mode and flags. The mode and flags arguments may have been modified or inferred from the original call.
doc_13880
Return r length subsequences of elements from the input iterable allowing individual elements to be repeated more than once. The combination tuples are emitted in lexicographic ordering according to the order of the input iterable. So, if the input iterable is sorted, the combination tuples will be produced in sorted o...
doc_13881
Return a sorted copy of an array. Parameters aarray_like Array to be sorted. axisint or None, optional Axis along which to sort. If None, the array is flattened before sorting. The default is -1, which sorts along the last axis. kind{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, optional Sorting algo...
doc_13882
A method to specify whether a given nn.Module is a “leaf” module. Leaf modules are the atomic units that appear in the IR, referenced by call_module calls. By default, Modules in the PyTorch standard library namespace (torch.nn) are leaf modules. All other modules are traced through and their constituent ops are reco...
doc_13883
Indicates that an application on 64-bit Windows should operate on the 32-bit registry view.
doc_13884
Tells the logging system to use the class klass when instantiating a logger. The class should define __init__() such that only a name argument is required, and the __init__() should call Logger.__init__(). This function is typically called before any loggers are instantiated by applications which need to use custom log...
doc_13885
See Migration guide for more details. tf.compat.v1.raw_ops.CSRSparseMatrixToSparseTensor tf.raw_ops.CSRSparseMatrixToSparseTensor( sparse_matrix, type, name=None ) Args sparse_matrix A Tensor of type variant. A (possibly batched) CSRSparseMatrix. type A tf.DType from: tf.float32, tf.float64, tf.co...
doc_13886
Returns the value of HttpResponse.content. This method makes an HttpResponse instance a stream-like object.
doc_13887
Return the snap setting. See set_snap for details.
doc_13888
Iterate over the file yielding one line at a time.
doc_13889
Raised when an attempt is made to insert an Attr node that is already present elsewhere in the document.
doc_13890
A pass statement. >>> print(ast.dump(ast.parse('pass'), indent=4)) Module( body=[ Pass()], type_ignores=[])
doc_13891
tf.summary.audio( name, data, sample_rate, step=None, max_outputs=3, encoding=None, description=None ) Arguments name A name for this summary. The summary tag used for TensorBoard will be this name prefixed by any active name scopes. data A Tensor representing audio data with shape [k, t, c], wh...
doc_13892
Set the elevation and azimuth of the axes in degrees (not radians). This can be used to rotate the axes programmatically. Parameters elevfloat, default: None The elevation angle in the vertical plane in degrees. If None then the initial value as specified in the Axes3D constructor is used. azimfloat, default:...
doc_13893
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_13894
alias of Conv1d
doc_13895
In-place version of sign()
doc_13896
Remove the observer with connection id cid.
doc_13897
There are three parts to setting up a GenericForeignKey: Give your model a ForeignKey to ContentType. The usual name for this field is “content_type”. Give your model a field that can store primary key values from the models you’ll be relating to. For most models, this means a PositiveIntegerField. The usual name for ...
doc_13898
tkinter.font.BOLD tkinter.font.ITALIC tkinter.font.ROMAN
doc_13899
Return a year’s calendar as an HTML table. width (defaulting to 3) specifies the number of months per row.