_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_27600
Densely Connected Convolutional Networks (CVPR 2017) Functions DenseNet121(...): Instantiates the Densenet121 architecture. DenseNet169(...): Instantiates the Densenet169 architecture. DenseNet201(...): Instantiates the Densenet201 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. pre...
doc_27601
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo...
doc_27602
A string representing the MIME type of the request, parsed from the CONTENT_TYPE header.
doc_27603
This is the quantized version of InstanceNorm3d. Additional args: scale - quantization scale of the output, type: double. zero_point - quantization zero point of the output, type: long.
doc_27604
The HTTP status used for error responses. This should be a status string as defined in PEP 3333; it defaults to a 500 code and message.
doc_27605
A QuerySet that represents the objects. If provided, the value of queryset supersedes the value provided for model. Warning queryset is a class attribute with a mutable value so care must be taken when using it directly. Before using it, either call its all() method or retrieve it with get_queryset() which takes care ...
doc_27606
tf.metrics.MeanAbsoluteError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.MeanAbsoluteError tf.keras.metrics.MeanAbsoluteError( name='mean_absolute_error', dtype=None ) Args name (Optional) string name of the metric instance. dtype (Optional) data t...
doc_27607
The string value to replace sensitive value with. By default it replaces the values of sensitive variables with stars (**********).
doc_27608
Return a random floating point number N such that low <= N <= high and with the specified mode between those bounds. The low and high bounds default to zero and one. The mode argument defaults to the midpoint between the bounds, giving a symmetric distribution.
doc_27609
If the debugger should stop at this exception, invokes the user_exception() method (which should be overridden in subclasses). Raise a BdbQuit exception if the Bdb.quitting flag is set (which can be set from user_exception()). Return a reference to the trace_dispatch() method for further tracing in that scope.
doc_27610
Report that the test runner is about to process the given example. This method is provided to allow subclasses of DocTestRunner to customize their output; it should not be called directly. example is the example about to be processed. test is the test containing example. out is the output function that was passed to Do...
doc_27611
Set the DataFrame index using existing columns. Set the DataFrame index (row labels) using one or more existing columns or arrays (of the correct length). The index can replace the existing index or expand on it. Parameters keys:label or array-like or list of labels/arrays This parameter can be either a single ...
doc_27612
Get the text of the label.
doc_27613
Tracer is the class that implements the symbolic tracing functionality of torch.fx.symbolic_trace. A call to symbolic_trace(m) is equivalent to Tracer().trace(m). Tracer can be subclassed to override various behaviors of the tracing process. The different behaviors that can be overridden are described in the docstrin...
doc_27614
Only used when a custom intermediary model is specified. Django will normally determine which fields of the intermediary model to use in order to establish a many-to-many relationship automatically. However, consider the following models: from django.db import models class Person(models.Model): name = models.CharF...
doc_27615
Performs linear Principal Component Analysis (PCA) on a low-rank matrix, batches of such matrices, or sparse matrix. This function returns a namedtuple (U, S, V) which is the nearly optimal approximation of a singular value decomposition of a centered matrix AA such that A=Udiag(S)VTA = U diag(S) V^T . Note The rel...
doc_27616
The index after the last invalid data in object.
doc_27617
Alias for set_fontproperties.
doc_27618
The first child of the node, if there are any, or None. This is a read-only attribute.
doc_27619
tf.experimental.numpy.finfo( dtype ) Note that currently it just forwards to the numpy namesake, while tensorflow and numpy dtypes may have different properties. See the NumPy documentation for numpy.finfo.
doc_27620
This function returns an object that describes the resources consumed by either the current process or its children, as specified by the who parameter. The who parameter should be specified using one of the RUSAGE_* constants described below. A simple example: from resource import * import time # a non CPU-bound task ...
doc_27621
Fiscal year the Period lies in according to its starting-quarter. The year and the qyear of the period will be the same if the fiscal and calendar years are the same. When they are not, the fiscal year can be different from the calendar year of the period. Returns int The fiscal year of the period. See also ...
doc_27622
Return whether ticks are drawn inside or outside the axes.
doc_27623
Called when the transport’s buffer drains below the low watermark.
doc_27624
See Migration guide for more details. tf.compat.v1.raw_ops.QueueEnqueue tf.raw_ops.QueueEnqueue( handle, components, timeout_ms=-1, name=None ) The components input has k elements, which correspond to the components of tuples stored in the given queue. N.B. If the queue is full, this operation will block until t...
doc_27625
Gathers a list of tensors in a single process. Parameters tensor (Tensor) – Input tensor. gather_list (list[Tensor], optional) – List of appropriately-sized tensors to use for gathered data (default is None, must be specified on the destination rank) dst (int, optional) – Destination rank (default is 0) group ...
doc_27626
Alias for get_markeredgecolor.
doc_27627
Constructor for a FIFO queue. maxsize is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If maxsize is less than or equal to zero, the queue size is infinite.
doc_27628
operator.__concat__(a, b) Return a + b for a and b sequences.
doc_27629
Load cookies from a file. Old cookies are kept unless overwritten by newly loaded ones. Arguments are as for save(). The named file must be in the format understood by the class, or LoadError will be raised. Also, OSError may be raised, for example if the file does not exist. Changed in version 3.3: IOError used to be...
doc_27630
Return the turtle’s current heading (value depends on the turtle mode, see mode()). >>> turtle.home() >>> turtle.left(67) >>> turtle.heading() 67.0
doc_27631
In-place version of reciprocal()
doc_27632
setDaemon() Old getter/setter API for daemon; use it directly as a property instead.
doc_27633
Length of one array element in bytes. Examples >>> x = np.array([1,2,3], dtype=np.float64) >>> x.itemsize 8 >>> x = np.array([1,2,3], dtype=np.complex128) >>> x.itemsize 16
doc_27634
Groupby iterator. Returns Generator yielding sequence of (name, subsetted object) for each group
doc_27635
Sort an array in-place. Refer to numpy.sort for full documentation. Parameters axisint, optional Axis along which to sort. Default is -1, which means sort along the last axis. kind{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, optional Sorting algorithm. The default is ‘quicksort’. Note that both ‘stable...
doc_27636
The full name of a template to use as defined by a string. Not defining a template_name will raise a django.core.exceptions.ImproperlyConfigured exception.
doc_27637
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_27638
This is a variant of torch.quantile() that “ignores” NaN values, computing the quantiles q as if NaN values in input did not exist. If all values in a reduced row are NaN then the quantiles for that reduction will be NaN. See the documentation for torch.quantile(). Parameters input (Tensor) – the input tensor. q (...
doc_27639
Bases: matplotlib.scale.ScaleBase Provide an arbitrary scale with user-supplied function for the axis. Parameters axisAxis The axis for the scale. functions(callable, callable) two-tuple of the forward and inverse functions for the scale. The forward function must be monotonic. Both functions must have the ...
doc_27640
The get_queryset method on a ModelAdmin returns a QuerySet of all model instances that can be edited by the admin site. One use case for overriding this method is to show objects owned by the logged-in user: class MyModelAdmin(admin.ModelAdmin): def get_queryset(self, request): qs = super().get_queryset(req...
doc_27641
See torch.argsort()
doc_27642
Convert samples in the audio fragment to u-LAW encoding and return this as a bytes object. u-LAW is an audio encoding format whereby you get a dynamic range of about 14 bits using only 8 bit samples. It is used by the Sun audio hardware, among others.
doc_27643
This function imports and returns a fresh copy of the named Python module by removing the named module from sys.modules before doing the import. Note that unlike reload(), the original module is not affected by this operation. fresh is an iterable of additional module names that are also removed from the sys.modules ca...
doc_27644
os.O_NOINHERIT os.O_SHORT_LIVED os.O_TEMPORARY os.O_RANDOM os.O_SEQUENTIAL os.O_TEXT The above constants are only available on Windows.
doc_27645
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_27646
Return True for ignorable lines. The line line is ignorable if line is blank or contains a single '#', otherwise it is not ignorable. Used as a default for parameter linejunk in ndiff() in older versions.
doc_27647
See Migration guide for more details. tf.compat.v1.errors.UnavailableError tf.errors.UnavailableError( node_def, op, message ) This exception is not currently used. Attributes error_code The integer error code that describes the error. message The error message that describes the error. node_d...
doc_27648
The HTTP status code for the response. Unless reason_phrase is explicitly set, modifying the value of status_code outside the constructor will also modify the value of reason_phrase.
doc_27649
assertGreaterEqual(first, second, msg=None) assertLess(first, second, msg=None) assertLessEqual(first, second, msg=None) Test that first is respectively >, >=, < or <= than second depending on the method name. If not, the test will fail: >>> self.assertGreaterEqual(3, 4) AssertionError: "3" unexpectedly not great...
doc_27650
Pseudo-Vandermonde matrix of given degree. Returns the pseudo-Vandermonde matrix of degree deg and sample points x. The pseudo-Vandermonde matrix is defined by \[V[..., i] = He_i(x),\] where 0 <= i <= deg. The leading indices of V index the elements of x and the last index is the degree of the HermiteE polynomial. I...
doc_27651
Returns the smallest representable number larger than x.
doc_27652
Generates a string representation of an XML element, including all subelements. element is an Element instance. encoding 1 is the output encoding (default is US-ASCII). Use encoding="unicode" to generate a Unicode string (otherwise, a bytestring is generated). method is either "xml", "html" or "text" (default is "xml")...
doc_27653
Selects TLS version 1.1 as the channel encryption protocol. Available only with openssl version 1.0.1+. New in version 3.4. Deprecated since version 3.6: OpenSSL has deprecated all version specific protocols. Use the default protocol PROTOCOL_TLS with flags like OP_NO_SSLv3 instead.
doc_27654
class fractions.Fraction(numerator=0, denominator=1) class fractions.Fraction(other_fraction) class fractions.Fraction(float) class fractions.Fraction(decimal) class fractions.Fraction(string) The first version requires that numerator and denominator are instances of numbers.Rational and returns a new Fractio...
doc_27655
Predict classes for X. Parameters Xarray-like, shape (n_samples, n_features) The input samples. Returns yndarray, shape (n_samples,) The predicted classes.
doc_27656
Called when the other end signals it won’t send any more data (for example by calling transport.write_eof(), if the other end also uses asyncio). This method may return a false value (including None), in which case the transport will close itself. Conversely, if this method returns a true value, the protocol used deter...
doc_27657
Test element-wise for positive infinity, return result as bool array. Parameters xarray_like The input array. outarray_like, optional A location into which the result is stored. If provided, it must have a shape that the input broadcasts to. If not provided or None, a freshly-allocated boolean array is retu...
doc_27658
See Migration guide for more details. tf.compat.v1.raw_ops.Acos tf.raw_ops.Acos( x, name=None ) Provided an input tensor, the tf.math.acos operation returns the inverse cosine of each element of the tensor. If y = tf.math.cos(x) then, x = tf.math.acos(y). Input range is [-1, 1] and the output has a range of [0, ...
doc_27659
The namespace URI associated with the reserved prefix xml, as defined by Namespaces in XML (section 4).
doc_27660
Return the next random floating point number in the range [0.0, 1.0).
doc_27661
Center and scale the data. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data used to scale along the specified axis. Returns X_tr{ndarray, sparse matrix} of shape (n_samples, n_features) Transformed array.
doc_27662
sklearn.utils.indexable(*iterables) [source] Make arrays indexable for cross-validation. Checks consistent length, passes through None, and ensures that everything can be indexed by converting sparse matrices to csr and converting non-interable objects to arrays. Parameters *iterables{lists, dataframes, ndarrays,...
doc_27663
class sklearn.impute.MissingIndicator(*, missing_values=nan, features='missing-only', sparse='auto', error_on_new=True) [source] Binary indicators for missing values. Note that this component typically should not be used in a vanilla Pipeline consisting of transformers and a classifier, but rather could be added usin...
doc_27664
returns an unmodified image as a string get_raw() -> string Gets an image from a camera as a string in the native pixelformat of the camera. Useful for integration with other libraries.
doc_27665
Read an image from a file into an array. Note This function exists for historical reasons. It is recommended to use PIL.Image.open instead for loading images. Parameters fnamestr or file-like The image file to read: a filename, a URL or a file-like object opened in read-binary mode. Passing a URL is deprecate...
doc_27666
Base class for exceptions raised when problems occur performing string interpolation.
doc_27667
Plot the sparsity pattern of a 2D array. This visualizes the non-zero values of the array. Two plotting styles are available: image and marker. Both are available for full arrays, but only the marker style works for scipy.sparse.spmatrix instances. Image style If marker and markersize are None, imshow is used. Any ex...
doc_27668
Use ghostscript's pswrite or epswrite device to distill a file. This yields smaller files without illegal encapsulated postscript operators. The output is low-level, converting text to outlines.
doc_27669
Return a new array with fields in drop_names dropped. Nested fields are supported. Changed in version 1.18.0: drop_fields returns an array with 0 fields if all fields are dropped, rather than returning None as it did previously. Parameters basearray Input array drop_namesstring or sequence String or seque...
doc_27670
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_27671
tf.data.experimental.StatsAggregator() To record statistics, use one of the custom transformation functions defined in this module when defining your tf.data.Dataset. All statistics will be aggregated by the StatsAggregator that is associated with a particular iterator (see below). For example, to record the latency o...
doc_27672
Least squares fit to data. Return a series instance that is the least squares fit to the data y sampled at x. The domain of the returned instance can be specified and this will often result in a superior fit with less chance of ill conditioning. Parameters xarray_like, shape (M,) x-coordinates of the M sample p...
doc_27673
Like get_full_path(), but uses path_info instead of path. Example: "/minfo/music/bands/the_beatles/?print=true"
doc_27674
See Migration guide for more details. tf.compat.v1.raw_ops.SerializeManySparse tf.raw_ops.SerializeManySparse( sparse_indices, sparse_values, sparse_shape, out_type=tf.dtypes.string, name=None ) The SparseTensor must have rank R greater than 1, and the first dimension is treated as the minibatch dimension. E...
doc_27675
Predict class for X. The predicted class of an input sample is a vote by the trees in the forest, weighted by their probability estimates. That is, the predicted class is the one with highest mean probability estimate across the trees. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The...
doc_27676
Return an iterator 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 iterator
doc_27677
Returns a mask of the overlapping set bits overlap_mask(othermask, offset) -> Mask Returns a Mask, the same size as this mask, containing the overlapping set bits between this mask and othermask. Parameters: othermask (Mask) -- the other mask to overlap with this mask offset (tuple(int, int) or list[int, int...
doc_27678
See torch.matrix_exp()
doc_27679
pygame object for color representations Color(r, g, b) -> Color Color(r, g, b, a=255) -> Color Color(color_value) -> Color The Color class represents RGBA color values using a value range of 0 to 255 inclusive. It allows basic arithmetic operations — binary operations +, -, *, //, %, and unary operation ~ — to cre...
doc_27680
The last colorbar associated with this ScalarMappable. May be None.
doc_27681
The UpdateView page displayed to a GET request uses a template_name_suffix of '_form'. For example, changing this attribute to '_update_form' for a view updating objects for the example Author model would cause the default template_name to be 'myapp/author_update_form.html'.
doc_27682
See Migration guide for more details. tf.compat.v1.raw_ops.FFT tf.raw_ops.FFT( input, name=None ) Computes the 1-dimensional discrete Fourier transform over the inner-most dimension of input. Args input A Tensor. Must be one of the following types: complex64, complex128. A complex tensor. name A n...
doc_27683
sklearn.datasets.load_boston(*, return_X_y=False) [source] Load and return the boston house-prices dataset (regression). Samples total 506 Dimensionality 13 Features real, positive Targets real 5. - 50. Read more in the User Guide. Parameters return_X_ybool, default=False If True, returns (data, targe...
doc_27684
See Migration guide for more details. tf.compat.v1.raw_ops.Multinomial tf.raw_ops.Multinomial( logits, num_samples, seed=0, seed2=0, output_dtype=tf.dtypes.int64, name=None ) Args logits A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, int64, bfloat16, uint16, h...
doc_27685
The method writes a list (or any iterable) of bytes to the underlying socket immediately. If that fails, the data is queued in an internal write buffer until it can be sent. The method should be used along with the drain() method: stream.writelines(lines) await stream.drain()
doc_27686
Returns True if the given raw string is the correct password for the user. (This takes care of the password hashing in making the comparison.)
doc_27687
Compute the embedding vectors for data X Parameters Xarray-like of shape [n_samples, n_features] training set. yIgnored Returns selfreturns an instance of self.
doc_27688
Predict the class labels for the provided data. Parameters Xarray-like of shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’ Test samples. Returns yndarray of shape (n_queries,) or (n_queries, n_outputs) Class labels for each data sample.
doc_27689
Convert DataFrame to a NumPy record array. Index will be included as the first field of the record array if requested. Parameters index:bool, default True Include index in resulting record array, stored in ‘index’ field or using the index label, if set. column_dtypes:str, type, dict, default None If a strin...
doc_27690
Swap the bytes of the array elements Toggle between low-endian and big-endian data representation by returning a byteswapped array, optionally swapped in-place. Arrays of byte-strings are not swapped. The real and imaginary parts of a complex number are swapped individually. Parameters inplacebool, optional If ...
doc_27691
Bases: mpl_toolkits.axisartist.angle_helper.LocatorBase __call__(v1, v2)[source] Call self as a function.
doc_27692
Fused multiply-add. Return self*other+third with no rounding of the intermediate product self*other. >>> Decimal(2).fma(3, 5) Decimal('11')
doc_27693
Efficient subpixel image translation registration by cross-correlation. This code gives the same precision as the FFT upsampled cross-correlation in a fraction of the computation time and with reduced memory requirements. It obtains an initial estimate of the cross-correlation peak by an FFT and then refines the shif...
doc_27694
Back-projection to the original space. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data used to scale along the features axis. If a sparse matrix is provided, it will be converted into a sparse csc_matrix. Additionally, the sparse matrix needs to be nonnegative if ignore_implici...
doc_27695
Convert an image to single-precision (32-bit) floating point format. Parameters imagendarray Input image. force_copybool, optional Force a copy of the data, irrespective of its current dtype. Returns outndarray of float32 Output image. Notes The range of a floating point image is [0.0, 1.0] or [...
doc_27696
class tkinter.messagebox.Message(master=None, **options) Create a default information message box. Information message box tkinter.messagebox.showinfo(title=None, message=None, **options) Warning message boxes tkinter.messagebox.showwarning(title=None, message=None, **options) tkinter.messagebox.showerror(t...
doc_27697
Sets the seed for generating random numbers to a random number for the current GPU. It’s safe to call this function if CUDA is not available; in that case, it is silently ignored. Warning If you are working with a multi-GPU model, this function will only initialize the seed on one GPU. To initialize all GPUs, use se...
doc_27698
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_27699
Apply a CSS-styling function column-wise, row-wise, or table-wise. Updates the HTML representation with the result. Parameters func:function func should take a Series if axis in [0,1] and return a list-like object of same length, or a Series, not necessarily of same length, with valid index labels considering s...