_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_17200 | Is a generic constructor that takes the string name of the desired algorithm as its first parameter. It also exists to allow access to the above listed hashes as well as any other algorithms that your OpenSSL library may offer. The named constructors are much faster than new() and should be preferred. | |
doc_17201 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_17202 | A list of str objects with the formatted output of matching messages. | |
doc_17203 |
Predict using the linear model. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
Carray, shape (n_samples,)
Returns predicted values. | |
doc_17204 |
Fills the input Tensor with values drawn from the uniform distribution U(a,b)\mathcal{U}(a, b) . Parameters
tensor – an n-dimensional torch.Tensor
a – the lower bound of the uniform distribution
b – the upper bound of the uniform distribution Examples >>> w = torch.empty(3, 5)
>>> nn.init.uniform_(w) | |
doc_17205 | The qualified name of the class, function, method, descriptor, or generator instance. New in version 3.3. | |
doc_17206 | The default port for the HTTPS protocol (always 443). | |
doc_17207 |
Return a dictionary of all the properties of the artist. | |
doc_17208 |
Alias for get_edgecolor. | |
doc_17209 | draw a filled ellipse filled_ellipse(surface, x, y, rx, ry, color) -> None Draws a filled ellipse on the given surface. For an unfilled ellipse use ellipse().
Parameters:
surface (Surface) -- surface to draw on
x (int) -- x coordinate of the center of the ellipse
y (int) -- y coordinate of the center of the... | |
doc_17210 |
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters
levelfloat | |
doc_17211 | XML parse error, raised by the various parsing methods in this module when parsing fails. The string representation of an instance of this exception will contain a user-friendly error message. In addition, it will have the following attributes available:
code
A numeric error code from the expat parser. See the docu... | |
doc_17212 | Insert x into the deque at position i. If the insertion would cause a bounded deque to grow beyond maxlen, an IndexError is raised. New in version 3.5. | |
doc_17213 |
Return the fontsize in points. | |
doc_17214 |
Install a repl display hook so that any stale figure are automatically redrawn when control is returned to the repl. This works both with IPython and with vanilla python shells. | |
doc_17215 |
Class Variables
AUTO <PaddingSpec.AUTO: 0>
POWER_OF_TWO <PaddingSpec.POWER_OF_TWO: 1> | |
doc_17216 |
This decorator indicates that a method on an nn.Module is used as an entry point into a ScriptModule and should be compiled. forward implicitly is assumed to be an entry point, so it does not need this decorator. Functions and methods called from forward are compiled as they are seen by the compiler, so they do not n... | |
doc_17217 | sysconfig.get_config_vars(*args)
With no arguments, return a dictionary of all configuration variables relevant for the current platform. With arguments, return a list of values that result from looking up each argument in the configuration variable dictionary. For each argument, if the value is not found, return Non... | |
doc_17218 | Returns the log-transformed bounds on the theta. Returns
boundsndarray of shape (n_dims, 2)
The log-transformed bounds on the kernel’s hyperparameters theta | |
doc_17219 |
Display a message on the toolbar. Parameters
sstr
Message text. | |
doc_17220 | Sends the signal signal to the child. Do nothing if the process completed. Note On Windows, SIGTERM is an alias for terminate(). CTRL_C_EVENT and CTRL_BREAK_EVENT can be sent to processes started with a creationflags parameter which includes CREATE_NEW_PROCESS_GROUP. | |
doc_17221 | The Content-MD5 entity-header field, as defined in RFC 1864, is an MD5 digest of the entity-body for the purpose of providing an end-to-end message integrity check (MIC) of the entity-body. (Note: a MIC is good for detecting accidental modification of the entity-body in transit, but is not proof against malicious attac... | |
doc_17222 | Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return... | |
doc_17223 | A proxy to the object bound to a Local. All operations on the proxy are forwarded to the bound object. If no object is bound, a RuntimeError is raised. from werkzeug.local import Local
l = Local()
# a proxy to whatever l.user is set to
user = l("user")
from werkzeug.local import LocalStack
_request_stack = LocalStack... | |
doc_17224 | Convenience function to run a read-eval-print loop. This creates a new instance of InteractiveConsole and sets readfunc to be used as the InteractiveConsole.raw_input() method, if provided. If local is provided, it is passed to the InteractiveConsole constructor for use as the default namespace for the interpreter loop... | |
doc_17225 |
Bases: mpl_toolkits.axes_grid1.axes_size._Base Simple fixed size with absolute part = fixed_size and relative part = 0. get_size(renderer)[source]
Examples using mpl_toolkits.axes_grid1.axes_size.Fixed
HBoxDivider demo
Axes with a fixed physical size
Simple Axes Divider 1
Simple Axes ... | |
doc_17226 |
Set the colormap to 'winter'. 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_17227 |
Evaluate a 2-D Hermite series at points (x, y). This function returns the values: \[p(x,y) = \sum_{i,j} c_{i,j} * H_i(x) * H_j(y)\] The parameters x and y are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after conversion. In either ... | |
doc_17228 | See Migration guide for more details. tf.compat.v1.compat.forward_compatible
tf.compat.forward_compatible(
year, month, day
)
See Version compatibility. Forward-compatibility refers to scenarios where the producer of a TensorFlow model (a GraphDef or SavedModel) is compiled against a version of the TensorFlow li... | |
doc_17229 | Return the error handler previously registered under the name name. Raises a LookupError in case the handler cannot be found. | |
doc_17230 | tf.experimental.numpy.sqrt(
x
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.sqrt. | |
doc_17231 | A dictionary with arbitrary data that can be associated with this script info. | |
doc_17232 | tf.distribute.experimental.TPUStrategy(
tpu_cluster_resolver=None, device_assignment=None
)
To construct a TPUStrategy object, you need to run the initialization code as below:
resolver = tf.distribute.cluster_resolver.TPUClusterResolver(tpu='')
tf.config.experimental_connect_to_cluster(resolver)
tf.tpu.experimen... | |
doc_17233 | Computes the n-th forward difference along the given dimension. The first-order differences are given by out[i] = input[i + 1] - input[i]. Higher-order differences are calculated by using torch.diff() recursively. Note Only n = 1 is currently supported Parameters
input (Tensor) – the tensor to compute the differe... | |
doc_17234 |
Add a centered supylabel to the figure. Parameters
tstr
The supylabel text.
xfloat, default: 0.02
The x location of the text in figure coordinates.
yfloat, default: 0.5
The y location of the text in figure coordinates.
horizontalalignment, ha{'center', 'left', 'right'}, default: left
The horizontal ... | |
doc_17235 |
Set the vertical alignment. Parameters
align{'center', 'top', 'bottom', 'baseline', 'center_baseline'} | |
doc_17236 | sklearn.metrics.pairwise.additive_chi2_kernel(X, Y=None) [source]
Computes the additive chi-squared kernel between observations in X and Y. The chi-squared kernel is computed between each pair of rows in X and Y. X and Y have to be non-negative. This kernel is most commonly applied to histograms. The chi-squared kern... | |
doc_17237 | Register a fd descriptor with the epoll object. | |
doc_17238 | Write TLS keys to a keylog file, whenever key material is generated or received. The keylog file is designed for debugging purposes only. The file format is specified by NSS and used by many traffic analyzers such as Wireshark. The log file is opened in append-only mode. Writes are synchronized between threads, but not... | |
doc_17239 | Returns the distance (float) from the origin of the geometry (LineString or MultiLineString) to the point projected on the geometry (that is to a point of the line the closest to the given point). The normalized version returns the distance as a float between 0 (origin) and 1 (endpoint). Reverse of GEOSGeometry.interpo... | |
doc_17240 | tf.compat.v1.tpu.experimental.StochasticGradientDescentParameters(
learning_rate: float,
clip_weight_min: Optional[float] = None,
clip_weight_max: Optional[float] = None,
weight_decay_factor: Optional[float] = None,
multiply_weight_decay_factor_by_learning_rate: Optional[bool] = None,
clip_gradi... | |
doc_17241 | filtered scale and rotation rotozoom(Surface, angle, scale) -> Surface This is a combined scale and rotation transform. The resulting Surface will be a filtered 32-bit Surface. The scale argument is a floating point value that will be multiplied by the current resolution. The angle argument is a floating point value ... | |
doc_17242 |
Return a list of the child Artists of this Artist. | |
doc_17243 | Set the number of frames to n. This will be changed later if the number of frames actually written is different (this update attempt will raise an error if the output stream is not seekable). | |
doc_17244 |
Create a Table schema from data. Parameters
data:Series, DataFrame
index:bool, default True
Whether to include data.index in the schema.
primary_key:bool or None, default True
Column names to designate as the primary key. The default None will set ‘primaryKey’ to the index level or levels if the index is ... | |
doc_17245 | Trigger the termination of the dialog window. | |
doc_17246 | If tzinfo is None, returns None, else returns self.tzinfo.dst(None), and raises an exception if the latter doesn’t return None, or a timedelta object with magnitude less than one day. Changed in version 3.7: The DST offset is not restricted to a whole number of minutes. | |
doc_17247 | The maximum age in seconds the access control settings can be cached for. | |
doc_17248 |
frame_type
This attribute is set to 'ROWS'. | |
doc_17249 | Print a table of contents to sys.stdout. If verbose is False, only the names of the members are printed. If it is True, output similar to that of ls -l is produced. If optional members is given, it must be a subset of the list returned by getmembers(). Changed in version 3.5: Added the members parameter. | |
doc_17250 | class socketserver.DatagramRequestHandler
These BaseRequestHandler subclasses override the setup() and finish() methods, and provide self.rfile and self.wfile attributes. The self.rfile and self.wfile attributes can be read or written, respectively, to get the request data or return data to the client. The rfile attr... | |
doc_17251 |
Create a new 1-dimensional array from an iterable object. Parameters
iteriterable object
An iterable object providing data for the array.
dtypedata-type
The data-type of the returned array.
countint, optional
The number of items to read from iterable. The default is -1, which means all data is read.
l... | |
doc_17252 |
Alias for get_linestyle. | |
doc_17253 | An abstract structure encapsulating the options passed into the RPC backend. An instance of this class can be passed in to init_rpc() in order to initialize RPC with specific configurations, such as the RPC timeout and init_method to be used.
property init_method
URL specifying how to initialize the process group. ... | |
doc_17254 | Adds all the standard site-specific directories to the module search path. This function is called automatically when this module is imported, unless the Python interpreter was started with the -S flag. Changed in version 3.3: This function used to be called unconditionally. | |
doc_17255 | tf.experimental.numpy.tril(
m, k=0
)
See the NumPy documentation for numpy.tril. | |
doc_17256 | text rotation in degrees counterclockwise rotation -> int Gets or sets the baseline angle of the rendered text. The angle is represented as integer degrees. The default angle is 0, with horizontal text rendered along the X-axis, and vertical text along the Y-axis. A positive value rotates these axes counterclockwise ... | |
doc_17257 | A list of Example objects encoding the individual interactive Python examples that should be run by this test. | |
doc_17258 | tf.compat.v1.lite.OpHint(
function_name, level=1, children_inputs_mappings=None, **kwargs
)
It allows you to take a bunch of TensorFlow ops and annotate the construction such that toco knows how to convert it to tflite. This embeds a pseudo function in a TensorFlow graph. This allows embedding high-level API usage... | |
doc_17259 |
Rearrange levels using input order. May not drop or duplicate levels. Parameters
order:list of int or list of str
List representing new level order. Reference level by number (position) or by key (label). Returns
MultiIndex
Examples
>>> mi = pd.MultiIndex.from_arrays([[1, 2], [3, 4]], names=['x', 'y'])... | |
doc_17260 | Logs a message with integer level level on this logger. The other arguments are interpreted as for debug(). | |
doc_17261 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalPrivateThreadPoolDataset
tf.raw_ops.ExperimentalPrivateThreadPoolDataset(
input_dataset, num_threads, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant.
num_threads A Tensor of type int64. Ide... | |
doc_17262 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListPushBack
tf.raw_ops.TensorListPushBack(
input_handle, tensor, name=None
)
tensor: The tensor to put on the list. input_handle: The old list. output_handle: A list with the elements of the old list followed by tensor. element_dtype: the type of ... | |
doc_17263 | Creates a GiST index. These indexes are automatically created on spatial fields with spatial_index=True. They’re also useful on other types, such as HStoreField or the range fields. To use this index on data types not in the built-in gist operator classes, you need to activate the btree_gist extension on PostgreSQL. Yo... | |
doc_17264 |
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi... | |
doc_17265 | Moves all model parameters and buffers to the GPU. This also makes associated parameters and buffers different objects. So it should be called before constructing optimizer if the module will live on GPU while being optimized. Parameters
device (int, optional) – if specified, all parameters will be copied to that dev... | |
doc_17266 | class sklearn.covariance.EmpiricalCovariance(*, store_precision=True, assume_centered=False) [source]
Maximum likelihood covariance estimator Read more in the User Guide. Parameters
store_precisionbool, default=True
Specifies if the estimated precision is stored.
assume_centeredbool, default=False
If True, ... | |
doc_17267 | Returns an iterator over all modules in the network. Yields
Module – a module in the network Note Duplicate modules are returned only once. In the following example, l will be returned only once. Example: >>> l = nn.Linear(2, 2)
>>> net = nn.Sequential(l, l)
>>> for idx, m in enumerate(net.modules()):
pri... | |
doc_17268 | Create a shared threading.RLock object and return a proxy for it. | |
doc_17269 |
Set whether depth shading is performed on collection members. Parameters
depthshadebool
Whether to shade the patches in order to give the appearance of depth. | |
doc_17270 | Special value that can be used as the stdin, stdout or stderr argument to Popen and indicates that a pipe to the standard stream should be opened. Most useful with Popen.communicate(). | |
doc_17271 |
Note It is no longer recommended to use this class, even for linear algebra. Instead use regular arrays. The class may be removed in the future. Returns a matrix from an array-like object, or from a string of data. A matrix is a specialized 2-D array that retains its 2-D nature through operations. It has certain sp... | |
doc_17272 | Token value for "+". | |
doc_17273 |
Return the values (min, max) that are mapped to the colormap limits. | |
doc_17274 | See Migration guide for more details. tf.compat.v1.image.yiq_to_rgb
tf.image.yiq_to_rgb(
images
)
Outputs a tensor of the same shape as the images tensor, containing the RGB value of the pixels. The output is only well defined if the Y value in images are in [0,1], I value are in [-0.5957,0.5957] and Q value are... | |
doc_17275 | Special type indicating that a function never returns. For example: from typing import NoReturn
def stop() -> NoReturn:
raise RuntimeError('no way')
New in version 3.5.4. New in version 3.6.2. | |
doc_17276 |
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_17277 | A generic version of collections.ChainMap. New in version 3.5.4. New in version 3.6.1. Deprecated since version 3.9: collections.ChainMap now supports []. See PEP 585 and Generic Alias Type. | |
doc_17278 | Returns the domain that should be set for the session cookie. Uses SESSION_COOKIE_DOMAIN if it is configured, otherwise falls back to detecting the domain based on SERVER_NAME. Once detected (or if not set at all), SESSION_COOKIE_DOMAIN is updated to avoid re-running the logic. Parameters
app (Flask) – Return type ... | |
doc_17279 |
Apply the dimension reduction. Parameters
Xarray-like of shape (n_samples, n_features)
Samples to transform.
Yarray-like of shape (n_samples, n_targets), default=None
Target vectors.
copybool, default=True
Whether to copy X and Y, or perform in-place normalization. Returns
x_scores if Y is not giv... | |
doc_17280 | Arrange the given list of classes into a hierarchy of nested lists. Where a nested list appears, it contains classes derived from the class whose entry immediately precedes the list. Each entry is a 2-tuple containing a class and a tuple of its base classes. If the unique argument is true, exactly one entry appears in ... | |
doc_17281 |
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event. | |
doc_17282 |
Draw samples from a Poisson distribution. The Poisson distribution is the limit of the binomial distribution for large N. Note New code should use the poisson method of a default_rng() instance instead; please see the Quick Start. Parameters
lamfloat or array_like of floats
Expected number of events occurring... | |
doc_17283 | See Migration guide for more details. tf.compat.v1.raw_ops.SlidingWindowDataset
tf.raw_ops.SlidingWindowDataset(
input_dataset, window_size, window_shift, window_stride, output_types,
output_shapes, name=None
)
Args
input_dataset A Tensor of type variant.
window_size A Tensor of type int64. A ... | |
doc_17284 | blit the Sprite images and track changed areas draw(surface) -> Rect_list Draws all the Sprites to the surface, the same as Group.draw(). This method also returns a list of Rectangular areas on the screen that have been changed. The returned changes include areas of the screen that have been affected by previous Grou... | |
doc_17285 | A string containing a diagnostic message associated with the fault. | |
doc_17286 | Find the minimum-cost path from the given starting points. This method finds the minimum-cost path to the specified ending indices from any one of the specified starting indices. If no end positions are given, then the minimum-cost path to every position in the costs array will be found. Parameters
startsiterable
... | |
doc_17287 | select.select()-based selector. | |
doc_17288 | See torch.igamma() | |
doc_17289 |
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_17290 | See Migration guide for more details. tf.compat.v1.estimator.SecondOrStepTimer, tf.compat.v1.train.SecondOrStepTimer
tf.estimator.SecondOrStepTimer(
every_secs=None, every_steps=None
)
This symbol is also exported to v2 in tf.estimator namespace. See https://github.com/tensorflow/estimator/blob/master/tensorflow... | |
doc_17291 |
Register an axis. An axis should be registered with its corresponding spine from the Axes instance. This allows the spine to clear any axis properties when needed. | |
doc_17292 |
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_17293 |
Update this artist's properties from the dict props. Parameters
propsdict | |
doc_17294 | Open a pipe to or from command cmd. The return value is an open file object connected to the pipe, which can be read or written depending on whether mode is 'r' (default) or 'w'. The buffering argument has the same meaning as the corresponding argument to the built-in open() function. The returned file object reads or ... | |
doc_17295 | Files in both a and b. | |
doc_17296 |
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_17297 |
input_type: 'text'
template_name: 'django/forms/widgets/text.html'
Renders as: <input type="text" ...> | |
doc_17298 |
Randomized leaky ReLU. See RReLU for more details. | |
doc_17299 |
pygame module for vector classes The pygame math module currently provides Vector classes in two and three dimensions, Vector2 and Vector3 respectively. They support the following numerical operations: vec+vec, vec-vec, vec*number, number*vec, vec/number, vec//number, vec+=vec, vec-=vec, vec*=number, vec/=number, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.