_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_1300 |
Raises an AssertionError if two objects are not equal up to desired precision. Note It is recommended to use one of assert_allclose, assert_array_almost_equal_nulp or assert_array_max_ulp instead of this function for more consistent floating point comparisons. The test verifies identical shapes and that the element... | |
doc_1301 | Returns the digit value assigned to the character chr as integer. If no such value is defined, default is returned, or, if not given, ValueError is raised. | |
doc_1302 | os.O_WRONLY
os.O_RDWR
os.O_APPEND
os.O_CREAT
os.O_EXCL
os.O_TRUNC
The above constants are available on Unix and Windows. | |
doc_1303 | See Migration guide for more details. tf.compat.v1.raw_ops.ScatterUpdate
tf.raw_ops.ScatterUpdate(
ref, indices, updates, use_locking=True, name=None
)
This operation computes # Scalar indices
ref[indices, ...] = updates[...]
# Vector indices (for each i)
ref[indices[i], ...] = updates[i, ...]
# High rank indi... | |
doc_1304 |
Takes an arbitrary Python function and returns a NumPy ufunc. Can be used, for example, to add broadcasting to a built-in Python function (see Examples section). Parameters
funcPython function object
An arbitrary Python function.
ninint
The number of input arguments.
noutint
The number of objects return... | |
doc_1305 |
Set the yaxis' tick locations and optionally labels. If necessary, the view limits of the Axis are expanded so that all given ticks are visible. Parameters
tickslist of floats
List of tick locations.
labelslist of str, optional
List of tick labels. If not set, the labels show the data value.
minorbool, de... | |
doc_1306 |
Initialize the artist inspector with an Artist or an iterable of Artists. If an iterable is used, we assume it is a homogeneous sequence (all Artists are of the same type) and it is your responsibility to make sure this is so. | |
doc_1307 |
Return the group id. | |
doc_1308 |
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters
Xndarray of shape (n_samples_X, n_features)
Left argument of the returned kernel k(X, Y). Returns
K_diagnda... | |
doc_1309 | The Last-Modified entity-header field indicates the date and time at which the origin server believes the variant was last modified. Changed in version 2.0: The datetime object is timezone-aware. | |
doc_1310 | Is True if gradients need to be computed for this Tensor, False otherwise. Note The fact that gradients need to be computed for a Tensor do not mean that the grad attribute will be populated, see is_leaf for more details. | |
doc_1311 | Set the host and the port for HTTP Connect Tunnelling. This allows running the connection through a proxy server. The host and port arguments specify the endpoint of the tunneled connection (i.e. the address included in the CONNECT request, not the address of the proxy server). The headers argument should be a mapping ... | |
doc_1312 |
Return whether units are set on any axis. | |
doc_1313 |
Create an ellipoid kernel for restoration.rolling_ball. Parameters
shapearraylike
Length of the principal axis of the ellipsoid (excluding the intensity axis). The kernel needs to have the same dimensionality as the image it will be applied to.
intensityint
Length of the intensity axis of the ellipsoid. ... | |
doc_1314 | Initialize the internal data structures. If given, files must be a sequence of file names which should be used to augment the default type map. If omitted, the file names to use are taken from knownfiles; on Windows, the current registry settings are loaded. Each file named in files or knownfiles takes precedence over ... | |
doc_1315 |
Check if the Index only consists of booleans. Returns
bool
Whether or not the Index only consists of booleans. See also is_integer
Check if the Index only consists of integers. is_floating
Check if the Index is a floating type. is_numeric
Check if the Index only consists of numeric data. is_object
Ch... | |
doc_1316 | See Migration guide for more details. tf.compat.v1.keras.layers.DepthwiseConv2D
tf.keras.layers.DepthwiseConv2D(
kernel_size, strides=(1, 1), padding='valid', depth_multiplier=1,
data_format=None, dilation_rate=(1, 1), activation=None, use_bias=True,
depthwise_initializer='glorot_uniform',
bias_initia... | |
doc_1317 |
pygame module for audio cdrom control The cdrom module manages the CD and DVD drives on a computer. It can also control the playback of audio CDs. This module needs to be initialized before it can do anything. Each CD object you create represents a cdrom drive and must also be initialized individually before it ca... | |
doc_1318 |
Chan-Vese segmentation algorithm. Active contour model by evolving a level set. Can be used to segment objects without clearly defined boundaries. Parameters
image(M, N) ndarray
Grayscale image to be segmented.
mufloat, optional
‘edge length’ weight parameter. Higher mu values will produce a ‘round’ edge, w... | |
doc_1319 | See Migration guide for more details. tf.compat.v1.raw_ops.ParseSingleExample
tf.raw_ops.ParseSingleExample(
serialized, dense_defaults, num_sparse, sparse_keys, dense_keys, sparse_types,
dense_shapes, name=None
)
Args
serialized A Tensor of type string. A vector containing a batch of binary seriali... | |
doc_1320 | Creates a unique constraint in the database. | |
doc_1321 | In-place version of bitwise_and() | |
doc_1322 | returns the squared Euclidean magnitude of the vector. magnitude_squared() -> float calculates the magnitude of the vector which follows from the theorem: vec.magnitude_squared() == vec.x**2 + vec.y**2 + vec.z**2. This is faster than vec.magnitude() because it avoids the square root. | |
doc_1323 |
Return self%value. | |
doc_1324 | Return a writer object responsible for converting the user’s data into delimited strings on the given file-like object. csvfile can be any object with a write() method. If csvfile is a file object, it should be opened with newline='' 1. An optional dialect parameter can be given which is used to define a set of paramet... | |
doc_1325 |
Signed integer type, compatible with C int. Character code
'i' Alias on this platform (Linux x86_64)
numpy.int32: 32-bit signed integer (-2_147_483_648 to 2_147_483_647). | |
doc_1326 | A decorator to indicate to type checkers that the decorated method cannot be overridden, and the decorated class cannot be subclassed. For example: class Base:
@final
def done(self) -> None:
...
class Sub(Base):
def done(self) -> None: # Error reported by type checker
...
@final
class Le... | |
doc_1327 |
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_1328 | tf.squeeze(
input, axis=None, name=None
)
Given a tensor input, this operation returns a tensor of the same type with all dimensions of size 1 removed. If you don't want to remove all size 1 dimensions, you can remove specific size 1 dimensions by specifying axis. For example: # 't' is a tensor of shape [1, 2, 1, ... | |
doc_1329 |
Test whether the artist contains the mouse event. Parameters
mouseeventmatplotlib.backend_bases.MouseEvent
Returns
containsbool
Whether any values are within the radius.
detailsdict
An artist-specific dictionary of details of the event context, such as which points are contained in the pick radius. Se... | |
doc_1330 |
Applies a softmax followed by a logarithm. While mathematically equivalent to log(softmax(x)), doing these two operations separately is slower, and numerically unstable. This function uses an alternative formulation to compute the output and gradient correctly. See LogSoftmax for more details. Parameters
input (T... | |
doc_1331 | Returns a tensor where each sub-tensor of input along dimension dim is normalized such that the p-norm of the sub-tensor is lower than the value maxnorm Note If the norm of a row is lower than maxnorm, the row is unchanged Parameters
input (Tensor) – the input tensor.
p (float) – the power for the norm computati... | |
doc_1332 |
Reduce X to the selected features and then predict using the
underlying estimator. Parameters
Xarray of shape [n_samples, n_features]
The input samples. Returns
yarray of shape [n_samples]
The predicted target values. | |
doc_1333 |
Compute the roots of a Legendre series. Return the roots (a.k.a. “zeros”) of the polynomial \[p(x) = \sum_i c[i] * L_i(x).\] Parameters
c1-D array_like
1-D array of coefficients. Returns
outndarray
Array of the roots of the series. If all the roots are real, then out is also real, otherwise it is compl... | |
doc_1334 |
Set the lower and upper numerical bounds of the y-axis. This method will honor axis inversion regardless of parameter order. It will not change the autoscaling setting (get_autoscaley_on()). Parameters
lower, upperfloat or None
The lower and upper bounds. If None, the respective axis bound is not modified. ... | |
doc_1335 | Registers a callable to convert a bytestring from the database into a custom Python type. The callable will be invoked for all database values that are of the type typename. Confer the parameter detect_types of the connect() function for how the type detection works. Note that typename and the name of the type in your ... | |
doc_1336 |
Combine an rgb image with an intensity map using "soft light" blending, using the "pegtop" formula. Parameters
rgbndarray
An MxNx3 RGB array of floats ranging from 0 to 1 (color image).
intensityndarray
An MxNx1 array of floats ranging from 0 to 1 (grayscale image). Returns
ndarray
An MxNx3 RGB array ... | |
doc_1337 | See torch.sinh() | |
doc_1338 | os.O_RSYNC
os.O_SYNC
os.O_NDELAY
os.O_NONBLOCK
os.O_NOCTTY
os.O_CLOEXEC
The above constants are only available on Unix. Changed in version 3.3: Add O_CLOEXEC constant. | |
doc_1339 | See Migration guide for more details. tf.compat.v1.SparseTensorSpec
tf.SparseTensorSpec(
shape=None, dtype=tf.dtypes.float32
)
Args
shape The dense shape of the SparseTensor, or None to allow any dense shape.
dtype tf.DType of values in the SparseTensor.
Attributes
dtype The tf.dtypes.... | |
doc_1340 |
Bases: matplotlib.backend_bases.RendererBase close_group(s)[source]
Close a grouping element with label s. Only used by the SVG renderer.
draw_gouraud_triangle(gc, points, colors, trans)[source]
Draw a Gouraud-shaded triangle. Parameters
gcGraphicsContextBase
The graphics context.
points(3, 2) array... | |
doc_1341 |
The ordinal day of the year. | |
doc_1342 |
Bases: object valid is a list of legal strings.
matplotlib.rcsetup.cycler(*args, **kwargs)[source]
Create a Cycler object much like cycler.cycler(), but includes input validation. Call signatures: cycler(cycler)
cycler(label=values[, label2=values2[, ...]])
cycler(label, values)
Form 1 copies a given Cycler ob... | |
doc_1343 | Encode path-like filename to the filesystem encoding with 'surrogateescape' error handler, or 'strict' on Windows; return bytes unchanged. fsdecode() is the reverse function. New in version 3.2. Changed in version 3.6: Support added to accept objects implementing the os.PathLike interface. | |
doc_1344 | Query or modify the options of the specific tab_id. If kw is not given, returns a dictionary of the tab option values. If option is specified, returns the value of that option. Otherwise, sets the options to the corresponding values. | |
doc_1345 | Schedules the callable, fn, to be executed as fn(*args **kwargs) and returns a Future object representing the execution of the callable. with ThreadPoolExecutor(max_workers=1) as executor:
future = executor.submit(pow, 323, 1235)
print(future.result()) | |
doc_1346 |
Return whether this axes supports the zoom box button functionality. Polar axes do not support zoom boxes. | |
doc_1347 | Returns the name of the current time zone. | |
doc_1348 | tf.keras.constraints.max_norm Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.constraints.MaxNorm, tf.compat.v1.keras.constraints.max_norm
tf.keras.constraints.MaxNorm(
max_value=2, axis=0
)
Constrains the weights incident to each hidden unit to have a norm less than or equa... | |
doc_1349 |
Setup for writing the movie file. Parameters
figFigure
The figure to grab the rendered frames from.
outfilestr
The filename of the resulting movie file.
dpifloat, default: fig.dpi
The dpi of the output file. This, with the figure size, controls the size in pixels of the resulting movie file.
frame_pre... | |
doc_1350 | Reads one line from the stream. Parameters
size (Optional[int]) – Return type
bytes | |
doc_1351 |
Return the TexManager instance. | |
doc_1352 |
Probability calibration with isotonic regression or logistic regression. This class uses cross-validation to both estimate the parameters of a classifier and subsequently calibrate a classifier. With default ensemble=True, for each cv split it fits a copy of the base estimator to the training subset, and calibrates i... | |
doc_1353 | Create a new debugging server. Arguments are as per SMTPServer. Messages will be discarded, and printed on stdout. | |
doc_1354 | See torch.multinomial() | |
doc_1355 | Returns the length of this geometry (e.g., 0 for a Point, the length of a LineString, or the circumference of a Polygon). | |
doc_1356 | Return True if string starts with the prefix, otherwise return False. prefix can also be a tuple of prefixes to look for. With optional start, test string beginning at that position. With optional end, stop comparing string at that position. | |
doc_1357 |
Return probability estimates for the test vectors X. Parameters
Xarray-like of shape (n_samples, n_features)
Test data. Returns
Pndarray of shape (n_samples, n_classes) or list of such arrays
Returns the probability of the sample for each class in the model, where classes are ordered arithmetically, for... | |
doc_1358 |
Find indices where elements should be inserted to maintain order. Find the indices into a sorted Series self such that, if the corresponding elements in value were inserted before the indices, the order of self would be preserved. Note The Series must be monotonically sorted, otherwise wrong locations will likely be... | |
doc_1359 |
Return a short string version of the tick value. Defaults to the position-independent long value. | |
doc_1360 | Parse the form data in the environ and return it as tuple in the form (stream, form, files). You should only call this method if the transport method is POST, PUT, or PATCH. If the mimetype of the data transmitted is multipart/form-data the files multidict will be filled with FileStorage objects. If the mimetype is unk... | |
doc_1361 | Append a new item with value x to the end of the array. | |
doc_1362 |
Estimate model parameters using X and predict the labels for X. The method fits the model n_init times and sets the parameters with which the model has the largest likelihood or lower bound. Within each trial, the method iterates between E-step and M-step for max_iter times until the change of likelihood or lower bou... | |
doc_1363 |
Return the offsets for the collection. | |
doc_1364 |
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_1365 | See Migration guide for more details. tf.compat.v1.keras.activations.swish
tf.keras.activations.swish(
x
)
Swish activation function which returns x*sigmoid(x). It is a smooth, non-monotonic function that consistently matches or outperforms ReLU on deep networks, it is unbounded above and bounded below. Example ... | |
doc_1366 | class sklearn.ensemble.ExtraTreesClassifier(n_estimators=100, *, criterion='gini', max_depth=None, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_features='auto', max_leaf_nodes=None, min_impurity_decrease=0.0, min_impurity_split=None, bootstrap=False, oob_score=False, n_jobs=None, random_st... | |
doc_1367 |
Estimate the bandwidth to use with the mean-shift algorithm. That this function takes time at least quadratic in n_samples. For large datasets, it’s wise to set that parameter to a small value. Parameters
Xarray-like of shape (n_samples, n_features)
Input points.
quantilefloat, default=0.3
should be between... | |
doc_1368 | Apply this handler’s filters to the record and return True if the record is to be processed. The filters are consulted in turn, until one of them returns a false value. If none of them return a false value, the record will be emitted. If one returns a false value, the handler will not emit the record. | |
doc_1369 | Returns copies of the rules wrapped and expands string templates in the endpoint, rule, defaults or subdomain sections. Here a small example for such a rule template: from werkzeug.routing import Map, Rule, RuleTemplate
resource = RuleTemplate([
Rule('/$name/', endpoint='$name.list'),
Rule('/$name/<int:id>', e... | |
doc_1370 | An Executor subclass that uses a pool of at most max_workers threads to execute calls asynchronously. initializer is an optional callable that is called at the start of each worker thread; initargs is a tuple of arguments passed to the initializer. Should initializer raise an exception, all currently pending jobs will ... | |
doc_1371 |
Convert inputs to arrays with at least one dimension. Scalar inputs are converted to 1-dimensional arrays, whilst higher-dimensional inputs are preserved. Parameters
arys1, arys2, …array_like
One or more input arrays. Returns
retndarray
An array, or list of arrays, each with a.ndim >= 1. Copies are made... | |
doc_1372 | A mapping of ContextVars to their values. Context() creates an empty context with no values in it. To get a copy of the current context use the copy_context() function. Context implements the collections.abc.Mapping interface.
run(callable, *args, **kwargs)
Execute callable(*args, **kwargs) code in the context obje... | |
doc_1373 | See Migration guide for more details. tf.compat.v1.raw_ops.Neg
tf.raw_ops.Neg(
x, name=None
)
I.e., \(y = -x\).
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, int8, int16, int32, int64, complex64, complex128.
name A name for the operation (optional).
... | |
doc_1374 | The OpenerDirector class opens URLs via BaseHandlers chained together. It manages the chaining of handlers, and recovery from errors. | |
doc_1375 | Set the state of the encoder to state. state must be an encoder state returned by getstate(). | |
doc_1376 | True if the QuerySet is ordered — i.e. has an order_by() clause or a default ordering on the model. False otherwise. | |
doc_1377 | Deletes the specified key. key is an already open key, or one of the predefined HKEY_* constants. sub_key is a string that must be a subkey of the key identified by the key parameter. This value must not be None, and the key may not have subkeys. This method can not delete keys with subkeys. If the method succeeds, the... | |
doc_1378 | This is raised if data is specified for a node which does not support data. | |
doc_1379 | Return current line number and offset. | |
doc_1380 |
Compute the 2-dimensional inverse finite radon transform (iFRT) for an (n+1) x n integer array. Parameters
aarray_like
A 2-D (n+1) row x n column integer array. Returns
iFRT2-D n x n ndarray
Inverse Finite Radon Transform array of n x n integer coefficients. See also
frt2
The two-dimensional FR... | |
doc_1381 | Raised when a Unicode-related encoding or decoding error occurs. It is a subclass of ValueError. UnicodeError has attributes that describe the encoding or decoding error. For example, err.object[err.start:err.end] gives the particular invalid input that the codec failed on.
encoding
The name of the encoding that ra... | |
doc_1382 |
Bases: matplotlib.patches.BoxStyle.Sawtooth A box with a rounded sawtooth outline. Parameters
padfloat, default: 0.3
The amount of padding around the original box.
tooth_sizefloat, default: pad/2
Size of the sawtooth. __call__(x0, y0, width, height, mutation_size, mutation_aspect=<deprecated parameter... | |
doc_1383 | Return True if a stopped child has been resumed by delivery of SIGCONT (if the process has been continued from a job control stop), otherwise return False. See WCONTINUED option. Availability: Unix. | |
doc_1384 | tf.compat.v1.tuple(
tensors, name=None, control_inputs=None
)
This creates a tuple of tensors with the same values as the tensors argument, except that the value of each tensor is only returned after the values of all tensors have been computed. control_inputs contains additional ops that have to finish before thi... | |
doc_1385 | import ssl
hostname = 'www.python.org'
context = ssl.create_default_context()
with socket.create_connection((hostname, 443)) as sock:
with context.wrap_socket(sock, server_hostname=hostname) as ssock:
print(ssock.version())
Client socket example with custom context and IPv4: hostname = 'www.python.org'
#... | |
doc_1386 |
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_1387 |
Set the rectangle width. Parameters
wfloat | |
doc_1388 | This function is used to turn the capture of warnings by logging on and off. If capture is True, warnings issued by the warnings module will be redirected to the logging system. Specifically, a warning will be formatted using warnings.formatwarning() and the resulting string logged to a logger named 'py.warnings' with ... | |
doc_1389 | Object that when printed, prints the message “Type license() to see the full license text”, and when called, displays the full license text in a pager-like fashion (one screen at a time). | |
doc_1390 |
Get the width, height, and descent (offset from the bottom to the baseline), in display coords, of the string s with FontProperties prop. | |
doc_1391 | logging.config.dictConfig(config)
Takes the logging configuration from a dictionary. The contents of this dictionary are described in Configuration dictionary schema below. If an error is encountered during configuration, this function will raise a ValueError, TypeError, AttributeError or ImportError with a suitably ... | |
doc_1392 | Suspend or resume input or output on file descriptor fd. The action argument can be TCOOFF to suspend output, TCOON to restart output, TCIOFF to suspend input, or TCION to restart input. | |
doc_1393 | globally disables swizzling for vectors. disable_swizzling() -> None DEPRECATED: Not needed anymore. Will be removed in a later version. Disables swizzling for all vectors until enable_swizzling() is called. By default swizzling is disabled. | |
doc_1394 |
Set the parameters of this estimator. Valid parameter keys can be listed with get_params(). Note that you can directly set the parameters of the estimators contained in tranformer_list. Returns
self | |
doc_1395 | Implements the 'ignore' error handling: malformed data is ignored and encoding or decoding is continued without further notice. | |
doc_1396 | Return all breakpoints that are set. | |
doc_1397 | Send an XOVER command. start and end are article numbers delimiting the range of articles to select. The return value is the same of for over(). It is recommended to use over() instead, since it will automatically use the newer OVER command if available. | |
doc_1398 | tf.keras.preprocessing.text_dataset_from_directory(
directory, labels='inferred', label_mode='int',
class_names=None, batch_size=32, max_length=None, shuffle=True, seed=None,
validation_split=None, subset=None, follow_links=False
)
If your directory structure is: main_directory/
...class_a/
......a_text_1.... | |
doc_1399 |
Attributes
reports repeated string reports |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.