_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_16000
torch.multiprocessing.get_all_sharing_strategies() [source] Returns a set of sharing strategies supported on a current system. torch.multiprocessing.get_sharing_strategy() [source] Returns the current strategy for sharing CPU tensors. torch.multiprocessing.set_sharing_strategy(new_strategy) [source] Sets ...
doc_16001
Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and beginning offset bytes into the field. Parameters valobject Value to be placed in field. dtypedtype object Data-type of the field in which to place val. offsetint, optional The number of b...
doc_16002
Return whether the artist uses clipping.
doc_16003
Get the properties associated with this pandas object. The available flags are Flags.allows_duplicate_labels See also Flags Flags that apply to pandas objects. DataFrame.attrs Global metadata applying to this dataset. Notes “Flags” differ from “metadata”. Flags reflect properties of the pandas object (the S...
doc_16004
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_16005
os.execle(path, arg0, arg1, ..., env) os.execlp(file, arg0, arg1, ...) os.execlpe(file, arg0, arg1, ..., env) os.execv(path, args) os.execve(path, args, env) os.execvp(file, args) os.execvpe(file, args, env) These functions all execute a new program, replacing the current process; they do not return. On U...
doc_16006
Build a layout of Axes based on ASCII art or nested lists. This is a helper function to build complex GridSpec layouts visually. Note This API is provisional and may be revised in the future based on early user feedback. Parameters mosaiclist of list of {hashable or nested} or str A visual layout of how you w...
doc_16007
See Migration guide for more details. tf.compat.v1.raw_ops.StridedSliceGrad tf.raw_ops.StridedSliceGrad( shape, begin, end, strides, dy, begin_mask=0, end_mask=0, ellipsis_mask=0, new_axis_mask=0, shrink_axis_mask=0, name=None ) Since StridedSlice cuts out pieces of its input which is size shape, its gradien...
doc_16008
class sklearn.model_selection.KFold(n_splits=5, *, shuffle=False, random_state=None) [source] K-Folds cross-validator Provides train/test indices to split data in train/test sets. Split dataset into k consecutive folds (without shuffling by default). Each fold is then used once as a validation while the k - 1 remaini...
doc_16009
A list of strings representing the file suffixes for optimized bytecode modules. New in version 3.3. Deprecated since version 3.5: Use BYTECODE_SUFFIXES instead.
doc_16010
bytearray.rjust(width[, fillbyte]) Return a copy of the object right justified in a sequence of length width. Padding is done using the specified fillbyte (default is an ASCII space). For bytes objects, the original sequence is returned if width is less than or equal to len(s). Note The bytearray version of this met...
doc_16011
The type of methods of some built-in data types such as str.join(). New in version 3.7.
doc_16012
Set the patch face color. Parameters colorcolor or None
doc_16013
Open an LZMA-compressed file in binary or text mode, returning a file object. The filename argument can be either an actual file name (given as a str, bytes or path-like object), in which case the named file is opened, or it can be an existing file object to read from or write to. The mode argument can be any of "r", "...
doc_16014
Remove axes of length one from a. Refer to numpy.squeeze for full documentation. See also numpy.squeeze equivalent function
doc_16015
tf.metrics.BinaryAccuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.BinaryAccuracy tf.keras.metrics.BinaryAccuracy( name='binary_accuracy', dtype=None, threshold=0.5 ) This metric creates two local variables, total and count that are used to compute the frequen...
doc_16016
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_16017
See Migration guide for more details. tf.compat.v1.data.experimental.CheckpointInputPipelineHook tf.data.experimental.CheckpointInputPipelineHook( estimator, external_state_policy='fail' ) This hook saves the state of the iterators in the Graph so that when training is resumed the input pipeline continues from w...
doc_16018
Override switch to disable any mathtext parsing for this Text. Parameters parse_mathbool If False, this Text will never use mathtext. If True, mathtext will be used if there is an even number of unescaped dollar signs.
doc_16019
tf.losses.CategoricalHinge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.CategoricalHinge tf.keras.losses.CategoricalHinge( reduction=losses_utils.ReductionV2.AUTO, name='categorical_hinge' ) loss = maximum(neg - pos + 1, 0) where neg=maximum((1-y_true)*y_pred) and ...
doc_16020
Return the list of ciphers shared by the client during the handshake. Each entry of the returned list is a three-value tuple containing the name of the cipher, the version of the SSL protocol that defines its use, and the number of secret bits the cipher uses. shared_ciphers() returns None if no connection has been est...
doc_16021
See Migration guide for more details. tf.compat.v1.raw_ops.SaveV2 tf.raw_ops.SaveV2( prefix, tensor_names, shape_and_slices, tensors, name=None ) By default, saves the named tensors in full. If the caller wishes to save specific slices of full tensors, "shape_and_slices" should be non-empty strings and correspon...
doc_16022
An error raised when a NIS function returns an error code.
doc_16023
Infers the shapes of the inverse computation, given the output shape. Defaults to preserving shape.
doc_16024
A list of functions that are called when the application context is destroyed. Since the application context is also torn down if the request ends this is the place to store code that disconnects from databases. Changelog New in version 0.9.
doc_16025
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_16026
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_16027
Create a quantized embedding module from a float module Parameters mod (Module) – a float module, either produced by torch.quantization utilities or provided by user
doc_16028
Bases: object Convert strings to dvi files using TeX, caching the results to a directory. Repeated calls to this constructor always return the same instance. propertyfont_families[source] propertyfont_family[source] propertyfont_info[source] get_basefile(tex, fontsize, dpi=None)[source] Return a filen...
doc_16029
Scan through string looking for the first location where this regular expression produces a match, and return a corresponding match object. Return None if no position in the string matches the pattern; note that this is different from finding a zero-length match at some point in the string. The optional second paramete...
doc_16030
See Migration guide for more details. tf.compat.v1.raw_ops.WorkerHeartbeat tf.raw_ops.WorkerHeartbeat( request, name=None ) Heartbeats may be sent periodically to indicate the coordinator is still active, to retrieve the current worker status and to expedite shutdown when necessary. Args request A Tenso...
doc_16031
Tell the serve_forever() loop to stop and wait until it does. shutdown() must be called while serve_forever() is running in a different thread otherwise it will deadlock.
doc_16032
Returns cosine similarity between x1x_1 and x2x_2 , computed along dim. similarity=x1⋅x2max⁡(∥x1∥2⋅∥x2∥2,ϵ).\text{similarity} = \dfrac{x_1 \cdot x_2}{\max(\Vert x_1 \Vert _2 \cdot \Vert x_2 \Vert _2, \epsilon)}. Parameters dim (int, optional) – Dimension where cosine similarity is computed. Default: 1 eps (f...
doc_16033
View inputs as arrays with at least two dimensions. Parameters arys1, arys2, …array_like One or more array-like sequences. Non-array inputs are converted to arrays. Arrays that already have two or more dimensions are preserved. Returns res, res2, …ndarray An array, or list of arrays, each with a.ndim >=...
doc_16034
Invoked when a new WebSocket is opened. The arguments to open are extracted from the tornado.web.URLSpec regular expression, just like the arguments to tornado.web.RequestHandler.get. open may be a coroutine. on_message will not be called until open has returned. Changed in version 5.1: open may be a coroutine.
doc_16035
returns the layer that sprite is currently in. get_layer_of_sprite(sprite) -> layer If the sprite is not found then it will return the default layer.
doc_16036
Returns True if the DE-9IM intersection matrix for the two geometries is T*F**F***.
doc_16037
See Migration guide for more details. tf.compat.v1.raw_ops.BesselI0 tf.raw_ops.BesselI0( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_16038
Returns the number of objects that are related through the provided expression. Default alias: <field>__count Return type: int Has one optional argument: distinct If distinct=True, the count will only include unique instances. This is the SQL equivalent of COUNT(DISTINCT <field>). The default value is False. ...
doc_16039
tf.compat.v1.metrics.false_positives( labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None ) If weights is None, weights default to 1. Use weights of 0 to mask values. Args labels The ground truth values, a Tensor whose dimensions must match predictions. Wil...
doc_16040
Plot 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{fft}...
doc_16041
Bases: mpl_toolkits.axisartist.axis_artist.AttributeCopier, mpl_toolkits.axisartist.axis_artist.LabelBase Axis Label. Derived from Text. The position of the text is updated in the fly, so changing text position has no effect. Otherwise, the properties can be changed as a normal Text. To change the pad between ticklab...
doc_16042
The Click command group for registering CLI commands for this object. The commands are available from the flask command once the application has been discovered and blueprints have been registered.
doc_16043
tf.experimental.numpy.empty( shape, dtype=float ) See the NumPy documentation for numpy.empty.
doc_16044
Returns one or more subgroups of the match. If there is a single argument, the result is a single string; if there are multiple arguments, the result is a tuple with one item per argument. Without arguments, group1 defaults to zero (the whole match is returned). If a groupN argument is zero, the corresponding return va...
doc_16045
BitGenerator for Chris Doty-Humphrey’s Small Fast Chaotic PRNG. Parameters seed{None, int, array_like[ints], SeedSequence}, optional A seed to initialize the BitGenerator. If None, then fresh, unpredictable entropy will be pulled from the OS. If an int or array_like[ints] is passed, then it will be passed to Se...
doc_16046
See Migration guide for more details. tf.compat.v1.raw_ops.ThreadUnsafeUnigramCandidateSampler tf.raw_ops.ThreadUnsafeUnigramCandidateSampler( true_classes, num_true, num_sampled, unique, range_max, seed=0, seed2=0, name=None ) See explanations of candidate sampling and the data formats at go/candidate-sampl...
doc_16047
Return the Transform instance used by this artist.
doc_16048
gis/openlayers-osm.html
doc_16049
Applies element-wise, CELU(x)=max⁡(0,x)+min⁡(0,α∗(exp⁡(x/α)−1))\text{CELU}(x) = \max(0,x) + \min(0, \alpha * (\exp(x/\alpha) - 1)) . See CELU for more details.
doc_16050
get the bit depth of the Surface pixel format get_bitsize() -> int Returns the number of bits used to represent each pixel. This value may not exactly fill the number of bytes used per pixel. For example a 15 bit Surface still requires a full 2 bytes.
doc_16051
Return an URL with the same values, except for those parameters given new values by whichever keyword arguments are specified. Parameters kwargs (Any) – Return type werkzeug.urls.BaseURL
doc_16052
Bases: matplotlib.widgets.AxesWidget Selection curve of an arbitrary shape. The selected path can be used in conjunction with contains_point to select data points from an image. Unlike LassoSelector, this must be initialized with a starting point xy, and the Lasso events are destroyed upon release. Parameters axA...
doc_16053
Set multiple properties at once. Supported properties are Property Description 3d_properties unknown agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool antialiased or aa bool or None capstyle CapStyle or {...
doc_16054
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_16055
Apply chainable functions that expect Series or DataFrames. Parameters func:function Function to apply to the Series/DataFrame. args, and kwargs are passed into func. Alternatively a (callable, data_keyword) tuple where data_keyword is a string indicating the keyword of callable that expects the Series/DataFram...
doc_16056
Alias for set_edgecolor.
doc_16057
Extend headers in this object with items from another object containing header items as well as keyword arguments. To replace existing keys instead of extending, use update() instead. If provided, the first argument can be another Headers object, a MultiDict, dict, or iterable of pairs. Changelog Changed in version 1....
doc_16058
Returns the shell context for an interactive shell for this application. This runs all the registered shell context processors. Changelog New in version 0.11. Return type dict
doc_16059
Return the next floating-point value after input towards other, elementwise. The shapes of input and other must be broadcastable. Parameters input (Tensor) – the first input tensor other (Tensor) – the second input tensor Keyword Arguments out (Tensor, optional) – the output tensor. Example:: >>> eps = torc...
doc_16060
Bases: object A decorator that performs %-substitution on an object's docstring. This decorator should be robust even if obj.__doc__ is None (for example, if -OO was passed to the interpreter). Usage: construct a docstring.Substitution with a sequence or dictionary suitable for performing substitution; then decorate ...
doc_16061
Generate anti-aliased line pixel coordinates. Parameters r0, c0int Starting position (row, column). r1, c1int End position (row, column). Returns rr, cc, val(N,) ndarray (int, int, float) Indices of pixels (rr, cc) and intensity values (val). img[rr, cc] = val. References 1 A Rasterizing Alg...
doc_16062
Returns an iterator over immediate children modules, yielding both the name of the module as well as the module itself. Yields (string, Module) – Tuple containing a name and child module Example: >>> for name, module in model.named_children(): >>> if name in ['conv4', 'conv5']: >>> print(module)
doc_16063
Return a new masked array with the specified size and shape. This is the masked equivalent of the numpy.resize function. The new array is filled with repeated copies of x (in the order that the data are stored in memory). If x is masked, the new array will be masked, and the new mask will be a repetition of the old o...
doc_16064
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_16065
Return an array of bytes representing an integer. >>> (1024).to_bytes(2, byteorder='big') b'\x04\x00' >>> (1024).to_bytes(10, byteorder='big') b'\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00' >>> (-1024).to_bytes(10, byteorder='big', signed=True) b'\xff\xff\xff\xff\xff\xff\xff\xff\xfc\x00' >>> x = 1000 >>> x.to_bytes((x.bit...
doc_16066
As a shortcut, you can use the convenient login_required() decorator: from django.contrib.auth.decorators import login_required @login_required def my_view(request): ... login_required() does the following: If the user isn’t logged in, redirect to settings.LOGIN_URL, passing the current absolute path in the quer...
doc_16067
See Migration guide for more details. tf.compat.v1.raw_ops.GetSessionHandle tf.raw_ops.GetSessionHandle( value, name=None ) Args value A Tensor. The tensor to be stored. name A name for the operation (optional). Returns A Tensor of type string.
doc_16068
Set the hatching pattern hatch can be one of: / - diagonal hatching \ - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large circle . - dots * - stars Letters can be combined, in which case all the specified hatchings are done. If same letter repea...
doc_16069
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_16070
tf.data.experimental.sample_from_datasets( datasets, weights=None, seed=None ) Args datasets A list of tf.data.Dataset objects with compatible structure. weights (Optional.) A list of len(datasets) floating-point values where weights[i] represents the probability with which an element should be samp...
doc_16071
col_offset end_lineno end_col_offset Instances of ast.expr and ast.stmt subclasses have lineno, col_offset, lineno, and col_offset attributes. The lineno and end_lineno are the first and last line numbers of source text span (1-indexed so the first line is line 1) and the col_offset and end_col_offset are the cor...
doc_16072
Bases: matplotlib.projections.geo._GeoTransform Create a new geographical transform. Resolution is the number of steps to interpolate between each input line segment to approximate its path in curved space. has_inverse=True True if this transform has a corresponding inverse transform. inverted()[source] Ret...
doc_16073
Get the “inheritable” flag of the specified file descriptor (a boolean).
doc_16074
Applies a 3D adaptive max pooling over an input signal composed of several input planes. The output is of size D x H x W, for any input size. The number of output features is equal to the number of input planes. Parameters output_size – the target output size of the image of the form D x H x W. Can be a tuple (D,...
doc_16075
Repeat elements of a tensor. Warning This is different from torch.Tensor.repeat() but similar to numpy.repeat. Parameters input (Tensor) – the input tensor. repeats (Tensor or int) – The number of repetitions for each element. repeats is broadcasted to fit the shape of the given axis. dim (int, optional) – The ...
doc_16076
No-op. This method doesn’t do anything. It exists purely for compatibility with the scikit-learn transformer API. Parameters Xndarray Returns selfFeatureHasher
doc_16077
Moves and/or casts the parameters and buffers. This can be called as to(device=None, dtype=None, non_blocking=False) [source] to(dtype, non_blocking=False) [source] to(tensor, non_blocking=False) [source] to(memory_format=torch.channels_last) [source] Its signature is similar to torch.Tensor.to(), but...
doc_16078
See Migration guide for more details. tf.compat.v1.raw_ops.SegmentMin tf.raw_ops.SegmentMin( data, segment_ids, name=None ) Read the section on segmentation for an explanation of segments. Computes a tensor such that \(output_i = \min_j(data_j)\) where min is over j such that segment_ids[j] == i. If the min is e...
doc_16079
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_16080
tf.experimental.numpy.zeros_like( a, dtype=None ) Unsupported arguments: order, subok, shape. See the NumPy documentation for numpy.zeros_like.
doc_16081
All arguments except filename are optional, and should be specified in keyword form. Test examples in the file named filename. Return (failure_count, test_count). Optional argument module_relative specifies how the filename should be interpreted: If module_relative is True (the default), then filename specifies an OS-...
doc_16082
Add a label to the long axis of the colorbar. Parameters labelstr The label text. locstr, optional The location of the label. For horizontal orientation one of {'left', 'center', 'right'} For vertical orientation one of {'bottom', 'center', 'top'} Defaults to rcParams["xaxis.labellocation"] (default: 'cen...
doc_16083
Returns a 2-dimensional view of each input tensor with zero dimensions. Input tensors with two or more dimensions are returned as-is. :param input: :type input: Tensor or list of Tensors Returns output (Tensor or tuple of Tensors) Example:: >>> x = torch.tensor(1.) >>> x tensor(1.) >>> torch.atleast_2d(x) tenso...
doc_16084
Hook method executed once when cmdloop() is about to return. This method is a stub in Cmd; it exists to be overridden by subclasses.
doc_16085
Determine the URL to redirect to when the form is successfully validated. Returns success_url by default.
doc_16086
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool bbox_to_anchor BboxBase or tuple clip_box Bbox clip_on bool clip_path Pat...
doc_16087
Provides an iterator over all of the opcodes in a pickle, returning a sequence of (opcode, arg, pos) triples. opcode is an instance of an OpcodeInfo class; arg is the decoded value, as a Python object, of the opcode’s argument; pos is the position at which this opcode is located. pickle can be a string or a file-like o...
doc_16088
Applies transformers to columns of an array or pandas DataFrame. This estimator allows different columns or column subsets of the input to be transformed separately and the features generated by each transformer will be concatenated to form a single feature space. This is useful for heterogeneous or columnar data, to...
doc_16089
Return the artist's zorder.
doc_16090
This class is identical to HTTPServer but uses threads to handle requests by using the ThreadingMixIn. This is useful to handle web browsers pre-opening sockets, on which HTTPServer would wait indefinitely. New in version 3.7.
doc_16091
Appends subelements from a sequence object with zero or more elements. Raises TypeError if a subelement is not an Element. New in version 3.2.
doc_16092
Applies Alpha Dropout over the input. Alpha Dropout is a type of Dropout that maintains the self-normalizing property. For an input with zero mean and unit standard deviation, the output of Alpha Dropout maintains the original mean and standard deviation of the input. Alpha Dropout goes hand-in-hand with SELU activat...
doc_16093
Save the current terminal mode as the “shell” mode, the mode when the running program is not using curses. (Its counterpart is the “program” mode, when the program is using curses capabilities.) Subsequent calls to reset_shell_mode() will restore this mode.
doc_16094
Sets the gradients of all optimized torch.Tensor s to zero. Parameters set_to_none (bool) – instead of setting to zero, set the grads to None. This will in general have lower memory footprint, and can modestly improve performance. However, it changes certain behaviors. For example: 1. When the user tries to access ...
doc_16095
Given data and files dictionaries and this widget’s name, returns whether or not there’s data or files for the widget. The method’s result affects whether or not a field in a model form falls back to its default. Special cases are CheckboxInput, CheckboxSelectMultiple, and SelectMultiple, which always return False beca...
doc_16096
A read-only property for the arithmetic mean of a normal distribution.
doc_16097
A decorator for importlib.abc.Loader.load_module() to set the __package__ attribute on the returned module. If __package__ is set and has a value other than None it will not be changed. Deprecated since version 3.4: The import machinery takes care of this automatically.
doc_16098
Initialize self. See help(type(self)) for accurate signature.
doc_16099
See Migration guide for more details. tf.compat.v1.raw_ops.UnsortedSegmentProd tf.raw_ops.UnsortedSegmentProd( data, segment_ids, num_segments, name=None ) Read the section on segmentation for an explanation of segments. This operator is similar to the unsorted segment sum operator found (here). Instead of compu...