_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_6800 | See Migration guide for more details. tf.compat.v1.estimator.SessionRunHook, tf.compat.v1.train.SessionRunHook Methods after_create_session View source
after_create_session(
session, coord
)
Called when new TensorFlow session is created. This is called to signal the hooks that a new session has been created. Thi... | |
doc_6801 |
Bases: matplotlib.collections._CollectionWithSizes Parameters
vertslist of array-like
The sequence of polygons [verts0, verts1, ...] where each element verts_i defines the vertices of polygon i as a 2D array-like of shape (M, 2).
sizesarray-like, default: None
Squared scaling factors for the polygons. The c... | |
doc_6802 |
Convert coefficient matrix to dense array format. Converts the coef_ member (back) to a numpy.ndarray. This is the default format of coef_ and is required for fitting, so calling this method is only required on models that have previously been sparsified; otherwise, it is a no-op. Returns
self
Fitted estimator. | |
doc_6803 | class werkzeug.utils.HTMLBuilder(dialect)
Helper object for HTML generation. Per default there are two instances of that class. The html one, and the xhtml one for those two dialects. The class uses keyword parameters and positional parameters to generate small snippets of HTML. Keyword parameters are converted to XM... | |
doc_6804 | tzinfo instance that represents UTC. | |
doc_6805 |
Probability estimates. The returned estimates for all classes are ordered by the label of classes. For a multi_class problem, if multi_class is set to be “multinomial” the softmax function is used to find the predicted probability of each class. Else use a one-vs-rest approach, i.e calculate the probability of each c... | |
doc_6806 | See torch.clone() | |
doc_6807 | bytearray.partition(sep)
Split the sequence at the first occurrence of sep, and return a 3-tuple containing the part before the separator, the separator itself or its bytearray copy, and the part after the separator. If the separator is not found, return a 3-tuple containing a copy of the original sequence, followed ... | |
doc_6808 | tf.experimental.numpy.squeeze(
a, axis=None
)
See the NumPy documentation for numpy.squeeze. | |
doc_6809 | Accept a base64 bytes object and decode it as the instance’s new data. | |
doc_6810 |
Set the semi-major axis a of the annulus. Parameters
afloat | |
doc_6811 |
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_6812 |
Weight function of the Hermite_e polynomials. The weight function is \(\exp(-x^2/2)\) and the interval of integration is \([-\inf, \inf]\). the HermiteE polynomials are orthogonal, but not normalized, with respect to this weight function. Parameters
xarray_like
Values at which the weight function will be comput... | |
doc_6813 |
Compute eigenvalues of structure tensor. Parameters
A_elemslist of ndarray
The upper-diagonal elements of the structure tensor, as returned by structure_tensor. Returns
ndarray
The eigenvalues of the structure tensor, in decreasing order. The eigenvalues are the leading dimension. That is, the coordinate ... | |
doc_6814 | The filename of the file on the client. | |
doc_6815 | Restore the terminal to “program” mode, as previously saved by def_prog_mode(). | |
doc_6816 |
Incremental fit on a batch of samples. This method is expected to be called several times consecutively on different chunks of a dataset so as to implement out-of-core or online learning. This is especially useful when the whole dataset is too big to fit in memory at once. This method has some performance overhead he... | |
doc_6817 | matplotlib.use("template")
and your program will (should!) run without error, though no output is produced. This provides a starting point for backend writers; you can selectively implement drawing methods (draw_path, draw_image, etc.) and slowly see your figure come to life instead having to have a full blown impleme... | |
doc_6818 | Push an input source stream onto the input stack. If the filename argument is specified it will later be available for use in error messages. This is the same method used internally by the sourcehook() method. | |
doc_6819 | check if the channel is active get_busy() -> bool Returns True if the channel is actively mixing sound. If the channel is idle this returns False. | |
doc_6820 | See Migration guide for more details. tf.compat.v1.raw_ops.BitwiseXor
tf.raw_ops.BitwiseXor(
x, y, name=None
)
The result will have those bits set, that are different in x and y. The computation is performed on the underlying representations of x and y. For example: import tensorflow as tf
from tensorflow.python... | |
doc_6821 |
Return the underlying C++ Triangulation object, creating it if necessary. | |
doc_6822 | A wrapper of format_html(), for the common case of a group of arguments that need to be formatted using the same format string, and then joined using sep. sep is also passed through conditional_escape(). args_generator should be an iterator that returns the sequence of args that will be passed to format_html(). For exa... | |
doc_6823 | If the debugger should stop on the current line, invoke the user_line() method (which should be overridden in subclasses). Raise a BdbQuit exception if the Bdb.quitting flag is set (which can be set from user_line()). Return a reference to the trace_dispatch() method for further tracing in that scope. | |
doc_6824 | tf.compat.v1.losses.sparse_softmax_cross_entropy(
labels, logits, weights=1.0, scope=None, loss_collection=tf.GraphKeys.LOSSES,
reduction=Reduction.SUM_BY_NONZERO_WEIGHTS
)
weights acts as a coefficient for the loss. If a scalar is provided, then the loss is simply scaled by the given value. If weights is a te... | |
doc_6825 | Return the number of the signal that caused the process to terminate. This function should be employed only if WIFSIGNALED() is true. Availability: Unix. | |
doc_6826 |
Compute the truth value of x1 OR x2 element-wise. Parameters
x1, x2array_like
Logical OR is applied to the elements of x1 and x2. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output).
outndarray, None, or tuple of ndarray and None, optional
A location... | |
doc_6827 | Return the digest of the data passed to the update() method so far. This is a bytes object of size digest_size which may contain bytes in the whole range from 0 to 255. | |
doc_6828 | Returns the “extended” Well-Known Text of the geometry. This representation is specific to PostGIS and is a superset of the OGC WKT standard. [1] Essentially the SRID is prepended to the WKT representation, for example SRID=4326;POINT(5 23). Note The output from this property does not include the 3dm, 3dz, and 4d info... | |
doc_6829 | Use the fields option to make simple layout changes in the forms on the “add” and “change” pages such as showing only a subset of available fields, modifying their order, or grouping them into rows. For example, you could define a simpler version of the admin form for the django.contrib.flatpages.models.FlatPage model ... | |
doc_6830 |
Bases: matplotlib.projections.geo._GeoTransform The base Mollweide transform. Create a new geographical transform. Resolution is the number of steps to interpolate between each input line segment to approximate its path in curved space. has_inverse=True
True if this transform has a corresponding inverse transform... | |
doc_6831 |
Set the locators and formatters of axis to instances suitable for this scale. | |
doc_6832 | stress test the fastevents module fastevents.main() -> None This is a stress test for the fastevents module.
Fast events does not appear faster!
So far it looks like normal pygame.event is faster by up to two times. So maybe fastevent isn't fast at all. Tested on Windows XP SP2 Athlon, and FreeBSD. However... ... | |
doc_6833 | Feed the parser some more data. data should be a bytes-like object containing one or more lines. The lines can be partial and the parser will stitch such partial lines together properly. The lines can have any of the three common line endings: carriage return, newline, or carriage return and newline (they can even be m... | |
doc_6834 | Flush the mailbox, unlock it if necessary, and close any open files. For some Mailbox subclasses, this method does nothing. | |
doc_6835 |
Return the xaxis' scale (as a str). | |
doc_6836 | Path for shell if not on Windows; otherwise None. | |
doc_6837 | Always True. This method makes an HttpResponse instance a stream-like object. | |
doc_6838 |
Bin values into discrete intervals. Use cut when you need to segment and sort data values into bins. This function is also useful for going from a continuous variable to a categorical variable. For example, cut could convert ages to groups of age ranges. Supports binning into an equal number of bins, or a pre-specifi... | |
doc_6839 |
Normalize Timestamp to midnight, preserving tz information. Examples
>>> ts = pd.Timestamp(2020, 3, 14, 15, 30)
>>> ts.normalize()
Timestamp('2020-03-14 00:00:00') | |
doc_6840 |
Cohen’s kappa: a statistic that measures inter-annotator agreement. This function computes Cohen’s kappa [1], a score that expresses the level of agreement between two annotators on a classification problem. It is defined as \[\kappa = (p_o - p_e) / (1 - p_e)\] where \(p_o\) is the empirical probability of agreement... | |
doc_6841 |
Set the artist transform. Parameters
tTransform | |
doc_6842 |
Set the CapStyle for the collection (for all its elements). Parameters
csCapStyle or {'butt', 'projecting', 'round'} | |
doc_6843 | Register a custom template filter, available application wide. Like Flask.template_filter() but for a blueprint. Parameters
name (Optional[str]) – the optional name of the filter, otherwise the function name will be used. Return type
Callable | |
doc_6844 | The Bdb class acts as a generic Python debugger base class. This class takes care of the details of the trace facility; a derived class should implement user interaction. The standard debugger class (pdb.Pdb) is an example. The skip argument, if given, must be an iterable of glob-style module name patterns. The debugge... | |
doc_6845 |
Draw samples from a logarithmic series distribution. Samples are drawn from a log series distribution with specified shape parameter, 0 < p < 1. Note New code should use the logseries method of a default_rng() instance instead; please see the Quick Start. Parameters
pfloat or array_like of floats
Shape parame... | |
doc_6846 | Return the message’s sub-content type. This is the subtype part of the string returned by get_content_type(). | |
doc_6847 | Calling this during a test method or setUp() skips the current test. See Skipping tests and expected failures for more information. New in version 3.1. | |
doc_6848 | boolean that is True if the application is served by a multithreaded WSGI server. | |
doc_6849 | Convert a non-multipart, a multipart/related, or a multipart-alternative into a multipart/mixed, moving any existing Content- headers and payload into a (new) first part of the multipart. If boundary is specified, use it as the boundary string in the multipart, otherwise leave the boundary to be automatically created w... | |
doc_6850 | Computes the Heaviside step function for each element in input. The Heaviside step function is defined as: heaviside(input,values)={0,if input < 0values,if input == 01,if input > 0\text{{heaviside}}(input, values) = \begin{cases} 0, & \text{if input < 0}\\ values, & \text{if input == 0}\\ 1, & \text{if input > 0} \end... | |
doc_6851 | update() extends rather than replaces existing key lists: >>> a = MultiDict({'x': 1})
>>> b = MultiDict({'x': 2, 'y': 3})
>>> a.update(b)
>>> a
MultiDict([('y', 3), ('x', 1), ('x', 2)])
If the value list for a key in other_dict is empty, no new values will be added to the dict and the key will not be created: >>> x = ... | |
doc_6852 | This property returns the extent of this geometry as a 4-tuple, consisting of (xmin, ymin, xmax, ymax). | |
doc_6853 |
Make and return a second axes that shares the x-axis. The new axes will overlay ax (or the current axes if ax is None), and its ticks will be on the right. Examples Plots with different scales | |
doc_6854 |
Bases: matplotlib.backend_tools.ToolBase Tool to copy the figure to the clipboard. default_keymap=['ctrl+c', 'cmd+c']
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
description='Copy the canvas figure to clipboard... | |
doc_6855 | A node visitor base class that walks the abstract syntax tree and calls a visitor function for every node found. This function may return a value which is forwarded by the visit() method. This class is meant to be subclassed, with the subclass adding visitor methods.
visit(node)
Visit a node. The default implementa... | |
doc_6856 | Returns a new tensor with the logarithm to the base 2 of the elements of input. yi=log2(xi)y_{i} = \log_{2} (x_{i})
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> a = torch.rand(5)
>>> a
tensor([ 0.8419, 0.8003, 0.9971, 0.5287, 0.04... | |
doc_6857 |
The year of the datetime. Examples
>>> datetime_series = pd.Series(
... pd.date_range("2000-01-01", periods=3, freq="Y")
... )
>>> datetime_series
0 2000-12-31
1 2001-12-31
2 2002-12-31
dtype: datetime64[ns]
>>> datetime_series.dt.year
0 2000
1 2001
2 2002
dtype: int64 | |
doc_6858 |
Re-weight raw Minimum Covariance Determinant estimates. Re-weight observations using Rousseeuw’s method (equivalent to deleting outlying observations from the data set before computing location and covariance estimates) described in [RVDriessen]. Parameters
dataarray-like of shape (n_samples, n_features)
The da... | |
doc_6859 | Sequence of bytecodes that access a local variable. | |
doc_6860 |
Return the sum along diagonals of the array. Refer to numpy.trace for full documentation. See also numpy.trace
equivalent function | |
doc_6861 |
Undo the scaling of X according to feature_range. Parameters
Xarray-like of shape (n_samples, n_features)
Input data that will be transformed. It cannot be sparse. Returns
Xtndarray of shape (n_samples, n_features)
Transformed data. | |
doc_6862 | Construct a list from those elements of the iterable names that match pattern. It is the same as [n for n in names if fnmatch(n, pattern)], but implemented more efficiently. | |
doc_6863 |
return a list of strings | |
doc_6864 |
Get item from object for given key (ex: DataFrame column). Returns default value if not found. Parameters
key:object
Returns
value:same type as items contained in object
Examples
>>> df = pd.DataFrame(
... [
... [24.3, 75.7, "high"],
... [31, 87.8, "high"],
... [22, 71.6, "m... | |
doc_6865 |
Return subplot parameters for tight-layouted-figure with specified padding. Parameters
figFigure
axes_listlist of Axes
subplotspec_listlist of SubplotSpec
The subplotspecs of each axes.
rendererrenderer
padfloat
Padding between the figure edge and the edges of subplots, as a fraction of the font size.... | |
doc_6866 |
The border between the Axes and the table edge in Axes units. | |
doc_6867 | Return True if the process was stopped by delivery of a signal, otherwise return False. WIFSTOPPED() only returns True if the waitpid() call was done using WUNTRACED option or when the process is being traced (see ptrace(2)). Availability: Unix. | |
doc_6868 | Returns an iterable of AppConfig instances. | |
doc_6869 | See Migration guide for more details. tf.compat.v1.data.DatasetSpec, tf.compat.v1.data.experimental.DatasetStructure
tf.data.DatasetSpec(
element_spec, dataset_shape=()
)
See tf.TypeSpec for more information about TensorFlow type specifications.
dataset = tf.data.Dataset.range(3)
tf.data.DatasetSpec.from_value(... | |
doc_6870 |
Return the extent of the box as (width, height, x, y). This is the extent of the child plus the padding. | |
doc_6871 | See Migration guide for more details. tf.compat.v1.linalg.band_part, tf.compat.v1.matrix_band_part
tf.linalg.band_part(
input, num_lower, num_upper, name=None
)
The band part is computed as follows: Assume input has k dimensions [I, J, K, ..., M, N], then the output is a tensor with the same shape where band[i, ... | |
doc_6872 |
Return the path of this patch. | |
doc_6873 |
Naive Bayes classifier for multinomial models The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification). The multinomial distribution normally requires integer feature counts. However, in practice, fractional counts such as tf-idf may also... | |
doc_6874 | See Migration guide for more details. tf.compat.v1.fake_quant_with_min_max_args, tf.compat.v1.quantization.fake_quant_with_min_max_args
tf.quantization.fake_quant_with_min_max_args(
inputs, min=-6, max=6, num_bits=8, narrow_range=False, name=None
)
Attributes
[min; max] define the clamping range for the inputs... | |
doc_6875 | A bit field that determines whether certain STARTUPINFO attributes are used when the process creates a window. si = subprocess.STARTUPINFO()
si.dwFlags = subprocess.STARTF_USESTDHANDLES | subprocess.STARTF_USESHOWWINDOW | |
doc_6876 | '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_6877 |
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned. | |
doc_6878 | Sequence of bytecodes that have a relative jump target. | |
doc_6879 | The Python byte compiler can be invoked on an ST object to produce code objects which can be used as part of a call to the built-in exec() or eval() functions. This function provides the interface to the compiler, passing the internal parse tree from st to the parser, using the source file name specified by the filenam... | |
doc_6880 |
A character code (one of ‘biufcmMOSUV’) identifying the general kind of data.
b boolean
i signed integer
u unsigned integer
f floating-point
c complex floating-point
m timedelta
M datetime
O object
S (byte-)string
U Unicode
V void Examples >>> dt = np.dtype('i4')
>>> dt.kind
'i'
>>> dt = np.dt... | |
doc_6881 |
Get parameters for this estimator. 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_6882 | Returns an HttpResponseRedirect to the appropriate URL for the arguments passed. The arguments could be: A model: the model’s get_absolute_url() function will be called. A view name, possibly with arguments: reverse() will be used to reverse-resolve the name. An absolute or relative URL, which will be used as-is for t... | |
doc_6883 | socket.BDADDR_LOCAL
These are string constants containing Bluetooth addresses with special meanings. For example, BDADDR_ANY can be used to indicate any address when specifying the binding socket with BTPROTO_RFCOMM. | |
doc_6884 | See Migration guide for more details. tf.compat.v1.keras.layers.ThresholdedReLU
tf.keras.layers.ThresholdedReLU(
theta=1.0, **kwargs
)
It follows: f(x) = x for x > theta
f(x) = 0 otherwise`
Input shape: Arbitrary. Use the keyword argument input_shape (tuple of integers, does not include the samples axis) when u... | |
doc_6885 | uri can be either a single URI, or a sequence of URIs. realm, user and passwd must be strings. This causes (user, passwd) to be used as authentication tokens when authentication for realm and a super-URI of any of the given URIs is given. | |
doc_6886 |
Decodes a base64 encoded string, adding back any trailing equal signs that might have been stripped. | |
doc_6887 | A command-line program that loads a set of tests from module and runs them; this is primarily for making test modules conveniently executable. The simplest use for this function is to include the following line at the end of a test script: if __name__ == '__main__':
unittest.main()
You can run tests with more deta... | |
doc_6888 |
Call predict_proba on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict_proba. Parameters
Xindexable, length n_samples
Must fulfill the input assumptions of the underlying estimator. | |
doc_6889 |
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_6890 | List of all known property names. | |
doc_6891 |
Bases: matplotlib.ticker.Formatter Used to format the theta tick labels. Converts the native unit of radians into degrees and adds a degree symbol. | |
doc_6892 |
alias of pandas._libs.tslibs.offsets.BusinessMonthEnd | |
doc_6893 | Any value error related to the net mask. | |
doc_6894 | Build the keyword arguments required to instantiate the form. The initial argument is set to get_initial(). If the request is a POST or PUT, the request data (request.POST and request.FILES) will also be provided. | |
doc_6895 |
Create a pseudocolor plot of an unstructured triangular grid. The triangulation can be specified in one of two ways; either: tripcolor(triangulation, ...)
where triangulation is a Triangulation object, or tripcolor(x, y, ...)
tripcolor(x, y, triangles, ...)
tripcolor(x, y, triangles=triangles, ...)
tripcolor(x, y, m... | |
doc_6896 |
Set the artist offset transform. Parameters
transOffsetTransform | |
doc_6897 | threading.active_count()
Return the number of Thread objects currently alive. The returned count is equal to the length of the list returned by enumerate().
threading.current_thread()
Return the current Thread object, corresponding to the caller’s thread of control. If the caller’s thread of control was not cre... | |
doc_6898 |
Get parameters for this estimator. 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_6899 |
Return whether a label is already near this location. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.