_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_14600
An indicator of the native byte order. This will have the value 'big' on big-endian (most-significant byte first) platforms, and 'little' on little-endian (least-significant byte first) platforms.
doc_14601
See Migration guide for more details. tf.compat.v1.raw_ops.IsBoostedTreesQuantileStreamResourceInitialized tf.raw_ops.IsBoostedTreesQuantileStreamResourceInitialized( quantile_stream_resource_handle, name=None ) An Op that checks if quantile stream resource is initialized. Args quantile_stream_resource_ha...
doc_14602
If themename is not given, returns the theme in use. Otherwise, sets the current theme to themename, refreshes all widgets and emits a <<ThemeChanged>> event.
doc_14603
Return an IPv4Address or IPv6Address object depending on the IP address passed as argument. Either IPv4 or IPv6 addresses may be supplied; integers less than 2**32 will be considered to be IPv4 by default. A ValueError is raised if address does not represent a valid IPv4 or IPv6 address. >>> ipaddress.ip_address('192.1...
doc_14604
Bases: matplotlib.ticker.Formatter Used to format the theta tick labels. Converts the native unit of radians into degrees and adds a degree symbol.
doc_14605
Render object to a LaTeX tabular, longtable, or nested table. Requires \usepackage{booktabs}. The output can be copy/pasted into a main LaTeX document or read from an external file with \input{table.tex}. Changed in version 1.0.0: Added caption and label arguments. Changed in version 1.2.0: Added position argument...
doc_14606
Return a new Control object. An entry in the Control table is made with the specified parameters. This is a generic method; for specific types, specialized methods are provided.
doc_14607
See Migration guide for more details. tf.compat.v1.raw_ops.LoadDataset tf.raw_ops.LoadDataset( path, reader_func_other_args, output_types, output_shapes, reader_func, compression='', name=None ) Args path A Tensor of type string. reader_func_other_args A list of Tensor objects. output_type...
doc_14608
Expand the shape of an array. Insert a new axis that will appear at the axis position in the expanded array shape. Parameters aarray_like Input array. axisint or tuple of ints Position in the expanded axes where the new axis (or axes) is placed. Deprecated since version 1.13.0: Passing an axis where axis >...
doc_14609
An abstraction to represent a connection between a parent and its child OS process. Instances of the SubprocessTransport class are returned from event loop methods loop.subprocess_shell() and loop.subprocess_exec().
doc_14610
See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingFTRLParameters tf.raw_ops.LoadTPUEmbeddingFTRLParameters( parameters, accumulators, linears, num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that loads optimization parameters into HBM for embedding. Mus...
doc_14611
Bases: object Helper base class for a draggable artist (legend, offsetbox). Derived classes must override the following methods: def save_offset(self): ''' Called when the object is picked for dragging; should save the reference position of the artist. ''' def update_offset(self, dx, dy): ''' ...
doc_14612
Draw a Path instance using the given affine transform.
doc_14613
Line number (int).
doc_14614
Seek to the specified frame number.
doc_14615
Return the day names of the DateTimeIndex with specified locale. Parameters locale:str, optional Locale determining the language in which to return the day name. Default is English locale. Returns Index Index of day names. Examples >>> idx = pd.date_range(start='2018-01-01', freq='D', periods=3) >>> ...
doc_14616
Array-checking restype/argtypes. An ndpointer instance is used to describe an ndarray in restypes and argtypes specifications. This approach is more flexible than using, for example, POINTER(c_double), since several restrictions can be specified, which are verified upon calling the ctypes function. These include data...
doc_14617
get the descent of the font get_descent() -> int Return the height in pixels for the font descent. The descent is the number of pixels from the font baseline to the bottom of the font.
doc_14618
Return the local number (population) of pixels. The number of pixels is defined as the number of pixels which are included in the structuring element and the mask. Additionally pixels must have a greylevel inside the interval [g-s0, g+s1] where g is the greyvalue of the center pixel. Parameters image2-D array (ui...
doc_14619
tf.compat.v1.train.summary_iterator( path ) You can use this function to read events written to an event file. It returns a Python iterator that yields Event protocol buffers. Example: Print the contents of an events file. for e in tf.compat.v1.train.summary_iterator(path to events file): print(e) Example: Pr...
doc_14620
Context manager catching unraisable exception using sys.unraisablehook(). Storing the exception value (cm.unraisable.exc_value) creates a reference cycle. The reference cycle is broken explicitly when the context manager exits. Storing the object (cm.unraisable.object) can resurrect it if it is set to an object which i...
doc_14621
See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.GCEClusterResolver tf.distribute.cluster_resolver.GCEClusterResolver( project, zone, instance_group, port, task_type='worker', task_id=0, rpc_layer='grpc', credentials='default', service=None ) This is an implementation of cluster...
doc_14622
Initialize the random number generator. If a is omitted or None, the current system time is used. If randomness sources are provided by the operating system, they are used instead of the system time (see the os.urandom() function for details on availability). If a is an int, it is used directly. With version 2 (the def...
doc_14623
Highlight the maximum with a style. Parameters subset:label, array-like, IndexSlice, optional A valid 2d input to DataFrame.loc[<subset>], or, in the case of a 1d input or single key, to DataFrame.loc[:, <subset>] where the columns are prioritised, to limit data to before applying the function. color:str, def...
doc_14624
Token value that indicates the encoding used to decode the source bytes into text. The first token returned by tokenize.tokenize() will always be an ENCODING token.
doc_14625
Double-precision floating-point number type, compatible with Python float and C double. Character code 'd' Alias numpy.float_ Alias on this platform (Linux x86_64) numpy.float64: 64-bit precision floating-point number type: sign bit, 11 bits exponent, 52 bits mantissa.
doc_14626
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_14627
class sklearn.decomposition.MiniBatchDictionaryLearning(n_components=None, *, alpha=1, n_iter=1000, fit_algorithm='lars', n_jobs=None, batch_size=3, shuffle=True, dict_init=None, transform_algorithm='omp', transform_n_nonzero_coefs=None, transform_alpha=None, verbose=False, split_sign=False, random_state=None, positive...
doc_14628
Raises an AssertionError if two array_like objects are not ordered by less than. Given two array_like objects, check that the shape is equal and all elements of the first object are strictly smaller than those of the second object. An exception is raised at shape mismatch or incorrectly ordered values. Shape mismatch...
doc_14629
Signed integer type, compatible with Python int and C long. Character code 'l' Alias on this platform (Linux x86_64) numpy.int64: 64-bit signed integer (-9_223_372_036_854_775_808 to 9_223_372_036_854_775_807). Alias on this platform (Linux x86_64) numpy.intp: Signed integer large enough to fit pointer, compati...
doc_14630
A widget that is composed of multiple widgets. MultiWidget works hand in hand with the MultiValueField. MultiWidget has one required argument: widgets An iterable containing the widgets needed. For example: >>> from django.forms import MultiWidget, TextInput >>> widget = MultiWidget(widgets=[TextInput, TextInput]) ...
doc_14631
See Migration guide for more details. tf.compat.v1.nn.atrous_conv2d tf.nn.atrous_conv2d( value, filters, rate, padding, name=None ) This function is a simpler wrapper around the more general tf.nn.convolution, and exists only for backwards compatibility. You can use tf.nn.convolution to perform 1-D, 2-D, or 3-D ...
doc_14632
Add text to figure. Parameters x, yfloat The position to place the text. By default, this is in figure coordinates, floats in [0, 1]. The coordinate system can be changed using the transform keyword. sstr The text string. fontdictdict, optional A dictionary to override the default text properties. If no...
doc_14633
This DDP communication hook just calls allreduce using GradBucket tensors. Once gradient tensors are aggregated across all workers, its then callback takes the mean and returns the result. If user registers this hook, DDP results is expected to be same as the case where no hook was registered. Hence, this won’t chang...
doc_14634
Set the url for the artist. Parameters urlstr
doc_14635
Compute the slice indexer for input labels and step. Index needs to be ordered and unique. Parameters start:label, default None If None, defaults to the beginning. end:label, default None If None, defaults to the end. step:int, default None kind:str, default None Deprecated since version 1.4.0. R...
doc_14636
See torch.erfc()
doc_14637
operator.__setitem__(a, b, c) Set the value of a at index b to c.
doc_14638
The masked constant is a special case of MaskedArray, with a float datatype and a null shape. It is used to test whether a specific entry of a masked array is masked, or to mask one or several entries of a masked array: >>> x = ma.array([1, 2, 3], mask=[0, 1, 0]) >>> x[1] is ma.masked True >>> x[-1] = ma.masked >>> x...
doc_14639
Decorator for skipping tests if lzma doesn’t exist.
doc_14640
Advance the underlying RNG as-if delta draws have occurred. Parameters deltainteger, positive Number of draws to advance the RNG. Must be less than the size state variable in the underlying RNG. Returns selfPCG64 RNG advanced delta steps Notes Advancing a RNG updates the underlying RNG state as-if a...
doc_14641
Compute image properties and return them as a pandas-compatible table. The table is a dictionary mapping column names to value arrays. See Notes section below for details. New in version 0.16. Parameters label_image(N, M[, P]) ndarray Labeled input image. Labels with value 0 are ignored. intensity_image(M, ...
doc_14642
Find indices where elements of v should be inserted in a to maintain order. For full documentation, see numpy.searchsorted See also numpy.searchsorted equivalent function
doc_14643
Array priority.
doc_14644
the wsgi version to use. defaults to (1, 0)
doc_14645
tf.zeros_like( input, dtype=None, name=None ) See also tf.zeros. Given a single tensor or array-like object (input), this operation returns a tensor of the same type and shape as input with all elements set to zero. Optionally, you can use dtype to specify a new type for the returned tensor. Examples: tensor = tf...
doc_14646
See Migration guide for more details. tf.compat.v1.raw_ops.Einsum tf.raw_ops.Einsum( inputs, equation, name=None ) Implements generalized Tensor contraction and reduction. Each input Tensor must have a corresponding input subscript appearing in the comma-separated left-hand side of the equation. The right-hand s...
doc_14647
Linear Discriminant Analysis A classifier with a linear decision boundary, generated by fitting class conditional densities to the data and using Bayes’ rule. The model fits a Gaussian density to each class, assuming that all classes share the same covariance matrix. The fitted model can also be used to reduce the di...
doc_14648
True if the kqueue object is closed.
doc_14649
class sklearn.ensemble.AdaBoostRegressor(base_estimator=None, *, n_estimators=50, learning_rate=1.0, loss='linear', random_state=None) [source] 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 regress...
doc_14650
Plot the cross-spectral density. The cross spectral density \(P_{xy}\) by Welch's average periodogram method. The vectors x and y are divided into NFFT length segments. Each segment is detrended by function detrend and windowed by function window. noverlap gives the length of the overlap between segments. The product...
doc_14651
Return the smallest n elements. Parameters n:int, default 5 Return this many ascending sorted values. keep:{‘first’, ‘last’, ‘all’}, default ‘first’ When there are duplicate values that cannot all fit in a Series of n elements: first : return the first n occurrences in order of appearance. last : return th...
doc_14652
Returns the correlation coefficient as a float, or default if there aren’t any matching rows.
doc_14653
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_14654
Load the module specified by fullname. fullname must be the fully qualified (dotted) module name. It returns the imported module, or raises ZipImportError if it wasn’t found.
doc_14655
Append the record to the buffer. If shouldFlush() returns true, call flush() to process the buffer.
doc_14656
The error setting of the decoder or encoder.
doc_14657
The file may not be changed.
doc_14658
Return the group id.
doc_14659
Maps full names for line styles used by backends to their short codes.
doc_14660
sklearn.model_selection.train_test_split(*arrays, test_size=None, train_size=None, random_state=None, shuffle=True, stratify=None) [source] Split arrays or matrices into random train and test subsets Quick utility that wraps input validation and next(ShuffleSplit().split(X, y)) and application to input data into a si...
doc_14661
Return the number of days in the month. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.days_in_month 31
doc_14662
Get the completer function, or None if no completer function has been set.
doc_14663
Whether the path points to an existing file or directory: >>> Path('.').exists() True >>> Path('setup.py').exists() True >>> Path('/etc').exists() True >>> Path('nonexistentfile').exists() False Note If the path points to a symlink, exists() returns whether the symlink points to an existing file or directory.
doc_14664
Draw bar chart in the cell backgrounds. Changed in version 1.4.0. Parameters subset:label, array-like, IndexSlice, optional A valid 2d input to DataFrame.loc[<subset>], or, in the case of a 1d input or single key, to DataFrame.loc[:, <subset>] where the columns are prioritised, to limit data to before applyin...
doc_14665
The default JSON encoder. Handles extra types compared to the built-in json.JSONEncoder. datetime.datetime and datetime.date are serialized to RFC 822 strings. This is the same as the HTTP date format. uuid.UUID is serialized to a string. dataclasses.dataclass is passed to dataclasses.asdict(). Markup (or any obje...
doc_14666
Return UTC time tuple, compatible with time.localtime().
doc_14667
The class of the result returned by Pool.apply_async() and Pool.map_async(). get([timeout]) Return the result when it arrives. If timeout is not None and the result does not arrive within timeout seconds then multiprocessing.TimeoutError is raised. If the remote call raised an exception then that exception will be ...
doc_14668
Apply transforms to the data, and predict with the final estimator Parameters Xiterable Data to predict on. Must fulfill input requirements of first step of the pipeline. **predict_paramsdict of string -> object Parameters to the predict called at the end of all transformations in the pipeline. Note that wh...
doc_14669
Module: email.mime.multipart A subclass of MIMEBase, this is an intermediate base class for MIME messages that are multipart. Optional _subtype defaults to mixed, but can be used to specify the subtype of the message. A Content-Type header of multipart/_subtype will be added to the message object. A MIME-Version header...
doc_14670
Erase from cursor to the end of the window: all lines below the cursor are deleted, and then the equivalent of clrtoeol() is performed.
doc_14671
CFFI interface Returns interfacenamedtuple Named tuple containing CFFI wrapper state_address - Memory address of the state struct state - pointer to the state struct next_uint64 - function pointer to produce 64 bit integers next_uint32 - function pointer to produce 32 bit integers next_double - function pointe...
doc_14672
Abstract a key/value pair, which has some RFC 2109 attributes. Morsels are dictionary-like objects, whose set of keys is constant — the valid RFC 2109 attributes, which are expires path comment domain max-age secure version httponly samesite The attribute httponly specifies that the cookie is only transferred in HTTP...
doc_14673
Fits the GraphicalLasso covariance model to X. Parameters Xarray-like of shape (n_samples, n_features) Data from which to compute the covariance estimate yIgnored Not used, present for API consistency by convention. Returns selfobject
doc_14674
Decorate a view function to register it for the given endpoint. Used if a rule is added without a view_func with add_url_rule(). app.add_url_rule("/ex", endpoint="example") @app.endpoint("example") def example(): ... Parameters endpoint (str) – The endpoint name to associate with the view function. Return type...
doc_14675
Create a twin of Axes with a shared y-axis but independent x-axis. The x-axis of self will have ticks on the bottom and the returned axes will have ticks on the top.
doc_14676
get the key identifier from a key name key_code(name=string) -> int Get the key identifier code from the descriptive name of the key. This returns an integer matching one of the K_* keycodes. For example: >>> pygame.key.key_code("return") == pygame.K_RETURN True >>> pygame.key.key_code("0") == pygame.K_0 True >>> pyg...
doc_14677
Raised when the data in a file cannot be parsed, such as when an MH instance attempts to read a corrupted .mh_sequences file.
doc_14678
Advance the underlying RNG as-if delta draws have occurred. Parameters deltainteger, positive Number of draws to advance the RNG. Must be less than the size state variable in the underlying RNG. Returns selfPCG64 RNG advanced delta steps Notes Advancing a RNG updates the underlying RNG state as-if a...
doc_14679
Generate indices to split data into training and test set. Parameters Xarray-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features. yarray-like of shape (n_samples,) Always ignored, exists for compatibility. groupsarray-like ...
doc_14680
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_14681
Format the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError exceptions, it contains several lines that (w...
doc_14682
See Migration guide for more details. tf.compat.v1.estimator.export.ClassificationOutput tf.estimator.export.ClassificationOutput( scores=None, classes=None ) Either classes or scores or both must be set. The classes Tensor must provide string labels, not integer class IDs. If only classes is set, it is interpre...
doc_14683
Multidimensional index iterator. Return an iterator yielding pairs of array coordinates and values. Parameters arrndarray Input array. See also ndindex, flatiter Examples >>> a = np.array([[1, 2], [3, 4]]) >>> for index, x in np.ndenumerate(a): ... print(index, x) (0, 0) 1 (0, 1) 2 (1, 0) 3 (1, 1)...
doc_14684
Detect missing values. Return a boolean same-sized object indicating if the values are NA. NA values, such as None, numpy.NaN or pd.NaT, get mapped to True values. Everything else get mapped to False values. Characters such as empty strings ‘’ or numpy.inf are not considered NA values (unless you set pandas.options.m...
doc_14685
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomUniformV2 tf.raw_ops.StatelessRandomUniformV2( shape, key, counter, alg, dtype=tf.dtypes.float32, name=None ) The generated values follow a uniform distribution in the range [0, 1). The lower bound 0 is included in the range, while the upp...
doc_14686
See Migration guide for more details. tf.compat.v1.raw_ops.LogUniformCandidateSampler tf.raw_ops.LogUniformCandidateSampler( true_classes, num_true, num_sampled, unique, range_max, seed=0, seed2=0, name=None ) See explanations of candidate sampling and the data formats at go/candidate-sampling. For each batc...
doc_14687
Transform the data X according to the fitted NMF model. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Data matrix to be transformed by the model. Returns Wndarray of shape (n_samples, n_components) Transformed data.
doc_14688
Raises an HTTPException for the given status code or WSGI application. If a status code is given, it will be looked up in the list of exceptions and will raise that exception. If passed a WSGI application, it will wrap it in a proxy WSGI exception and raise that: abort(404) # 404 Not Found abort(Response('Hello World'...
doc_14689
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayWriteV2 tf.raw_ops.TensorArrayWriteV2( handle, index, value, flow_in, name=None ) Args handle A Tensor of type string. index A Tensor of type int32. value A Tensor. flow_in A Tensor of type float32. name A name...
doc_14690
Find the horizontal edges of an image using the Prewitt transform. Parameters image2-D array Image to process. mask2-D array, optional An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result....
doc_14691
test.support.captured_stdout() test.support.captured_stderr() A context managers that temporarily replaces the named stream with io.StringIO object. Example use with output streams: with captured_stdout() as stdout, captured_stderr() as stderr: print("hello") print("error", file=sys.stderr) assert stdout.ge...
doc_14692
Type of compression for the archive member.
doc_14693
Perform DBSCAN clustering from features or distance matrix, and return cluster labels. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features), or (n_samples, n_samples) Training instances to cluster, or distances between instances if metric='precomputed'. If a sparse matrix is provided, it wil...
doc_14694
tf.nn.depth_to_space( input, block_size, data_format='NHWC', name=None ) Rearranges data from depth into blocks of spatial data. This is the reverse transformation of SpaceToDepth. More specifically, this op outputs a copy of the input tensor where values from the depth dimension are moved in spatial blocks to the...
doc_14695
Returns a 3-tuple containing (date_list, object_list, extra_context). date_list is the list of dates for which data is available. object_list is the list of objects. extra_context is a dictionary of context data that will be added to any context data provided by the MultipleObjectMixin.
doc_14696
Set parameters within this locator.
doc_14697
This exception is raised when a foreign function call cannot convert one of the passed arguments.
doc_14698
Sets the expiration time for the session. You can pass a number of different values: If value is an integer, the session will expire after that many seconds of inactivity. For example, calling request.session.set_expiry(300) would make the session expire in 5 minutes. If value is a datetime or timedelta object, the se...
doc_14699
class ast.USub class ast.Not class ast.Invert Unary operator tokens. Not is the not keyword, Invert is the ~ operator. >>> print(ast.dump(ast.parse('not x', mode='eval'), indent=4)) Expression( body=UnaryOp( op=Not(), operand=Name(id='x', ctx=Load())))