_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_11800
Converts the object back into an HTTP header.
doc_11801
Check elementwise if the Intervals contain the value. Return a boolean mask whether the value is contained in the Intervals of the IntervalArray. New in version 0.25.0. Parameters other:scalar The value to check whether it is contained in the Intervals. Returns boolean array See also Interval.contai...
doc_11802
Must return the lookup named lookup_name. For instance, by returning self.output_field.get_lookup(lookup_name).
doc_11803
This attribute is set to 'ROWS'.
doc_11804
returns information about a midi device get_device_info(an_id) -> (interf, name, input, output, opened) get_device_info(an_id) -> None Gets the device info for a given id. Parameters: an_id (int) -- id of the midi device being queried Returns: if the id is out of range None is returned, otherwise a tuple of (...
doc_11805
Return a list of the weeks in the month month of the year as full weeks. Weeks are lists of seven datetime.date objects.
doc_11806
See Migration guide for more details. tf.compat.v1.concat tf.concat( values, axis, name='concat' ) See also tf.tile, tf.stack, tf.repeat. Concatenates the list of tensors values along dimension axis. If values[i].shape = [D0, D1, ... Daxis(i), ...Dn], the concatenated result has shape [D0, D1, ... Raxis, ...Dn] ...
doc_11807
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called.
doc_11808
See Migration guide for more details. tf.compat.v1.raw_ops.QueueClose tf.raw_ops.QueueClose( handle, cancel_pending_enqueues=False, name=None ) This operation signals that no more elements will be enqueued in the given queue. Subsequent Enqueue(Many) operations will fail. Subsequent Dequeue(Many) operations will...
doc_11809
tf.compat.v1.keras.backend.get_session( op_input_list=() ) If a default TensorFlow session is available, we will return it. Else, we will return the global Keras session assuming it matches the current graph. If no global Keras session exists at this point: we will create a new global session. Note that you can ma...
doc_11810
Return True if pen is down, False if it’s up. >>> turtle.penup() >>> turtle.isdown() False >>> turtle.pendown() >>> turtle.isdown() True
doc_11811
File type. type is usually one of these constants: REGTYPE, AREGTYPE, LNKTYPE, SYMTYPE, DIRTYPE, FIFOTYPE, CONTTYPE, CHRTYPE, BLKTYPE, GNUTYPE_SPARSE. To determine the type of a TarInfo object more conveniently, use the is*() methods below.
doc_11812
Return a label image based on freeform selections made with the mouse. Parameters image(M, N[, 3]) array Grayscale or RGB image. alphafloat, optional Transparency value for polygons drawn over the image. return_allbool, optional If True, an array containing each separate polygon drawn is returned. (The ...
doc_11813
Base object if memory is from some other object. Examples The base of an array that owns its memory is None: >>> x = np.array([1,2,3,4]) >>> x.base is None True Slicing creates a view, whose memory is shared with x: >>> y = x[2:] >>> y.base is x True
doc_11814
tf.compat.v1.distributions.Categorical( logits=None, probs=None, dtype=tf.dtypes.int32, validate_args=False, allow_nan_stats=True, name='Categorical' ) The Categorical distribution is parameterized by either probabilities or log-probabilities of a set of K classes. It is defined over the integers {0, 1, ..., K...
doc_11815
If the server supports user authentication, and the script is protected, this attribute contains the username the user has authenticated as.
doc_11816
Retrieves a user instance using the contents of the field nominated by USERNAME_FIELD.
doc_11817
Sets the result of the work associated with the Future to the Exception exception. This method should only be used by Executor implementations and unit tests. Changed in version 3.8: This method raises concurrent.futures.InvalidStateError if the Future is already done.
doc_11818
Generate a signal as a sparse combination of dictionary elements. Returns a matrix Y = DX, such as D is (n_features, n_components), X is (n_components, n_samples) and each column of X has exactly n_nonzero_coefs non-zero elements. Read more in the User Guide. Parameters n_samplesint Number of samples to generat...
doc_11819
Calculates the sign and log absolute value of the determinant(s) of a square matrix or batches of square matrices. Note torch.slogdet() is deprecated. Please use torch.linalg.slogdet() instead. Note If input has zero determinant, this returns (0, -inf). Note Backward through slogdet() internally uses SVD results w...
doc_11820
Set the hatching pattern hatch can be one of: / - diagonal hatching \ - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large circle . - dots * - stars Letters can be combined, in which case all the specified hatchings are done. If same letter repea...
doc_11821
Return a list of options available in the specified section.
doc_11822
[Deprecated] Notes Deprecated since version 3.4:
doc_11823
Returns the number of splitting iterations in the cross-validator Parameters Xobject Always ignored, exists for compatibility. yobject Always ignored, exists for compatibility. groupsarray-like of shape (n_samples,) Group labels for the samples used while splitting the dataset into train/test set. This ...
doc_11824
A Bagging regressor. A Bagging regressor is an ensemble meta-estimator that fits base regressors each on random subsets of the original dataset and then aggregate their individual predictions (either by voting or by averaging) to form a final prediction. Such a meta-estimator can typically be used as a way to reduce ...
doc_11825
Sign value and append current timestamp to it.
doc_11826
tf.compat.v1.distribute.experimental.MultiWorkerMirroredStrategy( communication=tf.distribute.experimental.CollectiveCommunication.AUTO, cluster_resolver=None ) This strategy implements synchronous distributed training across multiple workers, each with potentially multiple GPUs. Similar to tf.distribute.Mirro...
doc_11827
Copy properties from other to self.
doc_11828
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array.
doc_11829
Remove axes of length one from a. Refer to numpy.squeeze for full documentation. See also numpy.squeeze equivalent function
doc_11830
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju...
doc_11831
Suffix labels with string suffix. For Series, the row labels are suffixed. For DataFrame, the column labels are suffixed. Parameters suffix:str The string to add after each label. Returns Series or DataFrame New Series or DataFrame with updated labels. See also Series.add_prefix Prefix row labels w...
doc_11832
Set the value array from array-like A. Parameters Aarray-like or None The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A.
doc_11833
Remove a callback based on its observer id. See also add_callback
doc_11834
See Migration guide for more details. tf.compat.v1.config.experimental_connect_to_host tf.config.experimental_connect_to_host( remote_host=None, job_name='worker' ) Will make devices on the remote host available to use. Note that calling this more than once will work, but will invalidate any tensor handles on th...
doc_11835
sklearn.utils.resample(*arrays, replace=True, n_samples=None, random_state=None, stratify=None) [source] Resample arrays or sparse matrices in a consistent way. The default strategy implements one step of the bootstrapping procedure. Parameters *arrayssequence of array-like of shape (n_samples,) or (n_samples, n_...
doc_11836
Convert an image to 8-bit unsigned integer format. Parameters imagendarray Input image. force_copybool, optional Force a copy of the data, irrespective of its current dtype. Returns outndarray of ubyte (uint8) Output image. Notes Negative input values will be clipped. Positive values are scaled ...
doc_11837
Mark the socket closed. The underlying system resource (e.g. a file descriptor) is also closed when all file objects from makefile() are closed. Once that happens, all future operations on the socket object will fail. The remote end will receive no more data (after queued data is flushed). Sockets are automatically clo...
doc_11838
class contextvars.ContextVar(name[, *, default]) This class is used to declare a new Context Variable, e.g.: var: ContextVar[int] = ContextVar('var', default=42) The required name parameter is used for introspection and debug purposes. The optional keyword-only default parameter is returned by ContextVar.get() when ...
doc_11839
Bytes version of environ: a mapping object representing the environment as byte strings. environ and environb are synchronized (modify environb updates environ, and vice versa). environb is only available if supports_bytes_environ is True. New in version 3.2. Changed in version 3.9: Updated to support PEP 584’s merg...
doc_11840
Call decision_function on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports decision_function. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_11841
Finish any processing for writing the movie.
doc_11842
Estimate the transformation from a set of corresponding points. You can determine the over-, well- and under-determined parameters with the total least-squares method. Number of source and destination coordinates must match. Parameters src(N, 2) array Source coordinates. dst(N, 2) array Destination coordina...
doc_11843
See Migration guide for more details. tf.compat.v1.raw_ops.ApplyPowerSign tf.raw_ops.ApplyPowerSign( var, m, lr, logbase, sign_decay, beta, grad, use_locking=False, name=None ) mt <- beta1 * m{t-1} + (1 - beta1) * g update <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g variable <- variable - lr_t * updat...
doc_11844
'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_11845
Simple method to update the ranges.
doc_11846
Nu-Support Vector Classification. Similar to SVC but uses a parameter to control the number of support vectors. The implementation is based on libsvm. Read more in the User Guide. Parameters nufloat, default=0.5 An upper bound on the fraction of margin errors (see User Guide) and a lower bound of the fraction o...
doc_11847
Alias for set_linewidth.
doc_11848
Setting this attribute to a non-zero integer causes the attributes to be reported as a list rather than a dictionary. The attributes are presented in the order found in the document text. For each attribute, two list entries are presented: the attribute name and the attribute value. (Older versions of this module also ...
doc_11849
See Migration guide for more details. tf.compat.v1.data.experimental.StatsOptions tf.data.experimental.StatsOptions() You can set the stats options of a dataset through the experimental_stats property of tf.data.Options; the property is an instance of tf.data.experimental.StatsOptions. For example, to collect latenc...
doc_11850
Return a tuple (y, x) of current cursor position relative to the window’s upper-left corner.
doc_11851
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_11852
Parse configuration data from a string. Optional argument source specifies a context-specific name of the string passed. If not given, '<string>' is used. This should commonly be a filesystem path or a URL. New in version 3.2.
doc_11853
Return the product of the array elements over the given axis. Masked elements are set to 1 internally for computation. Refer to numpy.prod for full documentation. See also numpy.ndarray.prod corresponding function for ndarrays numpy.prod equivalent function Notes Arithmetic is modular when using integer types...
doc_11854
Exception raised in case a method or database API was used which is not supported by the database, e.g. calling the rollback() method on a connection that does not support transaction or has transactions turned off. It is a subclass of DatabaseError.
doc_11855
Encode the data as a sparse combination of the dictionary atoms. Coding method is determined by the object parameter transform_algorithm. Parameters Xndarray of shape (n_samples, n_features) Test data to be transformed, must have the same number of features as the data used to train the model. Returns X_n...
doc_11856
The system handle used to access the library.
doc_11857
access the clipboard scrap_clipboard.main() -> None A simple demonstration example for the clipboard support.
doc_11858
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
doc_11859
Weight function of the Laguerre polynomials. The weight function is \(exp(-x)\) and the interval of integration is \([0, \inf]\). The Laguerre polynomials are orthogonal, but not normalized, with respect to this weight function. Parameters xarray_like Values at which the weight function will be computed. Ret...
doc_11860
Field objects describe each defined field. These objects are created internally, and are returned by the fields() module-level method (see below). Users should never instantiate a Field object directly. Its documented attributes are: name: The name of the field. type: The type of the field. default, default_factory...
doc_11861
os.P_PGID os.P_ALL These are the possible values for idtype in waitid(). They affect how id is interpreted. Availability: Unix. New in version 3.3.
doc_11862
Register a file object for selection, monitoring it for I/O events. fileobj is the file object to monitor. It may either be an integer file descriptor or an object with a fileno() method. events is a bitwise mask of events to monitor. data is an opaque object. This returns a new SelectorKey instance, or raises a ValueE...
doc_11863
Set the offsets for the collection. Parameters offsets(N, 2) or (2,) array-like
doc_11864
Returns True if the data type of input is a complex data type i.e., one of torch.complex64, and torch.complex128. Parameters input (Tensor) – the input tensor.
doc_11865
Stratified ShuffleSplit cross-validator Provides train/test indices to split data in train/test sets. This cross-validation object is a merge of StratifiedKFold and ShuffleSplit, which returns stratified randomized folds. The folds are made by preserving the percentage of samples for each class. Note: like the Shuffl...
doc_11866
Draw a box and whisker plot. The box extends from the first quartile (Q1) to the third quartile (Q3) of the data, with a line at the median. The whiskers extend from the box by 1.5x the inter-quartile range (IQR). Flier points are those past the end of the whiskers. See https://en.wikipedia.org/wiki/Box_plot for refe...
doc_11867
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi...
doc_11868
Add a skew in place. xShear and yShear are the shear angles along the x- and y-axes, respectively, in degrees. Returns self, so this method can easily be chained with more calls to rotate(), rotate_deg(), translate() and scale().
doc_11869
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_11870
Return an array drawn from elements in choicelist, depending on conditions. Parameters condlistlist of bool ndarrays The list of conditions which determine from which array in choicelist the output elements are taken. When multiple conditions are satisfied, the first one encountered in condlist is used. choic...
doc_11871
Parameters urlslist of str or None Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends.
doc_11872
Make a histogram of the DataFrame’s columns. A histogram is a representation of the distribution of data. This function calls matplotlib.pyplot.hist(), on each series in the DataFrame, resulting in one histogram per column. Parameters data:DataFrame The pandas object holding the data. column:str or sequence, ...
doc_11873
Set the artist's clip Bbox. Parameters clipboxBbox
doc_11874
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_11875
See Migration guide for more details. tf.compat.v1.raw_ops.OutfeedDequeueV2 tf.raw_ops.OutfeedDequeueV2( device_ordinal, dtype, shape, name=None ) tensor allowing dynamic outfeed. This operation will block indefinitely until data is available. Args: device_ordinal: A Tensor of type int32. An int scalar tensor, r...
doc_11876
See Migration guide for more details. tf.compat.v1.raw_ops.OutfeedDequeueTuple tf.raw_ops.OutfeedDequeueTuple( dtypes, shapes, device_ordinal=-1, name=None ) This operation will block indefinitely until data is available. Output i corresponds to XLA tuple element i. Args dtypes A list of tf.DTypes that ...
doc_11877
from myapp.serializers import UserSerializer from rest_framework import generics from rest_framework.permissions import IsAdminUser class UserList(generics.ListCreateAPIView): queryset = User.objects.all() serializer_class = UserSerializer permission_classes = [IsAdminUser] For more complex cases you migh...
doc_11878
Append values to the end of an array. New in version 1.9.0. Parameters aarray_like Values are appended to a copy of this array. barray_like These values are appended to a copy of a. It must be of the correct shape (the same shape as a, excluding axis). If axis is not specified, b can be any shape and will...
doc_11879
Whether elements in Series are contained in values. Return a boolean Series showing whether each element in the Series matches an element in the passed sequence of values exactly. Parameters values:set or list-like The sequence of values to test. Passing in a single string will raise a TypeError. Instead, turn ...
doc_11880
socket.SOL_ALG ALG_* Constants for Linux Kernel cryptography. Availability: Linux >= 2.6.38. New in version 3.6.
doc_11881
Field is an abstract class that represents a database table column. Django uses fields to create the database table (db_type()), to map Python types to database (get_prep_value()) and vice-versa (from_db_value()). A field is thus a fundamental piece in different Django APIs, notably, models and querysets. In models, a ...
doc_11882
Returns whether or not this LineString is closed.
doc_11883
In-place version of cumprod()
doc_11884
Set the offsets for the collection. Parameters offsets(N, 2) or (2,) array-like
doc_11885
See Migration guide for more details. tf.compat.v1.raw_ops.Slice tf.raw_ops.Slice( input, begin, size, name=None ) The output tensor is a tensor with dimensions described by 'size' whose values are extracted from 'input' starting at the offsets in 'begin'. Requirements: 0 <= begin[i] <= begin[i] + size[i] <= Di ...
doc_11886
class pkgutil.ModuleInfo(module_finder, name, ispkg) A namedtuple that holds a brief summary of a module’s info. New in version 3.6. pkgutil.extend_path(path, name) Extend the search path for the modules which comprise a package. Intended use is to place the following code in a package’s __init__.py: from pkg...
doc_11887
Attribute to group 'radio' like tools (mutually exclusive). str that identifies the group or None if not belonging to a group.
doc_11888
Show all figures. show blocks by calling mainloop if block is True, or if it is None and we are neither in IPython's %pylab mode, nor in interactive mode.
doc_11889
Return the marker edge color. See also set_markeredgecolor.
doc_11890
Bases: mpl_toolkits.axisartist.grid_finder.ExtremeFinderSimple This subclass handles the case where one or both coordinates should be taken modulo 360, or be restricted to not exceed a specific range. Parameters nx, nyint The number of samples in each direction. lon_cycle, lat_cycle360 or None If not None, ...
doc_11891
Return whether face is colored.
doc_11892
The string that the test was extracted from, or None if the string is unavailable, or if the test was not extracted from a string.
doc_11893
filterable Defaults to False. The SQL standard disallows referencing window functions in the WHERE clause and Django raises an exception when constructing a QuerySet that would do that. template Defaults to %(expression)s OVER (%(window)s)'. If only the expression argument is provided, the window clause will ...
doc_11894
Indicates whether the date is the last day of the month. Returns Series or array For Series, returns a Series with boolean values. For DatetimeIndex, returns a boolean array. See also is_month_start Return a boolean indicating whether the date is the first day of the month. is_month_end Return a boolean ...
doc_11895
Create a new request object based on the values provided. If environ is given missing values are filled from there. This method is useful for small scripts when you need to simulate a request from an URL. Do not use this method for unittesting, there is a full featured client object (Client) that allows to create multi...
doc_11896
Raise other to the power self, masking the potential NaNs/Infs
doc_11897
Compares the PixelArray with another one. compare(array, distance=0, weights=(0.299, 0.587, 0.114)) -> PixelArray Compares the contents of the PixelArray with those from the passed in PixelArray. It returns a new PixelArray with a black/white color mask that indicates the differences (black) of both arrays. Both Pixe...
doc_11898
Return a string representation of an array. Parameters andarray Input array. max_line_widthint, optional Inserts newlines if text is longer than max_line_width. Defaults to numpy.get_printoptions()['linewidth']. precisionint or None, optional Floating point precision. Defaults to numpy.get_printoptions(...
doc_11899
sklearn.feature_selection.mutual_info_regression(X, y, *, discrete_features='auto', n_neighbors=3, copy=True, random_state=None) [source] Estimate mutual information for a continuous target variable. Mutual information (MI) [1] between two random variables is a non-negative value, which measures the dependency betwee...