_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_19300
Open a .npy file as a memory-mapped array. This may be used to read an existing file or create a new one. Parameters filenamestr or path-like The name of the file on disk. This may not be a file-like object. modestr, optional The mode in which to open the file; the default is ‘r+’. In addition to the standa...
doc_19301
Standardize a dataset along any axis. Center to the mean and component wise scale to unit variance. Read more in the User Guide. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data to center and scale. axisint, default=0 axis used to compute the means and standard deviations al...
doc_19302
Return probability estimates for the test vector X. Parameters Xarray-like of shape (n_samples, n_features) Returns Carray-like of shape (n_samples, n_classes) Returns the probability of the samples for each class in the model. The columns correspond to the classes in sorted order, as they appear in the a...
doc_19303
Autoscale the scalar limits on the norm instance using the current array
doc_19304
A decorator for running tests that require support for symbolic links.
doc_19305
Sort a list of CPU features ordered by the lowest interest. Parameters ‘names’: sequence sequence of supported feature names in uppercase. ‘reverse’: bool, optional If true, the sorted features is reversed. (highest interest) Returns list, sorted CPU features
doc_19306
See torch.geqrf()
doc_19307
Put the socket object into closed state without actually closing the underlying file descriptor. The file descriptor is returned, and can be reused for other purposes. New in version 3.2.
doc_19308
See torch.arccos()
doc_19309
Return the decision path in the forest. New in version 0.18. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, its dtype will be converted to dtype=np.float32. If a sparse matrix is provided, it will be converted into a sparse csr_matrix. Returns ind...
doc_19310
Return lowest indexes in each strings in the Series/Index. Each of returned indexes corresponds to the position where the substring is fully contained between [start:end]. Return -1 on failure. Equivalent to standard str.find(). Parameters sub:str Substring being searched. start:int Left edge index. end:i...
doc_19311
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 100 } Note that you need to set both the pagination class, and the page size that should be used. Both DEFAULT_PAGINATION_CLASS and PAGE_SIZE are None by default. You can also set the pagination class on an individual v...
doc_19312
See Migration guide for more details. tf.compat.v1.raw_ops.ExtractGlimpse tf.raw_ops.ExtractGlimpse( input, size, offsets, centered=True, normalized=True, uniform_noise=True, noise='uniform', name=None ) Returns a set of windows called glimpses extracted at location offsets from the input tensor. If the wind...
doc_19313
Kills the child. On POSIX OSs the function sends SIGKILL to the child. On Windows kill() is an alias for terminate().
doc_19314
See Migration guide for more details. tf.compat.v1.raw_ops.FusedBatchNormGradV3 tf.raw_ops.FusedBatchNormGradV3( y_backprop, x, scale, reserve_space_1, reserve_space_2, reserve_space_3, epsilon=0.0001, data_format='NHWC', is_training=True, name=None ) Note that the size of 4D Tensors are defined by either "N...
doc_19315
Bases: object Viewer for displaying images. This viewer is a simple container object that holds a Matplotlib axes for showing images. ImageViewer doesn’t subclass the Matplotlib axes (or figure) because of the high probability of name collisions. Subclasses and plugins will likely extend the update_image method to ad...
doc_19316
Integer indicating how this dtype relates to the built-in dtypes. Read-only. 0 if this is a structured array type, with fields 1 if this is a dtype compiled into numpy (such as ints, floats etc) 2 if the dtype is for a user-defined numpy type A user-defined type uses the numpy C-API machinery to extend numpy to...
doc_19317
tf.strings.to_number( input, out_type=tf.dtypes.float32, name=None ) (Note that int32 overflow results in an error while float overflow results in a rounded value.) Examples: tf.strings.to_number("1.55") <tf.Tensor: shape=(), dtype=float32, numpy=1.55> tf.strings.to_number("3", tf.int32) <tf.Tensor: shape=(), dty...
doc_19318
Ignore unexpected shutdown of TLS connections. This option is only available with OpenSSL 3.0.0 and later. New in version 3.10.
doc_19319
Applies the hard shrinkage function element-wise See Hardshrink for more details.
doc_19320
Create and return a text node containing the data passed as a parameter. As with the other creation methods, this one does not insert the node into the tree.
doc_19321
Return a label image based on polygon 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 p...
doc_19322
A factory function for creating a ModuleSpec instance based on the path to a file. Missing information will be filled in on the spec by making use of loader APIs and by the implication that the module will be file-based. New in version 3.4. Changed in version 3.6: Accepts a path-like object.
doc_19323
Day of the week the period lies in, with Monday=0 and Sunday=6. If the period frequency is lower than daily (e.g. hourly), and the period spans over multiple days, the day at the start of the period is used. If the frequency is higher than daily (e.g. monthly), the last day of the period is used. Returns int Day ...
doc_19324
accessor for ‘no-cache’
doc_19325
This is the SRID code that the field value should be transformed to. For example, if the map widget SRID is different from the SRID more generally used by your application or database, the field will automatically convert input values into that SRID.
doc_19326
Sometimes you get an URL by a user that just isn’t a real URL because it contains unsafe characters like ‘ ‘ and so on. This function can fix some of the problems in a similar way browsers handle data entered by the user: >>> url_fix('http://de.wikipedia.org/wiki/Elf (Begriffskl\xe4rung)') 'http://de.wikipedia.org/wiki...
doc_19327
A subclass of Mailbox for mailboxes in MMDF format. Parameter factory is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If factory is None, MMDFMessage is used as the default message representation. If create is True, th...
doc_19328
operator.le(a, b) operator.eq(a, b) operator.ne(a, b) operator.ge(a, b) operator.gt(a, b) operator.__lt__(a, b) operator.__le__(a, b) operator.__eq__(a, b) operator.__ne__(a, b) operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva...
doc_19329
A subclass of HTTPException.
doc_19330
Returns a new dictionary-like object. defaultdict is a subclass of the built-in dict class. It overrides one method and adds one writable instance variable. The remaining functionality is the same as for the dict class and is not documented here. The first argument provides the initial value for the default_factory att...
doc_19331
Lasso linear model with iterative fitting along a regularization path. See glossary entry for cross-validation estimator. The best model is selected by cross-validation. The optimization objective for Lasso is: (1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1 Read more in the User Guide. Parameters epsfl...
doc_19332
Finds the K-neighbors of a point. Returns indices of and distances to the neighbors of each point. Parameters Xarray-like, shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’, default=None The query point or points. If not provided, neighbors of each indexed point are returned. I...
doc_19333
See Migration guide for more details. tf.compat.v1.raw_ops.SamplingDataset tf.raw_ops.SamplingDataset( input_dataset, rate, seed, seed2, output_types, output_shapes, name=None ) There is no transformation in the tf.data Python API for creating this dataset. Instead, it is created as a result of the filter_with_r...
doc_19334
Returns the content length from the WSGI environment as integer. If it’s not available or chunked transfer encoding is used, None is returned. Changelog New in version 0.9. Parameters environ (WSGIEnvironment) – the WSGI environ to fetch the content length from. Return type Optional[int]
doc_19335
Univariate feature selector with configurable strategy. Read more in the User Guide. Parameters score_funccallable, default=f_classif Function taking two arrays X and y, and returning a pair of arrays (scores, pvalues). For modes ‘percentile’ or ‘kbest’ it can return a single array scores. mode{‘percentile’, ...
doc_19336
An abstract base class for implementing source (and optionally bytecode) file loading. The class inherits from both ResourceLoader and ExecutionLoader, requiring the implementation of: ResourceLoader.get_data() ExecutionLoader.get_filename() Should only return the path to the source file; sourceless loading is no...
doc_19337
Predict class probabilities for X. Parameters Xarray-like, shape (n_samples, n_features) The input samples. Returns pndarray, shape (n_samples, n_classes) The class probabilities of the input samples.
doc_19338
Return a copy of the referent. If the referent is unpicklable then this will raise an exception.
doc_19339
Option for create_default_context() and SSLContext.load_default_certs(). This value indicates that the context may be used to authenticate Web servers (therefore, it will be used to create client-side sockets). New in version 3.4.
doc_19340
See Migration guide for more details. tf.compat.v1.linalg.solve, tf.compat.v1.matrix_solve tf.linalg.solve( matrix, rhs, adjoint=False, name=None ) Matrix is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. Rhs is a tensor of shape [..., M, K]. The output is a tensor shape [..., ...
doc_19341
A generic version of builtins.frozenset. Deprecated since version 3.9: builtins.frozenset now supports []. See PEP 585 and Generic Alias Type.
doc_19342
Set the current child watcher to watcher for the current policy. watcher must implement methods defined in the AbstractChildWatcher base class.
doc_19343
Return a representation of a floating-point number as a hexadecimal string. For finite floating-point numbers, this representation will always include a leading 0x and a trailing p and exponent.
doc_19344
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_19345
sets the threshold in milliseconds set_timing_treshold(time_ms) -> None Default is 1000./80 where 80 is the fps I want to switch to full screen mode. This method's name is a typo and should be fixed. Raises: TypeError -- if time_ms is not int or float
doc_19346
Return the table’s name. This is the name of the class if the table is for a class, the name of the function if the table is for a function, or 'top' if the table is global (get_type() returns 'module').
doc_19347
exit(code=None) Objects that when printed, print a message like “Use quit() or Ctrl-D (i.e. EOF) to exit”, and when called, raise SystemExit with the specified exit code.
doc_19348
Evaluate a string describing operations on DataFrame columns. Operates on columns only, not specific rows or elements. This allows eval to run arbitrary code, which can make you vulnerable to code injection if you pass user input to this function. Parameters expr:str The expression string to evaluate. inplace...
doc_19349
Perform a string formatting operation. The string on which this method is called can contain literal text or replacement fields delimited by braces {}. Each replacement field contains either the numeric index of a positional argument, or the name of a keyword argument. Returns a copy of the string where each replacemen...
doc_19350
./configure On large-file-capable Linux systems, this might work: CFLAGS='-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' OPT="-g -O2 $CFLAGS" \ ./configure Notable Module Contents In addition to many functions described in the os module documentation, posix defines the following data item: posix.envi...
doc_19351
Set the event. All tasks waiting for event to be set will be immediately awakened.
doc_19352
Get 3D z limits.
doc_19353
Reset the index, or a level of it. Reset the index of the DataFrame, and use the default one instead. If the DataFrame has a MultiIndex, this method can remove one or more levels. Parameters level:int, str, tuple, or list, default None Only remove the given levels from the index. Removes all levels by default. ...
doc_19354
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_19355
tf.config.experimental.list_physical_devices Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.list_physical_devices, tf.compat.v1.config.list_physical_devices tf.config.list_physical_devices( device_type=None ) Physical devices are hardware devices present on th...
doc_19356
Number of memory blocks in the new snapshot (int): 0 if the memory blocks have been released in the new snapshot.
doc_19357
Read the pickled representation of an object from the open file object file and return the reconstituted object hierarchy specified therein. This is equivalent to Unpickler(file).load(). The protocol version of the pickle is detected automatically, so no protocol argument is needed. Bytes past the pickled representatio...
doc_19358
Create an object to more easily perform multi-index slicing. See also MultiIndex.remove_unused_levels New MultiIndex with no unused levels. Notes See Defined Levels for further info on slicing a MultiIndex. Examples >>> midx = pd.MultiIndex.from_product([['A0','A1'], ['B0','B1','B2','B3']]) >>> columns = ['foo...
doc_19359
Returns a naive datetime that represents in timezone the same point in time as value, value being an aware datetime. If timezone is set to None, it defaults to the current time zone.
doc_19360
The type object for proxies of callable objects.
doc_19361
Convenience method for merging replicates. Merge will extrapolate times to number_per_run=1 and will not transfer any metadata. (Since it might differ between replicates)
doc_19362
The string representation of the response body. Whenever you call this property the response iterable is encoded and flattened. This can lead to unwanted behavior if you stream big data. This behavior can be disabled by setting implicit_sequence_conversion to False. If as_text is set to True the return value will be a ...
doc_19363
Returns the number of GPUs available.
doc_19364
An EmailValidator instance without any customizations.
doc_19365
Implements a callable that constructs URLs with the given base. The function can be called with any number of positional and keyword arguments which than are used to assemble the URL. Works with URLs and posix paths. Positional arguments are appended as individual segments to the path of the URL: >>> href = Href('/foo'...
doc_19366
New in version 3.2. Deprecated since version 3.3: It is now possible to use classmethod with abstractmethod(), making this decorator redundant. A subclass of the built-in classmethod(), indicating an abstract classmethod. Otherwise it is similar to abstractmethod(). This special case is deprecated, as the classmeth...
doc_19367
Other Members bytes_or_text_types complex_types integral_types real_types
doc_19368
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceCountUpTo tf.raw_ops.ResourceCountUpTo( resource, limit, T, name=None ) Args resource A Tensor of type resource. Should be from a scalar Variable node. limit An int. If incrementing ref would bring it above limit, instead generates...
doc_19369
Calculate the rolling count of non NaN observations. Returns Series or DataFrame Return type is the same as the original object with np.float64 dtype. See also pandas.Series.rolling Calling rolling with Series data. pandas.DataFrame.rolling Calling rolling with DataFrames. pandas.Series.count Aggregati...
doc_19370
Returns the mean value of the given expression, which must be numeric unless you specify a different output_field. Default alias: <field>__avg Return type: float if input is int, otherwise same as input field, or output_field if supplied Has one optional argument: distinct If distinct=True, Avg returns the mean ...
doc_19371
Inverse sine, element-wise. Parameters xarray_like y-coordinate on the unit circle. 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 provided or None, a freshly-allocated array is retur...
doc_19372
tf.round Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.round, tf.compat.v1.round tf.math.round( x, name=None ) Rounds half to even. Also known as bankers rounding. If you want to round according to the current system rounding mode use tf::cint. For example: x = tf.constant(...
doc_19373
Boolean indicator if the date belongs to a leap year. A leap year is a year, which has 366 days (instead of 365) including 29th of February as an intercalary day. Leap years are years which are multiples of four with the exception of years divisible by 100 but not by 400. Returns Series or ndarray Booleans indica...
doc_19374
Scalar method identical to the corresponding array attribute. Please see ndarray.itemset.
doc_19375
Fits a Minimum Covariance Determinant with the FastMCD algorithm. 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. y: Ignored Not used, present for API consistency by convention. Returns selfobject
doc_19376
Return a new “bytes” object, which is an immutable sequence of integers in the range 0 <= x < 256. bytes is an immutable version of bytearray – it has the same non-mutating methods and the same indexing and slicing behavior. Accordingly, constructor arguments are interpreted as for bytearray(). Bytes objects can also b...
doc_19377
Computes the squared Mahalanobis distances of given observations. Parameters Xarray-like of shape (n_samples, n_features) The observations, the Mahalanobis distances of the which we compute. Observations are assumed to be drawn from the same distribution than the data used in fit. Returns distndarray of s...
doc_19378
Attributes type_hint string type_hint
doc_19379
Return whether arbitrary affine transformations in draw_image() are supported (True for most vector backends).
doc_19380
Encapsulation of the information needed by the XMLReader to read entities. This class may include information about the public identifier, system identifier, byte stream (possibly with character encoding information) and/or the character stream of an entity. Applications will create objects of this class for use in the...
doc_19381
See Migration guide for more details. tf.compat.v1.keras.callbacks.RemoteMonitor tf.keras.callbacks.RemoteMonitor( root='http://localhost:9000', path='/publish/epoch/end/', field='data', headers=None, send_as_json=False ) Requires the requests library. Events are sent to root + '/publish/epoch/end/' by defau...
doc_19382
Return the Transform instance mapping patch coordinates to data coordinates. For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5.
doc_19383
wsgiref.util.guess_scheme(environ) Return a guess for whether wsgi.url_scheme should be “http” or “https”, by checking for a HTTPS environment variable in the environ dictionary. The return value is a string. This function is useful when creating a gateway that wraps CGI or a CGI-like protocol such as FastCGI. Typica...
doc_19384
sklearn.metrics.pairwise.haversine_distances(X, Y=None) [source] Compute the Haversine distance between samples in X and Y. The Haversine (or great circle) distance is the angular distance between two points on the surface of a sphere. The first coordinate of each point is assumed to be the latitude, the second is th...
doc_19385
Set whether the polygon is closed. Parameters closedbool True if the polygon is closed
doc_19386
Wraps the posix_spawnp() C library API for use from Python. Similar to posix_spawn() except that the system searches for the executable file in the list of directories specified by the PATH environment variable (in the same way as for execvp(3)). Raises an auditing event os.posix_spawn with arguments path, argv, env. ...
doc_19387
Set the padding between the axes. Parameters axes_pad(float, float) The padding (horizontal pad, vertical pad) in inches.
doc_19388
See Migration guide for more details. tf.compat.v1.feature_column.sequence_categorical_column_with_identity tf.feature_column.sequence_categorical_column_with_identity( key, num_buckets, default_value=None ) Pass this to embedding_column or indicator_column to convert sequence categorical data into dense represe...
doc_19389
Don’t allow sites to set two-component domains with country-code top-level domains like .co.uk, .gov.uk, .co.nz.etc. This is far from perfect and isn’t guaranteed to work!
doc_19390
New in Django 3.2. The list of URL patterns tried before the URL either matched one or exhausted available patterns.
doc_19391
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_19392
The impurity-based feature importances. The higher, the more important the feature. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardin...
doc_19393
tf.compat.v1.disable_tensor_equality() This is a legacy behaviour of TensorFlow and is highly discouraged.
doc_19394
Set the label position (top or bottom) Parameters position{'top', 'bottom'} Examples using matplotlib.axis.XAxis.set_label_position Title positioning
doc_19395
Alias for get_linewidth.
doc_19396
[Deprecated] Convert a mathtext string to a grayscale array and depth. Parameters texstrstr A valid mathtext string, e.g., r'IQ: $sigma_i=15$'. dpifloat The dots-per-inch setting used to render the text. fontsizeint The font size in points Returns array2D uint8 alpha Mask array of rasterized tex...
doc_19397
Draw random samples from a multivariate normal distribution. The multivariate normal, multinormal or Gaussian distribution is a generalization of the one-dimensional normal distribution to higher dimensions. Such a distribution is specified by its mean and covariance matrix. These parameters are analogous to the mean...
doc_19398
tf.metrics.sparse_top_k_categorical_accuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.sparse_top_k_categorical_accuracy tf.keras.metrics.sparse_top_k_categorical_accuracy( y_true, y_pred, k=5 ) Standalone usage: y_true = [2, 1] y_pred = [[0.1, 0.9, 0.8], [0.0...
doc_19399
Transform features by scaling each feature to a given range. This estimator scales and translates each feature individually such that it is in the given range on the training set, e.g. between zero and one. The transformation is given by: X_std = (X - X.min(axis=0)) / (X.max(axis=0) - X.min(axis=0)) X_scaled = X_std ...