_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_25400
A generic version of collections.abc.Iterable. Deprecated since version 3.9: collections.abc.Iterable now supports []. See PEP 585 and Generic Alias Type.
doc_25401
Return the artist's zorder.
doc_25402
Set the artist's visibility. Parameters bbool
doc_25403
Resizes self sparse tensor to the desired size and the number of sparse and dense dimensions. Note If the number of specified elements in self is zero, then size, sparse_dim, and dense_dim can be any size and positive integers such that len(size) == sparse_dim + dense_dim. If self specifies one or more elements, howev...
doc_25404
Search for the object on multiple scales of input image. The function takes the input image, the scale factor by which the searching window is multiplied on each step, minimum window size and maximum window size that specify the interval for the search windows that are applied to the input image to detect objects. Par...
doc_25405
Find edges in an image using the Sobel filter. Parameters imagearray The input image. maskarray of bool, optional Clip the output image to this mask. (Values where mask=0 will be set to 0.) axisint or sequence of int, optional Compute the edge filter along this axis. If not provided, the edge magnitude ...
doc_25406
Token value for "**=".
doc_25407
Multiply a Hermite series by x. Multiply the Hermite series c by x, where x is the independent variable. Parameters carray_like 1-D array of Hermite series coefficients ordered from low to high. Returns outndarray Array representing the result of the multiplication. Notes The multiplication uses the...
doc_25408
If the value has a name attribute, it is returned to unmodified. Otherwise the name, and the value with any CR or LF characters removed, are passed to the header_factory, and the resulting header object is returned. Any surrogateescaped bytes get turned into the unicode unknown-character glyph.
doc_25409
The hours of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="h") ... ) >>> datetime_series 0 2000-01-01 00:00:00 1 2000-01-01 01:00:00 2 2000-01-01 02:00:00 dtype: datetime64[ns] >>> datetime_series.dt.hour 0 0 1 1 2 2 dtype: int64
doc_25410
Returns a copy of the compression object. This can be used to efficiently compress a set of data that share a common initial prefix.
doc_25411
Set the label for the x-axis. Parameters xlabelstr The label text. labelpadfloat, default: rcParams["axes.labelpad"] (default: 4.0) Spacing in points from the Axes bounding box including ticks and tick labels. If None, the previous value is left as is. loc{'left', 'center', 'right'}, default: rcParams["xa...
doc_25412
A scatter plot of y vs. x with varying marker size and/or color. Parameters x, yfloat or array-like, shape (n, ) The data positions. sfloat or array-like, shape (n, ), optional The marker size in points**2. Default is rcParams['lines.markersize'] ** 2. carray-like or list of colors or color, optional Th...
doc_25413
See Migration guide for more details. tf.compat.v1.deserialize_many_sparse, tf.compat.v1.io.deserialize_many_sparse tf.io.deserialize_many_sparse( serialized_sparse, dtype, rank=None, name=None ) The input serialized_sparse must be a string matrix of shape [N x 3] where N is the minibatch size and the rows corre...
doc_25414
Bases: matplotlib.backend_bases.RendererBase Implements a Renderer which contains another renderer. This proxy then intercepts draw calls, calling the appropriate AbstractPathEffect draw method. Note Not all methods have been overridden on this RendererBase subclass. It may be necessary to add further methods to ext...
doc_25415
>>> np.nonzero(myarr == np.nan) (array([], dtype=int64),) >>> np.nan == np.nan # is always False! Use special numpy functions instead. False >>> myarr[myarr == np.nan] = 0. # doesn't work >>> myarr array([ 1., 0., NaN, 3.]) >>> myarr[np.isnan(myarr)] = 0. # use this instead find >>> myarr array([ 1., 0., 0., ...
doc_25416
Computes log probabilities for all n_classes\texttt{n\_classes} Parameters input (Tensor) – a minibatch of examples Returns log-probabilities of for each class cc in range 0<=c<=n_classes0 <= c <= \texttt{n\_classes} , where n_classes\texttt{n\_classes} is a parameter passed to AdaptiveLogSoftmaxWithLoss const...
doc_25417
Creates a Tensor from a numpy.ndarray. The returned tensor and ndarray share the same memory. Modifications to the tensor will be reflected in the ndarray and vice versa. The returned tensor is not resizable. It currently accepts ndarray with dtypes of numpy.float64, numpy.float32, numpy.float16, numpy.complex64, numpy...
doc_25418
Computes the eigenvalues of a complex Hermitian (or real symmetric) matrix input, or of each such matrix in a batched input. The eigenvalues are returned in ascending order. Since the matrix or matrices in input are assumed to be Hermitian, the imaginary part of their diagonals is always treated as zero. When UPLO is “...
doc_25419
Return a backend-specific tuple to return to the backend after all processing is done.
doc_25420
Wrapper around a torch._C.Future which encapsulates an asynchronous execution of a callable, e.g. rpc_async(). It also exposes a set of APIs to add callback functions and set results. add_done_callback(self: torch._C.Future, arg0: function) → None done() [source] Return True if this Future is done. A Future is ...
doc_25421
A decorator for a function indicating that the return value of the function is guaranteed to be a Future object and this function can run asynchronously on the RPC callee. More specifically, the callee extracts the Future returned by the wrapped function and installs subsequent processing steps as a callback to that ...
doc_25422
bytearray.expandtabs(tabsize=8) Return a copy of the sequence where all ASCII tab characters are replaced by one or more ASCII spaces, depending on the current column and the given tab size. Tab positions occur every tabsize bytes (default is 8, giving tab positions at columns 0, 8, 16 and so on). To expand the seque...
doc_25423
Under Windows, this gives you the native Windows error code. The errno attribute is then an approximate translation, in POSIX terms, of that native error code. Under Windows, if the winerror constructor argument is an integer, the errno attribute is determined from the Windows error code, and the errno argument is igno...
doc_25424
Return True if the Future was cancelled. The method is usually used to check if a Future is not cancelled before setting a result or an exception for it: if not fut.cancelled(): fut.set_result(42)
doc_25425
By default, a ManyToManyField is displayed in the admin site with a <select multiple>. However, multiple-select boxes can be difficult to use when selecting many items. Adding a ManyToManyField to this list will instead use a nifty unobtrusive JavaScript “filter” interface that allows searching within the options. The ...
doc_25426
Returns the log-transformed bounds on the theta. Returns boundsndarray of shape (n_dims, 2) The log-transformed bounds on the kernel’s hyperparameters theta
doc_25427
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_25428
Bases: mpl_toolkits.axisartist.axislines.AxisArtistHelper.Fixed Helper class for a fixed axis. nth_coord = along which coordinate value varies. nth_coord = 0 -> x axis, nth_coord = 1 -> y axis change_tick_coord(coord_number=None)[source] [Deprecated] Notes Deprecated since version 3.5: get_tick_iterato...
doc_25429
Performs inductive inference across the model. Parameters Xarray-like of shape (n_samples, n_features) The data matrix. Returns yndarray of shape (n_samples,) Predictions for input data.
doc_25430
See Migration guide for more details. tf.compat.v1.math.segment_prod, tf.compat.v1.segment_prod tf.math.segment_prod( data, segment_ids, name=None ) Read the section on segmentation for an explanation of segments. Computes a tensor such that \(output_i = \prod_j data_j\) where the product is over j such that seg...
doc_25431
A Popen creationflags parameter to specify that a new process group will be created. This flag is necessary for using os.kill() on the subprocess. This flag is ignored if CREATE_NEW_CONSOLE is specified.
doc_25432
See Migration guide for more details. tf.compat.v1.keras.models.model_from_config tf.keras.models.model_from_config( config, custom_objects=None ) Usage: # for a Functional API model tf.keras.Model().from_config(model.get_config()) # for a Sequential model tf.keras.Sequential().from_config(model.get_config()) ...
doc_25433
See Migration guide for more details. tf.compat.v1.linalg.lu_matrix_inverse tf.linalg.lu_matrix_inverse( lower_upper, perm, validate_args=False, name=None ) This op is conceptually identical to, inv_X = tf.lu_matrix_inverse(*tf.linalg.lu(X)) tf.assert_near(tf.matrix_inverse(X), inv_X) # ==> True Note: this fun...
doc_25434
Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call this method when the plugin is added to the ImageViewer. For example: viewer += Plugin(...) Also note that attach automatically calls the filter function so that the image matches the filtered value specified by attached widgets.
doc_25435
Abstract. Returns the complex conjugate. For example, (1+3j).conjugate() == (1-3j).
doc_25436
Quadratic Discriminant Analysis A classifier with a quadratic decision boundary, generated by fitting class conditional densities to the data and using Bayes’ rule. The model fits a Gaussian density to each class. New in version 0.17: QuadraticDiscriminantAnalysis Read more in the User Guide. Parameters priorsn...
doc_25437
Bases: list A list with a short repr(). This is meant to be used for a homogeneous list of artists, so that they don't cause long, meaningless output. Instead of [<matplotlib.lines.Line2D object at 0x7f5749fed3c8>, <matplotlib.lines.Line2D object at 0x7f5749fed4e0>, <matplotlib.lines.Line2D object at 0x7f5758016550...
doc_25438
Pickle (serialize) object to file. Parameters path:str File path where the pickled object will be stored. compression:str or dict, default ‘infer’ For on-the-fly compression of the output data. If ‘infer’ and ‘path’ path-like, then detect compression from the following extensions: ‘.gz’, ‘.bz2’, ‘.zip’, ‘.x...
doc_25439
In-place version of renorm()
doc_25440
Return a components namedtuple-like.
doc_25441
A dictionary-like object containing all given HTTP POST parameters, providing that the request contains form data. See the QueryDict documentation below. If you need to access raw or non-form data posted in the request, access this through the HttpRequest.body attribute instead. It’s possible that a request can come in...
doc_25442
tf.compat.v1.initializers.lecun_normal( seed=None ) It draws samples from a truncated normal distribution centered on 0 with standard deviation (after truncation) given by stddev = sqrt(1 / fan_in) where fan_in is the number of input units in the weight tensor. Arguments seed A Python integer. Used to see...
doc_25443
tf.losses.deserialize Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.deserialize tf.keras.losses.deserialize( name, custom_objects=None ) Arguments name Loss configuration. custom_objects Optional dictionary mapping names (strings) to custom objects (c...
doc_25444
'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_25445
tf.compat.v1.keras.experimental.export_saved_model( model, saved_model_path, custom_objects=None, as_text=False, input_signature=None, serving_only=False ) Note that at this time, subclassed models can only be saved using serving_only=True. The exported SavedModel is a standalone serialization of Tensorflow ob...
doc_25446
Exception raised for programming errors, e.g. table not found or already exists, syntax error in the SQL statement, wrong number of parameters specified, etc. It is a subclass of DatabaseError.
doc_25447
Write audio frames and make sure nframes is correct. It will raise an error if the output stream is not seekable and the total number of frames that have been written after data has been written does not match the previously set value for nframes. Changed in version 3.4: Any bytes-like object is now accepted.
doc_25448
Predict class log-probabilities for X. The predicted class log-probabilities of an input sample is computed as the log of the mean predicted class probabilities of the trees in the forest. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, its dtype will be c...
doc_25449
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_25450
See Migration guide for more details. tf.compat.v1.image.rot90 tf.image.rot90( image, k=1, name=None ) For example: a=tf.constant([[[1],[2]], [[3],[4]]]) # rotating `a` counter clockwise by 90 degrees a_rot=tf.image.rot90(a) print(a_rot[...,0].numpy()) [[2 4] [1 3]] # rotating `a` counter clockw...
doc_25451
USERNAME_FIELD A string describing the name of the field on the user model that is used as the unique identifier. This will usually be a username of some kind, but it can also be an email address, or any other unique identifier. The field must be unique (i.e., have unique=True set in its definition), unless you use...
doc_25452
Computes and returns a Point guaranteed to be on the interior of this geometry.
doc_25453
Gets the data for the specified type from the clipboard. get(type) -> bytes or str or None Retrieves the data for the specified type from the clipboard. In python 3 the data is returned as a byte string and might need further processing (such as decoding to Unicode). Parameters: type (string) -- data type to re...
doc_25454
Compute the skeleton of a binary image. Thinning is used to reduce each connected component in a binary image to a single-pixel wide skeleton. Parameters imagendarray, 2D or 3D A binary image containing the objects to be skeletonized. Zeros represent background, nonzero values are foreground. Returns skel...
doc_25455
A class attribute that denotes the number of arguments the function accepts. If this attribute is set and the function is called with a different number of expressions, TypeError will be raised. Defaults to None.
doc_25456
Return True if the argument is a signaling NaN and False otherwise.
doc_25457
See torch.tan()
doc_25458
Unpacks and returns a fixed length string. n is the number of characters expected. Padding with null bytes to guaranteed 4 byte alignment is assumed.
doc_25459
Creates a StreamReaderWriter instance. stream must be a file-like object. Reader and Writer must be factory functions or classes providing the StreamReader and StreamWriter interface resp. Error handling is done in the same way as defined for the stream readers and writers.
doc_25460
Return a string representing the time, controlled by an explicit format string. For a complete list of formatting directives, see strftime() and strptime() Behavior.
doc_25461
Make a large circle containing a smaller circle in 2d. A simple toy dataset to visualize clustering and classification algorithms. Read more in the User Guide. Parameters n_samplesint or tuple of shape (2,), dtype=int, default=100 If int, it is the total number of points generated. For odd numbers, the inner ci...
doc_25462
User ID of the user who originally stored this member.
doc_25463
Overridable interface to open unknown URL types.
doc_25464
Wait until process pid completes and check that the process exit code is exitcode. Raise an AssertionError if the process exit code is not equal to exitcode. If the process runs longer than timeout seconds (SHORT_TIMEOUT by default), kill the process and raise an AssertionError. The timeout feature is not available on ...
doc_25465
See Migration guide for more details. tf.compat.v1.raw_ops.BatchNormWithGlobalNormalization tf.raw_ops.BatchNormWithGlobalNormalization( t, m, v, beta, gamma, variance_epsilon, scale_after_normalization, name=None ) This op is deprecated. Prefer tf.nn.batch_normalization. Args t A Tensor. Must be one of...
doc_25466
sklearn.metrics.dcg_score(y_true, y_score, *, k=None, log_base=2, sample_weight=None, ignore_ties=False) [source] Compute Discounted Cumulative Gain. Sum the true scores ranked in the order induced by the predicted scores, after applying a logarithmic discount. This ranking metric yields a high value if true labels a...
doc_25467
See Migration guide for more details. tf.compat.v1.raw_ops.BatchMatrixDiag tf.raw_ops.BatchMatrixDiag( diagonal, name=None ) Args diagonal A Tensor. name A name for the operation (optional). Returns A Tensor. Has the same type as diagonal.
doc_25468
Call the Template object’s render() method with a Context to “fill” the template: >>> from django.template import Context, Template >>> template = Template("My name is {{ my_name }}.") >>> context = Context({"my_name": "Adrian"}) >>> template.render(context) "My name is Adrian." >>> context = Context({"my_name": "Dol...
doc_25469
Iterator Arguments Results Example count() start, [step] start, start+step, start+2*step, … count(10) --> 10 11 12 13 14 ... cycle() p p0, p1, … plast, p0, p1, … cycle('ABCD') --> A B C D A B C D ... repeat() elem [,n] elem, elem, elem, … endlessly or up to n times repeat(10, 3) --> 10 10 10 Iterators terminat...
doc_25470
Determine whether code is in tableC.1.2 (Non-ASCII space characters).
doc_25471
Holds parameters in a dictionary. ParameterDict can be indexed like a regular Python dictionary, but parameters it contains are properly registered, and will be visible by all Module methods. ParameterDict is an ordered dictionary that respects the order of insertion, and in update(), the order of the merged Ordered...
doc_25472
Return the largest n elements. Parameters n:int, default 5 Return this many descending sorted values. keep:{‘first’, ‘last’, ‘all’}, default ‘first’ When there are duplicate values that cannot all fit in a Series of n elements: first : return the first n occurrences in order of appearance. last : return th...
doc_25473
This method allows you to compare two Header instances for equality.
doc_25474
Return the group id.
doc_25475
Total size of memory blocks in bytes in the new snapshot (int): 0 if the memory blocks have been released in the new snapshot.
doc_25476
Set multiple properties at once. Supported properties are Property Description adjustable {'box', 'datalim'} agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None anchor (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}...
doc_25477
See Migration guide for more details. tf.compat.v1.raw_ops.ScatterNdNonAliasingAdd tf.raw_ops.ScatterNdNonAliasingAdd( input, indices, updates, name=None ) from updates according to indices indices. The updates are non-aliasing: input is only modified in-place if no other operations will use it. Otherwise, a cop...
doc_25478
Return the day of the year. This attribute returns the day of the year on which the particular date occurs. The return value ranges between 1 to 365 for regular years and 1 to 366 for leap years. Returns int The day of year. See also Period.day Return the day of the month. Period.day_of_week Return the d...
doc_25479
Returns an iterator over immediate children modules, yielding both the name of the module as well as the module itself. Yields (string, Module) – Tuple containing a name and child module Example: >>> for name, module in model.named_children(): >>> if name in ['conv4', 'conv5']: >>> print(module)
doc_25480
Reverse the elements of the deque in-place and then return None. New in version 3.2.
doc_25481
Availability: BSD, OSX. New in version 3.4.
doc_25482
tf.nn.max_pool_with_argmax( input, ksize, strides, padding, data_format='NHWC', output_dtype=tf.dtypes.int64, include_batch_in_index=False, name=None ) The indices in argmax are flattened, so that a maximum value at position [b, y, x, c] becomes flattened index: (y * width + x) * channels + c if include_batch_...
doc_25483
The maximum number of headers of this type that can have the same name. A value of None means unlimited. The BaseHeader value for this attribute is None; it is expected that specialized header classes will override this value as needed.
doc_25484
converts midi events to pygame events midis2events(midi_events, device_id) -> [Event, ...] Takes a sequence of midi events and returns list of pygame events. The midi_events data is expected to be a sequence of ((status, data1, data2, data3), timestamp) midi events (all values required). Returns: a list of pygam...
doc_25485
See Migration guide for more details. tf.compat.v1.raw_ops.AccumulatorSetGlobalStep tf.raw_ops.AccumulatorSetGlobalStep( handle, new_global_step, name=None ) Logs warning if the accumulator's value is already higher than new_global_step. Args handle A Tensor of type mutable string. The handle to an accu...
doc_25486
class sklearn.exceptions.DataConversionWarning [source] Warning used to notify implicit data conversions happening in the code. This warning occurs when some input data needs to be converted or interpreted in a way that may not match the user’s expectations. For example, this warning may occur when the user passes...
doc_25487
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceSparseApplyAdagradDA tf.raw_ops.ResourceSparseApplyAdagradDA( var, gradient_accumulator, gradient_squared_accumulator, grad, indices, lr, l1, l2, global_step, use_locking=False, name=None ) Args var A Tensor of type resource. Should ...
doc_25488
Align the xlabels and ylabels of subplots with the same subplots row or column (respectively) if label alignment is being done automatically (i.e. the label position is not manually set). Alignment persists for draw events after this is called. Parameters axslist of Axes Optional list (or ndarray) of Axes to al...
doc_25489
Enable interactive mode. See pyplot.isinteractive for more details. See also ioff Disable interactive mode. isinteractive Whether interactive mode is enabled. show Show all figures (and maybe block). pause Show all figures, and block for a time. Notes For a temporary change, this can be used as a context ...
doc_25490
Raised when a generator or coroutine is closed; see generator.close() and coroutine.close(). It directly inherits from BaseException instead of Exception since it is technically not an error.
doc_25491
True if the address is allocated for private networks. See iana-ipv4-special-registry (for IPv4) or iana-ipv6-special-registry (for IPv6).
doc_25492
Evaluate a 3-D polynomial on the Cartesian product of x, y and z. This function returns the values: \[p(a,b,c) = \sum_{i,j,k} c_{i,j,k} * a^i * b^j * c^k\] where the points (a, b, c) consist of all triples formed by taking a from x, b from y, and c from z. The resulting points form a grid with x in the first dimensi...
doc_25493
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_25494
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_25495
See Migration guide for more details. tf.compat.v1.raw_ops.Mod tf.raw_ops.Mod( x, y, name=None ) the result here is consistent with a truncating divide. E.g. tf.truncatediv(x, y) * y + truncate_mod(x, y) = x. Note: Mod supports broadcasting. More about broadcasting here Args x A Tensor. Must be one of...
doc_25496
Calls get() on a given model manager, but it raises Http404 instead of the model’s DoesNotExist exception.
doc_25497
Roll provided date backward to next offset only if not on offset.
doc_25498
Saves a new file with the file name and contents provided. This will not replace the existing file, but will create a new file and update the object to point to it. If save is True, the model’s save() method will be called once the file is saved. That is, these two lines: >>> car.photo.save('myphoto.jpg', content, save...
doc_25499
Control whether the cookie is sent with every response when session.permanent is true. Sending the cookie every time (the default) can more reliably keep the session from expiring, but uses more bandwidth. Non-permanent sessions are not affected. Default: True