_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_9700
Bases: matplotlib.ticker.Formatter Format tick values as a number. Parameters useOffsetbool or float, default: rcParams["axes.formatter.useoffset"] (default: True) Whether to use offset notation. See set_useOffset. useMathTextbool, default: rcParams["axes.formatter.use_mathtext"] (default: False) Whether to...
doc_9701
Identical to the unpack_from() function, using the compiled format. The buffer’s size in bytes, starting at position offset, must be at least size.
doc_9702
Draw a Path instance using the given affine transform.
doc_9703
See Migration guide for more details. tf.compat.v1.raw_ops.RecvTPUEmbeddingActivations tf.raw_ops.RecvTPUEmbeddingActivations( num_outputs, config, name=None ) The TPU system performs the embedding lookups and aggregations specified by the arguments to TPUEmbeddingEnqueue(Integer/Sparse/SparseTensor)Batch. The r...
doc_9704
Each time a telnet option is read on the input flow, this callback (if set) is called with the following parameters: callback(telnet socket, command (DO/DONT/WILL/WONT), option). No other action is done afterwards by telnetlib.
doc_9705
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_9706
Test if the end of each string element matches a pattern. Equivalent to str.endswith(). Parameters pat:str Character sequence. Regular expressions are not accepted. na:object, default NaN Object shown if element tested is not a string. The default depends on dtype of the array. For object-dtype, numpy.nan i...
doc_9707
Accept: application/json Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed Content-Type: application/json Content-Length: 42 {"detail": "Method 'DELETE' not allowed."} Validation errors are handled slightly differently, and will include...
doc_9708
Convert a MultiIndex to an Index of Tuples containing the level values. Returns pd.Index Index with the MultiIndex data represented in Tuples. See also MultiIndex.from_tuples Convert flat index back to MultiIndex. Notes This method will simply return the caller if called by anything other than a MultiIn...
doc_9709
Set the image array.
doc_9710
Call self as a function.
doc_9711
See Migration guide for more details. tf.compat.v1.raw_ops.StatefulStandardNormal tf.raw_ops.StatefulStandardNormal( resource, shape, dtype=tf.dtypes.float32, name=None ) The generated values will have mean 0 and standard deviation 1. Args resource A Tensor of type resource. The handle of the resource v...
doc_9712
Called before matching and building to keep the compiled rules in the correct order after things changed. Return type None
doc_9713
Alias for set_edgecolor.
doc_9714
An extra-trees classifier. This class implements a meta estimator that fits a number of randomized decision trees (a.k.a. extra-trees) on various sub-samples of the dataset and uses averaging to improve the predictive accuracy and control over-fitting. Read more in the User Guide. Parameters n_estimatorsint, defa...
doc_9715
Fit the model using X, y as training data. Parameters Xarray-like of shape (n_samples, n_features) Training data. yarray-like of shape (n_samples,) Target values. Returns selfobject returns an instance of self.
doc_9716
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_9717
Compute elastic net path with coordinate descent. The elastic net optimization function varies for mono and multi-outputs. For mono-output tasks it is: 1 / (2 * n_samples) * ||y - Xw||^2_2 + alpha * l1_ratio * ||w||_1 + 0.5 * alpha * (1 - l1_ratio) * ||w||^2_2 For multi-output tasks it is: (1 / (2 * n_samples)) * ||...
doc_9718
A convenience method which coerces the option in the specified section to a floating point number. See get() for explanation of raw, vars and fallback.
doc_9719
class sklearn.exceptions.UndefinedMetricWarning [source] Warning used when the metric is invalid Changed in version 0.18: Moved from sklearn.base. Attributes args Methods with_traceback Exception.with_traceback(tb) – set self.__traceback__ to tb and return self. with_traceback() Exception.with_traceba...
doc_9720
Toggle the gridlines, and optionally set the properties of the lines.
doc_9721
Bases: matplotlib.colors.Normalize Normalize data with a set center. Useful when mapping data with an unequal rates of change around a conceptual center, e.g., data that range from -2 to 4, with 0 as the midpoint. Parameters vcenterfloat The data value that defines 0.5 in the normalization. vminfloat, optiona...
doc_9722
See Migration guide for more details. tf.compat.v1.app.flags.EnumFlag tf.compat.v1.flags.EnumFlag( name, default, help, enum_values, short_name=None, case_sensitive=True, **args ) Attributes value Methods flag_type flag_type() Returns a str that describes the type of the flag. Note: we use strings...
doc_9723
The factory method of SocketHandler is here overridden to create a UDP socket (socket.SOCK_DGRAM).
doc_9724
Return the corners of this rectangle as an array of points. Specifically, this returns the array [[x0, y0], [x0, y1], [x1, y0], [x1, y1]].
doc_9725
True if this transform has a corresponding inverse transform.
doc_9726
Set a timeout on blocking socket operations. The value argument can be a nonnegative floating point number expressing seconds, or None. If a non-zero value is given, subsequent socket operations will raise a timeout exception if the timeout period value has elapsed before the operation has completed. If zero is given, ...
doc_9727
Filter: Select the p-values for an estimated false discovery rate This uses the Benjamini-Hochberg procedure. alpha is an upper bound on the expected false discovery rate. Read more in the User Guide. Parameters score_funccallable, default=f_classif Function taking two arrays X and y, and returning a pair of ar...
doc_9728
tf.compat.v1.train.inverse_time_decay( learning_rate, global_step, decay_steps, decay_rate, staircase=False, name=None ) When training a model, it is often recommended to lower the learning rate as the training progresses. This function applies an inverse decay function to a provided initial learning rate. It requ...
doc_9729
Returns the number of splitting iterations in the cross-validator 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. yobject Always ignored, exists for compatibility. groupsobject Always ignored, exist...
doc_9730
Removes an arbitrary member of the dictionary (since there’s no concept of ordering), and returns a two value tuple containing the key and a list of all values for the key. Raises KeyError when called on an empty dictionary. For example: >>> q = QueryDict('a=1&a=2&a=3', mutable=True) >>> q.popitem() ('a', ['1', '2', '3...
doc_9731
The same as the ellipsis literal “...”. Special value used mostly in conjunction with extended slicing syntax for user-defined container data types.
doc_9732
Prevents a TLSv1.3 connection. This option is only applicable in conjunction with PROTOCOL_TLS. It prevents the peers from choosing TLSv1.3 as the protocol version. TLS 1.3 is available with OpenSSL 1.1.1 or later. When Python has been compiled against an older version of OpenSSL, the flag defaults to 0. New in versio...
doc_9733
See Migration guide for more details. tf.compat.v1.raw_ops.MaxPoolGradGradV2 tf.raw_ops.MaxPoolGradGradV2( orig_input, orig_output, grad, ksize, strides, padding, data_format='NHWC', name=None ) Args orig_input A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8...
doc_9734
Add x to the left side of the deque.
doc_9735
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_9736
Draw a series of Gouraud triangles. Parameters points(N, 3, 2) array-like Array of N (x, y) points for the triangles. colors(N, 3, 4) array-like Array of N RGBA colors for each point of the triangles. transformmatplotlib.transforms.Transform An affine transform to apply to the points.
doc_9737
Return a match score between variant1 and variant2. An exact match returns 0.0, otherwise 1.0.
doc_9738
Least squares fit of Hermite series to data. Return the coefficients of a HermiteE series of degree deg that is the least squares fit to the data values y given at points x. If y is 1-D the returned coefficients will also be 1-D. If y is 2-D multiple fits are done, one for each column of y, and the resulting coeffici...
doc_9739
Bases: object Sankey diagram. Sankey diagrams are a specific type of flow diagram, in which the width of the arrows is shown proportionally to the flow quantity. They are typically used to visualize energy or material or cost transfers between processes. Wikipedia (6/1/2011) Create a new Sankey instance. The optional...
doc_9740
See Migration guide for more details. tf.compat.v1.raw_ops.FusedBatchNormV2 tf.raw_ops.FusedBatchNormV2( x, scale, offset, mean, variance, epsilon=0.0001, exponential_avg_factor=1, data_format='NHWC', is_training=True, name=None ) Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". The s...
doc_9741
Attributes level Level level message string message Class Variables DEBUGGING 10 ERROR 40 FATAL 50 INFO 20 Level UNKNOWN 0 WARN 30
doc_9742
tf.experimental.numpy.floor( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.floor.
doc_9743
Helper to print a traceback from the timed code. Typical use: t = Timer(...) # outside the try/except try: t.timeit(...) # or t.repeat(...) except Exception: t.print_exc() The advantage over the standard traceback is that source lines in the compiled template will be displayed. The optional file argum...
doc_9744
Fit KernelCenterer Parameters Kndarray of shape (n_samples, n_samples) Kernel matrix. yNone Ignored. Returns selfobject Fitted transformer.
doc_9745
Removes all specified elements from a sparse tensor self and resizes self to the desired size and the number of sparse and dense dimensions. Parameters size (torch.Size) – the desired size. sparse_dim (int) – the number of sparse dimensions dense_dim (int) – the number of dense dimensions
doc_9746
Computes the dot product of two 1D tensors. The vdot(a, b) function handles complex numbers differently than dot(a, b). If the first argument is complex, the complex conjugate of the first argument is used for the calculation of the dot product. Note Unlike NumPy’s vdot, torch.vdot intentionally only supports computin...
doc_9747
Applies a 1D average pooling over an input signal composed of several input planes. See AvgPool1d for details and output shape. Parameters input – input tensor of shape (minibatch,in_channels,iW)(\text{minibatch} , \text{in\_channels} , iW) kernel_size – the size of the window. Can be a single number or a tuple ...
doc_9748
See Migration guide for more details. tf.compat.v1.raw_ops.RefNextIteration tf.raw_ops.RefNextIteration( data, name=None ) Args data A mutable Tensor. The tensor to be made available to the next iteration. name A name for the operation (optional). Returns A mutable Tensor. Has the same t...
doc_9749
Check if y is in a multilabel format. Parameters yndarray of shape (n_samples,) Target values. Returns outbool Return True, if y is in a multilabel format, else `False. Examples >>> import numpy as np >>> from sklearn.utils.multiclass import is_multilabel >>> is_multilabel([0, 1, 0, 1]) False >>> is...
doc_9750
See Migration guide for more details. tf.compat.v1.raw_ops.ExtractImagePatches tf.raw_ops.ExtractImagePatches( images, ksizes, strides, rates, padding, name=None ) Args images A Tensor. Must be one of the following types: bfloat16, half, float32, float64, int8, int16, int32, int64, uint8, uint16, uint32...
doc_9751
internally process pygame event handlers pump() -> None For each frame of your game, you will need to make some sort of call to the event queue. This ensures your program can internally interact with the rest of the operating system. If you are not using other event functions in your game, you should call pygame.even...
doc_9752
A long short-term memory (LSTM) cell. A dynamic quantized LSTMCell module with floating point tensor as inputs and outputs. Weights are quantized to 8 bits. We adopt the same interface as torch.nn.LSTMCell, please see https://pytorch.org/docs/stable/nn.html#torch.nn.LSTMCell for documentation. Examples: >>> rnn = nn....
doc_9753
Pack the values v1, v2, … according to the format string format and write the packed bytes into the writable buffer buffer starting at position offset. Note that offset is a required argument.
doc_9754
Valid metrics for pairwise_distances. This function simply returns the valid pairwise distance metrics. It exists to allow for a description of the mapping for each of the valid strings. The valid distance metrics, and the function they map to, are: metric Function ‘cityblock’ metrics.pairwise.manhattan_distanc...
doc_9755
Return a string describing the differences between the expected output for a given example (example) and the actual output (got). optionflags is the set of option flags used to compare want and got.
doc_9756
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_9757
Firstly, the syntax for bytes literals is largely the same as that for string literals, except that a b prefix is added: Single quotes: b'still allows embedded "double" quotes' Double quotes: b"still allows embedded 'single' quotes". Triple quoted: b'''3 single quotes''', b"""3 double quotes""" Only ASCII character...
doc_9758
Compute the eigenvalues of a general matrix. Main difference between eigvals and eig: the eigenvectors aren’t returned. Parameters a(…, M, M) array_like A complex- or real-valued matrix whose eigenvalues will be computed. Returns w(…, M,) ndarray The eigenvalues, each repeated according to its multiplic...
doc_9759
Set the (group) id for the artist. Parameters gidstr
doc_9760
Return a shallow copy of x.
doc_9761
draw text on a new Surface render(text, antialias, color, background=None) -> Surface This creates a new Surface with the specified text rendered on it. pygame provides no way to directly draw text on an existing Surface: instead you must use Font.render() to create an image (Surface) of the text, then blit this imag...
doc_9762
Bases: matplotlib.mathtext.MathtextBackend [Deprecated] Store information to write a mathtext rendering to the PostScript backend. Notes Deprecated since version 3.4. get_results(box, used_characters)[source] Return a backend-specific tuple to return to the backend after all processing is done. render_glyph...
doc_9763
Convert a single line of uuencoded data back to binary and return the binary data. Lines normally contain 45 (binary) bytes, except for the last line. Line data may be followed by whitespace.
doc_9764
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_9765
Fit the model and recover the sources from X. 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. yIgnored Returns X_newndarray of shape (n_samples, n_components)
doc_9766
Display a message on a device. Parameters mesgstr Message to display. deviceobject Device to write message. If None, defaults to sys.stdout which is very similar to print. device needs to have write() and flush() methods. linefeedbool, optional Option whether to print a line feed or not. Defaults to Tru...
doc_9767
Tokenize a source reading unicode strings instead of bytes. Like tokenize(), the readline argument is a callable returning a single line of input. However, generate_tokens() expects readline to return a str object rather than bytes. The result is an iterator yielding named tuples, exactly like tokenize(). It does not y...
doc_9768
This installs the function _() in Python’s builtins namespace, based on domain, localedir, and codeset which are passed to the function translation(). For the names parameter, please see the description of the translation object’s install() method. As seen below, you usually mark the strings in your application that ar...
doc_9769
os.SEEK_CUR os.SEEK_END Parameters to the lseek() function. Their values are 0, 1, and 2, respectively. New in version 3.3: Some operating systems could support additional values, like os.SEEK_HOLE or os.SEEK_DATA.
doc_9770
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_9771
A message with Maildir-specific behaviors. Parameter message has the same meaning as with the Message constructor. Typically, a mail user agent application moves all of the messages in the new subdirectory to the cur subdirectory after the first time the user opens and closes the mailbox, recording that the messages ar...
doc_9772
See Migration guide for more details. tf.compat.v1.assert_same_float_dtype, tf.compat.v1.debugging.assert_same_float_dtype tf.debugging.assert_same_float_dtype( tensors=None, dtype=None ) For ops such as matrix multiplication, inputs and weights must be of the same float type. This function validates that all te...
doc_9773
A version of Python’s urllib.parse.urlencode() function that can operate on MultiValueDict and non-string values.
doc_9774
See torch.sinc()
doc_9775
An ExtensionDtype for int32 integer data. Changed in version 1.0.0: Now uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
doc_9776
Ensure that item is visible. Sets all of item’s ancestors open option to True, and scrolls the widget if necessary so that item is within the visible portion of the tree.
doc_9777
See Migration guide for more details. tf.compat.v1.raw_ops.EnqueueTPUEmbeddingSparseTensorBatch tf.raw_ops.EnqueueTPUEmbeddingSparseTensorBatch( sample_indices, embedding_indices, aggregation_weights, mode_override, table_ids, device_ordinal=-1, combiners=[], max_sequence_lengths=[], name=None ) sample_indic...
doc_9778
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_9779
Run the GUI event loop for interval seconds. If there is an active figure, it will be updated and displayed before the pause, and the GUI event loop (if any) will run during the pause. This can be used for crude animation. For more complex animation use matplotlib.animation. If there is no active figure, sleep for in...
doc_9780
Creates a new context. If a field is not specified or is None, the default values are copied from the DefaultContext. If the flags field is not specified or is None, all flags are cleared. prec is an integer in the range [1, MAX_PREC] that sets the precision for arithmetic operations in the context. The rounding option...
doc_9781
Alias for get_facecolor.
doc_9782
This class represents Netscape, RFC 2109 and RFC 2965 cookies. It is not expected that users of http.cookiejar construct their own Cookie instances. Instead, if necessary, call make_cookies() on a CookieJar instance.
doc_9783
Return a 3-tuple containing ISO year, week number, and weekday.
doc_9784
Indicates if the widget supports edition of 3D data (default is False).
doc_9785
See Migration guide for more details. tf.compat.v1.strings.unicode_decode tf.strings.unicode_decode( input, input_encoding, errors='replace', replacement_char=65533, replace_control_characters=False, name=None ) result[i1...iN, j] is the Unicode codepoint for the jth character in input[i1...iN], when decoded...
doc_9786
This DDP communication hook implements PowerSGD gradient compression algorithm described in the paper. Once gradient tensors are aggregated across all workers, this hook applies compression as follows: Views the input flattened 1D gradient tensor as two groups of per-parameter tensors: high-rank tensors and vector-l...
doc_9787
See Migration guide for more details. tf.compat.v1.raw_ops.Range tf.raw_ops.Range( start, limit, delta, name=None ) This operation creates a sequence of numbers that begins at start and extends by increments of delta up to but not including limit. For example: # 'start' is 3 # 'limit' is 18 # 'delta' is 3 tf.ran...
doc_9788
class Comment: def __init__(self, email, content, created=None): self.email = email self.content = content self.created = created or datetime.now() comment = Comment(email='leila@example.com', content='foo bar') We'll declare a serializer that we can use to serialize and deserialize data ...
doc_9789
filecmp.cmp(f1, f2, shallow=True) Compare the files named f1 and f2, returning True if they seem equal, False otherwise. If shallow is true, files with identical os.stat() signatures are taken to be equal. Otherwise, the contents of the files are compared. Note that no external programs are called from this function,...
doc_9790
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_9791
Down-sample N-dimensional image by local averaging. The image is padded with cval if it is not perfectly divisible by the integer factors. In contrast to interpolation in skimage.transform.resize and skimage.transform.rescale this function calculates the local mean of elements in each block of size factors in the inp...
doc_9792
False if a cdrom is in the drive get_empty() -> bool Return False if there is a cdrom currently in the drive. If the drive is empty this will return True.
doc_9793
Plot a pie chart. Make a pie chart of array x. The fractional area of each wedge is given by x/sum(x). If sum(x) < 1, then the values of x give the fractional area directly and the array will not be normalized. The resulting pie will have an empty wedge of size 1 - sum(x). The wedges are plotted counterclockwise, by ...
doc_9794
Determines the message ID, event category and event type, and then logs the message in the NT event log.
doc_9795
Parameters fun – a function with no arguments t – a number >= 0 Install a timer that calls fun after t milliseconds. >>> running = True >>> def f(): ... if running: ... fd(50) ... lt(60) ... screen.ontimer(f, 250) >>> f() ### makes the turtle march around >>> running = False
doc_9796
turtle.lt(angle) Parameters angle – a number (integer or float) Turn turtle left by angle units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientation depends on the turtle mode, see mode(). >>> turtle.heading() 22.0 >>> turtle.left(45) >>> turtle.heading() 67...
doc_9797
Provides a dictionary, based on record, which is to be URL-encoded and sent to the web server. The default implementation just returns record.__dict__. This method can be overridden if e.g. only a subset of LogRecord is to be sent to the web server, or if more specific customization of what’s sent to the server is requ...
doc_9798
tf.distribute.Strategy( extended ) See the guide for overview and examples. See tf.distribute.StrategyExtended and tf.distribute for a glossory of concepts mentioned on this page such as "per-replica", replica, and reduce. In short: To use it with Keras compile/fit, please read. You may pass descendant of tf.dist...
doc_9799
The Map for this instance. You can use this to change the routing converters after the class was created but before any routes are connected. Example: from werkzeug.routing import BaseConverter class ListConverter(BaseConverter): def to_python(self, value): return value.split(',') def to_url(self, valu...