_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_6500
'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_6501
See Migration guide for more details. tf.compat.v1.compat.as_str_any tf.compat.as_str_any( value ) Uses str(value), except for bytes typed inputs, which are converted using as_str. Args value A object that can be converted to str. Returns A str object.
doc_6502
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_6503
Pass to getrusage() to request resources consumed by the calling process, which is the sum of resources used by all threads in the process.
doc_6504
Bases: matplotlib.ticker.Formatter Format a tick (in days since the epoch) with a strftime format string. Parameters fmtstr strftime format string tzdatetime.tzinfo, default: rcParams["timezone"] (default: 'UTC') Ticks timezone. usetexbool, default: rcParams["text.usetex"] (default: False) To enable/dis...
doc_6505
Returns the bidirectional class assigned to the character chr as string. If no such value is defined, an empty string is returned.
doc_6506
Find indices where elements should be inserted to maintain order. Find the indices into a sorted Index self such that, if the corresponding elements in value were inserted before the indices, the order of self would be preserved. Note The Index must be monotonically sorted, otherwise wrong locations will likely be r...
doc_6507
tf.compat.v1.scatter_update( ref, indices, updates, use_locking=True, name=None ) This operation computes # Scalar indices ref[indices, ...] = updates[...] # Vector indices (for each i) ref[indices[i], ...] = updates[i, ...] # High rank indices (for each i, ..., j) ref[indices[i, ..., j], ...] = updates[i, ..., ...
doc_6508
The username@domain portion of the address, correctly quoted for use as a bare address (the second form shown above). This attribute is not mutable.
doc_6509
Similar to monotonic(), but return time as nanoseconds. New in version 3.7.
doc_6510
These attribute is true for the network as a whole if it is true for both the network address and the broadcast address.
doc_6511
Base class for all optimizers. Warning Parameters need to be specified as collections that have a deterministic ordering that is consistent between runs. Examples of objects that don’t satisfy those properties are sets and iterators over values of dictionaries. Parameters params (iterable) – an iterable of torc...
doc_6512
alias of torch.distributions.constraints._Interval
doc_6513
class ast.NotEq class ast.Lt class ast.LtE class ast.Gt class ast.GtE class ast.Is class ast.IsNot class ast.In class ast.NotIn Comparison operator tokens.
doc_6514
Set to a filename containing the FS_NONASCII character.
doc_6515
Return an ndarray of tuples of the form (left, right). Parameters na_tuple:bool, default True Returns NA as a tuple if True, (nan, nan), or just as the NA value itself if False, nan. Returns tuples: ndarray
doc_6516
Returns the coordinates of the geometry as a tuple.
doc_6517
Get the affine part of this transform.
doc_6518
Return vector of label values for requested level. Length of returned vector is equal to the length of the index. Parameters level:int or str level is either the integer position of the level in the MultiIndex, or the name of the level. Returns values:Index Values is a level of this MultiIndex converted...
doc_6519
This class stores all messages inside of the request’s session. Therefore it requires Django’s contrib.sessions application.
doc_6520
Search for all descendants (direct children, children’s children, etc.) with a particular element type name.
doc_6521
This is a required argument. It specifies the underlying form field for the array. This is not used to render any HTML, but it is used to process the submitted data and validate it. For example: >>> from django import forms >>> from django.contrib.postgres.forms import SimpleArrayField >>> class NumberListForm(forms.F...
doc_6522
Checks for an ASCII lower-case character.
doc_6523
operator.invert(obj) operator.__inv__(obj) operator.__invert__(obj) Return the bitwise inverse of the number obj. This is equivalent to ~obj.
doc_6524
Set a scheduling parameters for the process with PID pid. A pid of 0 means the calling process. param is a sched_param instance.
doc_6525
Recursive directory or file renaming function. Works like rename(), except creation of any intermediate directories needed to make the new pathname good is attempted first. After the rename, directories corresponding to rightmost path segments of the old name will be pruned away using removedirs(). Note This function ...
doc_6526
[Deprecated] Return the width of the label in points. Notes Deprecated since version 3.5.
doc_6527
Generates n samples or n batches of samples if the distribution parameters are batched.
doc_6528
xml.sax.make_parser(parser_list=[]) Create and return a SAX XMLReader object. The first parser found will be used. If parser_list is provided, it must be an iterable of strings which name modules that have a function named create_parser(). Modules listed in parser_list will be used before modules in the default list ...
doc_6529
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_6530
Predict class probabilities of the input samples X. The predicted class probability is the fraction of samples of the same class in a leaf. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is p...
doc_6531
See Migration guide for more details. tf.compat.v1.saved_model.utils.build_tensor_info tf.compat.v1.saved_model.build_tensor_info( tensor ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: This function will only be available through the v1 compatibility li...
doc_6532
Force processing of all buffered data as if it were followed by an end-of-file mark. This method may be redefined by a derived class to define additional processing at the end of the input, but the redefined version should always call the HTMLParser base class method close().
doc_6533
Export DataFrame object to Stata dta format.
doc_6534
Return list of grid lines as a list of paths (list of points). which : "major" or "minor" axis : "both", "x" or "y"
doc_6535
Return whether units are set on any axis.
doc_6536
Set FancyArrow x, y, dx, dy, width, head_with, and head_length. Values left as None will not be updated. Parameters x, yfloat or None, default: None The x and y coordinates of the arrow base. dx, dyfloat or None, default: None The length of the arrow along x and y direction. width: float or None, default: ...
doc_6537
Return the i’th item from the sequence, if there is one, or None. The index i is not allowed to be less than zero or greater than or equal to the length of the sequence.
doc_6538
tf.compat.v1.disable_v2_tensorshape() See docstring for enable_v2_tensorshape for details about the new behavior.
doc_6539
Draw samples from a standard Gamma distribution. Samples are drawn from a Gamma distribution with specified parameters, shape (sometimes designated “k”) and scale=1. Parameters shapefloat or array_like of floats Parameter, must be non-negative. sizeint or tuple of ints, optional Output shape. If the given s...
doc_6540
Call self as a function.
doc_6541
Set the flags specified by flags and unset all others. Parameter flags should be the concatenation in any order of zero or more occurrences of each of 'R', 'O', 'D', 'F', and 'A'.
doc_6542
Returns transformTransform The transform used for drawing secondary x-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in axis coordinates valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}...
doc_6543
Print a concise summary of a DataFrame. This method prints information about a DataFrame including the index dtype and columns, non-null values and memory usage. Parameters data:DataFrame DataFrame to print information about. verbose:bool, optional Whether to print the full summary. By default, the setting ...
doc_6544
Bases: matplotlib.collections.PolyCollection Specialized PolyCollection for barbs. The only API method is set_UVC(), which can be used to change the size, orientation, and color of the arrows. Locations are changed using the set_offsets() collection method. Possibly this method will be useful in animations. There is ...
doc_6545
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
doc_6546
Transform X back to its original space. Returns an array X_original whose transform would be X. Parameters Xarray-like of shape (n_samples, n_components) New data. Returns X_originalndarray of shape (n_samples, n_features) Note that this is always a dense array.
doc_6547
This is an optional argument. If passed, the array will have a maximum size as specified. This will be passed to the database, although PostgreSQL at present does not enforce the restriction.
doc_6548
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_6549
Return True if the object is a built-in function or a bound built-in method.
doc_6550
Return the value (in fractional seconds) of the sum of the system and user CPU time of the current process. It does not include time elapsed during sleep. It is process-wide by definition. The reference point of the returned value is undefined, so that only the difference between the results of two calls is valid. New...
doc_6551
Kronecker product of two arrays. Computes the Kronecker product, a composite array made of blocks of the second array scaled by the first. Parameters a, barray_like Returns outndarray See also outer The outer product Notes The function assumes that the number of dimensions of a and b are the same,...
doc_6552
Return a new font that is slanted and/or extended. Parameters effectsdict A dict with optional entries: 'slant'float, default: 0 Tangent of the angle that the font is to be slanted to the right. Negative values slant to the left. 'extend'float, default: 1 Scaling factor for the font width. Values le...
doc_6553
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomPoisson tf.raw_ops.StatelessRandomPoisson( shape, seed, lam, dtype, name=None ) Outputs random values from a Poisson distribution. The outputs are a deterministic function of shape, seed, and lam. Args shape A Tensor. Must be one ...
doc_6554
See Migration guide for more details. tf.compat.v1.math.special.bessel_j1 tf.math.special.bessel_j1( x, name=None ) Modified Bessel function of order 1. tf.math.special.bessel_j1([0.5, 1., 2., 4.]).numpy() array([ 0.24226846, 0.44005059, 0.57672481, -0.06604333], dtype=float32) Args x A Tensor or Sp...
doc_6555
Render the Dialog window.
doc_6556
Filter: Select the p-values corresponding to Family-wise error 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 arrays (scores, pvalues). Default is f_classif (see below “See Also”). The default function only works wit...
doc_6557
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyFtrlV2 tf.raw_ops.ApplyFtrlV2( var, accum, linear, grad, lr, l1, l2, l2_shrinkage, lr_power, use_locking=False, multiply_linear_by_lr=False, name=None ) grad_with_shrinkage = grad + 2 * l2_shrinkage * var accum_new = accum + grad * grad linear +...
doc_6558
Bases: matplotlib.patches.Patch A general polygon patch. xy is a numpy array with shape Nx2. If closed is True, the polygon will be closed so the starting and ending points are the same. Valid keyword arguments are: Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi...
doc_6559
Call predict_log_proba on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict_log_proba. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_6560
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorComposition tf.linalg.LinearOperatorComposition( operators, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=None, name=None ) This operator composes one or more linear operators [op1,...,opJ], building a ...
doc_6561
Return True if and only if the internal flag is true.
doc_6562
The model that this view will display data for. Specifying model = Foo is effectively the same as specifying queryset = Foo.objects.all(), where objects stands for Foo’s default manager.
doc_6563
See Migration guide for more details. tf.compat.v1.raw_ops.Mean tf.raw_ops.Mean( input, axis, keep_dims=False, name=None ) Reduces input along the dimensions given in axis. Unless keep_dims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keep_dims is true, the reduced dimensions are re...
doc_6564
A generic version of collections.abc.Coroutine. The variance and order of type variables correspond to those of Generator, for example: from collections.abc import Coroutine c = None # type: Coroutine[list[str], str, int] ... x = c.send('hi') # type: list[str] async def bar() -> None: x = await c # type: int New ...
doc_6565
Creates a Calendar object. firstweekday is an integer specifying the first day of the week. 0 is Monday (the default), 6 is Sunday. A Calendar object provides several methods that can be used for preparing the calendar data for formatting. This class doesn’t do any formatting itself. This is the job of subclasses. Cale...
doc_6566
tf.math.mod Compat aliases for migration See Migration guide for more details. tf.compat.v1.floormod, tf.compat.v1.math.floormod, tf.compat.v1.math.mod, tf.compat.v1.mod tf.math.floormod( x, y, name=None ) true, this follows Python semantics in that the result here is consistent with a flooring divide. E.g. floo...
doc_6567
Convert a time expressed in seconds since the epoch to a string of a form: 'Sun Jun 20 23:21:05 1993' representing local time. The day field is two characters long and is space padded if the day is a single digit, e.g.: 'Wed Jun  9 04:26:40 1993'. If secs is not provided or None, the current time as returned by time() ...
doc_6568
Return whether the z-axis is autoscaled.
doc_6569
Set the (x, y) position of the text. Parameters xy(float, float)
doc_6570
Return an embeddable JavaScript snippet, which, if run on a browser which supports JavaScript, will act the same as if the HTTP headers was sent. The meaning for attrs is the same as in output().
doc_6571
Convert Series from DatetimeIndex to PeriodIndex. Parameters freq:str, default None Frequency associated with the PeriodIndex. copy:bool, default True Whether or not to return a copy. Returns Series Series with index converted to PeriodIndex.
doc_6572
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesCalculateBestGainsPerFeature tf.raw_ops.BoostedTreesCalculateBestGainsPerFeature( node_id_range, stats_summary_list, l1, l2, tree_complexity, min_node_weight, max_splits, name=None ) The split information is the best threshold (bucket id)...
doc_6573
Incremental fit on a batch of samples. This method is expected to be called several times consecutively on different chunks of a dataset so as to implement out-of-core or online learning. This is especially useful when the whole dataset is too big to fit in memory at once. This method has some performance overhead he...
doc_6574
Return the number of dense dimensions in a sparse tensor self. Warning Throws an error if self is not a sparse tensor. See also Tensor.sparse_dim() and hybrid tensors.
doc_6575
Scalar method identical to the corresponding array attribute. Please see ndarray.argsort.
doc_6576
See Migration guide for more details. tf.compat.v1.raw_ops.MaxPoolGradV2 tf.raw_ops.MaxPoolGradV2( 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, int64,...
doc_6577
'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_6578
Turn on xkcd sketch-style drawing mode. This will only have effect on things drawn after this function is called. For best results, the "Humor Sans" font should be installed: it is not included with Matplotlib. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line. lengt...
doc_6579
Return a list of the values. These are each a scalar type, which is a Python scalar (for str, int, float) or a pandas scalar (for Timestamp/Timedelta/Interval/Period) Returns list See also numpy.ndarray.tolist Return the array as an a.ndim-levels deep nested list of Python scalars.
doc_6580
Annotate the point xy with text text. In the simplest form, the text is placed at xy. Optionally, the text can be displayed in another position xytext. An arrow pointing from the text to the annotated point xy can then be added by defining arrowprops. Parameters textstr The text of the annotation. xy(float, f...
doc_6581
'DEFAULT_THROTTLE_CLASSES': [ 'rest_framework.throttling.AnonRateThrottle', 'rest_framework.throttling.UserRateThrottle' ], 'DEFAULT_THROTTLE_RATES': { 'anon': '100/day', 'user': '1000/day' } } The rate descriptions used in DEFAULT_THROTTLE_RATES may include second, minu...
doc_6582
The version number encoded as a single integer. This is guaranteed to increase with each version, including proper support for non-production releases. For example, to test that the Python interpreter is at least version 1.5.2, use: if sys.hexversion >= 0x010502F0: # use some advanced feature ... else: # us...
doc_6583
See Migration guide for more details. tf.compat.v1.keras.utils.Progbar tf.keras.utils.Progbar( target, width=30, verbose=1, interval=0.05, stateful_metrics=None, unit_name='step' ) Arguments target Total number of steps expected, None if unknown. width Progress bar width on screen. verbose...
doc_6584
Bases: matplotlib.transforms.Affine2DBase BboxTransformFrom linearly transforms points from a given Bbox to the unit bounding box. Parameters shorthand_namestr A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when DEBUG=T...
doc_6585
Mark a protocol class as a runtime protocol. Such a protocol can be used with isinstance() and issubclass(). This raises TypeError when applied to a non-protocol class. This allows a simple-minded structural check, very similar to “one trick ponies” in collections.abc such as Iterable. For example: @runtime_checkable c...
doc_6586
Control parsing of parameter entities (including the external DTD subset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER, XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and XML_PARAM_ENTITY_PARSING_ALWAYS. Return true if setting the flag was successful.
doc_6587
Return the indices that would sort this array. Parameters ascending:bool, default True Whether the indices should result in an ascending or descending sort. kind:{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, optional Sorting algorithm. *args, **kwargs: Passed through to numpy.argsort(). Returns n...
doc_6588
bytearray.lower() Return a copy of the sequence with all the uppercase ASCII characters converted to their corresponding lowercase counterpart. For example: >>> b'Hello World'.lower() b'hello world' Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyz'. Uppercase ASCII charac...
doc_6589
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
doc_6590
Apply a function to a Dataframe elementwise. This method applies a function that accepts and returns a scalar to every element of a DataFrame. Parameters func:callable Python function, returns a single value from a single value. na_action:{None, ‘ignore’}, default None If ‘ignore’, propagate NaN values, wit...
doc_6591
RankWarning Issued by chebfit when the design matrix is rank deficient. Functions as_series(alist[, trim]) Return argument as a list of 1-d arrays. trimseq(seq) Remove small Poly series coefficients. trimcoef(c[, tol]) Remove "small" "trailing" coefficients from a polynomial. getdomain(x) Return a domain su...
doc_6592
Get the FreeType hinting type to use with this particular backend.
doc_6593
class sklearn.tree.DecisionTreeRegressor(*, criterion='mse', splitter='best', max_depth=None, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_features=None, random_state=None, max_leaf_nodes=None, min_impurity_decrease=0.0, min_impurity_split=None, ccp_alpha=0.0) [source] A decision tree re...
doc_6594
Exception raised on compression and decompression errors.
doc_6595
See Migration guide for more details. tf.compat.v1.raw_ops.CSRSparseMatrixToDense tf.raw_ops.CSRSparseMatrixToDense( sparse_input, type, name=None ) Args sparse_input A Tensor of type variant. A batched CSRSparseMatrix. type A tf.DType from: tf.float32, tf.float64, tf.complex64, tf.complex128. ...
doc_6596
Set or remove the completer function. If function is specified, it will be used as the new completer function; if omitted or None, any completer function already installed is removed. The completer function is called as function(text, state), for state in 0, 1, 2, …, until it returns a non-string value. It should retur...
doc_6597
normalizes the vector in place so that its length is 1. normalize_ip() -> None Normalizes the vector so that it has length equal to 1. The direction of the vector is not changed.
doc_6598
Get a list of loaded “certification authority” (CA) certificates. If the binary_form parameter is False each list entry is a dict like the output of SSLSocket.getpeercert(). Otherwise the method returns a list of DER-encoded certificates. The returned list does not contain certificates from capath unless a certificate ...
doc_6599
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.rewrap tf.compat.v1.flags.tf_decorator.rewrap( decorator_func, previous_target, new_target ) This function allows replacing a function wrapped by decorator_func, assuming the decorator that wraps the function is written as described below....