_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_22900
Return a sorted copy of the masked array. Equivalent to creating a copy of the array and applying the MaskedArray sort() method. Refer to MaskedArray.sort for the full documentation See also MaskedArray.sort equivalent method
doc_22901
Get parameters of this kernel. 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_22902
The URL to redirect to when the form is successfully processed.
doc_22903
Alias for get_linewidth.
doc_22904
See Migration guide for more details. tf.compat.v1.custom_gradient tf.custom_gradient( f=None ) This decorator allows fine grained control over the gradients of a sequence for operations. This may be useful for multiple reasons, including providing a more efficient or numerically stable gradient for a sequence o...
doc_22905
Set whether this Axis 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_22906
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_22907
Attributes content bytes content plugin_name string plugin_name
doc_22908
Returns the current pack buffer as a string.
doc_22909
operator.__concat__(a, b) Return a + b for a and b sequences.
doc_22910
If file is a string, open the file by that name, otherwise treat it as a file-like object. mode can be: 'rb' Read only mode. 'wb' Write only mode. Note that it does not allow read/write WAV files. A mode of 'rb' returns a Wave_read object, while a mode of 'wb' returns a Wave_write object. If mode is omitted a...
doc_22911
class ast.SetComp(elt, generators) class ast.GeneratorExp(elt, generators) class ast.DictComp(key, value, generators) List and set comprehensions, generator expressions, and dictionary comprehensions. elt (or key and value) is a single node representing the part that will be evaluated for each item. generators is...
doc_22912
See Migration guide for more details. tf.compat.v1.errors.UnimplementedError tf.errors.UnimplementedError( node_def, op, message ) Some operations may raise this error when passed otherwise-valid arguments that it does not currently support. For example, running the tf.nn.max_pool2d operation would raise this er...
doc_22913
Set the value array from array-like A. Parameters Aarray-like or None The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A.
doc_22914
Write out the info dictionary, checking it for good form
doc_22915
os.RTLD_NOW os.RTLD_GLOBAL os.RTLD_LOCAL os.RTLD_NODELETE os.RTLD_NOLOAD os.RTLD_DEEPBIND Flags for use with the setdlopenflags() and getdlopenflags() functions. See the Unix manual page dlopen(3) for what the different flags mean. New in version 3.3.
doc_22916
A context manager to disable gradient synchronizations across DDP processes. Within this context, gradients will be accumulated on module variables, which will later be synchronized in the first forward-backward pass exiting the context. Example: >>> ddp = torch.nn.parallel.DistributedDataParallel(model, pg) >>> with...
doc_22917
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_22918
Create a new Bbox from left, bottom, right and top. The y-axis increases upwards. Parameters left, bottom, right, topfloat The four extents of the bounding box. minposfloat or None If this is supplied, the Bbox will have a minimum positive value set. This is useful when dealing with logarithmic scales and o...
doc_22919
Set ANNOTATIONs for mailbox. The method is non-standard, but is supported by the Cyrus server.
doc_22920
tf.initializers.RandomUniform, tf.initializers.random_uniform, tf.keras.initializers.random_uniform tf.keras.initializers.RandomUniform( minval=-0.05, maxval=0.05, seed=None ) Also available via the shortcut function tf.keras.initializers.random_uniform. Examples: # Standalone usage: initializer = tf.keras.init...
doc_22921
See Migration guide for more details. tf.compat.v1.data.experimental.service.distribute tf.data.experimental.service.distribute( processing_mode, service, job_name=None, max_outstanding_requests=None ) When you iterate over a dataset containing the distribute transformation, the tf.data service creates a "job" w...
doc_22922
A business day calendar object that efficiently stores information defining valid days for the busday family of functions. The default valid days are Monday through Friday (“business days”). A busdaycalendar object can be specified with any set of weekly valid days, plus an optional “holiday” dates that always will b...
doc_22923
Returns a coalesced copy of self if self is an uncoalesced tensor. Returns self if self is a coalesced tensor. Warning Throws an error if self is not a sparse COO tensor.
doc_22924
winreg.OpenKeyEx(key, sub_key, reserved=0, access=KEY_READ) Opens the specified key, returning a handle object. key is an already open key, or one of the predefined HKEY_* constants. sub_key is a string that identifies the sub_key to open. reserved is a reserved integer, and must be zero. The default is zero. access ...
doc_22925
tf.keras.estimator.model_to_estimator( keras_model=None, keras_model_path=None, custom_objects=None, model_dir=None, config=None, checkpoint_format='checkpoint', metric_names_map=None, export_outputs=None ) If you use infrastructure or other tooling that relies on Estimators, you can still build a Keras mo...
doc_22926
See Migration guide for more details. tf.compat.v1.raw_ops.MapSize tf.raw_ops.MapSize( dtypes, capacity=0, memory_limit=0, container='', shared_name='', name=None ) Args dtypes A list of tf.DTypes. capacity An optional int that is >= 0. Defaults to 0. memory_limit An optional int that is...
doc_22927
Bases: matplotlib.transforms.BboxBase A Bbox where some elements may be locked at certain values. When the child bounding box changes, the bounds of this bbox will update accordingly with the exception of the locked elements. Parameters bboxBbox The child bounding box to wrap. x0float or None The locked val...
doc_22928
Make a Categorical type from codes and categories or dtype. This constructor is useful if you already have codes and categories/dtype and so do not need the (computation intensive) factorization step, which is usually done on the constructor. If your data does not follow this convention, please use the normal constru...
doc_22929
An error raised when something is impossible because it violates the WAV specification or hits an implementation deficiency.
doc_22930
A “related manager” is a manager used in a one-to-many or many-to-many related context. This happens in two cases: The “other side” of a ForeignKey relation. That is: from django.db import models class Blog(models.Model): # ... pass class Entry(models.Model): blog = models.ForeignKey(Blog, on_delete=mod...
doc_22931
Registers a global forward hook for all the modules Warning This adds global state to the nn.module module and it is only intended for debugging/profiling purposes. The hook will be called every time after forward() has computed an output. It should have the following signature: hook(module, input, output) -> None ...
doc_22932
tf.compat.v1.layers.SeparableConv2D( filters, kernel_size, strides=(1, 1), padding='valid', data_format='channels_last', dilation_rate=(1, 1), depth_multiplier=1, activation=None, use_bias=True, depthwise_initializer=None, pointwise_initializer=None, bias_initializer=tf.zeros_initializer(), depthwis...
doc_22933
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_22934
This method sorts the list in place, using only < comparisons between items. Exceptions are not suppressed - if any comparison operations fail, the entire sort operation will fail (and the list will likely be left in a partially modified state). sort() accepts two arguments that can only be passed by keyword (keyword-o...
doc_22935
Get the Timestamp for the start of the period. Returns Timestamp See also Period.end_time Return the end Timestamp. Period.dayofyear Return the day of year. Period.daysinmonth Return the days in that month. Period.dayofweek Return the day of the week. Examples >>> period = pd.Period('2012-1-1', fre...
doc_22936
An integer, the highest protocol version available. This value can be passed as a protocol value to functions dump() and dumps() as well as the Pickler constructor.
doc_22937
YCbCr to RGB color space conversion. Parameters ycbcr(…, 3) array_like The image in YCbCr format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in RGB format. Same dimensions as input. Raises ValueError If ycbcr is not at least 2-D with shape (…, 3). Notes Y is between ...
doc_22938
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_22939
Convenient way to get row and column indicators together. Returns the rows_ and columns_ members.
doc_22940
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_22941
bytearray.lstrip([chars]) Return a copy of the sequence with specified leading bytes removed. The chars argument is a binary sequence specifying the set of byte values to be removed - the name refers to the fact this method is usually used with ASCII characters. If omitted or None, the chars argument defaults to remo...
doc_22942
User-defined signal 2. Availability: Unix.
doc_22943
tf.compat.v1.tpu.CrossShardOptimizer( opt, reduction=losses.Reduction.MEAN, name='CrossShardOptimizer', group_assignment=None ) Args opt An existing Optimizer to encapsulate. reduction The reduction to apply to the shard losses. name Optional name prefix for the operations created when app...
doc_22944
turtle.onkeyrelease(fun, key) Parameters fun – a function with no arguments or None key – a string: key (e.g. “a”) or key-symbol (e.g. “space”) Bind fun to key-release event of key. If fun is None, event bindings are removed. Remark: in order to be able to register key-events, TurtleScreen must have the focu...
doc_22945
See Migration guide for more details. tf.compat.v1.raw_ops.NthElement tf.raw_ops.NthElement( input, n, reverse=False, name=None ) If the input is a vector (rank-1), finds the entries which is the nth-smallest value in the vector and outputs their values as scalar tensor. For matrices (resp. higher rank input), c...
doc_22946
Sum of array elements over a given axis. Parameters aarray_like Elements to sum. axisNone or int or tuple of ints, optional Axis or axes along which a sum is performed. The default, axis=None, will sum all of the elements of the input array. If axis is negative it counts from the last to the first axis. Ne...
doc_22947
Write the value on the open file. The value must be a supported type. The file must be a writeable binary file. If the value has (or contains an object that has) an unsupported type, a ValueError exception is raised — but garbage data will also be written to the file. The object will not be properly read back by load()...
doc_22948
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi...
doc_22949
See Migration guide for more details. tf.compat.v1.raw_ops.SparseCross tf.raw_ops.SparseCross( indices, values, shapes, dense_inputs, hashed_output, num_buckets, hash_key, out_type, internal_type, name=None ) The op takes two lists, one of 2D SparseTensor and one of 2D Tensor, each representing features of o...
doc_22950
The column corresponding to pos.
doc_22951
Computes sums, means or maxes of bags of embeddings, without instantiating the intermediate embeddings. See torch.nn.EmbeddingBag for more details. Note This operation may produce nondeterministic gradients when given tensors on a CUDA device. See Reproducibility for more information. Parameters input (LongTens...
doc_22952
Compute the N-dimensional inverse discrete Fourier Transform. This function computes the inverse of the N-dimensional discrete Fourier Transform over any number of axes in an M-dimensional array by means of the Fast Fourier Transform (FFT). In other words, ifftn(fftn(a)) == a to within numerical accuracy. For a descr...
doc_22953
See Migration guide for more details. tf.compat.v1.sparse.to_dense, tf.compat.v1.sparse_tensor_to_dense tf.sparse.to_dense( sp_input, default_value=None, validate_indices=True, name=None ) This op is a convenience wrapper around sparse_to_dense for SparseTensors. For example, if sp_input has shape [3, 5] and non...
doc_22954
pygame module for image masks. Useful for fast pixel perfect collision detection. A mask uses 1 bit per-pixel to store which parts collide. New in pygame 1.8. pygame.mask.from_surface() Creates a Mask from the given surface from_surface(Surface) -> Mask from_surface(Surface, threshold=127) -> Mask Creates a...
doc_22955
Print information of uncollectable objects found (objects which are not reachable but cannot be freed by the collector). These objects will be added to the garbage list. Changed in version 3.2: Also print the contents of the garbage list at interpreter shutdown, if it isn’t empty.
doc_22956
See Migration guide for more details. tf.compat.v1.nn.avg_pool1d tf.nn.avg_pool1d( input, ksize, strides, padding, data_format='NWC', name=None ) Each entry in output is the mean of the corresponding size ksize window in value. Note internally this op reshapes and uses the underlying 2d operation. Args in...
doc_22957
Pickles the record’s attribute dictionary in binary format with a length prefix, and returns it ready for transmission across the socket. The details of this operation are equivalent to: data = pickle.dumps(record_attr_dict, 1) datalen = struct.pack('>L', len(data)) return datalen + data Note that pickles aren’t compl...
doc_22958
Data-type of the array’s elements. Parameters None Returns dnumpy dtype object See also numpy.dtype Examples >>> x array([[0, 1], [2, 3]]) >>> x.dtype dtype('int32') >>> type(x.dtype) <type 'numpy.dtype'>
doc_22959
Close the file descriptor of the polling object. New in version 3.4.
doc_22960
Adjust a range as needed to avoid singularities. This method gets called during autoscaling, with (v0, v1) set to the data limits on the axes if the axes contains any data, or (-inf, +inf) if not. If v0 == v1 (possibly up to some floating point slop), this method returns an expanded interval around this value. If (v...
doc_22961
tf.experimental.numpy.rot90( m, k=1, axes=(0, 1) ) See the NumPy documentation for numpy.rot90.
doc_22962
This method is called when a comment is encountered (e.g. <!--comment-->). For example, the comment <!-- comment --> will cause this method to be called with the argument ' comment '. The content of Internet Explorer conditional comments (condcoms) will also be sent to this method, so, for <!--[if IE 9]>IE9-specific co...
doc_22963
Encode the extension array as an enumerated type. Parameters na_sentinel:int, default -1 Value to use in the codes array to indicate missing values. Returns codes:ndarray An integer NumPy array that’s an indexer into the original ExtensionArray. uniques:ExtensionArray An ExtensionArray containing th...
doc_22964
Return the figure's background patch visibility, i.e. whether the figure background will be drawn. Equivalent to Figure.patch.get_visible().
doc_22965
Retained for backwards compatibility - use set_data instead. Parameters Aarray-like
doc_22966
Rearrange index levels using input order. May not drop or duplicate levels. Parameters order:list of int or list of str List representing new level order. Reference level by number (position) or by key (label). axis:{0 or ‘index’, 1 or ‘columns’}, default 0 Where to reorder levels. Returns DataFrame ...
doc_22967
os.MFD_ALLOW_SEALING os.MFD_HUGETLB os.MFD_HUGE_SHIFT os.MFD_HUGE_MASK os.MFD_HUGE_64KB os.MFD_HUGE_512KB os.MFD_HUGE_1MB os.MFD_HUGE_2MB os.MFD_HUGE_8MB os.MFD_HUGE_16MB os.MFD_HUGE_32MB os.MFD_HUGE_256MB os.MFD_HUGE_512MB os.MFD_HUGE_1GB os.MFD_HUGE_2GB os.MFD_HUGE_16GB These flags can...
doc_22968
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred) ** 2).sum() and \(v\) is the total sum of squares ((y_true - y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c...
doc_22969
Bases: skimage.viewer.widgets.core.BaseWidget Buttons that close the parent plugin. OK will replace the original image with the current (filtered) image. Cancel will just close the plugin. __init__(button_width=80) [source] Initialize self. See help(type(self)) for accurate signature. close_plugin() [source] ...
doc_22970
See Migration guide for more details. tf.compat.v1.raw_ops.InvertPermutation tf.raw_ops.InvertPermutation( x, name=None ) This operation computes the inverse of an index permutation. It takes a 1-D integer tensor x, which represents the indices of a zero-based array, and swaps each value with its index position....
doc_22971
The file name. This is the file descriptor of the file when no name is given in the constructor.
doc_22972
This is the quantized version of BatchNorm3d.
doc_22973
A legacy wrapper around find_spec(). Deprecated since version 3.4: Use find_spec() instead.
doc_22974
tf.compat.v1.nn.rnn_cell.RNNCell( trainable=True, name=None, dtype=None, **kwargs ) Every RNNCell must have the properties below and implement call with the signature (output, next_state) = call(input, state). The optional third input argument, scope, is allowed for backwards compatibility purposes; but should be ...
doc_22975
The type of asynchronous generator-iterator objects, created by asynchronous generator functions. New in version 3.6.
doc_22976
Return the roots of the series polynomial. Compute the roots for the series. Note that the accuracy of the roots decrease the further outside the domain they lie. Returns rootsndarray Array containing the roots of the series.
doc_22977
Set the artist transform. Parameters tTransform
doc_22978
http.client is a low-level HTTP protocol client; for high-level URL opening use urllib.request http.server contains basic HTTP server classes based on socketserver http.cookies has utilities for implementing state management with cookies http.cookiejar provides persistence of cookies http is also a module that de...
doc_22979
Calculate the ewm (exponential weighted moment) sample covariance. Parameters other:Series or DataFrame , optional If not supplied then will default to self and produce pairwise output. pairwise:bool, default None If False then only matching columns between self and other will be used and the output will be...
doc_22980
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalGroupByWindowDataset tf.raw_ops.ExperimentalGroupByWindowDataset( input_dataset, key_func_other_arguments, reduce_func_other_arguments, window_size_func_other_arguments, key_func, reduce_func, window_size_func, output_types, output_sha...
doc_22981
See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_list tf.compat.v1.flags.DEFINE_list( name, default, help, flag_values=_flagvalues.FLAGS, **args ) The flag value is parsed with a CSV parser. Args name str, the flag name. default list|str|None, the default value of the flag. ...
doc_22982
In-place version of igammac()
doc_22983
Return boolean if values in the object are monotonic_decreasing. Returns bool
doc_22984
See Migration guide for more details. tf.compat.v1.raw_ops.RaggedBincount tf.raw_ops.RaggedBincount( splits, values, size, weights, binary_output=False, name=None ) Outputs a vector with length size and the same dtype as weights. If weights are empty, then index i stores the number of times the value i is counte...
doc_22985
Sets the module in evaluation mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc. This is equivalent with self.train(False). Returns self Return type Module
doc_22986
Bases: matplotlib.artist.Artist A patch is a 2D artist with a face color and an edge color. If any of edgecolor, facecolor, linewidth, or antialiased are None, they default to their rc params setting. The following kwarg properties are supported Property Description agg_filter a filter function, which takes a (...
doc_22987
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_22988
Set the resolution of the figure in dots-per-inch. Parameters valfloat
doc_22989
return a list of floats
doc_22990
Returns True if this geometry covers the specified geometry. The covers predicate has the following equivalent definitions: Every point of the other geometry is a point of this geometry. The DE-9IM Intersection Matrix for the two geometries is T*****FF*, *T****FF*, ***T**FF*, or ****T*FF*. If either geometry is empty...
doc_22991
Holds submodules in a list. ModuleList can be indexed like a regular Python list, but modules it contains are properly registered, and will be visible by all Module methods. Parameters modules (iterable, optional) – an iterable of modules to add Example: class MyModule(nn.Module): def __init__(self): ...
doc_22992
Draw samples from a Wald, or inverse Gaussian, distribution. As the scale approaches infinity, the distribution becomes more like a Gaussian. Some references claim that the Wald is an inverse Gaussian with mean equal to 1, but this is by no means universal. The inverse Gaussian distribution was first studied in relat...
doc_22993
See Migration guide for more details. tf.compat.v1.tpu.experimental.embedding.TPUEmbedding tf.tpu.experimental.embedding.TPUEmbedding( feature_config: Any, optimizer: Optional[tpu_embedding_v2_utils._Optimizer], pipeline_execution_with_tensor_core: bool = False ) Note: When instantiated under a TPUStrat...
doc_22994
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_22995
Extract information from an AFM font file. Parameters fontAFM The AFM font file from which information will be extracted. Returns FontEntry The extracted font properties.
doc_22996
See Migration guide for more details. tf.compat.v1.errors.ResourceExhaustedError tf.errors.ResourceExhaustedError( node_def, op, message ) For example, this error might be raised if a per-user quota is exhausted, or perhaps the entire file system is out of space. Attributes error_code The integer error ...
doc_22997
Set the colormap to 'magma'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information.
doc_22998
Call predict on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_22999
See Migration guide for more details. tf.compat.v1.feature_column.numeric_column tf.feature_column.numeric_column( key, shape=(1,), default_value=None, dtype=tf.dtypes.float32, normalizer_fn=None ) Example: price = numeric_column('price') columns = [price, ...] features = tf.io.parse_example(..., features=make_p...