_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_26600
Return the day of the week as an integer, where Monday is 0 and Sunday is 6. The same as self.date().weekday(). See also isoweekday().
doc_26601
Compute k-means clustering. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training instances to cluster. It must be noted that the data will be converted to C ordering, which will cause a memory copy if the given data is not C-contiguous. If a sparse matrix is passed, a copy will be m...
doc_26602
Creates the form data parser. Instantiates the form_data_parser_class with some parameters. Changelog New in version 0.8. Return type werkzeug.formparser.FormDataParser
doc_26603
Decorator indicating that passing parameter name (or any of the following ones) positionally to func is being deprecated. When used on a method that has a pyplot wrapper, this should be the outermost decorator, so that boilerplate.py can access the original signature.
doc_26604
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with an outward square bracket at its start and a head at the end. Parameters widthAfloat, default: 1.0 Width of the bracket. lengthAfloat, default: 0.2 Length of the bracket. angleAfloat, default: 0 degrees Orientation of the bracket, as a counterclo...
doc_26605
The number of capturing groups in the pattern.
doc_26606
Set the interpreter’s thread switch interval (in seconds). This floating-point value determines the ideal duration of the “timeslices” allocated to concurrently running Python threads. Please note that the actual value can be higher, especially if long-running internal functions or methods are used. Also, which thread ...
doc_26607
See Migration guide for more details. tf.compat.v1.data.experimental.shuffle_and_repeat tf.data.experimental.shuffle_and_repeat( buffer_size, count=None, seed=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.data.Dataset.shuffle(buffer_size, s...
doc_26608
Provide the rank of values within each group. Parameters method:{‘average’, ‘min’, ‘max’, ‘first’, ‘dense’}, default ‘average’ average: average rank of group. min: lowest rank in group. max: highest rank in group. first: ranks assigned in order they appear in the array. dense: like ‘min’, but rank always incre...
doc_26609
Return whether units are set on any axis.
doc_26610
Returns True if the data type of self is a complex data type.
doc_26611
Compute ranking-based average precision. Label ranking average precision (LRAP) is the average over each ground truth label assigned to each sample, of the ratio of true vs. total labels with lower score. This metric is used in multilabel ranking problem, where the goal is to give better rank to the labels associated...
doc_26612
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_26613
To initialize a distance object, pass in a keyword corresponding to the desired unit attribute name set with desired value. For example, the following creates a distance object representing 5 miles: >>> dist = Distance(mi=5) __getattr__(unit_att) Returns the distance value in units corresponding to the given uni...
doc_26614
Mask corresponding to a flood fill. Starting at a specific seed_point, connected points equal or within tolerance of the seed value are found. Parameters imagendarray An n-dimensional array. seed_pointtuple or int The point in image used as the starting point for the flood fill. If the image is 1D, this poi...
doc_26615
The Tree widget can be used to display hierarchical data in a tree form. The user can adjust the view of the tree by opening or closing parts of the tree.
doc_26616
Return the url.
doc_26617
The scroll bar widget.
doc_26618
'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_26619
See Migration guide for more details. tf.compat.v1.raw_ops.RandomDataset tf.raw_ops.RandomDataset( seed, seed2, output_types, output_shapes, name=None ) Creates a Dataset that returns a stream of uniformly distributed pseudorandom 64-bit signed integers. In the TensorFlow Python API, you can instantiate this dat...
doc_26620
This method serves the 'POST' request type, only allowed for CGI scripts. Error 501, “Can only POST to CGI scripts”, is output when trying to POST to a non-CGI url.
doc_26621
Return non-zero if the mode is from a FIFO (named pipe).
doc_26622
Push ch so the next getch() will return it. Note Only one ch can be pushed before getch() is called.
doc_26623
Called by Flask.register_blueprint() to register all views and callbacks registered on the blueprint with the application. Creates a BlueprintSetupState and calls each record() callbackwith it. Parameters app (Flask) – The application this blueprint is being registered with. options (dict) – Keyword arguments forw...
doc_26624
Bases: matplotlib.patches.Patch A general polycurve path patch. path is a Path object. Valid keyword arguments 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 unknown animated bool antialiased or aa bool or No...
doc_26625
Concatenates a sequence of tensors along a new dimension. All tensors need to be of the same size. Parameters tensors (sequence of Tensors) – sequence of tensors to concatenate dim (int) – dimension to insert. Has to be between 0 and the number of dimensions of concatenated tensors (inclusive) Keyword Arguments ...
doc_26626
Alias for set_linestyle.
doc_26627
Returns the list of elementname’s options.
doc_26628
Decode an Intel/DVI ADPCM coded fragment to a linear fragment. See the description of lin2adpcm() for details on ADPCM coding. Return a tuple (sample, newstate) where the sample has the width specified in width.
doc_26629
Returns a new tensor with the logit of the elements of input. input is clamped to [eps, 1 - eps] when eps is not None. When eps is None and input < 0 or input > 1, the function will yields NaN. yi=ln⁡(zi1−zi)zi={xiif eps is Noneepsif xi<epsxiif eps≤xi≤1−eps1−epsif xi>1−epsy_{i} = \ln(\frac{z_{i}}{1 - z_{i}}) \\ z_{i} ...
doc_26630
tf.experimental.numpy.atleast_2d( *arys ) See the NumPy documentation for numpy.atleast_2d.
doc_26631
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_26632
Augment dataset with an additional dummy feature. This is useful for fitting an intercept term with implementations which cannot otherwise fit it directly. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Data. valuefloat Value to use for the dummy feature. Returns X{ndarray, s...
doc_26633
Set the (group) id for the artist. Parameters gidstr
doc_26634
Add text to the Axes. Add the text s to the Axes at location x, y in data coordinates. Parameters x, yfloat The position to place the text. By default, this is in data coordinates. The coordinate system can be changed using the transform parameter. sstr The text. fontdictdict, default: None A dictionary...
doc_26635
The flag is set when the code object is a nested function.
doc_26636
socket.PF_RDS socket.SOL_RDS RDS_* Many constants of these forms, documented in the Linux documentation, are also defined in the socket module. Availability: Linux >= 2.6.30. New in version 3.3.
doc_26637
mmap.MADV_RANDOM mmap.MADV_SEQUENTIAL mmap.MADV_WILLNEED mmap.MADV_DONTNEED mmap.MADV_REMOVE mmap.MADV_DONTFORK mmap.MADV_DOFORK mmap.MADV_HWPOISON mmap.MADV_MERGEABLE mmap.MADV_UNMERGEABLE mmap.MADV_SOFT_OFFLINE mmap.MADV_HUGEPAGE mmap.MADV_NOHUGEPAGE mmap.MADV_DONTDUMP mmap.MADV_DODUMP m...
doc_26638
Return the Discrete Fourier Transform sample frequencies (for usage with rfft, irfft). The returned float array f contains the frequency bin centers in cycles per unit of the sample spacing (with zero at the start). For instance, if the sample spacing is in seconds, then the frequency unit is cycles/second. Given a w...
doc_26639
See Migration guide for more details. tf.compat.v1.train.Features Attributes feature repeated FeatureEntry feature Child Classes class FeatureEntry
doc_26640
When the “multi_index” flag was specified, this removes it, allowing the internal iteration structure to be optimized further.
doc_26641
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 unknown animated bool antialiased bool or None capstyle CapStyle or {'butt', 'projecting', 'round'} clip...
doc_26642
Get the value of an attribute if it is present, otherwise set and return a default value. Like dict.setdefault(). Parameters name (str) – Name of attribute to get. default (Optional[Any]) – Value to set and return if the attribute is not present. Return type Any Changelog New in version 0.11.
doc_26643
msvcrt.LK_NBRLCK Locks the specified bytes. If the bytes cannot be locked, OSError is raised.
doc_26644
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_26645
Alias for get_edgecolor.
doc_26646
base64.b64encode(s, altchars=None) Encode the bytes-like object s using Base64 and return the encoded bytes. Optional altchars must be a bytes-like object of at least length 2 (additional characters are ignored) which specifies an alternative alphabet for the + and / characters. This allows an application to e.g. gen...
doc_26647
Returns the length scale
doc_26648
Set the radial gridlines on a polar plot. Parameters radiituple with floats The radii for the radial gridlines labelstuple with strings or None The labels to use at each radial gridline. The matplotlib.ticker.ScalarFormatter will be used if None. anglefloat The angular position of the radius labels in d...
doc_26649
If tzinfo is None, returns None, else returns self.tzinfo.tzname(self), raises an exception if the latter doesn’t return None or a string object,
doc_26650
'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_26651
Multiply a polynomial by x. Multiply the polynomial c by x, where x is the independent variable. Parameters carray_like 1-D array of polynomial coefficients ordered from low to high. Returns outndarray Array representing the result of the multiplication. See also polyadd, polysub, polymul, polydi...
doc_26652
See Migration guide for more details. tf.compat.v1.raw_ops.Mfcc tf.raw_ops.Mfcc( spectrogram, sample_rate, upper_frequency_limit=4000, lower_frequency_limit=20, filterbank_channel_count=40, dct_coefficient_count=13, name=None ) Mel Frequency Cepstral Coefficients are a way of representing audio data that's b...
doc_26653
Set the normalization instance. Parameters normNormalize or None Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.
doc_26654
Check if coefficients match. New in version 1.6.0. Parameters otherclass instance The other class must have the coef attribute. Returns boolboolean True if the coefficients are the same, False otherwise.
doc_26655
A C14N 2.0 writer. Arguments are the same as for the canonicalize() function. This class does not build a tree but translates the callback events directly into a serialised form using the write function. New in version 3.8.
doc_26656
A mixin class that provides facilities for creating and displaying forms. Mixins django.views.generic.base.ContextMixin Methods and Attributes initial A dictionary containing initial data for the form. form_class The form class to instantiate. success_url The URL to redirect to when the form is succes...
doc_26657
class sklearn.linear_model.TweedieRegressor(*, power=0.0, alpha=1.0, fit_intercept=True, link='auto', max_iter=100, tol=0.0001, warm_start=False, verbose=0) [source] Generalized Linear Model with a Tweedie distribution. This estimator can be used to model different GLMs depending on the power parameter, which determi...
doc_26658
The masked constant is a special case of MaskedArray, with a float datatype and a null shape. It is used to test whether a specific entry of a masked array is masked, or to mask one or several entries of a masked array: >>> x = ma.array([1, 2, 3], mask=[0, 1, 0]) >>> x[1] is ma.masked True >>> x[-1] = ma.masked >>> x...
doc_26659
Evaluate a polynomial at points x. If c is of length n + 1, this function returns the value \[p(x) = c_0 + c_1 * x + ... + c_n * x^n\] The parameter x is converted to an array only if it is a tuple or a list, otherwise it is treated as a scalar. In either case, either x or its elements must support multiplication an...
doc_26660
Compute Receiver operating characteristic (ROC). Note: this implementation is restricted to the binary classification task. Read more in the User Guide. Parameters y_truendarray of shape (n_samples,) True binary labels. If labels are not either {-1, 1} or {0, 1}, then pos_label should be explicitly given. y_s...
doc_26661
If distinct=True, Avg returns the mean value of unique values. This is the SQL equivalent of AVG(DISTINCT <field>). The default value is False.
doc_26662
See Migration guide for more details. tf.compat.v1.math.l2_normalize, tf.compat.v1.nn.l2_normalize tf.compat.v1.linalg.l2_normalize( x, axis=None, epsilon=1e-12, name=None, dim=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (dim). They will be removed in a future version. Instructions for updating: dim is deprec...
doc_26663
Applies SoftMax over features to each spatial location. When given an image of Channels x Height x Width, it will apply Softmax to each location (Channels,hi,wj)(Channels, h_i, w_j) Shape: Input: (N,C,H,W)(N, C, H, W) Output: (N,C,H,W)(N, C, H, W) (same shape as input) Returns a Tensor of the same dimensi...
doc_26664
Performs a matrix multiplication of the sparse matrix input with the dense matrix mat. Parameters input (Tensor) – a sparse matrix to be matrix multiplied mat (Tensor) – a dense matrix to be matrix multiplied
doc_26665
Return (xmin, xmax, ymin, ymax).
doc_26666
Set the y-axis scale. Parameters value{"linear", "log", "symlog", "logit", ...} or ScaleBase The axis scale type to apply. **kwargs Different keyword arguments are accepted, depending on the scale. See the respective class keyword arguments: matplotlib.scale.LinearScale matplotlib.scale.LogScale matplotlib.s...
doc_26667
Applies the Gaussian Error Linear Units function: GELU(x)=x∗Φ(x)\text{GELU}(x) = x * \Phi(x) where Φ(x)\Phi(x) is the Cumulative Distribution Function for Gaussian Distribution. Shape: Input: (N,∗)(N, *) where * means, any number of additional dimensions Output: (N,∗)(N, *) , same shape as the input Examp...
doc_26668
An HTTPConnection instance represents one transaction with an HTTP server. It should be instantiated passing it a host and optional port number. If no port number is passed, the port is extracted from the host string if it has the form host:port, else the default HTTP port (80) is used. If the optional timeout paramete...
doc_26669
email.parser: Parsing email messages FeedParser API Parser API Additional notes email.generator: Generating MIME documents email.policy: Policy Objects email.errors: Exception and Defect classes email.headerregistry: Custom Header Objects email.contentmanager: Managing MIME Content Content Manager Instances email:...
doc_26670
Timeout in seconds to detect when a test hangs. It is long enough to reduce the risk of test failure on the slowest Python buildbots. It should not be used to mark a test as failed if the test takes “too long”. The timeout value depends on the regrtest --timeout command line option. Its default value is 5 minutes. See ...
doc_26671
Numerical positive, element-wise. New in version 1.13.0. Parameters xarray_like or scalar Input array. Returns yndarray or scalar Returned array or scalar: y = +x. This is a scalar if x is a scalar. Notes Equivalent to x.copy(), but only defined for types that support arithmetic. Examples >>> x1 =...
doc_26672
Rotate image by a certain angle around its center. Parameters imagendarray Input image. anglefloat Rotation angle in degrees in counter-clockwise direction. resizebool, optional Determine whether the shape of the output image will be automatically calculated, so the complete rotated image exactly fits. ...
doc_26673
The base class of the other exceptions in this module. It is a subclass of Exception.
doc_26674
Encode bytes-like object s using the URL- and filesystem-safe alphabet, which substitutes - instead of + and _ instead of / in the standard Base64 alphabet, and return the encoded bytes. The result can still contain =.
doc_26675
Disassemble the top-of-stack function of a traceback, using the last traceback if none was passed. The instruction causing the exception is indicated. The disassembly is written as text to the supplied file argument if provided and to sys.stdout otherwise. Changed in version 3.4: Added file parameter.
doc_26676
Interchange axes and swap values axes appropriately. Returns y:same as input
doc_26677
Get a format string for time.strftime() to represent date and time in a locale-specific era-based way.
doc_26678
Set the artist offset transform. Parameters transOffsetTransform
doc_26679
sklearn.metrics.pairwise.linear_kernel(X, Y=None, dense_output=True) [source] Compute the linear kernel between X and Y. Read more in the User Guide. Parameters Xndarray of shape (n_samples_X, n_features) Yndarray of shape (n_samples_Y, n_features), default=None dense_outputbool, default=True Whether to ret...
doc_26680
Remove latex formatting from mathtext. Only handles fully math and fully non-math strings.
doc_26681
Compute the 32bit murmurhash3 of key at seed. The underlying implementation is MurmurHash3_x86_32 generating low latency 32bits hash suitable for implementing lookup tables, Bloom filters, count min sketch or feature hashing. Parameters keynp.int32, bytes, unicode or ndarray of dtype=np.int32 The physical object ...
doc_26682
Unpacks and returns a list of homogeneous items. The list is unpacked one element at a time by first unpacking an unsigned integer flag. If the flag is 1, then the item is unpacked and appended to the list. A flag of 0 indicates the end of the list. unpack_item is the function that is called to unpack the items.
doc_26683
Converts a midi note to a frequency. midi_to_frequency(midi_note) -> frequency example: midi_to_frequency(21) == 27.5 New in pygame 1.9.5.
doc_26684
Attributes key string key value AttrValue value
doc_26685
add the sprite to groups add(*groups) -> None Any number of Group instances can be passed as arguments. The Sprite will be added to the Groups it is not already a member of.
doc_26686
Return whether the artist is to be rasterized.
doc_26687
Bases: object Handle registering, processing, blocking, and disconnecting for a set of signals and callbacks: >>> def oneat(x): ... print('eat', x) >>> def ondrink(x): ... print('drink', x) >>> from matplotlib.cbook import CallbackRegistry >>> callbacks = CallbackRegistry() >>> id_eat = callbacks.connect('eat...
doc_26688
Bases: skimage.transform._geometric.FundamentalMatrixTransform Essential matrix transformation. The essential matrix relates corresponding points between a pair of calibrated images. The matrix transforms normalized, homogeneous image points in one image to epipolar lines in the other image. The essential matrix is o...
doc_26689
Return the scaled companion matrix of c. The basis polynomials are scaled so that the companion matrix is symmetric when c is an HermiteE basis polynomial. This provides better eigenvalue estimates than the unscaled case and for basis polynomials the eigenvalues are guaranteed to be real if numpy.linalg.eigvalsh is u...
doc_26690
Set the alpha value used for blending - not supported on all backends. Parameters alphaarray-like or scalar or None All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
doc_26691
See Migration guide for more details. tf.compat.v1.raw_ops.VariableV2 tf.raw_ops.VariableV2( shape, dtype, container='', shared_name='', name=None ) Outputs a ref to the tensor state so it may be read or modified. about sharing states in tensorflow. Args shape A tf.TensorShape or list of ints. The shape...
doc_26692
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_26693
The file is stored compressed (Mac OS X 10.6+).
doc_26694
new_ccompiler_opt(compiler, dispatch_hpath, ...) Create a new instance of 'CCompilerOpt' and generate the dispatch header which contains the #definitions and headers of platform-specific instruction-sets for the enabled CPU baseline and dispatch-able features. Classes CCompilerOpt(ccompiler[, cpu_baseline, ...]) A ...
doc_26695
How to… Legacy (numpy.poly1d) numpy.polynomial Create a polynomial object from coefficients 1 p = np.poly1d([1, 2, 3]) p = Polynomial([3, 2, 1]) Create a polynomial object from roots r = np.poly([-1, 1]) p = np.poly1d(r) p = Polynomial.fromroots([-1, 1]) Fit a polynomial of degree deg to data np.polyfit(x, y, ...
doc_26696
~self
doc_26697
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_26698
See Migration guide for more details. tf.compat.v1.io.TFRecordWriter, tf.compat.v1.python_io.TFRecordWriter tf.io.TFRecordWriter( path, options=None ) TFRecords tutorial TFRecords is a binary format which is optimized for high throughput data retrieval, generally in conjunction with tf.data. TFRecordWriter is us...
doc_26699
An abstract base class representing a finder. Deprecated since version 3.3: Use MetaPathFinder or PathEntryFinder instead. abstractmethod find_module(fullname, path=None) An abstract method for finding a loader for the specified module. Originally specified in PEP 302, this method was meant for use in sys.meta_pa...