_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_28600
For each element in self, return a list of the lines in the element, breaking at line boundaries. See also char.splitlines
doc_28601
Add an etag for the current response if there is none yet. Changed in version 2.0: SHA-1 is used to generate the value. MD5 may not be available in some environments. Parameters overwrite (bool) – weak (bool) – Return type None
doc_28602
Draw a Path instance using the given affine transform.
doc_28603
The relation on the related object back to this object doesn’t exist by default. Setting related_query_name creates a relation from the related object back to this one. This allows querying and filtering from the related object.
doc_28604
Set the character set of the payload to charset, which can either be a Charset instance (see email.charset), a string naming a character set, or None. If it is a string, it will be converted to a Charset instance. If charset is None, the charset parameter will be removed from the Content-Type header (the message will n...
doc_28605
In-place version of div()
doc_28606
Computes the union of all the elements of this geometry. The result obeys the following contract: Unioning a set of LineStrings has the effect of fully noding and dissolving the linework. Unioning a set of Polygons will always return a Polygon or MultiPolygon geometry (unlike GEOSGeometry.union(), which may return geo...
doc_28607
Represents the C void * type. The value is represented as integer. The constructor accepts an optional integer initializer.
doc_28608
Return whether face is colored.
doc_28609
Return whether the artist is animated.
doc_28610
Return a copy of the child path, with the non-affine part of the transform already applied, along with the affine part of the path necessary to complete the transformation.
doc_28611
Process the HTTP request. The default implementation creates a handler instance using a wsgiref.handlers class to implement the actual WSGI application interface.
doc_28612
class argparse.RawTextHelpFormatter class argparse.ArgumentDefaultsHelpFormatter class argparse.MetavarTypeHelpFormatter
doc_28613
See Migration guide for more details. tf.compat.v1.math.reduce_all tf.compat.v1.reduce_all( input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None, keep_dims=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: kee...
doc_28614
Copy the permission bits from src to dst. The file contents, owner, and group are unaffected. src and dst are path-like objects or path names given as strings. If follow_symlinks is false, and both src and dst are symbolic links, copymode() will attempt to modify the mode of dst itself (rather than the file it points t...
doc_28615
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_28616
'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_28617
Copies the storage to pinned memory, if it’s not already pinned.
doc_28618
The signal corresponding to the Ctrl+Break keystroke event. This signal can only be used with os.kill(). Availability: Windows. New in version 3.2.
doc_28619
See Migration guide for more details. tf.compat.v1.keras.layers.UpSampling3D tf.keras.layers.UpSampling3D( size=(2, 2, 2), data_format=None, **kwargs ) Repeats the 1st, 2nd and 3rd dimensions of the data by size[0], size[1] and size[2] respectively. Examples: input_shape = (2, 1, 2, 1, 3) x = tf.constant(1, sha...
doc_28620
A parameter that is not initialized. Unitialized Parameters are a a special case of torch.nn.Parameter where the shape of the data is still unknown. Unlikely a torch.nn.Parameter, uninitialized parameters hold no data and attempting to access some properties, like their shape, will throw a runtime error. The only ope...
doc_28621
Return a list of the names of all folders.
doc_28622
The URI authority, typically a host, but may also contain a port separated by a colon.
doc_28623
Automatically determine how many times to call timeit(). This is a convenience function that calls timeit() repeatedly so that the total time >= 0.2 second, returning the eventual (number of loops, time taken for that number of loops). It calls timeit() with increasing numbers from the sequence 1, 2, 5, 10, 20, 50, … u...
doc_28624
Return whether the artist uses clipping.
doc_28625
See Migration guide for more details. tf.compat.v1.tensor_scatter_nd_update, tf.compat.v1.tensor_scatter_update tf.tensor_scatter_nd_update( tensor, indices, updates, name=None ) This operation creates a new tensor by applying sparse updates to the input tensor. This is similar to an index assignment. # Not impl...
doc_28626
The maximum size of a file which the process may create.
doc_28627
This implementation reaps every terminated processes by calling os.waitpid(-1) directly, possibly breaking other code spawning processes and waiting for their termination. There is no noticeable overhead when handling a big number of children (O(1) each time a child terminates). This solution requires a running event l...
doc_28628
Returns the variance of the array elements, along given axis. Refer to numpy.var for full documentation. See also numpy.var equivalent function
doc_28629
Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc)) <type 'Locator'> >>> print(loc()) [1, 2, 3, 4]
doc_28630
Sort the array, in-place Parameters aarray_like Array to be sorted. axisint, optional Axis along which to sort. If None, the array is flattened before sorting. The default is -1, which sorts along the last axis. kind{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, optional The sorting algorithm used. ...
doc_28631
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_28632
This is a shorthand for print_exception(*sys.exc_info(), limit, file, chain).
doc_28633
A bool that, if True, causes cuDNN to only use deterministic convolution algorithms. See also torch.are_deterministic_algorithms_enabled() and torch.use_deterministic_algorithms().
doc_28634
See Migration guide for more details. tf.compat.v1.raw_ops.ParallelConcat tf.raw_ops.ParallelConcat( values, shape, name=None ) The input tensors are all required to have size 1 in the first dimension. For example: # 'x' is [[1, 4]] # 'y' is [[2, 5]] # 'z' is [[3, 6]] parallel_concat([x, y, z]) => [[1, 4], [2, 5...
doc_28635
Return the url.
doc_28636
Fetches the next row of a query result set, returning a single sequence, or None when no more data is available.
doc_28637
All changes to Maildir mailboxes are immediately applied, so this method does nothing.
doc_28638
Attributes base Returns a copy of the calling offset object with n=1 and all other attributes equal. delta freqstr kwds n name nanos normalize rule_code Methods __call__(*args, **kwargs) Call self as a function. rollback Roll provided date backward to next offset onl...
doc_28639
Remove a header from the set. This raises an KeyError if the header is not in the set. Changelog Changed in version 0.5: In older versions a IndexError was raised instead of a KeyError if the object was missing. Parameters header – the header to be removed.
doc_28640
See Migration guide for more details. tf.compat.v1.raw_ops.AccumulateNV2 tf.raw_ops.AccumulateNV2( inputs, shape, name=None ) tf.accumulate_n_v2 performs the same operation as tf.add_n, but does not wait for all of its inputs to be ready before beginning to sum. This can save memory if inputs are ready at differ...
doc_28641
tf.assert_rank tf.debugging.assert_rank( x, rank, message=None, name=None ) This Op checks that the rank of x is equal to rank. If x has a different rank, message, as well as the shape of x are printed, and InvalidArgumentError is raised. Args x Tensor. rank Scalar integer Tensor. message A ...
doc_28642
readline.get_completer_delims() Set or get the word delimiters for completion. These determine the start of the word to be considered for completion (the completion scope). These functions access the rl_completer_word_break_characters variable in the underlying library.
doc_28643
Change the stream position to the given offset. Behaviour depends on the whence parameter. The default value for whence is SEEK_SET. SEEK_SET or 0: seek from the start of the stream (the default); offset must either be a number returned by TextIOBase.tell(), or zero. Any other offset value produces undefined behaviou...
doc_28644
In-place version of round()
doc_28645
See Migration guide for more details. tf.compat.v1.tpu.experimental.initialize_tpu_system tf.tpu.experimental.initialize_tpu_system( cluster_resolver=None ) Args cluster_resolver A tf.distribute.cluster_resolver.TPUClusterResolver, which provides information about the TPU cluster. Returns The ...
doc_28646
Set a property through MsiSummaryInfoSetProperty(). field can have the same values as in GetProperty(), value is the new value of the property. Possible value types are integer and string.
doc_28647
Remove any deletion marks for the mailbox.
doc_28648
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters bbool
doc_28649
See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.Iterator tf.keras.preprocessing.image.Iterator( n, batch_size, shuffle, seed ) Every Iterator must implement the _get_batches_of_transformed_samples method. Arguments n Integer, total number of samples in the dataset to loop ov...
doc_28650
A plain object. Used as a namespace for storing data during an application context. Creating an app context automatically creates this object, which is made available as the g proxy. 'key' in g Check whether an attribute is present. Changelog New in version 0.10. iter(g) Return an iterator over the attribu...
doc_28651
tf.compat.v1.train.checkpoint_exists( checkpoint_prefix ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use standard file APIs to check for files with this prefix. This is the recommended way to check if a checkpoint exists, since it takes into account the...
doc_28652
class ast.Sub class ast.Mult class ast.Div class ast.FloorDiv class ast.Mod class ast.Pow class ast.LShift class ast.RShift class ast.BitOr class ast.BitXor class ast.BitAnd class ast.MatMult Binary operator tokens.
doc_28653
Return whether face is colored.
doc_28654
Return the median of the values over the requested axis. Parameters axis:{index (0)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when computing the result. level:int or level name, default None If the axis is a MultiIndex (hierarchical), count along a particu...
doc_28655
A subclass of SSLError raised when a system error was encountered while trying to fulfill an operation on a SSL socket. Unfortunately, there is no easy way to inspect the original errno number. New in version 3.3.
doc_28656
Returns None.
doc_28657
Returns the log-transformed bounds on the theta. Returns boundsarray of shape (n_dims, 2) The log-transformed bounds on the kernel’s hyperparameters theta
doc_28658
Set the zaxis' 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_28659
See Migration guide for more details. tf.compat.v1.raw_ops.BroadcastArgs tf.raw_ops.BroadcastArgs( s0, s1, name=None ) Given s0 and s1, tensors that represent shapes, compute r0, the broadcasted shape. s0, s1 and r0 are all integer vectors. Args s0 A Tensor. Must be one of the following types: int32, in...
doc_28660
Shutdown connection to server. Returns server BYE response. Changed in version 3.8: The method no longer ignores silently arbitrary exceptions.
doc_28661
Set the artist's clip path. Parameters pathPatch or Path or TransformedPath or None The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed. transformTransform, optional Only used if path is a Path, in which case the given Path is converted to a Tra...
doc_28662
Return True if the IntervalArray is non-overlapping (no Intervals share points) and is either monotonic increasing or monotonic decreasing, else False.
doc_28663
Toggle the toolitem without firing event. Parameters namestr Id of the tool to toggle. toggledbool Whether to set this tool as toggled or not.
doc_28664
Automatically set font size.
doc_28665
Gauss-Chebyshev quadrature. Computes the sample points and weights for Gauss-Chebyshev quadrature. These sample points and weights will correctly integrate polynomials of degree \(2*deg - 1\) or less over the interval \([-1, 1]\) with the weight function \(f(x) = 1/\sqrt{1 - x^2}\). Parameters degint Number of ...
doc_28666
sklearn.preprocessing.binarize(X, *, threshold=0.0, copy=True) [source] Boolean thresholding of array-like or scipy.sparse matrix. Read more in the User Guide. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data to binarize, element by element. scipy.sparse matrices should be in CS...
doc_28667
Aggregate using one or more operations over the specified axis. Parameters func:function, str, list or dict Function to use for aggregating the data. If a function, must either work when passed a Series or when passed to Series.apply. Accepted combinations are: function string function name list of functions a...
doc_28668
Return whether antialiased rendering is used.
doc_28669
POSIX.1-1988 (ustar) format.
doc_28670
See Migration guide for more details. tf.compat.v1.raw_ops.EmptyTensorList tf.raw_ops.EmptyTensorList( element_shape, max_num_elements, element_dtype, name=None ) All list elements must be tensors of dtype element_dtype and shape compatible with element_shape. handle: an empty tensor list. element_dtype: the typ...
doc_28671
By default the <select> widget used by ModelChoiceField will have an empty choice at the top of the list. You can change the text of this label (which is "---------" by default) with the empty_label attribute, or you can disable the empty label entirely by setting empty_label to None: # A custom empty label field1 = fo...
doc_28672
Return the value for key if key is in the underlying mapping, else default. If default is not given, it defaults to None, so that this method never raises a KeyError.
doc_28673
Installs the bloom extension.
doc_28674
Returns True if x is negative; otherwise returns False.
doc_28675
os.WSTOPPED os.WNOWAIT Flags that can be used in options in waitid() that specify what child signal to wait for. Availability: Unix. New in version 3.3.
doc_28676
Determine if it is a key event.
doc_28677
Get or set the PRNG state Returns statedict Dictionary containing the information required to describe the state of the PRNG
doc_28678
Unpack an archive. filename is the full path of the archive. extract_dir is the name of the target directory where the archive is unpacked. If not provided, the current working directory is used. format is the archive format: one of “zip”, “tar”, “gztar”, “bztar”, or “xztar”. Or any other format registered with registe...
doc_28679
tf.experimental.numpy.min( a, axis=None, keepdims=None ) Unsupported arguments: out, initial, where. See the NumPy documentation for numpy.min.
doc_28680
Optional. A boolean attribute that defines if the URLs of this sitemap should be generated using all of your LANGUAGES. The default is False.
doc_28681
Cleans up temporary files that may have been left behind by previous calls to urlretrieve().
doc_28682
A list of CSS classes used for each weekday. The default class list is: cssclasses = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] more styles can be added for each day: cssclasses = ["mon text-bold", "tue", "wed", "thu", "fri", "sat", "sun red"] Note that the length of this list must be seven items.
doc_28683
Write the file named filename to the archive, giving it the archive name arcname (by default, this will be the same as filename, but without a drive letter and with leading path separators removed). If given, compress_type overrides the value given for the compression parameter to the constructor for the new entry. Sim...
doc_28684
If dwFlags specifies STARTF_USESHOWWINDOW, this attribute can be any of the values that can be specified in the nCmdShow parameter for the ShowWindow function, except for SW_SHOWDEFAULT. Otherwise, this attribute is ignored. SW_HIDE is provided for this attribute. It is used when Popen is called with shell=True.
doc_28685
RGB to RGB CIE color space conversion. Parameters rgb(…, 3) array_like The image in RGB format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in RGB CIE format. Same dimensions as input. Raises ValueError If rgb is not at least 2-D with shape (…, 3). References 1 ht...
doc_28686
Create a figure and a set of subplots. This utility wrapper makes it convenient to create common layouts of subplots, including the enclosing figure object, in a single call. Parameters nrows, ncolsint, default: 1 Number of rows/columns of the subplot grid. sharex, shareybool or {'none', 'all', 'row', 'col'},...
doc_28687
See Migration guide for more details. tf.compat.v1.strings.unsorted_segment_join tf.strings.unsorted_segment_join( inputs, segment_ids, num_segments, separator='', name=None ) Computes the string join along segments of a tensor. Given segment_ids with rank N and data with rank N+M: `output[i, k1...kM] = strings....
doc_28688
Returns a GEOSGeometry that represents all points whose distance from this geometry is less than or equal to the given width. The optional quadsegs keyword sets the number of segments used to approximate a quarter circle (defaults is 8).
doc_28689
See Migration guide for more details. tf.compat.v1.raw_ops.Softsign tf.raw_ops.Softsign( features, name=None ) Args features A Tensor. Must be one of the following types: half, bfloat16, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as fe...
doc_28690
Set the locators and formatters of axis to instances suitable for this scale.
doc_28691
See Migration guide for more details. tf.compat.v1.debugging.assert_less_equal tf.compat.v1.assert_less_equal( x, y, data=None, summarize=None, message=None, name=None ) This condition holds if for every pair of (possibly broadcast) elements x[i], y[i], we have x[i] <= y[i]. If both x and y are empty, this is tr...
doc_28692
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorFullMatrix tf.linalg.LinearOperatorFullMatrix( matrix, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=None, name='LinearOperatorFullMatrix' ) This operator wraps a [batch] matrix A (which is a Tensor) wi...
doc_28693
Spec: http://backend.userland.com/rss091
doc_28694
See Migration guide for more details. tf.compat.v1.dequantize, tf.compat.v1.quantization.dequantize tf.quantization.dequantize( input, min_range, max_range, mode='MIN_COMBINED', name=None, axis=None, narrow_range=False, dtype=tf.dtypes.float32 ) [min_range, max_range] are scalar floats that specify the range...
doc_28695
Performs any cleaning on the username (e.g. stripping LDAP DN information) prior to using it to get or create a user object. Returns the cleaned username.
doc_28696
Special construct to add type hints to a dictionary. At runtime it is a plain dict. TypedDict declares a dictionary type that expects all of its instances to have a certain set of keys, where each key is associated with a value of a consistent type. This expectation is not checked at runtime but is only enforced by typ...
doc_28697
Set x and y positions of handles.
doc_28698
Handler for PathCollections, which are used by scatter. Parameters numpointsint Number of points to show in legend entry. yoffsetsarray of floats Length numpoints list of y offsets for each point in legend entry. **kwargs Keyword arguments forwarded to HandlerNpoints. create_collection(orig_handle, ...
doc_28699
The type of socket used by the server; socket.SOCK_STREAM and socket.SOCK_DGRAM are two common values.