_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_2500
tf.compat.v1.train.sdca_fprint( input, name=None ) Args input A Tensor of type string. vector of strings to compute fingerprints on. name A name for the operation (optional). Returns A Tensor of type int64.
doc_2501
A transport for datagram (UDP) connections. Instances of the DatagramTransport class are returned from the loop.create_datagram_endpoint() event loop method.
doc_2502
Return the string representation of an array. Parameters arrndarray Input array. max_line_widthint, optional Inserts newlines if text is longer than max_line_width. Defaults to numpy.get_printoptions()['linewidth']. precisionint, optional Floating point precision. Defaults to numpy.get_printoptions()['p...
doc_2503
Parses the lines argument.
doc_2504
Return True if the queue is empty, False otherwise.
doc_2505
See Migration guide for more details. tf.compat.v1.raw_ops.Cast tf.raw_ops.Cast( x, DstT, Truncate=False, name=None ) Args x A Tensor. DstT A tf.DType. Truncate An optional bool. Defaults to False. name A name for the operation (optional). Returns A Tensor of type DstT.
doc_2506
Attributes attr repeated AttrEntry attr name string name Child Classes class AttrEntry
doc_2507
Raised when a given process doesn’t exist. Corresponds to errno ESRCH.
doc_2508
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_2509
Save the file to a destination path or file object. If the destination is a file object you have to close it yourself after the call. The buffer size is the number of bytes held in memory during the copy process. It defaults to 16KB. For secure file saving also have a look at secure_filename(). Parameters dst – a f...
doc_2510
os.PRIO_PGRP os.PRIO_USER Parameters for the getpriority() and setpriority() functions. Availability: Unix. New in version 3.3.
doc_2511
Returns the URL where the contents of the file referenced by name can be accessed. For storage systems that don’t support access by URL this will raise NotImplementedError instead.
doc_2512
Receive normal data and ancillary data from the socket, behaving as recvmsg() would, but scatter the non-ancillary data into a series of buffers instead of returning a new bytes object. The buffers argument must be an iterable of objects that export writable buffers (e.g. bytearray objects); these will be filled with s...
doc_2513
alias of matplotlib.backends.backend_pdf.FigureCanvasPdf
doc_2514
A deprecated alias of OSError. Changed in version 3.3: Following PEP 3151, this class was made an alias of OSError.
doc_2515
See Migration guide for more details. tf.compat.v1.tensor_scatter_add, tf.compat.v1.tensor_scatter_nd_add tf.tensor_scatter_nd_add( tensor, indices, updates, name=None ) This operation creates a new tensor by adding sparse updates to the passed in tensor. This operation is very similar to tf.scatter_nd_add, exce...
doc_2516
tf.distribute.ReplicaContext( strategy, replica_id_in_sync_group ) You can use tf.distribute.get_replica_context to get an instance of ReplicaContext, which can only be called inside the function passed to tf.distribute.Strategy.run. strategy = tf.distribute.MirroredStrategy(['GPU:0', 'GPU:1']) def func(): repl...
doc_2517
Construct a Bbox by statically transforming this one by transform.
doc_2518
This method can be called to signal that the set of tests being run should be aborted by setting the shouldStop attribute to True. TestRunner objects should respect this flag and return without running any additional tests. For example, this feature is used by the TextTestRunner class to stop the test framework when th...
doc_2519
Return the linewidth in points. See also set_linewidth.
doc_2520
Version interface for Jython. Returns a tuple (release, vendor, vminfo, osinfo) with vminfo being a tuple (vm_name, vm_release, vm_vendor) and osinfo being a tuple (os_name, os_version, os_arch). Values which cannot be determined are set to the defaults given as parameters (which all default to '').
doc_2521
Return the yaxis' tick locations in data coordinates.
doc_2522
Run command with arguments and return its output. If the return code was non-zero it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute and any output in the output attribute. This is equivalent to: run(..., check=True, stdout=PIPE).stdout The arguments sho...
doc_2523
'blogs.blog': lambda o: "/blogs/%s/" % o.slug, 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug), } The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti...
doc_2524
Read and return the next nframes frames from the audio file. The returned data is a string containing for each frame the uncompressed samples of all channels.
doc_2525
The @overload decorator allows describing functions and methods that support multiple different combinations of argument types. A series of @overload-decorated definitions must be followed by exactly one non-@overload-decorated definition (for the same function/method). The @overload-decorated definitions are for the b...
doc_2526
sklearn.utils.parallel_backend(backend, n_jobs=- 1, inner_max_num_threads=None, **backend_params) [source] Change the default backend used by Parallel inside a with block. If backend is a string it must match a previously registered implementation using the register_parallel_backend function. By default the following...
doc_2527
Encode target labels with value between 0 and n_classes-1. This transformer should be used to encode target values, i.e. y, and not the input X. Read more in the User Guide. New in version 0.12. Attributes classes_ndarray of shape (n_classes,) Holds the label for each class. See also OrdinalEncoder E...
doc_2528
Initialize an Affine transform from a 3x3 numpy float array: a c e b d f 0 0 1 If matrix is None, initialize with the identity transform.
doc_2529
Inplace row scaling of a CSR or CSC matrix. Scale each row of the data matrix by multiplying with specific scale provided by the caller assuming a (n_samples, n_features) shape. Parameters Xsparse matrix of shape (n_samples, n_features) Matrix to be scaled. It should be of CSR or CSC format. scalendarray of s...
doc_2530
Scikit-image logo, a RGBA image. Returns logo(500, 500, 4) uint8 ndarray Logo image.
doc_2531
Compute the peak signal to noise ratio (PSNR) for an image. Parameters image_truendarray Ground-truth image, same shape as im_test. image_testndarray Test image. data_rangeint, optional The data range of the input image (distance between minimum and maximum possible values). By default, this is estimate...
doc_2532
Return the current hatching pattern.
doc_2533
See Migration guide for more details. tf.compat.v1.linalg.svd, tf.compat.v1.svd tf.linalg.svd( tensor, full_matrices=False, compute_uv=True, name=None ) Computes the SVD of each inner matrix in tensor such that tensor[..., :, :] = u[..., :, :] * diag(s[..., :, :]) * transpose(conj(v[..., :, :])) # a is a tensor....
doc_2534
Divides each element of the input input by the corresponding element of other. outi=inputiotheri\text{out}_i = \frac{\text{input}_i}{\text{other}_i} Note By default, this performs a “true” division like Python 3. See the rounding_mode argument for floor division. Supports broadcasting to a common shape, type promo...
doc_2535
Test whether two objects contain the same elements. This function allows two Series or DataFrames to be compared against each other to see if they have the same shape and elements. NaNs in the same location are considered equal. The row/column index do not need to have the same type, as long as the values are conside...
doc_2536
tf.experimental.numpy.hsplit( ary, indices_or_sections ) See the NumPy documentation for numpy.hsplit.
doc_2537
Casts a structured array to a new dtype using assignment by field-name. This function assigns from the old to the new array by name, so the value of a field in the output array is the value of the field with the same name in the source array. This has the effect of creating a new ndarray containing only the fields “r...
doc_2538
In-place version of addcdiv()
doc_2539
See Migration guide for more details. tf.compat.v1.raw_ops.Cosh tf.raw_ops.Cosh( x, name=None ) Given an input tensor, this function computes hyperbolic cosine of every element in the tensor. Input range is [-inf, inf] and output range is [1, inf]. x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 2, 10, float("...
doc_2540
Return a file object associated with the socket. The exact returned type depends on the arguments given to makefile(). These arguments are interpreted the same way as by the built-in open() function, except the only supported mode values are 'r' (default), 'w' and 'b'. The socket must be in blocking mode; it can have a...
doc_2541
The get_search_fields method is given the HttpRequest and is expected to return the same kind of sequence type as for the search_fields attribute.
doc_2542
Return a view object, by calling MSIDatabaseOpenView(). sql is the SQL statement to execute.
doc_2543
The method attempts to write the data 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.write(data) await stream.drain()
doc_2544
temporarily stop audio playback pause() -> None Temporarily stop audio playback on the CD. The playback can be resumed at the same point with the CD.resume() method. If the CD is not playing this method does nothing. Note, track 0 is the first track on the CD. Track numbers start at zero.
doc_2545
tf.compat.v1.keras.layers.GRU( units, activation='tanh', recurrent_activation='hard_sigmoid', use_bias=True, kernel_initializer='glorot_uniform', recurrent_initializer='orthogonal', bias_initializer='zeros', kernel_regularizer=None, recurrent_regularizer=None, bias_regularizer=None, activity_reg...
doc_2546
Set the dimension of the drawing canvas.
doc_2547
Flushes changes made to the in-memory copy of a file back to disk. Without use of this call there is no guarantee that changes are written back before the object is destroyed. If offset and size are specified, only changes to the given range of bytes will be flushed to disk; otherwise, the whole extent of the mapping i...
doc_2548
Render text into an array of ints render_raw_to(array, text, dest=None, style=STYLE_DEFAULT, rotation=0, size=0, invert=False) -> Rect Render to an array object exposing an array struct interface. The array must be two dimensional with integer items. The default dest value, None, is equivalent to position (0, 0). See...
doc_2549
Alias for get_fontproperties.
doc_2550
Return the Colormap instance.
doc_2551
Return a format string formatting the x, y coordinates.
doc_2552
Estimate the best class label for each sample in X. This is implemented as argmax(decision_function(X), axis=1) which will return the label of the class with most votes by estimators predicting the outcome of a decision for each possible class pair. Parameters X(sparse) array-like of shape (n_samples, n_features)...
doc_2553
Like rfind() but raises ValueError when the substring sub is not found.
doc_2554
Set the parameters of this kernel. The method works on simple kernels as well as on nested kernels. The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Returns self
doc_2555
Return the underlying artist that actually defines some properties (e.g., color) of this artist.
doc_2556
Determine common type following standard coercion rules. Parameters array_typessequence A list of dtypes or dtype convertible objects representing arrays. scalar_typessequence A list of dtypes or dtype convertible objects representing scalars. Returns datatypedtype The common data type, which is the...
doc_2557
See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNV3 tf.raw_ops.CudnnRNNV3( input, input_h, input_c, params, sequence_lengths, rnn_mode='lstm', input_mode='linear_input', direction='unidirectional', dropout=0, seed=0, seed2=0, num_proj=0, is_training=True, time_major=True, name=None )...
doc_2558
Return _testcapi.WITH_PYMALLOC.
doc_2559
See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.random_brightness tf.keras.preprocessing.image.random_brightness( x, brightness_range ) Arguments x Input tensor. Must be 3D. brightness_range Tuple of floats; brightness range. channel_axis Index of axis for channe...
doc_2560
sklearn.datasets.make_regression(n_samples=100, n_features=100, *, n_informative=10, n_targets=1, bias=0.0, effective_rank=None, tail_strength=0.5, noise=0.0, shuffle=True, coef=False, random_state=None) [source] Generate a random regression problem. The input set can either be well conditioned (by default) or have a...
doc_2561
Token value for "...".
doc_2562
See Migration guide for more details. tf.compat.v1.raw_ops.PaddedBatchDataset tf.raw_ops.PaddedBatchDataset( input_dataset, batch_size, padded_shapes, padding_values, output_shapes, name=None ) Args input_dataset A Tensor of type variant. batch_size A Tensor of type int64. A scalar representin...
doc_2563
Parameters urlslist of str or None Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends.
doc_2564
Toggle zoom to rect mode.
doc_2565
Holds a string containing the address identified in the “MAIL FROM:” line from the client.
doc_2566
Return the (min, max) view limits of this axis.
doc_2567
Subtract self from other, and return a new masked array.
doc_2568
Calculate the expanding standard deviation. Parameters ddof:int, default 1 Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements. *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs t...
doc_2569
Tuple of bytes steps in each dimension.
doc_2570
Set the DataFrame of strings on Styler generating :hover tooltips. These string based tooltips are only applicable to <td> HTML elements, and cannot be used for column or index headers. New in version 1.3.0. Parameters ttips:DataFrame DataFrame containing strings that will be translated to tooltips, mapped by...
doc_2571
Removes the pruning reparameterization from a module. The pruned parameter named name remains permanently pruned, and the parameter named name+'_orig' is removed from the parameter list. Similarly, the buffer named name+'_mask' is removed from the buffers. Note Pruning itself is NOT undone or reversed!
doc_2572
See Migration guide for more details. tf.compat.v1.raw_ops.AnonymousSeedGenerator tf.raw_ops.AnonymousSeedGenerator( seed, seed2, reshuffle, name=None ) Args seed A Tensor of type int64. seed2 A Tensor of type int64. reshuffle A Tensor of type bool. name A name for the operation (optio...
doc_2573
Return the url.
doc_2574
See Migration guide for more details. tf.compat.v1.sysconfig.get_build_info tf.sysconfig.get_build_info() Values are generated when TensorFlow is compiled, and are static for each TensorFlow package. The return value is a dictionary with string keys such as: cuda_version cudnn_version is_cuda_build is_rocm_build ms...
doc_2575
Add a Container to the axes' containers; return the container.
doc_2576
Learn a list of feature name -> indices mappings and transform X. Like fit(X) followed by transform(X), but does not require materializing X in memory. Parameters XMapping or iterable over Mappings Dict(s) or Mapping(s) from feature names (arbitrary Python objects) to feature values (strings or convertible to d...
doc_2577
Returns the message for this LogRecord instance after merging any user-supplied arguments with the message. If the user-supplied message argument to the logging call is not a string, str() is called on it to convert it to a string. This allows use of user-defined classes as messages, whose __str__ method can return the...
doc_2578
Similar to the parse() method, except it takes a bytes-like object instead of a file-like object. Calling this method on a bytes-like object is equivalent to wrapping bytes in a BytesIO instance first and calling parse(). Optional headersonly is as with the parse() method.
doc_2579
If flag is True, escape sequences generated by some keys (keypad, function keys) will be interpreted by curses. If flag is False, escape sequences will be left as is in the input stream.
doc_2580
Return the x-axis view limits. Returns left, right(float, float) The current x-axis limits in data coordinates. See also set_xlim set_xbound, get_xbound invert_xaxis, xaxis_inverted Notes The x-axis may be inverted, in which case the left value will be greater than the right value. Examples using...
doc_2581
Remove o from the stack. Raises ValueError If o is not in the stack.
doc_2582
Return x raised to the power y. Exceptional cases follow Annex ‘F’ of the C99 standard as far as possible. In particular, pow(1.0, x) and pow(x, 0.0) always return 1.0, even when x is a zero or a NaN. If both x and y are finite, x is negative, and y is not an integer then pow(x, y) is undefined, and raises ValueError. ...
doc_2583
Sparse coding Finds a sparse representation of data against a fixed, precomputed dictionary. Each row of the result is the solution to a sparse coding problem. The goal is to find a sparse array code such that: X ~= code * dictionary Read more in the User Guide. Parameters dictionaryndarray of shape (n_component...
doc_2584
See Migration guide for more details. tf.compat.v1.app.flags.CantOpenFlagFileError E.g. the file doesn't exist, or has wrong permissions.
doc_2585
Safely join zero or more untrusted path components to a base directory to avoid escaping the base directory. Parameters directory (str) – The trusted base directory. pathnames (str) – The untrusted path components relative to the base directory. Returns A safe path, otherwise None. Return type str
doc_2586
Expand the shape of an array. Insert a new axis that will appear at the axis position in the expanded array shape. Parameters aarray_like Input array. axisint or tuple of ints Position in the expanded axes where the new axis (or axes) is placed. Deprecated since version 1.13.0: Passing an axis where axis >...
doc_2587
Return an iterator over all of the immediate sub-parts of the message that are not candidate “body” parts. That is, skip the first occurrence of each of text/plain, text/html, multipart/related, or multipart/alternative (unless they are explicitly marked as attachments via Content-Disposition: attachment), and return a...
doc_2588
Apply the non-affine part of this transform to Path path, returning a new Path. transform_path(path) is equivalent to transform_path_affine(transform_path_non_affine(values)).
doc_2589
See Migration guide for more details. tf.compat.v1.raw_ops.MatrixSetDiag tf.raw_ops.MatrixSetDiag( input, diagonal, name=None ) Given input and diagonal, this operation returns a tensor with the same shape and values as input, except for the main diagonal of the innermost matrices. These will be overwritten by t...
doc_2590
Alias for get_facecolor.
doc_2591
Add an Axes to the figure as part of a subplot arrangement. Call signatures: add_subplot(nrows, ncols, index, **kwargs) add_subplot(pos, **kwargs) add_subplot(ax) add_subplot() Parameters *argsint, (int, int, index), or SubplotSpec, default: (1, 1, 1) The position of the subplot described by one of Three inte...
doc_2592
Returns whether the kernel is stationary.
doc_2593
When shlex detects a source request (see source below) this method is given the following token as argument, and expected to return a tuple consisting of a filename and an open file-like object. Normally, this method first strips any quotes off the argument. If the result is an absolute pathname, or there was no previo...
doc_2594
A torch.nn.ConvTranspose3d module with lazy initialization of the in_channels argument of the ConvTranspose3d that is inferred from the input.size(1). Parameters out_channels (int) – Number of channels produced by the convolution kernel_size (int or tuple) – Size of the convolving kernel stride (int or tuple, o...
doc_2595
Shrink font size until the text fits into the cell width.
doc_2596
if self.request.version == 'v1': return AccountSerializerVersion1 return AccountSerializer Reversing URLs for versioned APIs The reverse function included by REST framework ties in with the versioning scheme. You need to make sure to include the current request as a keyword argument, like so. from rest...
doc_2597
Returns a tensor filled with random numbers from a uniform distribution on the interval [0,1)[0, 1) The shape of the tensor is defined by the variable argument size. Parameters size (int...) – a sequence of integers defining the shape of the output tensor. Can be a variable number of arguments or a collection like a...
doc_2598
Change the appearance of ticks, tick labels, and gridlines. Tick properties that are not explicitly set using the keyword arguments remain unchanged unless reset is True. Parameters axis{'x', 'y', 'both'}, default: 'both' The axis to which the parameters are applied. which{'major', 'minor', 'both'}, default: ...
doc_2599
Test whether any array element along a given axis evaluates to True. Returns single boolean unless axis is not None Parameters aarray_like Input array or object that can be converted to an array. axisNone or int or tuple of ints, optional Axis or axes along which a logical OR reduction is performed. The def...