_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_20900
Feed the given bytes data to the parser.
doc_20901
Returns the pickle of the array as a string. pickle.loads will convert the string back to an array. Parameters None
doc_20902
Stores both the algorithm’s hyperparameters and the internal state for all the gradients during the training. Particularly, matrix_approximation_rank and start_powerSGD_iter are the main hyperparameters that should be tuned by the user. For performance, we suggest to keep binary hyperparameters use_error_feedback and...
doc_20903
Base class for all kernels. New in version 0.18. Attributes bounds Returns the log-transformed bounds on the theta. hyperparameters Returns a list of all hyperparameter specifications. n_dims Returns the number of non-fixed hyperparameters of the kernel. requires_vector_input Returns whether the k...
doc_20904
Removes and returns the next segment of PATH_INFO, pushing it onto SCRIPT_NAME. Returns None if there is nothing left on PATH_INFO. If the charset is set to None bytes are returned. If there are empty segments ('/foo//bar) these are ignored but properly pushed to the SCRIPT_NAME: >>> env = {'SCRIPT_NAME': '/foo', 'PATH...
doc_20905
Returns True if any of the elements of a evaluate to True. Masked values are considered as False during computation. Refer to numpy.any for full documentation. See also numpy.ndarray.any corresponding function for ndarrays numpy.any equivalent function
doc_20906
Required to request change notifications for a registry key or for subkeys of a registry key.
doc_20907
Alias for set_antialiased.
doc_20908
Returns a string representation of the IP address, controlled by an explicit format string. fmt can be one of the following: 's', the default option, equivalent to str(), 'b' for a zero-padded binary string, 'X' or 'x' for an uppercase or lowercase hexadecimal representation, or 'n', which is equivalent to 'b' for IPv4...
doc_20909
Return a list of the child Artists of this Artist.
doc_20910
Decorator for invoking check_impl_detail() on guards. If that returns False, then uses msg as the reason for skipping the test.
doc_20911
Change the mode of the file given by fd to the numeric mode. See the docs for chmod() for possible values of mode. As of Python 3.3, this is equivalent to os.chmod(fd, mode). Raises an auditing event os.chmod with arguments path, mode, dir_fd. Availability: Unix.
doc_20912
See Migration guide for more details. tf.compat.v1.raw_ops.ReadFile tf.raw_ops.ReadFile( filename, name=None ) Args filename A Tensor of type string. name A name for the operation (optional). Returns A Tensor of type string.
doc_20913
sklearn.metrics.pairwise.paired_euclidean_distances(X, Y) [source] Computes the paired euclidean distances between X and Y. Read more in the User Guide. Parameters Xarray-like of shape (n_samples, n_features) Yarray-like of shape (n_samples, n_features) Returns distancesndarray of shape (n_samples,)
doc_20914
Normalize samples individually to unit norm. Each sample (i.e. each row of the data matrix) with at least one non zero component is rescaled independently of other samples so that its norm (l1, l2 or inf) equals one. This transformer is able to work both with dense numpy arrays and scipy.sparse matrix (use CSR format...
doc_20915
Segment new image using trained internal classifier. Parameters imagendarray Input image, which can be grayscale or multichannel, and must have a number of dimensions compatible with self.features_func. Raises NotFittedError if self.clf has not been fitted yet (use self.fit).
doc_20916
Registers a shell context processor function. Changelog New in version 0.11. Parameters f (Callable) – Return type Callable
doc_20917
Return the day name of the Timestamp with specified locale. Parameters locale:str, default None (English locale) Locale determining the language in which to return the day name. Returns str Examples >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651') >>> ts.day_name() 'Saturday' Analogous for pd.N...
doc_20918
An entity reference in an attribute value referred to an external entity instead of an internal entity.
doc_20919
Set timeout of connections to t seconds.
doc_20920
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 between the variables. It is equal to zero if and only if two random variables are independent, and higher values mean higher dependency. The fu...
doc_20921
Extension Arrays are only allowed to be 1-dimensional.
doc_20922
The string representation in dotted decimal notation. Leading zeroes are never included in the representation. As IPv4 does not define a shorthand notation for addresses with octets set to zero, these two attributes are always the same as str(addr) for IPv4 addresses. Exposing these attributes makes it easier to write ...
doc_20923
Set the artist's clip path. Parameters pathPatch or Path or TransformedPath or None The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed. transformTransform, optional Only used if path is a Path, in which case the given Path is converted to a Tra...
doc_20924
Convert coefficient matrix to sparse format. Converts the coef_ member to a scipy.sparse matrix, which for L1-regularized models can be much more memory- and storage-efficient than the usual numpy.ndarray representation. The intercept_ member is not converted. Returns self Fitted estimator. Notes For non-spar...
doc_20925
Repeat a 0-D to 2-D array or matrix MxN times. Parameters aarray_like The array or matrix to be repeated. m, nint The number of times a is repeated along the first and second axes. Returns outndarray The result of repeating a. Examples >>> import numpy.matlib >>> a0 = np.array(1) >>> np.matlib.r...
doc_20926
Maps short codes for line style to their full name used by backends.
doc_20927
Implements database-backed session store. classmethod get_model_class() Override this method to return a custom session model if you need one. create_model_instance(data) Returns a new instance of the session model object, which represents the current session state. Overriding this method provides the ability...
doc_20928
Traceback where the memory block was allocated, Traceback instance.
doc_20929
Set the artist's clip path. Parameters pathPatch or Path or TransformedPath or None The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed. transformTransform, optional Only used if path is a Path, in which case the given Path is converted to a Tra...
doc_20930
A dictionary mapping names in common_dirs to dircmp objects.
doc_20931
See Migration guide for more details. tf.compat.v1.raw_ops.FakeQuantWithMinMaxVarsPerChannelGradient tf.raw_ops.FakeQuantWithMinMaxVarsPerChannelGradient( gradients, inputs, min, max, num_bits=8, narrow_range=False, name=None ) Args gradients A Tensor of type float32. Backpropagated gradients above the ...
doc_20932
A custom data type, to be paired with an ExtensionArray. See also extensions.register_extension_dtype Register an ExtensionType with pandas as class decorator. extensions.ExtensionArray Abstract base class for custom 1-D array types. Notes The interface includes the following abstract methods that must be imp...
doc_20933
See Migration guide for more details. tf.compat.v1.sparse.split tf.compat.v1.sparse_split( keyword_required=KeywordRequired(), sp_input=None, num_split=None, axis=None, name=None, split_dim=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (split_dim). They will be removed in a future version. Instructions for ...
doc_20934
Reverse the transformation operation Parameters Xarray of shape [n_samples, n_selected_features] The input samples. Returns X_rarray of shape [n_samples, n_original_features] X with columns of zeros inserted where features would have been removed by transform.
doc_20935
If the header value can be recognized as a valid date of one form or another, this attribute will contain a datetime instance representing that date. If the timezone of the input date is specified as -0000 (indicating it is in UTC but contains no information about the source timezone), then datetime will be a naive dat...
doc_20936
sklearn.utils.estimator_checks.parametrize_with_checks(estimators) [source] Pytest specific decorator for parametrizing estimator checks. The id of each check is set to be a pprint version of the estimator and the name of the check with its keyword arguments. This allows to use pytest -k to specify which tests to run...
doc_20937
self.long() is equivalent to self.to(torch.int64). See to(). Parameters memory_format (torch.memory_format, optional) – the desired memory format of returned Tensor. Default: torch.preserve_format.
doc_20938
Cumulative sum for each group. Returns Series or DataFrame See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.
doc_20939
See Migration guide for more details. tf.compat.v1.raw_ops.QueueEnqueueV2 tf.raw_ops.QueueEnqueueV2( handle, components, timeout_ms=-1, name=None ) The components input has k elements, which correspond to the components of tuples stored in the given queue. N.B. If the queue is full, this operation will block unt...
doc_20940
Return a scale class by name. Parameters scale{'function', 'functionlog', 'linear', 'log', 'logit', 'symlog'} axismatplotlib.axis.Axis
doc_20941
See Migration guide for more details. tf.compat.v1.raw_ops.Pow tf.raw_ops.Pow( x, y, name=None ) Given a tensor x and a tensor y, this operation computes \(x^y\) for corresponding elements in x and y. For example: # tensor 'x' is [[2, 2]], [3, 3]] # tensor 'y' is [[8, 16], [2, 3]] tf.pow(x, y) ==> [[256, 65536],...
doc_20942
tf.experimental.numpy.object_( *args, **kwargs ) Character code: 'O'. Methods all all() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, all the attributes of the ndarray class so as to provide a uniform API. See also the correspon...
doc_20943
Join a thread within timeout. Raise an AssertionError if thread is still alive after timeout seconds.
doc_20944
Remove a callback based on its observer id. See also add_callback
doc_20945
The LMTP protocol, which is very similar to ESMTP, is heavily based on the standard SMTP client. It’s common to use Unix sockets for LMTP, so our connect() method must support that as well as a regular host:port server. The optional arguments local_hostname and source_address have the same meaning as they do in the SMT...
doc_20946
For each key, value pair in kwargs, check that value has the shape _shape, if not, raise an appropriate ValueError. None in the shape is treated as a "free" size that can have any length. e.g. (None, 2) -> (N, 2) The values checked must be numpy arrays. Examples To check for (N, 2) shaped arrays >>> _api.check_shape(...
doc_20947
the salt that should be applied on top of the secret key for the signing of cookie based sessions.
doc_20948
Return whether a contour is long enough to hold a label.
doc_20949
A dictionary mapping method names to line numbers. This can be derived from the newer children dictionary, but remains for back-compatibility.
doc_20950
A unique number for each of the 21 different built-in types. These are roughly ordered from least-to-most precision. Examples >>> dt = np.dtype(str) >>> dt.num 19 >>> dt = np.dtype(float) >>> dt.num 12
doc_20951
Bases: object The minimal interface for a converter to take custom data types (or sequences) and convert them to values Matplotlib can use. staticaxisinfo(unit, axis)[source] Return an AxisInfo for the axis with the specified units. staticconvert(obj, unit, axis)[source] Convert obj using unit for the speci...
doc_20952
tf.experimental.numpy.cross( a, b, axisa=-1, axisb=-1, axisc=-1, axis=None ) See the NumPy documentation for numpy.cross.
doc_20953
Save a Figure to this file as a new page. Any other keyword arguments are passed to savefig. Parameters figureFigure or int, default: the active figure The figure, or index of the figure, that is saved to the file.
doc_20954
The ModelAdmin class is the representation of a model in the admin interface. Usually, these are stored in a file named admin.py in your application. Let’s take a look at an example of the ModelAdmin: from django.contrib import admin from myapp.models import Author class AuthorAdmin(admin.ModelAdmin): pass admin.s...
doc_20955
Send a LAST command. Return as for stat().
doc_20956
Floating-point exception. For example, division by zero. See also ZeroDivisionError is raised when the second argument of a division or modulo operation is zero.
doc_20957
tf.experimental.numpy.hstack( tup ) See the NumPy documentation for numpy.hstack.
doc_20958
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_20959
Plot visualization. Parameters include_valuesbool, default=True Includes values in confusion matrix. cmapstr or matplotlib Colormap, default=’viridis’ Colormap recognized by matplotlib. xticks_rotation{‘vertical’, ‘horizontal’} or float, default=’horizontal’ Rotation of xtick labels. values_formatstr,...
doc_20960
Holds a string containing all of the data sent by the client during the DATA state, up to but not including the terminating "\r\n.\r\n".
doc_20961
In-place version of logit()
doc_20962
Checks if all the work submitted has been completed. Returns A boolean indicating if all kernels in this stream are completed.
doc_20963
See Migration guide for more details. tf.compat.v1.initializers.variance_scaling, tf.compat.v1.variance_scaling_initializer tf.compat.v1.keras.initializers.VarianceScaling( scale=1.0, mode='fan_in', distribution='truncated_normal', seed=None, dtype=tf.dtypes.float32 ) With distribution="truncated_normal" or ...
doc_20964
Reload a previously imported module. The argument must be a module object, so it must have been successfully imported before. This is useful if you have edited the module source file using an external editor and want to try out the new version without leaving the Python interpreter. The return value is the module objec...
doc_20965
Exit the process with status n, without calling cleanup handlers, flushing stdio buffers, etc. Note The standard way to exit is sys.exit(n). _exit() should normally only be used in the child process after a fork().
doc_20966
Return the entire message flattened as a bytes object. When optional unixfrom is true, the envelope header is included in the returned string. unixfrom defaults to False. The policy argument may be used to override the default policy obtained from the message instance. This can be used to control some of the formatting...
doc_20967
First discrete difference of element. Calculates the difference of a Dataframe element compared with another element in the Dataframe (default is element in previous row). Parameters periods:int, default 1 Periods to shift for calculating difference, accepts negative values. axis:{0 or ‘index’, 1 or ‘columns’...
doc_20968
GeometryCollection objects may be instantiated by passing in other GEOSGeometry as arguments, or a single sequence of GEOSGeometry objects: >>> poly = Polygon( ((0, 0), (0, 1), (1, 1), (0, 0)) ) >>> gc = GeometryCollection(Point(0, 0), MultiPoint(Point(0, 0), Point(1, 1)), poly) >>> gc = GeometryCollection((Point(0, 0)...
doc_20969
Return the pick radius used for containment tests. See contains for more details.
doc_20970
See Migration guide for more details. tf.compat.v1.math.xlog1py tf.math.xlog1py( x, y, name=None ) Given x and y, compute x * log1p(y). This function safely returns zero when x = 0, no matter what the value of y is. Example: tf.math.xlog1py(0., 1.) <tf.Tensor: shape=(), dtype=float32, numpy=0.> tf.math.xlog1py(...
doc_20971
See Migration guide for more details. tf.compat.v1.raw_ops.MatrixDeterminant tf.raw_ops.MatrixDeterminant( input, name=None ) The input is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. The output is a tensor containing the determinants for all input submatrices [..., :, :]. ...
doc_20972
binhex.binhex(input, output) Convert a binary file with filename input to binhex file output. The output parameter can either be a filename or a file-like object (any object supporting a write() and close() method). binhex.hexbin(input, output) Decode a binhex file input. input may be a filename or a file-like ...
doc_20973
In-place version of squeeze()
doc_20974
Creates or opens the specified key, returning a handle object. key is an already open key, or one of the predefined HKEY_* constants. sub_key is a string that names the key this method opens or creates. If key is one of the predefined keys, sub_key may be None. In that case, the handle returned is the same key handle p...
doc_20975
In-place version of pow()
doc_20976
Bayesian ridge regression. Fit a Bayesian ridge model. See the Notes section for details on this implementation and the optimization of the regularization parameters lambda (precision of the weights) and alpha (precision of the noise). Read more in the User Guide. Parameters n_iterint, default=300 Maximum numbe...
doc_20977
Return True if path refers to an existing path or an open file descriptor. Returns False for broken symbolic links. On some platforms, this function may return False if permission is not granted to execute os.stat() on the requested file, even if the path physically exists. Changed in version 3.3: path can now be an i...
doc_20978
Compute the Sampson distance. The Sampson distance is the first approximation to the geometric error. Parameters src(N, 2) array Source coordinates. dst(N, 2) array Destination coordinates. Returns residuals(N, ) array Sampson distance.
doc_20979
This method is called when a node is updated, right after new_index is pushed onto the heap and the traceback map is updated. This method can be overloaded to keep track of other arrays that are used by a specific implementation of the algorithm. For instance the MCP_Connect class uses it to update an id map.
doc_20980
Returns an iterator over the Future instances (possibly created by different Executor instances) given by fs that yields futures as they complete (finished or cancelled futures). Any futures given by fs that are duplicated will be returned once. Any futures that completed before as_completed() is called will be yielded...
doc_20981
Print the NumPy arrays in the given dictionary. If there is no dictionary passed in or vardict is None then returns NumPy arrays in the globals() dictionary (all NumPy arrays in the namespace). Parameters vardictdict, optional A dictionary possibly containing ndarrays. Default is globals(). Returns outNon...
doc_20982
See Migration guide for more details. tf.compat.v1.keras.layers.Flatten tf.keras.layers.Flatten( data_format=None, **kwargs ) Note: If inputs are shaped (batch,) without a feature axis, then flattening adds an extra channel dimension and output shape is (batch, 1). Arguments data_format A string, one ...
doc_20983
The constant string used by the operating system to refer to the current directory. This is '.' for Windows and POSIX. Also available via os.path.
doc_20984
Set the lower and upper numerical bounds of the z-axis. This method will honor axes inversion regardless of parameter order. It will not change the autoscaling setting (get_autoscalez_on()).
doc_20985
See Migration guide for more details. tf.compat.v1.keras.layers.Embedding tf.keras.layers.Embedding( input_dim, output_dim, embeddings_initializer='uniform', embeddings_regularizer=None, activity_regularizer=None, embeddings_constraint=None, mask_zero=False, input_length=None, **kwargs ) e.g. [[4], [20]]...
doc_20986
Identical to the iter_unpack() function, using the compiled format. The buffer’s size in bytes must be a multiple of size. New in version 3.4.
doc_20987
The similarity of two sets of biclusters. Similarity between individual biclusters is computed. Then the best matching between sets is found using the Hungarian algorithm. The final score is the sum of similarities divided by the size of the larger set. Read more in the User Guide. Parameters a(rows, columns) T...
doc_20988
Returns the headers of the response in the form of an EmailMessage instance.
doc_20989
See Migration guide for more details. tf.compat.v1.nn.depth_to_space tf.compat.v1.depth_to_space( input, block_size, name=None, data_format='NHWC' ) Rearranges data from depth into blocks of spatial data. This is the reverse transformation of SpaceToDepth. More specifically, this op outputs a copy of the input t...
doc_20990
Register a function to be run at the end of each request, regardless of whether there was an exception or not. These functions are executed when the request context is popped, even if not an actual request was performed. Example: ctx = app.test_request_context() ctx.push() ... ctx.pop() When ctx.pop() is executed in t...
doc_20991
Transform from unconstrained space to the simplex of one additional dimension via a stick-breaking process. This transform arises as an iterated sigmoid transform in a stick-breaking construction of the Dirichlet distribution: the first logit is transformed via sigmoid to the first probability and the probability of ...
doc_20992
Initialize self. See help(type(self)) for accurate signature.
doc_20993
warnings.warn wrapper that sets stacklevel to "outside Matplotlib". The original emitter of the warning can be obtained by patching this function back to warnings.warn, i.e. _api.warn_external = warnings.warn (or functools.partial(warnings.warn, stacklevel=2), etc.).
doc_20994
Return the group id.
doc_20995
[Deprecated] Notes Deprecated since version 3.5:
doc_20996
Wait until it is appropriate to resume writing to the stream. Example: writer.write(data) await writer.drain() This is a flow control method that interacts with the underlying IO write buffer. When the size of the buffer reaches the high watermark, drain() blocks until the size of the buffer is drained down to the low...
doc_20997
Same as datetime.strftime(). This makes it possible to specify a format string for a datetime object in formatted string literals and when using str.format(). For a complete list of formatting directives, see strftime() and strptime() Behavior.
doc_20998
Create a folder whose name is folder and return a Maildir instance representing it.
doc_20999
The name of the class, function, method, descriptor, or generator instance.