_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_21600
See Migration guide for more details. tf.compat.v1.raw_ops.DecodeJSONExample tf.raw_ops.DecodeJSONExample( json_examples, name=None ) This op translates a tensor containing Example records, encoded using the standard JSON mapping, into a tensor containing the same records encoded as binary protocol buffers. The ...
doc_21601
Bases: matplotlib.backend_bases.FigureManagerBase Helper class for pyplot mode, wraps everything up into a neat bundle. For non-interactive backends, the base class is sufficient.
doc_21602
Return whether face is colored.
doc_21603
Bases: matplotlib.backend_bases.LocationEvent A key event (key press, key release). A KeyEvent has a number of special attributes in addition to those defined by the parent Event and LocationEvent classes. Notes Modifier keys will be prefixed to the pressed key and will be in the order "ctrl", "alt", "super". The exc...
doc_21604
>>> g = GeoIP2() >>> g.country('google.com') {'country_code': 'US', 'country_name': 'United States'} >>> g.city('72.14.207.99') {'city': 'Mountain View', 'continent_code': 'NA', 'continent_name': 'North America', 'country_code': 'US', 'country_name': 'United States', 'dma_code': 807, 'is_in_european_union': False, 'lat...
doc_21605
sklearn.utils.sparsefuncs.mean_variance_axis(X, axis, weights=None, return_sum_weights=False) [source] Compute mean and variance along an axis on a CSR or CSC matrix. Parameters Xsparse matrix of shape (n_samples, n_features) Input data. It can be of CSR or CSC format. axis{0, 1} Axis along which the axis s...
doc_21606
Return an image with ~`n_points` regularly-spaced nonzero pixels. Parameters ar_shapetuple of int The shape of the desired output image. n_pointsint The desired number of nonzero points. dtypenumpy data type, optional The desired data type of the output. Returns seed_imgarray of int or bool The ...
doc_21607
sklearn.pipeline.make_pipeline(*steps, memory=None, verbose=False) [source] Construct a Pipeline from the given estimators. This is a shorthand for the Pipeline constructor; it does not require, and does not permit, naming the estimators. Instead, their names will be set to the lowercase of their types automatically....
doc_21608
Return a frozen copy of this transform node. The frozen copy will not be updated when its children change. Useful for storing a previously known state of a transform where copy.deepcopy() might normally be used.
doc_21609
Subset the dataframe rows or columns according to the specified index labels. Note that this routine does not filter a dataframe on its contents. The filter is applied to the labels of the index. Parameters items:list-like Keep labels from axis which are in items. like:str Keep labels from axis for which “l...
doc_21610
This implementation uses active event loop from the main thread to handle SIGCHLD signal. If the main thread has no running event loop another thread cannot spawn a subprocess (RuntimeError is raised). The watcher avoids disrupting other code spawning processes by polling every process explicitly on a SIGCHLD signal. T...
doc_21611
Exception for pandas.options, backwards compatible with KeyError checks.
doc_21612
readline.set_history_length(length) Set or return the desired number of lines to save in the history file. The write_history_file() function uses this value to truncate the history file, by calling history_truncate_file() in the underlying library. Negative values imply unlimited history file size.
doc_21613
tf.compat.v1.metrics.precision( labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None ) The precision function creates two local variables, true_positives and false_positives, that are used to compute the precision. This value is ultimately returned as precision, an i...
doc_21614
Dictionary mapping suffixes to suffixes. This is used to allow recognition of encoded files for which the encoding and the type are indicated by the same extension. For example, the .tgz extension is mapped to .tar.gz to allow the encoding and type to be recognized separately. This is initially a copy of the global suf...
doc_21615
Add a set of subplots to this figure. This utility wrapper makes it convenient to create common layouts of subplots in a single call. Parameters nrows, ncolsint, default: 1 Number of rows/columns of the subplot grid. sharex, shareybool or {'none', 'all', 'row', 'col'}, default: False Controls sharing of x-a...
doc_21616
Parameters shorthand_namestr A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when DEBUG=True.
doc_21617
Called when the mouse moves during a pan operation. Parameters buttonMouseButton The pressed mouse button. keystr or None The pressed key, if any. x, yfloat The mouse coordinates in display coords. Notes This is intended to be overridden by new projection types.
doc_21618
Return the Figure instance the artist belongs to.
doc_21619
Return the current child watcher for the current policy.
doc_21620
Represents the C signed short datatype. The constructor accepts an optional integer initializer; no overflow checking is done.
doc_21621
Call inverse_transform on the estimator with the best found params. Only available if the underlying estimator implements inverse_transform and refit=True. Parameters Xtindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_21622
If input is a vector (1-D tensor), then returns a 2-D square tensor with the elements of input as the diagonal. If input is a matrix (2-D tensor), then returns a 1-D tensor with the diagonal elements of input. The argument diagonal controls which diagonal to consider: If diagonal = 0, it is the main diagonal. If dia...
doc_21623
Return the number of fields of the record, through MsiRecordGetFieldCount().
doc_21624
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_21625
Called when a datagram is received. data is a bytes object containing the incoming data. addr is the address of the peer sending the data; the exact format depends on the transport.
doc_21626
Converts the value into the correct Python object. It acts as the reverse of value_to_string(), and is also called in clean(). See Converting values to Python objects for usage.
doc_21627
See Migration guide for more details. tf.compat.v1.estimator.RegressionHead tf.estimator.RegressionHead( label_dimension=1, weight_column=None, loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, loss_fn=None, inverse_link_fn=None, name=None ) The loss is the weighted sum over all input dimensio...
doc_21628
Executes a parameterized SQL command against all parameter sequences or mappings found in the sequence seq_of_parameters. The sqlite3 module also allows using an iterator yielding parameters instead of a sequence. import sqlite3 class IterChars: def __init__(self): self.count = ord('a') def __iter__(s...
doc_21629
Predict the target of new samples. The predicted class is the class that has the highest probability, and can thus be different from the prediction of the uncalibrated classifier. Parameters Xarray-like of shape (n_samples, n_features) The samples. Returns Cndarray of shape (n_samples,) The predicted cl...
doc_21630
Make a box plot of the DataFrame columns. A box plot is a method for graphically depicting groups of numerical data through their quartiles. The box extends from the Q1 to Q3 quartile values of the data, with a line at the median (Q2). The whiskers extend from the edges of box to show the range of the data. The posit...
doc_21631
Accept: application/json Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed Content-Type: application/json Content-Length: 42 {"detail": "Method 'DELETE' not allowed."} Validation errors are handled slightly differently, and will include...
doc_21632
Set the line width in points. Parameters wfloat Line width, in points.
doc_21633
Return the message’s envelope header. Defaults to None if the envelope header was never set.
doc_21634
kind = 'month'
doc_21635
Return a view of the MaskedArray data. Parameters dtypedata-type or ndarray sub-class, optional Data-type descriptor of the returned view, e.g., float32 or int16. The default, None, results in the view having the same data-type as a. As with ndarray.view, dtype can also be specified as an ndarray sub-class, whi...
doc_21636
Get the names and default values of a Python function’s parameters. A named tuple ArgSpec(args, varargs, keywords, defaults) is returned. args is a list of the parameter names. varargs and keywords are the names of the * and ** parameters or None. defaults is a tuple of default argument values or None if there are no d...
doc_21637
A subclass of Path and PureWindowsPath, this class represents concrete Windows filesystem paths: >>> WindowsPath('c:/Program Files/') WindowsPath('c:/Program Files') pathsegments is specified similarly to PurePath.
doc_21638
Calls handle_one_request() once (or, if persistent connections are enabled, multiple times) to handle incoming HTTP requests. You should never need to override it; instead, implement appropriate do_*() methods.
doc_21639
Returns the size in bytes of an individual element. Example: >>> torch.tensor([]).element_size() 4 >>> torch.tensor([], dtype=torch.uint8).element_size() 1
doc_21640
alias of werkzeug.useragents._UserAgent
doc_21641
Returns the value of the Crawl-delay parameter from robots.txt for the useragent in question. If there is no such parameter or it doesn’t apply to the useragent specified or the robots.txt entry for this parameter has invalid syntax, return None. New in version 3.6.
doc_21642
The maximum number of open file descriptors for the current process.
doc_21643
Write the XML-RPC base 64 encoding of this binary item to the out stream object. The encoded data will have newlines every 76 characters as per RFC 2045 section 6.8, which was the de facto standard base64 specification when the XML-RPC spec was written.
doc_21644
User name.
doc_21645
Convert a path from Cygwin-native to Windows-native. Uses the cygpath utility (part of the Base install) to do the actual conversion. Falls back to returning the original path if this fails. Handles the default /cygdrive mount prefix as well as the /proc/cygdrive portable prefix, custom cygdrive prefixes such as / or...
doc_21646
Save the history list to a readline history file, overwriting any existing file. The default filename is ~/.history. This calls write_history() in the underlying library.
doc_21647
Return the current time in the local timezone. This differs from datetime.today() in that it can be localized to a passed timezone. Parameters tz:str or timezone object, default None Timezone to localize to. Examples >>> pd.Timestamp.today() Timestamp('2020-11-16 22:37:39.969883') Analogous for pd.Na...
doc_21648
Set the sys.setswitchinterval() to the given interval. Defines a minimum interval for Android systems to prevent the system from hanging.
doc_21649
See Migration guide for more details. tf.compat.v1.math.bincount tf.compat.v1.bincount( arr, weights=None, minlength=None, maxlength=None, dtype=tf.dtypes.int32 ) If minlength and maxlength are not given, returns a vector with length tf.reduce_max(arr) + 1 if arr is non-empty, and length 0 otherwise. If weights ...
doc_21650
Return a list of all fonts matching any of the extensions, found recursively under the directory.
doc_21651
See Migration guide for more details. tf.compat.v1.data.experimental.unique tf.data.experimental.unique() Use this transformation to produce a dataset that contains one instance of each unique element in the input. For example: dataset = tf.data.Dataset.from_tensor_slices([1, 37, 2, 37, 2, 1]) # Using `unique()` wi...
doc_21652
Return a string containing a printable representation of an object. For many types, this function makes an attempt to return a string that would yield an object with the same value when passed to eval(), otherwise the representation is a string enclosed in angle brackets that contains the name of the type of the object...
doc_21653
Return the bounds of the subplot box.
doc_21654
Alias for set_linestyle.
doc_21655
Return the file handle for the file descriptor fd. Raises OSError if fd is not recognized. Raises an auditing event msvcrt.get_osfhandle with argument fd.
doc_21656
An iterable containing the widgets needed. For example: >>> from django.forms import MultiWidget, TextInput >>> widget = MultiWidget(widgets=[TextInput, TextInput]) >>> widget.render('name', ['john', 'paul']) '<input type="text" name="name_0" value="john"><input type="text" name="name_1" value="paul">' You may provide...
doc_21657
Like quote(), but accepts a bytes object rather than a str, and does not perform string-to-bytes encoding. Example: quote_from_bytes(b'a&\xef') yields 'a%26%EF'.
doc_21658
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event.
doc_21659
See Migration guide for more details. tf.compat.v1.raw_ops.SparseDenseCwiseDiv tf.raw_ops.SparseDenseCwiseDiv( sp_indices, sp_values, sp_shape, dense, name=None ) Limitation: this Op only broadcasts the dense side to the sparse side, but not the other direction. Args sp_indices A Tensor of type int64. 2...
doc_21660
See Migration guide for more details. tf.compat.v1.bitwise.bitwise_xor tf.bitwise.bitwise_xor( x, y, name=None ) The result will have those bits set, that are different in x and y. The computation is performed on the underlying representations of x and y. For example: import tensorflow as tf from tensorflow.pyth...
doc_21661
os.O_DIRECT os.O_DIRECTORY os.O_NOFOLLOW os.O_NOATIME os.O_PATH os.O_TMPFILE os.O_SHLOCK os.O_EXLOCK The above constants are extensions and not present if they are not defined by the C library. Changed in version 3.4: Add O_PATH on systems that support it. Add O_TMPFILE, only available on Linux Kernel ...
doc_21662
Handle incoming messages on the WebSocket This method must be overridden. Changed in version 4.5: on_message can be a coroutine.
doc_21663
Set the artist's visibility. Parameters bbool
doc_21664
Replace an existing node with a new node. It must be the case that oldChild is a child of this node; if not, ValueError is raised.
doc_21665
Acquire an exclusive advisory lock on the mailbox so that other processes know not to modify it. An ExternalClashError is raised if the lock is not available. The particular locking mechanisms used depend upon the mailbox format. You should always lock the mailbox before making any modifications to its contents.
doc_21666
blit the Sprite images draw(Surface) -> None Draws the contained Sprites to the Surface argument. This uses the Sprite.image attribute for the source surface, and Sprite.rect for the position. The Group does not keep sprites in any order, so the draw order is arbitrary.
doc_21667
Like min(self, other) except that the context rounding rule is applied before returning and that NaN values are either signaled or ignored (depending on the context and whether they are signaling or quiet).
doc_21668
Copy of the array, cast to a specified type. Parameters dtypestr or dtype Typecode or data-type to which the array is cast. order{‘C’, ‘F’, ‘A’, ‘K’}, optional Controls the memory layout order of the result. ‘C’ means C order, ‘F’ means Fortran order, ‘A’ means ‘F’ order if all the arrays are Fortran contig...
doc_21669
Calls enable or disable based on toggled value.
doc_21670
Color space conversion. data Test images and example data. draw Drawing primitives (lines, text, etc.) that operate on NumPy arrays. exposure Image intensity adjustment, e.g., histogram equalization, etc. feature Feature detection and extraction, e.g., texture analysis corners, etc. filters Sharpening, edge ...
doc_21671
A numeric error code from the C variable errno.
doc_21672
Pad an array. Parameters arrayarray_like of rank N The array to pad. pad_width{sequence, array_like, int} Number of values padded to the edges of each axis. ((before_1, after_1), … (before_N, after_N)) unique pad widths for each axis. ((before, after),) yields same before and after pad for each axis. (pad,)...
doc_21673
draw a filled polygon filled_polygon(surface, points, color) -> None Draws a filled polygon on the given surface. For an unfilled polygon use polygon(). The adjacent coordinates in the points argument, as well as the first and last points, will be connected by line segments. e.g. For the points [(x1, y1), (x2, y2), (...
doc_21674
Return a callable that handles preprocessing, tokenization and n-grams generation. Returns analyzer: callable A function to handle preprocessing, tokenization and n-grams generation.
doc_21675
Update this artist's properties from the dict props. Parameters propsdict
doc_21676
The year of the period.
doc_21677
Methods implementing a file-like interface for reading from an HttpRequest instance. This makes it possible to consume an incoming request in a streaming fashion. A common use-case would be to process a big XML payload with an iterative parser without constructing a whole XML tree in memory. Given this standard interfa...
doc_21678
The namespace (aka globals) that the examples should be run in. This is a dictionary mapping names to values. Any changes to the namespace made by the examples (such as binding new variables) will be reflected in globs after the test is run.
doc_21679
See Migration guide for more details. tf.compat.v1.nn.elu tf.nn.elu( features, name=None ) See Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs) Args features A Tensor. Must be one of the following types: half, bfloat16, float32, float64. name A name for the operation (op...
doc_21680
t-distributed Stochastic Neighbor Embedding. t-SNE [1] is a tool to visualize high-dimensional data. It converts similarities between data points to joint probabilities and tries to minimize the Kullback-Leibler divergence between the joint probabilities of the low-dimensional embedding and the high-dimensional data....
doc_21681
Called when the parser encounters a recoverable error. If this method does not raise an exception, parsing may continue, but further document information should not be expected by the application. Allowing the parser to continue may allow additional errors to be discovered in the input document.
doc_21682
return len(alist) the following command can be used to display the disassembly of myfunc(): >>> dis.dis(myfunc) 2 0 LOAD_GLOBAL 0 (len) 2 LOAD_FAST 0 (alist) 4 CALL_FUNCTION 1 6 RETURN_VALUE (The “2” is a line number). By...
doc_21683
Applies the silu function, element-wise. silu(x)=x∗σ(x),where σ(x) is the logistic sigmoid.\text{silu}(x) = x * \sigma(x), \text{where } \sigma(x) \text{ is the logistic sigmoid.} Note See Gaussian Error Linear Units (GELUs) where the SiLU (Sigmoid Linear Unit) was originally coined, and see Sigmoid-Weighted Line...
doc_21684
Other Members QUANTIZED_DTYPES bfloat16 tf.dtypes.DType bool tf.dtypes.DType complex128 tf.dtypes.DType complex64 tf.dtypes.DType double tf.dtypes.DType float16 tf.dtypes.DType float32 tf.dtypes.DType float64 tf.dtypes.DType half tf.dtypes.DType int16 ...
doc_21685
This method returns a list of strings, one for each (non-system) method supported by the XML-RPC server.
doc_21686
Detaches the Windows handle from the handle object. The result is an integer that holds the value of the handle before it is detached. If the handle is already detached or closed, this will return zero. After calling this function, the handle is effectively invalidated, but the handle is not closed. You would call this...
doc_21687
Create a new unit Bbox from (0, 0) to (1, 1).
doc_21688
Some token (such as a start tag) was not closed before the end of the stream or the next token was encountered.
doc_21689
sklearn.datasets.load_sample_images() [source] Load sample images for image manipulation. Loads both, china and flower. Read more in the User Guide. Returns dataBunch Dictionary-like object, with the following attributes. imageslist of ndarray of shape (427, 640, 3) The two sample image. filenameslist T...
doc_21690
See Migration guide for more details. tf.compat.v1.fake_quant_with_min_max_args_gradient, tf.compat.v1.quantization.fake_quant_with_min_max_args_gradient tf.quantization.fake_quant_with_min_max_args_gradient( gradients, inputs, min=-6, max=6, num_bits=8, narrow_range=False, name=None ) Args gradients A ...
doc_21691
Return the maximum value along an axis. Parameters See `amax` for complete descriptions See also amax, ndarray.max Notes This is the same as ndarray.max, but returns a matrix object where ndarray.max would return an ndarray. Examples >>> x = np.matrix(np.arange(12).reshape((3,4))); x matrix([[ 0, 1, 2, ...
doc_21692
This is automatically called right before the response is started and returns headers modified for the given environment. It returns a copy of the headers from the response with some modifications applied if necessary. For example the location header (if present) is joined with the root URL of the environment. Also the...
doc_21693
Return compiler version, or None if compiler is not available. Parameters forcebool, optional If True, force a new determination of the version, even if the compiler already has a version attribute. Default is False. ok_statuslist of int, optional The list of status values returned by the version look-up pr...
doc_21694
test if the Surface is current locked get_locked() -> bool Returns True when the Surface is locked. It doesn't matter how many times the Surface is locked.
doc_21695
Apply the dimension reduction. Parameters Xarray-like of shape (n_samples, n_features) Samples to transform. Yarray-like of shape (n_samples, n_targets), default=None Target vectors. copybool, default=True Whether to copy X and Y, or perform in-place normalization. Returns x_scores if Y is not giv...
doc_21696
See Migration guide for more details. tf.compat.v1.dynamic_stitch tf.dynamic_stitch( indices, data, name=None ) Builds a merged tensor such that merged[indices[m][i, ..., j], ...] = data[m][i, ..., j, ...] For example, if each indices[m] is scalar or vector, we have # Scalar indices: merged[indices[m], ...] = d...
doc_21697
Whether the kernel works only on fixed-length feature vectors.
doc_21698
Raise a Laguerre series to a power. Returns the Laguerre series c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. i.e., [1,2,3] is the series P_0 + 2*P_1 + 3*P_2. Parameters carray_like 1-D array of Laguerre series coefficients ordered from low to high. powinteg...
doc_21699
tf.experimental.numpy.random.randint( low, high=None, size=None, dtype=onp.int ) See the NumPy documentation for numpy.random.randint.