_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_15600
get the current Surface transparency value get_alpha() -> int_value Return the current alpha value for the Surface.
doc_15601
See Migration guide for more details. tf.compat.v1.keras.layers.serialize tf.keras.layers.serialize( layer )
doc_15602
Query or modify the options for the specified column. If kw is not given, returns a dict of the column option values. If option is specified then the value for that option is returned. Otherwise, sets the options to the corresponding values. The valid options/values are: id Returns the column name. This is a read-o...
doc_15603
Sets all bits to 1 fill() -> None Sets all bits in the mask to 1. Returns: None Return type: NoneType
doc_15604
The DEFAULT object is a pre-created sentinel (actually sentinel.DEFAULT). It can be used by side_effect functions to indicate that the normal return value should be used.
doc_15605
Returns a new instance of the RotatingFileHandler class. The specified file is opened and used as the stream for logging. If mode is not specified, 'a' is used. If encoding is not None, it is used to open the file with that encoding. If delay is true, then file opening is deferred until the first call to emit(). By def...
doc_15606
Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning (AAAI 2017) Functions InceptionResNetV2(...): Instantiates the Inception-ResNet v2 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a...
doc_15607
The Content-Security-Policy-Report-Only header adds a csp policy that is not enforced but is reported thereby helping detect certain types of attacks.
doc_15608
Return an array representing the data in the Index. Warning We recommend using Index.array or Index.to_numpy(), depending on whether you need a reference to the underlying data or a NumPy array. Returns array: numpy.ndarray or ExtensionArray See also Index.array Reference to the underlying data. Index.to_...
doc_15609
tf.keras.layers.experimental.preprocessing.TextVectorization( max_tokens=None, standardize=LOWER_AND_STRIP_PUNCTUATION, split=SPLIT_ON_WHITESPACE, ngrams=None, output_mode=INT, output_sequence_length=None, pad_to_max_tokens=True, vocabulary=None, **kwargs ) This layer has basic options for managing text in...
doc_15610
Close the cursor now (rather than whenever __del__ is called). The cursor will be unusable from this point forward; a ProgrammingError exception will be raised if any operation is attempted with the cursor.
doc_15611
Expands environment variable placeholders %NAME% in strings like REG_EXPAND_SZ: >>> ExpandEnvironmentStrings('%windir%') 'C:\\Windows' Raises an auditing event winreg.ExpandEnvironmentStrings with argument str.
doc_15612
Return the sum of the values over the requested axis. This is equivalent to the method numpy.sum. Parameters axis:{index (0), columns (1)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when computing the result. level:int or level name, default None If the axis...
doc_15613
Execute a command in a sub-process. Parameters cmdstr The command to execute. displaystr or sequence of str, optional The text to add to the log file kept by numpy.distutils. If not given, display is equal to cmd. env: a dictionary for environment variables, optional Returns None Raises DistutilsEx...
doc_15614
Rearrange index levels using input order. May not drop or duplicate levels. Parameters order:list of int representing new level order Reference level by number or key. Returns type of caller (new object)
doc_15615
Applies fn recursively to every submodule (as returned by .children()) as well as self. Typical use includes initializing the parameters of a model (see also torch.nn.init). Parameters fn (Module -> None) – function to be applied to each submodule Returns self Return type Module Example: >>> @torch.no_grad() >>...
doc_15616
tf.sparse.segment_sum( data, indices, segment_ids, num_segments=None, name=None ) Read the section on segmentation for an explanation of segments. Like tf.math.segment_sum, but segment_ids can have rank less than data's first dimension, selecting a subset of dimension 0, specified by indices. segment_ids is allowe...
doc_15617
The full name of a template to display the view. Defaults to registration/password_reset_complete.html.
doc_15618
os.O_RSYNC os.O_SYNC os.O_NDELAY os.O_NONBLOCK os.O_NOCTTY os.O_CLOEXEC The above constants are only available on Unix. Changed in version 3.3: Add O_CLOEXEC constant.
doc_15619
Use importlib machinery to import a module modname from the file modfile. Depending on the spec.loader, the module may not be registered in sys.modules.
doc_15620
Returns a class or module which implements the storage API. When called without the import_path parameter get_storage_class will return the current default storage system as defined by DEFAULT_FILE_STORAGE. If import_path is provided, get_storage_class will attempt to import the class or module from the given path and ...
doc_15621
Immutable ndarray holding ordinal values indicating regular periods in time. Index keys are boxed to Period objects which carries the metadata (eg, frequency information). Parameters data:array-like (1d int np.ndarray or PeriodArray), optional Optional period-like data to construct index with. copy:bool Mak...
doc_15622
Convert a Chebyshev series to a polynomial. Convert an array representing the coefficients of a Chebyshev series, ordered from lowest degree to highest, to an array of the coefficients of the equivalent polynomial (relative to the “standard” basis) ordered from lowest to highest degree. Parameters carray_like 1...
doc_15623
Return the picking behavior of the artist. The possible values are described in set_picker. See also set_picker, pickable, pick
doc_15624
Similar to request_uri(), except that the PATH_INFO and QUERY_STRING variables are ignored. The result is the base URI of the application object addressed by the request.
doc_15625
Bases: matplotlib.widgets._SelectorWidget Select a rectangular region of an axes. For the cursor to remain responsive you must keep a reference to it. Press and release events triggered at the same coordinates outside the selection will clear the selector, except when ignore_event_outside=True. Parameters axAxes ...
doc_15626
Roll provided date forward to next offset only if not on offset.
doc_15627
See Migration guide for more details. tf.compat.v1.raw_ops.RFFT2D tf.raw_ops.RFFT2D( input, fft_length, Tcomplex=tf.dtypes.complex64, name=None ) Computes the 2-dimensional discrete Fourier transform of a real-valued signal over the inner-most 2 dimensions of input. Since the DFT of a real signal is Hermitian-sy...
doc_15628
A ConvBn2d module is a module fused from Conv2d and BatchNorm2d, attached with FakeQuantize modules for weight, used in quantization aware training. We combined the interface of torch.nn.Conv2d and torch.nn.BatchNorm2d. Similar to torch.nn.Conv2d, with FakeQuantize modules initialized to default. Variables ~ConvB...
doc_15629
Called when the active opener’s socket actually makes a connection. Might send a “welcome” banner, or initiate a protocol negotiation with the remote endpoint, for example.
doc_15630
Bases: matplotlib.scale.ScaleBase A standard logarithmic scale. Care is taken to only plot positive values. Parameters axisAxis The axis for the scale. basefloat, default: 10 The base of the logarithm. nonpositive{'clip', 'mask'}, default: 'clip' Determines the behavior for non-positive values. They can...
doc_15631
html_template_path New in Django 3.2. Property that returns a pathlib.Path representing the absolute filesystem path to a template for rendering the HTML representation of the exception. Defaults to the Django provided template. text_template_path New in Django 3.2. Property that returns a pathlib.Path re...
doc_15632
Returns a new bit generator with the state jumped The state of the returned big generator is jumped as-if 2**(128 * jumps) random numbers have been generated. Parameters jumpsinteger, positive Number of times to jump the state of the bit generator returned Returns bit_generatorMT19937 New instance of ge...
doc_15633
Raised when a file or directory is requested but doesn’t exist. Corresponds to errno ENOENT.
doc_15634
In-place version of relu().
doc_15635
Load a collection of images. Parameters load_patternstr or list List of objects to load. These are usually filenames, but may vary depending on the currently active plugin. See the docstring for ImageCollection for the default behaviour of this parameter. conserve_memorybool, optional If True, never keep mo...
doc_15636
Pads the input tensor using the reflection of the input boundary. For N-dimensional padding, use torch.nn.functional.pad(). Parameters padding (int, tuple) – the size of the padding. If is int, uses the same padding in all boundaries. If a 2-tuple, uses (padding_left\text{padding\_left} , padding_right\text{padding...
doc_15637
tf.image.stateless_random_brightness( image, max_delta, seed ) Equivalent to adjust_brightness() using a delta randomly picked in the interval [-max_delta, max_delta). Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed settings (e.g....
doc_15638
Series([data, index, dtype, name, copy, ...]) One-dimensional ndarray with axis labels (including time series). Attributes Axes Series.index The index (axis labels) of the Series. Series.array The ExtensionArray of the data backing this Series or Index. Series.values Return Series as ndarray or ndarray-...
doc_15639
Add an inset indicator rectangle to the Axes based on the axis limits for an inset_ax and draw connectors between inset_ax and the rectangle. Parameters inset_axAxes Inset Axes to draw connecting lines to. Two lines are drawn connecting the indicator box to the inset Axes on corners chosen so as to not overlap ...
doc_15640
Returns float The theta position of the radius labels in degrees.
doc_15641
Release a lock. This can be called from any process or thread, not only the process or thread which originally acquired the lock. Behavior is the same as in threading.Lock.release() except that when invoked on an unlocked lock, a ValueError is raised.
doc_15642
See Migration guide for more details. tf.compat.v1.estimator.BoostedTreesEstimator tf.estimator.BoostedTreesEstimator( feature_columns, n_batches_per_layer, head, model_dir=None, weight_column=None, n_trees=100, max_depth=6, learning_rate=0.1, l1_regularization=0.0, l2_regularization=0.0, tree_complexity=...
doc_15643
Return the sample standard deviation (the square root of the sample variance). See variance() for arguments and other details. >>> stdev([1.5, 2.5, 2.5, 2.75, 3.25, 4.75]) 1.0810874155219827
doc_15644
The accessor to the pixel values of the GDALBand. Returns the complete data array if no parameters are provided. A subset of the pixel array can be requested by specifying an offset and block size as tuples. If NumPy is available, the data is returned as NumPy array. For performance reasons, it is highly recommended to...
doc_15645
Parameters fun – a function with two arguments which will be called with the coordinates of the clicked point on the canvas btn – number of the mouse-button, defaults to 1 (left mouse button) add – True or False – if True, a new binding will be added, otherwise it will replace a former binding Bind fun to mous...
doc_15646
Return the current setting for property propertyname. If the property is not recognized, a SAXNotRecognizedException is raised. The well-known propertynames are listed in the module xml.sax.handler.
doc_15647
See Migration guide for more details. tf.compat.v1.raw_ops.BarrierInsertMany tf.raw_ops.BarrierInsertMany( handle, keys, values, component_index, name=None ) If a key is not found in the barrier, this operation will create a new incomplete element. If a key is found in the barrier, and the element already has a ...
doc_15648
Is the torch.device where this Tensor is.
doc_15649
Container holding a sequence of pruning methods for iterative pruning. Keeps track of the order in which pruning methods are applied and handles combining successive pruning calls. Accepts as argument an instance of a BasePruningMethod or an iterable of them. add_pruning_method(method) [source] Adds a child pruni...
doc_15650
Request the Task to be cancelled. This arranges for a CancelledError exception to be thrown into the wrapped coroutine on the next cycle of the event loop. The coroutine then has a chance to clean up or even deny the request by suppressing the exception with a try … … except CancelledError … finally block. Therefore, u...
doc_15651
Convert the Timedelta to a NumPy timedelta64. New in version 0.25.0. This is an alias method for Timedelta.to_timedelta64(). The dtype and copy parameters are available here only for compatibility. Their values will not affect the return value. Returns numpy.timedelta64 See also Series.to_numpy Similar met...
doc_15652
Apply the ufunc op to all pairs (a, b) with a in A and b in B. Let M = A.ndim, N = B.ndim. Then the result, C, of op.outer(A, B) is an array of dimension M + N such that: \[C[i_0, ..., i_{M-1}, j_0, ..., j_{N-1}] = op(A[i_0, ..., i_{M-1}], B[j_0, ..., j_{N-1}])\] For A and B one-dimensional, this is equivalent to: r...
doc_15653
tf.nn.zero_fraction Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.zero_fraction, tf.compat.v1.nn.zero_fraction tf.math.zero_fraction( value, name=None ) If value is empty, the result is nan. This is useful in summaries to measure and report sparsity. For example, z = tf.nn....
doc_15654
Record handler as the function to call when an object of a type matching typekey is passed to set_content(). For the possible values of typekey, see set_content().
doc_15655
Repeated K-Fold cross validator. Repeats K-Fold n times with different randomization in each repetition. Read more in the User Guide. Parameters n_splitsint, default=5 Number of folds. Must be at least 2. n_repeatsint, default=10 Number of times cross-validator needs to be repeated. random_stateint, Rando...
doc_15656
An attempt to resume the parser was made when the parser had not been suspended.
doc_15657
MH instances do not keep any open files, so this method is equivalent to unlock().
doc_15658
Calculates a covariance matrix shrunk on the diagonal Read more in the User Guide. Parameters emp_covarray-like of shape (n_features, n_features) Covariance matrix to be shrunk shrinkagefloat, default=0.1 Coefficient in the convex combination used for the computation of the shrunk estimate. Range is [0, 1]....
doc_15659
sklearn.datasets.load_linnerud(*, return_X_y=False, as_frame=False) [source] Load and return the physical excercise linnerud dataset. This dataset is suitable for multi-ouput regression tasks. Samples total 20 Dimensionality 3 (for both data and target) Features integer Targets integer Read more in the User...
doc_15660
Get a list of artists contained in the figure.
doc_15661
Indicates whether the date is the first day of the month. Returns Series or array For Series, returns a Series with boolean values. For DatetimeIndex, returns a boolean array. See also is_month_start Return a boolean indicating whether the date is the first day of the month. is_month_end Return a boolean...
doc_15662
Generate a mostly low rank matrix with bell-shaped singular values. Most of the variance can be explained by a bell-shaped curve of width effective_rank: the low rank part of the singular values profile is: (1 - tail_strength) * exp(-1.0 * (i / effective_rank) ** 2) The remaining singular values’ tail is fat, decrea...
doc_15663
Set the patch linewidth in points. Parameters wfloat or None
doc_15664
Similar to clock_settime() but set time with nanoseconds. Availability: Unix. New in version 3.7.
doc_15665
All Tensors that have requires_grad which is False will be leaf Tensors by convention. For Tensors that have requires_grad which is True, they will be leaf Tensors if they were created by the user. This means that they are not the result of an operation and so grad_fn is None. Only leaf Tensors will have their grad pop...
doc_15666
Compute standard error of the mean of groups, excluding missing values. For multiple groupings, the result index will be a MultiIndex. Parameters ddof:int, default 1 Degrees of freedom. Returns Series or DataFrame Standard error of the mean of values within each group. See also Series.groupby Apply...
doc_15667
See torch.flip()
doc_15668
Same as compilest(st, filename).
doc_15669
A mixin that can be used to retrieve and provide parsing information for a year component of a date. Methods and Attributes year_format The strftime() format to use when parsing the year. By default, this is '%Y'. year Optional The value for the year, as a string. By default, set to None, which means the year...
doc_15670
Return the dialect associated with name. An Error is raised if name is not a registered dialect name. This function returns an immutable Dialect.
doc_15671
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_15672
Return the cumulative product of the array elements over the given axis. Masked values are set to 1 internally during the computation. However, their position is saved, and the result will be masked at the same locations. Refer to numpy.cumprod for full documentation. See also numpy.ndarray.cumprod corresponding f...
doc_15673
Simply handles the multiplication between the parameter being pruned and the generated mask. Fetches the mask and the original tensor from the module and returns the pruned version of the tensor. Parameters module (nn.Module) – module containing the tensor to prune Returns pruned version of the input tensor Retu...
doc_15674
check if text will be rendered bold get_bold() -> bool Return True when the font bold rendering mode is enabled. Note This is the same as the bold attribute.
doc_15675
A FileCookieJar that can load from and save cookies to disk in format compatible with the libwww-perl library’s Set-Cookie3 file format. This is convenient if you want to store cookies in a human-readable file. Changed in version 3.8: The filename parameter supports a path-like object.
doc_15676
A generic version of collections.abc.ValuesView. Deprecated since version 3.9: collections.abc.ValuesView now supports []. See PEP 585 and Generic Alias Type.
doc_15677
Return a list of the child Artists of this Artist.
doc_15678
Set the agg filter. Parameters filter_funccallable A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array.
doc_15679
Unit Jacobian transform to reshape the rightmost part of a tensor. Note that in_shape and out_shape must have the same number of elements, just as for torch.Tensor.reshape(). Parameters in_shape (torch.Size) – The input event shape. out_shape (torch.Size) – The output event shape.
doc_15680
See Migration guide for more details. tf.compat.v1.raw_ops.ScaleAndTranslateGrad tf.raw_ops.ScaleAndTranslateGrad( grads, original_image, scale, translation, kernel_type='lanczos3', antialias=True, name=None ) Args grads A Tensor. Must be one of the following types: float32. original_image A T...
doc_15681
Fit the SVM model according to the given training data. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples, n_samples) Training vectors, where n_samples is the number of samples and n_features is the number of features. For kernel=”precomputed”, the expected shape of X is (n_...
doc_15682
Set this Axis' tick locations and optionally labels. If necessary, the view limits of the Axis are expanded so that all given ticks are visible. Parameters tickslist of floats List of tick locations. labelslist of str, optional List of tick labels. If not set, the labels show the data value. minorbool, de...
doc_15683
See Migration guide for more details. tf.compat.v1.raw_ops.ConditionalAccumulator tf.raw_ops.ConditionalAccumulator( dtype, shape, container='', shared_name='', reduction_type='MEAN', name=None ) The accumulator accepts gradients marked with local_step greater or equal to the most recent global_step known to...
doc_15684
Set the url for the artist. Parameters urlstr
doc_15685
Return a dict containing dummy overrides for all overridable functions Returns A dictionary that maps overridable functions in the PyTorch API to lambda functions that have the same signature as the real function and unconditionally return -1. These lambda functions are useful for testing API coverage for a type th...
doc_15686
In-place version of mul().
doc_15687
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_15688
Convert points to display units. You need to override this function (unless your backend doesn't have a dpi, e.g., postscript or svg). Some imaging systems assume some value for pixels per inch: points to pixels = points * pixels_per_inch/72 * dpi/72 Parameters pointsfloat or array-like a float or a numpy arra...
doc_15689
The flag is set if there are no free or cell variables.
doc_15690
The standard deviation of all pixel values of the band (excluding the “no data” value).
doc_15691
Set the xaxis' labels with list of string labels. Warning This method should only be used after fixing the tick positions using Axes.set_xticks. Otherwise, the labels may end up in unexpected positions. Parameters labelslist of str The label texts. fontdictdict, optional A dictionary controlling the appea...
doc_15692
Set the radius of the circle. Parameters radiusfloat
doc_15693
bytearray.splitlines(keepends=False) Return a list of the lines in the binary sequence, breaking at ASCII line boundaries. This method uses the universal newlines approach to splitting lines. Line breaks are not included in the resulting list unless keepends is given and true. For example: >>> b'ab c\n\nde fg\rkl\r\n...
doc_15694
Places data into the clipboard. put(type, data) -> None Places data for a given clipboard type into the clipboard. The data must be a string buffer. The type is a string identifying the type of data to be placed into the clipboard. This can be one of the predefined pygame.SCRAP_PBM, pygame.SCRAP_PPM, pygame.SCRAP_BMP...
doc_15695
See Migration guide for more details. tf.compat.v1.raw_ops.StatsAggregatorSummary tf.raw_ops.StatsAggregatorSummary( iterator, name=None ) Args iterator A Tensor of type resource. name A name for the operation (optional). Returns A Tensor of type string.
doc_15696
Called by the parser to give the application a locator for locating the origin of document events. SAX parsers are strongly encouraged (though not absolutely required) to supply a locator: if it does so, it must supply the locator to the application by invoking this method before invoking any of the other methods in th...
doc_15697
Locale category for sorting strings. The functions strcoll() and strxfrm() of the locale module are affected.
doc_15698
Optional abstract method which returns a dict containing metadata about the specified path. Supported dictionary keys are: 'mtime' (mandatory): an integer or floating-point number representing the modification time of the source code; 'size' (optional): the size in bytes of the source code. Any other keys in the di...
doc_15699
DummyClassifier is a classifier that makes predictions using simple rules. This classifier is useful as a simple baseline to compare with other (real) classifiers. Do not use it for real problems. Read more in the User Guide. New in version 0.13. Parameters strategy{“stratified”, “most_frequent”, “prior”, “unif...