_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_2300
class sklearn.model_selection.GroupKFold(n_splits=5) [source] K-fold iterator variant with non-overlapping groups. The same group will not appear in two different folds (the number of distinct groups has to be at least equal to the number of folds). The folds are approximately balanced in the sense that the number of...
doc_2301
See Migration guide for more details. tf.compat.v1.raw_ops.DenseCountSparseOutput tf.raw_ops.DenseCountSparseOutput( values, weights, binary_output, minlength=-1, maxlength=-1, name=None ) Counts the number of times each value occurs in the input. Args values A Tensor. Must be one of the following types...
doc_2302
Token value for "*=".
doc_2303
Perform the lock operation operation on file descriptor fd (file objects providing a fileno() method are accepted as well). See the Unix manual flock(2) for details. (On some systems, this function is emulated using fcntl().) If the flock() fails, an OSError exception is raised. Raises an auditing event fcntl.flock wit...
doc_2304
Check if the interval is closed on the right side. For the meaning of closed and open see Interval. Returns bool True if the Interval is closed on the left-side.
doc_2305
Return a list containing the tty attributes for file descriptor fd, as follows: [iflag, oflag, cflag, lflag, ispeed, ospeed, cc] where cc is a list of the tty special characters (each a string of length 1, except the items with indices VMIN and VTIME, which are integers when these fields are defined). The interpretatio...
doc_2306
Get a copy of the iterator as a 1-D array. Examples >>> x = np.arange(6).reshape(2, 3) >>> x array([[0, 1, 2], [3, 4, 5]]) >>> fl = x.flat >>> fl.copy() array([0, 1, 2, 3, 4, 5])
doc_2307
By default, if an expected output block contains just 1, an actual output block containing just 1 or just True is considered to be a match, and similarly for 0 versus False. When DONT_ACCEPT_TRUE_FOR_1 is specified, neither substitution is allowed. The default behavior caters to that Python changed the return type of m...
doc_2308
mu is the mean angle, expressed in radians between 0 and 2*pi, and kappa is the concentration parameter, which must be greater than or equal to zero. If kappa is equal to zero, this distribution reduces to a uniform random angle over the range 0 to 2*pi.
doc_2309
Creates an index (B-Tree) in the database.
doc_2310
Collects the provided Future objects into a single combined Future that is completed when all of the sub-futures are completed. Parameters futures (list) – a list of Future objects. Returns Returns a Future object to a list of the passed in Futures. Example:: >>> import torch >>> >>> fut0 = torch.futures.Futu...
doc_2311
Return a tuple in the form (etag, is_weak). If there is no ETag the return value is (None, None). Return type Union[Tuple[str, bool], Tuple[None, None]]
doc_2312
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_2313
Instantiate the bytes object str with the supplied parameters, where str should be a parameterized string obtained from the terminfo database. E.g. tparm(tigetstr("cup"), 5, 3) could result in b'\033[6;4H', the exact result depending on terminal type.
doc_2314
Learn and apply the dimensionality reduction. Parameters Xarray-like of shape (n_samples, n_features) Training samples. yarray-like of shape (n_samples,) or (n_samples, n_targets), default=None Targets. Returns outarray-like or tuple of array-like The transformed data X_tranformed if Y is not None, ...
doc_2315
Attributes build_cost_model int64 build_cost_model build_cost_model_after int64 build_cost_model_after enable_bfloat16_sendrecv bool enable_bfloat16_sendrecv enable_recv_scheduling bool enable_recv_scheduling infer_shapes bool infer_shapes optimizer_options OptimizerOptions optimi...
doc_2316
set |= other | ... Update the set, adding elements from all others.
doc_2317
See Migration guide for more details. tf.compat.v1.keras.layers.experimental.preprocessing.RandomFlip tf.keras.layers.experimental.preprocessing.RandomFlip( mode=HORIZONTAL_AND_VERTICAL, seed=None, name=None, **kwargs ) This layer will flip the images based on the mode attribute. During inference time, the outpu...
doc_2318
Bases: matplotlib.backend_tools.ToolBase Tool to toggle the major and minor grids of the figure. default_keymap=['G'] Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas. description='Toggle major and minor grids' Des...
doc_2319
Make a non-blocking RPC call to run function func on worker to. RPC messages are sent and received in parallel to execution of Python code. This method is thread-safe. This method will immediately return a Future that can be awaited on. Parameters to (str or WorkerInfo or int) – name/rank/WorkerInfo of the destin...
doc_2320
See torch.addbmm()
doc_2321
Determine if the object instance is of a protected type. Objects of protected types are preserved as-is when passed to force_str(strings_only=True).
doc_2322
Append line to the history buffer, as if it was the last line typed. This calls add_history() in the underlying library.
doc_2323
A compatibility alias for tobytes, with exactly the same behavior. Despite its name, it returns bytes not strs. Deprecated since version 1.19.0.
doc_2324
class asynchat.async_chat This class is an abstract subclass of asyncore.dispatcher. To make practical use of the code you must subclass async_chat, providing meaningful collect_incoming_data() and found_terminator() methods. The asyncore.dispatcher methods can be used, although not all make sense in a message/respon...
doc_2325
Repeat elements of an array. Refer to numpy.repeat for full documentation. See also numpy.repeat equivalent function
doc_2326
Draw a Gouraud-shaded triangle. Parameters gcGraphicsContextBase The graphics context. points(3, 2) array-like Array of (x, y) points for the triangle. colors(3, 4) array-like RGBA colors for each point of the triangle. transformmatplotlib.transforms.Transform An affine transform to apply to the poi...
doc_2327
Return the last recorded polygon. >>> turtle.home() >>> turtle.begin_poly() >>> turtle.fd(100) >>> turtle.left(20) >>> turtle.fd(30) >>> turtle.left(60) >>> turtle.fd(50) >>> turtle.end_poly() >>> p = turtle.get_poly() >>> register_shape("myFavouriteShape", p)
doc_2328
A dictionary mapping endpoint names to view functions. To register a view function, use the route() decorator. This data structure is internal. It should not be modified directly and its format may change at any time.
doc_2329
tf.io.parse_single_example( serialized, features, example_names=None, name=None ) Similar to parse_example, except: For dense tensors, the returned Tensor is identical to the output of parse_example, except there is no batch dimension, the output shape is the same as the shape given in dense_shape. For SparseTenso...
doc_2330
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_2331
Set whether ticks are drawn inside or outside the axes.
doc_2332
tf.shape( input, out_type=tf.dtypes.int32, name=None ) See also tf.size, tf.rank. tf.shape returns a 1-D integer tensor representing the shape of input. For a scalar input, the tensor returned has a shape of (0,) and its value is the empty vector (i.e. []). For example: tf.shape(1.) <tf.Tensor: shape=(0,), dtype=...
doc_2333
Return the transpose, which is by definition self.
doc_2334
Call self as a function.
doc_2335
Create a color choosing dialog. A call to this method will show the window, wait for the user to make a selection, and return the selected color (or None) to the caller.
doc_2336
tf.distribute.MultiWorkerMirroredStrategy( cluster_resolver=None, communication_options=None ) This strategy implements synchronous distributed training across multiple workers, each with potentially multiple GPUs. Similar to tf.distribute.MirroredStrategy, it replicates all variables and computations to each loca...
doc_2337
Applies a 1D convolution over a quantized 1D input composed of several input planes. See Conv1d for details and output shape. Parameters input – quantized input tensor of shape (minibatch,in_channels,iW)(\text{minibatch} , \text{in\_channels} , iW) weight – quantized filters of shape (out_channels,in_channelsg...
doc_2338
Returns the log-transformed bounds on the theta. Returns boundsndarray of shape (n_dims, 2) The log-transformed bounds on the kernel’s hyperparameters theta
doc_2339
Same as the non-lazy versions above, but using lazy execution. See lazy translations documentation.
doc_2340
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_2341
Copy properties from other to self.
doc_2342
Raised when an operation is performed on a future that is not allowed in the current state. New in version 3.8.
doc_2343
Add a table to an Axes. At least one of cellText or cellColours must be specified. These parameters must be 2D lists, in which the outer lists define the rows and the inner list define the column values per row. Each row must have the same number of elements. The table can optionally have row and column headers, whic...
doc_2344
Set the offset of the lines used to mark each event.
doc_2345
Given a Tensor quantized by linear (affine) per-channel quantization, returns a Tensor of scales of the underlying quantizer. It has the number of elements that matches the corresponding dimensions (from q_per_channel_axis) of the tensor.
doc_2346
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_2347
Return the font style. Values are: 'normal', 'italic' or 'oblique'.
doc_2348
Upon unpickling, if the class defines __setstate__(), it is called with the unpickled state. In that case, there is no requirement for the state object to be a dictionary. Otherwise, the pickled state must be a dictionary and its items are assigned to the new instance’s dictionary. Note If __getstate__() returns a fal...
doc_2349
alias of ConvTranspose2d
doc_2350
Return the protocol that was selected during the TLS handshake. If SSLContext.set_alpn_protocols() was not called, if the other party does not support ALPN, if this socket does not support any of the client’s proposed protocols, or if the handshake has not happened yet, None is returned. New in version 3.5.
doc_2351
Predict probability estimates. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Returns Y_probarray-like of shape (n_samples, n_classes)
doc_2352
See Migration guide for more details. tf.compat.v1.raw_ops.PrefetchDataset tf.raw_ops.PrefetchDataset( input_dataset, buffer_size, output_types, output_shapes, slack_period=0, legacy_autotune=True, buffer_size_min=0, name=None ) Args input_dataset A Tensor of type variant. buffer_size A Tensor...
doc_2353
@tf_contextlib.contextmanager tf.compat.v1.op_scope( values, name, default_name=None )
doc_2354
Read an array from an NPY file. Parameters fpfile_like object If this is not a real file object, then this may take extra memory and time. allow_picklebool, optional Whether to allow writing pickled data. Default: False Changed in version 1.16.3: Made default False in response to CVE-2019-6446. pickle_k...
doc_2355
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_2356
Determine if each string entirely matches a regular expression. New in version 1.1.0. Parameters pat:str Character sequence or regular expression. case:bool, default True If True, case sensitive. flags:int, default 0 (no flags) Regex module flags, e.g. re.IGNORECASE. na:scalar, optional Fill value...
doc_2357
See Migration guide for more details. tf.compat.v1.keras.datasets.boston_housing.load_data tf.keras.datasets.boston_housing.load_data( path='boston_housing.npz', test_split=0.2, seed=113 ) This is a dataset taken from the StatLib library which is maintained at Carnegie Mellon University. Samples contain 13 attri...
doc_2358
This exception is raised on all errors, such as unknown number of bytes per sample, etc.
doc_2359
Recursively add files under data_path to data_files list. Recursively add files under data_path to the list of data_files to be installed (and distributed). The data_path can be either a relative path-name, or an absolute path-name, or a 2-tuple where the first argument shows where in the install directory the data d...
doc_2360
See Migration guide for more details. tf.compat.v1.raw_ops.BatchIFFT2D tf.raw_ops.BatchIFFT2D( input, name=None ) Args input A Tensor of type complex64. name A name for the operation (optional). Returns A Tensor of type complex64.
doc_2361
A page representing an individual object. If the object has a date value in the future, the view will throw a 404 error by default, unless you set allow_future to True. Ancestors (MRO) django.views.generic.detail.SingleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dat...
doc_2362
Return whether arbitrary affine transformations in draw_image() are supported (True for most vector backends).
doc_2363
Return the alpha value used for blending - not supported on all backends.
doc_2364
Performs a single optimization step. This will call torch.optim.Optimizer.step() on each worker containing parameters to be optimized, and will block until all workers return. The provided context_id will be used to retrieve the corresponding context that contains the gradients that should be applied to the parameter...
doc_2365
Returns a true division of the inputs, element-wise. Unlike ‘floor division’, true division adjusts the output type to present the best answer, regardless of input types. Parameters x1array_like Dividend array. x2array_like Divisor array. If x1.shape != x2.shape, they must be broadcastable to a common shape...
doc_2366
See Migration guide for more details. tf.compat.v1.mlir.experimental.convert_graph_def tf.mlir.experimental.convert_graph_def( graph_def, pass_pipeline='tf-standard-pipeline' ) This API is only intended for inspecting the internals of TensorFlow and the string returned is at the moment intended for debugging pur...
doc_2367
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_2368
New in Django 4.0. The render method is called by __str__ as well as the as_p(), as_ul(), and as_table() methods. All arguments are optional and will default to: template_name: template_name context: Value returned by get_context() renderer: Value returned by renderer
doc_2369
Returns a URL string or bytes depending on the type of the information stored. This is just a convenience function for calling url_unparse() for this URL. Return type str
doc_2370
Set memory fraction for a process. The fraction is used to limit an caching allocator to allocated memory on a CUDA device. The allowed value equals the total visible memory multiplied fraction. If trying to allocate more than the allowed value in a process, will raise an out of memory error in allocator. Parameters...
doc_2371
Return the minimum of the values over the requested axis. If you want the index of the minimum, use idxmin. This is the equivalent of the numpy.ndarray method argmin. Parameters axis:{index (0), columns (1)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when comput...
doc_2372
Convert coefficient matrix to sparse format. Converts the coef_ member to a scipy.sparse matrix, which for L1-regularized models can be much more memory- and storage-efficient than the usual numpy.ndarray representation. The intercept_ member is not converted. Returns self Fitted estimator. Notes For non-spar...
doc_2373
Set the figure's background patch visibility, i.e. whether the figure background will be drawn. Equivalent to Figure.patch.set_visible(). Parameters bbool
doc_2374
tf.feature_column.make_parse_example_spec( feature_columns ) The returned dictionary can be used as arg 'features' in tf.io.parse_example. Typical usage example: # Define features and transformations feature_a = tf.feature_column.categorical_column_with_vocabulary_file(...) feature_b = tf.feature_column.numeric_co...
doc_2375
template_name: 'django/forms/widgets/select_date.html' Wrapper around three Select widgets: one each for month, day, and year. Takes several optional arguments: years An optional list/tuple of years to use in the “year” select box. The default is a list containing the current year and the next 9 years. mont...
doc_2376
Set the flags specified by flags and unset all others. Parameter flags should be the concatenation in any order of zero or more occurrences of each of 'R', 'O', 'D', 'F', and 'A'.
doc_2377
Like erase(), but also cause the whole window to be repainted upon next call to refresh().
doc_2378
Return a view of the array with axis1 and axis2 interchanged. Refer to numpy.swapaxes for full documentation. See also numpy.swapaxes equivalent function
doc_2379
Pause the receiving end of the transport. No data will be passed to the protocol’s protocol.data_received() method until resume_reading() is called. Changed in version 3.7: The method is idempotent, i.e. it can be called when the transport is already paused or closed.
doc_2380
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_2381
Predict probability for each possible outcome. Compute the probability estimates for each single sample in X and each possible outcome seen during training (categorical distribution). Parameters Xarray-like of shape (n_samples, n_features) The data matrix. Returns probabilitiesndarray of shape (n_samples,...
doc_2382
Accept: application/json Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed Content-Type: application/json Content-Length: 42 {"detail": "Method 'DELETE' not allowed."} Validation errors are handled slightly differently, and will include...
doc_2383
Return the symbol’s name.
doc_2384
See torch.gather()
doc_2385
nnn should be a three-digit HTTP error code. This method is also not defined in BaseHandler, but will be called, if it exists, on an instance of a subclass, when an HTTP error with code nnn occurs. Subclasses should override this method to handle specific HTTP errors. Arguments, return values and exceptions raised shou...
doc_2386
Return a list of CPU features that required to be detected sorted from the lowest to highest interest.
doc_2387
Alias for set_linestyle.
doc_2388
Return the cube-root of an array, element-wise. New in version 1.10.0. Parameters xarray_like The values whose cube-roots are required. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If no...
doc_2389
See torch.isreal()
doc_2390
Test whether filename matches pattern, returning True or False; the comparison is case-sensitive and does not apply os.path.normcase().
doc_2391
Get the Path of the polygon.
doc_2392
Returns selected language’s BiDi layout: False = left-to-right layout True = right-to-left layout
doc_2393
Return a new path resampled to length N x steps. Codes other than LINETO are not handled correctly.
doc_2394
Reference pixel red into a 2d array. pixels_red (Surface) -> array Create a new 2D array that directly references the red values in a Surface. Any changes to the array will affect the pixels in the Surface. This is a fast operation since no data is copied. This can only work on 24-bit or 32-bit Surfaces. The Surface ...
doc_2395
See Migration guide for more details. tf.compat.v1.diag_part, tf.compat.v1.linalg.tensor_diag_part tf.linalg.tensor_diag_part( input, name=None ) This operation returns a tensor with the diagonal part of the input. The diagonal part is computed as follows: Assume input has dimensions [D1,..., Dk, D1,..., Dk], th...
doc_2396
Transform X using one-hot encoding. Parameters Xarray-like, shape [n_samples, n_features] The data to encode. Returns X_outsparse matrix if sparse=True else a 2-d array Transformed input.
doc_2397
Dump the class data as a string in the format of a netrc file. (This discards comments and may reorder the entries.)
doc_2398
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_2399
This method should be called from format() by a formatter which wants to make use of a formatted time. This method can be overridden in formatters to provide for any specific requirement, but the basic behavior is as follows: if datefmt (a string) is specified, it is used with time.strftime() to format the creation tim...