_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_28200 |
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_28201 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_string
tf.compat.v1.flags.DEFINE_string(
name, default, help, flag_values=_flagvalues.FLAGS, **args
) | |
doc_28202 | Set the panel’s user pointer to obj. This is used to associate an arbitrary piece of data with the panel, and can be any Python object. | |
doc_28203 | Return an installation path corresponding to the path name, from the install scheme named scheme. name has to be a value from the list returned by get_path_names(). sysconfig stores installation paths corresponding to each path name, for each platform, with variables to be expanded. For instance the stdlib path for the... | |
doc_28204 | Create a new WSGI server listening on host and port, accepting connections for app. The return value is an instance of the supplied server_class, and will process requests using the specified handler_class. app must be a WSGI application object, as defined by PEP 3333. Example usage: from wsgiref.simple_server import m... | |
doc_28205 |
Execute a call_function node and return the result. Parameters
target (Target) – The call target for this node. See Node for details on semantics
args (Tuple) – Tuple of positional args for this invocation
kwargs (Dict) – Dict of keyword arguments for this invocation Return
Any: The value returned by the f... | |
doc_28206 | Like bind() but you can pass it an WSGI environment and it will fetch the information from that dictionary. Note that because of limitations in the protocol there is no way to get the current subdomain and real server_name from the environment. If you don’t provide it, Werkzeug will use SERVER_NAME and SERVER_PORT (or ... | |
doc_28207 | tf.keras.layers.GlobalMaxPooling3D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.GlobalMaxPool3D, tf.compat.v1.keras.layers.GlobalMaxPooling3D
tf.keras.layers.GlobalMaxPool3D(
data_format=None, **kwargs
)
Arguments
data_format A string, one of channels_last... | |
doc_28208 |
x-displacement of the part from the origin. | |
doc_28209 | With one argument, return the natural logarithm of x (to base e). With two arguments, return the logarithm of x to the given base, calculated as log(x)/log(base). | |
doc_28210 | See Migration guide for more details. tf.compat.v1.lbeta, tf.compat.v1.math.lbeta
tf.math.lbeta(
x, name=None
)
Given one-dimensional $z = [z_1,...,z_K]$, we define $$Beta(z) = \frac{\prod_j \Gamma(z_j)}{\Gamma(\sum_j z_j)},$$ where $\Gamma$ is the gamma function. And for $n + 1$ dimensional $x$ with shape $[N... | |
doc_28211 | See Migration guide for more details. tf.compat.v1.app.flags.MultiFlag
tf.compat.v1.flags.MultiFlag(
*args, **kwargs
)
The value of such a flag is a list that contains the individual values from all the appearances of that flag on the command-line. See the doc for Flag for most behavior of this class. Only diffe... | |
doc_28212 | The HList widget can be used to display any data that have a hierarchical structure, for example, file system directory trees. The list entries are indented and connected by branch lines according to their places in the hierarchy. | |
doc_28213 | See Migration guide for more details. tf.compat.v1.train.CheckpointManager
tf.train.CheckpointManager(
checkpoint, directory, max_to_keep, keep_checkpoint_every_n_hours=None,
checkpoint_name='ckpt', step_counter=None, checkpoint_interval=None,
init_fn=None
)
Example usage: import tensorflow as tf
checkpo... | |
doc_28214 | exception http.cookies.CookieError
Exception failing because of RFC 2109 invalidity: incorrect attributes, incorrect Set-Cookie header, etc.
class http.cookies.BaseCookie([input])
This class is a dictionary-like object whose keys are strings and whose values are Morsel instances. Note that upon setting a key to... | |
doc_28215 | Return centered in a string of length width. Padding is done using the specified fillchar (default is an ASCII space). The original string is returned if width is less than or equal to len(s). | |
doc_28216 | The primary API method. It takes a format string and an arbitrary set of positional and keyword arguments. It is just a wrapper that calls vformat(). Changed in version 3.7: A format string argument is now positional-only. | |
doc_28217 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_28218 | See Migration guide for more details. tf.compat.v1.raw_ops.InitializeTableFromTextFileV2
tf.raw_ops.InitializeTableFromTextFileV2(
table_handle, filename, key_index, value_index, vocab_size=-1,
delimiter='\t', name=None
)
It inserts one key-value pair into the table for each line of the file. The key and val... | |
doc_28219 | This function handles the exception described by info (a 3-tuple containing the result of sys.exc_info()), formatting its traceback as text and returning the result as a string. The optional argument context is the number of lines of context to display around the current line of source code in the traceback; this defau... | |
doc_28220 | Convert params into an XML-RPC request. or into a response if methodresponse is true. params can be either a tuple of arguments or an instance of the Fault exception class. If methodresponse is true, only a single value can be returned, meaning that params must be of length 1. encoding, if supplied, is the encoding to ... | |
doc_28221 |
Compute surface area, given vertices & triangular faces Parameters
verts(V, 3) array of floats
Array containing (x, y, z) coordinates for V unique mesh vertices.
faces(F, 3) array of ints
List of length-3 lists of integers, referencing vertex coordinates as provided in verts Returns
areafloat
Surfac... | |
doc_28222 |
Total bytes consumed by the elements of the array. Notes Does not include memory consumed by non-element attributes of the array object. Examples >>> x = np.zeros((3,5,2), dtype=np.complex128)
>>> x.nbytes
480
>>> np.prod(x.shape) * x.itemsize
480 | |
doc_28223 | The UUID was not generated in a multiprocessing-safe way. | |
doc_28224 | Run the cmd shell command. The limit argument sets the buffer limit for StreamReader wrappers for Process.stdout and Process.stderr (if subprocess.PIPE is passed to stdout and stderr arguments). Return a Process instance. See the documentation of loop.subprocess_shell() for other parameters. Important It is the applic... | |
doc_28225 |
Return an array formed from the elements of a at the given indices. Refer to numpy.take for full documentation. See also numpy.take
equivalent function | |
doc_28226 |
Call self as a function. | |
doc_28227 | tf.compat.v1.scatter_min(
ref, indices, updates, use_locking=False, name=None
)
This operation computes # Scalar indices
ref[indices, ...] = min(ref[indices, ...], updates[...])
# Vector indices (for each i)
ref[indices[i], ...] = min(ref[indices[i], ...], updates[i, ...])
# High rank indices (for each i, ..., j... | |
doc_28228 |
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 or aa bool or None
capstyle CapStyle or {'butt', 'projecting', 'r... | |
doc_28229 | Execute end of drag-and-drop functions. | |
doc_28230 | Transform a method of a class into a property whose value is computed once and then cached as a normal attribute for the life of the instance. Similar to property(), with the addition of caching. Useful for expensive computed properties of instances that are otherwise effectively immutable. Example: class DataSet:
... | |
doc_28231 |
Write an array to an NPY file, including a header. If the array is neither C-contiguous nor Fortran-contiguous AND the file_like object is not a real file object, this function will have to copy data in memory. Parameters
fpfile_like object
An open, writable file object, or similar object with a .write() method... | |
doc_28232 |
New view of array with the same data. Note Passing None for dtype is different from omitting the parameter, since the former invokes dtype(None) which is an alias for dtype('float_'). Parameters
dtypedata-type or ndarray sub-class, optional
Data-type descriptor of the returned view, e.g., float32 or int16. Om... | |
doc_28233 | Instance of the class to check the password. This will default to default_token_generator, it’s an instance of django.contrib.auth.tokens.PasswordResetTokenGenerator. | |
doc_28234 |
Return the underlying artist that actually defines some properties (e.g., color) of this artist. | |
doc_28235 |
Scalar method identical to the corresponding array attribute. Please see ndarray.conjugate. | |
doc_28236 | For backwards compatibility. Calls the run() method. | |
doc_28237 | tf.summary.flush(
writer=None, name=None
)
This operation blocks until that finishes.
Args
writer The tf.summary.SummaryWriter resource to flush. The thread default will be used if this parameter is None. Otherwise a tf.no_op is returned.
name A name for the operation (optional).
Returns T... | |
doc_28238 |
Return the truth value of (x1 > x2) element-wise. Parameters
x1, x2array_like
Input arrays. 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 is stored. If p... | |
doc_28239 | Decode the Base16 encoded bytes-like object or ASCII string s and return the decoded bytes. Optional casefold is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is False. A binascii.Error is raised if s is incorrectly padded or if there are non-alphabet characte... | |
doc_28240 | The domain match rule that the session cookie will be valid for. If not set, the cookie will be valid for all subdomains of SERVER_NAME. If False, the cookie’s domain will not be set. Default: None | |
doc_28241 |
Call self as a function. | |
doc_28242 | Inode protection mode. | |
doc_28243 | copy.copy(x)
Return a shallow copy of x.
copy.deepcopy(x[, memo])
Return a deep copy of x.
exception copy.Error
Raised for module specific errors.
The difference between shallow and deep copying is only relevant for compound objects (objects that contain other objects, like lists or class instances): A... | |
doc_28244 | tf.compat.v1.estimator.BaselineClassifier(
model_dir=None, n_classes=2, weight_column=None, label_vocabulary=None,
optimizer='Ftrl', config=None,
loss_reduction=tf.compat.v1.losses.Reduction.SUM
)
This classifier ignores feature values and will learn to predict the average value of each label. For single-l... | |
doc_28245 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_alias
tf.compat.v1.flags.DEFINE_alias(
name, original_name, flag_values=_flagvalues.FLAGS, module_name=None
)
Args
name str, the flag name.
original_name str, the original flag name.
flag_values FlagValues, the FlagValues in... | |
doc_28246 |
Helper decorator for implementing module-level __getattr__ as a class. This decorator must be used at the module toplevel as follows: @caching_module_getattr
class __getattr__: # The class *must* be named ``__getattr__``.
@property # Only properties are taken into account.
def name(self): ...
The __getattr... | |
doc_28247 |
Return the underlying artist that actually defines some properties (e.g., color) of this artist. | |
doc_28248 |
Control behavior of major tick locators. Because the locator is involved in autoscaling, autoscale_view is called automatically after the parameters are changed. Parameters
axis{'both', 'x', 'y'}, default: 'both'
The axis on which to operate.
tightbool or None, optional
Parameter passed to autoscale_view. D... | |
doc_28249 | Alias for dim() | |
doc_28250 |
Draw a filled black rectangle from (x1, y1) to (x2, y2). | |
doc_28251 | Store a file in line mode. cmd should be an appropriate STOR command (see storbinary()). Lines are read until EOF from the file object fp (opened in binary mode) using its readline() method to provide the data to be stored. callback is an optional single parameter callable that is called on each line after it is sent. | |
doc_28252 | See Migration guide for more details. tf.compat.v1.SparseFeature, tf.compat.v1.io.SparseFeature
tf.io.SparseFeature(
index_key, value_key, dtype, size, already_sorted=False
)
Note, preferably use VarLenFeature (possibly in combination with a SequenceExample) in order to parse out SparseTensors instead of SparseF... | |
doc_28253 | Parameters
x – a number or a pair/vector of numbers or a turtle instance
y – a number if x is a number, else None
Return the angle between the line from turtle position to position specified by (x,y), the vector or the other turtle. This depends on the turtle’s start orientation which depends on the mode - “st... | |
doc_28254 |
Internal event handler to draw the cursor when the mouse moves. | |
doc_28255 |
Solve a linear matrix equation, or system of linear scalar equations. Computes the “exact” solution, x, of the well-determined, i.e., full rank, linear matrix equation ax = b. Parameters
a(…, M, M) array_like
Coefficient matrix.
b{(…, M,), (…, M, K)}, array_like
Ordinate or “dependent variable” values. R... | |
doc_28256 | Underlying file descriptor. | |
doc_28257 |
Abstract base class for classes used to interpolate on a triangular grid. Derived classes implement the following methods:
__call__(x, y), where x, y are array-like point coordinates of the same shape, and that returns a masked array of the same shape containing the interpolated z-values.
gradient(x, y), where x, ... | |
doc_28258 |
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_28259 | A string describing the arbitrary arguments passed to the command. The string is used in the usage text and error messages of the command. Defaults to 'label'. | |
doc_28260 | See Migration guide for more details. tf.compat.v1.keras.models.save_model
tf.keras.models.save_model(
model, filepath, overwrite=True, include_optimizer=True, save_format=None,
signatures=None, options=None, save_traces=True
)
See the Serialization and Saving guide for details. Usage:
model = tf.keras.Sequ... | |
doc_28261 |
Determine subpixel position of corners. A statistical test decides whether the corner is defined as the intersection of two edges or a single peak. Depending on the classification result, the subpixel corner location is determined based on the local covariance of the grey-values. If the significance level for either ... | |
doc_28262 | tf.cos Compat aliases for migration See Migration guide for more details. tf.compat.v1.cos, tf.compat.v1.math.cos
tf.math.cos(
x, name=None
)
Given an input tensor, this function computes cosine of every element in the tensor. Input range is (-inf, inf) and output range is [-1,1]. If input lies outside the bound... | |
doc_28263 |
Fit the model according to the given training data. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples is the number of samples and n_features is the number of features.
yarray-like of shape (n_samples,)
Target vector relative to X.
sample_weightarray... | |
doc_28264 | See torch.erfinv() | |
doc_28265 | Use RPOP authentication (similar to UNIX r-commands) to log into POP3 server. | |
doc_28266 |
Called when this tool gets used. This method is called by ToolManager.trigger_tool. Parameters
eventEvent
The canvas event that caused this tool to be called.
senderobject
Object that requested the tool to be triggered.
dataobject
Extra data. | |
doc_28267 | See Migration guide for more details. tf.compat.v1.sparse.mask, tf.compat.v1.sparse_mask
tf.sparse.mask(
a, mask_indices, name=None
)
Given an IndexedSlices instance a, returns another IndexedSlices that contains a subset of the slices of a. Only the slices at indices not specified in mask_indices are returned. ... | |
doc_28268 |
Return whether the artist is to be rasterized. | |
doc_28269 | 'DEFAULT_THROTTLE_CLASSES': [
'rest_framework.throttling.AnonRateThrottle',
'rest_framework.throttling.UserRateThrottle'
],
'DEFAULT_THROTTLE_RATES': {
'anon': '100/day',
'user': '1000/day'
}
}
The rate descriptions used in DEFAULT_THROTTLE_RATES may include second, minu... | |
doc_28270 |
Perform fit on X and returns labels for X. Returns -1 for outliers and 1 for inliers. Parameters
X{array-like, sparse matrix, dataframe} of shape (n_samples, n_features)
yIgnored
Not used, present for API consistency by convention. Returns
yndarray of shape (n_samples,)
1 for inliers, -1 for outliers. | |
doc_28271 |
Transform a sequence of instances to a scipy.sparse matrix. Parameters
raw_Xiterable over iterable over raw features, length = n_samples
Samples. Each sample must be iterable an (e.g., a list or tuple) containing/generating feature names (and optionally values, see the input_type constructor argument) which wil... | |
doc_28272 | Compress data (a bytes object), returning a bytes object containing compressed data for at least part of the input. Some of data may be buffered internally, for use in later calls to compress() and flush(). The returned data should be concatenated with the output of any previous calls to compress(). | |
doc_28273 | tf.compat.v1.estimator.experimental.linear_logit_fn_builder(
units, feature_columns, sparse_combiner='sum'
)
Args
units An int indicating the dimension of the logit layer.
feature_columns An iterable containing all the feature columns used by the model.
sparse_combiner A string specifying how ... | |
doc_28274 |
Predict probability for each possible outcome. Compute the probability estimates for each single sample in X and each possible outcome seen during training (categorical distribution). Parameters
Xarray-like of shape (n_samples, n_features)
The data matrix. Returns
probabilitiesndarray of shape (n_samples,... | |
doc_28275 | An integer indicating how many dimensions of a multi-dimensional array the memory represents. | |
doc_28276 |
Wrapper class for quantized operations. The instance of this class can be used instead of the torch.ops.quantized prefix. See example usage below. Note This class does not provide a forward hook. Instead, you must use one of the underlying functions (e.g. add). Examples: >>> q_add = QFunctional()
>>> a = torch.quan... | |
doc_28277 |
The quarter of the date. | |
doc_28278 | In-place version of logical_or() | |
doc_28279 | Whether the OpenSSL library has built-in support for the Elliptic Curve-based Diffie-Hellman key exchange. This should be true unless the feature was explicitly disabled by the distributor. New in version 3.3. | |
doc_28280 | Solves a linear system of equations with a positive semidefinite matrix to be inverted given its Cholesky factor matrix uu . If upper is False, uu is and lower triangular and c is returned such that: c=(uuT)−1bc = (u u^T)^{{-1}} b
If upper is True or not provided, uu is upper triangular and c is returned such that... | |
doc_28281 |
Return x, y values at equally spaced points in domain. Returns the x, y values at n linearly spaced points across the domain. Here y is the value of the polynomial at the points x. By default the domain is the same as that of the series instance. This method is intended mostly as a plotting aid. New in version 1.5.0... | |
doc_28282 |
Creates a callable object to retrieve events in a blocking way for interactive sessions. Base class of the other classes listed here. BlockingKeyMouseInput
Creates a callable object to retrieve key or mouse clicks in a blocking way for interactive sessions. Used by waitforbuttonpress. BlockingMouseInput
Creates a ... | |
doc_28283 | Read n items (as machine values) from the file object f and append them to the end of the array. If less than n items are available, EOFError is raised, but the items that were available are still inserted into the array. | |
doc_28284 | In-place version of rrelu(). | |
doc_28285 | Return an iterator of all values associated with a key. Zipping keys() and this is the same as calling lists(): >>> d = MultiDict({"foo": [1, 2, 3]})
>>> zip(d.keys(), d.listvalues()) == d.lists()
True | |
doc_28286 |
Return a copy. Returns
new_seriesseries
Copy of self. | |
doc_28287 | 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_28288 |
This decorator indicates to the compiler that a function or method should be ignored and left as a Python function. This allows you to leave code in your model that is not yet TorchScript compatible. If called from TorchScript, ignored functions will dispatch the call to the Python interpreter. Models with ignored fu... | |
doc_28289 |
Provide expanding window calculations. Parameters
min_periods:int, default 1
Minimum number of observations in window required to have a value; otherwise, result is np.nan.
center:bool, default False
If False, set the window labels as the right edge of the window index. If True, set the window labels as the... | |
doc_28290 | Creates a ContentRange object from the current range and given content length. | |
doc_28291 | Adds a parameter to the module. The parameter can be accessed as an attribute using given name. Parameters
name (string) – name of the parameter. The parameter can be accessed from this module using the given name
param (Parameter) – parameter to be added to the module. | |
doc_28292 | sklearn.datasets.get_data_home(data_home=None) → str[source]
Return the path of the scikit-learn data dir. This folder is used by some large dataset loaders to avoid downloading the data several times. By default the data dir is set to a folder named ‘scikit_learn_data’ in the user home folder. Alternatively, it can ... | |
doc_28293 | Decode the Base32 encoded bytes-like object or ASCII string s and return the decoded bytes. Optional casefold is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is False. RFC 3548 allows for optional mapping of the digit 0 (zero) to the letter O (oh), and for op... | |
doc_28294 | from myapp.serializers import PurchaseSerializer
from rest_framework import generics
class PurchaseList(generics.ListAPIView):
serializer_class = PurchaseSerializer
def get_queryset(self):
"""
This view should return a list of all the purchases
for the currently authenticated user.
... | |
doc_28295 | See Migration guide for more details. tf.compat.v1.image.per_image_standardization
tf.image.per_image_standardization(
image
)
For each 3-D image x in image, computes (x - mean) / adjusted_stddev, where
mean is the average of all values in x
adjusted_stddev = max(stddev, 1.0/sqrt(N)) is capped away from 0 to... | |
doc_28296 |
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_28297 | A list of the path’s file extensions: >>> PurePosixPath('my/library.tar.gar').suffixes
['.tar', '.gar']
>>> PurePosixPath('my/library.tar.gz').suffixes
['.tar', '.gz']
>>> PurePosixPath('my/library').suffixes
[] | |
doc_28298 |
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g... | |
doc_28299 | Cleans and returns a value for use in the widget template. value isn’t guaranteed to be valid input, therefore subclass implementations should program defensively. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.