_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_4000 | Return True if the string is a titlecased string and there is at least one character, for example uppercase characters may only follow uncased characters and lowercase characters only cased ones. Return False otherwise. | |
doc_4001 | Get information about the current windowing system get_wm_info() -> dict Creates a dictionary filled with string keys. The strings and values are arbitrarily created by the system. Some systems may have no information and an empty dictionary will be returned. Most platforms will return a "window" key with the value s... | |
doc_4002 |
Check whether the provided array or dtype is of a boolean dtype. Parameters
arr_or_dtype:array-like or dtype
The array or dtype to check. Returns
boolean
Whether or not the array or dtype is of a boolean dtype. Notes An ExtensionArray is considered boolean when the _is_boolean attribute is set to True... | |
doc_4003 |
Update null elements with value in the same location in other. Combine two DataFrame objects by filling null values in one DataFrame with non-null values from other DataFrame. The row and column indexes of the resulting DataFrame will be the union of the two. Parameters
other:DataFrame
Provided DataFrame to use... | |
doc_4004 | tf.compat.v1.tpu.experimental.AdagradParameters(
learning_rate: float,
initial_accumulator: float = 0.1,
use_gradient_accumulation: bool = True,
clip_weight_min: Optional[float] = None,
clip_weight_max: Optional[float] = None,
weight_decay_factor: Optional[float] = None,
multiply_weight_deca... | |
doc_4005 | A constant that is likely larger than the underlying OS pipe buffer size, to make writes blocking. | |
doc_4006 | Release a lock, decrementing the recursion level. If after the decrement it is zero, reset the lock to unlocked (not owned by any thread), and if any other threads are blocked waiting for the lock to become unlocked, allow exactly one of them to proceed. If after the decrement the recursion level is still nonzero, the ... | |
doc_4007 |
Alias for set_linestyle. | |
doc_4008 | Default widget: SelectMultiple
Empty value: [] (an empty list) Normalizes to: A list of strings. Validates that every value in the given list of values exists in the list of choices. Error message keys: required, invalid_choice, invalid_list
The invalid_choice error message may contain %(value)s, which will be repl... | |
doc_4009 |
Returns a clone of self with given hyperparameters theta. Parameters
thetandarray of shape (n_dims,)
The hyperparameters | |
doc_4010 | test if event types are waiting on the queue peek(eventtype=None) -> bool peek(eventtype=None, pump=True) -> bool Returns True if there are any events of the given type waiting on the queue. If a sequence of event types is passed, this will return True if any of those events are on the queue. If pump is True (the def... | |
doc_4011 | operator.__add__(a, b)
Return a + b, for a and b numbers. | |
doc_4012 | See Migration guide for more details. tf.compat.v1.raw_ops.Conv2D
tf.raw_ops.Conv2D(
input, filter, strides, padding, use_cudnn_on_gpu=True, explicit_paddings=[],
data_format='NHWC', dilations=[1, 1, 1, 1], name=None
)
Given an input tensor of shape [batch, in_height, in_width, in_channels] and a filter / ke... | |
doc_4013 |
Documentation on the ZIP file format by Phil Katz, the creator of the format and algorithms used.
PEP 273 - Import Modules from Zip Archives
Written by James C. Ahlstrom, who also provided an implementation. Python 2.3 follows the specification in PEP 273, but uses an implementation written by Just van Rossum that ... | |
doc_4014 | Return a suite of all test cases contained in the given module. This method searches module for classes derived from TestCase and creates an instance of the class for each test method defined for the class. Note While using a hierarchy of TestCase-derived classes can be convenient in sharing fixtures and helper functi... | |
doc_4015 | The maximum age in seconds the access control settings can be cached for. | |
doc_4016 | Sets x, y and z from a spherical coordinates 3-tuple. from_spherical((r, theta, phi)) -> None Sets x, y and z from a tuple (r, theta, phi) where r is the radial distance, theta is the inclination angle and phi is the azimuthal angle. | |
doc_4017 | Convert a 32-bit packed IPv4 address (a bytes-like object four bytes in length) to its standard dotted-quad string representation (for example, ‘123.45.67.89’). This is useful when conversing with a program that uses the standard C library and needs objects of type struct in_addr, which is the C type for the 32-bit pac... | |
doc_4018 | class sklearn.linear_model.LogisticRegression(penalty='l2', *, dual=False, tol=0.0001, C=1.0, fit_intercept=True, intercept_scaling=1, class_weight=None, random_state=None, solver='lbfgs', max_iter=100, multi_class='auto', verbose=0, warm_start=False, n_jobs=None, l1_ratio=None) [source]
Logistic Regression (aka logi... | |
doc_4019 | The net mask, as an IPv4Address object. | |
doc_4020 | Assume authentication as user. Allows an authorised administrator to proxy into any user’s mailbox. | |
doc_4021 | operator.le(a, b)
operator.eq(a, b)
operator.ne(a, b)
operator.ge(a, b)
operator.gt(a, b)
operator.__lt__(a, b)
operator.__le__(a, b)
operator.__eq__(a, b)
operator.__ne__(a, b)
operator.__ge__(a, b)
operator.__gt__(a, b)
Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva... | |
doc_4022 | tf.experimental.numpy.lcm(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.lcm. | |
doc_4023 |
Return a string representation of a number in the given base system. Parameters
numberint
The value to convert. Positive and negative values are handled.
baseint, optional
Convert number to the base number system. The valid range is 2-36, the default value is 2.
paddingint, optional
Number of zeros padd... | |
doc_4024 |
Return log-probability estimates for the test vector X. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
Carray-like of shape (n_samples, n_classes)
Returns the log-probability of the samples for each class in the model. The columns correspond to the classes in sorted order, as they appear ... | |
doc_4025 | This function implements the standard .mo file search algorithm. It takes a domain, identical to what textdomain() takes. Optional localedir is as in bindtextdomain(). Optional languages is a list of strings, where each string is a language code. If localedir is not given, then the default system locale directory is us... | |
doc_4026 |
Run the pandas test suite using pytest. | |
doc_4027 | Return a new instance of the named tuple replacing specified fields with new values: >>> p = Point(x=11, y=22)
>>> p._replace(x=33)
Point(x=33, y=22)
>>> for partnum, record in inventory.items():
... inventory[partnum] = record._replace(price=newprices[partnum], timestamp=time.now()) | |
doc_4028 |
Alias for get_edgecolor. | |
doc_4029 | alias of werkzeug.datastructures.ImmutableList | |
doc_4030 |
Construct from two arrays defining the left and right bounds. Parameters
left:array-like (1-dimensional)
Left bounds for each interval.
right:array-like (1-dimensional)
Right bounds for each interval.
closed:{‘left’, ‘right’, ‘both’, ‘neither’}, default ‘right’
Whether the intervals are closed on the le... | |
doc_4031 | See Migration guide for more details. tf.compat.v1.raw_ops.PreventGradient
tf.raw_ops.PreventGradient(
input, message='', name=None
)
When executed in a graph, this op outputs its input tensor as-is. When building ops to compute gradients, the TensorFlow gradient system will return an error when trying to lookup... | |
doc_4032 |
Draw samples from a binomial distribution. Samples are drawn from a binomial distribution with specified parameters, n trials and p probability of success where n an integer >= 0 and p is in the interval [0,1]. (n may be input as a float, but it is truncated to an integer in use) Parameters
nint or array_like of ... | |
doc_4033 | Perform a TurtleScreen update. To be used when tracer is turned off. | |
doc_4034 |
[Deprecated] Notes Deprecated since version 3.4: | |
doc_4035 |
Bases: object A backend-independent abstraction of a figure container and controller. The figure manager is used by pyplot to interact with the window in a backend-independent way. It's an adapter for the real (GUI) framework that represents the visual figure on screen. GUI backends define from this class to translat... | |
doc_4036 |
tick_loc, tick_angle, tick_label | |
doc_4037 |
Return the indices of the minimum values in the specified axis ignoring NaNs. For all-NaN slices ValueError is raised. Warning: the results cannot be trusted if a slice contains only NaNs and Infs. Parameters
aarray_like
Input data.
axisint, optional
Axis along which to operate. By default flattened input i... | |
doc_4038 |
Combine list-like of Categorical-like, unioning categories. All categories must have the same dtype. Parameters
to_union:list-like
Categorical, CategoricalIndex, or Series with dtype=’category’.
sort_categories:bool, default False
If true, resulting categories will be lexsorted, otherwise they will be order... | |
doc_4039 | See Migration guide for more details. tf.compat.v1.train.FeatureList
Attributes
feature repeated Feature feature | |
doc_4040 |
Opens an nvprof trace file and parses autograd annotations. Parameters
path (str) – path to nvprof trace | |
doc_4041 | Add and return a CheckBox control. | |
doc_4042 | Return True if the object is a member descriptor. CPython implementation detail: Member descriptors are attributes defined in extension modules via PyMemberDef structures. For Python implementations without such types, this method will always return False. | |
doc_4043 |
Draw mathtext using matplotlib.mathtext. | |
doc_4044 |
Attributes
accelerator_exec_micros int64 accelerator_exec_micros
children repeated MultiGraphNodeProto children
cpu_exec_micros int64 cpu_exec_micros
exec_micros int64 exec_micros
float_ops int64 float_ops
graph_nodes repeated GraphNodeProto graph_nodes
name string name
... | |
doc_4045 | Implement checking for unused arguments if desired. The arguments to this function is the set of all argument keys that were actually referred to in the format string (integers for positional arguments, and strings for named arguments), and a reference to the args and kwargs that was passed to vformat. The set of unuse... | |
doc_4046 |
Calculate the illumination intensity for a surface using the defined azimuth and elevation for the light source. This computes the normal vectors for the surface, and then passes them on to shade_normals Parameters
elevation2D array-like
The height values used to generate an illumination map
vert_exagnumber, ... | |
doc_4047 | Stop recording the vertices of a polygon. Current turtle position is last vertex of polygon. This will be connected with the first vertex. | |
doc_4048 |
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal. | |
doc_4049 |
[Deprecated] Return (N, 2) array of (x, y) coordinate of the boundary. Notes Deprecated since version 3.5. | |
doc_4050 | tf.keras.layers.Convolution1D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.Conv1D, tf.compat.v1.keras.layers.Convolution1D
tf.keras.layers.Conv1D(
filters, kernel_size, strides=1, padding='valid',
data_format='channels_last', dilation_rate=1, groups=1,
activ... | |
doc_4051 |
Return greyscale local autolevel of an image. This filter locally stretches the histogram of greyvalues to cover the entire range of values from “white” to “black”. Only greyvalues between percentiles [p0, p1] are considered in the filter. Parameters
image2-D array (uint8, uint16)
Input image.
selem2-D array ... | |
doc_4052 | operator.__ior__(a, b)
a = ior(a, b) is equivalent to a |= b. | |
doc_4053 |
Bases: matplotlib.offsetbox.AnchoredOffsetbox Draw an anchored ellipse of a given size. Parameters
transformmatplotlib.transforms.Transform
The transformation object for the coordinate system in use, i.e., matplotlib.axes.Axes.transData.
width, heightfloat
Width and height of the ellipse, given in coordinat... | |
doc_4054 |
Bases: matplotlib.ticker.LogFormatterMathtext Format values following scientific notation in a logarithmic axis. | |
doc_4055 | See Migration guide for more details. tf.compat.v1.raw_ops.UnbatchDataset
tf.raw_ops.UnbatchDataset(
input_dataset, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant.
output_types A list of tf.DTypes that has length >= 1.
output_shapes A list of shapes (eac... | |
doc_4056 | Return a DOMEventStream that represents the (Unicode) string. | |
doc_4057 | See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingAdagradParametersGradAccumDebug
tf.raw_ops.RetrieveTPUEmbeddingAdagradParametersGradAccumDebug(
num_shards, shard_id, table_id=-1, table_name='', config='',
name=None
)
An op that retrieves optimization parameters from embedding t... | |
doc_4058 | >>> print(windll.kernel32)
<WinDLL 'kernel32', handle ... at ...>
>>> print(cdll.msvcrt)
<CDLL 'msvcrt', handle ... at ...>
>>> libc = cdll.msvcrt
>>>
Windows appends the usual .dll file suffix automatically. Note Accessing the standard C library through cdll.msvcrt will use an outdated version of the l... | |
doc_4059 | The total number of objects, across all pages. Note When determining the number of objects contained in object_list, Paginator will first try calling object_list.count(). If object_list has no count() method, then Paginator will fall back to using len(object_list). This allows objects, such as QuerySet, to use a more ... | |
doc_4060 | Renders a label tag for the form field using the template specified by Form.template_name_label. The available context is:
field: This instance of the BoundField.
contents: By default a concatenated string of BoundField.label and Form.label_suffix (or Field.label_suffix, if set). This can be overridden by the conten... | |
doc_4061 | Return True if the underlying lock is acquired. | |
doc_4062 |
Parameters
new_scale (float) – Value to use as the new scale backoff factor. | |
doc_4063 | Return the hyperbolic tangent of x. | |
doc_4064 | Byte-compile all the .py files found along sys.path. Return a true value if all the files compiled successfully, and a false value otherwise. If skip_curdir is true (the default), the current directory is not included in the search. All other parameters are passed to the compile_dir() function. Note that unlike the oth... | |
doc_4065 |
Estimates the shrunk Ledoit-Wolf covariance matrix. Read more in the User Guide. Parameters
Xarray-like of shape (n_samples, n_features)
Data from which to compute the covariance estimate
assume_centeredbool, default=False
If True, data will not be centered before computation. Useful to work with data whose... | |
doc_4066 |
Return the snap setting. See set_snap for details. | |
doc_4067 | Return an independent clone of this BytesGenerator instance with the exact same option settings, and fp as the new outfp. | |
doc_4068 | draw a circle circle(surface, x, y, r, color) -> None Draws an unfilled circle on the given surface. For a filled circle use filled_circle().
Parameters:
surface (Surface) -- surface to draw on
x (int) -- x coordinate of the center of the circle
y (int) -- y coordinate of the center of the circle
r (int) -... | |
doc_4069 |
Return the xaxis' tick locations in data coordinates. | |
doc_4070 | Returns the unique elements of the input tensor. Note This function is different from torch.unique_consecutive() in the sense that this function also eliminates non-consecutive duplicate values. Note Currently in the CUDA implementation and the CPU implementation when dim is specified, torch.unique always sort the t... | |
doc_4071 | See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingADAMParametersGradAccumDebug
tf.raw_ops.LoadTPUEmbeddingADAMParametersGradAccumDebug(
parameters, momenta, velocities, gradient_accumulators, num_shards, shard_id,
table_id=-1, table_name='', config='', name=None
)
An op that loads op... | |
doc_4072 |
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_4073 |
Cast to DatetimeIndex of Timestamps, at beginning of period. Parameters
freq:str, default frequency of PeriodIndex
Desired frequency.
how:{‘s’, ‘e’, ‘start’, ‘end’}
Convention for converting period to timestamp; start of period vs. end.
copy:bool, default True
Whether or not to return a copy. Returns... | |
doc_4074 | Hash a password with the given method and salt with a string of the given length. The format of the string returned includes the method that was used so that check_password_hash() can check the hash. The format for the hashed string looks like this: method$salt$hash
This method can not generate unsalted passwords but ... | |
doc_4075 |
Wiener-Hunt deconvolution Return the deconvolution with a Wiener-Hunt approach (i.e. with Fourier diagonalisation). Parameters
image(M, N) ndarray
Input degraded image
psfndarray
Point Spread Function. This is assumed to be the impulse response (input image space) if the data-type is real, or the transfer f... | |
doc_4076 | Name of the archive member. | |
doc_4077 | The name of the module defining the class described. | |
doc_4078 | Enable TLS 1.3 post-handshake client authentication. Post-handshake auth is disabled by default and a server can only request a TLS client certificate during the initial handshake. When enabled, a server may request a TLS client certificate at any time after the handshake. When enabled on client-side sockets, the clien... | |
doc_4079 |
Return the fontangle as float. | |
doc_4080 | See Migration guide for more details. tf.compat.v1.raw_ops.StatefulUniform
tf.raw_ops.StatefulUniform(
resource, algorithm, shape, dtype=tf.dtypes.float32, name=None
)
The generated values follow a uniform distribution in the range [0, 1). The lower bound 0 is included in the range, while the upper bound 1 is ex... | |
doc_4081 | Return the filename corresponding to the controlling terminal of the process. Availability: Unix. | |
doc_4082 | A boolean indicating whether the command outputs SQL statements; if True, the output will automatically be wrapped with BEGIN; and COMMIT;. Default value is False. | |
doc_4083 |
Return the current hatching pattern. | |
doc_4084 |
Dot product that handle the sparse matrix case correctly. Parameters
a{ndarray, sparse matrix}
b{ndarray, sparse matrix}
dense_outputbool, default=False
When False, a and b both being sparse will yield sparse output. When True, output will always be a dense array. Returns
dot_product{ndarray, sparse m... | |
doc_4085 | Set when tests can be skipped when they are not useful for PGO. | |
doc_4086 |
YDbDr to RGB color space conversion. Parameters
ydbdr(…, 3) array_like
The image in YDbDr format. Final dimension denotes channels. Returns
out(…, 3) ndarray
The image in RGB format. Same dimensions as input. Raises
ValueError
If ydbdr is not at least 2-D with shape (…, 3). Notes This is the c... | |
doc_4087 | A string representation of the network, with the mask in prefix notation. with_prefixlen and compressed are always the same as str(network). exploded uses the exploded form the network address. | |
doc_4088 | Alias of BadZipFile, for compatibility with older Python versions. Deprecated since version 3.2. | |
doc_4089 | Valid values are 7bit, 8bit, base64, and quoted-printable. See RFC 2045 for more information. | |
doc_4090 |
Modify a sequence in-place by shuffling its contents. This function only shuffles the array along the first axis of a multi-dimensional array. The order of sub-arrays is changed but their contents remains the same. Note New code should use the shuffle method of a default_rng() instance instead; please see the Quick ... | |
doc_4091 | See Migration guide for more details. tf.compat.v1.raw_ops.BytesProducedStatsDataset
tf.raw_ops.BytesProducedStatsDataset(
input_dataset, tag, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant.
tag A Tensor of type string.
output_types A list of tf.DTypes t... | |
doc_4092 | See Migration guide for more details. tf.compat.v1.raw_ops.Copy
tf.raw_ops.Copy(
input, tensor_name='', debug_ops_spec=[], name=None
)
Performs CPU-to-CPU or GPU-to-GPU deep-copying of tensor, depending on the device on which the tensor is allocated. N.B.: If the all downstream attached debug ops are disabled gi... | |
doc_4093 |
Clear the current figure. | |
doc_4094 |
Return the numeric string left-filled with zeros Calls str.zfill element-wise. Parameters
aarray_like, {str, unicode}
Input array.
widthint
Width of string to left-fill elements in a. Returns
outndarray, {str, unicode}
Output array of str or unicode, depending on input type See also str.zfill | |
doc_4095 |
Truncate series to the given degree. Reduce the degree of the series to deg by discarding the high order terms. If deg is greater than the current degree a copy of the current series is returned. This can be useful in least squares where the coefficients of the high degree terms may be very small. New in version 1.5... | |
doc_4096 | See Migration guide for more details. tf.compat.v1.raw_ops.MapDefun
tf.raw_ops.MapDefun(
arguments, captured_inputs, output_types, output_shapes, f,
max_intra_op_parallelism=1, name=None
)
The function given by f is assumed to be stateless, and is executed concurrently on all the slices; up to batch_size (i.... | |
doc_4097 |
Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ImageViewer. For example: viewer += Plugin(...)
Also note that attach automatically calls the filter function so that the image matches the filtered value specified by attached widgets. | |
doc_4098 |
Applies the silu function, element-wise. silu(x)=x∗σ(x),where σ(x) is the logistic sigmoid.\text{silu}(x) = x * \sigma(x), \text{where } \sigma(x) \text{ is the logistic sigmoid.}
Note See Gaussian Error Linear Units (GELUs) where the SiLU (Sigmoid Linear Unit) was originally coined, and see Sigmoid-Weighted Line... | |
doc_4099 | class turtle.RawPen(canvas)
Parameters
canvas – a tkinter.Canvas, a ScrolledCanvas or a TurtleScreen Create a turtle. The turtle has all methods described above as “methods of Turtle/RawTurtle”. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.