_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_5300 | tf.compat.v1.scatter_div(
ref, indices, updates, use_locking=False, name=None
)
This operation computes # Scalar indices
ref[indices, ...] /= updates[...]
# Vector indices (for each i)
ref[indices[i], ...] /= updates[i, ...]
# High rank indices (for each i, ..., j)
ref[indices[i, ..., j], ...] /= updates[i, ...,... | |
doc_5301 | Return True if the object is a bound method written in Python. | |
doc_5302 | The content-type header uploaded with the file (e.g. text/plain or application/pdf). Like any data supplied by the user, you shouldn’t trust that the uploaded file is actually this type. You’ll still need to validate that the file contains the content that the content-type header claims – “trust but verify.” | |
doc_5303 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalDirectedInterleaveDataset
tf.raw_ops.ExperimentalDirectedInterleaveDataset(
selector_input_dataset, data_input_datasets, output_types, output_shapes,
name=None
)
Args
selector_input_dataset A Tensor of type variant. A dataset of ... | |
doc_5304 | socket.sendto(bytes, flags, address)
Send data to the socket. The socket should not be connected to a remote socket, since the destination socket is specified by address. The optional flags argument has the same meaning as for recv() above. Return the number of bytes sent. (The format of address depends on the addres... | |
doc_5305 |
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_5306 | Platform dependent, but if non-zero, uniquely identifies the file for a given value of st_dev. Typically: the inode number on Unix, the file index on Windows | |
doc_5307 |
Removes the pruning reparameterization from a module and the pruning method from the forward hook. 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 it... | |
doc_5308 |
Class Variables
BROADCAST 4
PER_HOST_V1 2
PER_HOST_V2 3
PER_SHARD_V1 1
SLICED 5 | |
doc_5309 | Height of the terminal window in characters. | |
doc_5310 | Start recording the vertices of a polygon. Current turtle position is first vertex of polygon. | |
doc_5311 | Holds a list of the line strings (decoded using UTF-8) received from the client. The lines have their "\r\n" line ending translated to "\n". | |
doc_5312 |
Context manager for using style settings temporarily. Parameters
stylestr, dict, Path or list
A style specification. Valid options are:
str The name of a style or a path/URL to a style file. For a list of available style names, see style.available.
dict Dictionary with valid key/value pairs for matplotlib.r... | |
doc_5313 | See Migration guide for more details. tf.compat.v1.raw_ops.ParseExampleV2
tf.raw_ops.ParseExampleV2(
serialized, names, sparse_keys, dense_keys, ragged_keys, dense_defaults,
num_sparse, sparse_types, ragged_value_types, ragged_split_types, dense_shapes,
name=None
)
Args
serialized A Tensor of ty... | |
doc_5314 |
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_5315 |
Total size of broadcasted result. Examples >>> x = np.array([1, 2, 3])
>>> y = np.array([[4], [5], [6]])
>>> b = np.broadcast(x, y)
>>> b.size
9 | |
doc_5316 |
Draw samples from a Poisson distribution. The Poisson distribution is the limit of the binomial distribution for large N. Parameters
lamfloat or array_like of floats
Expected number of events occurring in a fixed-time interval, must be >= 0. A sequence must be broadcastable over the requested size.
sizeint or... | |
doc_5317 | tf.compat.v1.keras.layers.BatchNormalization(
axis=-1, momentum=0.99, epsilon=0.001, center=True, scale=True,
beta_initializer='zeros', gamma_initializer='ones',
moving_mean_initializer='zeros',
moving_variance_initializer='ones', beta_regularizer=None,
gamma_regularizer=None, beta_constraint=None, ... | |
doc_5318 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_5319 |
Set the hatching pattern hatch can be one of: / - diagonal hatching
\ - back diagonal
| - vertical
- - horizontal
+ - crossed
x - crossed diagonal
o - small circle
O - large circle
. - dots
* - stars
Letters can be combined, in which case all the specified hatchings are done. If same letter repea... | |
doc_5320 |
Return a new array of given shape and type, filled with zeros. Parameters
shapeint or tuple of ints
Shape of the new array, e.g., (2, 3) or 2.
dtypedata-type, optional
The desired data-type for the array, e.g., numpy.int8. Default is numpy.float64.
order{‘C’, ‘F’}, optional, default: ‘C’
Whether to stor... | |
doc_5321 | Either an iterable of 2-tuples to use as choices for this field, enumeration choices, or a callable that returns such an iterable. This argument accepts the same formats as the choices argument to a model field. See the model field reference documentation on choices for more details. If the argument is a callable, it i... | |
doc_5322 | Reference pixel alphas into a 2d array pixels_alpha(Surface) -> array Create a new 2D array that directly references the alpha values (degree of transparency) 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 32-bit Su... | |
doc_5323 |
Construct an ndarray that allows field access using attributes. Arrays may have a data-types containing fields, analogous to columns in a spread sheet. An example is [(x, int), (y, float)], where each entry in the array is a pair of (int, float). Normally, these attributes are accessed using dictionary lookups such a... | |
doc_5324 |
For each element in self, return a list of the lines in the element, breaking at line boundaries. See also char.splitlines | |
doc_5325 |
Fit label encoder. Parameters
yarray-like of shape (n_samples,)
Target values. Returns
selfreturns an instance of self. | |
doc_5326 |
Return the group id. | |
doc_5327 |
Raise this error instead of NotImplementedError for abstract methods while keeping compatibility with Python 2 and Python 3. | |
doc_5328 |
Compute the eigenvalues of the inertia tensor of the image. The inertia tensor measures covariance of the image intensity along the image axes. (See inertia_tensor.) The relative magnitude of the eigenvalues of the tensor is thus a measure of the elongation of a (bright) object in the image. Parameters
imagearray... | |
doc_5329 |
Return the sum along diagonals of the array. Refer to numpy.trace for full documentation. See also numpy.trace
equivalent function | |
doc_5330 | turtle.resetscreen()
Reset all Turtles on the Screen to their initial state. Note This TurtleScreen method is available as a global function only under the name resetscreen. The global function reset is another one derived from the Turtle method reset. | |
doc_5331 | Using the file after calling flush() or close() on the MMDF instance may yield unpredictable results or raise an exception. | |
doc_5332 |
Remove all items from the ParameterDict. | |
doc_5333 | The path part of the URL after root_path. This is the path used for routing within the application. | |
doc_5334 |
[Deprecated] Notes Deprecated since version 3.5: | |
doc_5335 | class sklearn.ensemble.AdaBoostClassifier(base_estimator=None, *, n_estimators=50, learning_rate=1.0, algorithm='SAMME.R', random_state=None) [source]
An AdaBoost classifier. An AdaBoost [1] classifier is a meta-estimator that begins by fitting a classifier on the original dataset and then fits additional copies of t... | |
doc_5336 | A data structure of functions to call to pass extra context values when rendering templates, in the format {scope: [functions]}. The scope key is the name of a blueprint the functions are active for, or None for all requests. To register a function, use the context_processor() decorator. This data structure is internal... | |
doc_5337 |
An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctyp... | |
doc_5338 |
Connect a callback function with an event. This should be used in lieu of figure.canvas.mpl_connect since this function stores callback ids for later clean up. | |
doc_5339 |
Return the axes_locator. | |
doc_5340 | Send the signal number to the subprocess, as in subprocess.Popen.send_signal(). | |
doc_5341 |
Generate indices to split data into training and test set. Parameters
Xarray-like of shape (n_samples, n_features)
Training data, where n_samples is the number of samples and n_features is the number of features.
yarray-like of shape (n_samples,), default=None
The target variable for supervised learning pro... | |
doc_5342 | Set the boundary parameter of the Content-Type header to boundary. set_boundary() will always quote boundary if necessary. A HeaderParseError is raised if the message object has no Content-Type header. Note that using this method is subtly different from deleting the old Content-Type header and adding a new one with th... | |
doc_5343 | Returns the integer index of item within its parent’s list of children. | |
doc_5344 | See Migration guide for more details. tf.compat.v1.raw_ops.SetSize
tf.raw_ops.SetSize(
set_indices, set_values, set_shape, validate_indices=True, name=None
)
Input set is a SparseTensor represented by set_indices, set_values, and set_shape. The last dimension contains values in a set, duplicates are allowed but ... | |
doc_5345 | Sets a cookie. A warning is raised if the size of the cookie header exceeds max_cookie_size, but the header will still be set. Parameters
key (str) – the key (name) of the cookie to be set.
value (str) – the value of the cookie.
max_age (Optional[Union[datetime.timedelta, int]]) – should be a number of seconds, o... | |
doc_5346 |
Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each day of the month. For example, 1, 15, 30. Mark every day in bymonthday; bymonthday can be an int or sequence. Default is to tick every day of the month: bymonthday=range(1, 32). | |
doc_5347 | Marks a function as responder. Decorate a function with it and it will automatically call the return value as WSGI application. Example: @responder
def application(environ, start_response):
return Response('Hello World!')
Parameters
f (Callable[[...], WSGIApplication]) – Return type
WSGIApplication | |
doc_5348 | When set to a value other than None, this variable defines the default value for the dir argument to the functions defined in this module. If tempdir is None (the default) at any call to any of the above functions except gettempprefix() it is initialized following the algorithm described in gettempdir(). | |
doc_5349 |
Set multiple properties at once. Supported properties are
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha scalar or None
animated bool
antialiased bool
clip_box Bbox
clip_on bool
clip_path Patch or (Path, Tra... | |
doc_5350 | This is a possible value for the flags argument in setxattr(). It indicates the operation must create an attribute. | |
doc_5351 |
Applies the element-wise function: ELU(x)={x, if x>0α∗(exp(x)−1), if x≤0\text{ELU}(x) = \begin{cases} x, & \text{ if } x > 0\\ \alpha * (\exp(x) - 1), & \text{ if } x \leq 0 \end{cases}
Parameters
alpha – the α\alpha value for the ELU formulation. Default: 1.0
inplace – can optionally do the operation in-pl... | |
doc_5352 | sklearn.metrics.top_k_accuracy_score(y_true, y_score, *, k=2, normalize=True, sample_weight=None, labels=None) [source]
Top-k Accuracy classification score. This metric computes the number of times where the correct label is among the top k labels predicted (ranked by predicted scores). Note that the multilabel case ... | |
doc_5353 | Returns the number of non-fixed hyperparameters of the kernel. | |
doc_5354 |
Bases: matplotlib.ticker.MaxNLocator Determine the tick locations for logit axes Place ticks on the logit locations Parameters
nbinsint or 'auto', optional
Number of ticks. Only used if minor is False.
minorbool, default: False
Indicate if this locator is for minor ticks or not. propertyminor
nons... | |
doc_5355 | Remove all header tuples for key and add a new one. The newly added key either appears at the end of the list if there was no entry or replaces the first one. Keyword arguments can specify additional parameters for the header value, with underscores converted to dashes. See add() for more information. Changelog Change... | |
doc_5356 | sklearn.utils.estimator_checks.check_estimator(Estimator, generate_only=False) [source]
Check if estimator adheres to scikit-learn conventions. This estimator will run an extensive test-suite for input validation, shapes, etc, making sure that the estimator complies with scikit-learn conventions as detailed in Rollin... | |
doc_5357 | tf.compat.v1.data.experimental.make_csv_dataset(
file_pattern, batch_size, column_names=None, column_defaults=None,
label_name=None, select_columns=None, field_delim=',',
use_quote_delim=True, na_value='', header=True, num_epochs=None,
shuffle=True, shuffle_buffer_size=10000, shuffle_seed=None,
pref... | |
doc_5358 | See Migration guide for more details. tf.compat.v1.raw_ops.InplaceSub
tf.raw_ops.InplaceSub(
x, i, v, name=None
)
Computes y = x; y[i, :] -= v; return y.
Args
x A Tensor. A Tensor of type T.
i A Tensor of type int32. A vector. Indices into the left-most dimension of x.
v A Tensor. Must have ... | |
doc_5359 | tf.keras.applications.resnet_v2.ResNet101V2 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.ResNet101V2, tf.compat.v1.keras.applications.resnet_v2.ResNet101V2
tf.keras.applications.ResNet101V2(
include_top=True, weights='imagenet', input_tensor=None,
input_sh... | |
doc_5360 |
Return number of unique elements in the group. Returns
Series
Number of unique values within each group. | |
doc_5361 | Return a time.struct_time such as returned by time.localtime(). The hours, minutes and seconds are 0, and the DST flag is -1. d.timetuple() is equivalent to: time.struct_time((d.year, d.month, d.day, 0, 0, 0, d.weekday(), yday, -1))
where yday = d.toordinal() - date(d.year, 1, 1).toordinal() + 1 is the day number with... | |
doc_5362 |
Bases: matplotlib.backend_bases.GraphicsContextBase get_rgb()[source]
Return a tuple of three or four floats from 0-1.
restore()[source]
Restore the graphics context from the stack - needed only for backends that save graphics contexts on a stack.
set_alpha(alpha)[source]
Set the alpha value used for ... | |
doc_5363 |
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters
valuesarray
The input v... | |
doc_5364 |
Reduce X to the selected features. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
X_rarray of shape [n_samples, n_selected_features]
The input samples with only the selected features. | |
doc_5365 | Return the largest number representable in the given context (or in the current thread’s context if no context is given) that is smaller than the given operand. | |
doc_5366 |
Fill NA/NaN values using the specified method. Parameters
value:scalar, dict, Series, or DataFrame
Value to use to fill holes (e.g. 0), alternately a dict/Series/DataFrame of values specifying which value to use for each index (for a Series) or column (for a DataFrame). Values not in the dict/Series/DataFrame w... | |
doc_5367 | Selects TLS version 1.2 as the channel encryption protocol. This is the most modern version, and probably the best choice for maximum protection, if both sides can speak it. Available only with openssl version 1.0.1+. New in version 3.4. Deprecated since version 3.6: OpenSSL has deprecated all version specific proto... | |
doc_5368 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseSlice
tf.raw_ops.SparseSlice(
indices, values, shape, start, size, name=None
)
For example, if the input is input_tensor = shape = [2, 7]
[ a d e ]
[b c ]
Graphically the output tensors are: sparse_slice([0, 0], [2, 4]) = shape = [2... | |
doc_5369 | class sklearn.cluster.MeanShift(*, bandwidth=None, seeds=None, bin_seeding=False, min_bin_freq=1, cluster_all=True, n_jobs=None, max_iter=300) [source]
Mean shift clustering using a flat kernel. Mean shift clustering aims to discover “blobs” in a smooth density of samples. It is a centroid-based algorithm, which work... | |
doc_5370 | See Migration guide for more details. tf.compat.v1.raw_ops.MultiDeviceIterator
tf.raw_ops.MultiDeviceIterator(
devices, shared_name, container, output_types, output_shapes, name=None
)
Args
devices A list of strings that has length >= 1. A list of devices the iterator works across.
shared_name A s... | |
doc_5371 | tf.matmul Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.matmul, tf.compat.v1.matmul
tf.linalg.matmul(
a, b, transpose_a=False, transpose_b=False, adjoint_a=False, adjoint_b=False,
a_is_sparse=False, b_is_sparse=False, name=None
)
The inputs must, following any transpo... | |
doc_5372 | Parses an XML section into an element tree. source is a filename or file object containing XML data. parser is an optional parser instance. If not given, the standard XMLParser parser is used. Returns an ElementTree instance. | |
doc_5373 |
The week ordinal of the year. Deprecated since version 1.1.0. Series.dt.weekofyear and Series.dt.week have been deprecated. Please use Series.dt.isocalendar().week instead. | |
doc_5374 | Open a resource file relative to root_path for reading. For example, if the file schema.sql is next to the file app.py where the Flask app is defined, it can be opened with: with app.open_resource("schema.sql") as f:
conn.executescript(f.read())
Parameters
resource (str) – Path to the resource relative to root... | |
doc_5375 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomUniform
tf.raw_ops.StatelessRandomUniform(
shape, seed, dtype=tf.dtypes.float32, name=None
)
The generated values follow a uniform distribution in the range [0, 1). The lower bound 0 is included in the range, while the upper bound 1 is exc... | |
doc_5376 | Inserts subelement at the given position in this element. Raises TypeError if subelement is not an Element. | |
doc_5377 | This is the "example" module.
The example module supplies one function, factorial(). For example,
>>> factorial(5)
120
"""
def factorial(n):
"""Return the factorial of n, an exact integer >= 0.
>>> [factorial(n) for n in range(6)]
[1, 1, 2, 6, 24, 120]
>>> factorial(30)
265252859812191058636308... | |
doc_5378 |
Handler for Tuple. Parameters
ndivideint, default: 1
The number of sections to divide the legend area into. If None, use the length of the input tuple.
padfloat, default: rcParams["legend.borderpad"] (default: 0.4)
Padding in units of fraction of font size. **kwargs
Keyword arguments forwarded to HandlerB... | |
doc_5379 | See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.random_zoom
tf.keras.preprocessing.image.random_zoom(
x, zoom_range, row_axis=1, col_axis=2, channel_axis=0,
fill_mode='nearest', cval=0.0, interpolation_order=1
)
Arguments
x Input tensor. Must be 3D.
zoom_range Tupl... | |
doc_5380 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchMatMul
tf.raw_ops.BatchMatMul(
x, y, adj_x=False, adj_y=False, name=None
)
Multiplies all slices of Tensor x and y (each slice can be viewed as an element of a batch), and arranges the individual results in a single output tensor of the same batch s... | |
doc_5381 |
A transformer model. User is able to modify the attributes as needed. The architecture is based on the paper “Attention Is All You Need”. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural ... | |
doc_5382 |
Number of array dimensions. Examples >>> x = np.array([1, 2, 3])
>>> x.ndim
1
>>> y = np.zeros((2, 3, 4))
>>> y.ndim
3 | |
doc_5383 | Serialize obj to a JSON formatted str using this conversion table. The arguments have the same meaning as in dump(). Note Keys in key/value pairs of JSON are always of the type str. When a dictionary is converted into JSON, all the keys of the dictionary are coerced to strings. As a result of this, if a dictionary is ... | |
doc_5384 |
Show all figures. show blocks by calling mainloop if block is True, or if it is None and we are neither in IPython's %pylab mode, nor in interactive mode. | |
doc_5385 | See Migration guide for more details. tf.compat.v1.raw_ops.DatasetToTFRecord
tf.raw_ops.DatasetToTFRecord(
input_dataset, filename, compression_type, name=None
)
Args
input_dataset A Tensor of type variant. A variant tensor representing the dataset to write.
filename A Tensor of type string. A sca... | |
doc_5386 |
Attributes
components repeated TensorInfo components
type_spec TypeSpecProto type_spec | |
doc_5387 |
Create a scatter plot. Parameters
xs, ysarray-like
The data positions.
zsfloat or array-like, default: 0
The z-positions. Either an array of the same length as xs and ys or a single value to place all points in the same plane.
zdir{'x', 'y', 'z', '-x', '-y', '-z'}, default: 'z'
The axis direction for th... | |
doc_5388 | A mixin that can be used to display a list of objects. If paginate_by is specified, Django will paginate the results returned by this. You can specify the page number in the URL in one of two ways:
Use the page parameter in the URLconf. For example, this is what your URLconf might look like: path('objects/page<int:pa... | |
doc_5389 |
Return self as a flattened ndarray. Equivalent to np.asarray(x).ravel() Parameters
None
Returns
retndarray
self, 1-D, as an ndarray Examples >>> x = np.matrix(np.arange(12).reshape((3,4))); x
matrix([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11]])
>>> x.getA1()
array([ 0, 1, 2, ... | |
doc_5390 |
Bases: ValueError | |
doc_5391 | String that uniquely identifies the type of the filesystem that contains the file. | |
doc_5392 | Returns a ModelFormSet class for use on the changelist page if list_editable is used. To use a custom formset, for example: from django.forms import BaseModelFormSet
class MyAdminFormSet(BaseModelFormSet):
pass
class MyModelAdmin(admin.ModelAdmin):
def get_changelist_formset(self, request, **kwargs):
... | |
doc_5393 | Add a function to be called after tearDown() to cleanup resources used during the test. Functions will be called in reverse order to the order they are added (LIFO). They are called with any arguments and keyword arguments passed into addCleanup() when they are added. If setUp() fails, meaning that tearDown() is not ca... | |
doc_5394 | Boolean flag that indicates if a field is used to back another non-hidden field’s functionality (e.g. the content_type and object_id fields that make up a GenericForeignKey). The hidden flag is used to distinguish what constitutes the public subset of fields on the model from all the fields on the model. Note Options.... | |
doc_5395 | Raised when a directory operation (such as os.listdir()) is requested on something which is not a directory. Corresponds to errno ENOTDIR. | |
doc_5396 |
return a list of final CPU baseline feature names | |
doc_5397 | See Migration guide for more details. tf.compat.v1.raw_ops.RandomUniform
tf.raw_ops.RandomUniform(
shape, dtype, seed=0, seed2=0, name=None
)
The generated values follow a uniform distribution in the range [0, 1). The lower bound 0 is included in the range, while the upper bound 1 is excluded.
Args
shape ... | |
doc_5398 |
True if this transform has a corresponding inverse transform. | |
doc_5399 | Set when creating the request object. If True, reading from the request body will cause a RuntimeException. Useful to prevent modifying the stream from middleware. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.