_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_1600
Estimate mutual information for a discrete target variable. Mutual information (MI) [1] between two random variables is a non-negative value, which measures the dependency between the variables. It is equal to zero if and only if two random variables are independent, and higher values mean higher dependency. The func...
doc_1601
Return a string representation of data. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ...
doc_1602
Insert an ms millisecond pause in output.
doc_1603
Return r length subsequences of elements from the input iterable. The combination tuples are emitted in lexicographic ordering according to the order of the input iterable. So, if the input iterable is sorted, the combination tuples will be produced in sorted order. Elements are treated as unique based on their positio...
doc_1604
Write the bytes-like object, b, and return the number of bytes written. When in non-blocking mode, a BlockingIOError is raised if the buffer needs to be written out but the raw stream blocks.
doc_1605
Create a shared threading.Lock object and return a proxy for it.
doc_1606
Fills the input Tensor with values according to the method described in Delving deep into rectifiers: Surpassing human-level performance on ImageNet classification - He, K. et al. (2015), using a normal distribution. The resulting tensor will have values sampled from N(0,std2)\mathcal{N}(0, \text{std}^2) where std=...
doc_1607
Alias for get_markeredgewidth.
doc_1608
The popitem() method for ordered dictionaries returns and removes a (key, value) pair. The pairs are returned in LIFO order if last is true or FIFO order if false.
doc_1609
Reset number of calls to 0.
doc_1610
Set whether autoscaling is applied to each axis on the next draw or call to Axes.autoscale_view. Parameters bbool
doc_1611
Evaluate the log density model on the data. Parameters Xarray-like of shape (n_samples, n_features) An array of points to query. Last dimension should match dimension of training data (n_features). Returns densityndarray of shape (n_samples,) The array of log(density) evaluations. These are normalized t...
doc_1612
Map all characters in the string through the given mapping table. Equivalent to standard str.translate(). Parameters table:dict Table is a mapping of Unicode ordinals to Unicode ordinals, strings, or None. Unmapped characters are left untouched. Characters mapped to None are deleted. str.maketrans() is a helper...
doc_1613
Return the sketch parameters for the artist. Returns tuple or None A 3-tuple with the following elements: scale: The amplitude of the wiggle perpendicular to the source line. length: The length of the wiggle along the line. randomness: The scale factor by which the length is shrunken or expanded. Returns Non...
doc_1614
Returns the field names of the input datatype as a tuple. Nested structure are flattened beforehand. Parameters adtypedtype Input datatype Examples >>> from numpy.lib import recfunctions as rfn >>> rfn.get_names_flat(np.empty((1,), dtype=int)) is None Traceback (most recent call last): ... AttributeErro...
doc_1615
Computes the exponential chi-squared kernel X and Y. The chi-squared kernel is computed between each pair of rows in X and Y. X and Y have to be non-negative. This kernel is most commonly applied to histograms. The chi-squared kernel is given by: k(x, y) = exp(-gamma Sum [(x - y)^2 / (x + y)]) It can be interpreted ...
doc_1616
In range(24).
doc_1617
Alias for get_linewidth.
doc_1618
Get multilinebaseline.
doc_1619
Return the sketch parameters for the artist. Returns tuple or None A 3-tuple with the following elements: scale: The amplitude of the wiggle perpendicular to the source line. length: The length of the wiggle along the line. randomness: The scale factor by which the length is shrunken or expanded. Returns Non...
doc_1620
Return array of indices to the minimum values along the given axis. Parameters axis{None, integer} If None, the index is into the flattened array, otherwise along the specified axis fill_valuescalar or None, optional Value used to fill in the masked values. If None, the output of minimum_fill_value(self._da...
doc_1621
The associated Paginator object.
doc_1622
Gets whether the font is scalable scalable -> bool Read only. Returns True if the font contains outline glyphs. If so, the point size is not limited to available bitmap sizes.
doc_1623
Returns the time elapsed in milliseconds after the event was recorded and before the end_event was recorded.
doc_1624
get the music volume get_volume() -> value Returns the current volume for the mixer. The value will be between 0.0 and 1.0.
doc_1625
add a sprite or sequence of sprites to a group add(*sprites, **kwargs) -> None If the sprite(s) have an attribute layer then that is used for the layer. If **kwargs contains 'layer' then the sprite(s) will be added to that argument (overriding the sprite layer attribute). If neither is passed then the sprite(s) will ...
doc_1626
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_1627
Project the sample on the first eigenvectors of the graph Laplacian. The adjacency matrix is used to compute a normalized graph Laplacian whose spectrum (especially the eigenvectors associated to the smallest eigenvalues) has an interpretation in terms of minimal number of cuts necessary to split the graph into compa...
doc_1628
Exceptions are re-raised rather than being handled by the app’s error handlers. If not set, this is implicitly true if TESTING or DEBUG is enabled. Default: None
doc_1629
Return the JoinStyle.
doc_1630
Apply the transform to Path path, returning a new Path. In some cases, this transform may insert curves into the path that began as line segments.
doc_1631
A list of objects which the collector found to be unreachable but could not be freed (uncollectable objects). Starting with Python 3.4, this list should be empty most of the time, except when using instances of C extension types with a non-NULL tp_del slot. If DEBUG_SAVEALL is set, then all unreachable objects will be ...
doc_1632
Return the predictions for X for each estimator. 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 y_predsndarray of shape (n_samples, n_estimators) Prediction outputs for ...
doc_1633
Pandas replacement for python datetime.datetime object. Timestamp is the pandas equivalent of python’s Datetime and is interchangeable with it in most cases. It’s the type used for the entries that make up a DatetimeIndex, and other timeseries oriented data structures in pandas. Parameters ts_input:datetime-like,...
doc_1634
Parameters bboxBbox transformTransform
doc_1635
Set the path effects. Parameters path_effectsAbstractPathEffect
doc_1636
Transform a method into a class method. A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom: class C: @classmethod def f(cls, arg1, arg2, ...): ... The @classmethod form is a function decorator – see Functio...
doc_1637
Send a pickled byte-string packet to the socket. The format of the sent byte-string is as described in the documentation for makePickle(). This function allows for partial sends, which can happen when the network is busy.
doc_1638
See Migration guide for more details. tf.compat.v1.raw_ops.FixedLengthRecordReader tf.raw_ops.FixedLengthRecordReader( record_bytes, header_bytes=0, footer_bytes=0, hop_bytes=0, container='', shared_name='', name=None ) Args record_bytes An int. Number of bytes in the record. header_bytes An o...
doc_1639
os.O_WRONLY os.O_RDWR os.O_APPEND os.O_CREAT os.O_EXCL os.O_TRUNC The above constants are available on Unix and Windows.
doc_1640
tf.compat.v1.distributions.Uniform( low=0.0, high=1.0, validate_args=False, allow_nan_stats=True, name='Uniform' ) Mathematical Details The probability density function (pdf) is, pdf(x; a, b) = I[a <= x < b] / Z Z = b - a where low = a, high = b, Z is the normalizing constant, and I[predicate] is the ind...
doc_1641
Access a single value for a row/column label pair. Similar to loc, in that both provide label-based lookups. Use at if you only need to get or set a single value in a DataFrame or Series. Raises KeyError If ‘label’ does not exist in DataFrame. See also DataFrame.iat Access a single value for a row/column p...
doc_1642
Files which are in both a and b, whose contents differ according to the class’s file comparison operator.
doc_1643
Register a new child handler. Arrange for callback(pid, returncode, *args) to be called when a process with PID equal to pid terminates. Specifying another callback for the same process replaces the previous handler. The callback callable must be thread-safe.
doc_1644
set the total number of playback channels set_num_channels(count) -> None Sets the number of available channels for the mixer. The default value is 8. The value can be increased or decreased. If the value is decreased, sounds playing on the truncated channels are stopped.
doc_1645
Return or set pencolor and fillcolor. Several input formats are allowed. They use 0 to 3 arguments as follows: color() Return the current pencolor and the current fillcolor as a pair of color specification strings or tuples as returned by pencolor() and fillcolor(). color(colorstring), color((r,g,b)), color(r,g,b...
doc_1646
tf.map_fn( fn, elems, dtype=None, parallel_iterations=None, back_prop=True, swap_memory=False, infer_shape=True, name=None, fn_output_signature=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (dtype). They will be removed in a future version. Instructions for updating: Use fn_output_signature instead See also t...
doc_1647
Get program scheduling priority. The value which is one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER, and who is interpreted relative to which (a process identifier for PRIO_PROCESS, process group identifier for PRIO_PGRP, and a user ID for PRIO_USER). A zero value for who denotes (respectively) the calling process, the pr...
doc_1648
For syntax errors - the line number where the error occurred.
doc_1649
Between 1 and 12 inclusive.
doc_1650
Set the garbage collection thresholds (the collection frequency). Setting threshold0 to zero disables collection. The GC classifies objects into three generations depending on how many collection sweeps they have survived. New objects are placed in the youngest generation (generation 0). If an object survives a collect...
doc_1651
alias of numpy.testing._private.nosetester.NoseTester
doc_1652
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_1653
Bases: object A multi-page PDF file using the pgf backend Examples >>> import matplotlib.pyplot as plt >>> # Initialize: >>> with PdfPages('foo.pdf') as pdf: ... # As many times as you like, create a figure fig and save it: ... fig = plt.figure() ... pdf.savefig(fig) ... # When no figure is specified ...
doc_1654
Set the lower value of the slider to min. Parameters minfloat
doc_1655
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.tf_stack.StackSummary tf.compat.v1.flags.tf_decorator.tf_stack.StackSummary() Methods append append() append(self: tensorflow.python._tf_stack.StackSummary, x: tensorflow.python._tf_stack.FrameSummary) -> None Add an item to the end of the l...
doc_1656
Return the number of rows and columns of the grid as (nrows, ncols).
doc_1657
Locale category for message display. Python currently does not support application specific locale-aware messages. Messages displayed by the operating system, like those returned by os.strerror() might be affected by this category.
doc_1658
Fit the model and transform with the final estimator Fits all the transforms one after the other and transforms the data, then uses fit_transform on transformed data with the final estimator. Parameters Xiterable Training data. Must fulfill input requirements of first step of the pipeline. yiterable, default=...
doc_1659
Look up a handler function based on the mimetype of msg (see next paragraph), call it, passing through all arguments, and return the result of the call. The expectation is that the handler will extract the payload from msg and return an object that encodes information about the extracted data. To find the handler, look...
doc_1660
Returns a list of windows managed by the notebook.
doc_1661
Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return...
doc_1662
See Migration guide for more details. tf.compat.v1.keras.preprocessing.sequence.TimeseriesGenerator tf.keras.preprocessing.sequence.TimeseriesGenerator( data, targets, length, sampling_rate=1, stride=1, start_index=0, end_index=None, shuffle=False, reverse=False, batch_size=128 ) This class takes in a sequen...
doc_1663
Filter the files by directory.
doc_1664
The prompt issued to solicit input.
doc_1665
class code.InteractiveInterpreter(locals=None) This class deals with parsing and interpreter state (the user’s namespace); it does not deal with input buffering or prompting or input file naming (the filename is always passed in explicitly). The optional locals argument specifies the dictionary in which code will be ...
doc_1666
set the image for the mouse cursor set_cursor(size, hotspot, xormasks, andmasks) -> None When the mouse cursor is visible, it will be displayed as a black and white bitmap using the given bitmask arrays. The size is a sequence containing the cursor width and height. hotspot is a sequence containing the cursor hotspot...
doc_1667
A decorator for running a function in a different locale, correctly resetting it after it has finished. catstr is the locale category as a string (for example "LC_ALL"). The locales passed will be tried sequentially, and the first valid locale will be used.
doc_1668
The name of the file that this DocTest was extracted from; or None if the filename is unknown, or if the DocTest was not extracted from a file.
doc_1669
See Migration guide for more details. tf.compat.v1.sort tf.sort( values, axis=-1, direction='ASCENDING', name=None ) Usage: import tensorflow as tf a = [1, 10, 26.9, 2.8, 166.32, 62.3] b = tf.sort(a,axis=-1,direction='ASCENDING',name=None) c = tf.keras.backend.eval(b) # Here, c = [ 1. 2.8 10. 26.9 62...
doc_1670
Call os.rmdir() on filename. On Windows platforms, this is wrapped with a wait loop that checks for the existence of the file.
doc_1671
Convert a collection of text documents to a matrix of token occurrences It turns a collection of text documents into a scipy.sparse matrix holding token occurrence counts (or binary occurrence information), possibly normalized as token frequencies if norm=’l1’ or projected on the euclidean unit sphere if norm=’l2’. T...
doc_1672
See Migration guide for more details. tf.compat.v1.raw_ops.ChooseFastestBranchDataset tf.raw_ops.ChooseFastestBranchDataset( input_dataset, ratio_numerator, ratio_denominator, other_arguments, num_elements_per_branch, branches, other_arguments_lengths, output_types, output_shapes, name=None ) Args ...
doc_1673
logistic transform (base 10)
doc_1674
See Migration guide for more details. tf.compat.v1.nn.in_top_k tf.compat.v1.math.in_top_k( predictions, targets, k, name=None ) This outputs a batch_size bool array, an entry out[i] is true if the prediction for the target class is finite (not inf, -inf, or nan) and among the top k predictions among all predicti...
doc_1675
Return the cumulative sum of the elements along the given axis. Refer to numpy.cumsum for full documentation. See also numpy.cumsum equivalent function
doc_1676
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_1677
The base class for custom dialogs. body(master) Override to construct the dialog’s interface and return the widget that should have initial focus. buttonbox() Default behaviour adds OK and Cancel buttons. Override for custom button layouts.
doc_1678
Bases: tornado.web.Application classAllFiguresPage(application, request, *, url_prefix='', **kwargs)[source] Bases: tornado.web.RequestHandler get()[source] classDownload(application:tornado.web.Application, request:tornado.httputil.HTTPServerRequest, **kwargs:Any)[source] Bases: tornado.web.RequestHand...
doc_1679
Beta distribution. Conditions on the parameters are alpha > 0 and beta > 0. Returned values range between 0 and 1.
doc_1680
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorCirculant2D tf.linalg.LinearOperatorCirculant2D( spectrum, input_output_dtype=tf.dtypes.complex64, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=True, name='LinearOperatorCirculant2D' ) This operato...
doc_1681
Modify an array or sequence in-place by shuffling its contents. The order of sub-arrays is changed but their contents remains the same. Parameters xndarray or MutableSequence The array, list or mutable sequence to be shuffled. axisint, optional The axis which x is shuffled along. Default is 0. It is only su...
doc_1682
get the approximate power status of the device get_power_level() -> str Get a string giving the power status of the device. One of: empty, low, medium, full, wired, max, or unknown. New in pygame 2.0.0dev11.
doc_1683
Fit the transformer on X. Parameters X{array-like, sparse matrix}, shape (n_samples, n_features) Input data, where n_samples is the number of samples and n_features is the number of features. Returns selfobject Returns self.
doc_1684
Apply feature map to X. Computes an approximate feature map using the kernel between some training points and X. Parameters Xarray-like of shape (n_samples, n_features) Data to transform. Returns X_transformedndarray of shape (n_samples, n_components) Transformed data.
doc_1685
Call score_samples on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports score_samples. New in version 0.24. Parameters Xiterable Data to predict on. Must fulfill input requirements of the underlying estimator. Returns y_scorendarray of shape...
doc_1686
This filter will only pass on records when settings.DEBUG is False. This filter is used as follows in the default LOGGING configuration to ensure that the AdminEmailHandler only sends error emails to admins when DEBUG is False: 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse'...
doc_1687
tf.compat.v1.strings.length( input, name=None, unit='BYTE' ) strings = tf.constant(['Hello','TensorFlow', '🙂']) tf.strings.length(strings).numpy() # default counts bytes array([ 5, 10, 4], dtype=int32) tf.strings.length(strings, unit="UTF8_CHAR").numpy() array([ 5, 10, 1], dtype=int32) Args input A Ten...
doc_1688
Bases: matplotlib.ticker.Locator Find nice tick locations with no more than N being within the view limits. Locations beyond the limits are added to support autoscaling. Parameters nbinsint or 'auto', default: 10 Maximum number of intervals; one less than max number of ticks. If the string 'auto', the number of...
doc_1689
Mask rows of a 2D array that contain masked values. This function is a shortcut to mask_rowcols with axis equal to 0. See also mask_rowcols Mask rows and/or columns of a 2D array. masked_where Mask where a condition is met. Examples >>> import numpy.ma as ma >>> a = np.zeros((3, 3), dtype=int) >>> a[1, 1] = 1...
doc_1690
Check whether an array-like is a 1-D pandas sparse array. Check that the one-dimensional array-like is a pandas sparse array. Returns True if it is a pandas sparse array, not another type of sparse array. Parameters arr:array-like Array-like to check. Returns bool Whether or not the array-like is a pandas...
doc_1691
Return a dictionary of subplot layout parameters.
doc_1692
For image backends - is not required. For GUI backends - this should be overridden if drawing should be done in interactive python mode.
doc_1693
[Deprecated] Search for fonts in the specified font directory, or use the system directories if none given. Additionally, it is searched for user fonts installed. A list of TrueType font filenames are returned by default, or AFM fonts if fontext == 'afm'. Notes Deprecated since version 3.5.
doc_1694
Time of most recent access expressed in nanoseconds as an integer.
doc_1695
This function takes an input source and an optional base URL and returns a fully resolved InputSource object ready for reading. The input source can be given as a string, a file-like object, or an InputSource object; parsers will use this function to implement the polymorphic source argument to their parse() method.
doc_1696
Print useful debugging information” New in version 0.20.
doc_1697
Boolean flag that is True if the field has a many-to-many relation; False otherwise. The only field included with Django where this is True is ManyToManyField.
doc_1698
See Migration guide for more details. tf.compat.v1.raw_ops.IgammaGradA tf.raw_ops.IgammaGradA( a, x, name=None ) Args a A Tensor. Must be one of the following types: float32, float64. x A Tensor. Must have the same type as a. name A name for the operation (optional). Returns A Tens...
doc_1699
Return the JoinStyle for solid lines. See also set_solid_joinstyle.