_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_27100 | Put the SMTP connection in TLS (Transport Layer Security) mode. All SMTP commands that follow will be encrypted. You should then call ehlo() again. If keyfile and certfile are provided, they are used to create an ssl.SSLContext. Optional context parameter is an ssl.SSLContext object; This is an alternative to using a k... | |
doc_27101 | class sklearn.cluster.AffinityPropagation(*, damping=0.5, max_iter=200, convergence_iter=15, copy=True, preference=None, affinity='euclidean', verbose=False, random_state='warn') [source]
Perform Affinity Propagation Clustering of data. Read more in the User Guide. Parameters
dampingfloat, default=0.5
Damping f... | |
doc_27102 | True if this cookie was received as an RFC 2109 cookie (ie. the cookie arrived in a Set-Cookie header, and the value of the Version cookie-attribute in that header was 1). This attribute is provided because http.cookiejar may ‘downgrade’ RFC 2109 cookies to Netscape cookies, in which case version is 0. | |
doc_27103 | Returns a list of the supported start methods, the first of which is the default. The possible start methods are 'fork', 'spawn' and 'forkserver'. On Windows only 'spawn' is available. On Unix 'fork' and 'spawn' are always supported, with 'fork' being the default. New in version 3.4. | |
doc_27104 |
sc.__array_wrap__(obj) return scalar from array | |
doc_27105 |
Bases: skimage.io.collection.ImageCollection A class containing all frames from multi-frame images. Parameters
load_patternstr or list of str
Pattern glob or filenames to load. The path can be absolute or relative.
conserve_memorybool, optional
Whether to conserve memory by only caching a single frame. Defa... | |
doc_27106 |
Return the maximum of an array or maximum along an axis, ignoring any NaNs. When all-NaN slices are encountered a RuntimeWarning is raised and NaN is returned for that slice. Parameters
aarray_like
Array containing numbers whose maximum is desired. If a is not an array, a conversion is attempted.
axis{int, tu... | |
doc_27107 | If the stderr argument was PIPE, this attribute is a readable stream object as returned by open(). Reading from the stream provides error output from the child process. If the encoding or errors arguments were specified or the universal_newlines argument was True, the stream is a text stream, otherwise it is a byte str... | |
doc_27108 | Read and parse configuration data from f which must be an iterable yielding Unicode strings (for example files opened in text mode). Optional argument source specifies the name of the file being read. If not given and f has a name attribute, that is used for source; the default is '<???>'. New in version 3.2: Replaces... | |
doc_27109 | A function that takes one argument and returns a coerced value. Examples include the built-in int, float, bool and other types. Defaults to an identity function. Note that coercion happens after input validation, so it is possible to coerce to a value not present in choices. | |
doc_27110 |
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). | |
doc_27111 |
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar. | |
doc_27112 | sklearn.metrics.pairwise.pairwise_kernels(X, Y=None, metric='linear', *, filter_params=False, n_jobs=None, **kwds) [source]
Compute the kernel between arrays X and optional array Y. This method takes either a vector array or a kernel matrix, and returns a kernel matrix. If the input is a vector array, the kernels are... | |
doc_27113 | Creates a gin index. To use this index on data types not in the built-in operator classes, you need to activate the btree_gin extension on PostgreSQL. You can install it using the BtreeGinExtension migration operation. Set the fastupdate parameter to False to disable the GIN Fast Update Technique that’s enabled by defa... | |
doc_27114 |
Get or set the y-limits of the current axes. Call signatures: bottom, top = ylim() # return the current ylim
ylim((bottom, top)) # set the ylim to bottom, top
ylim(bottom, top) # set the ylim to bottom, top
If you do not specify args, you can alternatively pass bottom or top as kwargs, i.e.: ylim(top=3) # ad... | |
doc_27115 | os.O_DIRECT
os.O_DIRECTORY
os.O_NOFOLLOW
os.O_NOATIME
os.O_PATH
os.O_TMPFILE
os.O_SHLOCK
os.O_EXLOCK
The above constants are extensions and not present if they are not defined by the C library. Changed in version 3.4: Add O_PATH on systems that support it. Add O_TMPFILE, only available on Linux Kernel ... | |
doc_27116 | See Migration guide for more details. tf.compat.v1.raw_ops.CheckNumerics
tf.raw_ops.CheckNumerics(
tensor, message, name=None
)
When run, reports an InvalidArgument error if tensor has any values that are not a number (NaN) or infinity (Inf). Otherwise, passes tensor as-is.
Args
tensor A Tensor. Must be... | |
doc_27117 |
Predict the classes of X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Array representing the data. Returns
yndarray of shape (n_samples,)
Array with predicted labels. | |
doc_27118 |
Number of iterators possessed by the broadcasted result. Examples >>> x = np.array([1, 2, 3])
>>> y = np.array([[4], [5], [6]])
>>> b = np.broadcast(x, y)
>>> b.numiter
2 | |
doc_27119 |
Numerical negative, element-wise. Parameters
xarray_like or scalar
Input array.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned.... | |
doc_27120 | Rethinking the Inception Architecture for Computer Vision (CVPR 2016) Functions InceptionV3(...): Instantiates the Inception v3 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images. | |
doc_27121 |
Helper decorator for forward methods of custom autograd functions (subclasses of torch.autograd.Function). See the example page for more detail. Parameters
cast_inputs (torch.dtype or None, optional, default=None) – If not None, when forward runs in an autocast-enabled region, casts incoming floating-point CUDA Ten... | |
doc_27122 | A form for allowing a user to change their password. | |
doc_27123 |
Make a horizontal bar plot. The bars are positioned at y with the given alignment. Their dimensions are given by width and height. The horizontal baseline is left (default 0). Many parameters can take either a single value applying to all bars or a sequence of values, one for each bar. Parameters
yfloat or array-... | |
doc_27124 | Sets the given key to list_ (unlike __setitem__()). | |
doc_27125 | Return the exception of the Task. If the wrapped coroutine raised an exception that exception is returned. If the wrapped coroutine returned normally this method returns None. If the Task has been cancelled, this method raises a CancelledError exception. If the Task isn’t done yet, this method raises an InvalidStateErr... | |
doc_27126 | true if the font module is initialized get_init() -> bool Test if the font module is initialized or not. | |
doc_27127 |
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_27128 | The usage is simple: you just pass the match method the current path info as well as the method (which defaults to GET). The following things can then happen: you receive a NotFound exception that indicates that no URL is matching. A NotFound exception is also a WSGI application you can call to get a default page not ... | |
doc_27129 |
Call self as a function. | |
doc_27130 |
Check whether an array-like is of a pandas extension class instance. Deprecated since version 1.0.0: Use is_extension_array_dtype instead. Extension classes include categoricals, pandas sparse objects (i.e. classes represented within the pandas library and not ones external to it like scipy sparse matrices), and da... | |
doc_27131 | Computes the one dimensional discrete Fourier transform of input. Note The Fourier domain representation of any real signal satisfies the Hermitian property: X[i] = conj(X[-i]). This function always returns both the positive and negative frequency terms even though, for real inputs, the negative frequencies are redund... | |
doc_27132 |
Bases: matplotlib.transforms.Transform Parameters
shorthand_namestr
A string representing the "name" of the transform. The name carries no significance other than to improve the readability of str(transform) when DEBUG=True. has_inverse=True
True if this transform has a corresponding inverse transform. ... | |
doc_27133 | Exit code that means the input data was incorrect. Availability: Unix. | |
doc_27134 |
Set the alternate marker face color. Parameters
fccolor | |
doc_27135 |
Return whether the given object is a scalar or string like. | |
doc_27136 |
Join a sequence of arrays along a new axis. The axis parameter specifies the index of the new axis in the dimensions of the result. For example, if axis=0 it will be the first dimension and if axis=-1 it will be the last dimension. New in version 1.10.0. Parameters
arrayssequence of array_like
Each array must... | |
doc_27137 | Return the smallest i such that i is the index of the first occurrence of x in the array. | |
doc_27138 | Clamp all elements in input into the range [ min, max ]. Let min_value and max_value be min and max, respectively, this returns: yi=min(max(xi,min_value),max_value)y_i = \min(\max(x_i, \text{min\_value}), \text{max\_value})
Parameters
input (Tensor) – the input tensor.
min (Number) – lower-bound of the range ... | |
doc_27139 | See Migration guide for more details. tf.compat.v1.saved_model.signature_def_utils.classification_signature_def
tf.compat.v1.saved_model.classification_signature_def(
examples, classes, scores
)
This function produces signatures intended for use with the TensorFlow Serving Classify API (tensorflow_serving/apis/p... | |
doc_27140 | See Migration guide for more details. tf.compat.v1.raw_ops.LogSoftmax
tf.raw_ops.LogSoftmax(
logits, name=None
)
For each batch i and class j we have logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))
Args
logits A Tensor. Must be one of the following types: half, bfloat16, float32, float64. 2-... | |
doc_27141 |
Export a decision tree in DOT format. This function generates a GraphViz representation of the decision tree, which is then written into out_file. Once exported, graphical renderings can be generated using, for example: $ dot -Tps tree.dot -o tree.ps (PostScript format)
$ dot -Tpng tree.dot -o tree.png (PNG f... | |
doc_27142 | See Migration guide for more details. tf.compat.v1.initializers.variables
tf.compat.v1.variables_initializer(
var_list, name='init'
)
After you launch the graph in a session, you can run the returned Op to initialize all the variables in var_list. This Op runs all the initializers of the variables in var_list in... | |
doc_27143 |
Run fit with all sets of parameters. Parameters
Xarray-like, shape (n_samples, n_features)
Training vector, where n_samples is the number of samples and n_features is the number of features.
yarray-like, shape (n_samples,) or (n_samples, n_output), optional
Target relative to X for classification or regress... | |
doc_27144 | """
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_27145 | sys.__stdout__
sys.__stderr__
These objects contain the original values of stdin, stderr and stdout at the start of the program. They are used during finalization, and could be useful to print to the actual standard stream no matter if the sys.std* object has been redirected. It can also be used to restore the actu... | |
doc_27146 | This factory function creates a function that can be used as a callable for copytree()’s ignore argument, ignoring files and directories that match one of the glob-style patterns provided. See the example below. | |
doc_27147 |
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_27148 |
Sort Series by index labels. Returns a new Series sorted by label if inplace argument is False, otherwise updates the original series and returns None. Parameters
axis:int, default 0
Axis to direct sorting. This can only be 0 for Series.
level:int, optional
If not None, sort on values in specified index lev... | |
doc_27149 | Return the local date and time corresponding to the POSIX timestamp, such as is returned by time.time(). If optional argument tz is None or not specified, the timestamp is converted to the platform’s local date and time, and the returned datetime object is naive. If tz is not None, it must be an instance of a tzinfo su... | |
doc_27150 | Extends this array with data from the given unicode string. The array must be a type 'u' array; otherwise a ValueError is raised. Use array.frombytes(unicodestring.encode(enc)) to append Unicode data to an array of some other type. | |
doc_27151 | See Migration guide for more details. tf.compat.v1.raw_ops.SeluGrad
tf.raw_ops.SeluGrad(
gradients, outputs, name=None
)
Args
gradients A Tensor. Must be one of the following types: half, bfloat16, float32, float64. The backpropagated gradients to the corresponding Selu operation.
outputs A Tensor... | |
doc_27152 | tkinter.WRITABLE
tkinter.EXCEPTION
Constants used in the mask arguments. | |
doc_27153 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_27154 | Should return True if adding an inline object is permitted, False otherwise. obj is the parent object being edited or None when adding a new parent. | |
doc_27155 |
Return x times the hanning window of len(x). See also window_none
Another window algorithm. | |
doc_27156 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListElementShape
tf.raw_ops.TensorListElementShape(
input_handle, shape_type, name=None
)
input_handle: the list element_shape: the shape of elements of the list
Args
input_handle A Tensor of type variant.
shape_type A tf.DType from:... | |
doc_27157 | Get data and node arrays. Returns
arrays: tuple of array
Arrays for storing tree data, index, node data and node bounds. | |
doc_27158 | tf.optimizers.deserialize Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.deserialize
tf.keras.optimizers.deserialize(
config, custom_objects=None
)
Arguments
config Optimizer configuration dictionary.
custom_objects Optional dictionary mapping name... | |
doc_27159 | Move turtle to the origin – coordinates (0,0) – and set its heading to its start-orientation (which depends on the mode, see mode()). >>> turtle.heading()
90.0
>>> turtle.position()
(0.00,-10.00)
>>> turtle.home()
>>> turtle.position()
(0.00,0.00)
>>> turtle.heading()
0.0 | |
doc_27160 | class sklearn.decomposition.TruncatedSVD(n_components=2, *, algorithm='randomized', n_iter=5, random_state=None, tol=0.0) [source]
Dimensionality reduction using truncated SVD (aka LSA). This transformer performs linear dimensionality reduction by means of truncated singular value decomposition (SVD). Contrary to PCA... | |
doc_27161 |
Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event. | |
doc_27162 | Remove the first occurrence of value. If not found, raises a ValueError. | |
doc_27163 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayGradV3
tf.raw_ops.TensorArrayGradV3(
handle, flow_in, source, name=None
)
If the given TensorArray gradient already exists, returns a reference to it. Locks the size of the original TensorArray by disabling its dynamic size flag. A note about ... | |
doc_27164 |
Differentiate. Return a series instance of that is the derivative of the current series. Parameters
mnon-negative int
Find the derivative of order m. Returns
new_seriesseries
A new series representing the derivative. The domain is the same as the domain of the differentiated series. | |
doc_27165 |
Set the arrow style. Old attributes are forgotten. Without arguments (or with arrowstyle=None) returns available box styles as a list of strings. Parameters
arrowstyleNone or ArrowStyle or str, default: None
Can be a string with arrowstyle name with optional comma-separated attributes, e.g.: set_arrowstyle("Fan... | |
doc_27166 | The record is formatted, and then sent to the syslog server. If exception information is present, it is not sent to the server. Changed in version 3.2.1: (See: bpo-12168.) In earlier versions, the message sent to the syslog daemons was always terminated with a NUL byte, because early versions of these daemons expected... | |
doc_27167 | class enum.Enum
Base class for creating enumerated constants. See section Functional API for an alternate construction syntax.
class enum.IntEnum
Base class for creating enumerated constants that are also subclasses of int.
class enum.IntFlag
Base class for creating enumerated constants that can be combin... | |
doc_27168 |
Returns an iterator over immediate children modules. Yields
Module – a child module | |
doc_27169 |
Open and return file-like object. If path is an URL, it will be downloaded, stored in the DataSource directory and opened from there. Parameters
pathstr
Local file path or URL to open.
mode{‘r’, ‘w’, ‘a’}, optional
Mode to open path. Mode ‘r’ for reading, ‘w’ for writing, ‘a’ to append. Available modes depe... | |
doc_27170 | See Migration guide for more details. tf.compat.v1.raw_ops.Bitcast
tf.raw_ops.Bitcast(
input, type, name=None
)
Given a tensor input, this operation returns a tensor that has the same buffer data as input with datatype type. If the input datatype T is larger than the output datatype type then the shape changes f... | |
doc_27171 |
Delete self[key]. | |
doc_27172 | class ast.AsyncWith(items, body, type_comment)
async for loops and async with context managers. They have the same fields as For and With, respectively. Only valid in the body of an AsyncFunctionDef. | |
doc_27173 |
Set the edgecolor(s) of the collection. Parameters
ccolor or list of colors or 'face'
The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor. | |
doc_27174 | Replaces NaN, positive infinity, and negative infinity values in input with the values specified by nan, posinf, and neginf, respectively. By default, NaN`s are replaced with zero, positive infinity is replaced with the
greatest finite value representable by :attr:`input’s dtype, and negative infinity is replaced with ... | |
doc_27175 | tf.lite.TFLiteConverter(
funcs, trackable_obj=None
)
Example usage: # Converting a SavedModel to a TensorFlow Lite model.
converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir)
tflite_model = converter.convert()
# Converting a tf.Keras model to a TensorFlow Lite model.
converter = tf.lite.TFLiteCon... | |
doc_27176 | test if one rectangle is inside another contains(Rect) -> bool Returns true when the argument is completely inside the Rect. | |
doc_27177 | Contains the output stream for writing a response back to the client. Proper adherence to the HTTP protocol must be used when writing to this stream in order to achieve successful interoperation with HTTP clients. Changed in version 3.6: This is an io.BufferedIOBase stream. | |
doc_27178 | If a fallback has been set, forward pgettext() to the fallback. Otherwise, return the translated message. Overridden in derived classes. New in version 3.8. | |
doc_27179 |
Introspect data for units converter and update the axis.converter instance if necessary. Return True if data is registered for unit conversion. | |
doc_27180 |
Perform one epoch of stochastic gradient descent on given samples. Internally, this method uses max_iter = 1. Therefore, it is not guaranteed that a minimum of the cost function is reached after calling it once. Matters such as objective convergence and early stopping should be handled by the user. Parameters
X{a... | |
doc_27181 |
Set the uuid applied to id attributes of HTML elements. Parameters
uuid:str
Returns
self:Styler
Notes Almost all HTML elements within the table, and including the <table> element are assigned id attributes. The format is T_uuid_<extra> where <extra> is typically a more specific identifier, such as row1_... | |
doc_27182 | class sklearn.model_selection.RepeatedKFold(*, n_splits=5, n_repeats=10, random_state=None) [source]
Repeated K-Fold cross validator. Repeats K-Fold n times with different randomization in each repetition. Read more in the User Guide. Parameters
n_splitsint, default=5
Number of folds. Must be at least 2.
n_re... | |
doc_27183 | Returns a dictionary containing the WSGI environment for a request. The default implementation copies the contents of the WSGIServer object’s base_environ dictionary attribute and then adds various headers derived from the HTTP request. Each call to this method should return a new dictionary containing all of the relev... | |
doc_27184 |
Returns the number of splitting iterations in the cross-validator Parameters
Xobject
Always ignored, exists for compatibility.
yobject
Always ignored, exists for compatibility.
groupsobject
Always ignored, exists for compatibility. Returns
n_splitsint
Returns the number of splitting iterations i... | |
doc_27185 | A constant that is likely larger than the underlying OS socket buffer size, to make writes blocking. | |
doc_27186 |
Transform data back to its original space. In other words, return an input X_original whose transform would be X. Parameters
Xarray-like, shape (n_samples, n_components)
New data, where n_samples is the number of samples and n_components is the number of components. Returns
X_original array-like, shape (n_... | |
doc_27187 | Returns a URL tuple that holds a IRI. This will try to decode as much information as possible in the URL without losing information similar to how a web browser does it for the URL bar. It’s usually more interesting to directly call uri_to_iri() which will return a string. Return type
werkzeug.urls.BaseURL | |
doc_27188 | This signal is sent when the app context is tearing down. This is always called, even if an exception is caused. Currently functions listening to this signal are called after the regular teardown handlers, but this is not something you can rely on. Example subscriber: def close_db_connection(sender, **extra):
sessi... | |
doc_27189 | This attribute provides a way of setting the upload directory and file name, and can be set in two ways. In both cases, the value is passed to the Storage.save() method. If you specify a string value or a Path, it may contain strftime() formatting, which will be replaced by the date/time of the file upload (so that upl... | |
doc_27190 | Call self as a function. | |
doc_27191 | Exception raised when attempting to parse a file which has no section headers. | |
doc_27192 |
Describe an instantaneous event that occurred at some point. Parameters
msg (string) – ASCII message to associate with the event. | |
doc_27193 |
Return Subtraction of series and other, element-wise (binary operator rsub). 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 ... | |
doc_27194 | Redirects to the same URL but with a slash appended. The behavior of this function is undefined if the path ends with a slash already. Parameters
environ (WSGIEnvironment) – the WSGI environment for the request that triggers the redirect.
code (int) – the status code for the redirect. Return type
Response | |
doc_27195 | A class which defines a default handler for HTTP error responses; all responses are turned into HTTPError exceptions. | |
doc_27196 |
Call self as a function. | |
doc_27197 | The same as SMTP except that utf8 is True. Useful for serializing messages to a message store without using encoded words in the headers. Should only be used for SMTP transmission if the sender or recipient addresses have non-ASCII characters (the smtplib.SMTP.send_message() method handles this automatically). | |
doc_27198 | tf.keras.layers.GlobalMaxPooling1D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.GlobalMaxPool1D, tf.compat.v1.keras.layers.GlobalMaxPooling1D
tf.keras.layers.GlobalMaxPool1D(
data_format='channels_last', **kwargs
)
Downsamples the input representation by taking the... | |
doc_27199 | See Migration guide for more details. tf.compat.v1.raw_ops.StackCloseV2
tf.raw_ops.StackCloseV2(
handle, name=None
)
Args
handle A Tensor of type resource. The handle to a stack.
name A name for the operation (optional).
Returns The created Operation. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.