_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_26700 |
Get Floating division of dataframe and other, element-wise (binary operator truediv). Equivalent to dataframe / other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, rtruediv. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -... | |
doc_26701 |
Get parameters of this kernel. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns
paramsdict
Parameter names mapped to their values. | |
doc_26702 |
Alias for set_linestyle. | |
doc_26703 |
Return a tuple of the status (True/False) of all of the check buttons. | |
doc_26704 | Return the debugging flags currently set. | |
doc_26705 | tf.experimental.numpy.uint16(
*args, **kwargs
)
Character code: 'H'. Canonical name: np.ushort. Alias on this platform: np.uint16: 16-bit unsigned integer (0 to 65535). Methods all
all()
Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemen... | |
doc_26706 | See Migration guide for more details. tf.compat.v1.keras.applications.mobilenet.decode_predictions
tf.keras.applications.mobilenet.decode_predictions(
preds, top=5
)
Arguments
preds Numpy array encoding a batch of predictions.
top Integer, how many top-guesses to return. Defaults to 5.
Ret... | |
doc_26707 | See Migration guide for more details. tf.compat.v1.strings.unicode_encode
tf.strings.unicode_encode(
input, output_encoding, errors='replace', replacement_char=65533,
name=None
)
result[i1...iN] is the string formed by concatenating the Unicode codepoints input[1...iN, :], encoded using output_encoding.
... | |
doc_26708 |
Pad a list of variable length Tensors with padding_value pad_sequence stacks a list of Tensors along a new dimension, and pads them to equal length. For example, if the input is list of sequences with size L x * and if batch_first is False, and T x B x * otherwise. B is batch size. It is equal to the number of elemen... | |
doc_26709 |
logit transform (base 10), masked or clipped | |
doc_26710 |
Fit the model using X, y as training data. Parameters
Xarray-like of shape (n_samples,) or (n_samples, 1)
Training data. Changed in version 0.24: Also accepts 2d array with 1 feature.
yarray-like of shape (n_samples,)
Training target.
sample_weightarray-like of shape (n_samples,), default=None
Weights... | |
doc_26711 |
Return the depth of the axis used by the picker. | |
doc_26712 | Path to a custom template, used by the delete_selected action method for displaying a confirmation page when deleting one or more objects. See the actions documentation. | |
doc_26713 | time_raised = models.DateTimeField(default=timezone.now, editable=False)
reference = models.CharField(unique=True, max_length=20)
description = models.TextField()
Here's a basic ModelSerializer that we can use for creating or updating instances of CustomerReportRecord: class CustomerReportSerializer(serial... | |
doc_26714 |
Fit the model Fit all the transforms one after the other and transform the data, then fit the transformed data using the final estimator. Parameters
Xiterable
Training data. Must fulfill input requirements of first step of the pipeline.
yiterable, default=None
Training targets. Must fulfill label requiremen... | |
doc_26715 | Exception raised when something can’t be encoded using the binhex format (for example, a filename is too long to fit in the filename field), or when input is not properly encoded binhex data. | |
doc_26716 |
The transmute method is the very core of the ArrowStyle class and must be overridden in the subclasses. It receives the path object along which the arrow will be drawn, and the mutation_size, with which the arrow head etc. will be scaled. The linewidth may be used to adjust the path so that it does not pass beyond th... | |
doc_26717 |
Define the anchor location. The actual drawing area (active position) of the Axes may be smaller than the Bbox (original position) when a fixed aspect is required. The anchor defines where the drawing area will be located within the available space. Parameters
anchor(float, float) or {'C', 'SW', 'S', 'SE', 'E', '... | |
doc_26718 |
Number of dimensions of the underlying data, by definition 1. | |
doc_26719 |
pygame object for direct pixel access of surfaces PixelArray(Surface) -> PixelArray The PixelArray wraps a Surface and provides direct access to the surface's pixels. A pixel array can be one or two dimensional. A two dimensional array, like its surface, is indexed [column, row]. Pixel arrays support slicing, both... | |
doc_26720 |
Filter an image with the Frangi vesselness filter. This filter can be used to detect continuous ridges, e.g. vessels, wrinkles, rivers. It can be used to calculate the fraction of the whole image containing such objects. Defined only for 2-D and 3-D images. Calculates the eigenvectors of the Hessian to compute the si... | |
doc_26721 | Some character sets must be converted before they can be used in email headers or bodies. If the input_charset is one of them, this attribute will contain the name of the character set output will be converted to. Otherwise, it will be None. | |
doc_26722 | This method is not defined in BaseHandler, but subclasses should define it if they want to catch all URLs with no specific registered handler to open it. This method, if implemented, will be called by the parent OpenerDirector. Return values should be the same as for default_open(). | |
doc_26723 |
Convert a PolyCollection to a Poly3DCollection object. | |
doc_26724 |
Adjust a range as needed to avoid singularities. This method gets called during autoscaling, with (v0, v1) set to the data limits on the axes if the axes contains any data, or (-inf, +inf) if not. If v0 == v1 (possibly up to some floating point slop), this method returns an expanded interval around this value. If (v... | |
doc_26725 | '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_26726 | Return the number of CPUs in the system. Returns None if undetermined. This number is not equivalent to the number of CPUs the current process can use. The number of usable CPUs can be obtained with len(os.sched_getaffinity(0)) New in version 3.4. | |
doc_26727 | tf.compat.v1.estimator.LinearRegressor(
feature_columns, model_dir=None, label_dimension=1, weight_column=None,
optimizer='Ftrl', config=None, partitioner=None, warm_start_from=None,
loss_reduction=tf.compat.v1.losses.Reduction.SUM,
sparse_combiner='sum'
)
Train a linear regression model to predict lab... | |
doc_26728 | Load MIME type information from the Windows registry. Availability: Windows. If strict is True, information will be added to the list of standard types, else to the list of non-standard types. New in version 3.2. | |
doc_26729 |
login_url
Default return value for get_login_url(). Defaults to None in which case get_login_url() falls back to settings.LOGIN_URL.
permission_denied_message
Default return value for get_permission_denied_message(). Defaults to an empty string.
redirect_field_name
Default return value for get_redirect_... | |
doc_26730 | Redirects are represented by a standard Django model, which lives in django/contrib/redirects/models.py. You can access redirect objects via the Django database API. For example: >>> from django.conf import settings
>>> from django.contrib.redirects.models import Redirect
>>> # Add a new redirect.
>>> redirect = Redire... | |
doc_26731 | Asserts that the strings html1 and html2 are equal. The comparison is based on HTML semantics. The comparison takes following things into account: Whitespace before and after HTML tags is ignored. All types of whitespace are considered equivalent. All open tags are closed implicitly, e.g. when a surrounding tag is clo... | |
doc_26732 | See Migration guide for more details. tf.compat.v1.raw_ops.SqlDataset
tf.raw_ops.SqlDataset(
driver_name, data_source_name, query, output_types, output_shapes, name=None
)
Args
driver_name A Tensor of type string. The database type. Currently, the only supported type is 'sqlite'.
data_source_name ... | |
doc_26733 | Return a tuple consisting of the minimum and maximum values of all samples in the sound fragment. | |
doc_26734 | See torch.addmv() | |
doc_26735 |
Draw samples from a Rayleigh distribution. The \(\chi\) and Weibull distributions are generalizations of the Rayleigh. Note New code should use the rayleigh method of a default_rng() instance instead; please see the Quick Start. Parameters
scalefloat or array_like of floats, optional
Scale, also equals the mo... | |
doc_26736 |
Bases: matplotlib.ticker.Formatter Format numbers as a percentage. Parameters
xmaxfloat
Determines how the number is converted into a percentage. xmax is the data value that corresponds to 100%. Percentages are computed as x / xmax * 100. So if the data is already scaled to be percentages, xmax will be 100. Ano... | |
doc_26737 |
Applies the learned transformation to the given data. Parameters
Xarray-like of shape (n_samples, n_features)
Data samples. Returns
X_embedded: ndarray of shape (n_samples, n_components)
The data samples transformed. Raises
NotFittedError
If fit has not been called before. | |
doc_26738 | Return the system’s ctime which, on some systems (like Unix) is the time of the last metadata change, and, on others (like Windows), is the creation time for path. The return value is a number giving the number of seconds since the epoch (see the time module). Raise OSError if the file does not exist or is inaccessible... | |
doc_26739 | See Migration guide for more details. tf.compat.v1.raw_ops.SaveDataset
tf.raw_ops.SaveDataset(
input_dataset, path, shard_func_other_args, shard_func,
compression='', use_shard_func=True, name=None
)
Args
input_dataset A Tensor of type variant.
path A Tensor of type string.
shard_func_othe... | |
doc_26740 |
Extension array for string data. New in version 1.0.0. Warning StringArray is considered experimental. The implementation and parts of the API may change without warning. Parameters
values:array-like
The array of data. Warning Currently, this expects an object-dtype ndarray where the elements are Python st... | |
doc_26741 |
Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay). The Laplace distribution is similar to the Gaussian/normal distribution, but is sharper at the peak and has fatter tails. It represents the difference between two independent, identically distributed ... | |
doc_26742 |
Bases: matplotlib.ticker.Formatter Use a new-style format string (as used by str.format) to format the tick. The field used for the tick value must be labeled x and the field used for the tick position must be labeled pos. | |
doc_26743 | The object`s repr() after the modification. | |
doc_26744 | Return (exitcode, output) of executing cmd in a shell. Execute the string cmd in a shell with Popen.check_output() and return a 2-tuple (exitcode, output). The locale encoding is used; see the notes on Frequently Used Arguments for more details. A trailing newline is stripped from the output. The exit code for the comm... | |
doc_26745 | Gets or sets the green value of the Color. g -> int The green value of the Color. | |
doc_26746 |
Dot product of two arrays. Specifically, If both a and b are 1-D arrays, it is inner product of vectors (without complex conjugation). If both a and b are 2-D arrays, it is matrix multiplication, but using matmul or a @ b is preferred. If either a or b is 0-D (scalar), it is equivalent to multiply and using numpy.mu... | |
doc_26747 | Exit code that means a temporary failure occurred. This indicates something that may not really be an error, such as a network connection that couldn’t be made during a retryable operation. Availability: Unix. | |
doc_26748 | Send the signal sig to the process group pgid. Raises an auditing event os.killpg with arguments pgid, sig. Availability: Unix. | |
doc_26749 | Returns the Python version as tuple (major, minor, patchlevel) of strings. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to '0'). | |
doc_26750 | socket.IOCTL_VM_SOCKETS_GET_LOCAL_CID
VMADDR*
SO_VM*
Constants for Linux host/guest communication. Availability: Linux >= 4.8. New in version 3.7. | |
doc_26751 | See Migration guide for more details. tf.compat.v1.raw_ops.Max
tf.raw_ops.Max(
input, axis, keep_dims=False, name=None
)
Reduces input along the dimensions given in axis. Unless keep_dims is true, the rank of the tensor is reduced by 1 for each entry in axis. If keep_dims is true, the reduced dimensions are reta... | |
doc_26752 | Unconditionally skip the decorated test. reason should describe why the test is being skipped. | |
doc_26753 | class numbers.Number
The root of the numeric hierarchy. If you just want to check if an argument x is a number, without caring what kind, use isinstance(x, Number).
The numeric tower
class numbers.Complex
Subclasses of this type describe complex numbers and include the operations that work on the built-in compl... | |
doc_26754 |
Called when a pan operation completes (when the mouse button is up.) Notes This is intended to be overridden by new projection types. | |
doc_26755 | Handle an exception that did not have an error handler associated with it, or that was raised from an error handler. This always causes a 500 InternalServerError. Always sends the got_request_exception signal. If propagate_exceptions is True, such as in debug mode, the error will be re-raised so that the debugger can d... | |
doc_26756 |
Add an axes to the current figure and make it the current axes. Call signatures: plt.axes()
plt.axes(rect, projection=None, polar=False, **kwargs)
plt.axes(ax)
Parameters
argNone or 4-tuple
The exact behavior of this function depends on the type:
None: A new full window axes is added using subplot(**kwargs).... | |
doc_26757 | Returns an int of the bitwise AND of all non-null input values, or default if all values are null. | |
doc_26758 |
Bases: matplotlib.ticker.Formatter String representation of the data at every tick. Parameters
units_mappingdict
Mapping of category names (str) to indices (int). format_ticks(values)[source]
Return the tick labels for all the ticks at once. | |
doc_26759 | See Migration guide for more details. tf.compat.v1.raw_ops.CudnnRNNBackprop
tf.raw_ops.CudnnRNNBackprop(
input, input_h, input_c, params, output, output_h, output_c, output_backprop,
output_h_backprop, output_c_backprop, reserve_space, rnn_mode='lstm',
input_mode='linear_input', direction='unidirectional'... | |
doc_26760 |
Returns a boolean array which is True where the string element in self starts with prefix, otherwise False. See also char.startswith | |
doc_26761 | List of supported TLS channel binding types. Strings in this list can be used as arguments to SSLSocket.get_channel_binding(). New in version 3.3. | |
doc_26762 |
Predict class probabilities for X. Parameters
X{array-like or sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix. Returns
parray of shape (n_samples, n_classes)
The class probab... | |
doc_26763 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_26764 | See Migration guide for more details. tf.compat.v1.raw_ops.MutableDenseHashTableV2
tf.raw_ops.MutableDenseHashTableV2(
empty_key, deleted_key, value_dtype, container='',
shared_name='', use_node_name_sharing=False, value_shape=[],
initial_num_buckets=131072, max_load_factor=0.8, name=None
)
It uses "open... | |
doc_26765 | See torch.floor() | |
doc_26766 |
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ... | |
doc_26767 |
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_26768 | When data is changed, this is set to True. Only the session dictionary itself is tracked; if the session contains mutable data (for example a nested dict) then this must be set to True manually when modifying that data. The session cookie will only be written to the response if this is True. | |
doc_26769 | Add a header to the message with field name name and value val. The field is appended to the end of the message’s existing headers. Note that this does not overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name name, d... | |
doc_26770 | Called for comments. data is the text of the comment, excluding the leading '<!--' and trailing '-->'. | |
doc_26771 |
Return True if date is first day of month. Examples
>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.is_month_start
False
>>> ts = pd.Timestamp(2020, 1, 1)
>>> ts.is_month_start
True | |
doc_26772 | Prompt server for an update. Returned data is None if no new messages, else value of RECENT response. | |
doc_26773 | When specified, failures that involve multi-line expected and actual outputs will be displayed using a context diff. | |
doc_26774 |
Applies a multi-layer gated recurrent unit (GRU) RNN to an input sequence. For each element in the input sequence, each layer computes the following function: rt=σ(Wirxt+bir+Whrh(t−1)+bhr)zt=σ(Wizxt+biz+Whzh(t−1)+bhz)nt=tanh(Winxt+bin+rt∗(Whnh(t−1)+bhn))ht=(1−zt)∗nt+zt∗h(t−1)\begin{array}{ll} r_t = \sigma(W_{ir} x_... | |
doc_26775 |
Return the line marker. See also set_marker. | |
doc_26776 |
Limit the domain to values between 0 and 1 (excluded). | |
doc_26777 | used to set background clear(surface, bgd) -> None | |
doc_26778 |
Set the DataFrame of strings added to the class attribute of <td> HTML elements. Parameters
classes:DataFrame
DataFrame containing strings that will be translated to CSS classes, mapped by identical column and index key values that must exist on the underlying Styler data. None, NaN values, and empty strings wi... | |
doc_26779 |
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters
match
A filter criterion for the matches. This can be
None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct... | |
doc_26780 | set the current clipping area of the Surface set_clip(rect) -> None set_clip(None) -> None Each Surface has an active clipping area. This is a rectangle that represents the only pixels on the Surface that can be modified. If None is passed for the rectangle the full Surface will be available for changes. The clipping... | |
doc_26781 | Open a streaming transport connection to a given address specified by host and port. The socket family can be either AF_INET or AF_INET6 depending on host (or the family argument, if provided). The socket type will be SOCK_STREAM. protocol_factory must be a callable returning an asyncio protocol implementation. This me... | |
doc_26782 |
Generate the “Friedman #3” regression problem. This dataset is described in Friedman [1] and Breiman [2]. Inputs X are 4 independent features uniformly distributed on the intervals: 0 <= X[:, 0] <= 100,
40 * pi <= X[:, 1] <= 560 * pi,
0 <= X[:, 2] <= 1,
1 <= X[:, 3] <= 11.
The output y is created according to the fo... | |
doc_26783 | tf.compat.v1.keras.layers.GRUCell(
units, activation='tanh',
recurrent_activation='hard_sigmoid', use_bias=True,
kernel_initializer='glorot_uniform',
recurrent_initializer='orthogonal',
bias_initializer='zeros', kernel_regularizer=None,
recurrent_regularizer=None, bias_regularizer=None, kernel_c... | |
doc_26784 | New in Django 3.2. A boolean value that determines whether to add a final catch-all view to the admin that redirects unauthenticated users to the login page. By default, it is set to True. Warning Setting this to False is not recommended as the view protects against a potential model enumeration privacy issue. | |
doc_26785 |
Calculate any free parameters based on the current cmap and norm, and do all the drawing. | |
doc_26786 |
Construct a new ExtensionArray from a sequence of strings. Parameters
strings:Sequence
Each element will be an instance of the scalar type for this array, cls.dtype.type.
dtype:dtype, optional
Construct for this particular dtype. This should be a Dtype compatible with the ExtensionArray.
copy:bool, defaul... | |
doc_26787 |
Return the intersection of bbox1 and bbox2 if they intersect, or None if they don't. | |
doc_26788 | boolean that is True if the application is served by a WSGI server that spawns multiple processes. | |
doc_26789 |
Set both the edgecolor and the facecolor. Parameters
ccolor or list of rgba tuples
See also
Collection.set_facecolor, Collection.set_edgecolor
For setting the edge or face color individually. | |
doc_26790 |
Alias for set_linewidth. | |
doc_26791 |
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters
Xarray-like of shape (n_samples, n_features)
Input samples.
yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None
Target values (None for uns... | |
doc_26792 | readline.set_history_length(length)
Set or return the desired number of lines to save in the history file. The write_history_file() function uses this value to truncate the history file, by calling history_truncate_file() in the underlying library. Negative values imply unlimited history file size. | |
doc_26793 | Return the shadow password database entry for the given user name. Changed in version 3.6: Raises a PermissionError instead of KeyError if the user doesn’t have privileges. | |
doc_26794 | tf.sparse.reduce_sum(
sp_input, axis=None, keepdims=None, output_is_sparse=False, name=None
)
This Op takes a SparseTensor and is the sparse counterpart to tf.reduce_sum(). In particular, this Op also returns a dense Tensor if output_is_sparse is False, or a SparseTensor if output_is_sparse is True.
Note: if outp... | |
doc_26795 | This returns the file descriptor used by the underlying select.kqueue() object. | |
doc_26796 | A dictionary-like object containing all given HTTP GET parameters. See the QueryDict documentation below. | |
doc_26797 |
Compute the precision. The precision is the ratio tp / (tp + fp) where tp is the number of true positives and fp the number of false positives. The precision is intuitively the ability of the classifier not to label as positive a sample that is negative. The best value is 1 and the worst value is 0. Read more in the ... | |
doc_26798 |
Return a list of dictionaries of statistics used to draw a series of box and whisker plots using bxp. Parameters
Xarray-like
Data that will be represented in the boxplots. Should have 2 or fewer dimensions.
whisfloat or (float, float), default: 1.5
The position of the whiskers. If a float, the lower whisker... | |
doc_26799 | display an animated liquid effect liquid.main() -> None This example was created in a quick comparison with the BlitzBasic gaming language. Nonetheless, it demonstrates a quick 8-bit setup (with colormap). |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.