_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_11500
Compute the skeleton of a binary image. Thinning is used to reduce each connected component in a binary image to a single-pixel wide skeleton. Parameters imagendarray, 2D or 3D A binary image containing the objects to be skeletonized. Zeros represent background, nonzero values are foreground. method{‘zhang’, ...
doc_11501
tf.data.Dataset( variant_tensor ) The tf.data.Dataset API supports writing descriptive and efficient input pipelines. Dataset usage follows a common pattern: Create a source dataset from your input data. Apply dataset transformations to preprocess the data. Iterate over the dataset and process the elements. Iter...
doc_11502
Returns an iterable of nodes in a topological order. Using this method does not require to call TopologicalSorter.prepare() or TopologicalSorter.done(). This method is equivalent to: def static_order(self): self.prepare() while self.is_active(): node_group = self.get_ready() yield from node_grou...
doc_11503
tf.keras.callbacks.TensorBoard( log_dir='logs', histogram_freq=0, write_graph=True, write_images=False, update_freq='epoch', profile_batch=2, embeddings_freq=0, embeddings_metadata=None, **kwargs ) TensorBoard is a visualization tool provided with TensorFlow. This callback logs events for TensorBoard, incl...
doc_11504
tf.compat.v1.pad( tensor, paddings, mode='CONSTANT', name=None, constant_values=0 ) This operation pads a tensor according to the paddings you specify. paddings is an integer tensor with shape [n, 2], where n is the rank of tensor. For each dimension D of input, paddings[D, 0] indicates how many values to add befo...
doc_11505
Computes the bitwise OR of input and other. The input tensor must be of integral or Boolean types. For bool tensors, it computes the logical OR. Parameters input – the first input tensor other – the second input tensor Keyword Arguments out (Tensor, optional) – the output tensor. Example >>> torch.bitwise_or(...
doc_11506
Create a record array from binary data Note that despite the name of this function it does not accept str instances. Parameters datastringbytes-like Buffer of binary data dtypedata-type, optional Valid dtype for all arrays shapeint or tuple of ints, optional Shape of each array. offsetint, optional ...
doc_11507
A base class for Animations. This class is not usable as is, and should be subclassed to provide needed behavior. Note You must store the created Animation in a variable that lives as long as the animation should run. Otherwise, the Animation object will be garbage-collected and the animation stops. Parameters ...
doc_11508
If the stdin argument was PIPE, this attribute is a writeable stream object as returned by open(). If the encoding or errors arguments were specified or the universal_newlines argument was True, the stream is a text stream, otherwise it is a byte stream. If the stdin argument was not PIPE, this attribute is None.
doc_11509
Chebyshev(coef[, domain, window]) A Chebyshev series class. Constants chebdomain An array object represents a multidimensional, homogeneous array of fixed-size items. chebzero An array object represents a multidimensional, homogeneous array of fixed-size items. chebone An array object represents a multidimens...
doc_11510
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None f...
doc_11511
Convert axis data interval to datetime objects.
doc_11512
Return a list of frame records for the stack between the current frame and the frame in which an exception currently being handled was raised in. The first entry in the list represents the caller; the last entry represents where the exception was raised. Changed in version 3.5: A list of named tuples FrameInfo(frame, ...
doc_11513
Start a WSGI application. Optional features include a reloader, multithreading and fork support. This function has a command-line interface too: python -m werkzeug.serving --help Changed in version 2.0: Added exclude_patterns parameter. Changelog Changed in version 0.15: Bind to a Unix socket by passing a path that...
doc_11514
Calculate the expanding mean. Parameters *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba. None : Defaults to 'cython' or globall...
doc_11515
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesEnsembleResourceHandleOp tf.raw_ops.BoostedTreesEnsembleResourceHandleOp( container='', shared_name='', name=None ) Args container An optional string. Defaults to "". shared_name An optional string. Defaults to "". name A...
doc_11516
sklearn.tree.plot_tree(decision_tree, *, max_depth=None, feature_names=None, class_names=None, label='all', filled=False, impurity=True, node_ids=False, proportion=False, rotate='deprecated', rounded=False, precision=3, ax=None, fontsize=None) [source] Plot a decision tree. The sample counts that are shown are weight...
doc_11517
A class to handle redirections.
doc_11518
See Migration guide for more details. tf.compat.v1.raw_ops.AvgPool3D tf.raw_ops.AvgPool3D( input, ksize, strides, padding, data_format='NDHWC', name=None ) Each entry in output is the mean of the corresponding size ksize window in value. Args input A Tensor. Must be one of the following types: half, bfl...
doc_11519
Return a scheduled callback time as float seconds. The time is an absolute timestamp, using the same time reference as loop.time(). New in version 3.7.
doc_11520
Clock that increments monotonically, tracking the time since an arbitrary point, unaffected by frequency or time adjustments and not incremented while the system is asleep. Availability: macOS 10.12 and newer. New in version 3.8.
doc_11521
Return True if this archive member is a directory. This uses the entry’s name: directories should always end with /. New in version 3.6.
doc_11522
Returns whether the kernel is stationary.
doc_11523
gets default input device number get_default_input_id() -> default_id The following describes the usage details for this function and the get_default_output_id() function. Return the default device ID or -1 if there are no devices. The result can be passed to the Input/Output class. On a PC the user can specify a def...
doc_11524
Read an image from a file into an array. Note This function exists for historical reasons. It is recommended to use PIL.Image.open instead for loading images. Parameters fnamestr or file-like The image file to read: a filename, a URL or a file-like object opened in read-binary mode. Passing a URL is deprecate...
doc_11525
Decorator for the minimum version when running test on Mac OS X. If the MAC OS X version is less than the minimum, raise unittest.SkipTest.
doc_11526
Alias for get_edgecolor.
doc_11527
Alias for set_antialiased.
doc_11528
Predict class probabilities for X using final_estimator_.predict_proba. 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. Returns probabilitiesndarray of shape (n_samples, n_classes)...
doc_11529
(Not supported by all operating systems.) Returns a polling object, which supports registering and unregistering file descriptors, and then polling them for I/O events; see section Polling Objects below for the methods supported by polling objects.
doc_11530
Dictionary mapping the numeric values of the constants defined in this module back to name strings, allowing more human-readable representation of parse trees to be generated.
doc_11531
Compute Least Angle Regression or Lasso path using LARS algorithm [1] The optimization objective for the case method=’lasso’ is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1 in the case of method=’lars’, the objective function is only known in the form of an implicit equation (see discussion in [1]) Read...
doc_11532
Casts all floating point parameters and buffers to double datatype. Returns self Return type Module
doc_11533
See Migration guide for more details. tf.compat.v1.raw_ops.QueueIsClosed tf.raw_ops.QueueIsClosed( handle, name=None ) This operation returns true if the queue is closed and false if the queue is open. Args handle A Tensor of type mutable string. The handle to a queue. name A name for the operatio...
doc_11534
operator.__contains__(a, b) Return the outcome of the test b in a. Note the reversed operands.
doc_11535
The TestLoader class is used to create test suites from classes and modules. Normally, there is no need to create an instance of this class; the unittest module provides an instance that can be shared as unittest.defaultTestLoader. Using a subclass or instance, however, allows customization of some configurable propert...
doc_11536
Parameters pointsndarray A 2x2 numpy array of the form [[x0, y0], [x1, y1]].
doc_11537
Return a new sequence of frame information.
doc_11538
Returns a cache key based on the request path. It can be used in the request phase because it pulls the list of headers to take into account from the global path registry and uses those to build a cache key to check against. If there is no headerlist stored, the page needs to be rebuilt, so this function returns None.
doc_11539
Encode the bytes-like object s using Base64 and return the encoded bytes. Optional altchars must be a bytes-like object of at least length 2 (additional characters are ignored) which specifies an alternative alphabet for the + and / characters. This allows an application to e.g. generate URL or filesystem safe Base64 s...
doc_11540
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_11541
Return the contents of the frame as a sparse SciPy COO matrix. New in version 0.25.0. Returns coo_matrix:scipy.sparse.spmatrix If the caller is heterogeneous and contains booleans or objects, the result will be of dtype=object. See Notes. Notes The dtype will be the lowest-common-denominator type (implici...
doc_11542
Tuple (item_dtype, shape) if this dtype describes a sub-array, and None otherwise. The shape is the fixed shape of the sub-array described by this data type, and item_dtype the data type of the array. If a field whose dtype object has this attribute is retrieved, then the extra dimensions implied by shape are tacked ...
doc_11543
Return this Axis' major tick labels, as a list of Text.
doc_11544
See Migration guide for more details. tf.compat.v1.raw_ops.Div tf.raw_ops.Div( x, y, name=None ) Note: Div supports broadcasting. More about broadcasting here Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, uint8, int8, uint16, int16, int32, int64, complex64, com...
doc_11545
Draw samples from a Pareto II or Lomax distribution with specified shape. The Lomax or Pareto II distribution is a shifted Pareto distribution. The classical Pareto distribution can be obtained from the Lomax distribution by adding 1 and multiplying by the scale parameter m (see Notes). The smallest value of the Loma...
doc_11546
The categories of this categorical. Setting assigns new values to each category (effectively a rename of each individual category). The assigned value has to be a list-like object. All items must be unique and the number of items in the new categories must be the same as the number of items in the old categories. Ass...
doc_11547
Passive Aggressive Regressor Read more in the User Guide. Parameters Cfloat, default=1.0 Maximum step size (regularization). Defaults to 1.0. fit_interceptbool, default=True Whether the intercept should be estimated or not. If False, the data is assumed to be already centered. Defaults to True. max_iterin...
doc_11548
Performs a single optimization step. Parameters closure (callable, optional) – A closure that reevaluates the model and returns the loss.
doc_11549
Set up secure data connection.
doc_11550
Make a 2D hexagonal binning plot of points x, y. If C is None, the value of the hexagon is determined by the number of points in the hexagon. Otherwise, C specifies values at the coordinate (x[i], y[i]). For each hexagon, these values are reduced using reduce_C_function. Parameters x, yarray-like The data posit...
doc_11551
Return the content transfer encoding used for body encoding. This is either the string quoted-printable or base64 depending on the encoding used, or it is a function, in which case you should call the function with a single argument, the Message object being encoded. The function should then set the Content-Transfer-En...
doc_11552
Start tracing Python memory allocations: install hooks on Python memory allocators. Collected tracebacks of traces will be limited to nframe frames. By default, a trace of a memory block only stores the most recent frame: the limit is 1. nframe must be greater or equal to 1. You can still read the original number of to...
doc_11553
See Migration guide for more details. tf.compat.v1.raw_ops.FakeQuantWithMinMaxVars tf.raw_ops.FakeQuantWithMinMaxVars( inputs, min, max, num_bits=8, narrow_range=False, name=None ) Fake-quantize the inputs tensor of type float via global float scalars min and max to outputs tensor of same shape as inputs. Attrib...
doc_11554
A variant of Queue that retrieves most recently added entries first (last in, first out).
doc_11555
Stderr output of the child process if it was captured by run(). Otherwise, None.
doc_11556
Return a with each element rounded to the given number of decimals. Refer to numpy.around for full documentation. See also numpy.around equivalent function
doc_11557
Return the timezone. Returns datetime.tzinfo, pytz.tzinfo.BaseTZInfo, dateutil.tz.tz.tzfile, or None Returns None when the array is tz-naive.
doc_11558
This routine registers a callback. The callback is invoked for each attempt to access a column of a table in the database. The callback should return SQLITE_OK if access is allowed, SQLITE_DENY if the entire SQL statement should be aborted with an error and SQLITE_IGNORE if the column should be treated as a NULL value....
doc_11559
Raised when PYTHONTZPATH contains an invalid component that will be filtered out, such as a relative path.
doc_11560
unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf() system calls.
doc_11561
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_11562
Packs a variable length byte stream, similarly to pack_string().
doc_11563
Export DataFrame object to Stata dta format. Writes the DataFrame to a Stata dataset file. “dta” files contain a Stata dataset. Parameters path:str, path object, or buffer String, path object (implementing os.PathLike[str]), or file-like object implementing a binary write() function. Changed in version 1.0.0. ...
doc_11564
Sets the path of the Python interpreter to use when starting a child process. (By default sys.executable is used). Embedders will probably need to do some thing like set_executable(os.path.join(sys.exec_prefix, 'pythonw.exe')) before they can create child processes. Changed in version 3.4: Now supported on Unix when ...
doc_11565
Return the lower and upper z-axis bounds, in increasing order.
doc_11566
Alias for set_linestyle.
doc_11567
Exception raised on any errors from this module (errors from socket module are not caught). The reason for the exception is passed to the constructor as a string.
doc_11568
Add attribute attr from the “background” set applied to all writes to the current window.
doc_11569
See Migration guide for more details. tf.compat.v1.raw_ops.ResizeNearestNeighborGrad tf.raw_ops.ResizeNearestNeighborGrad( grads, size, align_corners=False, half_pixel_centers=False, name=None ) Args grads A Tensor. Must be one of the following types: uint8, int8, int32, half, float32, float64. 4-D with...
doc_11570
Set the transparency between 0 (transparent) and 1 (opaque). If an array is provided, alpha will be set to None to use the transparency values associated with the colormap.
doc_11571
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_11572
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo...
doc_11573
A linear module attached with FakeQuantize modules for weight, used for quantization aware training. We adopt the same interface as torch.nn.Linear, please see https://pytorch.org/docs/stable/nn.html#torch.nn.Linear for documentation. Similar to torch.nn.Linear, with FakeQuantize modules initialized to default. Vari...
doc_11574
Set options for printing. Items shamelessly taken from NumPy Parameters precision – Number of digits of precision for floating point output (default = 4). threshold – Total number of array elements which trigger summarization rather than full repr (default = 1000). edgeitems – Number of array items in summary a...
doc_11575
Attributes base Returns a copy of the calling offset object with n=1 and all other attributes equal. delta freqstr kwds n name nanos normalize rule_code Methods __call__(*args, **kwargs) Call self as a function. rollback Roll provided date backward to next offset onl...
doc_11576
The default implementation used by ConfigParser. It enables values to contain format strings which refer to other values in the same section, or values in the special default section 1. Additional default values can be provided on initialization. For example: [Paths] home_dir: /Users my_dir: %(home_dir)s/lumberjack my_...
doc_11577
Return the number of tests represented by this test object. For TestCase instances, this will always be 1.
doc_11578
If a view is using this mixin, all requests by non-authenticated users will be redirected to the login page or shown an HTTP 403 Forbidden error, depending on the raise_exception parameter. You can set any of the parameters of AccessMixin to customize the handling of unauthorized users: from django.contrib.auth.mixins ...
doc_11579
codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE codecs.BOM_UTF32_LE These constants define various byte sequences, being Unicode byte order marks (BOMs) for several encodings. They are used in UTF-16 and UTF-32 d...
doc_11580
Files and subdirectories in b, filtered by hide and ignore.
doc_11581
Initialize self. See help(type(self)) for accurate signature.
doc_11582
Optional The value for the week, as a string. By default, set to None, which means the week will be determined using other means.
doc_11583
exception _thread.error Raised on thread-specific errors. Changed in version 3.3: This is now a synonym of the built-in RuntimeError. _thread.LockType This is the type of lock objects. _thread.start_new_thread(function, args[, kwargs]) Start a new thread and return its identifier. The thread executes th...
doc_11584
Return whether the y-limits have changed since init.
doc_11585
compute the clock framerate get_fps() -> float Compute your game's framerate (in frames per second). It is computed by averaging the last ten calls to Clock.tick().
doc_11586
sklearn.utils.sparsefuncs.incr_mean_variance_axis(X, *, axis, last_mean, last_var, last_n, weights=None) [source] Compute incremental mean and variance along an axis on a CSR or CSC matrix. last_mean, last_var are the statistics computed at the last step by this function. Both must be initialized to 0-arrays of the p...
doc_11587
Packs a variable length string, s. The length of the string is first packed as an unsigned integer, then the string data is packed with pack_fstring().
doc_11588
Set the path effects. Parameters path_effectsAbstractPathEffect
doc_11589
For each element in self, return a copy with the leading characters removed. See also char.lstrip
doc_11590
Return the frequency object as a string if its set, otherwise None.
doc_11591
Same as Element.findtext(), starting at the root of the tree.
doc_11592
Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise. See also char.islower
doc_11593
tf.experimental.numpy.cosh( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.cosh.
doc_11594
changes the layer of the sprite change_layer(sprite, new_layer) -> None sprite must have been added to the renderer. It is not checked.
doc_11595
Set multiple properties at once. Supported properties are Property Description adjustable {'box', 'datalim'} agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}...
doc_11596
Return the Transform object associated with this scale.
doc_11597
Query or modify the options for the specified tagname. If kw is not given, returns a dict of the option settings for tagname. If option is specified, returns the value for that option for the specified tagname. Otherwise, sets the options to the corresponding values for the given tagname.
doc_11598
See Migration guide for more details. tf.compat.v1.raw_ops.MulNoNan tf.raw_ops.MulNoNan( x, y, name=None ) Note: MulNoNan supports broadcasting. More about broadcasting here Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, complex64, complex128. y A Tensor. ...
doc_11599
tf.data.FixedLengthRecordDataset( filenames, record_bytes, header_bytes=None, footer_bytes=None, buffer_size=None, compression_type=None, num_parallel_reads=None ) Args filenames A tf.string tensor or tf.data.Dataset containing one or more filenames. record_bytes A tf.int64 scalar representing t...