_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_100 |
Returns
float | |
doc_101 | Handles an error which has occurred during emit(). The most likely cause is a lost connection. Closes the socket so that we can retry on the next event. | |
doc_102 |
Set the sketch parameters. Parameters
scalefloat, optional
The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided.
lengthfloat, optional
The length of the wiggle along the line, in pixels (default 128.0)
randomnessfloat... | |
doc_103 | Sends data to the remote server. You may override this method. Raises an auditing event imaplib.send with arguments self, data. | |
doc_104 |
A class method that returns the default handler map. | |
doc_105 |
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_106 | Returns x - y * n, where n is the integer nearest the exact value of x / y (if the result is 0 then its sign will be the sign of x). | |
doc_107 |
Confirm that this is a Postscript or PDF font type that we know how to convert to. | |
doc_108 |
Warning raised when there is a possible performance impact. | |
doc_109 | Hook method executed just after a command dispatch is finished. This method is a stub in Cmd; it exists to be overridden by subclasses. line is the command line which was executed, and stop is a flag which indicates whether execution will be terminated after the call to postcmd(); this will be the return value of the o... | |
doc_110 |
Compare to another DataFrame and show the differences. New in version 1.1.0. Parameters
other:DataFrame
Object to compare with.
align_axis:{0 or ‘index’, 1 or ‘columns’}, default 1
Determine which axis to align the comparison on.
0, or ‘index’:Resulting differences are stacked vertically
with rows dr... | |
doc_111 | See Migration guide for more details. tf.compat.v1.raw_ops.BitwiseAnd
tf.raw_ops.BitwiseAnd(
x, y, name=None
)
The result will have those bits set, that are set in both x and y. The computation is performed on the underlying representations of x and y. For example: import tensorflow as tf
from tensorflow.python.... | |
doc_112 | Returns whether the kernel is defined on fixed-length feature vectors or generic objects. Defaults to True for backward compatibility. | |
doc_113 | Wait until some registered file objects become ready, or the timeout expires. If timeout > 0, this specifies the maximum wait time, in seconds. If timeout <= 0, the call won’t block, and will report the currently ready file objects. If timeout is None, the call will block until a monitored file object becomes ready. Th... | |
doc_114 | tf.constant_initializer(
value=0
)
Initializers allow you to pre-specify an initialization strategy, encoded in the Initializer object, without knowing the shape and dtype of the variable being initialized. tf.constant_initializer returns an object which when called returns a tensor populated with the value specif... | |
doc_115 | Returns a string with a summary of the raster. This is equivalent to the gdalinfo command line utility. | |
doc_116 | Return the scheduling policy for the process with PID pid. A pid of 0 means the calling process. The result is one of the scheduling policy constants above. | |
doc_117 |
Marks outputs as non-differentiable. This should be called at most once, only from inside the forward() method, and all arguments should be outputs. This will mark outputs as not requiring gradients, increasing the efficiency of backward computation. You still need to accept a gradient for each output in backward(), ... | |
doc_118 |
Blocking call to interact with a figure. Wait until the user clicks n times on the figure, and return the coordinates of each click in a list. There are three possible interactions: Add a point. Remove the most recently added point. Stop the interaction and return the points added so far. The actions are assigned t... | |
doc_119 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseSegmentSqrtNWithNumSegments
tf.raw_ops.SparseSegmentSqrtNWithNumSegments(
data, indices, segment_ids, num_segments, name=None
)
N is the size of the segment being reduced. Like SparseSegmentSqrtN, but allows missing ids in segment_ids. If an id is ... | |
doc_120 | Set the current window caption set_caption(title, icontitle=None) -> None If the display has a window title, this function will change the name on the window. Some systems support an alternate shorter title to be used for minimized displays. | |
doc_121 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_122 | The read/write mode for the file. | |
doc_123 | The leftmost positional arguments that will be prepended to the positional arguments provided to a partial object call. | |
doc_124 |
Fit the calibrated model. Parameters
Xarray-like of shape (n_samples, n_features)
Training data.
yarray-like of shape (n_samples,)
Target values.
sample_weightarray-like of shape (n_samples,), default=None
Sample weights. If None, then samples are equally weighted. Returns
selfobject
Returns an ... | |
doc_125 |
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters
levelfloat | |
doc_126 | The content type string, in the form maintype/subtype. | |
doc_127 |
Set the artist's clip Bbox. Parameters
clipboxBbox | |
doc_128 | bytearray.rstrip([chars])
Return a copy of the sequence with specified trailing bytes removed. The chars argument is a binary sequence specifying the set of byte values to be removed - the name refers to the fact this method is usually used with ASCII characters. If omitted or None, the chars argument defaults to rem... | |
doc_129 |
Do nothing and return the estimator unchanged. This method is just there to implement the usual API and hence work in pipelines. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The data.
yNone
Ignored. Returns
selfobject
Fitted transformer. | |
doc_130 | See Migration guide for more details. tf.compat.v1.raw_ops.BesselK0
tf.raw_ops.BesselK0(
x, name=None
)
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64.
name A name for the operation (optional).
Returns A Tensor. Has the same type as x. | |
doc_131 |
Draw samples from a Zipf distribution. Samples are drawn from a Zipf distribution with specified parameter a > 1. The Zipf distribution (also known as the zeta distribution) is a discrete probability distribution that satisfies Zipf’s law: the frequency of an item is inversely proportional to its rank in a frequency ... | |
doc_132 |
Get the include paths required to build a C++ or CUDA extension. Parameters
cuda – If True, includes CUDA-specific include paths. Returns
A list of include path strings. | |
doc_133 | Exception raised when a response code in the range 500–599 is received. | |
doc_134 |
Update displayed image. This method can be overridden or extended in subclasses and plugins to react to image changes. | |
doc_135 | display a vertical gradient vgrade.main() -> None Demonstrates creating a vertical gradient with pixelcopy and NumPy python. The app will create a new gradient every half second and report the time needed to create and display the image. If you're not prepared to start working with the NumPy arrays, don't worry about... | |
doc_136 | Return an iterator for the month month in the year year similar to itermonthdates(), but not restricted by the datetime.date range. Days returned will be tuples consisting of a day of the month number and a week day number. | |
doc_137 | skimage.morphology.area_closing(image[, …]) Perform an area closing of the image.
skimage.morphology.area_opening(image[, …]) Perform an area opening of the image.
skimage.morphology.ball(radius[, dtype]) Generates a ball-shaped structuring element.
skimage.morphology.binary_closing(image[, …]) Return fast binary... | |
doc_138 |
Alias for get_linewidth. | |
doc_139 | See Migration guide for more details. tf.compat.v1.tpu.experimental.DeviceAssignment
tf.tpu.experimental.DeviceAssignment(
topology, core_assignment
)
Prefer to use the DeviceAssignment.build() helper to construct a DeviceAssignment; it is easier if less flexible than constructing a DeviceAssignment directly.
... | |
doc_140 |
Update this artist's properties from the dict props. Parameters
propsdict | |
doc_141 | Return a copy of the Decimal instance num. | |
doc_142 | tf.compat.v1.to_complex64(
x, name='ToComplex64'
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead.
Args
x A Tensor or SparseTensor or IndexedSlices.
name A name for the operation (optional).
Returns A Tensor or S... | |
doc_143 | See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingProximalAdagradParametersGradAccumDebug
tf.raw_ops.RetrieveTPUEmbeddingProximalAdagradParametersGradAccumDebug(
num_shards, shard_id, table_id=-1, table_name='', config='',
name=None
)
An op that retrieves optimization parameters ... | |
doc_144 | Represents the C 16-bit signed int datatype. Usually an alias for c_short. | |
doc_145 | See Migration guide for more details. tf.compat.v1.raw_ops.NonMaxSuppressionV2
tf.raw_ops.NonMaxSuppressionV2(
boxes, scores, max_output_size, iou_threshold, name=None
)
pruning away boxes that have high intersection-over-union (IOU) overlap with previously selected boxes. Bounding boxes are supplied as [y1, x1,... | |
doc_146 | Open url in a new window of the browser handled by this controller, if possible, otherwise, open url in the only browser window. Alias open_new(). | |
doc_147 | See Migration guide for more details. tf.compat.v1.raw_ops.RaggedTensorToSparse
tf.raw_ops.RaggedTensorToSparse(
rt_nested_splits, rt_dense_values, name=None
)
input=ragged.from_nested_row_splits(rt_dense_values, rt_nested_splits) output=SparseTensor(indices=sparse_indices, values=sparse_values, dense_shape=spar... | |
doc_148 |
Attributes
dense_shape_tensor_name string dense_shape_tensor_name
indices_tensor_name string indices_tensor_name
values_tensor_name string values_tensor_name | |
doc_149 |
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). | |
doc_150 | Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return... | |
doc_151 | Replace a header. Replace the first header found in the message that matches _name, retaining header order and field name case. If no matching header was found, a KeyError is raised. | |
doc_152 |
Construct a new ExtensionArray from a sequence of scalars. Parameters
scalars:Sequence
Each element will be an instance of the scalar type for this array, cls.dtype.type or be converted into this type in this method.
dtype:dtype, optional
Construct for this particular dtype. This should be a Dtype compatibl... | |
doc_153 |
Set the font family for text in math mode. If not set explicitly, rcParams["mathtext.fontset"] (default: 'dejavusans') will be used. Parameters
fontfamilystr
The name of the font family. Available font families are defined in the matplotlibrc.template file here See also text.Text.get_math_fontfamily | |
doc_154 |
Return str(self). | |
doc_155 | See Migration guide for more details. tf.compat.v1.raw_ops.WriteHistogramSummary
tf.raw_ops.WriteHistogramSummary(
writer, step, tag, values, name=None
)
Writes histogram values at step with tag using summary writer.
Args
writer A Tensor of type resource.
step A Tensor of type int64.
tag A T... | |
doc_156 |
Return self**=value. | |
doc_157 |
Draw random samples from a normal (Gaussian) distribution. The probability density function of the normal distribution, first derived by De Moivre and 200 years later by both Gauss and Laplace independently [2], is often called the bell curve because of its characteristic shape (see the example below). The normal dis... | |
doc_158 |
Set the artist transform. Parameters
tTransform | |
doc_159 |
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters
match
A filter criterion for the matches. This can be
None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct... | |
doc_160 | Close the connection unilaterally. This should not be applied to an already closed connection such as after a successful call to quit(). After this call the FTP instance should not be used any more (after a call to close() or quit() you cannot reopen the connection by issuing another login() method). | |
doc_161 |
Return the truncated value of the input, element-wise. The truncated value of the scalar x is the nearest integer i which is closer to zero than x is. In short, the fractional part of the signed number x is discarded. Parameters
xarray_like
Input data.
outndarray, None, or tuple of ndarray and None, optional
... | |
doc_162 | Return the current process’s effective user id. Availability: Unix. | |
doc_163 | Return the hyperbolic cosine of x. | |
doc_164 |
Generate the dispatch header which contains the #definitions and headers for platform-specific instruction-sets for the enabled CPU baseline and dispatch-able features. Its highly recommended to take a look at the generated header also the generated source files via try_dispatch() in order to get the full picture. | |
doc_165 | class sklearn.gaussian_process.GaussianProcessClassifier(kernel=None, *, optimizer='fmin_l_bfgs_b', n_restarts_optimizer=0, max_iter_predict=100, warm_start=False, copy_X_train=True, random_state=None, multi_class='one_vs_rest', n_jobs=None) [source]
Gaussian process classification (GPC) based on Laplace approximatio... | |
doc_166 | Returns a RegexValidator instance that ensures a string consists of integers separated by sep. It allows negative integers when allow_negative is True. | |
doc_167 | bytearray.isupper()
Return True if there is at least one uppercase alphabetic ASCII character in the sequence and no lowercase ASCII characters, False otherwise. For example: >>> b'HELLO WORLD'.isupper()
True
>>> b'Hello world'.isupper()
False
Lowercase ASCII characters are those byte values in the sequence b'abcdef... | |
doc_168 |
Issued by polyfit when the Vandermonde matrix is rank deficient. For more information, a way to suppress the warning, and an example of RankWarning being issued, see polyfit. | |
doc_169 |
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | |
doc_170 | @functools.cache(user_function)
Simple lightweight unbounded function cache. Sometimes called “memoize”. Returns the same as lru_cache(maxsize=None), creating a thin wrapper around a dictionary lookup for the function arguments. Because it never needs to evict old values, this is smaller and faster than lru_cache() w... | |
doc_171 | AxislineStyle(stylename, **kw) A container class which defines style classes for AxisArtists. | |
doc_172 | The format of a MIME document allows for some text between the blank line following the headers, and the first multipart boundary string. Normally, this text is never visible in a MIME-aware mail reader because it falls outside the standard MIME armor. However, when viewing the raw text of the message, or when viewing ... | |
doc_173 |
Returns a dictionary with fields indexing lists of their parent fields. This function is used to simplify access to fields nested in other fields. Parameters
adtypenp.dtype
Input datatype
lastnameoptional
Last processed field name (used internally during recursion).
parentsdictionary
Dictionary of paren... | |
doc_174 |
Parameters
bboxBbox
The child bounding box to wrap.
x0float or None
The locked value for x0, or None to leave unlocked.
y0float or None
The locked value for y0, or None to leave unlocked.
x1float or None
The locked value for x1, or None to leave unlocked.
y1float or None
The locked value for y1,... | |
doc_175 | class sklearn.decomposition.SparseCoder(dictionary, *, transform_algorithm='omp', transform_n_nonzero_coefs=None, transform_alpha=None, split_sign=False, n_jobs=None, positive_code=False, transform_max_iter=1000) [source]
Sparse coding Finds a sparse representation of data against a fixed, precomputed dictionary. Eac... | |
doc_176 |
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_177 |
Like Artist.get_window_extent, but includes any clipping. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns
Bbox
The enclosing bounding box (in figure pixel coordinates). | |
doc_178 |
Set the marker edge width in points. Parameters
ewfloat
Marker edge width, in points. | |
doc_179 |
Generate indices to split data into training and test set. Parameters
Xarray-like of shape (n_samples, n_features)
Training data, where n_samples is the number of samples and n_features is the number of features.
yarray-like of shape (n_samples,)
The target variable for supervised learning problems.
group... | |
doc_180 | The column in the line where the error occurred. This is 1-indexed: the first character in the line has an offset of 1. | |
doc_181 | Hostname of the server: str type, or None for server-side socket or if the hostname was not specified in the constructor. New in version 3.2. Changed in version 3.7: The attribute is now always ASCII text. When server_hostname is an internationalized domain name (IDN), this attribute now stores the A-label form ("xn... | |
doc_182 | Set the flags used by the interpreter for dlopen() calls, such as when the interpreter loads extension modules. Among other things, this will enable a lazy resolving of symbols when importing a module, if called as sys.setdlopenflags(0). To share symbols across extension modules, call as sys.setdlopenflags(os.RTLD_GLOB... | |
doc_183 | See Migration guide for more details. tf.compat.v1.raw_ops.Cross
tf.raw_ops.Cross(
a, b, name=None
)
a and b must be the same shape; they can either be simple 3-element vectors, or any shape where the innermost dimension is 3. In the latter case, each pair of corresponding 3-element vectors is cross-multiplied i... | |
doc_184 | reflect the vector of a given normal in place. reflect_ip(Vector2) -> None Changes the direction of self as if it would have been reflected of a surface with the given surface normal. | |
doc_185 | A mixin that implements the lookup API on a class.
classmethod register_lookup(lookup, lookup_name=None)
Registers a new lookup in the class. For example DateField.register_lookup(YearExact) will register YearExact lookup on DateField. It overrides a lookup that already exists with the same name. lookup_name will b... | |
doc_186 | This type describes the resource names passed into the various functions in this package. This is defined as Union[str, os.PathLike]. | |
doc_187 |
Return the topmost SubplotSpec instance associated with the subplot. | |
doc_188 |
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_189 | Set the current ContentHandler. If no ContentHandler is set, content events will be discarded. | |
doc_190 |
Immutable ndarray of timedelta64 data, represented internally as int64, and which can be boxed to timedelta objects. Parameters
data:array-like (1-dimensional), optional
Optional timedelta-like data to construct index with.
unit:unit of the arg (D,h,m,s,ms,us,ns) denote the unit, optional
Which is an intege... | |
doc_191 |
Indexes of the minimum values along an axis. Return the indexes of the first occurrences of the minimum values along the specified axis. If axis is None, the index is for the flattened matrix. Parameters
See `numpy.argmin` for complete descriptions.
See also numpy.argmin
Notes This is the same as ndarray.ar... | |
doc_192 | Return the name of the user logged in on the controlling terminal of the process. For most purposes, it is more useful to use getpass.getuser() since the latter checks the environment variables LOGNAME or USERNAME to find out who the user is, and falls back to pwd.getpwuid(os.getuid())[0] to get the login name of the c... | |
doc_193 | New in Django 3.2. Optional. A sequence of language codes to use for generating alternate links when i18n is enabled. Defaults to LANGUAGES. | |
doc_194 | Creates a tree iterator with the current element as the root. The iterator iterates over this element and all elements below it, in document (depth first) order. If tag is not None or '*', only elements whose tag equals tag are returned from the iterator. If the tree structure is modified during iteration, the result i... | |
doc_195 | This method allows you to compare two Charset instances for inequality. | |
doc_196 |
Compute elastic net path with coordinate descent. The elastic net optimization function varies for mono and multi-outputs. For mono-output tasks it is: 1 / (2 * n_samples) * ||y - Xw||^2_2
+ alpha * l1_ratio * ||w||_1
+ 0.5 * alpha * (1 - l1_ratio) * ||w||^2_2
For multi-output tasks it is: (1 / (2 * n_samples)) * ||... | |
doc_197 | See Migration guide for more details. tf.compat.v1.raw_ops.Xdivy
tf.raw_ops.Xdivy(
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_198 |
Alias for set_linestyle. | |
doc_199 | '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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.