_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_11600
See Migration guide for more details. tf.compat.v1.feature_column.sequence_categorical_column_with_hash_bucket tf.feature_column.sequence_categorical_column_with_hash_bucket( key, hash_bucket_size, dtype=tf.dtypes.string ) Pass this to embedding_column or indicator_column to convert sequence categorical data int...
doc_11601
Block until all items in the queue have been gotten and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer calls task_done() to indicate that the item was retrieved and all work on it is complete. When the count of unfinished tasks drops to z...
doc_11602
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_11603
See Migration guide for more details. tf.compat.v1.debugging.experimental.enable_dump_debug_info tf.debugging.experimental.enable_dump_debug_info( dump_root, tensor_debug_mode=DEFAULT_TENSOR_DEBUG_MODE, circular_buffer_size=1000, op_regex=None, tensor_dtypes=None ) The debugging information is dumped to a di...
doc_11604
render_to_string() loads a template like get_template() and calls its render() method immediately. It takes the following arguments. template_name The name of the template to load and render. If it’s a list of template names, Django uses select_template() instead of get_template() to find the template. context A d...
doc_11605
The args argument as it was passed to Popen – a sequence of program arguments or else a single string. New in version 3.3.
doc_11606
Converts the object into Content-Range HTTP header, based on given length
doc_11607
See Migration guide for more details. tf.compat.v1.raw_ops.RightShift tf.raw_ops.RightShift( x, y, name=None ) Performs a logical shift for unsigned integer types, and an arithmetic shift for signed integer types. If y is negative, or greater than or equal to than the width of x in bits the result is implementat...
doc_11608
Set the alpha value used for blending - not supported on all backends. Parameters alphascalar or None alpha must be within the 0-1 range, inclusive.
doc_11609
add Sprites to this Group add(*sprites) -> None Add any number of Sprites to this Group. This will only add Sprites that are not already members of the Group. Each sprite argument can also be a iterator containing Sprites.
doc_11610
Parameters patchPatch
doc_11611
See Migration guide for more details. tf.compat.v1.raw_ops.BatchMatrixTriangularSolve tf.raw_ops.BatchMatrixTriangularSolve( matrix, rhs, lower=True, adjoint=False, name=None ) Args matrix A Tensor. Must be one of the following types: float64, float32. rhs A Tensor. Must have the same type as matr...
doc_11612
Represents the C unsigned long datatype. The constructor accepts an optional integer initializer; no overflow checking is done.
doc_11613
If True (default), the lower bound is inclusive '[', otherwise it’s exclusive '('.
doc_11614
Close the current file so that the next iteration will read the first line from the next file (if any); lines not read from the file will not count towards the cumulative line count. The filename is not changed until after the first line of the next file has been read. Before the first line has been read, this function...
doc_11615
Compute correlation with other Series, excluding missing values. Parameters other:Series Series with which to compute the correlation. method:{‘pearson’, ‘kendall’, ‘spearman’} or callable Method used to compute correlation: pearson : Standard correlation coefficient kendall : Kendall Tau correlation coeff...
doc_11616
tf.compat.v1.graph_util.remove_training_nodes( input_graph, protected_nodes=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.compat.v1.graph_util.remove_training_nodes There are nodes like Identity and CheckNumerics that are only useful during t...
doc_11617
Unpacks a double-precision floating point number, similarly to unpack_float().
doc_11618
Dequeues a record and return it, optionally blocking. The base implementation uses get(). You may want to override this method if you want to use timeouts or work with custom queue implementations.
doc_11619
Bases: matplotlib.patches.BoxStyle._Base A box with a sawtooth outline. Parameters padfloat, default: 0.3 The amount of padding around the original box. tooth_sizefloat, default: pad/2 Size of the sawtooth. __call__(x0, y0, width, height, mutation_size, mutation_aspect=<deprecated parameter>)[source] ...
doc_11620
Bases: skimage.viewer.plugins.base.Plugin Plugin for ImageViewer that displays an overlay on top of main image. The base Plugin class displays the filtered image directly on the viewer. OverlayPlugin will instead overlay an image with a transparent colormap. See base Plugin class for additional details. Attributes ...
doc_11621
Call open() with method set to OPTIONS. Parameters args (Any) – kw (Any) – Return type werkzeug.test.TestResponse
doc_11622
Write a DataFrame to the binary parquet format. This function writes the dataframe as a parquet file. You can choose different parquet backends, and have the option of compression. See the user guide for more details. Parameters path:str, path object, file-like object, or None, default None String, path object ...
doc_11623
tf.nn.safe_embedding_lookup_sparse( embedding_weights, sparse_ids, sparse_weights=None, combiner='mean', default_id=None, max_norm=None, name=None ) The partitioned embedding in embedding_weights must all be the same shape except for the first dimension. The first dimension is allowed to vary as the vocabulary...
doc_11624
See Migration guide for more details. tf.compat.v1.raw_ops.ThreadPoolHandle tf.raw_ops.ThreadPoolHandle( num_threads, display_name, max_intra_op_parallelism=1, container='', shared_name='', name=None ) Args num_threads An int. The number of threads in the thread pool. display_name A string. A ...
doc_11625
Snap time stamps to nearest occurring frequency. Returns DatetimeIndex
doc_11626
Determine whether code is in tableC.9 (Tagging characters).
doc_11627
'blogs.blog': lambda o: "/blogs/%s/" % o.slug, 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), } The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti...
doc_11628
See Migration guide for more details. tf.compat.v1.debugging.assert_type tf.compat.v1.assert_type( tensor, tf_type, message=None, name=None ) Args tensor A Tensor or SparseTensor. tf_type A tensorflow type (dtypes.float32, tf.int64, dtypes.bool, etc). message A string to prefix to the defaul...
doc_11629
Return randoms as generated by the underlying BitGenerator Parameters sizeint or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which case a single value is returned. outputbool, optional Output values. Used for performance...
doc_11630
See TripletMarginLoss for details
doc_11631
See Migration guide for more details. tf.compat.v1.edit_distance tf.edit_distance( hypothesis, truth, normalize=True, name='edit_distance' ) This operation takes variable-length sequences (hypothesis and truth), each provided as a SparseTensor, and computes the Levenshtein distance. You can normalize the edit di...
doc_11632
Version 2.0.0 Released 2021-05-11 Drop support for Python 2 and 3.5. Bump minimum versions of other Pallets projects: Werkzeug >= 2, Jinja2 >= 3, MarkupSafe >= 2, ItsDangerous >= 2, Click >= 8. Be sure to check the change logs for each project. For better compatibility with other applications (e.g. Celery) that stil...
doc_11633
Returns the Changelist class to be used for listing. By default, django.contrib.admin.views.main.ChangeList is used. By inheriting this class you can change the behavior of the listing.
doc_11634
The weight function of the Chebyshev polynomials. The weight function is \(1/\sqrt{1 - x^2}\) and the interval of integration is \([-1, 1]\). The Chebyshev polynomials are orthogonal, but not normalized, with respect to this weight function. Parameters xarray_like Values at which the weight function will be com...
doc_11635
Creates a new element object of the same type as this element. Do not call this method, use the SubElement() factory function instead.
doc_11636
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_11637
Computes the histogram of a tensor. The elements are sorted into equal width bins between min and max. If min and max are both zero, the minimum and maximum values of the data are used. Elements lower than min and higher than max are ignored. Parameters input (Tensor) – the input tensor. bins (int) – number of his...
doc_11638
Fill the area between two vertical curves. The curves are defined by the points (y, x1) and (y, x2). This creates one or multiple polygons describing the filled area. You may exclude some vertical sections from filling using where. By default, the edges connect the given points directly. Use step if the filling shoul...
doc_11639
Special value that can be used as the stderr argument and indicates that standard error should be redirected into standard output.
doc_11640
Rearranges elements in a tensor of shape (∗,C×r2,H,W)(*, C \times r^2, H, W) to a tensor of shape (∗,C,H×r,W×r)(*, C, H \times r, W \times r) , where r is an upscale factor. This is useful for implementing efficient sub-pixel convolution with a stride of 1/r1/r . See the paper: Real-Time Single Image and Video Super...
doc_11641
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_11642
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceConditionalAccumulator tf.raw_ops.ResourceConditionalAccumulator( dtype, shape, container='', shared_name='', reduction_type='MEAN', name=None ) The accumulator accepts gradients marked with local_step greater or equal to the most recent glob...
doc_11643
Convert input into a pandas only dtype object or a numpy dtype object. Parameters dtype:object to be converted Returns np.dtype or a pandas dtype Raises TypeError if not a dtype
doc_11644
Multiply a Legendre series by x. Multiply the Legendre series c by x, where x is the independent variable. Parameters carray_like 1-D array of Legendre series coefficients ordered from low to high. Returns outndarray Array representing the result of the multiplication. See also legadd, legmul, le...
doc_11645
Return a version of this object represented entirely using integer values for the relative attributes. >>> relativedelta(days=1.5, hours=2).normalized() relativedelta(days=+1, hours=+14) Returns Returns a dateutil.relativedelta.relativedelta object.
doc_11646
Creates a new signal for this namespace if blinker is available, otherwise returns a fake signal that has a send method that will do nothing but will fail with a RuntimeError for all other operations, including connecting.
doc_11647
Exception raised for errors that are related to the database’s operation and not necessarily under the control of the programmer, e.g. an unexpected disconnect occurs, the data source name is not found, a transaction could not be processed, etc. It is a subclass of DatabaseError.
doc_11648
Create a DataFrame with the levels of the MultiIndex as columns. Column ordering is determined by the DataFrame constructor with data as a dict. Parameters index:bool, default True Set the index of the returned DataFrame as the original MultiIndex. name:list / sequence of str, optional The passed names shou...
doc_11649
Logarithm of the sum of exponentiations of the inputs in base-2. Calculates pointwise log⁡2(2x+2y)\log_2\left(2^x + 2^y\right) . See torch.logaddexp() for more details. Parameters input (Tensor) – the input tensor. other (Tensor) – the second input tensor Keyword Arguments out (Tensor, optional) – the output te...
doc_11650
tkinter.font.NORMAL tkinter.font.BOLD tkinter.font.ITALIC tkinter.font.ROMAN class tkinter.font.Font(root=None, font=None, name=None, exists=False, **options) The Font class represents a named font. Font instances are given unique names and can be specified by their family, size, and style configuration. Na...
doc_11651
All arguments are optional. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments must be integers in the following ranges: 0 <= hour < 24, 0 <= minute < 60, 0 <= second < 60, 0 <= microsecond < 1000000, fold in [0, 1]. If an argument outside those ranges is given, ValueError is raised...
doc_11652
Read-only attribute containing the struct packing format used by all currently stored values.
doc_11653
Parses the contents of the string data, calling the appropriate handler functions to process the parsed data. isfinal must be true on the final call to this method; it allows the parsing of a single file in fragments, not the submission of multiple files. data can be the empty string at any time.
doc_11654
ExtremeFinderFixed(extremes) This subclass always returns the same bounding box. FixedAxisArtistHelper(grid_helper, side[, ...]) nth_coord = along which coordinate value varies. FloatingAxes alias of mpl_toolkits.axisartist.floating_axes.FloatingAxesHostAxes FloatingAxesBase(*args, **kwargs) FloatingAxisArtist...
doc_11655
Alias for set_fontsize.
doc_11656
Return indices of the minimum values along the given axis. Refer to numpy.argmin for detailed documentation. See also numpy.argmin equivalent function
doc_11657
A view that displays a form for editing an existing object, redisplaying the form with validation errors (if there are any) and saving changes to the object. This uses a form automatically generated from the object’s model class (unless a form class is manually specified). Ancestors (MRO) This view inherits methods and...
doc_11658
A with block. items is a list of withitem nodes representing the context managers, and body is the indented block inside the context. type_comment type_comment is an optional string with the type annotation as a comment.
doc_11659
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterAdd tf.raw_ops.ResourceScatterAdd( resource, indices, updates, name=None ) This operation computes # Scalar indices ref[indices, ...] += updates[...] # Vector indices (for each i) ref[indices[i], ...] += updates[i, ...] # High rank indic...
doc_11660
Decodes the object input and returns a tuple (output object, length consumed). For instance, for a text encoding, decoding converts a bytes object encoded using a particular character set encoding to a string object. For text encodings and bytes-to-bytes codecs, input must be a bytes object or one which provides the re...
doc_11661
Return values for sorting. Returns ndarray The transformed values should maintain the ordering between values within the array. See also ExtensionArray.argsort Return the indices that would sort this array.
doc_11662
Write array to a file as text or binary (default). Data is always written in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters fidfile or str or Path An open file object, or a string containing a filename. Changed in version 1....
doc_11663
Unfreeze the objects in the permanent generation, put them back into the oldest generation. New in version 3.7.
doc_11664
See Migration guide for more details. tf.compat.v1.image.flip_left_right tf.image.flip_left_right( image ) Outputs the contents of image flipped along the width dimension. See also tf.reverse. Usage Example: x = [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]], [[7.0, 8.0, 9.0], [10.0, 11.0, 12.0]]] tf.image...
doc_11665
Bases: matplotlib.transforms.Transform A helper class that holds a single child transform and acts equivalently to it. This is useful if a node of the transform tree must be replaced at run time with a transform of a different type. This class allows that replacement to correctly trigger invalidation. TransformWrappe...
doc_11666
Get the current Axes. If there is currently no Axes on this Figure, a new one is created using Figure.add_subplot. (To test whether there is currently an Axes on a Figure, check whether figure.axes is empty. To test whether there is currently a Figure on the pyplot figure stack, check whether pyplot.get_fignums() is ...
doc_11667
Removes expired sessions from the session store. This class method is called by clearsessions.
doc_11668
The testing flag. Set this to True to enable the test mode of Flask extensions (and in the future probably also Flask itself). For example this might activate test helpers that have an additional runtime cost which should not be enabled by default. If this is enabled and PROPAGATE_EXCEPTIONS is not changed from the def...
doc_11669
Predict confidence scores for samples. The confidence score for a sample is proportional to the signed distance of that sample to the hyperplane. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns array, shape=(n_samples,) if n_classes == 2 else (n_samples, n_classes) ...
doc_11670
Add a path to the DLL search path. This search path is used when resolving dependencies for imported extension modules (the module itself is resolved through sys.path), and also by ctypes. Remove the directory by calling close() on the returned object or using it in a with statement. See the Microsoft documentation for...
doc_11671
tf.experimental.numpy.random.rand( *size ) See the NumPy documentation for numpy.random.rand.
doc_11672
Return self==value.
doc_11673
Make and return a second axes that shares the y-axis. The new axes will overlay ax (or the current axes if ax is None), and its ticks will be on the top. Examples Plots with different scales
doc_11674
Handle authentication with the proxy. password_mgr, if given, should be something that is compatible with HTTPPasswordMgr; refer to section HTTPPasswordMgr Objects for information on the interface that must be supported.
doc_11675
See Migration guide for more details. tf.compat.v1.raw_ops.IteratorToStringHandle tf.raw_ops.IteratorToStringHandle( resource_handle, name=None ) Args resource_handle A Tensor of type resource. A handle to an iterator resource. name A name for the operation (optional). Returns A Tensor o...
doc_11676
Create the four images {rgb, r, g, b}. Parameters r, g, barray-like The red, green, and blue arrays. kwargsimshow kwargs kwargs get unpacked into the imshow calls for the four images. Returns rgbmatplotlib.image.AxesImage rmatplotlib.image.AxesImage gmatplotlib.image.AxesImage bmatplotlib.image....
doc_11677
Whether check_hostname falls back to verify the cert’s subject common name in the absence of a subject alternative name extension (default: true). Note Only writeable with OpenSSL 1.1.0 or higher. New in version 3.7. Changed in version 3.9.3: The flag had no effect with OpenSSL before version 1.1.1k. Python 3.8.9,...
doc_11678
See Migration guide for more details. tf.compat.v1.raw_ops.UniqueDataset tf.raw_ops.UniqueDataset( input_dataset, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. output_types A list of tf.DTypes that has length >= 1. output_shapes A list of shapes (each ...
doc_11679
A compatibility alias for tobytes, with exactly the same behavior. Despite its name, it returns bytes not strs. Deprecated since version 1.19.0.
doc_11680
Stop when the line with the line no greater than the current one is reached or when returning from current frame.
doc_11681
Set the rotation angle in degrees. The rotation is performed anti-clockwise around xy.
doc_11682
Bases: mpl_toolkits.axisartist.axisline_style.AxislineStyle._Base A simple arrow. Parameters sizefloat Size of the arrow as a fraction of the ticklabel size. ArrowAxisClass[source] alias of mpl_toolkits.axisartist.axisline_style._FancyAxislineStyle.SimpleArrow new_line(axis_artist, transform)[source...
doc_11683
Return whether units are set on any axis.
doc_11684
tf.optimizers.schedules.LearningRateSchedule Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.schedules.LearningRateSchedule LearningRateSchedules can be passed in as the learning rate of optimizers in tf.keras.optimizers. They can be serialized and deserialized using tf...
doc_11685
Trace a module and return an executable ScriptModule that will be optimized using just-in-time compilation. When a module is passed to torch.jit.trace, only the forward method is run and traced. With trace_module, you can specify a dictionary of method names to example inputs to trace (see the inputs) argument below....
doc_11686
Do a keyword search on scikit-image docstrings. Parameters whatstr Words to look for. Examples >>> import skimage >>> skimage.lookfor('regular_grid') Search results for 'regular_grid' --------------------------------- skimage.lookfor Do a keyword search on scikit-image docstrings. skimage.util.regular_g...
doc_11687
Specifies that the STARTUPINFO.hStdInput, STARTUPINFO.hStdOutput, and STARTUPINFO.hStdError attributes contain additional information.
doc_11688
In-place version of erfc()
doc_11689
modulefinder.AddPackagePath(pkg_name, path) Record that the package named pkg_name can be found in the specified path. modulefinder.ReplacePackage(oldname, newname) Allows specifying that the module named oldname is in fact the package named newname. class modulefinder.ModuleFinder(path=None, debug=0, exclu...
doc_11690
tf.experimental.numpy.floor_divide( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.floor_divide.
doc_11691
Passed an ordinal, translate and convert to a ts. Note: by definition there cannot be any tz info on the ordinal itself. Parameters ordinal:int Date corresponding to a proleptic Gregorian ordinal. freq:str, DateOffset Offset to apply to the Timestamp. tz:str, pytz.timezone, dateutil.tz.tzfile or None Ti...
doc_11692
Return the cumulative sum of the array elements over the given axis. Masked values are set to 0 internally during the computation. However, their position is saved, and the result will be masked at the same locations. Refer to numpy.cumsum for full documentation. See also numpy.ndarray.cumsum corresponding functio...
doc_11693
Called when one of the pipes communicating with the child process is closed. fd is the integer file descriptor that was closed.
doc_11694
Bases: matplotlib.offsetbox.OffsetBox draw(renderer)[source] Update the location of children if necessary and draw them to the given renderer. get_children()[source] Return a list of the child Artists. get_data()[source] get_extent(renderer)[source] Return a tuple width, height, xdescent, ydescent...
doc_11695
tf.compat.v1.metrics.recall_at_thresholds( labels, predictions, thresholds, weights=None, metrics_collections=None, updates_collections=None, name=None ) The recall_at_thresholds function creates four local variables, true_positives, true_negatives, false_positives and false_negatives for various values of thr...
doc_11696
Return the url.
doc_11697
Bases: object PDF stream object. This has no pdfRepr method. Instead, call begin(), then output the contents of the stream by calling write(), and finally call end(). Parameters idint Object id of the stream. lenReference or None An unused Reference object for the length of the stream; None means to use a m...
doc_11698
Return whether the yaxis is oriented in the "inverse" direction. The "normal" direction is increasing to the right for the x-axis and to the top for the y-axis; the "inverse" direction is increasing to the left for the x-axis and to the bottom for the y-axis.
doc_11699
The model instance from the queryset. The instance can be accessed in custom ChoiceWidget.create_option() implementations to adjust the rendered HTML.