_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_21800
Abstract base class for asyncio-compliant event loops. The Event Loop Methods section lists all methods that an alternative implementation of AbstractEventLoop should have defined.
doc_21801
Convert the header set into an HTTP header string.
doc_21802
Check if domains match. New in version 1.6.0. Parameters otherclass instance The other class must have the domain attribute. Returns boolboolean True if the domains are the same, False otherwise.
doc_21803
Pareto distribution. alpha is the shape parameter.
doc_21804
Updates the values in the config from a Python file. This function behaves as if the file was imported as module with the from_object() function. Parameters filename (str) – the filename of the config. This can either be an absolute filename or a filename relative to the root path. silent (bool) – set to True if y...
doc_21805
Set the parameters of this kernel. The method works on simple kernels as well as on nested kernels. The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Returns self
doc_21806
Remove a callback based on its observer id. See also add_callback
doc_21807
Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
doc_21808
Represent a single frame in the traceback or stack that is being formatted or printed. It may optionally have a stringified version of the frames locals included in it. If lookup_line is False, the source code is not looked up until the FrameSummary has the line attribute accessed (which also happens when casting it to...
doc_21809
Return a possibly-empty list of path names that match pathname, which must be a string containing a path specification. pathname can be either absolute (like /usr/src/Python-1.5/Makefile) or relative (like ../../Tools/*/*.gif), and can contain shell-style wildcards. Broken symlinks are included in the results (as in th...
doc_21810
Bases: matplotlib.artist.Artist A table of cells. The table consists of a grid of cells, which are indexed by (row, column). For a simple table, you'll have a full grid of cells with indices from (0, 0) to (num_rows-1, num_cols-1), in which the cell (0, 0) is positioned at the top left. However, you can also add cell...
doc_21811
Create a Unix connection. The socket family will be AF_UNIX; socket type will be SOCK_STREAM. A tuple of (transport, protocol) is returned on success. path is the name of a Unix domain socket and is required, unless a sock parameter is specified. Abstract Unix sockets, str, bytes, and Path paths are supported. See the ...
doc_21812
Return the time in seconds since the Epoch, given the cert_time string representing the “notBefore” or “notAfter” date from a certificate in "%b %d %H:%M:%S %Y %Z" strptime format (C locale). Here’s an example: >>> import ssl >>> timestamp = ssl.cert_time_to_seconds("Jan 5 09:34:43 2018 GMT") >>> timestamp 151514488...
doc_21813
Called when the asynchronous loop detects that a read() call on the channel’s socket will succeed.
doc_21814
Converts a base 36 string to an integer.
doc_21815
Return the truth value of (x1 < x2) element-wise. Parameters x1, x2array_like Input arrays. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If p...
doc_21816
operator.__iand__(a, b) a = iand(a, b) is equivalent to a &= b.
doc_21817
By default, applied filters are preserved on the list view after creating, editing, or deleting an object. You can have filters cleared by setting this attribute to False.
doc_21818
tf.experimental.numpy.float16( *args, **kwargs ) Character code: 'e'. Canonical name: np.half. Alias on this platform: np.float16: 16-bit-precision floating-point number type: sign bit, 5 bits exponent, 10 bits mantissa. Methods all all() Not implemented (virtual attribute) Class generic exists solely to derive ...
doc_21819
If False, the field will be able to reference proxy models. Default is True. This mirrors the for_concrete_model argument to get_for_model().
doc_21820
Return the PATH_INFO from the WSGI environment and decode it unless charset is None. Parameters environ (WSGIEnvironment) – WSGI environment to get the path from. charset (str) – The charset for the path info, or None if no decoding should be performed. errors (str) – The decoding error handling. Return type s...
doc_21821
Return the cell Text instance.
doc_21822
See Migration guide for more details. tf.compat.v1.keras.activations.hard_sigmoid tf.keras.activations.hard_sigmoid( x ) A faster approximation of the sigmoid activation. For example: a = tf.constant([-3.0,-1.0, 0.0,1.0,3.0], dtype = tf.float32) b = tf.keras.activations.hard_sigmoid(a) b.numpy() array([0. , 0.3...
doc_21823
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalGroupByReducerDataset tf.raw_ops.ExperimentalGroupByReducerDataset( input_dataset, key_func_other_arguments, init_func_other_arguments, reduce_func_other_arguments, finalize_func_other_arguments, key_func, init_func, reduce_func, final...
doc_21824
Change what’s displayed on the screen to reflect the current contents of the line buffer. This calls rl_redisplay() in the underlying library.
doc_21825
The actual WSGI application. This is not implemented in __call__() so that middlewares can be applied without losing a reference to the app object. Instead of doing this: app = MyMiddleware(app) It’s a better idea to do this instead: app.wsgi_app = MyMiddleware(app.wsgi_app) Then you still have the original applicati...
doc_21826
Convert an integer number to a lowercase hexadecimal string prefixed with “0x”. If x is not a Python int object, it has to define an __index__() method that returns an integer. Some examples: >>> hex(255) '0xff' >>> hex(-42) '-0x2a' If you want to convert an integer number to an uppercase or lower hexadecimal string w...
doc_21827
Extract an ordered array of unique labels. We don’t allow: mix of multilabel and multiclass (single label) targets mix of label indicator matrix and anything else, because there are no explicit labels) mix of label indicator matrices of different sizes mix of string and integer labels At the moment, we also don...
doc_21828
Incremental fit with X. All of X is processed as a single batch. 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. check_inputbool, default=True Run check_array on X. yIgnored Returns selfobject ...
doc_21829
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 array-like or scalar or None animated bool antialiased bool or list of bools array array-like or None ca...
doc_21830
Transforms lists of feature-value mappings to vectors. This transformer turns lists of mappings (dict-like objects) of feature names to feature values into Numpy arrays or scipy.sparse matrices for use with scikit-learn estimators. When feature values are strings, this transformer will do a binary one-hot (aka one-of...
doc_21831
Set the head patch. Parameters patchBpatches.Patch
doc_21832
The default is True.
doc_21833
Split the string at the first occurrence of sep. This method splits the string at the first occurrence of sep, and returns 3 elements containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return 3 elements containing the string itself, followe...
doc_21834
Remove the module named module_name from sys.modules and delete any byte-compiled files of the module.
doc_21835
See Migration guide for more details. tf.compat.v1.data.experimental.rejection_resample tf.data.experimental.rejection_resample( class_func, target_dist, initial_dist=None, seed=None ) Note: Resampling is performed via rejection sampling; some fraction of the input values will be dropped. Args class_fun...
doc_21836
Resizes the self tensor to be the same size as the specified tensor. This is equivalent to self.resize_(tensor.size()). Parameters memory_format (torch.memory_format, optional) – the desired memory format of Tensor. Default: torch.contiguous_format. Note that memory format of self is going to be unaffected if self.si...
doc_21837
Get the factor by which to magnify images passed to draw_image(). Allows a backend to have images at a different resolution to other artists.
doc_21838
Computes an orthonormal matrix whose range approximates the range of A. Parameters A2D array The input data matrix. sizeint Size of the return array. n_iterint Number of power iterations used to stabilize the result. power_iteration_normalizer{‘auto’, ‘QR’, ‘LU’, ‘none’}, default=’auto’ Whether the ...
doc_21839
x.__getitem__(y) <==> x[y] Return the item described by i, as a masked array.
doc_21840
Set whether the 3D axes panels are drawn. Parameters bbool
doc_21841
Returns the version of cuDNN
doc_21842
Make a MultiIndex from a DataFrame. Parameters df:DataFrame DataFrame to be converted to MultiIndex. sortorder:int, optional Level of sortedness (must be lexicographically sorted by that level). names:list-like, optional If no names are provided, use the column names, or tuple of column names if the col...
doc_21843
'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_21844
See Migration guide for more details. tf.compat.v1.unstack tf.unstack( value, num=None, axis=0, name='unstack' ) Unpacks num tensors from value by chipping it along the axis dimension. If num is not specified (the default), it is inferred from value's shape. If value.shape[axis] is not known, ValueError is raise...
doc_21845
Loads a configuration from an environment variable pointing to a configuration file. This is basically just a shortcut with nicer error messages for this line of code: app.config.from_pyfile(os.environ['YOURAPPLICATION_SETTINGS']) Parameters variable_name (str) – name of the environment variable silent (bool) – s...
doc_21846
A SQLite database connection has the following attributes and methods: isolation_level Get or set the current default isolation level. None for autocommit mode or one of “DEFERRED”, “IMMEDIATE” or “EXCLUSIVE”. See section Controlling Transactions for a more detailed explanation. in_transaction True if a trans...
doc_21847
Return the current hatching pattern.
doc_21848
assert the mock has been called with the specified calls. The mock_calls list is checked for the calls. If any_order is false then the calls must be sequential. There can be extra calls before or after the specified calls. If any_order is true then the calls can be in any order, but they must all appear in mock_calls. ...
doc_21849
class sklearn.preprocessing.KernelCenterer [source] Center a kernel matrix. Let K(x, z) be a kernel defined by phi(x)^T phi(z), where phi is a function mapping x to a Hilbert space. KernelCenterer centers (i.e., normalize to have zero mean) the data without explicitly computing phi(x). It is equivalent to centering p...
doc_21850
Returns an iterator over module parameters. This is typically passed to an optimizer. Parameters recurse (bool) – if True, then yields parameters of this module and all submodules. Otherwise, yields only parameters that are direct members of this module. Yields Parameter – module parameter Example: >>> for param ...
doc_21851
Return the list of items for a given key. If that key is not in the Headers, the return value will be an empty list. Just like get(), getlist() accepts a type parameter. All items will be converted with the callable defined there. Changelog New in version 0.9: Added support for as_bytes. Parameters key – The key ...
doc_21852
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_21853
See Migration guide for more details. tf.compat.v1.tpu.experimental.embedding.SGD tf.tpu.experimental.embedding.SGD( learning_rate: Union[float, Callable[[], float]] = 0.01, clip_weight_min: Optional[float] = None, clip_weight_max: Optional[float] = None, weight_decay_factor: Optional[float] = None, ...
doc_21854
Use sort_values instead.
doc_21855
Return the absolute value of a number. The argument may be an integer, a floating point number, or an object implementing __abs__(). If the argument is a complex number, its magnitude is returned.
doc_21856
Observer module for computing the quantization parameters based on the running per channel min and max values. This observer uses the tensor min/max statistics to compute the per channel quantization parameters. The module records the running minimum and maximum of incoming tensors, and uses this statistic to compute...
doc_21857
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_21858
Select values between particular times of the day (e.g., 9:00-9:30 AM). By setting start_time to be later than end_time, you can get the times that are not between the two times. Parameters start_time:datetime.time or str Initial time as a time filter limit. end_time:datetime.time or str End time as a time ...
doc_21859
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesAggregateStats tf.raw_ops.BoostedTreesAggregateStats( node_ids, gradients, hessians, feature, max_splits, num_buckets, name=None ) The summary stats contains gradients and hessians accumulated for each node, feature dimension id and bucket. ...
doc_21860
In-place version of sinh()
doc_21861
sklearn.metrics.pairwise.paired_manhattan_distances(X, Y) [source] Compute the L1 distances between the vectors in X and Y. Read more in the User Guide. Parameters Xarray-like of shape (n_samples, n_features) Yarray-like of shape (n_samples, n_features) Returns distancesndarray of shape (n_samples,)
doc_21862
True if this transform is separable in the x- and y- dimensions.
doc_21863
Set the internal flag to true. All threads waiting for it to become true are awakened. Threads that call wait() once the flag is true will not block at all.
doc_21864
Append a collection of Index options together. Parameters other:Index or list/tuple of indices Returns Index
doc_21865
Power transforms are a family of parametric, monotonic transformations that are applied to make data more Gaussian-like. This is useful for modeling issues related to heteroscedasticity (non-constant variance), or other situations where normality is desired. Currently, power_transform supports the Box-Cox transform a...
doc_21866
class sklearn.cluster.FeatureAgglomeration(n_clusters=2, *, affinity='euclidean', memory=None, connectivity=None, compute_full_tree='auto', linkage='ward', pooling_func=<function mean>, distance_threshold=None, compute_distances=False) [source] Agglomerate features. Similar to AgglomerativeClustering, but recursively...
doc_21867
Declares object to be a valid constructor. If object is not callable (and hence not valid as a constructor), raises TypeError.
doc_21868
Parameters fun – a function with two arguments which will be called with the coordinates of the clicked point on the canvas btn – number of the mouse-button, defaults to 1 (left mouse button) add – True or False – if True, a new binding will be added, otherwise it will replace a former binding Bind fun to mous...
doc_21869
Return a function that checks whether a point is in a circle with center (cx, cy) and radius r. The returned function has the signature: f(xy: tuple[float, float]) -> bool
doc_21870
tf.data.TFRecordDataset( filenames, compression_type=None, buffer_size=None, num_parallel_reads=None ) Args filenames A tf.string tensor or tf.data.Dataset containing one or more filenames. compression_type (Optional.) A tf.string scalar evaluating to one of "" (no compression), "ZLIB", or "GZIP". ...
doc_21871
Given a dvi font object, return a name suitable for Op.selectfont. This registers the font information in self.dviFontInfo if not yet registered.
doc_21872
Returns the contents of the Request-rate parameter from robots.txt as a named tuple RequestRate(requests, seconds). If there is no such parameter or it doesn’t apply to the useragent specified or the robots.txt entry for this parameter has invalid syntax, return None. New in version 3.6.
doc_21873
Other Members DEBUG 10 ERROR 40 FATAL 50 INFO 20 WARN 30
doc_21874
Return the picking behavior of the artist. The possible values are described in set_picker. See also set_picker, pickable, pick
doc_21875
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_21876
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyAdagradDA tf.raw_ops.ResourceApplyAdagradDA( var, gradient_accumulator, gradient_squared_accumulator, grad, lr, l1, l2, global_step, use_locking=False, name=None ) Args var A Tensor of type resource. Should be from a Variable()....
doc_21877
Return the font variant as a string. See also font_manager.FontProperties.get_variant
doc_21878
See Migration guide for more details. tf.compat.v1.math.reduce_std tf.math.reduce_std( input_tensor, axis=None, keepdims=False, name=None ) Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which must be uniqu...
doc_21879
This option causes child processes to be reported if they have been continued from a job control stop since their status was last reported. Availability: some Unix systems.
doc_21880
tf.losses.LogCosh Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.LogCosh tf.keras.losses.LogCosh( reduction=losses_utils.ReductionV2.AUTO, name='log_cosh' ) logcosh = log((exp(x) + exp(-x))/2), where x is the error y_pred - y_true. Standalone usage: y_true = [[0., 1...
doc_21881
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 antialiased or aa bool or None capstyle CapStyle or {'butt', 'projecting', 'r...
doc_21882
Creates a criterion that measures the Binary Cross Entropy between the target and the output: The unreduced (i.e. with reduction set to 'none') loss can be described as: ℓ(x,y)=L={l1,…,lN}⊤,ln=−wn[yn⋅log⁡xn+(1−yn)⋅log⁡(1−xn)],\ell(x, y) = L = \{l_1,\dots,l_N\}^\top, \quad l_n = - w_n \left[ y_n \cdot \log x_n + (1 -...
doc_21883
Return whether units are set on any axis.
doc_21884
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_21885
This reads the buffered incoming data from the client into one bytes object. By default this is cached but that behavior can be changed by setting cache to False. Usually it’s a bad idea to call this method without checking the content length first as a client could send dozens of megabytes or more to cause memory prob...
doc_21886
Define basic tools for triangular mesh analysis and improvement. A TriAnalyzer encapsulates a Triangulation object and provides basic tools for mesh analysis and mesh improvement. Parameters triangulationTriangulation The encapsulated triangulation to analyze. Attributes scale_factors Factors to rescale t...
doc_21887
See Migration guide for more details. tf.compat.v1.math.special.spence tf.math.special.spence( x, name=None ) Spence's integral is defined as the integral of log(t) / (1 - t) from 1 to x, with the domain of definition all non-negative real numbers. tf.math.special.spence([0.5, 1., 2., 3.]).numpy() array([ 0.582...
doc_21888
Returns the mean value of all elements in the input tensor. Parameters input (Tensor) – the input tensor. Example: >>> a = torch.randn(1, 3) >>> a tensor([[ 0.2294, -0.5481, 1.3288]]) >>> torch.mean(a) tensor(0.3367) torch.mean(input, dim, keepdim=False, *, out=None) → Tensor Returns the mean value of each ro...
doc_21889
Bases: matplotlib.units.ConversionInterface staticaxisinfo(unit, axis)[source] Set the default axis ticks and labels. Parameters unitUnitData object string unit information for value axisAxis axis for which information is being set Note axis is not used Returns AxisInfo Information to support de...
doc_21890
Return the elements in the given positional indices along an axis. This means that we are not indexing according to actual values in the index attribute of the object. We are indexing according to the actual position of the element in the object. Parameters indices:array-like An array of ints indicating which p...
doc_21891
Returns a list of all hyperparameter specifications.
doc_21892
Return the path of this patch.
doc_21893
Font vertical mode vertical -> bool Gets or sets whether the characters are laid out vertically rather than horizontally. May be useful when rendering Kanji or some other vertical script. Set to True to switch to a vertical text layout. The default is False, place horizontally. Note that the Font class does not autom...
doc_21894
This routine loads a SQLite extension from a shared library. You have to enable extension loading with enable_load_extension() before you can use this routine. Loadable extensions are disabled by default. See 1. New in version 3.2.
doc_21895
pyplot matplotlib.pyplot is a state-based interface to matplotlib. matplotlib.pyplot.plotting()[source] Function Description acorr Plot the autocorrelation of x. angle_spectrum Plot the angle spectrum. annotate Annotate the point xy with text text. arrow Add an arrow to the Axes. autoscale Autoscale...
doc_21896
Compute the magnitude (absolute value) of the frequency spectrum of x. Data is padded to a length of pad_to and the windowing function window is applied to the signal. Parameters x1-D array or sequence Array or sequence containing the data Fsfloat, default: 2 The sampling frequency (samples per time unit). ...
doc_21897
This DDP communication hook implements a simplified PowerSGD gradient compression algorithm described in the paper. This variant does not compress the gradients layer by layer, but instead compresses the flattened input tensor that batches all the gradients. Therefore, it is faster than powerSGD_hook(), but usually r...
doc_21898
Returns the cumulative density/mass function evaluated at value. Parameters value (Tensor) –
doc_21899
Make a plot with log scaling on the y axis. Call signatures: semilogy([x], y, [fmt], data=None, **kwargs) semilogy([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs) This is just a thin wrapper around plot which additionally changes the y-axis to log scaling. All of the concepts and parameters of plot can be used here ...