_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_19700
Suffix labels with string suffix. For Series, the row labels are suffixed. For DataFrame, the column labels are suffixed. Parameters suffix:str The string to add after each label. Returns Series or DataFrame New Series or DataFrame with updated labels. See also Series.add_prefix Prefix row labels w...
doc_19701
Return True if the values a and b are close to each other and False otherwise. Whether or not two values are considered close is determined according to given absolute and relative tolerances. rel_tol is the relative tolerance – it is the maximum allowed difference between a and b, relative to the larger absolute value...
doc_19702
Return a string object containing two hexadecimal digits for each byte in the instance. >>> b'\xf0\xf1\xf2'.hex() 'f0f1f2' If you want to make the hex string easier to read, you can specify a single character separator sep parameter to include in the output. By default between each byte. A second optional bytes_per_se...
doc_19703
Draw a filled black rectangle from (x1, y1) to (x2, y2).
doc_19704
Instantiate a socket from data obtained from the socket.share() method. The socket is assumed to be in blocking mode. Availability: Windows. New in version 3.3.
doc_19705
Compute decision function of X for each boosting iteration. This method allows monitoring (i.e. determine error on testing set) after each boosting iteration. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Sparse matrix can be CSC, CSR, COO, DOK, or LIL. COO...
doc_19706
Bases: skimage.feature.util.FeatureDetector CENSURE keypoint detector. min_scaleint, optional Minimum scale to extract keypoints from. max_scaleint, optional Maximum scale to extract keypoints from. The keypoints will be extracted from all the scales except the first and the last i.e. from the scales in the r...
doc_19707
Delete any character at (y, x).
doc_19708
Compute the square root of x. For negative input elements, a complex value is returned (unlike numpy.sqrt which returns NaN). Parameters xarray_like The input value(s). Returns outndarray or scalar The square root of x. If x was a scalar, so is out, otherwise an array is returned. See also numpy.s...
doc_19709
Return a modifiable information dictionary object (see PDF reference section 10.2.1 'Document Information Dictionary').
doc_19710
A buffered text stream providing higher-level access to a BufferedIOBase buffered binary stream. It inherits TextIOBase. encoding gives the name of the encoding that the stream will be decoded or encoded with. It defaults to locale.getpreferredencoding(False). errors is an optional string that specifies how encoding an...
doc_19711
Call predict on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_19712
See Migration guide for more details. tf.compat.v1.raw_ops.LinSpace tf.raw_ops.LinSpace( start, stop, num, name=None ) A sequence of num evenly-spaced values are generated beginning at start. If num > 1, the values in the sequence increase by stop - start / num - 1, so that the last one is exactly stop. For exam...
doc_19713
Like rfind, but raises ValueError when the substring sub is not found. See also char.rindex
doc_19714
Close the transport. If the transport has a buffer for outgoing data, buffered data will be flushed asynchronously. No more data will be received. After all buffered data is flushed, the protocol’s protocol.connection_lost() method will be called with None as its argument.
doc_19715
Switch back to the vector renderer and draw the contents of the raster renderer as an image on the vector renderer. Used by MixedModeRenderer.
doc_19716
Rotate a n-D tensor by 90 degrees in the plane specified by dims axis. Rotation direction is from the first towards the second axis if k > 0, and from the second towards the first for k < 0. Parameters input (Tensor) – the input tensor. k (int) – number of times to rotate dims (a list or tuple) – axis to rotate ...
doc_19717
See Migration guide for more details. tf.compat.v1.raw_ops.UnicodeTranscode tf.raw_ops.UnicodeTranscode( input, input_encoding, output_encoding, errors='replace', replacement_char=65533, replace_control_characters=False, name=None ) The input is a string tensor of any shape. The output is a string tensor of ...
doc_19718
Returns a tensor where each row contains num_samples indices sampled from the multinomial probability distribution located in the corresponding row of tensor input. Note The rows of input do not need to sum to one (in which case we use the values as weights), but must be non-negative, finite and have a non-zero sum. ...
doc_19719
Logs a user out. URL name: logout Attributes: next_page The URL to redirect to after logout. Defaults to LOGOUT_REDIRECT_URL. template_name The full name of a template to display after logging the user out. Defaults to registration/logged_out.html. redirect_field_name The name of a GET field containing ...
doc_19720
Look up the codec for the given encoding and return its StreamWriter class or factory function. Raises a LookupError in case the encoding cannot be found.
doc_19721
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_19722
A legend handler that shows numpoints points in the legend entry. Parameters marker_padfloat Padding between points in legend entry. numpointsint Number of points to show in legend entry. **kwargs Keyword arguments forwarded to HandlerBase. get_numpoints(legend)[source] get_xdata(legend, xdescen...
doc_19723
A processing class used to extract the DocTests that are relevant to a given object, from its docstring and the docstrings of its contained objects. DocTests can be extracted from modules, classes, functions, methods, staticmethods, classmethods, and properties. The optional argument verbose can be used to display the ...
doc_19724
Return a dictionary of all the properties of the artist.
doc_19725
Returns True if first argument is a typecode lower/equal in type hierarchy. This is like the builtin issubclass, but for dtypes. Parameters arg1, arg2dtype_like dtype or object coercible to one Returns outbool See also Scalars Overview of the numpy type hierarchy. issubsctype, issubclass_ Exam...
doc_19726
A quantized EmbeddingBag module with quantized packed weights as inputs. We adopt the same interface as torch.nn.EmbeddingBag, please see https://pytorch.org/docs/stable/nn.html#torch.nn.EmbeddingBag for documentation. Similar to EmbeddingBag, attributes will be randomly initialized at module creation time and will b...
doc_19727
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_19728
tf.compat.v1.data.experimental.Counter( start=0, step=1, dtype=tf.dtypes.int64 ) For example: Dataset.count() == [0, 1, 2, ...) Dataset.count(2) == [2, 3, ...) Dataset.count(2, 5) == [2, 7, 12, ...) Dataset.count(0, -1) == [0, -1, -2, ...) Dataset.count(10, -1) == [10, 9, ...) Args start (Optional.) The ...
doc_19729
See Migration guide for more details. tf.compat.v1.raw_ops.ReaderNumRecordsProducedV2 tf.raw_ops.ReaderNumRecordsProducedV2( reader_handle, name=None ) This is the same as the number of ReaderRead executions that have succeeded. Args reader_handle A Tensor of type resource. Handle to a Reader. name ...
doc_19730
Return unique values in the index. Unique values are returned in order of appearance, this does NOT sort. Parameters level:int or hashable, optional Only return values from specified level (for MultiIndex). If int, gets the level by integer position, else by level name. Returns Index See also unique ...
doc_19731
Add a table to an Axes. At least one of cellText or cellColours must be specified. These parameters must be 2D lists, in which the outer lists define the rows and the inner list define the column values per row. Each row must have the same number of elements. The table can optionally have row and column headers, whic...
doc_19732
The defects attribute contains a list of all the problems found when parsing this message. See email.errors for a detailed description of the possible parsing defects.
doc_19733
Function is not implemented. Use pd.to_datetime().
doc_19734
An alias to collections.abc.Sized
doc_19735
The server refused our HELO message.
doc_19736
The seconds of the datetime. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="s") ... ) >>> datetime_series 0 2000-01-01 00:00:00 1 2000-01-01 00:00:01 2 2000-01-01 00:00:02 dtype: datetime64[ns] >>> datetime_series.dt.second 0 0 1 1 2 2 dtype: int64
doc_19737
print() # blank line, end of headers The second section is usually HTML, which allows the client software to display nicely formatted text with header, in-line images, etc. Here’s Python code that prints a simple piece of HTML: print("<TITLE>CGI script output</TITLE>") print("<H1>This is my...
doc_19738
See Migration guide for more details. tf.compat.v1.math.erfcinv tf.math.erfcinv( x, name=None ) Given x, compute the inverse complementary error function of x. This function is the inverse of tf.math.erfc, and is defined on [0, 2]. tf.math.erfcinv([0., 0.2, 1., 1.5, 2.]) <tf.Tensor: shape=(5,), dtype=float32, n...
doc_19739
@tf_contextlib.contextmanager tf.summary.experimental.summary_scope( name, default_name='summary', values=None ) This behaves similarly to tf.name_scope, except that it returns a generated summary tag in addition to the scope name. The tag is structurally similar to the scope name - derived from the user-provided ...
doc_19740
Returns a new tensor with a dimension of size one inserted at the specified position. The returned tensor shares the same underlying data with this tensor. A dim value within the range [-input.dim() - 1, input.dim() + 1) can be used. Negative dim will correspond to unsqueeze() applied at dim = dim + input.dim() + 1. P...
doc_19741
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_19742
Return the title text of the window containing the figure, or None if there is no window (e.g., a PS backend).
doc_19743
Copy an element of an array to a standard Python scalar and return it. Parameters *argsArguments (variable number and type) none: in this case, the method only works for arrays with one element (a.size == 1), which element is copied into a standard Python scalar object and returned. int_type: this argument is ...
doc_19744
Door. New in version 3.4.
doc_19745
This read-only attribute provides the SQLite database Connection used by the Cursor object. A Cursor object created by calling con.cursor() will have a connection attribute that refers to con: >>> con = sqlite3.connect(":memory:") >>> cur = con.cursor() >>> cur.connection == con True
doc_19746
The Sum kernel takes two kernels \(k_1\) and \(k_2\) and combines them via \[k_{sum}(X, Y) = k_1(X, Y) + k_2(X, Y)\] Note that the __add__ magic method is overridden, so Sum(RBF(), RBF()) is equivalent to using the + operator with RBF() + RBF(). Read more in the User Guide. New in version 0.18. Parameters k1Ke...
doc_19747
Fit the model with X. Initializes the internal variables. The method needs no information about the distribution of data, so we only care about n_features in X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training data, where n_samples in the number of samples and n_features is the ...
doc_19748
Alias for field number 3
doc_19749
class sklearn.base.BaseEstimator [source] Base class for all estimators in scikit-learn. Notes All estimators should specify all the parameters that can be set at the class level in their __init__ as explicit keyword arguments (no *args or **kwargs). Methods get_params([deep]) Get parameters for this estimator. s...
doc_19750
Returns True if the DE-9IM intersection matrix for the two Geometries is T*T****** (for a point and a curve,a point and an area or a line and an area) 0******** (for two curves).
doc_19751
Generate Kernel Density Estimate plot using Gaussian kernels. In statistics, kernel density estimation (KDE) is a non-parametric way to estimate the probability density function (PDF) of a random variable. This function uses Gaussian kernels and includes automatic bandwidth determination. Parameters bw_method:str...
doc_19752
Set the Categorical to be ordered. Parameters inplace:bool, default False Whether or not to set the ordered attribute in-place or return a copy of this categorical with ordered set to True. Returns Categorical or None Ordered Categorical or None if inplace=True.
doc_19753
Print a summary of all the test cases that have been run by this DocTestRunner, and return a named tuple TestResults(failed, attempted). The optional verbose argument controls how detailed the summary is. If the verbosity is not specified, then the DocTestRunner’s verbosity is used.
doc_19754
Set the position of the rectangle. Parameters postuple of 4 floats position of the rectangle that will be divided
doc_19755
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. Parameters mean...
doc_19756
See Migration guide for more details. tf.compat.v1.raw_ops.Fingerprint tf.raw_ops.Fingerprint( data, method, name=None ) Generates fingerprint values of data. Fingerprint op considers the first dimension of data as the batch dimension, and output[i] contains the fingerprint value generated from contents in data[...
doc_19757
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_19758
Return a list of the child Artists of this Artist.
doc_19759
Convert strings in the Series/Index to be capitalized. Equivalent to str.capitalize(). Returns Series or Index of object See also Series.str.lower Converts all characters to lowercase. Series.str.upper Converts all characters to uppercase. Series.str.title Converts first character of each word to upperca...
doc_19760
Return self-=value.
doc_19761
Copy of the array, cast to a specified type. Parameters dtypestr or dtype Typecode or data-type to which the array is cast. order{‘C’, ‘F’, ‘A’, ‘K’}, optional Controls the memory layout order of the result. ‘C’ means C order, ‘F’ means Fortran order, ‘A’ means ‘F’ order if all the arrays are Fortran contig...
doc_19762
Asserts that the formset raises the provided list of errors when rendered. response must be a response instance returned by the test client. formset is the name the Formset instance was given in the template context of the response. form_index is the number of the form within the Formset. If form_index has a value of N...
doc_19763
Return whether the figure with the given id exists.
doc_19764
Base class for warnings about dubious syntax.
doc_19765
Create a new event loop object.
doc_19766
Return this Axis' minor tick locations in data coordinates.
doc_19767
sklearn.decomposition.non_negative_factorization(X, W=None, H=None, n_components=None, *, init='warn', update_H=True, solver='cd', beta_loss='frobenius', tol=0.0001, max_iter=200, alpha=0.0, l1_ratio=0.0, regularization=None, random_state=None, verbose=0, shuffle=False) [source] Compute Non-negative Matrix Factorizat...
doc_19768
Same as for HTTPPasswordMgrWithDefaultRealm objects
doc_19769
Packs a fixed length opaque data stream, similarly to pack_fstring().
doc_19770
Subclasses of RuleFactory have to override this method and return an iterable of rules. Parameters map (werkzeug.routing.Map) – Return type Iterable[werkzeug.routing.Rule]
doc_19771
The str value of a Group is formatted according to RFC 5322, but with no Content Transfer Encoding of any non-ASCII characters. If display_name is none and there is a single Address in the addresses list, the str value will be the same as the str of that single Address.
doc_19772
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_19773
Rolls back the transaction to savepoint sid.
doc_19774
Returns true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise. See also char.isupper
doc_19775
The most recent supported protocol in the CAPABILITY response from the server.
doc_19776
See Migration guide for more details. tf.compat.v1.raw_ops.ScatterMul tf.raw_ops.ScatterMul( ref, indices, updates, use_locking=False, name=None ) This operation computes # Scalar indices ref[indices, ...] *= updates[...] # Vector indices (for each i) ref[indices[i], ...] *= updates[i, ...] # High rank indices...
doc_19777
Returns current value of a given interval timer specified by which. Availability: Unix.
doc_19778
Convert strings in the Series/Index to titlecase. Equivalent to str.title(). Returns Series or Index of object See also Series.str.lower Converts all characters to lowercase. Series.str.upper Converts all characters to uppercase. Series.str.title Converts first character of each word to uppercase and rem...
doc_19779
The URL to redirect to after a successful password reset request. Defaults to 'password_reset_done'.
doc_19780
Called by the server’s constructor to activate the server. The default behavior for a TCP server just invokes listen() on the server’s socket. May be overridden.
doc_19781
os.O_NOINHERIT os.O_SHORT_LIVED os.O_TEMPORARY os.O_RANDOM os.O_SEQUENTIAL os.O_TEXT The above constants are only available on Windows.
doc_19782
The HTTP response headers for the HTTP request that caused the HTTPError. New in version 3.4.
doc_19783
Decorator to require that a view only accepts the GET method.
doc_19784
See Migration guide for more details. tf.compat.v1.keras.layers.Dropout tf.keras.layers.Dropout( rate, noise_shape=None, seed=None, **kwargs ) The Dropout layer randomly sets input units to 0 with a frequency of rate at each step during training time, which helps prevent overfitting. Inputs not set to 0 are scal...
doc_19785
Return the EWKB representation of this Geometry as a Python buffer. This is an extension of the WKB specification that includes any SRID value that are a part of this geometry.
doc_19786
Return an MH instance representing the folder whose name is folder. A NoSuchMailboxError exception is raised if the folder does not exist.
doc_19787
'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_19788
Container for the Mersenne Twister pseudo-random number generator. Parameters seed{None, int, array_like[ints], SeedSequence}, optional A seed to initialize the BitGenerator. If None, then fresh, unpredictable entropy will be pulled from the OS. If an int or array_like[ints] is passed, then it will be passed to...
doc_19789
Bases: matplotlib.collections.Collection Class for the efficient drawing of a quadrilateral mesh. A quadrilateral mesh is a grid of M by N adjacent qudrilaterals that are defined via a (M+1, N+1) grid of vertices. The quadrilateral (m, n) is defined by the vertices (m+1, n) ----------- (m+1, n+1) / ...
doc_19790
Sparse representation of the fitted coef_.
doc_19791
Add an infinitely long straight line. The line can be defined either by two points xy1 and xy2, or by one point xy1 and a slope. This draws a straight line "on the screen", regardless of the x and y scales, and is thus also suitable for drawing exponential decays in semilog plots, power laws in loglog plots, etc. How...
doc_19792
Detect oriented FAST keypoints and extract rBRIEF descriptors. Note that this is faster than first calling detect and then extract. Parameters image2D array Input image.
doc_19793
See torch.clamp()
doc_19794
Token value for "}".
doc_19795
Write back all entries in the cache if the shelf was opened with writeback set to True. Also empty the cache and synchronize the persistent dictionary on disk, if feasible. This is called automatically when the shelf is closed with close().
doc_19796
Create a DataFrame with a column containing the Index. Parameters index:bool, default True Set the index of the returned DataFrame as the original Index. name:object, default None The passed name should substitute for the index name (if it has one). Returns DataFrame DataFrame containing the original ...
doc_19797
Returns the single object that this view will display. If queryset is provided, that queryset will be used as the source of objects; otherwise, get_queryset() will be used. get_object() looks for a pk_url_kwarg argument in the arguments to the view; if this argument is found, this method performs a primary-key based lo...
doc_19798
Designates the name of the variable to use in the context.
doc_19799
Limit the domain to positive values.