_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_21700
See torch.negative()
doc_21701
Generate anti-aliased circle perimeter coordinates. Parameters r, cint Centre coordinate of circle. radiusint Radius of circle. shapetuple, optional Image shape which is used to determine the maximum extent of output pixel coordinates. This is useful for circles that exceed the image size. If None, the ...
doc_21702
Callback processing for scroll events. Backend derived classes should call this function on any scroll wheel event. (x, y) are the canvas coords ((0, 0) is lower left). button and key are as defined in MouseEvent. This method will call all functions connected to the 'scroll_event' with a MouseEvent instance.
doc_21703
Open a grouping element with label s and gid (if set) as id. Only used by the SVG renderer.
doc_21704
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_21705
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_21706
sklearn.pipeline.make_union(*transformers, n_jobs=None, verbose=False) [source] Construct a FeatureUnion from the given transformers. This is a shorthand for the FeatureUnion constructor; it does not require, and does not permit, naming the transformers. Instead, they will be given names automatically based on their ...
doc_21707
Returns a date object containing the first day of the month after the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future.
doc_21708
Wraps another sampler to yield a mini-batch of indices. Parameters sampler (Sampler or Iterable) – Base sampler. Can be any iterable object batch_size (int) – Size of mini-batch. drop_last (bool) – If True, the sampler will drop the last batch if its size would be less than batch_size Example >>> list(Batch...
doc_21709
Like Accept but with special methods and behavior for mimetypes. property accept_html True if this object accepts HTML. property accept_json True if this object accepts JSON. property accept_xhtml True if this object accepts XHTML.
doc_21710
This class implements condition variable objects. A condition variable allows one or more threads to wait until they are notified by another thread. If the lock argument is given and not None, it must be a Lock or RLock object, and it is used as the underlying lock. Otherwise, a new RLock object is created and used as ...
doc_21711
Convert c to an RGBA color. Parameters cMatplotlib color or np.ma.masked alphafloat, optional If alpha is given, force the alpha value of the returned RGBA tuple to alpha. If None, the alpha value from c is used. If c does not have an alpha channel, then alpha defaults to 1. alpha is ignored for the color val...
doc_21712
Uses the arguments to send an EmailMultiAlternatives. Can be overridden to customize how the email is sent to the user. Parameters: subject_template_name – the template for the subject. email_template_name – the template for the email body. context – context passed to the subject_template, email_template, and ...
doc_21713
Get the SubplotSpec instance.
doc_21714
Property returning a new ChainMap containing all of the maps in the current instance except the first one. This is useful for skipping the first map in the search. Use cases are similar to those for the nonlocal keyword used in nested scopes. The use cases also parallel those for the built-in super() function. A refere...
doc_21715
See Migration guide for more details. tf.compat.v1.raw_ops.BatchCholesky tf.raw_ops.BatchCholesky( input, name=None ) Args input A Tensor. Must be one of the following types: float64, float32. name A name for the operation (optional). Returns A Tensor. Has the same type as input.
doc_21716
Return whether or not this path is relative to the other path. >>> p = PurePath('/etc/passwd') >>> p.is_relative_to('/etc') True >>> p.is_relative_to('/usr') False New in version 3.9.
doc_21717
Alias for torch.lt().
doc_21718
turns a midi note on (note must be off) note_on(note, velocity=None, channel=0) -> None Turn a note on in the output stream. The note must already be off for this to work correctly.
doc_21719
Reverse the transformation operation Parameters Xarray of shape [n_samples, n_selected_features] The input samples. Returns X_rarray of shape [n_samples, n_original_features] X with columns of zeros inserted where features would have been removed by transform.
doc_21720
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalThreadPoolHandle tf.raw_ops.ExperimentalThreadPoolHandle( num_threads, display_name, max_intra_op_parallelism=1, container='', shared_name='', name=None ) Args num_threads An int. The number of threads in the thread pool. dis...
doc_21721
Check if there is a breakpoint for lineno of filename.
doc_21722
Alias for get_linestyle.
doc_21723
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterNdMin tf.raw_ops.ResourceScatterNdMin( ref, indices, updates, use_locking=True, name=None ) Args ref A Tensor of type resource. A resource handle. Must be from a VarHandleOp. indices A Tensor. Must be one of the following ty...
doc_21724
tf.compat.v1.autograph.to_graph( entity, recursive=True, arg_values=None, arg_types=None, experimental_optional_features=None ) Also see: tf.autograph.to_code, tf.function. Unlike tf.function, to_graph is a low-level transpiler that converts Python code to TensorFlow graph code. It does not implement any cachi...
doc_21725
This is an implementation detail of the warnings framework; do not modify this value. Refer to the warnings module for more information on the warnings framework.
doc_21726
Set the artist offset transform. Parameters transOffsetTransform
doc_21727
This is the default authentication backend used by Django. It authenticates using credentials consisting of a user identifier and password. For Django’s default user model, the user identifier is the username, for custom user models it is the field specified by USERNAME_FIELD (see Customizing Users and authentication)....
doc_21728
Return a ctypes object allocated from shared memory. typecode_or_type determines the type of the returned object: it is either a ctypes type or a one character typecode of the kind used by the array module. *args is passed on to the constructor for the type. Note that setting and getting the value is potentially non-at...
doc_21729
tf.image.stateless_random_contrast( image, lower, upper, seed ) Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed settings (e.g. tf.random.set_seed). Args image An image tensor with 3 or more dimensions. lower float. ...
doc_21730
Like quote(), but also replace spaces with plus signs, as required for quoting HTML form values when building up a query string to go into a URL. Plus signs in the original string are escaped unless they are included in safe. It also does not have safe default to '/'. Example: quote_plus('/El Niño/') yields '%2FEl+Ni%C...
doc_21731
Add the TarInfo object tarinfo to the archive. If fileobj is given, it should be a binary file, and tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects directly, or by using gettarinfo().
doc_21732
Helper object for HTML generation. Per default there are two instances of that class. The html one, and the xhtml one for those two dialects. The class uses keyword parameters and positional parameters to generate small snippets of HTML. Keyword parameters are converted to XML/SGML attributes, positional arguments are ...
doc_21733
Translates message and returns it as a string.
doc_21734
See Migration guide for more details. tf.compat.v1.io.decode_csv tf.compat.v1.decode_csv( records, record_defaults, field_delim=',', use_quote_delim=True, name=None, na_value='', select_cols=None ) RFC 4180 format is expected for the CSV records. (https://tools.ietf.org/html/rfc4180) Note that we allow leadi...
doc_21735
class sklearn.preprocessing.MaxAbsScaler(*, copy=True) [source] Scale each feature by its maximum absolute value. This estimator scales and translates each feature individually such that the maximal absolute value of each feature in the training set will be 1.0. It does not shift/center the data, and thus does not de...
doc_21736
A shortcut for keep_lazy(str)(func). If you have a function that returns text and you want to be able to take lazy arguments while delaying their evaluation, you can use this decorator: from django.utils.functional import keep_lazy, keep_lazy_text # Our previous example was: @keep_lazy(str) def fancy_utility_functio...
doc_21737
Determine residuals of data to model. For each point the shortest distance to the circle is returned. Parameters data(N, 2) array N points with (x, y) coordinates, respectively. Returns residuals(N, ) array Residual for each data point.
doc_21738
Return a fragment which is the addition of the two samples passed as parameters. width is the sample width in bytes, either 1, 2, 3 or 4. Both fragments should have the same length. Samples are truncated in case of overflow.
doc_21739
Like the formfield_for_foreignkey method, the formfield_for_manytomany method can be overridden to change the default formfield for a many to many field. For example, if an owner can own multiple cars and cars can belong to multiple owners – a many to many relationship – you could filter the Car foreign key field to on...
doc_21740
Decorator for skipping tests if zlib doesn’t exist.
doc_21741
Size of the file in bytes, if it is a regular file or a symbolic link. The size of a symbolic link is the length of the pathname it contains, without a terminating null byte.
doc_21742
'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_21743
alias of mpl_toolkits.axes_grid1.axes_grid.ImageGrid
doc_21744
Return a network interface index number corresponding to an interface name. OSError if no interface with the given name exists. Availability: Unix, Windows. New in version 3.3. Changed in version 3.8: Windows support was added. See also “Interface name” is a name as documented in if_nameindex().
doc_21745
Return the submatrix corresponding to bicluster i. Parameters iint The index of the cluster. dataarray-like of shape (n_samples, n_features) The data. Returns submatrixndarray of shape (n_rows, n_cols) The submatrix corresponding to bicluster i. Notes Works with sparse matrices. Only works if ro...
doc_21746
The request data that stimulated the response.
doc_21747
See torch.index_select()
doc_21748
Converts the response iterator in a list. By default this happens automatically if required. If implicit_sequence_conversion is disabled, this method is not automatically called and some properties might raise exceptions. This also encodes all the items. Changelog New in version 0.6. Return type None
doc_21749
Predict class log-probabilities of the input samples X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix. Returns probandarray of shape (n_samples, n_cl...
doc_21750
Set the alpha value used for blending - not supported on all backends. Parameters alphaarray-like or scalar or None All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
doc_21751
Return the path to the XML file containing the weak classifier cascade. These classifiers were trained using LBP features. The file is part of the OpenCV repository [1]. References 1 OpenCV lbpcascade trained files https://github.com/opencv/opencv/tree/master/data/lbpcascades
doc_21752
sklearn.metrics.brier_score_loss(y_true, y_prob, *, sample_weight=None, pos_label=None) [source] Compute the Brier score loss. The smaller the Brier score loss, the better, hence the naming with “loss”. The Brier score measures the mean squared difference between the predicted probability and the actual outcome. The ...
doc_21753
Escape all special characters ('?', '*' and '['). This is useful if you want to match an arbitrary literal string that may have special characters in it. Special characters in drive/UNC sharepoints are not escaped, e.g. on Windows escape('//?/c:/Quo vadis?.txt') returns '//?/c:/Quo vadis[?].txt'. New in version 3.4.
doc_21754
Returns a month’s calendar in a multi-line string using the formatmonth() of the TextCalendar class.
doc_21755
Save current image to file. The current behavior is not ideal: It saves the image displayed on screen, so all images will be converted to RGB, and the image size is not preserved (resizing the viewer window will alter the size of the saved image).
doc_21756
Fit the model Parameters Xndarray of shape (n_samples, n_features) Training data yndarray of shape (n_samples,) Target values. Will be cast to X’s dtype if necessary sample_weightndarray of shape (n_samples,), default=None Individual weights for each sample New in version 0.20: parameter sample_weight ...
doc_21757
See torch.isposinf()
doc_21758
Required argument. Needs to be a string.
doc_21759
Set the edgecolor(s) of the collection. Parameters ccolor or list of colors or 'face' The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor.
doc_21760
Plot Confusion Matrix. Read more in the User Guide. Parameters estimatorestimator instance Fitted classifier or a fitted Pipeline in which the last estimator is a classifier. X{array-like, sparse matrix} of shape (n_samples, n_features) Input values. y_truearray-like of shape (n_samples,) Target values....
doc_21761
Xception: Deep Learning with Depthwise Separable Convolutions (CVPR 2017) Functions Xception(...): Instantiates the Xception architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images.
doc_21762
Draw samples from a standard Student’s t distribution with df degrees of freedom. A special case of the hyperbolic distribution. As df gets large, the result resembles that of the standard normal distribution (standard_normal). Note New code should use the standard_t method of a default_rng() instance instead; pleas...
doc_21763
Return the y-axis view limits. Returns bottom, top(float, float) The current y-axis limits in data coordinates. See also set_ylim set_ybound, get_ybound invert_yaxis, yaxis_inverted Notes The y-axis may be inverted, in which case the bottom value will be greater than the top value. Examples using...
doc_21764
Set the etag, and override the old one if there was one. Parameters etag (str) – weak (bool) – Return type None
doc_21765
Indicate that a formerly enqueued task is complete. Used by queue consumer threads. For each get() used to fetch a task, a subsequent call to task_done() tells the queue that the processing on the task is complete. If a join() is currently blocking, it will resume when all items have been processed (meaning that a task...
doc_21766
This method has to be implemented and must either return None in case the loading failed because of a configuration error or an instance of a session object which implements a dictionary like interface + the methods and attributes on SessionMixin. Parameters app (Flask) – request (Request) – Return type Optio...
doc_21767
the bit shifts needed to convert between a color and a mapped integer get_shifts() -> (R, G, B, A) Returns the pixel shifts need to convert between each color and a mapped integer. This value is not needed for normal pygame usage.
doc_21768
Set field to value through MsiRecordSetInteger(). Both field and value must be an integer.
doc_21769
Define which axes have tick labels. Parameters mode{"L", "1", "all"} The label mode: "L": All axes on the left column get vertical tick labels; all axes on the bottom row get horizontal tick labels. "1": Only the bottom left axes is labelled. "all": all axes are labelled.
doc_21770
Fetch (parts of) messages. message_parts should be a string of message part names enclosed within parentheses, eg: "(UID BODY[TEXT])". Returned data are tuples of message part envelope and data.
doc_21771
Connect callback function to matplotlib event and return id.
doc_21772
See HingeEmbeddingLoss for details.
doc_21773
Copy pixels into a 3d array array3d(Surface) -> array Copy the pixels from a Surface into a 3D array. The bit depth of the surface will control the size of the integer values, and will work for any type of pixel format. This function will temporarily lock the Surface as pixels are copied (see the pygame.Surface.lock(...
doc_21774
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
doc_21775
Run a pyplot script and save the images in output_dir. Save the images under output_dir with file names derived from output_base
doc_21776
Return the label used for this artist in the legend.
doc_21777
A class that shares the primary interface of Site (i.e., it has domain and name attributes) but gets its data from a Django HttpRequest object rather than from a database. __init__(request) Sets the name and domain attributes to the value of get_host().
doc_21778
Return the sum along diagonals of the array. Refer to numpy.trace for full documentation. See also numpy.trace equivalent function
doc_21779
An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctyp...
doc_21780
Return the sum of the array elements over the given axis. Masked elements are set to 0 internally. Refer to numpy.sum for full documentation. See also numpy.ndarray.sum corresponding function for ndarrays numpy.sum equivalent function Examples >>> x = np.ma.array([[1,2,3],[4,5,6],[7,8,9]], mask=[0] + [1,0]*4)...
doc_21781
Clear the set.
doc_21782
A ConvReLU3d module is a fused module of Conv3d and ReLU We adopt the same interface as torch.nn.quantized.Conv3d. Attributes: Same as torch.nn.quantized.Conv3d
doc_21783
See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingFTRLParametersGradAccumDebug tf.raw_ops.RetrieveTPUEmbeddingFTRLParametersGradAccumDebug( num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that retrieves optimization parameters from embedding to host...
doc_21784
Alias for set_facecolor.
doc_21785
Return the xaxis' minor tick labels, as a list of Text.
doc_21786
See Migration guide for more details. tf.compat.v1.raw_ops.Xlog1py tf.raw_ops.Xlog1py( x, y, name=None ) Args x A Tensor. Must be one of the following types: half, float32, float64, complex64, complex128. y A Tensor. Must have the same type as x. name A name for the operation (optional). ...
doc_21787
The sole value of the type NoneType. None is frequently used to represent the absence of a value, as when default arguments are not passed to a function. Assignments to None are illegal and raise a SyntaxError.
doc_21788
See Migration guide for more details. tf.compat.v1.train.load_checkpoint tf.train.load_checkpoint( ckpt_dir_or_file ) If ckpt_dir_or_file resolves to a directory with multiple checkpoints, reader for the latest checkpoint is returned. Args ckpt_dir_or_file Directory with checkpoints file or path to chec...
doc_21789
Returns the panel above the current panel.
doc_21790
Set multiple properties at once. Supported properties are Property Description 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 array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or list of bools array a...
doc_21791
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_21792
See torch.moveaxis()
doc_21793
Scalar method identical to the corresponding array attribute. Please see ndarray.transpose.
doc_21794
Recover the sources from X (apply the unmixing matrix). Parameters Xarray-like of shape (n_samples, n_features) Data to transform, where n_samples is the number of samples and n_features is the number of features. copybool, default=True If False, data passed to fit can be overwritten. Defaults to True. R...
doc_21795
Bind the socket to a free port and return the port number. Relies on ephemeral ports in order to ensure we are using an unbound port. This is important as many tests may be running simultaneously, especially in a buildbot environment. This method raises an exception if the sock.family is AF_INET and sock.type is SOCK_S...
doc_21796
(os.POSIX_SPAWN_DUP2, fd, new_fd) Performs os.dup2(fd, new_fd).
doc_21797
Compute sum of group values. Parameters numeric_only:bool, default True Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. min_count:int, default 0 The required number of valid values to perform the operation. If fewer than min_count non-NA values ...
doc_21798
Return the clip path.
doc_21799
Set multiple properties at once. Supported properties are Property Description 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 angle unknown animated bool antialiased or aa bool or None bounds (left, bottom, width, h...