_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_26200
Call self as a function.
doc_26201
A subclass of Exception.
doc_26202
tf.compat.v1.control_flow_v2_enabled() Note: v2 control flow is always enabled inside of tf.function.
doc_26203
Get the mapping of external name references in a Python function or method func to their current values. A named tuple ClosureVars(nonlocals, globals, builtins, unbound) is returned. nonlocals maps referenced names to lexical closure variables, globals to the function’s module globals and builtins to the builtins visib...
doc_26204
Transform the points by the projection matrix and return the clipping result returns txs, tys, tzs, tis
doc_26205
Contains the version string from the request. For example, 'HTTP/1.0'.
doc_26206
class socketserver.TCPServer(server_address, RequestHandlerClass, bind_and_activate=True) This uses the Internet TCP protocol, which provides for continuous streams of data between the client and server. If bind_and_activate is true, the constructor automatically attempts to invoke server_bind() and server_activate()...
doc_26207
The element size of this data-type object. For 18 of the 21 types this number is fixed by the data-type. For the flexible data-types, this number can be anything. Examples >>> arr = np.array([[1, 2], [3, 4]]) >>> arr.dtype dtype('int64') >>> arr.itemsize 8 >>> dt = np.dtype([('name', np.str_, 16), ('grades', np.floa...
doc_26208
tf.argmin tf.math.argmin( input, axis=None, output_type=tf.dtypes.int64, name=None ) Returns the smallest index in case of ties. Args input A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, complex64, int64, qint8, quint8, qint32, bfloat16, uint16, complex128, ha...
doc_26209
Set the hatching pattern hatch can be one of: / - diagonal hatching \ - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large circle . - dots * - stars Letters can be combined, in which case all the specified hatchings are done. If same letter repea...
doc_26210
Remove a callback based on its observer id. See also add_callback
doc_26211
Fetches the next set of rows of a query result, returning a list. An empty list is returned when no more rows are available. The number of rows to fetch per call is specified by the size parameter. If it is not given, the cursor’s arraysize determines the number of rows to be fetched. The method should try to fetch as ...
doc_26212
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo...
doc_26213
Calculates analytical surface area and volume for ellipsoid with semimajor axes aligned with grid dimensions of specified spacing. Parameters afloat Length of semimajor axis aligned with x-axis. bfloat Length of semimajor axis aligned with y-axis. cfloat Length of semimajor axis aligned with z-axis. ...
doc_26214
A set that can be used to check if one etag is present in a collection of etags. as_set(include_weak=False) Convert the ETags object into a python set. Per default all the weak etags are not part of this set. contains(etag) Check if an etag is part of the set ignoring weak tags. It is also possible to use the...
doc_26215
This function transforms a generator function into a coroutine function which returns a generator-based coroutine. The generator-based coroutine is still a generator iterator, but is also considered to be a coroutine object and is awaitable. However, it may not necessarily implement the __await__() method. If gen_func ...
doc_26216
Whether the categories have an ordered relationship.
doc_26217
Class to save and restore signal handlers registered by the Python signal handler.
doc_26218
See Migration guide for more details. tf.compat.v1.raw_ops.Sub tf.raw_ops.Sub( x, y, name=None ) Note: Subtract supports broadcasting. More about broadcasting here Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, uint8, int8, uint16, int16, int32, int64, complex64...
doc_26219
Predict confidence scores for samples. The confidence score for a sample is proportional to the signed distance of that sample to the hyperplane. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns array, shape=(n_samples,) if n_classes == 2 else (n_samples, n_classes) ...
doc_26220
Create a DataFrame with a column containing the Index. Parameters index:bool, default True Set the index of the returned DataFrame as the original Index. name:object, default None The passed name should substitute for the index name (if it has one). Returns DataFrame DataFrame containing the original ...
doc_26221
Return a context object which has the same attributes as the multiprocessing module. If method is None then the default context is returned. Otherwise method should be 'fork', 'spawn', 'forkserver'. ValueError is raised if the specified start method is not available. New in version 3.4.
doc_26222
Returns self tensor as a NumPy ndarray. This tensor and the returned ndarray share the same underlying storage. Changes to self tensor will be reflected in the ndarray and vice versa.
doc_26223
Return True if this entry is a symbolic link (even if broken); return False if the entry points to a directory or any kind of file, or if it doesn’t exist anymore. The result is cached on the os.DirEntry object. Call os.path.islink() to fetch up-to-date information. On the first, uncached call, no system call is requir...
doc_26224
Compute the Standard Score describing x in terms of the number of standard deviations above or below the mean of the normal distribution: (x - mean) / stdev. New in version 3.9.
doc_26225
Create a new server instance. All parameters have the same meaning as for SimpleXMLRPCServer; requestHandler defaults to DocXMLRPCRequestHandler. Changed in version 3.3: The use_builtin_types flag was added.
doc_26226
Predict using the estimated model. This is a wrapper for estimator_.predict(X). Parameters Xnumpy array of shape [n_samples, n_features] Returns yarray, shape = [n_samples] or [n_samples, n_targets] Returns predicted values.
doc_26227
Raised on attempts to modify an object where modifications are not allowed (such as for read-only nodes).
doc_26228
See Migration guide for more details. tf.compat.v1.errors.PermissionDeniedError tf.errors.PermissionDeniedError( node_def, op, message ) For example, running the tf.WholeFileReader.read operation could raise PermissionDeniedError if it receives the name of a file for which the user does not have the read file pe...
doc_26229
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterNdUpdate tf.raw_ops.ResourceScatterNdUpdate( ref, indices, updates, use_locking=True, name=None ) variable according to indices. ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indi...
doc_26230
See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingRMSPropParameters tf.raw_ops.RetrieveTPUEmbeddingRMSPropParameters( num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that retrieves optimization parameters from embedding to host memory. Must be prece...
doc_26231
The request was not successfully authenticated, and the highest priority authentication class does not use WWW-Authenticate headers. — An HTTP 403 Forbidden response will be returned. The request was not successfully authenticated, and the highest priority authentication class does use WWW-Authenticate headers. — An ...
doc_26232
This method makes a backup of a SQLite database even while it’s being accessed by other clients, or concurrently by the same connection. The copy will be written into the mandatory argument target, that must be another Connection instance. By default, or when pages is either 0 or a negative integer, the entire database...
doc_26233
Set the colormap for luminance data. Parameters cmapColormap or str or None
doc_26234
Delete all messages from the mailbox.
doc_26235
Parse data as JSON. If the mimetype does not indicate JSON (application/json, see is_json()), this returns None. If parsing fails, on_json_loading_failed() is called and its return value is used as the return value. Parameters force (bool) – Ignore the mimetype and always try to parse JSON. silent (bool) – Silence...
doc_26236
Set the normalization instance. Parameters normNormalize or None Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.
doc_26237
Return True if the node has any attributes.
doc_26238
Return the sketch parameters for the artist. Returns tuple or None A 3-tuple with the following elements: scale: The amplitude of the wiggle perpendicular to the source line. length: The length of the wiggle along the line. randomness: The scale factor by which the length is shrunken or expanded. Returns Non...
doc_26239
Infers the shape of the forward computation, given the input shape. Defaults to preserving shape.
doc_26240
Destroys the test databases, restoring pre-test conditions by calling teardown_databases().
doc_26241
Alias for set_linewidth.
doc_26242
'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_26243
Trim values at input threshold(s). Assigns values outside boundary to boundary values. Thresholds can be singular values or array like, and in the latter case the clipping is performed element-wise in the specified axis. Parameters lower:float or array-like, default None Minimum threshold value. All values belo...
doc_26244
tf.case( pred_fn_pairs, default=None, exclusive=False, strict=False, name='case' ) See also tf.switch_case. The pred_fn_pairs parameter is a list of pairs of size N. Each pair contains a boolean scalar tensor and a python callable that creates the tensors to be returned if the boolean evaluates to True. defaul...
doc_26245
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_26246
A method to specify the behavior of tracing when preparing values to be used as arguments to nodes in the Graph. By default, the behavior includes: Iterate through collection types (e.g. tuple, list, dict) and recursively call create_args on the elements. Given a Proxy object, return a reference to the underlying IR...
doc_26247
Update the radial origin. Parameters roriginfloat
doc_26248
If policy is specified use the rules it specifies to update and serialize the representation of the message. If policy is not set, use the default policy, which follows the rules of the email RFCs except for line endings (instead of the RFC mandated \r\n, it uses the Python standard \n line endings). For more informati...
doc_26249
Given a form field’s initial value, returns whether or not the widget can be rendered with the required HTML attribute. Forms use this method along with Field.required and Form.use_required_attribute to determine whether or not to display the required attribute for each field. By default, returns False for hidden widge...
doc_26250
Add a header to the message with field name name and value val. The field is appended to the end of the message’s existing fields. Note that this does not overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name name, de...
doc_26251
Like items(), except it includes all values, as a list, for each member of the dictionary. For example: >>> q = QueryDict('a=1&a=2&a=3') >>> q.lists() [('a', ['1', '2', '3'])]
doc_26252
tf.nn.gelu( features, approximate=False, name=None ) Gaussian error linear unit (GELU) computes x * P(X <= x), where P(X) ~ N(0, 1). The (GELU) nonlinearity weights inputs by their value, rather than gates inputs by their sign as in ReLU. For example: x = tf.constant([-3.0, -1.0, 0.0, 1.0, 3.0], dtype=tf.float32)...
doc_26253
Pointwise comparison for set containment in the given values. Roughly equivalent to np.array([x in values for x in self]) Parameters values:Sequence Returns np.ndarray[bool]
doc_26254
Open data URLs. New in version 3.4.
doc_26255
Return a shallow mutable copy of this object. Keep in mind that the standard library’s copy() function is a no-op for this class like for any other python immutable type (eg: tuple).
doc_26256
tf.experimental.numpy.sort( a, axis=-1, kind='quicksort', order=None ) See the NumPy documentation for numpy.sort.
doc_26257
Check if domains match. New in version 1.6.0. Parameters otherclass instance The other class must have the domain attribute. Returns boolboolean True if the domains are the same, False otherwise.
doc_26258
Return a list of the names of all user-defined labels used in the mailbox. Note The actual messages are inspected to determine which labels exist in the mailbox rather than consulting the list of labels in the Babyl options section, but the Babyl section is updated whenever the mailbox is modified.
doc_26259
Set the artist's visibility. Parameters bbool
doc_26260
Add a Line2D to the Axes; return the line. Examples using matplotlib.axes.Axes.add_line Artist within an artist Reference for Matplotlib artists Artist tests Artist tutorial
doc_26261
Returns compression type ('NONE' is the only supported type).
doc_26262
get the state of all keyboard buttons get_pressed() -> bools Returns a sequence of boolean values representing the state of every key on the keyboard. Use the key constant values to index the array. A True value means the that button is pressed. Note Getting the list of pushed buttons with this function is not the p...
doc_26263
Clear objects connected to the label image border. Parameters labels(M[, N[, …, P]]) array of int or bool Imaging data labels. buffer_sizeint, optional The width of the border examined. By default, only objects that touch the outside of the image are removed. bgvalfloat or int, optional Cleared objects ...
doc_26264
The minor version number as an integer
doc_26265
A QuerySet of model objects from which the choices for the field are derived and which is used to validate the user’s selection. It’s evaluated when the form is rendered.
doc_26266
A string representing the full path to the requested page, not including the scheme, domain, or query string. Example: "/music/bands/the_beatles/"
doc_26267
Set the artist transform. Parameters tTransform
doc_26268
Create placeholder nodes corresponding to the signature of the root Module. This method introspects root’s signature and emits those nodes accordingly, also supporting *args and **kwargs.
doc_26269
Create index with target’s values. Parameters target:an iterable method:{None, ‘pad’/’ffill’, ‘backfill’/’bfill’, ‘nearest’}, optional default: exact matches only. pad / ffill: find the PREVIOUS index value if no exact match. backfill / bfill: use NEXT index value if no exact match nearest: use the NEAREST i...
doc_26270
See Migration guide for more details. tf.compat.v1.config.experimental.set_device_policy tf.config.experimental.set_device_policy( device_policy ) The device policy controls how operations requiring inputs on a specific device (e.g., on GPU:0) handle inputs on a different device (e.g. GPU:1). When using the defa...
doc_26271
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedAdd tf.raw_ops.QuantizedAdd( x, y, min_x, max_x, min_y, max_y, Toutput=tf.dtypes.qint32, name=None ) Args x A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16. y A Tensor. Must be one of the follo...
doc_26272
Default loader. This default loader reads an included resource from disk. href is a URL. parse is for parse mode either “xml” or “text”. encoding is an optional text encoding. If not given, encoding is utf-8. Returns the expanded resource. If the parse mode is "xml", this is an ElementTree instance. If the parse mode i...
doc_26273
Returns a string identifying the Python implementation SCM revision.
doc_26274
Return whether the artist is animated.
doc_26275
Do whatever it takes to actually log the specified logging record. This version is intended to be implemented by subclasses and so raises a NotImplementedError.
doc_26276
tf.distribute.experimental.ValueContext( replica_id_in_sync_group=0, num_replicas_in_sync=1 ) This is a context class that is passed to the value_fn in strategy.experimental_distribute_values_from_function and contains information about the compute replicas. The num_replicas_in_sync and replica_id can be used to c...
doc_26277
resize to new resolution scale(Surface, (width, height), DestSurface = None) -> Surface Resizes the Surface to a new resolution. This is a fast scale operation that does not sample the results. An optional destination surface can be used, rather than have it create a new one. This is quicker if you want to repeatedly...
doc_26278
Reason phrase returned by server.
doc_26279
Remove all elements from the deque leaving it with length 0.
doc_26280
Raise a Chebyshev series to a power. Returns the Chebyshev series c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. i.e., [1,2,3] is the series T_0 + 2*T_1 + 3*T_2. Parameters carray_like 1-D array of Chebyshev series coefficients ordered from low to high. powin...
doc_26281
Return extra attributes to place on each item (i.e. item/entry) element.
doc_26282
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_26283
Generates 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,) The target variable for supervised learning problems. grou...
doc_26284
Return a dictionary containing type hints for a function, method, module or class object. This is often the same as obj.__annotations__. In addition, forward references encoded as string literals are handled by evaluating them in globals and locals namespaces. If necessary, Optional[t] is added for function and method ...
doc_26285
tf.compat.v1.string_split( source, sep=None, skip_empty=True, delimiter=None, result_type='SparseTensor', name=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (delimiter). They will be removed in a future version. Instructions for updating: delimiter is deprecated, please use sep instead. Let N be the size of s...
doc_26286
This subclass of TextCalendar can be passed a locale name in the constructor and will return month and weekday names in the specified locale. If this locale includes an encoding all strings containing month and weekday names will be returned as unicode.
doc_26287
Alias for field number 3
doc_26288
tf.compat.v1.layers.separable_conv1d( inputs, filters, kernel_size, strides=1, padding='valid', data_format='channels_last', dilation_rate=1, depth_multiplier=1, activation=None, use_bias=True, depthwise_initializer=None, pointwise_initializer=None, bias_initializer=tf.zeros_initializer(), depthwise...
doc_26289
Wrap CCompiler.compile()
doc_26290
Sender address refused. In addition to the attributes set by on all SMTPResponseException exceptions, this sets ‘sender’ to the string that the SMTP server refused.
doc_26291
Parses command line options and parameter list. args is the argument list to be parsed, without the leading reference to the running program. Typically, this means sys.argv[1:]. shortopts is the string of option letters that the script wants to recognize, with options that require an argument followed by a colon (':'; ...
doc_26292
socket.SOMAXCONN MSG_* SOL_* SCM_* IPPROTO_* IPPORT_* INADDR_* IP_* IPV6_* EAI_* AI_* NI_* TCP_* Many constants of these forms, documented in the Unix documentation on sockets and/or the IP protocol, are also defined in the socket module. They are generally used in arguments to the setsockopt(...
doc_26293
Bases: skimage.viewer.widgets.core.BaseWidget Button which calls callback upon click. Parameters namestr Name of button. callbackcallable f() Function to call when button is clicked. __init__(name, callback) [source] Initialize self. See help(type(self)) for accurate signature.
doc_26294
Whether to try to verify other peers’ certificates and how to behave if verification fails. This attribute must be one of CERT_NONE, CERT_OPTIONAL or CERT_REQUIRED. Changed in version 3.6: SSLContext.verify_mode returns VerifyMode enum: >>> ssl.create_default_context().verify_mode <VerifyMode.CERT_REQUIRED: 2>
doc_26295
Alias for set_facecolor.
doc_26296
tf.compat.v1.train.batch( tensors, batch_size, num_threads=1, capacity=32, enqueue_many=False, shapes=None, dynamic_pad=False, allow_smaller_final_batch=False, shared_name=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Queue-based ...
doc_26297
Constant for Qualcomm’s IPC router protocol, used to communicate with service providing remote processors. Availability: Linux >= 4.7.
doc_26298
Determines the HttpResponse for the change_view() stage. response_change is called after the admin form is submitted and just after the object and all the related instances have been saved. You can override it to change the default behavior after the object has been changed.
doc_26299
Convert the Python object to an object that is a valid JSON type. The tag will be added later. Parameters value (Any) – Return type Any