_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_21200
Remove minor ticks from the Axes.
doc_21201
Returns True if GEOSGeometry.disjoint() is False.
doc_21202
Represents an OGR Envelope structure that contains the minimum and maximum X, Y coordinates for a rectangle bounding box. The naming of the variables is compatible with the OGR Envelope C structure. min_x The value of the minimum X coordinate. min_y The value of the maximum X coordinate. max_x The value of ...
doc_21203
Find the edge magnitude using Roberts’ cross operator. Parameters image2-D array Image to process. mask2-D array, optional An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. Returns ...
doc_21204
Normalize value data in the [vmin, vmax] interval into the [0.0, 1.0] interval and return it. Parameters value Data to normalize. clipbool If None, defaults to self.clip (which defaults to False). Notes If not already initialized, self.vmin and self.vmax are initialized using self.autoscale_None(value).
doc_21205
Alias for get_edgecolor.
doc_21206
patch() acts as a function decorator, class decorator or a context manager. Inside the body of the function or with statement, the target is patched with a new object. When the function/with statement exits the patch is undone. If new is omitted, then the target is replaced with an AsyncMock if the patched object is an...
doc_21207
Fit all transformers using X. Parameters X{array-like, dataframe} of shape (n_samples, n_features) Input data, of which specified subsets are used to fit the transformers. yarray-like of shape (n_samples,…), default=None Targets for supervised learning. Returns selfColumnTransformer This estimator
doc_21208
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters **paramsdict Estimator parameters. Returns...
doc_21209
Return a string representing the Morsel, without any surrounding HTTP or JavaScript. The meaning for attrs is the same as in output().
doc_21210
Returns a description of the specified component under the point given by x and y, or the empty string if no such component is present at that position.
doc_21211
Provide expanding window calculations. Parameters min_periods:int, default 1 Minimum number of observations in window required to have a value; otherwise, result is np.nan. center:bool, default False If False, set the window labels as the right edge of the window index. If True, set the window labels as the...
doc_21212
Return numbers spaced evenly on a log scale. In linear space, the sequence starts at base ** start (base to the power of start) and ends with base ** stop (see endpoint below). Changed in version 1.16.0: Non-scalar start and stop are now supported. Parameters startarray_like base ** start is the starting valu...
doc_21213
Sparse inverse covariance estimation with an l1-penalized estimator. Read more in the User Guide. Changed in version v0.20: GraphLasso has been renamed to GraphicalLasso Parameters alphafloat, default=0.01 The regularization parameter: the higher alpha, the more regularization, the sparser the inverse covaria...
doc_21214
Detect existing (non-missing) values. Return a boolean same-sized object indicating if the values are not NA. Non-missing values get mapped to True. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_inf_as_na = True). NA values, such as None or numpy...
doc_21215
See Migration guide for more details. tf.compat.v1.raw_ops.Imag tf.raw_ops.Imag( input, Tout=tf.dtypes.float32, name=None ) Given a tensor input of complex numbers, this operation returns a tensor of type float that is the imaginary part of each element in input. All elements in input must be complex numbers of ...
doc_21216
Percentage change between the current and a prior element. Computes the percentage change from the immediately previous row by default. This is useful in comparing the percentage of change in a time series of elements. Parameters periods:int, default 1 Periods to shift for forming percent change. fill_method:...
doc_21217
codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16 codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE codecs.BOM_UTF32_LE These constants define various byte sequences, being Unicode byte order marks (BOMs) for several encodings. They are used in UTF-16 and UTF-32 d...
doc_21218
Load text files with categories as subfolder names. Individual samples are assumed to be files stored a two levels folder structure such as the following: container_folder/ category_1_folder/ file_1.txt file_2.txt … file_42.txt category_2_folder/ file_43.txt file_44.txt … The folder names are used as superv...
doc_21219
errno.errorcode Dictionary providing a mapping from the errno value to the string name in the underlying system. For instance, errno.errorcode[errno.EPERM] maps to 'EPERM'. To translate a numeric error code to an error message, use os.strerror(). Of the following list, symbols that are not used on the current platf...
doc_21220
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,), default=None The target variable for supervised learning pro...
doc_21221
Return a list of subplotspec from the given list of axes. For an instance of axes that does not support subplotspec, None is inserted in the list. If grid_spec is given, None is inserted for those not from the given grid_spec.
doc_21222
operator.__delitem__(a, b) Remove the value of a at index b.
doc_21223
Cross-validated Lasso, using the LARS algorithm. See glossary entry for cross-validation estimator. The optimization objective for Lasso is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1 Read more in the User Guide. Parameters fit_interceptbool, default=True whether to calculate the intercept for th...
doc_21224
Convert doctest tests for a module to a unittest.TestSuite. The returned unittest.TestSuite is to be run by the unittest framework and runs each doctest in the module. If any of the doctests fail, then the synthesized unit test fails, and a failureException exception is raised showing the name of the file containing th...
doc_21225
The UTC timezone, timezone(timedelta(0)).
doc_21226
sklearn.utils.extmath.randomized_svd(M, n_components, *, n_oversamples=10, n_iter='auto', power_iteration_normalizer='auto', transpose='auto', flip_sign=True, random_state=0) [source] Computes a truncated randomized SVD. Parameters M{ndarray, sparse matrix} Matrix to decompose. n_componentsint Number of sin...
doc_21227
Bases: matplotlib.patheffects.AbstractPathEffect A line-based PathEffect which draws a path with a ticked style. This line style is frequently used to represent constraints in optimization. The ticks may be used to indicate that one side of the line is invalid or to represent a closed boundary of a domain (i.e. a wal...
doc_21228
Set the color for low out-of-range values.
doc_21229
tests if the vector is normalized i.e. has length == 1. is_normalized() -> Bool Returns True if the vector has length equal to 1. Otherwise it returns False.
doc_21230
Register a file descriptor with the polling object. Future calls to the poll() method will then check whether the file descriptor has any pending I/O events. fd can be either an integer, or an object with a fileno() method that returns an integer. File objects implement fileno(), so they can also be used as the argumen...
doc_21231
Is raised for the limitations that are typical for stream-like TarFile objects.
doc_21232
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorToeplitz tf.linalg.LinearOperatorToeplitz( col, row, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=None, name='LinearOperatorToeplitz' ) This operator acts like a [batch] Toeplitz matrix A with shape [B...
doc_21233
Parses a string and returns a datetime.time. UTC offsets aren’t supported; if value describes one, the result is None.
doc_21234
Insert values along the given axis before the given indices. Parameters arrarray_like Input array. objint, slice or sequence of ints Object that defines the index or indices before which values is inserted. New in version 1.8.0. Support for multiple insertions when obj is a single scalar or a sequence wit...
doc_21235
Open image file and display in viewer.
doc_21236
Alias for get_edgecolor.
doc_21237
Fit Gaussian Naive Bayes according to X, y Parameters Xarray-like of shape (n_samples, n_features) Training vectors, where n_samples is the number of samples and n_features is the number of features. yarray-like of shape (n_samples,) Target values. sample_weightarray-like of shape (n_samples,), default=No...
doc_21238
Run fit with all sets of parameters. Parameters Xarray-like of shape (n_samples, n_features) Training vector, where n_samples is the number of samples and n_features is the number of features. yarray-like of shape (n_samples, n_output) or (n_samples,), default=None Target relative to X for classification or...
doc_21239
tf.compat.v1.min_max_variable_partitioner( max_partitions=1, axis=0, min_slice_size=(256 << 10), bytes_per_string_element=16 ) Returns a partitioner that partitions the variable of given shape and dtype such that each partition has a minimum of min_slice_size slice of the variable. The maximum number of such p...
doc_21240
The start index of doc where parsing failed.
doc_21241
Fill the array with a scalar value. Parameters valuescalar All elements of a will be assigned this value. Examples >>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([1., 1.])
doc_21242
tf.keras.losses.mean_squared_logarithmic_error, tf.keras.losses.msle, tf.keras.metrics.MSLE, tf.keras.metrics.mean_squared_logarithmic_error, tf.keras.metrics.msle, tf.losses.MSLE, tf.losses.mean_squared_logarithmic_error, tf.losses.msle, tf.metrics.MSLE, tf.metrics.mean_squared_logarithmic_error, tf.metrics.msle Compa...
doc_21243
Receive data from sock into the buf buffer. Modeled after the blocking socket.recv_into() method. Return the number of bytes written to the buffer. sock must be a non-blocking socket. New in version 3.7.
doc_21244
An “unstructured” header is the default type of header in RFC 5322. Any header that does not have a specified syntax is treated as unstructured. The classic example of an unstructured header is the Subject header. In RFC 5322, an unstructured header is a run of arbitrary text in the ASCII character set. RFC 2047, howev...
doc_21245
Return the truth value of (x1 <= x2) element-wise. Parameters x1, x2array_like Input arrays. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If ...
doc_21246
See Migration guide for more details. tf.compat.v1.raw_ops.MirrorPad tf.raw_ops.MirrorPad( input, paddings, mode, name=None ) This operation pads a input with mirrored values according to the paddings you specify. paddings is an integer tensor with shape [n, 2], where n is the rank of input. For each dimension D...
doc_21247
Update the location of children if necessary and draw them to the given renderer.
doc_21248
Return the clipbox.
doc_21249
Return True if the path points to a character device (or a symbolic link pointing to a character device), False if it points to another kind of file. False is also returned if the path doesn’t exist or is a broken symlink; other errors (such as permission errors) are propagated.
doc_21250
Returns the type if dtype is not provided, else casts this object to the specified type. If this is already of the correct type, no copy is performed and the original object is returned. Parameters dtype (type or string) – The desired type non_blocking (bool) – If True, and the source is in pinned memory and desti...
doc_21251
tf.experimental.numpy.angle( z, deg=False ) See the NumPy documentation for numpy.angle.
doc_21252
Draw samples from a log-normal distribution. Draw samples from a log-normal distribution with specified mean, standard deviation, and array shape. Note that the mean and standard deviation are not the values for the distribution itself, but of the underlying normal distribution it is derived from. Note New code shou...
doc_21253
Split the string at the first occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return a 3-tuple containing the string itself, followed by two empty strings.
doc_21254
Where legend is the legend itself, orig_handle is the original plot, fontsize is the fontsize in pixels, and handlebox is a OffsetBox instance. Within the call, you should create relevant artists (using relevant properties from the legend and/or orig_handle) and add them into the handlebox. The artists needs to be sca...
doc_21255
Performs a single optimization step. Parameters closure (callable, optional) – A closure that reevaluates the model and returns the loss.
doc_21256
for line in fileinput.input(): process(line) This iterates over the lines of all files listed in sys.argv[1:], defaulting to sys.stdin if the list is empty. If a filename is '-', it is also replaced by sys.stdin and the optional arguments mode and openhook are ignored. To specify an alternative list of filenames, ...
doc_21257
Multiplies each element of the input input with the scalar other and returns a new resulting tensor. outi=other×inputi\text{out}_i = \text{other} \times \text{input}_i If input is of type FloatTensor or DoubleTensor, other should be a real number, otherwise it should be an integer Parameters {input} – other (N...
doc_21258
Convert an integer number to a binary string prefixed with “0b”. The result is a valid Python expression. If x is not a Python int object, it has to define an __index__() method that returns an integer. Some examples: >>> bin(3) '0b11' >>> bin(-10) '-0b1010' If prefix “0b” is desired or not, you can use either of the ...
doc_21259
Remove a callback based on its observer id. See also add_callback
doc_21260
See Migration guide for more details. tf.compat.v1.raw_ops.FusedBatchNormGradV2 tf.raw_ops.FusedBatchNormGradV2( y_backprop, x, scale, reserve_space_1, reserve_space_2, epsilon=0.0001, data_format='NHWC', is_training=True, name=None ) Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". T...
doc_21261
Alias for set_fontfamily.
doc_21262
See MarginRankingLoss for details.
doc_21263
Attributes filename_tensor_name string filename_tensor_name keep_checkpoint_every_n_hours float keep_checkpoint_every_n_hours max_to_keep int32 max_to_keep restore_op_name string restore_op_name save_tensor_name string save_tensor_name sharded bool sharded version Checkpoint...
doc_21264
See Migration guide for more details. tf.compat.v1.image.total_variation tf.image.total_variation( images, name=None ) The total variation is the sum of the absolute differences for neighboring pixel-values in the input images. This measures how much noise is in the images. This can be used as a loss-function du...
doc_21265
tf.experimental.numpy.prod( a, axis=None, dtype=None, keepdims=None ) Unsupported arguments: out, initial, where. See the NumPy documentation for numpy.prod.
doc_21266
'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_21267
See Migration guide for more details. tf.compat.v1.debugging.assert_non_positive tf.compat.v1.assert_non_positive( x, data=None, summarize=None, message=None, name=None ) When running in graph mode, you should add a dependency on this operation to ensure that it runs. Example of adding a dependency to an operati...
doc_21268
Convert a file system path to a URI portion that is suitable for inclusion in a URL. The path is assumed to be either UTF-8 bytes, string, or a Path. This method will encode certain characters that would normally be recognized as special characters for URIs. Note that this method does not encode the ‘ character, as i...
doc_21269
Decorator for __repr__() methods to detect recursive calls within the same thread. If a recursive call is made, the fillvalue is returned, otherwise, the usual __repr__() call is made. For example: >>> from reprlib import recursive_repr >>> class MyList(list): ... @recursive_repr() ... def __repr__(self): ... ...
doc_21270
Return the path of pyconfig.h.
doc_21271
Apply decision function to an array of samples. The decision function is equal (up to a constant factor) to the log-posterior of the model, i.e. log p(y = k | x). In a binary classification setting this instead corresponds to the difference log p(y = 1 | x) - log p(y = 0 | x). See Mathematical formulation of the LDA ...
doc_21272
Draw a stacked area plot. Parameters x(N,) array-like y(M, N) array-like The data is assumed to be unstacked. Each of the following calls is legal: stackplot(x, y) # where y has shape (M, N) stackplot(x, y1, y2, y3) # where y1, y2, y3, y4 have length N baseline{'zero', 'sym', 'wiggle', 'weighted...
doc_21273
Create a subprocess from one or more string arguments specified by args. args must be a list of strings represented by: str; or bytes, encoded to the filesystem encoding. The first string specifies the program executable, and the remaining strings specify the arguments. Together, string arguments form the argv of th...
doc_21274
True if this transform has a corresponding inverse transform.
doc_21275
A base class that enables a context manager to also be used as a decorator. Context managers inheriting from ContextDecorator have to implement __enter__ and __exit__ as normal. __exit__ retains its optional exception handling even when used as a decorator. ContextDecorator is used by contextmanager(), so you get this ...
doc_21276
Bases: object Create mapping between unique categorical values and integer ids. Parameters dataiterable sequence of string values update(data)[source] Map new values to integer identifiers. Parameters dataiterable of str or bytes Raises TypeError If elements in data are neither str nor bytes.
doc_21277
class sklearn.model_selection.ParameterGrid(param_grid) [source] Grid of parameters with a discrete number of values for each. Can be used to iterate over parameter value combinations with the Python built-in function iter. The order of the generated parameter combinations is deterministic. Read more in the User Guid...
doc_21278
tf.compat.v1.gfile.Glob( filename ) Args filename string or iterable of strings. The glob pattern(s). Returns A list of strings containing filenames that match the given pattern(s). Raises errors.OpError: If there are filesystem / directory listing errors. errors.NotFoundError: If patt...
doc_21279
Convert the stored values into a WWW-Authenticate header.
doc_21280
Return an image of the same shape where each pixel is the index of the pixel value in the ascending order of the unique values of image, aka the rank-order value. Parameters imagendarray Returns labelsndarray of type np.uint32, of shape image.shape New array where each pixel has the rank-order value of th...
doc_21281
tf.compat.v1.nn.rnn_cell.BasicLSTMCell( num_units, forget_bias=1.0, state_is_tuple=True, activation=None, reuse=None, name=None, dtype=None, **kwargs ) Basic LSTM recurrent network cell. The implementation is based on We add forget_bias (default: 1) to the biases of the forget gate in order to reduce the scale...
doc_21282
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesMakeStatsSummary tf.raw_ops.BoostedTreesMakeStatsSummary( node_ids, gradients, hessians, bucketized_features_list, max_splits, num_buckets, name=None ) The summary stats contains gradients and hessians accumulated into the corresponding n...
doc_21283
Assign desired index to given axis. Indexes for row labels can be changed by assigning a list-like or Index. Parameters labels:list-like, Index The values for the new index. axis:{0 or ‘index’}, default 0 The axis to update. The value 0 identifies the rows. inplace:bool, default False Whether to return ...
doc_21284
Return the natural logarithm of one plus the input array, element-wise. Calculates log(1 + x). Parameters xarray_like Input values. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not prov...
doc_21285
See Migration guide for more details. tf.compat.v1.app.flags.mark_bool_flags_as_mutual_exclusive tf.compat.v1.flags.mark_bool_flags_as_mutual_exclusive( flag_names, required=False, flag_values=_flagvalues.FLAGS ) Args flag_names [str], names of the flags. required bool. If true, exactly one flag m...
doc_21286
Request named status conditions for mailbox.
doc_21287
Interpret a buffer as a 1-dimensional array. Parameters bufferbuffer_like An object that exposes the buffer interface. dtypedata-type, optional Data-type of the returned array; default: float. countint, optional Number of items to read. -1 means all data in the buffer. offsetint, optional Start read...
doc_21288
Raised when the user hits the interrupt key (normally Control-C or Delete). During execution, a check for interrupts is made regularly. The exception inherits from BaseException so as to not be accidentally caught by code that catches Exception and thus prevent the interpreter from exiting.
doc_21289
A Condition object. Not thread-safe. An asyncio condition primitive can be used by a task to wait for some event to happen and then get exclusive access to a shared resource. In essence, a Condition object combines the functionality of an Event and a Lock. It is possible to have multiple Condition objects share one Loc...
doc_21290
Returns the number of already decrypted bytes available for read, pending on the connection.
doc_21291
assertIsNot(first, second, msg=None) Test that first and second are (or are not) the same object. New in version 3.1.
doc_21292
Extend the dataLim Bbox to include the given points. If no data is set currently, the Bbox will ignore its limits and set the bound to be the bounds of the xydata (xys). Otherwise, it will compute the bounds of the union of its current data and the data in xys. Parameters xys2D array-like The points to include ...
doc_21293
Enables CAN FD support in a CAN_RAW socket. This is disabled by default. This allows your application to send both CAN and CAN FD frames; however, you must accept both CAN and CAN FD frames when reading from the socket. This constant is documented in the Linux documentation. Availability: Linux >= 3.6. New in version ...
doc_21294
Similar to the corresponding functions without the p in the prefix (that is, gettext(), dgettext(), ngettext(), dngettext()), but the translation is restricted to the given message context. New in version 3.8.
doc_21295
find edges in a surface laplacian(Surface, DestSurface = None) -> Surface Finds the edges in a surface using the laplacian algorithm. New in pygame 1.8.
doc_21296
Return the number of displays get_num_displays() -> int Returns the number of available displays. This is always 1 if pygame.get_sdl_version() returns a major version number below 2. New in pygame 1.9.5.
doc_21297
Return a valid color arg.
doc_21298
Responsible for returning the list of columns references by this expression. get_group_by_cols() should be called on any nested expressions. F() objects, in particular, hold a reference to a column. The alias parameter will be None unless the expression has been annotated and is used for grouping.
doc_21299
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.