_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_7600
A list of strings that specifies the search path for modules. Initialized from the environment variable PYTHONPATH, plus an installation-dependent default. As initialized upon program startup, the first item of this list, path[0], is the directory containing the script that was used to invoke the Python interpreter. If...
doc_7601
See Migration guide for more details. tf.compat.v1.sparse.minimum, tf.compat.v1.sparse_minimum tf.sparse.minimum( sp_a, sp_b, name=None ) Assumes the two SparseTensors have the same shape, i.e., no broadcasting. Example: sp_zero = sparse_tensor.SparseTensor([[0]], [0], [7]) sp_one = sparse_tensor.SparseTensor([[...
doc_7602
tf.keras.preprocessing.timeseries_dataset_from_array( data, targets, sequence_length, sequence_stride=1, sampling_rate=1, batch_size=128, shuffle=False, seed=None, start_index=None, end_index=None ) This function takes in a sequence of data-points gathered at equal intervals, along with time series parameters ...
doc_7603
Returns the pickle of the array as a string. pickle.loads will convert the string back to an array. Parameters None
doc_7604
Bases: torch.distributions.distribution.Distribution Creates a categorical distribution parameterized by either probs or logits (but not both). Note It is equivalent to the distribution that torch.multinomial() samples from. Samples are integers from {0,…,K−1}\{0, \ldots, K-1\} where K is probs.size(-1). If probs ...
doc_7605
The name of this field in the form: >>> f = ContactForm() >>> print(f['subject'].name) subject >>> print(f['message'].name) message
doc_7606
Evaluate metric(s) by cross-validation and also record fit/score times. Read more in the User Guide. Parameters estimatorestimator object implementing ‘fit’ The object to use to fit the data. Xarray-like of shape (n_samples, n_features) The data to fit. Can be for example a list, or an array. yarray-like ...
doc_7607
See Migration guide for more details. tf.compat.v1.raw_ops.BlockLSTMV2 tf.raw_ops.BlockLSTMV2( seq_len_max, x, cs_prev, h_prev, w, wci, wcf, wco, b, cell_clip=0, use_peephole=False, name=None ) This is equivalent to applying LSTMBlockCell in a loop, like so: for x1 in unpack(x): i1, cs1, f1, o1, ci1, co1, ...
doc_7608
Raise an UnpicklingError by default. If defined, persistent_load() should return the object specified by the persistent ID pid. If an invalid persistent ID is encountered, an UnpicklingError should be raised. See Persistence of External Objects for details and examples of uses.
doc_7609
tf.metrics.CategoricalHinge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.CategoricalHinge tf.keras.metrics.CategoricalHinge( name='categorical_hinge', dtype=None ) Args name (Optional) string name of the metric instance. dtype (Optional) data type o...
doc_7610
Set the font family for math text rendered by Matplotlib. This does only affect Matplotlib's own math renderer. It has no effect when rendering with TeX (usetex=True). Parameters fontfamilystr The name of the font family. Available font families are defined in the matplotlibrc.template file. See also get_...
doc_7611
Indicates that rounding occurred and the result is not exact. Signals when non-zero digits were discarded during rounding. The rounded result is returned. The signal flag or trap is used to detect when results are inexact.
doc_7612
Predict posterior probability of each component given the data. Parameters Xarray-like of shape (n_samples, n_features) List of n_features-dimensional data points. Each row corresponds to a single data point. Returns resparray, shape (n_samples, n_components) Returns the probability each Gaussian (state...
doc_7613
Return the LogTransform associated with this scale.
doc_7614
Return self<value.
doc_7615
Return evenly spaced values within a given interval. Values are generated within the half-open interval [start, stop) (in other words, the interval including start but excluding stop). For integer arguments the function is equivalent to the Python built-in range function, but returns an ndarray rather than a list. Wh...
doc_7616
Bases: mpl_toolkits.axes_grid1.axes_size.MaxExtent Size whose absolute part is the largest height of the given artist_list.
doc_7617
patch the named member (attribute) on an object (target) with a mock object. patch.object() can be used as a decorator, class decorator or a context manager. Arguments new, spec, create, spec_set, autospec and new_callable have the same meaning as for patch(). Like patch(), patch.object() takes arbitrary keyword argume...
doc_7618
Change the mode of path to the numeric mode. mode may take one of the following values (as defined in the stat module) or bitwise ORed combinations of them: stat.S_ISUID stat.S_ISGID stat.S_ENFMT stat.S_ISVTX stat.S_IREAD stat.S_IWRITE stat.S_IEXEC stat.S_IRWXU stat.S_IRUSR stat.S_IWUSR stat.S_IXUSR stat.S_IRWXG stat....
doc_7619
pygame module for general pixel array copying The pygame.pixelcopy module contains functions for copying between surfaces and objects exporting an array structure interface. It is a backend for pygame.surfarray, adding NumPy support. But pixelcopy is more general, and intended for direct use. The array struct inte...
doc_7620
Robust wavelet-based estimator of the (Gaussian) noise standard deviation. Parameters imagendarray Image for which to estimate the noise standard deviation. average_sigmasbool, optional If true, average the channel estimates of sigma. Otherwise return a list of sigmas corresponding to each channel. multic...
doc_7621
tf.experimental.numpy.isclose( a, b, rtol=1e-05, atol=1e-08, equal_nan=False ) See the NumPy documentation for numpy.isclose.
doc_7622
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
doc_7623
Bases: matplotlib.mathtext.MathtextBackend [Deprecated] Store information to write a mathtext rendering to the PDF backend. Notes Deprecated since version 3.4. get_results(box, used_characters)[source] Return a backend-specific tuple to return to the backend after all processing is done. render_glyph(ox, oy...
doc_7624
Return a 3-tuple for pickling a MaskedArray.
doc_7625
See Migration guide for more details. tf.compat.v1.raw_ops.Dequantize tf.raw_ops.Dequantize( input, min_range, max_range, mode='MIN_COMBINED', narrow_range=False, axis=-1, dtype=tf.dtypes.float32, name=None ) [min_range, max_range] are scalar floats that specify the range for the output. The 'mode' attribute...
doc_7626
See Migration guide for more details. tf.compat.v1.raw_ops.SparseMatrixSparseMatMul tf.raw_ops.SparseMatrixSparseMatMul( a, b, type, transpose_a=False, transpose_b=False, adjoint_a=False, adjoint_b=False, name=None ) Performs a matrix multiplication of a sparse matrix a with a sparse matrix b; returns a spar...
doc_7627
Read-only attribute which is always True (as opposed to AnonymousUser.is_authenticated which is always False). This is a way to tell if the user has been authenticated. This does not imply any permissions and doesn’t check if the user is active or has a valid session. Even though normally you will check this attribute ...
doc_7628
A list of functions that will be called at the beginning of the first request to this instance. To register a function, use the before_first_request() decorator. Changelog New in version 0.8.
doc_7629
os.RTLD_NOW os.RTLD_GLOBAL os.RTLD_LOCAL os.RTLD_NODELETE os.RTLD_NOLOAD os.RTLD_DEEPBIND Flags for use with the setdlopenflags() and getdlopenflags() functions. See the Unix manual page dlopen(3) for what the different flags mean. New in version 3.3.
doc_7630
Convert a Text to a Text3D object.
doc_7631
os.spawnle(mode, path, ..., env) os.spawnlp(mode, file, ...) os.spawnlpe(mode, file, ..., env) os.spawnv(mode, path, args) os.spawnve(mode, path, args, env) os.spawnvp(mode, file, args) os.spawnvpe(mode, file, args, env) Execute the program path in a new process. (Note that the subprocess module provides ...
doc_7632
Initialize self. See help(type(self)) for accurate signature.
doc_7633
turtle.getpen() Return the Turtle object itself. Only reasonable use: as a function to return the “anonymous turtle”: >>> pet = getturtle() >>> pet.fd(50) >>> pet <turtle.Turtle object at 0x...>
doc_7634
Set the value array from array-like A. Parameters Aarray-like or None The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A.
doc_7635
See Migration guide for more details. tf.compat.v1.keras.applications.mobilenet_v2.preprocess_input tf.keras.applications.mobilenet_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.float32) x = tf....
doc_7636
The regex matching flags. This is a combination of the flags given to compile(), any (?...) inline flags in the pattern, and implicit flags such as UNICODE if the pattern is a Unicode string.
doc_7637
Token value used to indicate a non-terminating newline. The NEWLINE token indicates the end of a logical line of Python code; NL tokens are generated when a logical line of code is continued over multiple physical lines.
doc_7638
A wrapper around C++ torch::jit::Module. ScriptModules contain methods, attributes, parameters, and constants. These can be accessed the same as on a normal nn.Module. add_module(name, module) Adds a child module to the current module. The module can be accessed as an attribute using the given name. Parameters ...
doc_7639
Specify the compression type. If not specified, the audio data will not be compressed. In AIFF files, compression is not possible. The name parameter should be a human-readable description of the compression type as a bytes array, the type parameter should be a bytes array of length 4. Currently the following compressi...
doc_7640
An iterator of the response content, bytestring encoded according to HttpResponse.charset.
doc_7641
Retrieve attributes without triggering dynamic lookup via the descriptor protocol, __getattr__() or __getattribute__(). Note: this function may not be able to retrieve all attributes that getattr can fetch (like dynamically created attributes) and may find attributes that getattr can’t (like descriptors that raise Attr...
doc_7642
True if this transform has a corresponding inverse transform.
doc_7643
Returns a set of permission strings that the user has, both through group and user permissions. If obj is passed in, only returns the permissions for this specific object.
doc_7644
The save_model method is given the HttpRequest, a model instance, a ModelForm instance, and a boolean value based on whether it is adding or changing the object. Overriding this method allows doing pre- or post-save operations. Call super().save_model() to save the object using Model.save(). For example to attach reque...
doc_7645
Return True if the legend is draggable, False otherwise.
doc_7646
Compute the 2-dimensional inverse discrete Fourier Transform. This function computes the inverse of the 2-dimensional discrete Fourier Transform over any number of axes in an M-dimensional array by means of the Fast Fourier Transform (FFT). In other words, ifft2(fft2(a)) == a to within numerical accuracy. By default,...
doc_7647
Return a dictionary of all the properties of the artist.
doc_7648
The month’s head CSS class (used by formatmonthname()). The default value is "month". New in version 3.7.
doc_7649
Returns the number of extra inline forms to use. By default, returns the InlineModelAdmin.extra attribute. Override this method to programmatically determine the number of extra inline forms. For example, this may be based on the model instance (passed as the keyword argument obj): class BinaryTreeAdmin(admin.TabularIn...
doc_7650
tf.compat.v1.nn.rnn_cell.BasicRNNCell( num_units, activation=None, reuse=None, name=None, dtype=None, **kwargs ) Note that this cell is not optimized for performance. Please use tf.contrib.cudnn_rnn.CudnnRNNTanh for better performance on GPU. Args num_units int, The number of units in the RNN cell. ac...
doc_7651
Return a postscript header string for the given bbox lbrt=(l, b, r, t). Optionally, return rotate command.
doc_7652
tf.compat.v1.nn.ctc_beam_search_decoder( inputs, sequence_length, beam_width=100, top_paths=1, merge_repeated=True ) Note: The ctc_greedy_decoder is a special case of the ctc_beam_search_decoder with top_paths=1 and beam_width=1 (but that decoder is faster for this special case). If merge_repeated is True, merge...
doc_7653
See Migration guide for more details. tf.compat.v1.raw_ops.SoftsignGrad tf.raw_ops.SoftsignGrad( gradients, features, name=None ) Args gradients A Tensor. Must be one of the following types: half, bfloat16, float32, float64. The backpropagated gradients to the corresponding softsign operation. featu...
doc_7654
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 bbox_to_anchor unknown child unknown clip_box Bbox clip_on bool clip_pa...
doc_7655
Given the proposed upper and lower extent, adjust the range if it is too close to being singular (i.e. a range of ~0).
doc_7656
Cookie name (a string).
doc_7657
A decorator for running tests that require a functional bind() for Unix sockets.
doc_7658
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_7659
test if the mixer is initialized get_init() -> (frequency, format, channels) If the mixer is initialized, this returns the playback arguments it is using. If the mixer has not been initialized this returns None.
doc_7660
Get the transformation used for drawing y-axis labels, ticks and gridlines. The x-direction is in axis coordinates and the y-direction is in data coordinates. Note This transformation is primarily used by the Axis class, and is meant to be overridden by new kinds of projections that may need to place axis elements i...
doc_7661
Return True if all characters in the string are alphabetic and there is at least one character, False otherwise. Alphabetic characters are those characters defined in the Unicode character database as “Letter”, i.e., those with general category property being one of “Lm”, “Lt”, “Lu”, “Ll”, or “Lo”. Note that this is di...
doc_7662
Bases: matplotlib.scale.ScaleBase The symmetrical logarithmic scale is logarithmic in both the positive and negative directions from the origin. Since the values close to zero tend toward infinity, there is a need to have a range around zero that is linear. The parameter linthresh allows the user to specify the size ...
doc_7663
Sets the underlying storage, size, and strides. If source is a tensor, self tensor will share the same storage and have the same size and strides as source. Changes to elements in one tensor will be reflected in the other. If source is a Storage, the method sets the underlying storage, offset, size, and stride. Parame...
doc_7664
Checks if the application is running from within the Werkzeug reloader subprocess. Changelog New in version 0.10. Return type bool
doc_7665
A raw binary stream representing an OS-level file containing bytes data. It inherits RawIOBase. The name can be one of two things: a character string or bytes object representing the path to the file which will be opened. In this case closefd must be True (the default) otherwise an error will be raised. an integer rep...
doc_7666
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi...
doc_7667
Applies the element-wise function: ReLU6(x)=min⁡(max⁡(0,x),6)\text{ReLU6}(x) = \min(\max(0,x), 6) Parameters inplace – can optionally do the operation in-place. Default: False Shape: Input: (N,∗)(N, *) where * means, any number of additional dimensions Output: (N,∗)(N, *) , same shape as the input Exam...
doc_7668
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_7669
A subclass of ImproperConnectionState.
doc_7670
Applies a 2D adaptive average pooling over a quantized input signal composed of several quantized input planes. Note The input quantization parameters propagate to the output. See AdaptiveAvgPool2d for details and output shape. Parameters output_size – the target output size (single integer or double-integer tupl...
doc_7671
Prune entire (currently unpruned) channels in a tensor based on their Ln-norm. Parameters amount (int or float) – quantity of channels to prune. If float, should be between 0.0 and 1.0 and represent the fraction of parameters to prune. If int, it represents the absolute number of parameters to prune. n (int, flo...
doc_7672
Returns the volume of a given mixer control. The returned volume is a 2-tuple (left_volume,right_volume). Volumes are specified as numbers from 0 (silent) to 100 (full volume). If the control is monophonic, a 2-tuple is still returned, but both volumes are the same. Raises OSSAudioError if an invalid control is specifi...
doc_7673
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedMatMulWithBias tf.raw_ops.QuantizedMatMulWithBias( a, b, bias, min_a, max_a, min_b, max_b, Toutput=tf.dtypes.qint32, transpose_a=False, transpose_b=False, input_quant_mode='MIN_FIRST', name=None ) add. The inputs must be two-dimensional ...
doc_7674
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesSparseCalculateBestFeatureSplit tf.raw_ops.BoostedTreesSparseCalculateBestFeatureSplit( node_id_range, stats_summary_indices, stats_summary_values, stats_summary_shape, l1, l2, tree_complexity, min_node_weight, logits_dimension, split_...
doc_7675
Sets the value of the combobox to value.
doc_7676
Return True if the stream is closed or in the process of being closed. New in version 3.7.
doc_7677
Sets the base to be used for resolving relative URIs in system identifiers in declarations. Resolving relative identifiers is left to the application: this value will be passed through as the base argument to the ExternalEntityRefHandler(), NotationDeclHandler(), and UnparsedEntityDeclHandler() functions.
doc_7678
tf.sparse.map_values( op, *args, **kwargs ) Replaces any SparseTensor in args or kwargs with its values tensor (which contains the non-default values for the SparseTensor), and then calls op. Returns a SparseTensor that is constructed from the input SparseTensors' indices, dense_shape, and the value returned by th...
doc_7679
Deprecated since version 1.21: This decorator is retained for compatibility with the nose testing framework, which is being phased out. Please use the nose2 or pytest frameworks instead. Signals to nose that this function is or is not a test. Parameters tfbool If True, specifies that the decorated callable is...
doc_7680
The URL for the “View site” link at the top of each admin page. By default, site_url is /. Set it to None to remove the link. For sites running on a subpath, the each_context() method checks if the current request has request.META['SCRIPT_NAME'] set and uses that value if site_url isn’t set to something other than /.
doc_7681
Error raised when attempting to get a slice of a MultiIndex, and the index has not been lexsorted. Subclass of KeyError.
doc_7682
tf.compat.v1.train.cosine_decay_restarts( learning_rate, global_step, first_decay_steps, t_mul=2.0, m_mul=1.0, alpha=0.0, name=None ) When training a model, it is often recommended to lower the learning rate as the training progresses. This function applies a cosine decay function with restarts to a provided i...
doc_7683
tf.summary.trace_export( name, step=None, profiler_outdir=None ) Stops the trace and exports all metadata collected during the trace to the default SummaryWriter, if one has been set. Args name A name for the summary to be written. step Explicit int64-castable monotonic step value for this summary. ...
doc_7684
Change if autograd should record operations on parameters in this module. This method sets the parameters’ requires_grad attributes in-place. This method is helpful for freezing part of the module for finetuning or training parts of a model individually (e.g., GAN training). Parameters requires_grad (bool) – whether ...
doc_7685
The requested operation was made on a suspended parser, but isn’t allowed. This includes attempts to provide additional input or to stop the parser.
doc_7686
Context-manager that enable anomaly detection for the autograd engine. This does two things: Running the forward pass with detection enabled will allow the backward pass to print the traceback of the forward operation that created the failing backward function. Any backward computation that generate “nan” value will...
doc_7687
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesBucketize tf.raw_ops.BoostedTreesBucketize( float_values, bucket_boundaries, name=None ) An op that returns a list of float tensors, where each tensor represents the bucketized values for a single feature. Args float_values A list of...
doc_7688
Calls score on the base_estimator. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Array representing the data. yarray-like of shape (n_samples,) Array representing the labels. Returns scorefloat Result of calling score on the base_estimator.
doc_7689
Creates the environment directory and all necessary directories, and returns a context object. This is just a holder for attributes (such as paths), for use by the other methods. The directories are allowed to exist already, as long as either clear or upgrade were specified to allow operating on an existing environment...
doc_7690
Set the pick radius used for containment tests. Parameters prfloat Pick radius, in points.
doc_7691
See Migration guide for more details. tf.compat.v1.raw_ops.BesselI1 tf.raw_ops.BesselI1( 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_7692
query the tree for the k nearest neighbors Parameters Xarray-like of shape (n_samples, n_features) An array of points to query kint, default=1 The number of nearest neighbors to return return_distancebool, default=True if True, return a tuple (d, i) of distances and indices if False, return array i dual...
doc_7693
The string representation of the response body. Whenever you call this property the response iterable is encoded and flattened. This can lead to unwanted behavior if you stream big data. This behavior can be disabled by setting implicit_sequence_conversion to False. If as_text is set to True the return value will be a ...
doc_7694
Return the clip path.
doc_7695
Use this check to guard CPython’s implementation-specific tests or to run them only on the implementations guarded by the arguments: check_impl_detail() # Only on CPython (default). check_impl_detail(jython=True) # Only on Jython. check_impl_detail(cpython=False) # Everywhere except CPython.
doc_7696
aifc.open(file, mode=None) Open an AIFF or AIFF-C file and return an object instance with methods that are described below. The argument file is either a string naming a file or a file object. mode must be 'r' or 'rb' when the file must be opened for reading, or 'w' or 'wb' when the file must be opened for writing. I...
doc_7697
Return whether face is colored.
doc_7698
The total number of pages.
doc_7699
Register a new set of projections.