_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_4700
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_4701
The scaled descent of the font in pixels get_sized_descender(<size>=0) -> int Return the number of pixels from the font's baseline to the top of the bounding box. It is not adjusted for strong or rotation.
doc_4702
Indicator whether Series/DataFrame is empty. True if Series/DataFrame is entirely empty (no items), meaning any of the axes are of length 0. Returns bool If Series/DataFrame is empty, return True, if not return False. See also Series.dropna Return series without null values. DataFrame.dropna Return DataF...
doc_4703
Return a list of file extensions extensions that are synonyms for the given file extension fileext.
doc_4704
URL specifying how to initialize the process group. Default is env://
doc_4705
IEEE 754 floating point representation of (positive) infinity. Returns yfloat A floating point representation of positive infinity. See Also isinf : Shows which elements are positive or negative infinity isposinf : Shows which elements are positive infinity isneginf : Shows which elements are negative infinity i...
doc_4706
Base class for protocol classes. Protocol classes are defined like this: class Proto(Protocol): def meth(self) -> int: ... Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing), for example: class C: def meth(self) -> int: return 0 d...
doc_4707
Run code in subinterpreter. Raise unittest.SkipTest if tracemalloc is enabled.
doc_4708
See Migration guide for more details. tf.compat.v1.config.experimental.get_memory_usage tf.config.experimental.get_memory_usage( device ) See https://www.tensorflow.org/api_docs/python/tf/device for specifying device strings. For example: gpu_devices = tf.config.list_physical_devices('GPU') if gpu_devices: tf...
doc_4709
class sklearn.base.ClassifierMixin [source] Mixin class for all classifiers in scikit-learn. Methods score(X, y[, sample_weight]) Return the mean accuracy on the given test data and labels. score(X, y, sample_weight=None) [source] Return the mean accuracy on the given test data and labels. In multi-label clas...
doc_4710
Return self<<value.
doc_4711
The name of the session cookie. Can be changed in case you already have a cookie with the same name. Default: 'session'
doc_4712
Return plain text version of exception report. Used for plain text version of debug 500 HTTP error page and email reports.
doc_4713
bytearray.isspace() Return True if all bytes in the sequence are ASCII whitespace and the sequence is not empty, False otherwise. ASCII whitespace characters are those byte values in the sequence b' \t\n\r\x0b\f' (space, tab, newline, carriage return, vertical tab, form feed).
doc_4714
FastICA: a fast algorithm for Independent Component Analysis. Read more in the User Guide. Parameters n_componentsint, default=None Number of components to use. If None is passed, all are used. algorithm{‘parallel’, ‘deflation’}, default=’parallel’ Apply parallel or deflational algorithm for FastICA. whit...
doc_4715
Return the next floating-point value after x towards y. If x is equal to y, return y. Examples: math.nextafter(x, math.inf) goes up: towards positive infinity. math.nextafter(x, -math.inf) goes down: towards minus infinity. math.nextafter(x, 0.0) goes towards zero. math.nextafter(x, math.copysign(math.inf, x)) goe...
doc_4716
Returns an approximation of the Header as a string, using an unlimited line length. All pieces are converted to unicode using the specified encoding and joined together appropriately. Any pieces with a charset of 'unknown-8bit' are decoded as ASCII using the 'replace' error handler. Changed in version 3.2: Added handl...
doc_4717
Concrete implementation of importlib.abc.SourceLoader.path_stats().
doc_4718
An abstract base class to handle drawing/rendering operations. FigureCanvasBase The abstraction layer that separates the Figure from the backend specific details like a user interface drawing area. GraphicsContextBase An abstract base class that provides color, line styles, etc. Event The base class for all of t...
doc_4719
Returns the total size, in bytes, of the file referenced by name. For storage systems that aren’t able to return the file size this will raise NotImplementedError instead.
doc_4720
See Migration guide for more details. tf.compat.v1.raw_ops.AddN tf.raw_ops.AddN( inputs, name=None ) Inputs must be of same size and shape. x = [9, 7, 10] tf.math.add_n(x) ==> 26 Args inputs A list of at least 1 Tensor objects with the same type in: float32, float64, int32, uint8, int16, int8, complex6...
doc_4721
Set a parameter in the Content-Type header. If the parameter already exists in the header, replace its value with value. When header is Content-Type (the default) and the header does not yet exist in the message, add it, set its value to text/plain, and append the new parameter value. Optional header specifies an alter...
doc_4722
Logs an error when a request cannot be fulfilled. By default, it passes the message to log_message(), so it takes the same arguments (format and additional values).
doc_4723
Set the x-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_4724
Add and return a Text control.
doc_4725
Represents the C 8-bit signed int datatype. Usually an alias for c_byte.
doc_4726
Bases: mpl_toolkits.axes_grid1.axes_rgb.RGBAxes Parameters padfloat, default: 0 fraction of the axes height to put as padding. axes_classmatplotlib.axes.Axes *args Unpacked into axes_class() init for RGB **kwargs Unpacked into axes_class() init for RGB, R, G, B axes
doc_4727
Set the byte stream (a binary file) for this input source. The SAX parser will ignore this if there is also a character stream specified, but it will use a byte stream in preference to opening a URI connection itself. If the application knows the character encoding of the byte stream, it should set it with the setEncod...
doc_4728
See Migration guide for more details. tf.compat.v1.linalg.trace, tf.compat.v1.trace tf.linalg.trace( x, name=None ) trace(x) returns the sum along the main diagonal of each inner-most matrix in x. If x is of rank k with shape [I, J, K, ..., L, M, N], then output is a tensor of rank k-2 with dimensions [I, J, K, ...
doc_4729
Return the indices for the upper-triangle of an (n, m) array. Parameters nint The size of the arrays for which the returned indices will be valid. kint, optional Diagonal offset (see triu for details). mint, optional New in version 1.9.0. The column dimension of the arrays for which the returned array...
doc_4730
Return the maximum of the absolute value of all samples in a fragment.
doc_4731
Start Qt mainloop
doc_4732
frame_type This attribute is set to 'RANGE'. PostgreSQL has limited support for ValueRange and only supports use of the standard start and end points, such as CURRENT ROW and UNBOUNDED FOLLOWING.
doc_4733
Calculates element in test_elements, broadcasting over element only. Returns a boolean array of the same shape as element that is True where an element of element is in test_elements and False otherwise. Parameters elementarray_like Input array. test_elementsarray_like The values against which to test each ...
doc_4734
Read a raw token. Ignore the pushback stack, and do not interpret source requests. (This is not ordinarily a useful entry point, and is documented here only for the sake of completeness.)
doc_4735
tf.compat.v1.constant( value, dtype=None, shape=None, name='Const', verify_shape=False ) The resulting tensor is populated with values of type dtype, as specified by arguments value and (optionally) shape (see examples below). The argument value can be a constant value, or a list of values of type dtype. If value ...
doc_4736
Alias for set_facecolor.
doc_4737
Alias for get_linewidth.
doc_4738
Divide self into other, and return a new masked array.
doc_4739
Return True if the object is a frame.
doc_4740
Returns the random number generator state as a torch.ByteTensor.
doc_4741
Sets the learning rate of each parameter group to the initial lr times a given function. When last_epoch=-1, sets initial lr as lr. Parameters optimizer (Optimizer) – Wrapped optimizer. lr_lambda (function or list) – A function which computes a multiplicative factor given an integer parameter epoch, or a list of...
doc_4742
Return True if date is last day of the quarter. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_quarter_end False >>> ts = pd.Timestamp(2020, 3, 31) >>> ts.is_quarter_end True
doc_4743
Return the filename prefix used to create temporary files. This does not contain the directory component.
doc_4744
Number of days for each element.
doc_4745
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.tf_stack.FrameSummary tf.compat.v1.flags.tf_decorator.tf_stack.FrameSummary( *args, **kwargs ) Attributes filename line lineno name Methods __eq__ __eq__() eq(self: tensorflow.python._tf_stack.FrameSummary, ...
doc_4746
Close the wrapped response if possible. You can also use the object in a with statement which will automatically close it. Changelog New in version 0.9: Can now be used in a with statement. Return type None
doc_4747
alias of numpy.csingle
doc_4748
Describes monthly dates like “the Tuesday of the 2nd week of each month”. Parameters n:int week:int {0, 1, 2, 3, …}, default 0 A specific integer for the week of the month. e.g. 0 is 1st week of month, 1 is the 2nd week, etc. weekday:int {0, 1, …, 6}, default 0 A specific integer for the day of the week. ...
doc_4749
Checks if tensor is in shared memory. This is always True for CUDA tensors.
doc_4750
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_4751
tf.compat.v1.tpu.shutdown_system( job=None ) Args job The job (the XXX in TensorFlow device specification /job:XXX) that contains the TPU devices that will be shutdown. If job=None it is assumed there is only one job in the TensorFlow flock, and an error will be returned if this assumption does not hold.
doc_4752
Compute the power spectral density. The power spectral density \(P_{xx}\) by Welch's average periodogram method. The vector x is divided into NFFT length segments. Each segment is detrended by function detrend and windowed by function window. noverlap gives the length of the overlap between segments. The \(|\mathrm{f...
doc_4753
Set the offset of the container. Parameters xy(float, float) The (x, y) coordinates of the offset in display units.
doc_4754
Return whether this Axes supports any pan/zoom button functionality.
doc_4755
assertNotIsInstance(obj, cls, msg=None) Test that obj is (or is not) an instance of cls (which can be a class or a tuple of classes, as supported by isinstance()). To check for the exact type, use assertIs(type(obj), cls). New in version 3.2.
doc_4756
Return a new view of the dictionary’s items ((key, value) pairs). See the documentation of view objects.
doc_4757
Create a new Signature instance based on the instance replace was invoked on. It is possible to pass different parameters and/or return_annotation to override the corresponding properties of the base signature. To remove return_annotation from the copied Signature, pass in Signature.empty. >>> def test(a, b): ... p...
doc_4758
Checks to see if the file has changed. If it has, the existing stream is flushed and closed and the file opened again, typically as a precursor to outputting the record to the file. New in version 3.6.
doc_4759
Import module if necessary and return the object called name from it, where the module and name arguments are str objects. Note, unlike its name suggests, find_class() is also used for finding functions. Subclasses may override this to gain control over what type of objects and how they can be loaded, potentially reduc...
doc_4760
Call inverse_transform on the estimator with the best found params. Only available if the underlying estimator implements inverse_transform and refit=True. Parameters Xtindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_4761
Process an event.
doc_4762
pi = 3.1415926535897932384626433... References https://en.wikipedia.org/wiki/Pi
doc_4763
For each element in a, return a copy with the trailing characters removed. Calls str.rstrip element-wise. Parameters aarray-like of str or unicode charsstr or unicode, optional The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to rem...
doc_4764
Creates a quantized module from a float module or qparams_dict. Parameters mod (Module) – a float module, either produced by torch.quantization utilities or provided by the user
doc_4765
Check whether an array-like or dtype is of the datetime64 dtype. Parameters arr_or_dtype:array-like or dtype The array-like or dtype to check. Returns boolean Whether or not the array-like or dtype is of the datetime64 dtype. Examples >>> is_datetime64_dtype(object) False >>> is_datetime64_dtype(np.d...
doc_4766
See Migration guide for more details. tf.compat.v1.data.experimental.service.register_dataset tf.data.experimental.service.register_dataset( service, dataset ) register_dataset registers a dataset with the tf.data service so that datasets can be created later with tf.data.experimental.service.from_dataset_id. Th...
doc_4767
classmethod extract(frame_gen, *, limit=None, lookup_lines=True, capture_locals=False) Construct a StackSummary object from a frame generator (such as is returned by walk_stack() or walk_tb()). If limit is supplied, only this many frames are taken from frame_gen. If lookup_lines is False, the returned FrameSummary ...
doc_4768
Returns the file handle number of the open mixer device file.
doc_4769
Bases: matplotlib.ticker.TickHelper Determine the tick locations; Note that the same locator should not be used across multiple Axis because the locator stores references to the Axis data and view limits. MAXTICKS=1000 nonsingular(v0, v1)[source] Adjust a range as needed to avoid singularities. This method ge...
doc_4770
reflect the vector of a given normal in place. reflect_ip(Vector3) -> None Changes the direction of self as if it would have been reflected of a surface with the given surface normal.
doc_4771
tf.compat.v1.tpu.XLAOptions( use_spmd_for_xla_partitioning=True ) Attributes use_spmd_for_xla_partitioning Boolean. Whether to use XLA's SPMD partitioner instead of MPMD partitioner when compiler partitioning is requested.
doc_4772
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_4773
Creates a new object, saves it and puts it in the related object set. Returns the newly created object: >>> b = Blog.objects.get(id=1) >>> e = b.entry_set.create( ... headline='Hello', ... body_text='Hi', ... pub_date=datetime.date(2005, 1, 1) ... ) # No need to call e.save() at this point -- it's already ...
doc_4774
Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate.
doc_4775
tf.compat.v1.errors.exception_type_from_error_code( error_code )
doc_4776
class sklearn.linear_model.TheilSenRegressor(*, fit_intercept=True, copy_X=True, max_subpopulation=10000.0, n_subsamples=None, max_iter=300, tol=0.001, random_state=None, n_jobs=None, verbose=False) [source] Theil-Sen Estimator: robust multivariate regression model. The algorithm calculates least square solutions on ...
doc_4777
If true, load cookies lazily from disk. This attribute should not be assigned to. This is only a hint, since this only affects performance, not behaviour (unless the cookies on disk are changing). A CookieJar object may ignore it. None of the FileCookieJar classes included in the standard library lazily loads cookies.
doc_4778
(Error-Correcting) Output-Code multiclass strategy Output-code based strategies consist in representing each class with a binary code (an array of 0s and 1s). At fitting time, one binary classifier per bit in the code book is fitted. At prediction time, the classifiers are used to project new points in the class spac...
doc_4779
The false value of the bool type. Assignments to False are illegal and raise a SyntaxError.
doc_4780
Return Index without NA/NaN values. Parameters how:{‘any’, ‘all’}, default ‘any’ If the Index is a MultiIndex, drop the value when any or all levels are NaN. Returns Index
doc_4781
Return the error message corresponding to the error code in code. On platforms where strerror() returns NULL when given an unknown error number, ValueError is raised.
doc_4782
Return a time with the same value, except for those attributes given new values by whichever keyword arguments are specified. Note that tzinfo=None can be specified to create a naive time from an aware time, without conversion of the time data. New in version 3.6: Added the fold argument.
doc_4783
Return True if the object is a traceback.
doc_4784
See Migration guide for more details. tf.compat.v1.raw_ops.DecodePaddedRaw tf.raw_ops.DecodePaddedRaw( input_bytes, fixed_length, out_type, little_endian=True, name=None ) Args input_bytes A Tensor of type string. Tensor of string to be decoded. fixed_length A Tensor of type int32. Length in bytes...
doc_4785
See Migration guide for more details. tf.compat.v1.raw_ops.Dilation2DBackpropFilter tf.raw_ops.Dilation2DBackpropFilter( input, filter, out_backprop, strides, rates, padding, name=None ) Args input A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, int64, bfloat16...
doc_4786
Return the day of the week represented by the date. Monday == 0 … Sunday == 6.
doc_4787
Registry entries subordinate to this key define the physical state of the computer, including data about the bus type, system memory, and installed hardware and software.
doc_4788
Get the week of the year on the given Period. Returns int See also Period.dayofweek Get the day component of the Period. Period.weekday Get the day component of the Period. Examples >>> p = pd.Period("2018-03-11", "H") >>> p.weekofyear 10 >>> p = pd.Period("2018-02-01", "D") >>> p.weekofyear 5 >>...
doc_4789
The ordinal day of the year.
doc_4790
See torch.sum()
doc_4791
Create a BytesFeedParser instance. Optional _factory is a no-argument callable; if not specified use the message_factory from the policy. Call _factory whenever a new message object is needed. If policy is specified use the rules it specifies to update the representation of the message. If policy is not set, use the co...
doc_4792
Returns the base 10 logarithm of x.
doc_4793
Boolean flag that indicates if the field has a database column associated with it.
doc_4794
See Migration guide for more details. tf.compat.v1.lgamma, tf.compat.v1.math.lgamma tf.math.lgamma( x, name=None ) For positive numbers, this function computes log((input - 1)!) for every element in the tensor. lgamma(5) = log((5-1)!) = log(4!) = log(24) = 3.1780539 Example: x = tf.constant([0, 0.5, 1, 4.5, -4, ...
doc_4795
Implements RMSprop algorithm. Proposed by G. Hinton in his course. The centered version first appears in Generating Sequences With Recurrent Neural Networks. The implementation here takes the square root of the gradient average before adding epsilon (note that TensorFlow interchanges these two operations). The effect...
doc_4796
Module socketserver Classes that simplify writing network servers. Module ssl A TLS/SSL wrapper for socket objects. Socket families Depending on the system and the build options, various socket families are supported by this module. The address format required by a particular socket object is automatically sel...
doc_4797
Returns the keyword arguments to instantiate the DiscoverRunner.test_runner with.
doc_4798
A generic version of collections.abc.MutableMapping. Deprecated since version 3.9: collections.abc.MutableMapping now supports []. See PEP 585 and Generic Alias Type.
doc_4799
Set the resize filter radius only applicable to some interpolation schemes -- see help for imshow Parameters filterradpositive float