_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_19500
Return the month this Period falls on.
doc_19501
tf.estimator.BaselineEstimator( head, model_dir=None, optimizer='Ftrl', config=None ) The estimator uses a user-specified head. This estimator ignores feature values and will learn to predict the average value of each label. E.g. for single-label classification problems, this will predict the probability distribut...
doc_19502
A pandas ExtensionArray for NumPy data. This is mostly for internal compatibility, and is not especially useful on its own. Parameters values:ndarray The NumPy ndarray to wrap. Must be 1-dimensional. copy:bool, default False Whether to copy values. Attributes None Methods None
doc_19503
Return the image extent as tuple (left, right, bottom, top).
doc_19504
Unregisters the given model class (or iterable of classes). Raises django.contrib.admin.sites.NotRegistered if a model isn’t already registered.
doc_19505
See Migration guide for more details. tf.compat.v1.raw_ops.SparseBincount tf.raw_ops.SparseBincount( indices, values, dense_shape, size, weights, binary_output=False, name=None ) Outputs a vector with length size and the same dtype as weights. If weights are empty, then index i stores the number of times the val...
doc_19506
See Migration guide for more details. tf.compat.v1.raw_ops.WriteSummary tf.raw_ops.WriteSummary( writer, step, tensor, tag, summary_metadata, name=None ) Writes tensor at step with tag using summary writer. Args writer A Tensor of type resource. step A Tensor of type int64. tensor A Tensor. ...
doc_19507
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_19508
Return a new dict which maps field names to their corresponding values: >>> p = Point(x=11, y=22) >>> p._asdict() {'x': 11, 'y': 22} Changed in version 3.1: Returns an OrderedDict instead of a regular dict. Changed in version 3.8: Returns a regular dict instead of an OrderedDict. As of Python 3.7, regular dicts are...
doc_19509
Renders a response, providing the invalid form as context.
doc_19510
Return the image extent as tuple (left, right, bottom, top).
doc_19511
Return argument as a list of 1-d arrays. The returned list contains array(s) of dtype double, complex double, or object. A 1-d argument of shape (N,) is parsed into N arrays of size one; a 2-d argument of shape (M,N) is parsed into M arrays of size N (i.e., is “parsed by row”); and a higher dimensional array raises a...
doc_19512
Test that first and second are not equal. If the values do compare equal, the test will fail.
doc_19513
The class implementing primitive lock objects. Once a thread has acquired a lock, subsequent attempts to acquire it block, until it is released; any thread may release it. Note that Lock is actually a factory function which returns an instance of the most efficient version of the concrete Lock class that is supported b...
doc_19514
Returns a new tensor with the square-root of the elements of input. outi=inputi\text{out}_{i} = \sqrt{\text{input}_{i}} Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4) >>> a tensor([-2.0755, 1.0226, 0.0831, 0.4806]) ...
doc_19515
crops a rectangle inside another clip(Rect) -> Rect Returns a new rectangle that is cropped to be completely inside the argument Rect. If the two rectangles do not overlap to begin with, a Rect with 0 size is returned.
doc_19516
See Migration guide for more details. tf.compat.v1.raw_ops.DecodePng tf.raw_ops.DecodePng( contents, channels=0, dtype=tf.dtypes.uint8, name=None ) The attr channels indicates the desired number of color channels for the decoded image. Accepted values are: 0: Use the number of channels in the PNG-encoded image....
doc_19517
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_19518
Return time object with same time but with tzinfo=None.
doc_19519
Fit model on training data X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training data. yIgnored Returns selfobject Returns the transformer object.
doc_19520
tf.debugging.assert_greater_equal( x, y, message=None, summarize=None, name=None ) This Op checks that x[i] >= y[i] holds for every pair of (possibly broadcast) elements of x and y. If both x and y are empty, this is trivially satisfied. If x is not greater or equal to y element-wise, message, as well as the first...
doc_19521
Compile one or more dispatch-able sources and generates object files, also generates abstract C config headers and macros that used later for the final runtime dispatching process. The mechanism behind it is to takes each source file that specified in ‘sources’ and branching it into several files depend on special co...
doc_19522
The binary format for plist files New in version 3.4.
doc_19523
Parses an XML section into an element tree incrementally, and reports what’s going on to the user. source is a filename or file object containing XML data. events is a sequence of events to report back. The supported events are the strings "start", "end", "comment", "pi", "start-ns" and "end-ns" (the “ns” events are us...
doc_19524
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_19525
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_19526
>>> objects = ['john', 'paul', 'george', 'ringo'] >>> p = Paginator(objects, 2) >>> p.count 4 >>> p.num_pages 2 >>> type(p.page_range) <class 'range_iterator'> >>> p.page_range range(1, 3) >>> page1 = p.page(1) >>> page1 <Page 1 of 2> >>> page1.object_list ['john', 'paul'] >>> page2 = p.page(2) >>> page2.object_list...
doc_19527
Get Subtraction of dataframe and other, element-wise (binary operator rsub). Equivalent to other - dataframe, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, sub. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //, %,...
doc_19528
An AdaBoost regressor. An AdaBoost [1] regressor is a meta-estimator that begins by fitting a regressor on the original dataset and then fits additional copies of the regressor on the same dataset but where the weights of instances are adjusted according to the error of the current prediction. As such, subsequent reg...
doc_19529
The value of the stop parameter.
doc_19530
Draw samples from a von Mises distribution. Samples are drawn from a von Mises distribution with specified mode (mu) and dispersion (kappa), on the interval [-pi, pi]. The von Mises distribution (also known as the circular normal distribution) is a continuous probability distribution on the unit circle. It may be tho...
doc_19531
Change the base for labeling. Warning Should always match the base used for LogLocator
doc_19532
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorIdentity tf.linalg.LinearOperatorIdentity( num_rows, batch_shape=None, dtype=None, is_non_singular=True, is_self_adjoint=True, is_positive_definite=True, is_square=True, assert_proper_shapes=False, name='LinearOperatorIdentity' ) Thi...
doc_19533
Deletes the cookie with the given key. Fails silently if the key doesn’t exist. Due to the way cookies work, path and domain should be the same values you used in set_cookie() – otherwise the cookie may not be deleted.
doc_19534
Scalar method identical to the corresponding array attribute. Please see ndarray.compress.
doc_19535
class ast.YieldFrom(value) A yield or yield from expression. Because these are expressions, they must be wrapped in a Expr node if the value sent back is not used. >>> print(ast.dump(ast.parse('yield x'), indent=4)) Module( body=[ Expr( value=Yield( value=Name(id='x', ctx=Load(...
doc_19536
tf.experimental.numpy.isreal( x ) See the NumPy documentation for numpy.isreal.
doc_19537
Bases: matplotlib.backend_bases.RendererBase draw_image(gc, x, y, im)[source] Draw an RGBA image. Parameters gcGraphicsContextBase A graphics context with clipping information. xscalar The distance in physical units (i.e., dots or pixels) from the left hand side of the canvas. yscalar The distance i...
doc_19538
An integer telling you how many times the mock object has been called: >>> mock = Mock(return_value=None) >>> mock.call_count 0 >>> mock() >>> mock() >>> mock.call_count 2
doc_19539
See Migration guide for more details. tf.compat.v1.raw_ops.PrivateThreadPoolDataset tf.raw_ops.PrivateThreadPoolDataset( input_dataset, num_threads, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. num_threads A Tensor of type int64. Identifies the number of th...
doc_19540
It is possible to load a library using >>> lib = ctypes.cdll[<full_path_name>] But there are cross-platform considerations, such as library file extensions, plus the fact Windows will just load the first library it finds with that name. NumPy supplies the load_library function as a convenience. Changed in version ...
doc_19541
Call self as a function.
doc_19542
Turns a Django template into something that is understood by xgettext. It does so by translating the Django translation tags into standard gettext function invocations.
doc_19543
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_19544
See Migration guide for more details. tf.compat.v1.estimator.FeedFnHook, tf.compat.v1.train.FeedFnHook tf.estimator.FeedFnHook( feed_fn ) Args feed_fn function that takes no arguments and returns dict of Tensor to feed. Methods after_create_session View source after_create_session( session, coor...
doc_19545
Get the “inheritable” flag of the specified handle (a boolean). Availability: Windows.
doc_19546
Return the Figure instance the artist belongs to.
doc_19547
Set the locations of the ticks. This method is called before computing the tick labels because some formatters need to know all tick locations to do so.
doc_19548
A processing class used to extract interactive examples from a string, and use them to create a DocTest object. DocTestParser defines the following methods: get_doctest(string, globs, name, filename, lineno) Extract all doctest examples from the given string, and collect them into a DocTest object. globs, name, fil...
doc_19549
class torch.FloatStorage(*args, **kwargs) [source] bfloat16() Casts this storage to bfloat16 type bool() Casts this storage to bool type byte() Casts this storage to byte type char() Casts this storage to char type clone() Returns a copy of this storage complex_double() Casts this st...
doc_19550
Prefix labels with string prefix. For Series, the row labels are prefixed. For DataFrame, the column labels are prefixed. Parameters prefix:str The string to add before each label. Returns Series or DataFrame New Series or DataFrame with updated labels. See also Series.add_suffix Suffix row labels ...
doc_19551
Renders a given template, with the context containing parameters captured in the URL. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.base.TemplateResponseMixin django.views.generic.base.ContextMixin django.views.generic.base.View Method Flowchart setup() disp...
doc_19552
True if this transform is separable in the x- and y- dimensions.
doc_19553
Same as Element.findall(), starting at the root of the tree.
doc_19554
Bases: matplotlib.transforms.Affine2DBase A transform wrapper for transforming displacements between pairs of points. This class is intended to be used to transform displacements ("position deltas") between pairs of points (e.g., as the offset_transform of Collections): given a transform t such that t = AffineDeltaTr...
doc_19555
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters bbool
doc_19556
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_19557
Returns an array with the number of non-overlapping occurrences of substring sub in the range [start, end]. See also char.count
doc_19558
tf.Variable( initial_value=None, trainable=None, validate_shape=True, caching_device=None, name=None, variable_def=None, dtype=None, import_scope=None, constraint=None, synchronization=tf.VariableSynchronization.AUTO, aggregation=tf.compat.v1.VariableAggregation.NONE, shape=None ) A variable maintains ...
doc_19559
Print the textual representation of the message object structure rooted at msg to the output file specified when the BytesGenerator instance was created. If the policy option cte_type is 8bit (the default), copy any headers in the original parsed message that have not been modified to the output with any bytes with the...
doc_19560
See Migration guide for more details. tf.compat.v1.image.random_flip_left_right tf.image.random_flip_left_right( image, seed=None ) With a 1 in 2 chance, outputs the contents of image flipped along the second dimension, which is width. Otherwise output the image as-is. When passing a batch of images, each image ...
doc_19561
tf.compat.v1.strings.substr( input, pos, len, name=None, unit='BYTE' ) For each string in the input Tensor, creates a substring starting at index pos with a total length of len. If len defines a substring that would extend beyond the length of the input string, or if len is negative, then as many characters as pos...
doc_19562
Return the group id.
doc_19563
Return local maximum of an image. Parameters image([P,] M, N) ndarray (uint8, uint16) Input image. selemndarray The neighborhood expressed as an ndarray of 1’s and 0’s. out([P,] M, N) array (same dtype as input) If None, a new array is allocated. maskndarray (integer or float), optional Mask array t...
doc_19564
The left-hand side - what is being looked up. The object typically follows the Query Expression API. It may also be a plain value.
doc_19565
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_19566
Compute tangent element-wise. Equivalent to np.sin(x)/np.cos(x) element-wise. Parameters xarray_like Input array. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a fr...
doc_19567
Bases: matplotlib.container.Container Container for the artists created in a Axes.stem() plot. The container can be treated like a namedtuple (markerline, stemlines, baseline). Attributes markerlineLine2D The artist of the markers at the stem heads. stemlineslist of Line2D The artists of the vertical lines ...
doc_19568
Register a codec search function. Search functions are expected to take one argument, being the encoding name in all lower case letters with hyphens and spaces converted to underscores, and return a CodecInfo object. In case a search function cannot find a given encoding, it should return None. Changed in version 3.9:...
doc_19569
Running this command creates the target directory (creating any parent directories that don’t exist already) and places a pyvenv.cfg file in it with a home key pointing to the Python installation from which the command was run (a common name for the target directory is .venv). It also creates a bin (or Scripts on Wind...
doc_19570
See Migration guide for more details. tf.compat.v1.sparse.expand_dims tf.sparse.expand_dims( sp_input, axis=None, name=None ) Given a tensor input, this operation inserts a dimension of length 1 at the dimension index axis of input's shape. The dimension index follows python indexing rules: It's zero-based, a ne...
doc_19571
binascii.a2b_uu(string) Convert a single line of uuencoded data back to binary and return the binary data. Lines normally contain 45 (binary) bytes, except for the last line. Line data may be followed by whitespace. binascii.b2a_uu(data, *, backtick=False) Convert binary data to a line of ASCII characters, the ...
doc_19572
Set the (group) id for the artist. Parameters gidstr
doc_19573
Set the agg filter. Parameters filter_funccallable A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array.
doc_19574
See Migration guide for more details. tf.compat.v1.keras.preprocessing.text.Tokenizer tf.keras.preprocessing.text.Tokenizer( num_words=None, filters='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n', lower=True, split=' ', char_level=False, oov_token=None, document_count=0, **kwargs ) This class allows to vecto...
doc_19575
See Migration guide for more details. tf.compat.v1.raw_ops.Empty tf.raw_ops.Empty( shape, dtype, init=False, name=None ) This operation creates a tensor of shape and dtype. Args: shape: A Tensor of type int32. 1-D. Represents the shape of the output tensor. dtype: A tf.DType. init: An optional bool. Defaults to ...
doc_19576
Update the hash object with the bytes-like object. Repeated calls are equivalent to a single call with the concatenation of all the arguments: m.update(a); m.update(b) is equivalent to m.update(a+b). Changed in version 3.1: The Python GIL is released to allow other threads to run while hash updates on data larger than...
doc_19577
Called when this tool gets used. This method is called by ToolManager.trigger_tool. Parameters eventEvent The canvas event that caused this tool to be called. senderobject Object that requested the tool to be triggered. dataobject Extra data.
doc_19578
A read-only property for the mode of a normal distribution.
doc_19579
Predict the target for the provided data Parameters Xarray-like of shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’ Test samples. Returns yndarray of shape (n_queries,) or (n_queries, n_outputs), dtype=double Target values.
doc_19580
Name of a model field which will be auto-populated with the height of the image each time the model instance is saved.
doc_19581
Returns the minimum value of all elements in the input tensor. Warning This function produces deterministic (sub)gradients unlike min(dim=0) Parameters input (Tensor) – the input tensor. Example: >>> a = torch.randn(1, 3) >>> a tensor([[ 0.6750, 1.0857, 1.7197]]) >>> torch.min(a) tensor(0.6750) torch.min(inp...
doc_19582
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_19583
See Migration guide for more details. tf.compat.v1.floordiv, tf.compat.v1.math.floordiv tf.math.floordiv( x, y, name=None ) The same as tf.compat.v1.div(x,y) for integers, but uses tf.floor(tf.compat.v1.div(x,y)) for floating point arguments so that the result is always an integer (though possibly an integer rep...
doc_19584
tf.compat.v1.nn.conv3d( input, filter=None, strides=None, padding=None, data_format='NDHWC', dilations=[1, 1, 1, 1, 1], name=None, filters=None ) In signal processing, cross-correlation is a measure of similarity of two waveforms as a function of a time-lag applied to one of them. This is also known as a slidi...
doc_19585
See Migration guide for more details. tf.compat.v1.sequence_mask tf.sequence_mask( lengths, maxlen=None, dtype=tf.dtypes.bool, name=None ) If lengths has shape [d_1, d_2, ..., d_n] the resulting tensor mask has dtype dtype and shape [d_1, d_2, ..., d_n, maxlen], with mask[i_1, i_2, ..., i_n, j] = (j < lengths[i_...
doc_19586
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_19587
Set the view limits to the nearest multiples of base that contain the data.
doc_19588
Fit a Generalized Linear Model. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training data. yarray-like of shape (n_samples,) Target values. sample_weightarray-like of shape (n_samples,), default=None Sample weights. Returns selfreturns an instance of self.
doc_19589
Pass the input through the encoder layer. Parameters src – the sequence to the encoder layer (required). src_mask – the mask for the src sequence (optional). src_key_padding_mask – the mask for the src keys per batch (optional). Shape: see the docs in Transformer class.
doc_19590
Uses an incremental decoder to iteratively decode the input provided by iterator. This function is a generator. The errors argument (as well as any other keyword argument) is passed through to the incremental decoder. This function requires that the codec accept bytes objects to decode. Therefore it does not support te...
doc_19591
True if the stream is closed.
doc_19592
Get statistics about the SSL sessions created or managed by this context. A dictionary is returned which maps the names of each piece of information to their numeric values. For example, here is the total number of hits and misses in the session cache since the context was created: >>> stats = context.session_stats() >...
doc_19593
Return a list of dictionaries of data which can be used to draw a series of violin plots. See the Returns section below to view the required keys of the dictionary. Users can skip this function and pass a user-defined set of dictionaries with the same keys to violinplot instead of using Matplotlib to do the calculati...
doc_19594
Get the maximum priority value for policy. policy is one of the scheduling policy constants above.
doc_19595
class reprlib.Repr Class which provides formatting services useful in implementing functions similar to the built-in repr(); size limits for different object types are added to avoid the generation of representations which are excessively long. reprlib.aRepr This is an instance of Repr which is used to provide ...
doc_19596
Return whether the artist uses clipping.
doc_19597
Auto-level image using local histogram. This filter locally stretches the histogram of gray values to cover the entire range of values from “white” to “black”. Parameters image([P,] M, N) ndarray (uint8, uint16) Input image. selemndarray The neighborhood expressed as an ndarray of 1’s and 0’s. out([P,] M,...
doc_19598
The ComboBox widget is similar to the combo box control in MS Windows. The user can select a choice by either typing in the entry subwidget or selecting from the listbox subwidget.
doc_19599
Returns the score using the scoring option on the given test data and labels. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shape (n_samples,) True labels for X. sample_weightarray-like of shape (n_samples,), default=None Sample weights. Returns scorefloat ...