_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_13000
Send data to the socket. The socket must be connected to a remote socket. The optional flags argument has the same meaning as for recv() above. Returns the number of bytes sent. Applications are responsible for checking that all data has been sent; if only some of the data was transmitted, the application needs to atte...
doc_13001
Parameters: receiver – The callback function which will be connected to this signal. See Receiver functions for more information. sender – Specifies a particular sender to receive signals from. See Connecting to signals sent by specific senders for more information. weak – Django stores signal handlers as we...
doc_13002
Return self>>value.
doc_13003
pygame module for clipboard support. EXPERIMENTAL!: This API may change or disappear in later pygame releases. If you use this, your code may break with the next pygame release. The scrap module is for transferring data to/from the clipboard. This allows for cutting and pasting data between pygame and other applic...
doc_13004
Draw a series of Gouraud triangles. Parameters points(N, 3, 2) array-like Array of N (x, y) points for the triangles. colors(N, 3, 4) array-like Array of N RGBA colors for each point of the triangles. transformmatplotlib.transforms.Transform An affine transform to apply to the points.
doc_13005
Return the offsets for the collection.
doc_13006
Return self.tzinfo.dst(self).
doc_13007
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_13008
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g...
doc_13009
An object with a subset of pathlib.Path methods suitable for traversing directories and opening files. New in version 3.9.
doc_13010
Applies a 2D power-average pooling over an input signal composed of several input planes. If the sum of all inputs to the power of p is zero, the gradient is set to zero as well. See LPPool2d for details.
doc_13011
Return filter function to be used for agg filter.
doc_13012
Return the visibility.
doc_13013
Return the name of the current default string encoding used by the Unicode implementation.
doc_13014
See torch.as_strided()
doc_13015
tf.losses Classes class BinaryCrossentropy: Computes the cross-entropy loss between true labels and predicted labels. class CategoricalCrossentropy: Computes the crossentropy loss between the labels and predictions. class CategoricalHinge: Computes the categorical hinge loss between y_true and y_pred. class CosineSimi...
doc_13016
Return aspect.
doc_13017
See Migration guide for more details. tf.compat.v1.distribute.InputContext tf.distribute.InputContext( num_input_pipelines=1, input_pipeline_id=0, num_replicas_in_sync=1 ) This is a context class that is passed to the user's input function and contains information about the compute replicas and input pipelines. ...
doc_13018
Put the device into non-blocking mode. Once in non-blocking mode, there is no way to return it to blocking mode.
doc_13019
'__main__': block or moved to a separate file. Just make sure it’s not called because this will always start a local WSGI server which we do not want if we deploy that application to CGI / app engine. With CGI, you will also have to make sure that your code does not contain any print statements, or that sys.stdout is o...
doc_13020
The node that immediately follows this one with the same parent. See also previousSibling. If this is the last child of the parent, this attribute will be None. This is a read-only attribute.
doc_13021
Returns the discrete, linear convolution of two one-dimensional sequences. The convolution operator is often seen in signal processing, where it models the effect of a linear time-invariant system on a signal [1]. In probability theory, the sum of two independent random variables is distributed according to the convo...
doc_13022
See Migration guide for more details. tf.compat.v1.raw_ops.MutexV2 tf.raw_ops.MutexV2( container='', shared_name='', name=None ) Args container An optional string. Defaults to "". If non-empty, this variable is placed in the given container. Otherwise, a default container is used. shared_name An o...
doc_13023
Add a spec to a mock. spec can either be an object or a list of strings. Only attributes on the spec can be fetched as attributes from the mock. If spec_set is true then only attributes on the spec can be set.
doc_13024
Gaussian negative log likelihood loss. The targets are treated as samples from Gaussian distributions with expectations and variances predicted by the neural network. For a D-dimensional target tensor modelled as having heteroscedastic Gaussian distributions with a D-dimensional tensor of expectations input and a D-d...
doc_13025
Returns a new tensor with the arcsine of the elements of input. outi=sin⁡−1(inputi)\text{out}_{i} = \sin^{-1}(\text{input}_{i}) Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4) >>> a tensor([-0.5962, 1.4985, -0.4396, 1...
doc_13026
Evaluate the curve at a single point, returning a tuple of d floats.
doc_13027
'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_13028
Works the same way as Signature.bind(), but allows the omission of some required arguments (mimics functools.partial() behavior.) Returns BoundArguments, or raises a TypeError if the passed arguments do not match the signature.
doc_13029
tf.compat.v1.layers.average_pooling3d( inputs, pool_size, strides, padding='valid', data_format='channels_last', name=None ) Arguments inputs The tensor over which to pool. Must have rank 5. pool_size An integer or tuple/list of 3 integers: (pool_depth, pool_height, pool_width) specifying the si...
doc_13030
See Migration guide for more details. tf.compat.v1.sparse.from_dense tf.sparse.from_dense( tensor, name=None ) Only elements not equal to zero will be present in the result. The resulting SparseTensor has the same dtype and shape as the input. Args tensor A dense Tensor to be converted to a SparseTensor...
doc_13031
Convert an array of size 1 to its scalar equivalent. Deprecated since version 1.16: Deprecated, use numpy.ndarray.item() instead. Parameters andarray Input array of size 1. Returns outscalar Scalar representation of a. The output data type is the same type returned by the input’s item method. Exam...
doc_13032
This will send a request to the server using the HTTP request method method and the selector url. If body is specified, the specified data is sent after the headers are finished. It may be a str, a bytes-like object, an open file object, or an iterable of bytes. If body is a string, it is encoded as ISO-8859-1, the def...
doc_13033
See Migration guide for more details. tf.compat.v1.debugging.assert_integer tf.compat.v1.assert_integer( x, message=None, name=None ) Example of adding a dependency to an operation: with tf.control_dependencies([tf.compat.v1.assert_integer(x)]): output = tf.reduce_sum(x) Args x Tensor whose basetype ...
doc_13034
Create script containing source in path script_dir and script_basename. If omit_suffix is False, append .py to the name. Return the full script path.
doc_13035
stop music playback after fading out fadeout(time) -> None Fade out and stop the currently playing music. The time argument denotes the integer milliseconds for which the fading effect is generated. Note, that this function blocks until the music has faded out. Calls to fadeout() and set_volume() will have no effect ...
doc_13036
See Migration guide for more details. tf.compat.v1.raw_ops.LSTMBlockCellGrad tf.raw_ops.LSTMBlockCellGrad( x, cs_prev, h_prev, w, wci, wcf, wco, b, i, cs, f, o, ci, co, cs_grad, h_grad, use_peephole, name=None ) This implementation is to be used in conjunction of LSTMBlockCell. Args x A Tensor. Must...
doc_13037
Alias for set_facecolor.
doc_13038
Set the linestyle(s) for the collection. linestyle description '-' or 'solid' solid line '--' or 'dashed' dashed line '-.' or 'dashdot' dash-dotted line ':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq), where onoffseq is an even length tup...
doc_13039
Default widget: ClearableFileInput Empty value: None Normalizes to: An UploadedFile object that wraps the file content and file name into a single object. Validates that file data has been bound to the form. Also uses FileExtensionValidator to validate that the file extension is supported by Pillow. Error message ke...
doc_13040
turtle.bk(distance) turtle.backward(distance) Parameters distance – a number Move the turtle backward by distance, opposite to the direction the turtle is headed. Do not change the turtle’s heading. >>> turtle.position() (0.00,0.00) >>> turtle.backward(30) >>> turtle.position() (-30.00,0.00)
doc_13041
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_13042
Concatenate all images in the image collection into an array. Parameters ican iterable of images The images to be concatenated. Returns array_catndarray An array having one more dimension than the images in ic. Raises ValueError If images in ic don’t have identical shapes. See also ImageCol...
doc_13043
Suppress the rows and/or columns of a 2-D array that contain masked values. The suppression behavior is selected with the axis parameter. If axis is None, both rows and columns are suppressed. If axis is 0, only rows are suppressed. If axis is 1 or -1, only columns are suppressed. Parameters xarray_like, Masked...
doc_13044
Returns the indices that would sort this array. Refer to numpy.argsort for full documentation. See also numpy.argsort equivalent function
doc_13045
See Migration guide for more details. tf.compat.v1.raw_ops.FixedUnigramCandidateSampler tf.raw_ops.FixedUnigramCandidateSampler( true_classes, num_true, num_sampled, unique, range_max, vocab_file='', distortion=1, num_reserved_ids=0, num_shards=1, shard=0, unigrams=[], seed=0, seed2=0, name=None ) A unig...
doc_13046
tf.nn.conv2d_transpose( input, filters, output_shape, strides, padding='SAME', data_format='NHWC', dilations=None, name=None ) This operation is sometimes called "deconvolution" after (Zeiler et al., 2010), but is really the transpose (gradient) of atrous_conv2d rather than an actual deconvolution. Args ...
doc_13047
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_13048
Compare the files named f1 and f2, returning True if they seem equal, False otherwise. If shallow is true, files with identical os.stat() signatures are taken to be equal. Otherwise, the contents of the files are compared. Note that no external programs are called from this function, giving it portability and efficienc...
doc_13049
returns a list of layers defined (unique), sorted from bottom up. layers() -> layers
doc_13050
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_13051
The form field class to use. Should be a subclass of django.contrib.postgres.forms.BaseRangeField.
doc_13052
Set the height of the ellipse. Parameters heightfloat
doc_13053
See Migration guide for more details. tf.compat.v1.io.serialize_many_sparse tf.compat.v1.serialize_many_sparse( sp_input, name=None, out_type=tf.dtypes.string ) The SparseTensor must have rank R greater than 1, and the first dimension is treated as the minibatch dimension. Elements of the SparseTensor must be so...
doc_13054
Creates a Mask from the given surface from_surface(Surface) -> Mask from_surface(Surface, threshold=127) -> Mask Creates a Mask object from the given surface by setting all the opaque pixels and not setting the transparent pixels. If the surface uses a color-key, then it is used to decide which bits in the resulting ...
doc_13055
Debug a single function call, and return its result.
doc_13056
Read readily available data. Raise EOFError if connection closed and no cooked data available. Return b'' if no cooked data available otherwise. Do not block unless in the midst of an IAC sequence.
doc_13057
window.addstr(y, x, str[, attr]) Paint the character string str at (y, x) with attributes attr, overwriting anything previously on the display. Note Writing outside the window, subwindow, or pad raises curses.error. Attempting to write to the lower right corner of a window, subwindow, or pad will cause an exception...
doc_13058
Convert the characters &, < and > in string s to HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. If the optional flag quote is true, the characters (") and (') are also translated; this helps for inclusion in an HTML attribute value delimited by quotes, as in <a hre...
doc_13059
The month as January=1, December=12. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="M") ... ) >>> datetime_series 0 2000-01-31 1 2000-02-29 2 2000-03-31 dtype: datetime64[ns] >>> datetime_series.dt.month 0 1 1 2 2 3 dtype: int64
doc_13060
Handler for plots produced by stem. Parameters marker_padfloat, default: 0.3 Padding between points in legend entry. numpointsint, optional Number of points to show in legend entry. bottomfloat, optional yoffsetsarray of floats, optional Length numpoints list of y offsets for each point in legend entr...
doc_13061
Read up to n bytes. If n is not provided, or set to -1, read until EOF and return all read bytes. If EOF was received and the internal buffer is empty, return an empty bytes object.
doc_13062
Reverse or permute the axes of an array; returns the modified array. For an array a with two axes, transpose(a) gives the matrix transpose. Refer to numpy.ndarray.transpose for full documentation. Parameters aarray_like Input array. axestuple or list of ints, optional If specified, it must be a tuple or lis...
doc_13063
Calculate exp(x) - 1 for all elements in the array. Parameters xarray_like Input values. 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 ...
doc_13064
A subclass of collections.abc.MutableMapping which stores pickled values in the dict object. By default, version 3 pickles are used to serialize values. The version of the pickle protocol can be specified with the protocol parameter. See the pickle documentation for a discussion of the pickle protocols. If the writebac...
doc_13065
Set field to the contents of the file named value, through MsiRecordSetStream(). field must be an integer; value a string.
doc_13066
See Migration guide for more details. tf.compat.v1.glorot_uniform_initializer, tf.compat.v1.initializers.glorot_uniform tf.compat.v1.keras.initializers.glorot_uniform( seed=None, dtype=tf.dtypes.float32 ) It draws samples from a uniform distribution within [-limit, limit] where limit is sqrt(6 / (fan_in + fan_ou...
doc_13067
Returns True if the cookie should be secure. This currently just returns the value of the SESSION_COOKIE_SECURE setting. Parameters app (Flask) – Return type bool
doc_13068
An instance of EmailPolicy with all defaults unchanged. This policy uses the standard Python \n line endings rather than the RFC-correct \r\n.
doc_13069
See Migration guide for more details. tf.compat.v1.feature_column.categorical_column_with_identity tf.feature_column.categorical_column_with_identity( key, num_buckets, default_value=None ) Use this when your inputs are integers in the range [0, num_buckets), and you want to use the input value itself as the cat...
doc_13070
Return index for first non-NA value or None, if no NA value is found. Returns scalar:type of index Notes If all elements are non-NA/null, returns None. Also returns None for empty Series/DataFrame.
doc_13071
Return True if the message object has a field named name. Matching is done case-insensitively and name should not include the trailing colon. Used for the in operator, e.g.: if 'message-id' in myMessage: print('Message-ID:', myMessage['message-id'])
doc_13072
The Content-Location entity-header field MAY be used to supply the resource location for the entity enclosed in the message when that entity is accessible from a location separate from the requested resource’s URI.
doc_13073
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalIgnoreErrorsDataset tf.raw_ops.ExperimentalIgnoreErrorsDataset( input_dataset, output_types, output_shapes, log_warning=False, name=None ) Args input_dataset A Tensor of type variant. output_types A list of tf.DTypes that has l...
doc_13074
Exit code that means a specified user did not exist. Availability: Unix.
doc_13075
Applies the element-wise function: LeakyReLU(x)=max⁡(0,x)+negative_slope∗min⁡(0,x)\text{LeakyReLU}(x) = \max(0, x) + \text{negative\_slope} * \min(0, x) or LeakyRELU(x)={x, if x≥0negative_slope×x, otherwise \text{LeakyRELU}(x) = \begin{cases} x, & \text{ if } x \geq 0 \\ \text{negative\_slope} \times x, & \text{ ...
doc_13076
tf.compat.v1.nn.quantized_max_pool( input, min_input, max_input, ksize, strides, padding, name=None ) Args input A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16. The 4D (batch x rows x cols x depth) Tensor to MaxReduce over. min_input A Tensor of type float32. Th...
doc_13077
Module: email.mime.base This is the base class for all the MIME-specific subclasses of Message. Ordinarily you won’t create instances specifically of MIMEBase, although you could. MIMEBase is provided primarily as a convenient base class for more specific MIME-aware subclasses. _maintype is the Content-Type major type ...
doc_13078
Compute the differences with an old snapshot. Get statistics as a sorted list of StatisticDiff instances grouped by key_type. See the Snapshot.statistics() method for key_type and cumulative parameters. The result is sorted from the biggest to the smallest by: absolute value of StatisticDiff.size_diff, StatisticDiff.si...
doc_13079
Alias for torch.abs()
doc_13080
Set the vertices of the polygons. Parameters vertslist of array-like The sequence of polygons [verts0, verts1, ...] where each element verts_i defines the vertices of polygon i as a 2D array-like of shape (M, 2). closedbool, default: True Whether the polygon should be closed by adding a CLOSEPOLY connection...
doc_13081
See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DAndRelu tf.raw_ops.QuantizedConv2DAndRelu( input, filter, min_input, max_input, min_filter, max_filter, strides, padding, out_type=tf.dtypes.qint32, dilations=[1, 1, 1, 1], padding_list=[], name=None ) Args input A Tensor. Mus...
doc_13082
See Migration guide for more details. tf.compat.v1.raw_ops.ShuffleDataset tf.raw_ops.ShuffleDataset( input_dataset, buffer_size, seed, seed2, output_types, output_shapes, reshuffle_each_iteration=True, name=None ) Args input_dataset A Tensor of type variant. buffer_size A Tensor of type int64....
doc_13083
Applies a certain gamma value to the Color. correct_gamma (gamma) -> Color Applies a certain gamma value to the Color and returns a new Color with the adjusted RGBA values.
doc_13084
Return index with requested level(s) removed. If resulting index has only 1 level left, the result will be of Index type, not MultiIndex. Parameters level:int, str, or list-like, default 0 If a string is given, must be the name of a level If list-like, elements must be names or indexes of levels. Returns I...
doc_13085
Predict class labels for samples in X. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape [n_samples] Predicted class label per sample.
doc_13086
tf.experimental.numpy.nonzero( a ) See the NumPy documentation for numpy.nonzero.
doc_13087
The total number of pixels in this band. Is equal to width * height.
doc_13088
Returns the default Stream for a given device. Parameters device (torch.device or int, optional) – selected device. Returns the default Stream for the current device, given by current_device(), if device is None (default).
doc_13089
Return a copy of the array collapsed into one dimension. Parameters order{‘C’, ‘F’, ‘A’, ‘K’}, optional ‘C’ means to flatten in row-major (C-style) order. ‘F’ means to flatten in column-major (Fortran- style) order. ‘A’ means to flatten in column-major order if a is Fortran contiguous in memory, row-major order...
doc_13090
Write Styler to an Excel sheet. To write a single Styler to an Excel .xlsx file it is only necessary to specify a target file name. To write to multiple sheets it is necessary to create an ExcelWriter object with a target file name, and specify a sheet in the file to write to. Multiple sheets may be written to by spe...
doc_13091
Get the width, height, and descent (offset from the bottom to the baseline), in display coords, of the string s with FontProperties prop.
doc_13092
returns a ordered list of sprites (first back, last top). sprites() -> sprites
doc_13093
Return the roots of the series polynomial. Compute the roots for the series. Note that the accuracy of the roots decrease the further outside the domain they lie. Returns rootsndarray Array containing the roots of the series.
doc_13094
Return str(self).
doc_13095
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk.
doc_13096
Return a triple (hostname, aliaslist, ipaddrlist) where hostname is the primary host name responding to the given ip_address, aliaslist is a (possibly empty) list of alternative host names for the same address, and ipaddrlist is a list of IPv4/v6 addresses for the same interface on the same host (most likely containing...
doc_13097
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_13098
Initialize self. See help(type(self)) for accurate signature.
doc_13099
tracemalloc.start() # ... run your application ... snapshot = tracemalloc.take_snapshot() top_stats = snapshot.statistics('lineno') print("[ Top 10 ]") for stat in top_stats[:10]: print(stat) Example of output of the Python test suite: [ Top 10 ] <frozen importlib._bootstrap>:716: size=4855 KiB, count=39328, a...