_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_24500
Return a suite of all test cases contained in the TestCase-derived testCaseClass. A test case instance is created for each method named by getTestCaseNames(). By default these are the method names beginning with test. If getTestCaseNames() returns no methods, but the runTest() method is implemented, a single test case ...
doc_24501
Set the value array from array-like A. Parameters Aarray-like or None The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A.
doc_24502
Predict logarithm of probability estimates. The returned estimates for all classes are ordered by the label of classes. Parameters Xarray-like of shape (n_samples, n_features) Vector to be scored, where n_samples is the number of samples and n_features is the number of features. Returns Tarray-like of sha...
doc_24503
For each element in self, return True if there are only numeric characters in the element. See also char.isnumeric
doc_24504
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_24505
Return the clipbox.
doc_24506
Set a new breakpoint. If the lineno line doesn’t exist for the filename passed as argument, return an error message. The filename should be in canonical form, as described in the canonic() method.
doc_24507
This converter only accepts floating point values: Rule("/probability/<float:probability>") By default it only accepts unsigned, positive values. The signed parameter will enable signed, negative values. Rule("/offset/<float(signed=True):offset>") Parameters map (Map) – The Map. min (Optional[float]) – The minim...
doc_24508
os.MFD_ALLOW_SEALING os.MFD_HUGETLB os.MFD_HUGE_SHIFT os.MFD_HUGE_MASK os.MFD_HUGE_64KB os.MFD_HUGE_512KB os.MFD_HUGE_1MB os.MFD_HUGE_2MB os.MFD_HUGE_8MB os.MFD_HUGE_16MB os.MFD_HUGE_32MB os.MFD_HUGE_256MB os.MFD_HUGE_512MB os.MFD_HUGE_1GB os.MFD_HUGE_2GB os.MFD_HUGE_16GB These flags can...
doc_24509
stat.FILE_ATTRIBUTE_COMPRESSED stat.FILE_ATTRIBUTE_DEVICE stat.FILE_ATTRIBUTE_DIRECTORY stat.FILE_ATTRIBUTE_ENCRYPTED stat.FILE_ATTRIBUTE_HIDDEN stat.FILE_ATTRIBUTE_INTEGRITY_STREAM stat.FILE_ATTRIBUTE_NORMAL stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED stat.FILE_ATTRIBUTE_NO_SCRUB_DATA stat.FILE_ATTRIBUTE...
doc_24510
Acts just like HttpResponse but uses a 400 status code.
doc_24511
Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
doc_24512
This method is automatically called during the response initialization and set various headers (Content-Length, Content-Type, and Content-Disposition) depending on open_file.
doc_24513
Set the (group) id for the artist. Parameters gidstr
doc_24514
If self is alive then mark it as dead and return the tuple (obj, func, args, kwargs). If self is dead then return None.
doc_24515
tf.compat.v1.train.MomentumOptimizer( learning_rate, momentum, use_locking=False, name='Momentum', use_nesterov=False ) Computes (if use_nesterov = False): accumulation = momentum * accumulation + gradient variable -= learning_rate * accumulation Note that in the dense version of this algorithm, accumulation ...
doc_24516
class sklearn.ensemble.StackingClassifier(estimators, final_estimator=None, *, cv=None, stack_method='auto', n_jobs=None, passthrough=False, verbose=0) [source] Stack of estimators with a final classifier. Stacked generalization consists in stacking the output of individual estimator and use a classifier to compute t...
doc_24517
See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingMDLAdagradLightParameters tf.raw_ops.LoadTPUEmbeddingMDLAdagradLightParameters( parameters, accumulators, weights, benefits, num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that loads optimization parame...
doc_24518
See Migration guide for more details. tf.compat.v1.ifft, tf.compat.v1.signal.ifft, tf.compat.v1.spectral.ifft tf.signal.ifft( input, name=None ) Computes the inverse 1-dimensional discrete Fourier transform over the inner-most dimension of input. Args input A Tensor. Must be one of the following types: ...
doc_24519
If this is true, Python won’t try to write .pyc files on the import of source modules. This value is initially set to True or False depending on the -B command line option and the PYTHONDONTWRITEBYTECODE environment variable, but you can set it yourself to control bytecode file generation.
doc_24520
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayWrite tf.raw_ops.TensorArrayWrite( handle, index, value, flow_in, name=None ) Args handle A Tensor of type mutable string. index A Tensor of type int32. value A Tensor. flow_in A Tensor of type float32. name A ...
doc_24521
Set field to value through MsiRecordSetString(). field must be an integer; value a string.
doc_24522
Return whether y is in the closed (y0, y1) interval.
doc_24523
Called when a pan operation has started. Parameters x, yfloat The mouse coordinates in display coords. buttonMouseButton The pressed mouse button. Notes This is intended to be overridden by new projection types.
doc_24524
See torch.floor_divide()
doc_24525
Return the font family name, e.g., 'Times'.
doc_24526
Set class that keeps weak references to its elements. An element will be discarded when no strong reference to it exists any more.
doc_24527
tf.io.decode_raw( input_bytes, out_type, little_endian=True, fixed_length=None, name=None ) Args input_bytes Each element of the input Tensor is converted to an array of bytes. out_type DType of the output. Acceptable types are half, float, double, int32, uint16, uint8, int16, int8, int64. littl...
doc_24528
Like HttpResponseRedirect, but it returns a permanent redirect (HTTP status code 301) instead of a “found” redirect (status code 302).
doc_24529
Symbolic tracing API Given an nn.Module or function instance root, this function will return a GraphModule constructed by recording operations seen while tracing through root. Parameters root (Union[torch.nn.Module, Callable]) – Module or function to be traced and converted into a Graph representation. concrete_...
doc_24530
Write a representation of the configuration to the specified file object, which must be opened in text mode (accepting strings). This representation can be parsed by a future read() call. If space_around_delimiters is true, delimiters between keys and values are surrounded by spaces.
doc_24531
class sklearn.multioutput.ClassifierChain(base_estimator, *, order=None, cv=None, random_state=None) [source] A multi-label model that arranges binary classifiers into a chain. Each model makes a prediction in the order specified by the chain using all of the available features provided to the model plus the predicti...
doc_24532
class sklearn.ensemble.IsolationForest(*, n_estimators=100, max_samples='auto', contamination='auto', max_features=1.0, bootstrap=False, n_jobs=None, random_state=None, verbose=0, warm_start=False) [source] Isolation Forest Algorithm. Return the anomaly score of each sample using the IsolationForest algorithm The Iso...
doc_24533
Raised when an assert statement fails.
doc_24534
See Migration guide for more details. tf.compat.v1.app.flags.Flag tf.compat.v1.flags.Flag( parser, serializer, name, default, help_string, short_name=None, boolean=False, allow_override=False, allow_override_cpp=False, allow_hide_cpp=False, allow_overwrite=True, allow_using_method_names=False ) 'Flag' ob...
doc_24535
Determine whether code is in tableC.1 (Space characters, union of C.1.1 and C.1.2).
doc_24536
tf.compat.v1.test.test_src_dir_path( relative_path ) Args relative_path a path relative to tensorflow root. e.g. "core/platform". Returns An absolute path to the linked in runfiles.
doc_24537
'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_24538
List available plugins. Parameters loadedbool If True, show only those plugins currently loaded. By default, all plugins are shown. Returns pdict Dictionary with plugin names as keys and exposed functions as values.
doc_24539
Draw a Path instance using the given affine transform.
doc_24540
[Deprecated] Notes Deprecated since version 3.5:
doc_24541
Return the root-mean-square of the fragment, i.e. sqrt(sum(S_i^2)/n). This is a measure of the power in an audio signal.
doc_24542
Demonstrate how each JoinStyle looks for various join angles.
doc_24543
Set padding of Y data limits prior to autoscaling. m times the data interval will be added to each end of that interval before it is used in autoscaling. For example, if your data is in the range [0, 2], a factor of m = 0.1 will result in a range [-0.2, 2.2]. Negative values -0.5 < m < 0 will result in clipping of th...
doc_24544
Converts the value (returned by get_field()) given a conversion type (as in the tuple returned by the parse() method). The default version understands ‘s’ (str), ‘r’ (repr) and ‘a’ (ascii) conversion types.
doc_24545
Freezing a ScriptModule will clone it and attempt to inline the cloned module’s submodules, parameters, and attributes as constants in the TorchScript IR Graph. By default, forward will be preserved, as well as attributes & methods specified in preserved_attrs. Additionally, any attribute that is modified within a pr...
doc_24546
Method called when a processing instruction is encountered. The data parameter will contain the entire processing instruction. For example, for the processing instruction <?proc color='red'>, this method would be called as handle_pi("proc color='red'"). It is intended to be overridden by a derived class; the base class...
doc_24547
Performs a single optimization step. Parameters closure (callable, optional) – A closure that reevaluates the model and returns the loss.
doc_24548
Configure the grid lines. Parameters visiblebool or None, optional Whether to show the grid lines. If any kwargs are supplied, it is assumed you want the grid on and visible will be set to True. If visible is None and there are no kwargs, this toggles the visibility of the lines. which{'major', 'minor', 'both...
doc_24549
The sound parameter is the name of a WAV file. Do not use with SND_ALIAS.
doc_24550
Get the ylabel text string.
doc_24551
Return the figure width and height in integral points or pixels. When the figure is used on High DPI screens (and the backend supports it), the truncation to integers occurs after scaling by the device pixel ratio. Parameters physicalbool, default: False Whether to return true physical pixels or logical pixels....
doc_24552
stop audio playback stop() -> None Stops playback of audio from the cdrom. This will also lose the current playback position. This method does nothing if the drive isn't already playing audio.
doc_24553
Return a copy of the first operand with the sign set to be the same as the sign of the second operand. For example: >>> Decimal('2.3').copy_sign(Decimal('-1.5')) Decimal('-2.3') This operation is unaffected by context and is quiet: no flags are changed and no rounding is performed. As an exception, the C version may r...
doc_24554
Raises an AssertionError if two items are not equal up to desired precision. Note It is recommended to use one of assert_allclose, assert_array_almost_equal_nulp or assert_array_max_ulp instead of this function for more consistent floating point comparisons. The test verifies that the elements of actual and desired...
doc_24555
Apply trees in the forest to X, return leaf indices. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, its dtype will be converted to dtype=np.float32. If a sparse matrix is provided, it will be converted into a sparse csr_matrix. Returns X_leavesndarr...
doc_24556
returns the sprite at the index idx from the groups sprites get_sprite(idx) -> sprite Raises IndexOutOfBounds if the idx is not within range.
doc_24557
Find the sum of two polynomials. Note This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in numpy.polynomial is preferred. A summary of the differences can be found in the transition guide. Returns the polynomial resulting from the sum of two input polynomials. Each input m...
doc_24558
A marker object used by Token.old_value.
doc_24559
Computes the squared Mahalanobis distances of given observations. Parameters Xarray-like of shape (n_samples, n_features) The observations, the Mahalanobis distances of the which we compute. Observations are assumed to be drawn from the same distribution than the data used in fit. Returns distndarray of s...
doc_24560
Create a block diagonal matrix from provided tensors. Parameters *tensors – One or more tensors with 0, 1, or 2 dimensions. Returns A 2 dimensional tensor with all the input tensors arranged in order such that their upper left and lower right corners are diagonally adjacent. All other elements are set to 0. ...
doc_24561
class sklearn.gaussian_process.kernels.DotProduct(sigma_0=1.0, sigma_0_bounds=1e-05, 100000.0) [source] Dot-Product kernel. The DotProduct kernel is non-stationary and can be obtained from linear regression by putting \(N(0, 1)\) priors on the coefficients of \(x_d (d = 1, . . . , D)\) and a prior of \(N(0, \sigma_0^...
doc_24562
Using a cumulative distribution function (cdf), compute the probability that a random variable X will be less than or equal to x. Mathematically, it is written P(X <= x).
doc_24563
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesQuantileStreamResourceGetBucketBoundaries tf.raw_ops.BoostedTreesQuantileStreamResourceGetBucketBoundaries( quantile_stream_resource_handle, num_features, name=None ) An op that returns a list of float tensors for a quantile stream resource. ...
doc_24564
sklearn.utils.murmurhash3_32() 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 dtyp...
doc_24565
Exception raised when attempting to call a numpy function on a pandas object, but that function is not supported by the object e.g. np.cumsum(groupby_object).
doc_24566
Return the (x, y, z) position of the text.
doc_24567
The Last-Modified entity-header field indicates the date and time at which the origin server believes the variant was last modified. Changed in version 2.0: The datetime object is timezone-aware.
doc_24568
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_24569
Return the Figure instance the artist belongs to.
doc_24570
tf.saved_model.contains_saved_model( export_dir ) Note that the method does not load any data by itself. If the method returns false, the export directory definitely does not contain a SavedModel. If the method returns true, the export directory may contain a SavedModel but provides no guarantee that it can be loa...
doc_24571
See Migration guide for more details. tf.compat.v1.raw_ops.All tf.raw_ops.All( 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 reta...
doc_24572
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct...
doc_24573
See Migration guide for more details. tf.compat.v1.raw_ops.Log1p tf.raw_ops.Log1p( x, name=None ) I.e., \(y = \log_e (1 + x)\). Example: x = tf.constant([0, 0.5, 1, 5]) tf.math.log1p(x) <tf.Tensor: shape=(4,), dtype=float32, numpy=array([0. , 0.4054651, 0.6931472, 1.7917595], dtype=float32)> Args ...
doc_24574
The maximum value allowed for the timeout parameter of blocking functions (Lock.acquire(), RLock.acquire(), Condition.wait(), etc.). Specifying a timeout greater than this value will raise an OverflowError. New in version 3.2.
doc_24575
Timeout duration, measured in seconds, or None if no timeout is desired. If handle_request() receives no incoming requests within the timeout period, the handle_timeout() method is called.
doc_24576
The format in which this field’s initial value will be displayed.
doc_24577
See Migration guide for more details. tf.compat.v1.keras.activations.softsign tf.keras.activations.softsign( x ) Example Usage: a = tf.constant([-1.0, 0.0, 1.0], dtype = tf.float32) b = tf.keras.activations.softsign(a) b.numpy() array([-0.5, 0. , 0.5], dtype=float32) Arguments x Input tensor. ...
doc_24578
socket.SOCK_DGRAM socket.SOCK_RAW socket.SOCK_RDM socket.SOCK_SEQPACKET These constants represent the socket types, used for the second argument to socket(). More constants may be available depending on the system. (Only SOCK_STREAM and SOCK_DGRAM appear to be generally useful.)
doc_24579
The format in which this field’s initial value will be displayed.
doc_24580
Preprocesses context data that will be used for rendering a template. Accepts a dict of context data. By default, returns the same dict. Override this method in order to customize the context.
doc_24581
test if two rectangles overlap colliderect(Rect) -> bool Returns true if any portion of either rectangle overlap (except the top+bottom or left+right edges). Note For collision detection between a rect and a line the clipline() method can be used.
doc_24582
Return self<value.
doc_24583
Align the xlabels of subplots in the same subplot column if label alignment is being done automatically (i.e. the label position is not manually set). Alignment persists for draw events after this is called. If a label is on the bottom, it is aligned with labels on Axes that also have their label on the bottom and th...
doc_24584
Plot y versus x as lines and/or markers. Call signatures: plot([x], y, [fmt], *, data=None, **kwargs) plot([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs) The coordinates of the points or line nodes are given by x, y. The optional parameter fmt is a convenient way for defining basic formatting like color, marker and...
doc_24585
Get the traceback where the Python object obj was allocated. Return a Traceback instance, or None if the tracemalloc module is not tracing memory allocations or did not trace the allocation of the object. See also gc.get_referrers() and sys.getsizeof() functions.
doc_24586
Closes associated resources of this request object. This closes all file handles explicitly. You can also use the request object in a with statement which will automatically close it. Changelog New in version 0.9. Return type None
doc_24587
See Migration guide for more details. tf.compat.v1.math.special.expint tf.math.special.expint( x, name=None ) The Exponential integral is defined as the integral of exp(t) / t from -inf to x, with the domain of definition all positive real numbers. tf.math.special.expint([1., 1.1, 2.1, 4.1]).numpy() array([ 1.8...
doc_24588
Set the value array from array-like A. Parameters Aarray-like or None The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A.
doc_24589
Mask an array where less than a given value. This function is a shortcut to masked_where, with condition = (x < value). See also masked_where Mask where a condition is met. Examples >>> import numpy.ma as ma >>> a = np.arange(4) >>> a array([0, 1, 2, 3]) >>> ma.masked_less(a, 2) masked_array(data=[--, --, 2, 3]...
doc_24590
Return fmod(x, y), as defined by the platform C library. Note that the Python expression x % y may not return the same result. The intent of the C standard is that fmod(x, y) be exactly (mathematically; to infinite precision) equal to x - n*y for some integer n such that the result has the same sign as x and magnitude ...
doc_24591
Downsample image by applying function func to local blocks. This function is useful for max and mean pooling, for example. Parameters imagendarray N-dimensional input image. block_sizearray_like Array containing down-sampling integer factor along each axis. funccallable Function object which is used to ...
doc_24592
Render a DataFrame to an XML document. New in version 1.3.0. Parameters path_or_buffer:str, path object, file-like object, or None, default None String, path object (implementing os.PathLike[str]), or file-like object implementing a write() function. If None, the result is returned as a string. index:bool, ...
doc_24593
Calculate the Shannon entropy of an image. The Shannon entropy is defined as S = -sum(pk * log(pk)), where pk are frequency/probability of pixels of value k. Parameters image(N, M) ndarray Grayscale input image. basefloat, optional The logarithmic base to use. Returns entropyfloat Notes The return...
doc_24594
Return True if the block is a nested class or function.
doc_24595
The error message used by ValidationError if validation fails. Defaults to "Null characters are not allowed.".
doc_24596
Set the url for the artist. Parameters urlstr
doc_24597
Handle authentication with the proxy. password_mgr, if given, should be something that is compatible with HTTPPasswordMgr; refer to section HTTPPasswordMgr Objects for information on the interface that must be supported.
doc_24598
True if this transform has a corresponding inverse transform.
doc_24599
Return a string representation of data. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ...