_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_11100 | Creates, saves and returns a User. The username and password are set as given. The domain portion of email is automatically converted to lowercase, and the returned User object will have is_active set to True. If no password is provided, set_unusable_password() will be called. The extra_fields keyword arguments are pas... | |
doc_11101 | See Migration guide for more details. tf.compat.v1.raw_ops.PrelinearizeTuple
tf.raw_ops.PrelinearizeTuple(
inputs, shapes, layouts=[], name=None
)
Args
inputs A list of Tensor objects. A list of tensors that will be provided using the infeed mechanism.
shapes A list of shapes (each a tf.TensorShap... | |
doc_11102 | Gets the bit at the given position get_at((x, y)) -> int
Parameters:
pos (tuple(int, int) or list[int, int]) -- the position of the bit to get
Returns:
1 if the bit is set, 0 if the bit is not set
Return type:
int
Raises:
IndexError -- if the position is outside of the mask's bounds | |
doc_11103 | Sends a signal to the calling process. Returns nothing. New in version 3.8. | |
doc_11104 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2D
tf.raw_ops.QuantizedConv2D(
input, filter, min_input, max_input, min_filter, max_filter, strides, padding,
out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1], name=None
)
The inputs are quantized tensors where the lowest value represen... | |
doc_11105 |
Adjust the subplot layout parameters. Unset parameters are left unmodified; initial values are given by rcParams["figure.subplot.[name]"]. Parameters
leftfloat, optional
The position of the left edge of the subplots, as a fraction of the figure width.
rightfloat, optional
The position of the right edge of t... | |
doc_11106 |
Return the snap setting. See set_snap for details. | |
doc_11107 | remove all events from the queue clear(eventtype=None) -> None clear(eventtype=None, pump=True) -> None Removes all events from the queue. If eventtype is given, removes the given event or sequence of events. This has the same effect as pygame.event.get() except None is returned. It can be slightly more efficient whe... | |
doc_11108 |
Return the cumulative sum of the elements along the given axis. Refer to numpy.cumsum for full documentation. See also numpy.cumsum
equivalent function | |
doc_11109 |
Bases: matplotlib.colors.FuncNorm Arbitrary normalization using functions for the forward and inverse. Parameters
functions(callable, callable)
two-tuple of the forward and inverse functions for the normalization. The forward function must be monotonic. Both functions must have the signature def forward(values:... | |
doc_11110 | Return a new view of the underlying mapping’s keys. | |
doc_11111 | See Migration guide for more details. tf.compat.v1.raw_ops.StringStrip
tf.raw_ops.StringStrip(
input, name=None
)
Args
input A Tensor of type string. A string Tensor of any shape.
name A name for the operation (optional).
Returns A Tensor of type string. | |
doc_11112 | Render dialog and start event loop. | |
doc_11113 |
Return a new Timedelta floored to this resolution. Parameters
freq:str
Frequency string indicating the flooring resolution. | |
doc_11114 |
Alias for set_facecolor. | |
doc_11115 |
class Comment:
def __init__(self, email, content, created=None):
self.email = email
self.content = content
self.created = created or datetime.now()
comment = Comment(email='leila@example.com', content='foo bar')
We'll declare a serializer that we can use to serialize and deserialize data ... | |
doc_11116 |
Set the minor ticks for the log scaling every base**i*subs[j]. | |
doc_11117 |
Repeat elements of a Series. Returns a new Series where each element of the current Series is repeated consecutively a given number of times. Parameters
repeats:int or array of ints
The number of repetitions for each element. This should be a non-negative integer. Repeating 0 times will return an empty Series. ... | |
doc_11118 |
Returns
transformTransform
The transform used for drawing secondary x-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in axis coordinates
valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}... | |
doc_11119 | Send a GROUP command, where name is the group name. The group is selected as the current group, if it exists. Return a tuple (response, count, first, last, name) where count is the (estimated) number of articles in the group, first is the first article number in the group, last is the last article number in the group, ... | |
doc_11120 |
alias of matplotlib.table.Cell | |
doc_11121 |
Return a list of the values. These are each a scalar type, which is a Python scalar (for str, int, float) or a pandas scalar (for Timestamp/Timedelta/Interval/Period) Returns
list
See also numpy.ndarray.tolist
Return the array as an a.ndim-levels deep nested list of Python scalars. | |
doc_11122 |
Return predictions for X for each estimator. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Returns
predictions: ndarray of shape (n_samples, n_classifiers)
Values predicted by each regressor. | |
doc_11123 |
Return an array copy of the given object. Parameters
aarray_like
Input data.
order{‘C’, ‘F’, ‘A’, ‘K’}, optional
Controls the memory layout of the copy. ‘C’ means C-order, ‘F’ means F-order, ‘A’ means ‘F’ if a is Fortran contiguous, ‘C’ otherwise. ‘K’ means match the layout of a as closely as possible. (Not... | |
doc_11124 | An io.BufferedIOBase input stream, ready to read from the start of the optional input data. | |
doc_11125 |
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation. | |
doc_11126 | See Migration guide for more details. tf.compat.v1.raw_ops.Split
tf.raw_ops.Split(
axis, value, num_split, name=None
)
Args
axis A Tensor of type int32. 0-D. The dimension along which to split. Must be in the range [-rank(value), rank(value)).
value A Tensor. The tensor to split.
num_split A... | |
doc_11127 | A data structure of registered error handlers, in the format {scope: {code: {class: handler}}}`. The scope key is the name of a blueprint the handlers are active for, or None for all requests. The code key is the HTTP status code for HTTPException, or None for other exceptions. The innermost dictionary maps exception c... | |
doc_11128 | Send a file from within a directory using send_file(). @app.route("/uploads/<path:name>")
def download_file(name):
return send_from_directory(
app.config['UPLOAD_FOLDER'], name, as_attachment=True
)
This is a secure way to serve files from a folder, such as static files or uploads. Uses safe_join() to ... | |
doc_11129 | A decorator that is used to register a custom template global function. You can specify a name for the global function, otherwise the function name will be used. Example: @app.template_global()
def double(n):
return 2 * n
Changelog New in version 0.10. Parameters
name (Optional[str]) – the optional name of the... | |
doc_11130 | See torch.lu_solve() | |
doc_11131 | Execute the statement (given as a string or a code object) under debugger control. The debugger prompt appears before any code is executed; you can set breakpoints and type continue, or you can step through the statement using step or next (all these commands are explained below). The optional globals and locals argume... | |
doc_11132 |
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar. | |
doc_11133 |
Return Addition of series and other, element-wise (binary operator radd). Equivalent to other + series, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters
other:Series or scalar value
fill_value:None or float value, default None (NaN)
Fill existing missing (Na... | |
doc_11134 |
Bases: object On import, the FontManager singleton instance creates a list of ttf and afm fonts and caches their FontProperties. The FontManager.findfont method does a nearest neighbor search to find the font that most closely matches the specification. If no good enough match is found, the default font is returned. ... | |
doc_11135 | Computes the QR decomposition of a matrix or a batch of matrices input, and returns a namedtuple (Q, R) of tensors such that input=QR\text{input} = Q R with QQ being an orthogonal matrix or batch of orthogonal matrices and RR being an upper triangular matrix or batch of upper triangular matrices. If some is True, th... | |
doc_11136 | """
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_11137 | The file path of the null device. For example: '/dev/null' for POSIX, 'nul' for Windows. Also available via os.path. | |
doc_11138 | sklearn.feature_extraction.image.extract_patches_2d(image, patch_size, *, max_patches=None, random_state=None) [source]
Reshape a 2D image into a collection of patches The resulting patches are allocated in a dedicated array. Read more in the User Guide. Parameters
imagendarray of shape (image_height, image_width... | |
doc_11139 | This class is responsible for deciding whether each cookie should be accepted from / returned to the server. | |
doc_11140 | get the relative position of a trackball get_ball(ball_number) -> x, y Returns the relative movement of a joystick button. The value is a x, y pair holding the relative movement since the last call to get_ball. The ball number must be an integer from 0 to get_numballs() - 1. | |
doc_11141 |
Add the coordinates of an event to the list of clicks. Parameters
eventMouseEvent | |
doc_11142 | Alternative way to use view functions. A subclass has to implement dispatch_request() which is called with the view arguments from the URL routing system. If methods is provided the methods do not have to be passed to the add_url_rule() method explicitly: class MyView(View):
methods = ['GET']
def dispatch_requ... | |
doc_11143 |
Download object at the given URL to a local path. Parameters
url (string) – URL of the object to download
dst (string) – Full path where object will be saved, e.g. /tmp/temporary_file
hash_prefix (string, optional) – If not None, the SHA256 downloaded file should start with hash_prefix. Default: None
progress... | |
doc_11144 | Contains a tuple of the form (host, port) referring to the client’s address. | |
doc_11145 | tf.compat.v1.distributions.Dirichlet(
concentration, validate_args=False, allow_nan_stats=True,
name='Dirichlet'
)
The Dirichlet distribution is defined over the (k-1)-simplex using a positive, length-k vector concentration (k > 1). The Dirichlet is identically the Beta distribution when k = 2. Mathematical De... | |
doc_11146 |
Return the local sum of pixels. Note that the sum may overflow depending on the data type of the input array. Parameters
image([P,] M, N) ndarray (uint8, uint16)
Input image.
selemndarray
The neighborhood expressed as an ndarray of 1’s and 0’s.
out([P,] M, N) array (same dtype as input)
If None, a new a... | |
doc_11147 | Returns a copy of the decompression object. This can be used to save the state of the decompressor midway through the data stream in order to speed up random seeks into the stream at a future point. | |
doc_11148 |
Collect instruction counts using Callgrind. Unlike wall times, instruction counts are deterministic (modulo non-determinism in the program itself and small amounts of jitter from the Python interpreter.) This makes them ideal for detailed performance analysis. This method runs stmt in a separate process so that Valgr... | |
doc_11149 | Tuple containing two dictionaries, mapping filename extensions to MIME types: the first dictionary is for the non-standards types and the second one is for the standard types. They are initialized by common_types and types_map. | |
doc_11150 | The name of the parameter as a string. The name must be a valid Python identifier. CPython implementation detail: CPython generates implicit parameter names of the form .0 on the code objects used to implement comprehensions and generator expressions. Changed in version 3.6: These parameter names are exposed by this ... | |
doc_11151 |
Return the day names of the DateTimeIndex with specified locale. Parameters
locale:str, optional
Locale determining the language in which to return the day name. Default is English locale. Returns
Index
Index of day names. Examples
>>> idx = pd.date_range(start='2018-01-01', freq='D', periods=3)
>>> ... | |
doc_11152 |
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters
Xarray-like of shape (n_samples, n_features)
Input samples.
yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None
Target values (None for uns... | |
doc_11153 |
Disable the toggle tool. trigger call this method when toggled is True. This can happen in different circumstances. Click on the toolbar tool button. Call to matplotlib.backend_managers.ToolManager.trigger_tool. Another ToolToggleBase derived tool is triggered (from the same ToolManager). | |
doc_11154 | tf.compat.v1.train.ProximalAdagradOptimizer(
learning_rate, initial_accumulator_value=0.1, l1_regularization_strength=0.0,
l2_regularization_strength=0.0, use_locking=False,
name='ProximalAdagrad'
)
References: Adaptive Subgradient Methods for Online Learning and Stochastic Optimization: Duchi et al., 2011... | |
doc_11155 |
Prunes tensor corresponding to parameter called name in module by applying the pre-computed mask in mask. Modifies module in place (and also return the modified module) by: 1) adding a named buffer called name+'_mask' corresponding to the binary mask applied to the parameter name by the pruning method. 2) replacing t... | |
doc_11156 |
Plot contour lines. Call signature: contour([X, Y,] Z, [levels], **kwargs)
contour and contourf draw contour lines and filled contours, respectively. Except as noted, function signatures and return values are the same for both versions. Parameters
X, Yarray-like, optional
The coordinates of the values in Z. X ... | |
doc_11157 |
When the “external_loop” was not used during construction, but is desired, this modifies the iterator to behave as if the flag was specified. | |
doc_11158 | You can call this method from a different thread to abort any queries that might be executing on the connection. The query will then abort and the caller will get an exception. | |
doc_11159 | tf.initializers.HeNormal, tf.initializers.he_normal, tf.keras.initializers.he_normal
tf.keras.initializers.HeNormal(
seed=None
)
Also available via the shortcut function tf.keras.initializers.he_normal. It draws samples from a truncated normal distribution centered on 0 with stddev = sqrt(2 / fan_in) where fan_i... | |
doc_11160 | See Migration guide for more details. tf.compat.v1.raw_ops.IdentityN
tf.raw_ops.IdentityN(
input, name=None
)
tensors. This op can be used to override the gradient for complicated functions. For example, suppose y = f(x) and we wish to apply a custom function g for backprop such that dx = g(dy). In Python, with ... | |
doc_11161 | class sklearn.random_projection.GaussianRandomProjection(n_components='auto', *, eps=0.1, random_state=None) [source]
Reduce dimensionality through Gaussian random projection. The components of the random matrix are drawn from N(0, 1 / n_components). Read more in the User Guide. New in version 0.13. Parameters
... | |
doc_11162 |
Apply approximate feature map to X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Returns
X_new{ndarray, sparse matrix}, shape = (n_samples, n_features * (2*sample_steps + 1))
Whether the return value is an array of sparse matrix depends on the type of the input X. | |
doc_11163 |
Get a mask, or integer index, of the features selected Parameters
indicesbool, default=False
If True, the return value will be an array of integers, rather than a boolean mask. Returns
supportarray
An index that selects the retained features from a feature vector. If indices is False, this is a boolean ... | |
doc_11164 | sklearn.metrics.get_scorer(scoring) [source]
Get a scorer from string. Read more in the User Guide. Parameters
scoringstr or callable
Scoring method as string. If callable it is returned as is. Returns
scorercallable
The scorer. | |
doc_11165 |
Alias for set_edgecolor. | |
doc_11166 |
Set up axis ticks and labels to treat data along this Axis as dates. Parameters
tzstr or datetime.tzinfo, default: rcParams["timezone"] (default: 'UTC')
The timezone used to create date labels. | |
doc_11167 | Load data from a JSON string and deserialized any tagged objects. Parameters
value (str) – Return type
Any | |
doc_11168 | Return the natural logarithm of 1+x (base e). The result is calculated in a way which is accurate for x near zero. | |
doc_11169 | An integer representing the node type. Symbolic constants for the types are on the Node object: ELEMENT_NODE, ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, ENTITY_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE. This is a read-only attribute. | |
doc_11170 |
Predict using the Gaussian process regression model We can also predict based on an unfitted model by using the GP prior. In addition to the mean of the predictive distribution, also its standard deviation (return_std=True) or covariance (return_cov=True). Note that at most one of the two can be requested. Parameter... | |
doc_11171 |
Alias for get_linestyle. | |
doc_11172 | Creates a collation with the given name, locale and provider. Set the deterministic parameter to False to create a non-deterministic collation, such as for case-insensitive filtering. | |
doc_11173 | See Migration guide for more details. tf.compat.v1.test.create_local_cluster
tf.test.create_local_cluster(
num_workers, num_ps, protocol='grpc', worker_config=None,
ps_config=None
)
"PS" stands for "parameter server": a task responsible for storing and updating the model's parameters. Other tasks send update... | |
doc_11174 | Accepts two optional keyword arguments which are callables that accept an asynchronous generator iterator as an argument. The firstiter callable will be called when an asynchronous generator is iterated for the first time. The finalizer will be called when an asynchronous generator is about to be garbage collected. Rai... | |
doc_11175 |
Get WorkerInfo of a given worker name. Use this WorkerInfo to avoid passing an expensive string on every invocation. Parameters
worker_name (str) – the string name of a worker. If None, return the the id of the current worker. (default None) Returns
WorkerInfo instance for the given worker_name or WorkerInfo of t... | |
doc_11176 | tf.losses.MeanAbsoluteError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.MeanAbsoluteError
tf.keras.losses.MeanAbsoluteError(
reduction=losses_utils.ReductionV2.AUTO, name='mean_absolute_error'
)
loss = abs(y_true - y_pred) Standalone usage:
y_true = [[0., 1.], [0... | |
doc_11177 | Append the string s to the MIME header. Optional charset, if given, should be a Charset instance (see email.charset) or the name of a character set, which will be converted to a Charset instance. A value of None (the default) means that the charset given in the constructor is used. s may be an instance of bytes or str.... | |
doc_11178 |
Measures the element-wise mean squared error. See MSELoss for details. | |
doc_11179 |
Set the Figure instance the artist belongs to. Parameters
figFigure | |
doc_11180 | tf.keras.mixed_precision.Policy(
name
)
A dtype policy determines a layer's computation and variable dtypes. Each layer has a policy. Policies can be passed to the dtype argument of layer constructors, or a global policy can be set with tf.keras.mixed_precision.set_global_policy.
Args
name The policy name... | |
doc_11181 | In range(60). | |
doc_11182 |
pygame module for accessing surface pixel data using array interfaces Functions to convert pixel data between pygame Surfaces and arrays. This module will only be functional when pygame can use the external NumPy package. Every pixel is stored as a single integer value to represent the red, green, and blue colors.... | |
doc_11183 | tf.experimental.numpy.complex64(
*args, **kwargs
)
numbers. Character code: 'F'. Canonical name: np.csingle. Alias: np.singlecomplex. Alias on this platform: np.complex64: Complex number type composed of 2 32-bit-precision floating-point numbers. Methods all
all()
Not implemented (virtual attribute) Class generi... | |
doc_11184 | Split the pathname path into a pair (root, ext) such that root + ext ==
path, and ext is empty or begins with a period and contains at most one period. Leading periods on the basename are ignored; splitext('.cshrc') returns ('.cshrc', ''). Changed in version 3.6: Accepts a path-like object. | |
doc_11185 | Generates the SQL fragment for the database function. Returns a tuple (sql, params), where sql is the SQL string, and params is the list or tuple of query parameters. The as_vendor() methods should use the function, template, arg_joiner, and any other **extra_context parameters to customize the SQL as needed. For examp... | |
doc_11186 | This is another standard signal handler, which will simply ignore the given signal. | |
doc_11187 | sklearn.metrics.pairwise.distance_metrics() [source]
Valid metrics for pairwise_distances. This function simply returns the valid pairwise distance metrics. It exists to allow for a description of the mapping for each of the valid strings. The valid distance metrics, and the function they map to, are:
metric Funct... | |
doc_11188 | See Migration guide for more details. tf.compat.v1.Graph
tf.Graph()
Graphs are used by tf.functions to represent the function's computations. Each graph contains a set of tf.Operation objects, which represent units of computation; and tf.Tensor objects, which represent the units of data that flow between operations.... | |
doc_11189 | class sklearn.neighbors.NearestCentroid(metric='euclidean', *, shrink_threshold=None) [source]
Nearest centroid classifier. Each class is represented by its centroid, with test samples classified to the class with the nearest centroid. Read more in the User Guide. Parameters
metricstr or callable
The metric to ... | |
doc_11190 | Get the blocking mode of the file descriptor: False if the O_NONBLOCK flag is set, True if the flag is cleared. See also set_blocking() and socket.socket.setblocking(). Availability: Unix. New in version 3.5. | |
doc_11191 | tf.optimizers For more examples see the base class tf.keras.optimizers.Optimizer. Modules schedules module: Public API for tf.keras.optimizers.schedules namespace. Classes class Adadelta: Optimizer that implements the Adadelta algorithm. class Adagrad: Optimizer that implements the Adagrad algorithm. class Adam: Optim... | |
doc_11192 |
Set the data array for x. Parameters
x1D array | |
doc_11193 | tf.expand_dims(
input, axis, name=None
)
Given a tensor input, this operation inserts a dimension of length 1 at the dimension index axis of input's shape. The dimension index follows Python indexing rules: It's zero-based, a negative index it is counted backward from the end. This operation is useful to: Add an ... | |
doc_11194 |
Update the bounds of the Bbox to contain the vertices of the provided path. After updating, the bounds will have positive width and height; x0 and y0 will be the minimal values. Parameters
pathPath
ignorebool, optional
when True, ignore the existing bounds of the Bbox. when False, include the existing bounds... | |
doc_11195 | See Migration guide for more details. tf.compat.v1.nn.relu
tf.nn.relu(
features, name=None
)
See: https://en.wikipedia.org/wiki/Rectifier_(neural_networks) Example usage: >>> tf.nn.relu([-2., 0., -0., 3.]).numpy()
array([ 0., 0., -0., 3.], dtype=float32)
Args
features A Tensor. Must be one of the fol... | |
doc_11196 |
Adjust an image so that its cumulative histogram matches that of another. The adjustment is applied separately for each channel. Parameters
imagendarray
Input image. Can be gray-scale or in color.
referencendarray
Image to match histogram of. Must have the same number of channels as image.
multichannelboo... | |
doc_11197 | In-place version of atan() | |
doc_11198 |
Merge node src and dst. The new combined node is adjacent to all the neighbors of src and dst. weight_func is called to decide the weight of edges incident on the new node. Parameters
src, dstint
Nodes to be merged.
weight_funccallable, optional
Function to decide the attributes of edges incident on the new... | |
doc_11199 |
Inverse radon transform. Reconstruct an image from the radon transform, using the filtered back projection algorithm. Parameters
radon_imagearray
Image containing radon transform (sinogram). Each column of the image corresponds to a projection along a different angle. The tomography rotation axis should lie at ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.