_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_21300 |
Scalar method identical to the corresponding array attribute. Please see ndarray.item. | |
doc_21301 | tf.nn.conv2d(
input, filters, strides, padding, data_format='NHWC', dilations=None,
name=None
)
The input tensor may have rank 4 or higher, where shape dimensions [:-3] are considered batch dimensions (batch_shape). Given an input tensor of shape batch_shape + [in_height, in_width, in_channels] and a filter / ... | |
doc_21302 | tf.compat.v1.distributions.Beta(
concentration1=None, concentration0=None, validate_args=False,
allow_nan_stats=True, name='Beta'
)
The Beta distribution is defined over the (0, 1) interval using parameters concentration1 (aka "alpha") and concentration0 (aka "beta"). Mathematical Details The probability densi... | |
doc_21303 | This helper function returns a dictionary of scheme to proxy server URL mappings. It scans the environment for variables named <scheme>_proxy, in a case insensitive approach, for all operating systems first, and when it cannot find it, looks for proxy information from Mac OSX System Configuration for Mac OS X and Windo... | |
doc_21304 |
Bases: matplotlib.collections._CollectionWithSizes A collection of circles, drawn using splines. Parameters
sizesfloat or array-like
The area of each circle in points^2. **kwargs
Forwarded to Collection. add_callback(func)[source]
Add a callback function that will be called whenever one of the Artist'... | |
doc_21305 | Implements a mutex lock for asyncio tasks. Not thread-safe. An asyncio lock can be used to guarantee exclusive access to a shared resource. The preferred way to use a Lock is an async with statement: lock = asyncio.Lock()
# ... later
async with lock:
# access shared state
which is equivalent to: lock = asyncio.Lo... | |
doc_21306 | Exception raised when an unexpected reply is received from the server. | |
doc_21307 |
Function that computes the dot product between a vector v and the Hessian of a given scalar function at the point given by the inputs. Parameters
func (function) – a Python function that takes Tensor inputs and returns a Tensor with a single element.
inputs (tuple of Tensors or Tensor) – inputs to the function f... | |
doc_21308 |
Returns a boolean array which is True where the string element in self ends with suffix, otherwise False. See also char.endswith | |
doc_21309 |
Waits for all provided futures to be complete, and returns the list of completed values. Parameters
futures (list) – a list of Future object. Returns
A list of the completed Future results. This method will throw an error if wait on any Future throws. | |
doc_21310 |
Set the clipping behavior. Parameters
bbool or None
False: The annotation will always be drawn regardless of its position.
True: The annotation will only be drawn if self.xy is inside the axes.
None: The annotation will only be drawn if self.xy is inside the axes and self.xycoords == "data". | |
doc_21311 | Optional argument isjunk must be None (the default) or a one-argument function that takes a sequence element and returns true if and only if the element is “junk” and should be ignored. Passing None for isjunk is equivalent to passing lambda x: False; in other words, no elements are ignored. For example, pass: lambda x... | |
doc_21312 |
Return True if all values in the group are truthful, else False. Parameters
skipna:bool, default True
Flag to ignore nan values during truth testing. Returns
Series or DataFrame
DataFrame or Series of boolean values, where a value is True if all elements are True within its respective group, False otherwi... | |
doc_21313 | This is a read-only attribute that returns the value of key passed to the constructor, which should be a lookup key in the IANA time zone database (e.g. America/New_York, Europe/Paris or Asia/Tokyo). For zones constructed from file without specifying a key parameter, this will be set to None. Note Although it is a som... | |
doc_21314 | Returns the number of joysticks. get_count() -> count Return the number of joystick devices on the system. The count will be 0 if there are no joysticks on the system. When you create Joystick objects using Joystick(id), you pass an integer that must be lower than this count. | |
doc_21315 |
Take log base n of x. If x contains negative inputs, the answer is computed and returned in the complex domain. Parameters
narray_like
The integer base(s) in which the log is taken.
xarray_like
The value(s) whose log base n is (are) required. Returns
outndarray or scalar
The log base n of the x valu... | |
doc_21316 | Unregister a file object from selection, removing it from monitoring. A file object shall be unregistered prior to being closed. fileobj must be a file object previously registered. This returns the associated SelectorKey instance, or raises a KeyError if fileobj is not registered. It will raise ValueError if fileobj i... | |
doc_21317 | tf.compat.v1.estimator.tpu.RunConfig(
tpu_config=None, evaluation_master=None, master=None, cluster=None, **kwargs
)
Args
tpu_config the TPUConfig that specifies TPU-specific configuration.
evaluation_master a string. The address of the master to use for eval. Defaults to master if not set.
mast... | |
doc_21318 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseAccumulatorApplyGradient
tf.raw_ops.SparseAccumulatorApplyGradient(
handle, local_step, gradient_indices, gradient_values, gradient_shape,
has_known_shape, name=None
)
Does not add if local_step is smaller than the accumulator's global_step.
... | |
doc_21319 | Casts all floating point parameters and buffers to float datatype. Returns
self Return type
Module | |
doc_21320 |
Close the current element (opened by the most recent call to start()). Parameters
tag
Element tag. If given, the tag must match the start tag. If omitted, the current element is closed. | |
doc_21321 | Reset the syslog module values and call the system library closelog(). This causes the module to behave as it does when initially imported. For example, openlog() will be called on the first syslog() call (if openlog() hasn’t already been called), and ident and other openlog() parameters are reset to defaults. Raises a... | |
doc_21322 | Wrap an already accepted connection into a transport/protocol pair. This method can be used by servers that accept connections outside of asyncio but that use asyncio to handle them. Parameters:
protocol_factory must be a callable returning a protocol implementation.
sock is a preexisting socket object returned from... | |
doc_21323 |
Bases: matplotlib.patches.Ellipse An elliptical arc, i.e. a segment of an ellipse. Due to internal optimizations, there are certain restrictions on using Arc: The arc cannot be filled. The arc must be used in an Axes instance. It can not be added directly to a Figure because it is optimized to only render the segmen... | |
doc_21324 |
Predict the labels for the data samples in X using trained model. Parameters
Xarray-like of shape (n_samples, n_features)
List of n_features-dimensional data points. Each row corresponds to a single data point. Returns
labelsarray, shape (n_samples,)
Component labels. | |
doc_21325 | A enumeration of possible methods the interpreter can use to determine whether a bytecode file is up to date with a source file. The .pyc file indicates the desired invalidation mode in its header. See Cached bytecode invalidation for more information on how Python invalidates .pyc files at runtime. New in version 3.7... | |
doc_21326 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize
tf.raw_ops.QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize(
input, filter, bias, min_input, max_input, min_filter, max_filter,
min_freezed_output, max_freezed_output, strides, padding,
out_... | |
doc_21327 | Clear the window. | |
doc_21328 |
Return an array representing the indices of a grid. Compute an array where the subarrays contain index values 0, 1, … varying only along the corresponding axis. Parameters
dimensionssequence of ints
The shape of the grid.
dtypedtype, optional
Data type of the result.
sparseboolean, optional
Return a spa... | |
doc_21329 |
Test element-wise for negative infinity, return result as bool array. Parameters
xarray_like
The input array.
outarray_like, optional
A location into which the result is stored. If provided, it must have a shape that the input broadcasts to. If not provided or None, a freshly-allocated boolean array is retu... | |
doc_21330 | See Migration guide for more details. tf.compat.v1.io.RaggedFeature.ValueRowIds
tf.io.RaggedFeature.ValueRowIds(
key
)
Attributes
key | |
doc_21331 |
Bases: object Control handles for canvas tools. Parameters
axmatplotlib.axes.Axes
Matplotlib axes where tool handles are displayed.
x, y1D arrays
Coordinates of control handles.
markerstr, default: 'o'
Shape of marker used to display handle. See matplotlib.pyplot.plot.
marker_propsdict, optional
Add... | |
doc_21332 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_21333 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayV2
tf.raw_ops.TensorArrayV2(
size, dtype, element_shape=None, dynamic_size=False, clear_after_read=True,
tensor_array_name='', name=None
)
Args
size A Tensor of type int32.
dtype A tf.DType.
element_shape An optional t... | |
doc_21334 | A list of intermediate responses. Populated when the test request is made with follow_redirects enabled. | |
doc_21335 |
lookup_name = 'year' | |
doc_21336 | The TextWrapper constructor accepts a number of optional keyword arguments. Each keyword argument corresponds to an instance attribute, so for example wrapper = TextWrapper(initial_indent="* ")
is the same as wrapper = TextWrapper()
wrapper.initial_indent = "* "
You can re-use the same TextWrapper object many times, ... | |
doc_21337 | """
May be applied as a `default=...` value on a serializer field.
Returns the current user.
"""
requires_context = True
def __call__(self, serializer_field):
return serializer_field.context['request'].user
When serializing the instance, default will be used if the object attribute or ... | |
doc_21338 |
Validate a hatch pattern. A hatch pattern string can have any sequence of the following characters: \ / | - + * . x o O. | |
doc_21339 | tf.metrics.TruePositives Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.TruePositives
tf.keras.metrics.TruePositives(
thresholds=None, name=None, dtype=None
)
If sample_weight is given, calculates the sum of the weights of true positives. This metric creates one loc... | |
doc_21340 |
Returns the sum of the matrix elements, along the given axis. Refer to numpy.sum for full documentation. See also numpy.sum
Notes This is the same as ndarray.sum, except that where an ndarray would be returned, a matrix object is returned instead. Examples >>> x = np.matrix([[1, 2], [4, 3]])
>>> x.sum()
10
>>> x.... | |
doc_21341 |
Predict decision function for samples in X using final_estimator_.decision_function. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of features. Returns
decisionsndarray of shape (n_samples,),... | |
doc_21342 | This method takes a single “compressed” value from the field and returns a list of “decompressed” values. The input value can be assumed valid, but not necessarily non-empty. This method must be implemented by the subclass, and since the value may be empty, the implementation must be defensive. The rationale behind “de... | |
doc_21343 | See Migration guide for more details. tf.compat.v1.raw_ops.Send
tf.raw_ops.Send(
tensor, tensor_name, send_device, send_device_incarnation, recv_device,
client_terminated=False, name=None
)
Args
tensor A Tensor. The tensor to send.
tensor_name A string. The name of the tensor to send.
send... | |
doc_21344 |
Convert coefficient matrix to dense array format. Converts the coef_ member (back) to a numpy.ndarray. This is the default format of coef_ and is required for fitting, so calling this method is only required on models that have previously been sparsified; otherwise, it is a no-op. Returns
self
Fitted estimator. | |
doc_21345 | Tells Django that this expression contains an aggregate and that a GROUP BY clause needs to be added to the query. | |
doc_21346 |
Autoscale the scalar limits on the norm instance using the current array | |
doc_21347 | Return a list of all available shadow password database entries, in arbitrary order. | |
doc_21348 | A valid OpenerDirector, which can be used to open using a different protocol, or handle errors. | |
doc_21349 |
Set the artist's clip Bbox. Parameters
clipboxBbox | |
doc_21350 | Creates a hashed password in the format used by this application. It takes one mandatory argument: the password in plain-text (string or bytes). Optionally, you can provide a salt and a hashing algorithm to use, if you don’t want to use the defaults (first entry of PASSWORD_HASHERS setting). See Included hashers for th... | |
doc_21351 |
Return whether face is colored. | |
doc_21352 | Does the request dispatching. Matches the URL and returns the return value of the view or error handler. This does not have to be a response object. In order to convert the return value to a proper response object, call make_response(). Changelog Changed in version 0.7: This no longer does the exception handling, this... | |
doc_21353 | Parse lists of key, value pairs as described by RFC 2068 Section 2 and convert them into a python dict (or any other mapping object created from the type with a dict like interface provided by the cls argument): >>> d = parse_dict_header('foo="is a fish", bar="as well"')
>>> type(d) is dict
True
>>> sorted(d.items())
[... | |
doc_21354 | tf.experimental.numpy.linspace(
start, stop, num=50, endpoint=True, retstep=False, dtype=float, axis=0
)
See the NumPy documentation for numpy.linspace. | |
doc_21355 | Timeout in seconds. | |
doc_21356 |
Return the CapStyle for dashed lines. See also set_dash_capstyle. | |
doc_21357 |
Invoked when the WebSocket is closed. If the connection was closed cleanly and a status code or reason phrase was supplied, these values will be available as the attributes self.close_code and self.close_reason. Changed in version 4.0: Added close_code and close_reason attributes. | |
doc_21358 | Open a file in read only mode using the encoding detected by detect_encoding(). New in version 3.2. | |
doc_21359 | The url to redirect to when the nominated object has been successfully deleted. success_url may contain dictionary string formatting, which will be interpolated against the object’s field attributes. For example, you could use success_url="/parent/{parent_id}/" to redirect to a URL composed out of the parent_id field o... | |
doc_21360 | See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorZeros
tf.linalg.LinearOperatorZeros(
num_rows, num_columns=None, batch_shape=None, dtype=None, is_non_singular=False,
is_self_adjoint=True, is_positive_definite=False, is_square=True,
assert_proper_shapes=False, name='LinearOperatorZe... | |
doc_21361 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayCloseV2
tf.raw_ops.TensorArrayCloseV2(
handle, name=None
)
Args
handle A Tensor of type string.
name A name for the operation (optional).
Returns The created Operation. | |
doc_21362 |
Least Angle Regression model a.k.a. LAR Read more in the User Guide. Parameters
fit_interceptbool, default=True
Whether to calculate the intercept for this model. If set to false, no intercept will be used in calculations (i.e. data is expected to be centered).
verbosebool or int, default=False
Sets the ver... | |
doc_21363 |
Find local minima of n-dimensional array. The local minima are defined as connected sets of pixels with equal gray level (plateaus) strictly smaller than the gray levels of all pixels in the neighborhood. Parameters
imagendarray
An n-dimensional array.
selemndarray, optional
A structuring element used to de... | |
doc_21364 |
Add a second y-axis to this Axes. For example if we want to have a second scale for the data plotted on the yaxis. Parameters
location{'top', 'bottom', 'left', 'right'} or float
The position to put the secondary axis. Strings can be 'top' or 'bottom' for orientation='x' and 'right' or 'left' for orientation='y'... | |
doc_21365 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedRelu6
tf.raw_ops.QuantizedRelu6(
features, min_features, max_features, out_type=tf.dtypes.quint8, name=None
)
Args
features A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16.
min_features A Tenso... | |
doc_21366 | Push item on the heap, then pop and return the smallest item from the heap. The combined action runs more efficiently than heappush() followed by a separate call to heappop(). | |
doc_21367 |
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | |
doc_21368 |
Computes the Mean Squared Error between two covariance estimators. (In the sense of the Frobenius norm). Parameters
comp_covarray-like of shape (n_features, n_features)
The covariance to compare with.
norm{“frobenius”, “spectral”}, default=”frobenius”
The type of norm used to compute the error. Available er... | |
doc_21369 | sklearn.metrics.pairwise_distances_chunked(X, Y=None, *, reduce_func=None, metric='euclidean', n_jobs=None, working_memory=None, **kwds) [source]
Generate a distance matrix chunk by chunk with optional reduction. In cases where not all of a pairwise distance matrix needs to be stored at once, this is used to calculat... | |
doc_21370 |
Set the colormap to 'copper'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | |
doc_21371 | A bytes representation of this raster. Returns None for rasters that are not stored in GDAL’s virtual filesystem. | |
doc_21372 | tf.executing_eagerly()
Eager execution is enabled by default and this API returns True in most of cases. However, this API might return False in the following use cases. Executing inside tf.function, unless under tf.init_scope or tf.config.run_functions_eagerly(True) is previously called. Executing inside a transform... | |
doc_21373 | tf.keras.layers.SeparableConvolution1D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.SeparableConv1D, tf.compat.v1.keras.layers.SeparableConvolution1D
tf.keras.layers.SeparableConv1D(
filters, kernel_size, strides=1, padding='valid', data_format=None,
dilation_ra... | |
doc_21374 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyKerasMomentum
tf.raw_ops.ResourceApplyKerasMomentum(
var, accum, lr, grad, momentum, use_locking=False, use_nesterov=False, name=None
)
Set use_nesterov = True if you want to use Nesterov momentum. accum = accum * momentum - lr * grad var +=... | |
doc_21375 |
Abstract base class for custom 1-D array types. pandas will recognize instances of this class as proper arrays with a custom type and will not attempt to coerce them to objects. They may be stored directly inside a DataFrame or Series. Notes The interface includes the following abstract methods that must be implement... | |
doc_21376 |
Attributes
debug_options DebugOptions debug_options
experimental Experimental experimental
inter_op_thread_pool int32 inter_op_thread_pool
output_partition_graphs bool output_partition_graphs
report_tensor_allocations_upon_oom bool report_tensor_allocations_upon_oom
timeout_in_ms ... | |
doc_21377 |
The day of the week with Monday=0, Sunday=6. Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which is denoted by 6. This method is available on both Series with datetime values (using the dt accessor) or DatetimeIndex. Returns
Series or Index
Containin... | |
doc_21378 |
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_21379 | Register the write end of pipe in the event loop. protocol_factory must be a callable returning an asyncio protocol implementation. pipe is file-like object. Return pair (transport, protocol), where transport supports WriteTransport interface and protocol is an object instantiated by the protocol_factory. With Selector... | |
doc_21380 |
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also
set_picker, get_picker, pickable | |
doc_21381 |
Generates a cube-shaped structuring element. This is the 3D equivalent of a square. Every pixel along the perimeter has a chessboard distance no greater than radius (radius=floor(width/2)) pixels. Parameters
widthint
The width, height and depth of the cube. Returns
selemndarray
A structuring element con... | |
doc_21382 | See Migration guide for more details. tf.compat.v1.raw_ops.SpaceToDepth
tf.raw_ops.SpaceToDepth(
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 mo... | |
doc_21383 |
Remove known noisy instructions. Several instructions in the CPython interpreter are rather noisy. These instructions involve unicode to dictionary lookups which Python uses to map variable names. FunctionCounts is generally a content agnostic container, however this is sufficiently important for obtaining reliable r... | |
doc_21384 | Create a shared queue.Queue object and return a proxy for it. | |
doc_21385 | The child’s exit code. This will be None if the process has not yet terminated. A negative value -N indicates that the child was terminated by signal N. | |
doc_21386 | If key is in the context, returns its value. Otherwise inserts key with a value of default and returns default. | |
doc_21387 | Write the snapshot into a file. Use load() to reload the snapshot. | |
doc_21388 |
Subtract arguments, element-wise. Parameters
x1, x2array_like
The arrays to be subtracted from each other. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output).
outndarray, None, or tuple of ndarray and None, optional
A location into which the result ... | |
doc_21389 | See Migration guide for more details. tf.compat.v1.estimator.CheckpointSaverHook, tf.compat.v1.train.CheckpointSaverHook
tf.estimator.CheckpointSaverHook(
checkpoint_dir, save_secs=None, save_steps=None, saver=None,
checkpoint_basename='model.ckpt', scaffold=None, listeners=None,
save_graph_def=True
)
... | |
doc_21390 | Make an iterator that returns object over and over again. Runs indefinitely unless the times argument is specified. Used as argument to map() for invariant parameters to the called function. Also used with zip() to create an invariant part of a tuple record. Roughly equivalent to: def repeat(object, times=None):
# ... | |
doc_21391 |
Number each item in each group from 0 to the length of that group - 1. Essentially this is equivalent to
self.apply(lambda x: pd.Series(np.arange(len(x)), x.index))
Parameters
ascending:bool, default True
If False, number in reverse, from length of group - 1 to 0. Returns
Series
Sequence number of each... | |
doc_21392 | tf.sign Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.sign, tf.compat.v1.sign
tf.math.sign(
x, name=None
)
y = sign(x) = -1 if x < 0; 0 if x == 0; 1 if x > 0. For complex numbers, y = sign(x) = x / |x| if x != 0, otherwise y = 0. Example usage:
# real number
tf.math.sign([... | |
doc_21393 |
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_21394 | See Migration guide for more details. tf.compat.v1.raw_ops.DenseToDenseSetOperation
tf.raw_ops.DenseToDenseSetOperation(
set1, set2, set_operation, validate_indices=True, name=None
)
See SetOperationOp::SetOperationFromContext for values of set_operation. Output result is a SparseTensor represented by result_ind... | |
doc_21395 |
Peak to peak (maximum - minimum) value along a given axis. Refer to numpy.ptp for full documentation. See also numpy.ptp
equivalent function | |
doc_21396 |
Return whether a and b are members of the same set. | |
doc_21397 | See Migration guide for more details. tf.compat.v1.raw_ops.EuclideanNorm
tf.raw_ops.EuclideanNorm(
input, axis, keep_dims=False, name=None
)
Reduces input along the dimensions given in axis. Unless keep_dims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keep_dims is true, the reduced... | |
doc_21398 |
Set the size of the buffer used in ufuncs. Parameters
sizeint
Size of buffer. | |
doc_21399 | Repr.maxlist
Repr.maxtuple
Repr.maxset
Repr.maxfrozenset
Repr.maxdeque
Repr.maxarray
Limits on the number of entries represented for the named object type. The default is 4 for maxdict, 5 for maxarray, and 6 for the others. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.