_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_18500
See Migration guide for more details. tf.compat.v1.keras.regularizers.l1_l2 tf.keras.regularizers.l1_l2( l1=0.01, l2=0.01 ) The L1 regularization penalty is computed as: loss = l1 * reduce_sum(abs(x)) The L2 regularization penalty is computed as: loss = l2 * reduce_sum(square(x)) Arguments l1 Float; L1 ...
doc_18501
A buffered binary stream providing higher-level access to a readable, non seekable RawIOBase raw binary stream. It inherits BufferedIOBase. When reading data from this object, a larger amount of data may be requested from the underlying raw stream, and kept in an internal buffer. The buffered data can then be returned ...
doc_18502
Send NOOP to server.
doc_18503
Return index for last non-NA value or None, if no NA value is found. Returns scalar:type of index Notes If all elements are non-NA/null, returns None. Also returns None for empty Series/DataFrame.
doc_18504
Close a grouping element with label s. Only used by the SVG renderer.
doc_18505
See torch.swapdims()
doc_18506
Exit code that means something like “an entry was not found”. Availability: Unix.
doc_18507
The ButtonBox widget creates a box of buttons, such as is commonly used for Ok Cancel.
doc_18508
Bases: object __call__(direction, factor, values)[source] Call self as a function.
doc_18509
Alias for get_edgecolor.
doc_18510
The following methods are overridden from the base class implementation: gettext(message) Look up the message id in the catalog and return the corresponding message string, as a Unicode string. If there is no entry in the catalog for the message id, and a fallback has been set, the look up is forwarded to the fallb...
doc_18511
Set to the data directory within the test package.
doc_18512
Return a sample (or samples) from the “standard normal” distribution. Note This is a convenience function for users porting code from Matlab, and wraps standard_normal. That function takes a tuple to specify the size of the output, which is consistent with other NumPy functions like numpy.zeros and numpy.ones. Not...
doc_18513
Returns cublasHandle_t pointer to current cuBLAS handle
doc_18514
Set this to configure the value returned by calling the mock: >>> mock = Mock() >>> mock.return_value = 'fish' >>> mock() 'fish' The default return value is a mock object and you can configure it in the normal way: >>> mock = Mock() >>> mock.return_value.attribute = sentinel.Attribute >>> mock.return_value() <Mock nam...
doc_18515
Unpivot a DataFrame from wide to long format, optionally leaving identifiers set. This function is useful to massage a DataFrame into a format where one or more columns are identifier variables (id_vars), while all other columns, considered measured variables (value_vars), are “unpivoted” to the row axis, leaving jus...
doc_18516
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters valuesarray The input v...
doc_18517
Create a dialog prompting the user to select a directory.
doc_18518
Generate Kernel Density Estimate plot using Gaussian kernels. In statistics, kernel density estimation (KDE) is a non-parametric way to estimate the probability density function (PDF) of a random variable. This function uses Gaussian kernels and includes automatic bandwidth determination. Parameters bw_method:str...
doc_18519
See Migration guide for more details. tf.compat.v1.sparse.maximum, tf.compat.v1.sparse_maximum tf.sparse.maximum( 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_18520
The exception message generated by the example, if the example is expected to generate an exception; or None if it is not expected to generate an exception. This exception message is compared against the return value of traceback.format_exception_only(). exc_msg ends with a newline unless it’s None. The constructor add...
doc_18521
See Migration guide for more details. tf.compat.v1.raw_ops.PaddingFIFOQueueV2 tf.raw_ops.PaddingFIFOQueueV2( component_types, shapes=[], capacity=-1, container='', shared_name='', name=None ) Variable-size shapes are allowed by setting the corresponding shape dimensions to 0 in the shape attr. In this case D...
doc_18522
This is an object that has the same methods as the entire module, but uses the Unicode database version 3.2 instead, for applications that require this specific version of the Unicode database (such as IDNA).
doc_18523
Computes sums or means of ‘bags’ of embeddings, without instantiating the intermediate embeddings. For bags of constant length and no per_sample_weights and 2D inputs, this class with mode="sum" is equivalent to Embedding followed by torch.sum(dim=1), with mode="mean" is equivalent to Embedding followed by torch.mea...
doc_18524
The CSS class for the whole year’s table of tables (used by formatyear()). The default value is "year". New in version 3.7.
doc_18525
tf.config.experimental.get_virtual_device_configuration Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.get_virtual_device_configuration, tf.compat.v1.config.get_logical_device_configuration tf.config.get_logical_device_configuration( device ) Returns the list ...
doc_18526
Process HTTP error responses.
doc_18527
in the modified environment. find_executable — locate a command using info from environment variable PATH. Equivalent to posix which command. Author: Pearu Peterson <pearu@cens.ioc.ee> Created: 11 January 2003 Requires: Python 2.x Successfully tested on: os.name sys.platform comments posix linux2 Debian (sid...
doc_18528
Returns the element at position x, y. Availability: Tk 8.6.
doc_18529
Bases: object set_params(nbins=None)[source] Examples using mpl_toolkits.axisartist.angle_helper.LocatorBase axis_direction demo Curvilinear grid demo mpl_toolkits.axisartist.floating_axes features floating_axis demo Simple Axis Pad
doc_18530
Set the event loop for the current context to loop.
doc_18531
Return whether the artist is to be rasterized.
doc_18532
Short name for the application, e.g. 'admin' This attribute allows relabeling an application when two applications have conflicting labels. It defaults to the last component of name. It should be a valid Python identifier. It must be unique across a Django project.
doc_18533
Convert series to a different kind and/or domain and/or window. Parameters domainarray_like, optional The domain of the converted series. If the value is None, the default domain of kind is used. kindclass, optional The polynomial series type class to which the current instance should be converted. If kind ...
doc_18534
Alias for set_antialiased.
doc_18535
Applies a 2D convolution over an input image composed of several input planes. This operator supports TensorFloat32. See Conv2d for details and output shape. Note In some circumstances when given tensors on a CUDA device and using CuDNN, this operator may select a nondeterministic algorithm to increase performance. If...
doc_18536
Makes this object orderable with respect to the given field, usually a ForeignKey. This can be used to make related objects orderable with respect to a parent object. For example, if an Answer relates to a Question object, and a question has more than one answer, and the order of answers matters, you’d do this: from dj...
doc_18537
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with a head at its end point. Parameters head_lengthfloat, default: 0.4 Length of the arrow head, relative to mutation_scale. head_widthfloat, default: 0.2 Width of the arrow head, relative to mutation_scale. widthAfloat, default: 1.0 Width of the bra...
doc_18538
tf.compat.v1.model_variables( scope=None ) Args scope (Optional.) A string. If supplied, the resulting list is filtered to include only items whose name attribute matches scope using re.match. Items without a name attribute are never returned if a scope is supplied. The choice of re.match means that a sco...
doc_18539
Compute a spectrogram. Compute and plot a spectrogram of data in x. Data are split into NFFT length segments and the spectrum of each section is computed. The windowing function window is applied to each segment, and the amount of overlap of each segment is specified with noverlap. Parameters xarray-like 1-D ar...
doc_18540
Accumulate the elements of tensor into the self tensor by adding to the indices in the order given in index. For example, if dim == 0 and index[i] == j, then the ith row of tensor is added to the jth row of self. The dimth dimension of tensor must have the same size as the length of index (which must be a vector), and ...
doc_18541
Update the image displayed by an image plot. This sets the image plot’s array and updates its shape appropriately Parameters image_axesmatplotlib.image.AxesImage Image axes to update. imagearray Image array.
doc_18542
Either None or a readonly dictionary of metadata (mappingproxy). The metadata field can be set using any dictionary at data-type creation. NumPy currently has no uniform approach to propagating metadata; although some array operations preserve it, there is no guarantee that others will. Warning Although used in cert...
doc_18543
Return the sampling rate (number of audio frames per second).
doc_18544
Kill the subprocess by calling the kill() method. If the subprocess hasn’t returned yet, and close transports of stdin, stdout, and stderr pipes.
doc_18545
The subnets that join to make the current network definition, depending on the argument values. prefixlen_diff is the amount our prefix length should be increased by. new_prefix is the desired new prefix of the subnets; it must be larger than our prefix. One and only one of prefixlen_diff and new_prefix must be set. Re...
doc_18546
tf.compat.v1.distribute.MirroredStrategy( devices=None, cross_device_ops=None ) This strategy is typically used for training on one machine with multiple GPUs. For TPUs, use tf.distribute.TPUStrategy. To use MirroredStrategy with multiple workers, please refer to tf.distribute.experimental.MultiWorkerMirroredStrat...
doc_18547
A Python SimpleCookie object, containing the current values of all the client cookies. See the documentation of the http.cookies module for more.
doc_18548
Get or set the current default isolation level. None for autocommit mode or one of “DEFERRED”, “IMMEDIATE” or “EXCLUSIVE”. See section Controlling Transactions for a more detailed explanation.
doc_18549
tf.losses.CategoricalCrossentropy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.CategoricalCrossentropy tf.keras.losses.CategoricalCrossentropy( from_logits=False, label_smoothing=0, reduction=losses_utils.ReductionV2.AUTO, name='categorical_crossentropy' ) Use ...
doc_18550
tf.experimental.numpy.absolute( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.absolute.
doc_18551
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_18552
tf.experimental.numpy.not_equal( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.not_equal.
doc_18553
The Content-MD5 entity-header field, as defined in RFC 1864, is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body. (Note: a MIC is good for detecting accidental modification of the entity-body in transit, but is not proof against malicious attac...
doc_18554
Set the location of tick in data coords with scalar loc.
doc_18555
'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_18556
Create a Channel object for controlling playback Channel(id) -> Channel Return a Channel object for one of the current channels. The id must be a value from 0 to the value of pygame.mixer.get_num_channels(). The Channel object can be used to get fine control over the playback of Sounds. A channel can only playback a ...
doc_18557
tf.experimental.numpy.tri( N, M=None, k=0, dtype=None ) See the NumPy documentation for numpy.tri.
doc_18558
A character code (one of ‘biufcmMOSUV’), default ‘O’ This should match the NumPy dtype used when the array is converted to an ndarray, which is probably ‘O’ for object if the extension type cannot be represented as a built-in NumPy type. See also numpy.dtype.kind
doc_18559
Get the hatch color.
doc_18560
Explicitly close the audio device. When you are done writing to or reading from an audio device, you should explicitly close it. A closed device cannot be used again.
doc_18561
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_18562
Convert the array to a unicode string. The array must be a type 'u' array; otherwise a ValueError is raised. Use array.tobytes().decode(enc) to obtain a unicode string from an array of some other type.
doc_18563
find the position of a child subsurface inside a parent get_offset() -> (x, y) Get the offset position of a child subsurface inside of a parent. If the Surface is not a subsurface this will return (0, 0).
doc_18564
Converts an aware datetime to a different time zone, by default the current time zone. When value is omitted, it defaults to now(). This function doesn’t work on naive datetimes; use make_aware() instead.
doc_18565
See Migration guide for more details. tf.compat.v1.estimator.NanLossDuringTrainingError, tf.compat.v1.train.NanLossDuringTrainingError tf.estimator.NanLossDuringTrainingError( *args, **kwargs )
doc_18566
Parse the given math expression s at the given dpi. If prop is provided, it is a FontProperties object specifying the "default" font to use in the math expression, used for all non-math text. The results are cached, so multiple calls to parse with the same expression should be fast.
doc_18567
tf.compat.v1.resource_loader.get_data_files_path() Returns The directory where files specified in data attribute of py_test and py_binary are stored.
doc_18568
Renders the formset with the template_name_ul template.
doc_18569
Logs a message with level DEBUG on this logger. The msg is the message format string, and the args are the arguments which are merged into msg using the string formatting operator. (Note that this means that you can use keywords in the format string, together with a single dictionary argument.) No % formatting operatio...
doc_18570
Bases: matplotlib.colors.Normalize Generate a colormap index based on discrete intervals. Unlike Normalize or LogNorm, BoundaryNorm maps values to integers instead of to the interval 0-1. Mapping to the 0-1 interval could have been done via piece-wise linear interpolation, but using integers seems simpler, and reduce...
doc_18571
Fit Gaussian process classification model Parameters Xarray-like of shape (n_samples, n_features) or list of object Feature vectors or other representations of training data. yarray-like of shape (n_samples,) Target values, must be binary Returns selfreturns an instance of self.
doc_18572
Bases: matplotlib.artist.Artist Labelled arrow for use as a quiver plot scale key. Add a key to a quiver plot. The positioning of the key depends on X, Y, coordinates, and labelpos. If labelpos is 'N' or 'S', X, Y give the position of the middle of the key arrow. If labelpos is 'E', X, Y positions the head, and if la...
doc_18573
Return the length of the Interval.
doc_18574
Set the colormap to 'gray'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
doc_18575
The name of the package or module that this object belongs to. Do not change this once it is set by the constructor.
doc_18576
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_18577
Check if two lines are parallel. Parameters dx1, dy1, dx2, dy2float The gradients dy/dx of the two lines. tolerancefloat The angular tolerance in radians up to which the lines are considered parallel. Returns is_parallel 1 if two lines are parallel in same direction. -1 if two lines are parallel in o...
doc_18578
A field validator allowing only ASCII letters and numbers, in addition to @, ., +, -, and _.
doc_18579
class sklearn.decomposition.DictionaryLearning(n_components=None, *, alpha=1, max_iter=1000, tol=1e-08, fit_algorithm='lars', transform_algorithm='omp', transform_n_nonzero_coefs=None, transform_alpha=None, n_jobs=None, code_init=None, dict_init=None, verbose=False, split_sign=False, random_state=None, positive_code=Fa...
doc_18580
Iterate over all curve segments in the path. Each iteration returns a pair (vertices, code), where vertices is a sequence of 1-3 coordinate pairs, and code is a Path code. Additionally, this method can provide a number of standard cleanups and conversions to the path. Parameters transformNone or Transform If no...
doc_18581
tf.compat.v1.distributions.Gamma( concentration, rate, validate_args=False, allow_nan_stats=True, name='Gamma' ) The Gamma distribution is defined over positive real numbers using parameters concentration (aka "alpha") and rate (aka "beta"). Mathematical Details The probability density function (pdf) is, pdf(x...
doc_18582
Return a new MapAdapter with the details specified to the call. Note that script_name will default to '/' if not further specified or None. The server_name at least is a requirement because the HTTP RFC requires absolute URLs for redirects and so all redirect exceptions raised by Werkzeug will contain the full canonica...
doc_18583
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
doc_18584
Return boolean value indicating whether cookie should be accepted from server. cookie is a Cookie instance. request is an object implementing the interface defined by the documentation for CookieJar.extract_cookies().
doc_18585
Returns whether or not the current node is the owner of this RRef.
doc_18586
The Referer[sic] request-header field allows the client to specify, for the server’s benefit, the address (URI) of the resource from which the Request-URI was obtained (the “referrer”, although the header field is misspelled).
doc_18587
Oracle Approximating Shrinkage Estimator Read more in the User Guide. OAS is a particular form of shrinkage described in “Shrinkage Algorithms for MMSE Covariance Estimation” Chen et al., IEEE Trans. on Sign. Proc., Volume 58, Issue 10, October 2010. The formula used here does not correspond to the one given in the a...
doc_18588
Just returns 10, as this is Decimal, :)
doc_18589
Subclass of SAXException raised when a SAX XMLReader is asked to enable a feature that is not supported, or to set a property to a value that the implementation does not support. SAX applications and extensions may use this class for similar purposes.
doc_18590
Fit Gaussian process regression model. Parameters Xarray-like of shape (n_samples, n_features) or list of object Feature vectors or other representations of training data. yarray-like of shape (n_samples,) or (n_samples, n_targets) Target values Returns selfreturns an instance of self.
doc_18591
Set the edge color of the Figure rectangle. Parameters colorcolor
doc_18592
Encode the object as an enumerated type or categorical variable. This method is useful for obtaining a numeric representation of an array when all that matters is identifying distinct values. factorize is available as both a top-level function pandas.factorize(), and as a method Series.factorize() and Index.factorize...
doc_18593
Update the ParameterDict with the key-value pairs from a mapping or an iterable, overwriting existing keys. Note If parameters is an OrderedDict, a ParameterDict, or an iterable of key-value pairs, the order of new elements in it is preserved. Parameters parameters (iterable) – a mapping (dictionary) from string ...
doc_18594
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_18595
Numerical overflow. Indicates the exponent is larger than Emax after rounding has occurred. If not trapped, the result depends on the rounding mode, either pulling inward to the largest representable finite number or rounding outward to Infinity. In either case, Inexact and Rounded are also signaled.
doc_18596
Fit the estimators. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training vectors, where n_samples is the number of samples and n_features is the number of features. yarray-like of shape (n_samples,) Target values. sample_weightarray-like of shape (n_samples,), default=None S...
doc_18597
Make an iterator that returns elements from the first iterable until it is exhausted, then proceeds to the next iterable, until all of the iterables are exhausted. Used for treating consecutive sequences as a single sequence. Roughly equivalent to: def chain(*iterables): # chain('ABC', 'DEF') --> A B C D E F fo...
doc_18598
See Migration guide for more details. tf.compat.v1.signal.rfft3d, tf.compat.v1.spectral.rfft3d tf.signal.rfft3d( input_tensor, fft_length=None, name=None ) Computes the 3-dimensional discrete Fourier transform of a real-valued signal over the inner-most 3 dimensions of input. Since the DFT of a real signal is He...
doc_18599
Generate an environ dict from the given arguments, make a request to the application using it, and return the response. Parameters args (Any) – Passed to EnvironBuilder to create the environ for the request. If a single arg is passed, it can be an existing EnvironBuilder or an environ dict. buffered (bool) – Conve...