_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_7700 | See Migration guide for more details. tf.compat.v1.raw_ops.Batch
tf.raw_ops.Batch(
in_tensors, num_batch_threads, max_batch_size, batch_timeout_micros,
grad_timeout_micros, max_enqueued_batches=10, allowed_batch_sizes=[],
container='', shared_name='', batching_queue='',
name=None
)
When many instance... | |
doc_7701 |
Copy an element of an array to a standard Python scalar and return it. Parameters
*argsArguments (variable number and type)
none: in this case, the method only works for arrays with one element (a.size == 1), which element is copied into a standard Python scalar object and returned. int_type: this argument is ... | |
doc_7702 |
Compute the Brier score loss. The smaller the Brier score loss, the better, hence the naming with “loss”. The Brier score measures the mean squared difference between the predicted probability and the actual outcome. The Brier score always takes on a value between zero and one, since this is the largest possible diff... | |
doc_7703 | accessor for ‘no-store’ | |
doc_7704 | Extend the right side of the deque by appending elements from the iterable argument. | |
doc_7705 | If dwFlags specifies STARTF_USESTDHANDLES, this attribute is the standard error handle for the process. Otherwise, this attribute is ignored and the default for standard error is the console window’s buffer. | |
doc_7706 | See Migration guide for more details. tf.compat.v1.raw_ops.PaddedBatchDatasetV2
tf.raw_ops.PaddedBatchDatasetV2(
input_dataset, batch_size, padded_shapes, padding_values, drop_remainder,
output_shapes, parallel_copy=False, name=None
)
Args
input_dataset A Tensor of type variant.
batch_size A T... | |
doc_7707 |
Call predict_proba on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict_proba. Parameters
Xindexable, length n_samples
Must fulfill the input assumptions of the underlying estimator. | |
doc_7708 |
Localize tz-naive Datetime Array/Index to tz-aware Datetime Array/Index. This method takes a time zone (tz) naive Datetime Array/Index object and makes this time zone aware. It does not move the time to another time zone. This method can also be used to do the inverse – to create a time zone unaware object from an aw... | |
doc_7709 | Returns a tuple with all the nodes that are ready. Initially it returns all nodes with no predecessors, and once those are marked as processed by calling TopologicalSorter.done(), further calls will return all new nodes that have all their predecessors already processed. Once no more progress can be made, empty tuples ... | |
doc_7710 |
Ordered list of field names, or None if there are no fields. This is for compatibility with NumPy arrays, and may be removed in the future. | |
doc_7711 | Mask for group permissions. | |
doc_7712 |
Return a string showing the figure and connection status for the backend. This is intended as a diagnostic tool, and not for general use. | |
doc_7713 | See Migration guide for more details. tf.compat.v1.distribute.InputReplicationMode
PER_WORKER: The input function will be called on each worker independently, creating as many input pipelines as number of workers. Replicas will dequeue from the local Dataset on their worker. tf.distribute.Strategy doesn't manage any... | |
doc_7714 |
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_7715 | Return an encapsulated exception object, or None. | |
doc_7716 |
Find the union of two arrays. Return the unique, sorted array of values that are in either of the two input arrays. Parameters
ar1, ar2array_like
Input arrays. They are flattened if they are not already 1D. Returns
union1dndarray
Unique, sorted union of the input arrays. See also numpy.lib.arrayse... | |
doc_7717 | Return the adjusted exponent after shifting out the coefficient’s rightmost digits until only the lead digit remains: Decimal('321e+5').adjusted() returns seven. Used for determining the position of the most significant digit with respect to the decimal point. | |
doc_7718 | See Migration guide for more details. tf.compat.v1.keras.activations.exponential
tf.keras.activations.exponential(
x
)
For example:
a = tf.constant([-3.0,-1.0, 0.0,1.0,3.0], dtype = tf.float32)
b = tf.keras.activations.exponential(a)
b.numpy()
array([0.04978707, 0.36787945, 1., 2.7182817 , 20.085537], dtype=... | |
doc_7719 |
Differentiate. Return a series instance of that is the derivative of the current series. Parameters
mnon-negative int
Find the derivative of order m. Returns
new_seriesseries
A new series representing the derivative. The domain is the same as the domain of the differentiated series. | |
doc_7720 |
Compute pairwise covariance of columns, excluding NA/null values. Compute the pairwise covariance among the series of a DataFrame. The returned data frame is the covariance matrix of the columns of the DataFrame. Both NA and null values are automatically excluded from the calculation. (See the note below about bias f... | |
doc_7721 |
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_7722 |
Return Pearson product-moment correlation coefficients. Except for the handling of missing data this function does the same as numpy.corrcoef. For more details and examples, see numpy.corrcoef. Parameters
xarray_like
A 1-D or 2-D array containing multiple variables and observations. Each row of x represents a v... | |
doc_7723 |
Signed integer type, compatible with C short. Character code
'h' Alias on this platform (Linux x86_64)
numpy.int16: 16-bit signed integer (-32_768 to 32_767). | |
doc_7724 |
Copy all nodes from a given graph into self. Parameters
g (Graph) – The source graph from which to copy Nodes.
val_map (Dict[Node, Node]) – a dictionary that will be populated with a mapping from nodes in g to nodes in self. Note that val_map can be passed in with values in it already to override copying of cert... | |
doc_7725 |
Add a new axes on the top (or bottom) side of the main axes. Parameters
sizeaxes_size or float or str
The axes height. float or str arguments are interpreted as axes_size.from_any(size, AxesY(<main_axes>)).
padaxes_size or float or str
Padding between the axes. float or str arguments are interpreted as axes... | |
doc_7726 |
Return the url. | |
doc_7727 | The most negative timedelta object, timedelta(-999999999). | |
doc_7728 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyAdam
tf.raw_ops.ResourceApplyAdam(
var, m, v, beta1_power, beta2_power, lr, beta1, beta2, epsilon, grad,
use_locking=False, use_nesterov=False, name=None
)
$$\text{lr}_t := \mathrm{learning_rate} * \sqrt{1 - \beta_2^t} / (1 - \beta_1^t)... | |
doc_7729 |
True if this transform has a corresponding inverse transform. | |
doc_7730 |
Get parameters for this estimator. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns
paramsdict
Parameter names mapped to their values. | |
doc_7731 | Windows only: The returned function prototype creates functions that use the stdcall calling convention, except on Windows CE where WINFUNCTYPE() is the same as CFUNCTYPE(). The function will release the GIL during the call. use_errno and use_last_error have the same meaning as above. | |
doc_7732 |
Return a partitioned copy of an array. Creates a copy of the array with its elements rearranged in such a way that the value of the element in k-th position is in the position it would be in a sorted array. All elements smaller than the k-th element are moved before this element and all equal or greater are moved beh... | |
doc_7733 |
Return the label used for this artist in the legend. | |
doc_7734 | See Migration guide for more details. tf.compat.v1.estimator.RunConfig
tf.estimator.RunConfig(
model_dir=None, tf_random_seed=None, save_summary_steps=100,
save_checkpoints_steps=_USE_DEFAULT, save_checkpoints_secs=_USE_DEFAULT,
session_config=None, keep_checkpoint_max=5, keep_checkpoint_every_n_hours=100... | |
doc_7735 | tf.compat.v1.FixedLengthRecordReader(
record_bytes, header_bytes=None, footer_bytes=None, hop_bytes=None, name=None,
encoding=None
)
See ReaderBase for supported methods.
Args
record_bytes An int.
header_bytes An optional int. Defaults to 0.
footer_bytes An optional int. Defaults to 0.
... | |
doc_7736 | See torch.i0() | |
doc_7737 |
Convert an image to 8-bit unsigned integer format. Parameters
imagendarray
Input image.
force_copybool, optional
Force a copy of the data, irrespective of its current dtype. Returns
outndarray of ubyte (uint8)
Output image. Notes Negative input values will be clipped. Positive values are scaled ... | |
doc_7738 | Windows only: This function is a hook which allows implementing in-process COM servers with ctypes. It is called from the DllCanUnloadNow function that the _ctypes extension dll exports. | |
doc_7739 | Checks for an ASCII whitespace character; space or horizontal tab. | |
doc_7740 | os.WSTOPPED
os.WNOWAIT
Flags that can be used in options in waitid() that specify what child signal to wait for. Availability: Unix. New in version 3.3. | |
doc_7741 |
Get parameters for this estimator. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns
paramsdict
Parameter names mapped to their values. | |
doc_7742 | tf.nn.space_to_depth(
input, block_size, data_format='NHWC', name=None
)
Rearranges blocks of spatial data, into depth. More specifically, this op outputs a copy of the input tensor where values from the height and width dimensions are moved to the depth dimension. The attr block_size indicates the input block siz... | |
doc_7743 |
A quantized Embedding module with quantized packed weights as inputs. We adopt the same interface as torch.nn.Embedding, please see https://pytorch.org/docs/stable/nn.html#torch.nn.Embedding for documentation. Similar to Embedding, attributes will be randomly initialized at module creation time and will be overwritte... | |
doc_7744 | This controls the number of extra forms the formset will display in addition to the initial forms. Defaults to 3. See the formsets documentation for more information. For users with JavaScript-enabled browsers, an “Add another” link is provided to enable any number of additional inlines to be added in addition to those... | |
doc_7745 |
Count the number of masked elements along the given axis. Parameters
arrarray_like
An array with (possibly) masked elements.
axisint, optional
Axis along which to count. If None (default), a flattened version of the array is used. Returns
countint, ndarray
The total number of masked elements (axis=N... | |
doc_7746 | Stores names for each of this tensor’s dimensions. names[idx] corresponds to the name of tensor dimension idx. Names are either a string if the dimension is named or None if the dimension is unnamed. Dimension names may contain characters or underscore. Furthermore, a dimension name must be a valid Python variable name... | |
doc_7747 | If this bit is set, then random bytes are drawn from the /dev/random pool instead of the /dev/urandom pool. New in version 3.6. | |
doc_7748 | Plugin Description
qt Fast image display using the Qt library. Deprecated since 0.18. Will be removed in 0.20.
imread Image reading and writing via imread
gdal Image reading via the GDAL Library (www.gdal.org)
simpleitk Image reading and writing via SimpleITK
gtk Fast image display using the GTK library
pil... | |
doc_7749 |
Set the dash style for the gc. Parameters
dash_offsetfloat
The offset (usually 0).
dash_listarray-like or None
The on-off sequence as points. None specifies a solid line. Notes See p. 107 of to PostScript blue book for more info. | |
doc_7750 | Return the value of the attribute named by namespaceURI and localName as a string. If no such attribute exists, an empty string is returned, as if the attribute had no value. | |
doc_7751 |
The File class is a thin wrapper around a Python file object with some Django-specific additions. Internally, Django uses this class when it needs to represent a file. File objects have the following attributes and methods:
name
The name of the file including the relative path from MEDIA_ROOT.
size
The size... | |
doc_7752 | Create and return a new ShareableList object, initialized by the values from the input sequence. | |
doc_7753 | Encode s using the ASCII codec and the surrogateescape error handler, and pass it to the write method of the outfp passed to the BytesGenerator’s constructor. | |
doc_7754 | Analyze the sample text (presumed to be in CSV format) and return True if the first row appears to be a series of column headers. | |
doc_7755 | Like Flask.teardown_request() but for a blueprint. Such a function is executed when tearing down each request, even if outside of the blueprint. Parameters
f (Callable[[Optional[BaseException]], Response]) – Return type
Callable[[Optional[BaseException]], Response] | |
doc_7756 | tf.compat.v1.ragged.RaggedTensorValue(
values, row_splits
)
Warning: RaggedTensorValue should only be used in graph mode; in eager mode, the tf.RaggedTensor class contains its value directly. See tf.RaggedTensor for a description of ragged tensors.
Args
values A numpy array of any type and shape; or a Rag... | |
doc_7757 | tf.experimental.numpy.maximum(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.maximum. | |
doc_7758 | tf.image.rgb_to_grayscale, tf.image.grayscale_to_rgb
tf.image.rgb_to_hsv, tf.image.hsv_to_rgb
tf.image.rgb_to_yiq, tf.image.yiq_to_rgb
tf.image.rgb_to_yuv, tf.image.yuv_to_rgb
tf.image.image_gradients tf.image.convert_image_dtype Image Adjustments TensorFlow provides functions to adjust images in various ways: ... | |
doc_7759 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayConcatV2
tf.raw_ops.TensorArrayConcatV2(
handle, flow_in, dtype, element_shape_except0=None, name=None
)
Args
handle A Tensor of type string.
flow_in A Tensor of type float32.
dtype A tf.DType.
element_shape_except0 ... | |
doc_7760 | Return a mapping of file objects to selector keys. This returns a Mapping instance mapping registered file objects to their associated SelectorKey instance. | |
doc_7761 | Bases: object Class for cascade of classifiers that is used for object detection. The main idea behind cascade of classifiers is to create classifiers of medium accuracy and ensemble them into one strong classifier instead of just creating a strong one. The second advantage of cascade classifier is that easy examples c... | |
doc_7762 | See Migration guide for more details. tf.compat.v1.TensorSpec
tf.TensorSpec(
shape, dtype=tf.dtypes.float32, name=None
)
Metadata for describing the tf.Tensor objects accepted or returned by some TensorFlow APIs.
Args
shape Value convertible to tf.TensorShape. The shape of the tensor.
dtype Value ... | |
doc_7763 | See Migration guide for more details. tf.compat.v1.keras.experimental.WideDeepModel
tf.keras.experimental.WideDeepModel(
linear_model, dnn_model, activation=None, **kwargs
)
This model jointly train a linear and a dnn model. Example: linear_model = LinearModel()
dnn_model = keras.Sequential([keras.layers.Dense(u... | |
doc_7764 |
Get the affine part of this transform. | |
doc_7765 | Removes all objects from the related object set: >>> b = Blog.objects.get(id=1)
>>> b.entry_set.clear()
Note this doesn’t delete the related objects – it just disassociates them. Just like remove(), clear() is only available on ForeignKeys where null=True and it also accepts the bulk keyword argument. For many-to-many... | |
doc_7766 | This exception is raised by the sys.exit() function. It inherits from BaseException instead of Exception so that it is not accidentally caught by code that catches Exception. This allows the exception to properly propagate up and cause the interpreter to exit. When it is not handled, the Python interpreter exits; no st... | |
doc_7767 |
Set whether the text can be wrapped. Parameters
wrapbool
Notes Wrapping does not work together with savefig(..., bbox_inches='tight') (which is also used internally by %matplotlib inline in IPython/Jupyter). The 'tight' setting rescales the canvas to accommodate all content and happens before wrapping. | |
doc_7768 | Token used to determine end of file. This will be set to the empty string (''), in non-POSIX mode, and to None in POSIX mode. | |
doc_7769 | See Migration guide for more details. tf.compat.v1.config.get_soft_device_placement
tf.config.get_soft_device_placement()
If enabled, an op will be placed on CPU if any of the following are true there's no GPU implementation for the OP no GPU devices are known or registered need to co-locate with reftype input(s) w... | |
doc_7770 | socket.PF_RDS
socket.SOL_RDS
RDS_*
Many constants of these forms, documented in the Linux documentation, are also defined in the socket module. Availability: Linux >= 2.6.30. New in version 3.3. | |
doc_7771 | See Migration guide for more details. tf.compat.v1.keras.callbacks.History
tf.keras.callbacks.History()
This callback is automatically applied to every Keras model. The History object gets returned by the fit method of models. Methods set_model View source
set_model(
model
)
set_params View source
set_params(... | |
doc_7772 |
Linear regression with combined L1 and L2 priors as regularizer. Minimizes the objective function: 1 / (2 * n_samples) * ||y - Xw||^2_2
+ alpha * l1_ratio * ||w||_1
+ 0.5 * alpha * (1 - l1_ratio) * ||w||^2_2
If you are interested in controlling the L1 and L2 penalty separately, keep in mind that this is equivalent t... | |
doc_7773 | Sets the name and domain attributes to the value of get_host(). | |
doc_7774 | Determine whether code is in tableC.3 (Private use). | |
doc_7775 |
Mask an array where not equal to a given value. This function is a shortcut to masked_where, with condition = (x != value). See also masked_where
Mask where a condition is met. Examples >>> import numpy.ma as ma
>>> a = np.arange(4)
>>> a
array([0, 1, 2, 3])
>>> ma.masked_not_equal(a, 2)
masked_array(data=[--, ... | |
doc_7776 | Pass to getrusage() to request resources consumed by both the current process and child processes. May not be available on all systems. | |
doc_7777 |
Save a masked array to a file in binary format. Warning This function is not implemented yet. Raises
NotImplementedError
When tofile is called. | |
doc_7778 |
Create a checkerboard level set with binary values. Parameters
image_shapetuple of positive integers
Shape of the image.
square_sizeint, optional
Size of the squares of the checkerboard. It defaults to 5. Returns
outarray with shape image_shape
Binary level set of the checkerboard. See also
c... | |
doc_7779 | draw a vertical line vline(surface, x, y1, y2, color) -> None Draws a straight vertical line ((x, y1) to (x, y2)) on the given surface. There are no endcaps.
Parameters:
surface (Surface) -- surface to draw on
x (int) -- x coordinate of the line
y1 (int) -- y coordinate of one end of the line
y2 (int) -- y... | |
doc_7780 |
Extract rBRIEF binary descriptors for given keypoints in image. Note that the keypoints must be extracted using the same downscale and n_scales parameters. Additionally, if you want to extract both keypoints and descriptors you should use the faster detect_and_extract. Parameters
image2D array
Input image.
ke... | |
doc_7781 | get the ascent of the font get_ascent() -> int Return the height in pixels for the font ascent. The ascent is the number of pixels from the font baseline to the top of the font. | |
doc_7782 | Hide the panel. This does not delete the object, it just makes the window on screen invisible. | |
doc_7783 |
Evaluate a 2-D polynomial on the Cartesian product of x and y. This function returns the values: \[p(a,b) = \sum_{i,j} c_{i,j} * a^i * b^j\] where the points (a, b) consist of all pairs formed by taking a from x and b from y. The resulting points form a grid with x in the first dimension and y in the second. The par... | |
doc_7784 |
Fit Ridge regression model. Parameters
X{ndarray, sparse matrix} of shape (n_samples, n_features)
Training data
yndarray of shape (n_samples,) or (n_samples, n_targets)
Target values
sample_weightfloat or ndarray of shape (n_samples,), default=None
Individual weights for each sample. If given a float, e... | |
doc_7785 |
Roll array elements along a given axis. Elements that roll beyond the last position are re-introduced at the first. Parameters
aarray_like
Input array.
shiftint or tuple of ints
The number of places by which elements are shifted. If a tuple, then axis must be a tuple of the same size, and each of the given ... | |
doc_7786 | operator.le(a, b)
operator.eq(a, b)
operator.ne(a, b)
operator.ge(a, b)
operator.gt(a, b)
operator.__lt__(a, b)
operator.__le__(a, b)
operator.__eq__(a, b)
operator.__ne__(a, b)
operator.__ge__(a, b)
operator.__gt__(a, b)
Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva... | |
doc_7787 |
Truncate series to length size. Reduce the series to length size by discarding the high degree terms. The value of size must be a positive integer. This can be useful in least squares where the coefficients of the high degree terms may be very small. Parameters
sizepositive int
The series is reduced to length s... | |
doc_7788 | See Migration guide for more details. tf.compat.v1.distribute.get_replica_context
tf.distribute.get_replica_context()
Returns None if in a cross-replica context. Note that execution: starts in the default (single-replica) replica context (this function will return the default ReplicaContext object); switches to cro... | |
doc_7789 | Wrap an existing Python socket sock and return an instance of SSLContext.sslsocket_class (default SSLSocket). The returned SSL socket is tied to the context, its settings and certificates. sock must be a SOCK_STREAM socket; other socket types are unsupported. The parameter server_side is a boolean which identifies whet... | |
doc_7790 | See torch.lerp() | |
doc_7791 | Returns URL-safe, signed base64 compressed JSON string. Serialized object is signed using TimestampSigner. | |
doc_7792 |
Applies a linear transformation to the incoming data: y=xAT+by = xA^T + b . This operator supports TensorFloat32. Shape: Input: (N,∗,in_features)(N, *, in\_features) N is the batch size, * means any number of additional dimensions Weight: (out_features,in_features)(out\_features, in\_features)
Bias: (out_features... | |
doc_7793 | Without arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object. If the object has a method named __dir__(), this method will be called and must return the list of attributes. This allows objects that implement a custom __getattr__()... | |
doc_7794 | An abstract method to return a true value if the module is a package, a false value otherwise. ImportError is raised if the loader cannot find the module. Changed in version 3.4: Raises ImportError instead of NotImplementedError. | |
doc_7795 | finds which, and how many pixels in a surface are within a threshold of a 'search_color' or a 'search_surf'. threshold(dest_surf, surf, search_color, threshold=(0,0,0,0), set_color=(0,0,0,0), set_behavior=1, search_surf=None, inverse_set=False) -> num_threshold_pixels This versatile function can be used for find colo... | |
doc_7796 | Set the flag(s) specified by flag without changing other flags. To add more than one flag at a time, flag may be a string of more than one character. | |
doc_7797 |
Set the sizes of each member of the collection. Parameters
sizesndarray or None
The size to set for each element of the collection. The value is the 'area' of the element.
dpifloat, default: 72
The dpi of the canvas. | |
doc_7798 | Return an IPv4Interface or IPv6Interface object depending on the IP address passed as argument. address is a string or integer representing the IP address. Either IPv4 or IPv6 addresses may be supplied; integers less than 2**32 will be considered to be IPv4 by default. A ValueError is raised if address does not represe... | |
doc_7799 | The origin or ‘*’ for any origin that may make cross origin requests. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.