_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_25500 | tf.compat.v1.nn.rnn_cell.ResidualWrapper(
*args, **kwargs
)
Args
cell An instance of RNNCell.
residual_fn (Optional) The function to map raw cell inputs and raw cell outputs to the actual cell outputs of the residual network. Defaults to calling nest.map_structure on (lambda i, o: i + o), inputs and... | |
doc_25501 | Raised when indentation contains an inconsistent use of tabs and spaces. This is a subclass of IndentationError. | |
doc_25502 | An expression such as a if b else c. Each field holds a single node, so in the following example, all three are Name nodes. >>> print(ast.dump(ast.parse('a if b else c', mode='eval'), indent=4))
Expression(
body=IfExp(
test=Name(id='b', ctx=Load()),
body=Name(id='a', ctx=Load()),
orelse=Name... | |
doc_25503 | '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_25504 |
Convert argument to a numeric type. The default return dtype is float64 or int64 depending on the data supplied. Use the downcast parameter to obtain other dtypes. Please note that precision loss may occur if really large numbers are passed in. Due to the internal limitations of ndarray, if numbers smaller than -9223... | |
doc_25505 | tf.math.special.bessel_i1e Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.bessel_i1e, tf.compat.v1.math.special.bessel_i1e
tf.math.bessel_i1e(
x, name=None
)
Modified Bessel function of order 1.
tf.math.special.bessel_i1e([-1., -0.5, 0.5, 1.]).numpy()
array([-0.20791042, -0... | |
doc_25506 | Out-of-place version of torch.Tensor.index_copy_(). tensor1 corresponds to self in torch.Tensor.index_copy_(). | |
doc_25507 | A factory function for creating a ModuleSpec instance based on a loader. The parameters have the same meaning as they do for ModuleSpec. The function uses available loader APIs, such as InspectLoader.is_package(), to fill in any missing information on the spec. New in version 3.4. | |
doc_25508 |
For each element, return the lowest index in the string where substring sub is found. Calls str.find element-wise. For each element, return the lowest index in the string where substring sub is found, such that sub is contained in the range [start, end]. Parameters
aarray_like of str or unicode
substr or unicod... | |
doc_25509 | set &= other & ...
Update the set, keeping only elements found in it and all others. | |
doc_25510 | class sklearn.neural_network.MLPRegressor(hidden_layer_sizes=100, activation='relu', *, solver='adam', alpha=0.0001, batch_size='auto', learning_rate='constant', learning_rate_init=0.001, power_t=0.5, max_iter=200, shuffle=True, random_state=None, tol=0.0001, verbose=False, warm_start=False, momentum=0.9, nesterovs_mom... | |
doc_25511 | tf.compat.v1.random.stateless_multinomial(
logits, num_samples, seed, output_dtype=tf.dtypes.int64, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.random.stateless_categorical instead. This is a stateless version of tf.random.categorical:... | |
doc_25512 |
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation. | |
doc_25513 |
Add an Axes to the figure. Call signatures: add_axes(rect, projection=None, polar=False, **kwargs)
add_axes(ax)
Parameters
rectsequence of float
The dimensions [left, bottom, width, height] of the new Axes. All quantities are in fractions of figure width and height.
projection{None, 'aitoff', 'hammer', 'lamb... | |
doc_25514 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterMin
tf.raw_ops.ResourceScatterMin(
resource, indices, updates, name=None
)
This operation computes # Scalar indices
ref[indices, ...] = min(ref[indices, ...], updates[...])
# Vector indices (for each i)
ref[indices[i], ...] = min(ref[indi... | |
doc_25515 |
Return a new AxesLocator for the specified cell. Parameters
nx, nx1int
Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (but excluding nx1-th column) is specified.
ny, ny1int
Same as nx and nx1... | |
doc_25516 | See Migration guide for more details. tf.compat.v1.raw_ops.EnqueueTPUEmbeddingRaggedTensorBatch
tf.raw_ops.EnqueueTPUEmbeddingRaggedTensorBatch(
sample_splits, embedding_indices, aggregation_weights, mode_override, table_ids,
device_ordinal=-1, combiners=[], max_sequence_lengths=[], name=None
)
sample_splits... | |
doc_25517 | This decorator patches the response’s Cache-Control header by adding all of the keyword arguments to it. See patch_cache_control() for the details of the transformation. | |
doc_25518 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchSvd
tf.raw_ops.BatchSvd(
input, compute_uv=True, full_matrices=False, name=None
)
Args
input A Tensor. Must be one of the following types: float64, float32, complex64, complex128.
compute_uv An optional bool. Defaults to True.
ful... | |
doc_25519 | Return the default value if the requested data doesn’t exist. If type is provided and is a callable it should convert the value, return it or raise a ValueError if that is not possible. In this case the function will return the default as if the value was not found: >>> d = TypeConversionDict(foo='42', bar='blub')
>>> ... | |
doc_25520 | tf.less Compat aliases for migration See Migration guide for more details. tf.compat.v1.less, tf.compat.v1.math.less
tf.math.less(
x, y, name=None
)
Note: math.less supports broadcasting. More about broadcasting here
Example: x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.less(x, y) ==> [False, True, ... | |
doc_25521 | Return the cumulative line number of the line that has just been read. Before the first line has been read, returns 0. After the last line of the last file has been read, returns the line number of that line. | |
doc_25522 |
Return unbiased kurtosis over requested axis. Kurtosis obtained using Fisher’s definition of kurtosis (kurtosis of normal == 0.0). Normalized by N-1. Parameters
axis:{index (0)}
Axis for the function to be applied on.
skipna:bool, default True
Exclude NA/null values when computing the result.
level:int or... | |
doc_25523 |
Context manager to facilitate writing the movie file. *args, **kw are any parameters that should be passed to setup. | |
doc_25524 |
Get the transformation used for drawing y-axis labels, ticks and gridlines. The x-direction is in axis coordinates and the y-direction is in data coordinates. Note This transformation is primarily used by the Axis class, and is meant to be overridden by new kinds of projections that may need to place axis elements i... | |
doc_25525 |
Truncate series to length size. Reduce the series to length size by discarding the high degree terms. The value of size must be a positive integer. This can be useful in least squares where the coefficients of the high degree terms may be very small. Parameters
sizepositive int
The series is reduced to length s... | |
doc_25526 | Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return... | |
doc_25527 | tf.experimental.numpy.full(
shape, fill_value, dtype=None
)
Unsupported arguments: order. See the NumPy documentation for numpy.full. | |
doc_25528 | class tkinter.filedialog.SaveAs(master=None, **options)
The above two classes provide native dialog windows for saving and loading files. | |
doc_25529 | Return all breakpoints in filename, or an empty list if none are set. | |
doc_25530 |
Call predict_log_proba on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict_log_proba. Parameters
Xindexable, length n_samples
Must fulfill the input assumptions of the underlying estimator. | |
doc_25531 |
Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters
lwfloat or list of floats | |
doc_25532 |
Return the tick location (data coords) as a scalar. | |
doc_25533 | Another Modular Crypt Format method with 16 character salt and 43 character hash based on the SHA-256 hash function. | |
doc_25534 | Exception raised when a specified section is not found. | |
doc_25535 |
Compute the weighted average along the specified axis. Parameters
aarray_like
Array containing data to be averaged. If a is not an array, a conversion is attempted.
axisNone or int or tuple of ints, optional
Axis or axes along which to average a. The default, axis=None, will average over all of the elements... | |
doc_25536 | New in Django 3.2. Returns a 1-based list of page numbers similar to Paginator.page_range, but may add an ellipsis to either or both sides of the current page number when Paginator.num_pages is large. The number of pages to include on each side of the current page number is determined by the on_each_side argument whi... | |
doc_25537 | tf.metrics.FalsePositives Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.FalsePositives
tf.keras.metrics.FalsePositives(
thresholds=None, name=None, dtype=None
)
If sample_weight is given, calculates the sum of the weights of false positives. This metric creates one... | |
doc_25538 | Register a custom template filter, available application wide. Like Flask.add_template_filter() but for a blueprint. Works exactly like the app_template_filter() decorator. Parameters
name (Optional[str]) – the optional name of the filter, otherwise the function name will be used.
f (Callable[[Any], str]) – Ret... | |
doc_25539 |
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_25540 |
[Deprecated] Return a dict of subplot parameters to adjust spacing between subplots or None if resulting axes would have zero height or width. Note that this function ignores geometry information of subplot itself, but uses what is given by the nrows_ncols and num1num2_list parameters. Also, the results could be inco... | |
doc_25541 | The state of the font's wide style flag wide -> bool Gets or sets whether the font will be stretched horizontally when drawing text. It produces a result similar to pygame.font.Font's bold. This style not available for rotated text. | |
doc_25542 |
XYZ to CIE-LAB color space conversion. Parameters
xyz(…, 3) array_like
The image in XYZ format. Final dimension denotes channels.
illuminant{“A”, “D50”, “D55”, “D65”, “D75”, “E”}, optional
The name of the illuminant (the function is NOT case sensitive).
observer{“2”, “10”}, optional
The aperture angle o... | |
doc_25543 | See Migration guide for more details. tf.compat.v1.keras.layers.SimpleRNNCell
tf.keras.layers.SimpleRNNCell(
units, activation='tanh', use_bias=True,
kernel_initializer='glorot_uniform',
recurrent_initializer='orthogonal',
bias_initializer='zeros', kernel_regularizer=None,
recurrent_regularizer=No... | |
doc_25544 | A field containing either an IPv4 or an IPv6 address. Default widget: TextInput
Empty value: '' (an empty string) Normalizes to: A string. IPv6 addresses are normalized as described below. Validates that the given value is a valid IP address. Error message keys: required, invalid
The IPv6 address normalization foll... | |
doc_25545 | Name of the platform-specific library directory. It is used to build the path of standard library and the paths of installed extension modules. It is equal to "lib" on most platforms. On Fedora and SuSE, it is equal to "lib64" on 64-bit platforms which gives the following sys.path paths (where X.Y is the Python major.m... | |
doc_25546 |
Remove trailing coefficients Remove trailing coefficients until a coefficient is reached whose absolute value greater than tol or the beginning of the series is reached. If all the coefficients would be removed the series is set to [0]. A new series instance is returned with the new coefficients. The current instance... | |
doc_25547 |
Creates window boundaries for fixed-length windows that include the current row. Examples
>>> df = pd.DataFrame({'B': [0, 1, 2, np.nan, 4]})
>>> df
B
0 0.0
1 1.0
2 2.0
3 NaN
4 4.0
>>> indexer = pd.api.indexers.FixedForwardWindowIndexer(window_size=2)
>>> df.rolling(window=indexer, min_periods=1).sum()
... | |
doc_25548 |
Returns a Python float containing the current scale, or 1.0 if scaling is disabled. Warning get_scale() incurs a CPU-GPU sync. | |
doc_25549 | tf.compat.v1.data.experimental.StatsAggregator()
To record statistics, use one of the custom transformation functions defined in this module when defining your tf.data.Dataset. All statistics will be aggregated by the StatsAggregator that is associated with a particular iterator (see below). For example, to record the... | |
doc_25550 | Retrieves the contents of url and places it in filename. The return value is a tuple consisting of a local filename and either an email.message.Message object containing the response headers (for remote URLs) or None (for local URLs). The caller must then open and read the contents of filename. If filename is not given... | |
doc_25551 | '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_25552 |
Bases: matplotlib.backend_tools.ToolBase Tool to toggle the major grids of the figure. default_keymap=['g']
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='Toggle major grids'
Description of the Tool... | |
doc_25553 |
Return the FuncTransform associated with this scale. | |
doc_25554 | Set the flags specified by flags and unset all others. | |
doc_25555 | This returns the file descriptor used by the underlying select.devpoll() object. | |
doc_25556 | If zero or more characters at the beginning of string match this regular expression, return a corresponding match object. Return None if the string does not match the pattern; note that this is different from a zero-length match. The optional pos and endpos parameters have the same meaning as for the search() method. >... | |
doc_25557 |
Trigger the tool. Parameters
namestr
Name (id) of the tool triggered from within the container. | |
doc_25558 |
Return a string representation of data. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ... | |
doc_25559 | See Migration guide for more details. tf.compat.v1.keras.backend.rnn
tf.keras.backend.rnn(
step_function, inputs, initial_states, go_backwards=False, mask=None,
constants=None, unroll=False, input_length=None, time_major=False,
zero_output_for_mask=False
)
Arguments
step_function RNN step functi... | |
doc_25560 | turtle.pos()
Return the turtle’s current location (x,y) (as a Vec2D vector). >>> turtle.pos()
(440.00,-0.00) | |
doc_25561 | Return a textbox widget object. The win argument should be a curses window object in which the textbox is to be contained. The edit cursor of the textbox is initially located at the upper left hand corner of the containing window, with coordinates (0, 0). The instance’s stripspaces flag is initially on. Textbox objects... | |
doc_25562 | Set the angle measurement units to radians. Equivalent to degrees(2*math.pi). >>> turtle.home()
>>> turtle.left(90)
>>> turtle.heading()
90.0
>>> turtle.radians()
>>> turtle.heading()
1.5707963267948966 | |
doc_25563 | Compute statistics on the pixel values of this band. The return value is a tuple with the following structure: (minimum, maximum, mean, standard deviation). If the approximate argument is set to True, the statistics may be computed based on overviews or a subset of image tiles. If the refresh argument is set to True, t... | |
doc_25564 | Returns the number of interior rings in this geometry. | |
doc_25565 |
Dataset as a concatenation of multiple datasets. This class is useful to assemble different existing datasets. Parameters
datasets (sequence) – List of datasets to be concatenated | |
doc_25566 |
A ctypes signed integer type of the same size as numpy.intp. Depending on the platform, it can be an alias for either c_int, c_long or c_longlong. | |
doc_25567 | tf.compat.v1.sparse_matmul(
a, b, transpose_a=False, transpose_b=False, a_is_sparse=False,
b_is_sparse=False, name=None
)
The inputs must be two-dimensional matrices and the inner dimension of "a" must match the outer dimension of "b". Both "a" and "b" must be Tensors not SparseTensors. This op is optimized fo... | |
doc_25568 | Computes an Adler-32 checksum of data. (An Adler-32 checksum is almost as reliable as a CRC32 but can be computed much more quickly.) The result is an unsigned 32-bit integer. If value is present, it is used as the starting value of the checksum; otherwise, a default value of 1 is used. Passing in value allows computin... | |
doc_25569 |
Dataset for chainning multiple IterableDataset s. This class is useful to assemble different existing dataset streams. The chainning operation is done on-the-fly, so concatenating large-scale datasets with this class will be efficient. Parameters
datasets (iterable of IterableDataset) – datasets to be chained toget... | |
doc_25570 |
This function does exact same thing as torch.addmm() in the forward, except that it supports backward for sparse matrix mat1. mat1 need to have sparse_dim = 2. Note that the gradients of mat1 is a coalesced sparse tensor. Parameters
mat (Tensor) – a dense matrix to be added
mat1 (Tensor) – a sparse matrix to be ... | |
doc_25571 | class socketserver.ForkingUDPServer
class socketserver.ThreadingTCPServer
class socketserver.ThreadingUDPServer
These classes are pre-defined using the mix-in classes. | |
doc_25572 |
Return new Timestamp object representing current time local to tz. Parameters
tz:str or timezone object, default None
Timezone to localize to. Examples
>>> pd.Timestamp.now()
Timestamp('2020-11-16 22:06:16.378782')
Analogous for pd.NaT:
>>> pd.NaT.now()
NaT | |
doc_25573 |
Replace values where the condition is True. Parameters
cond:bool Series/DataFrame, array-like, or callable
Where cond is False, keep the original value. Where True, replace with corresponding value from other. If cond is callable, it is computed on the Series/DataFrame and should return boolean Series/DataFrame... | |
doc_25574 | Update portions of the screen for software displays update(rectangle=None) -> None update(rectangle_list) -> None This function is like an optimized version of pygame.display.flip() for software displays. It allows only a portion of the screen to updated, instead of the entire area. If no argument is passed it update... | |
doc_25575 | Returns a value equal to Emax - prec + 1. | |
doc_25576 | Parameters
args – a color string or three numbers in the range 0..colormode or a 3-tuple of such numbers Set or return background color of the TurtleScreen. >>> screen.bgcolor("orange")
>>> screen.bgcolor()
'orange'
>>> screen.bgcolor("#800080")
>>> screen.bgcolor()
(128.0, 0.0, 128.0) | |
doc_25577 | Returns true if this tensor resides in pinned memory. | |
doc_25578 |
Build a contingency matrix describing the relationship between labels. Parameters
labels_trueint array, shape = [n_samples]
Ground truth class labels to be used as a reference.
labels_predarray-like of shape (n_samples,)
Cluster labels to evaluate.
epsfloat, default=None
If a float, that value is added ... | |
doc_25579 | List mailbox names in directory matching pattern. directory defaults to the top-level mail folder, and pattern defaults to match anything. Returned data contains a list of LIST responses. | |
doc_25580 | A floating-point “not a number” (NaN) value. Equivalent to float('nan'). New in version 3.6. | |
doc_25581 | In-place version of log10() | |
doc_25582 |
Scalar method identical to the corresponding array attribute. Please see ndarray.sum. | |
doc_25583 | Indicate that a formerly enqueued task is complete. Used by queue consumers. For each get() used to fetch a task, a subsequent call to task_done() tells the queue that the processing on the task is complete. If a join() is currently blocking, it will resume when all items have been processed (meaning that a task_done()... | |
doc_25584 |
Return str(self). | |
doc_25585 |
Bases: torch.distributions.distribution.Distribution LKJ distribution for lower Cholesky factor of correlation matrices. The distribution is controlled by concentration parameter η\eta to make the probability of the correlation matrix MM generated from a Cholesky factor propotional to det(M)η−1\det(M)^{\eta - 1} .... | |
doc_25586 |
Read general delimited file into DataFrame. Also supports optionally iterating or breaking of the file into chunks. Additional help can be found in the online docs for IO Tools. Parameters
filepath_or_buffer:str, path object or file-like object
Any valid string path is acceptable. The string could be a URL. Val... | |
doc_25587 | The host that the request originated from. Set access_control_allow_origin on the response to indicate which origins are allowed. | |
doc_25588 | Return the file descriptor associated with the device. | |
doc_25589 |
Negative log likelihood loss with Poisson distribution of target. The loss can be described as: target∼Poisson(input)loss(input,target)=input−target∗log(input)+log(target!)\text{target} \sim \mathrm{Poisson}(\text{input}) \text{loss}(\text{input}, \text{target}) = \text{input} - \text{target} * \log(\text{input}) ... | |
doc_25590 |
Predict using the linear model. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
Carray, shape (n_samples,)
Returns predicted values. | |
doc_25591 | If abstract = True, this model will be an abstract base class. | |
doc_25592 | Creates the pyvenv.cfg configuration file in the environment. | |
doc_25593 | A string with all available type codes. | |
doc_25594 |
A new 1-D array initialized from text data in a string. Parameters
stringstr
A string containing the data.
dtypedata-type, optional
The data type of the array; default: float. For binary input data, the data must be in exactly this format. Most builtin numeric types are supported and extension types may be ... | |
doc_25595 |
Subset the dataframe rows or columns according to the specified index labels. Note that this routine does not filter a dataframe on its contents. The filter is applied to the labels of the index. Parameters
items:list-like
Keep labels from axis which are in items.
like:str
Keep labels from axis for which “l... | |
doc_25596 | This function accepts a parse tree represented as a sequence and builds an internal representation if possible. If it can validate that the tree conforms to the Python grammar and all nodes are valid node types in the host version of Python, an ST object is created from the internal representation and returned to the c... | |
doc_25597 | Required. 150 characters or fewer. Any characters are permitted. Example: 'Awesome Users'. | |
doc_25598 |
Bases: Warning | |
doc_25599 | Token value for "^". |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.