_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_30400 | See Migration guide for more details. tf.compat.v1.math.argmin
tf.compat.v1.argmin(
input, axis=None, name=None, dimension=None, output_type=tf.dtypes.int64
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (dimension). They will be removed in a future version. Instructions for updating: Use the axis argument instead No... | |
doc_30401 | See Migration guide for more details. tf.compat.v1.raw_ops.SnapshotDatasetV2
tf.raw_ops.SnapshotDatasetV2(
input_dataset, path, reader_func_other_args, shard_func_other_args,
output_types, output_shapes, reader_func, shard_func, compression='',
reader_prefix='', writer_prefix='', name=None
)
This dataset... | |
doc_30402 | Use the indexes option instead. The newer indexes option provides more functionality than index_together. index_together may be deprecated in the future. Sets of field names that, taken together, are indexed: index_together = [
["pub_date", "deadline"],
]
This list of fields will be indexed together (i.e. the ap... | |
doc_30403 |
Draw samples from a standard Gamma distribution. Samples are drawn from a Gamma distribution with specified parameters, shape (sometimes designated “k”) and scale=1. Note New code should use the standard_gamma method of a default_rng() instance instead; please see the Quick Start. Parameters
shapefloat or array... | |
doc_30404 | Local objects cannot manage themselves. For that you need a local manager. You can pass a local manager multiple locals or add them later y appending them to manager.locals. Every time the manager cleans up, it will clean up all the data left in the locals for this context. Changed in version 2.0: ident_func is deprec... | |
doc_30405 |
Return the minimum value along an axis. Parameters
See `amin` for complete descriptions.
See also
amin, ndarray.min
Notes This is the same as ndarray.min, but returns a matrix object where ndarray.min would return an ndarray. Examples >>> x = -np.matrix(np.arange(12).reshape((3,4))); x
matrix([[ 0, -1, ... | |
doc_30406 | See Migration guide for more details. tf.compat.v1.raw_ops.TakeWhileDataset
tf.raw_ops.TakeWhileDataset(
input_dataset, other_arguments, predicate, output_types, output_shapes,
name=None
)
The predicate function must return a scalar boolean and accept the following arguments: One tensor for each component o... | |
doc_30407 |
Return the timedelta in nanoseconds (ns), for internal compatibility. Returns
int
Timedelta in nanoseconds. Examples
>>> td = pd.Timedelta('1 days 42 ns')
>>> td.delta
86400000000042
>>> td = pd.Timedelta('3 s')
>>> td.delta
3000000000
>>> td = pd.Timedelta('3 ms 5 us')
>>> td.delta
3005000
>>> td =... | |
doc_30408 |
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_30409 |
Apply trees in the forest to X, return leaf indices. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, its dtype will be converted to dtype=np.float32. If a sparse matrix is provided, it will be converted into a sparse csr_matrix. Returns
X_leavesndarr... | |
doc_30410 | Returns the indices of the upper triangular part of a row by col matrix in a 2-by-N Tensor, where the first row contains row coordinates of all indices and the second row contains column coordinates. Indices are ordered based on rows and then columns. The upper triangular part of the matrix is defined as the elements o... | |
doc_30411 | See Migration guide for more details. tf.compat.v1.raw_ops.BatchIFFT
tf.raw_ops.BatchIFFT(
input, name=None
)
Args
input A Tensor of type complex64.
name A name for the operation (optional).
Returns A Tensor of type complex64. | |
doc_30412 | Set the frame rate to n. Changed in version 3.2: A non-integral input to this method is rounded to the nearest integer. | |
doc_30413 | tf.add_n Compat aliases for migration See Migration guide for more details. tf.compat.v1.add_n, tf.compat.v1.math.add_n
tf.math.add_n(
inputs, name=None
)
tf.math.add_n performs the same operation as tf.math.accumulate_n, but it waits for all of its inputs to be ready before beginning to sum. This buffering can ... | |
doc_30414 | The maximum pixel value of the band (excluding the “no data” value). | |
doc_30415 | tf.compat.v1.estimator.tpu.TPUConfig(
iterations_per_loop=2, num_shards=None, num_cores_per_replica=None,
per_host_input_for_training=True, tpu_job_name=None,
initial_infeed_sleep_secs=None, input_partition_dims=None,
eval_training_input_configuration=InputPipelineConfig.PER_HOST_V1,
experimental_ho... | |
doc_30416 |
Alias for get_edgecolor. | |
doc_30417 |
Like Artist.get_window_extent, but includes any clipping. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns
Bbox
The enclosing bounding box (in figure pixel coordinates). | |
doc_30418 | tf.estimator.classifier_parse_example_spec(
feature_columns, label_key, label_dtype=tf.dtypes.int64, label_default=None,
weight_column=None
)
If users keep data in tf.Example format, they need to call tf.parse_example with a proper feature spec. There are two main things that this utility helps: Users need to... | |
doc_30419 | Disable compression on the SSL channel. This is useful if the application protocol supports its own compression scheme. This option is only available with OpenSSL 1.0.0 and later. New in version 3.3. | |
doc_30420 |
Return terms per document with nonzero entries in X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Document-term matrix. Returns
X_invlist of arrays of shape (n_samples,)
List of arrays of terms. | |
doc_30421 |
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters
Xarray-like of shape (n_samples, n_features)
Test samples.
yarray-like of shap... | |
doc_30422 |
Bases: matplotlib.mathtext.MathtextBackend [Deprecated] Store information to write a mathtext rendering to the SVG backend. Notes Deprecated since version 3.4. get_results(box, used_characters)[source]
Return a backend-specific tuple to return to the backend after all processing is done.
render_glyph(ox, oy... | |
doc_30423 | Clears the local variables of all the stack frames in a traceback tb by calling the clear() method of each frame object. New in version 3.4. | |
doc_30424 | Object that is greater than anything (except itself). Used to test mixed type comparison. | |
doc_30425 | See Migration guide for more details. tf.compat.v1.raw_ops.CollectiveBcastSend
tf.raw_ops.CollectiveBcastSend(
input, group_size, group_key, instance_key, shape,
communication_hint='auto', timeout_seconds=0, name=None
)
Args
input A Tensor. Must be one of the following types: bool, float32, half, fl... | |
doc_30426 | See Migration guide for more details. tf.compat.v1.train.ServerDef
Attributes
cluster ClusterDef cluster
cluster_device_filters ClusterDeviceFilters cluster_device_filters
default_session_config ConfigProto default_session_config
job_name string job_name
port int32 port
protocol ... | |
doc_30427 | This method accepts a coroutine that can be used as a cleanup function. | |
doc_30428 | Set up clear text data connection. | |
doc_30429 |
Predict classes at each iteration. This method allows monitoring (i.e. determine error on testing set) after each stage. New in version 0.24. Parameters
Xarray-like of shape (n_samples, n_features)
The input samples. Yields
ygenerator of ndarray of shape (n_samples,)
The predicted classes of the input... | |
doc_30430 | Depth limit on the creation of recursive representations. The default is 6. | |
doc_30431 | See Migration guide for more details. tf.compat.v1.keras.preprocessing.sequence.skipgrams
tf.keras.preprocessing.sequence.skipgrams(
sequence, vocabulary_size, window_size=4, negative_samples=1.0, shuffle=True,
categorical=False, sampling_table=None, seed=None
)
This function transforms a sequence of word in... | |
doc_30432 |
Check if the Index has duplicate values. Returns
bool
Whether or not the Index has duplicate values. Examples
>>> idx = pd.Index([1, 5, 7, 7])
>>> idx.has_duplicates
True
>>> idx = pd.Index([1, 5, 7])
>>> idx.has_duplicates
False
>>> idx = pd.Index(["Watermelon", "Orange", "Apple",
... ... | |
doc_30433 | operator.__mul__(a, b)
Return a * b, for a and b numbers. | |
doc_30434 |
Predict target for X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of features.
**predict_paramsdict of str -> obj
Parameters to the predict called by the final_estimator. Note that this may b... | |
doc_30435 | See Migration guide for more details. tf.compat.v1.raw_ops.ApplyAdadelta
tf.raw_ops.ApplyAdadelta(
var, accum, accum_update, lr, rho, epsilon, grad, use_locking=False, name=None
)
accum = rho() * accum + (1 - rho()) * grad.square(); update = (update_accum + epsilon).sqrt() * (accum + epsilon()).rsqrt() * grad; u... | |
doc_30436 |
Predict the closest cluster each sample in X belongs to. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
New data to predict. If a sparse matrix is provided, it will be converted into a sparse csr_matrix. Returns
labelsndarray of shape (n_samples,)
Cluster labels. | |
doc_30437 | A generic version of collections.abc.Reversible. Deprecated since version 3.9: collections.abc.Reversible now supports []. See PEP 585 and Generic Alias Type. | |
doc_30438 | The total number of tests run so far. | |
doc_30439 | tf.experimental.numpy.sign(
x, out=None, where=None, **kwargs
)
See the NumPy documentation for numpy.sign. | |
doc_30440 | Sets the locale for category to the default setting. The default setting is determined by calling getdefaultlocale(). category defaults to LC_ALL. | |
doc_30441 |
Return a copy of a with only the first character of each element capitalized. Calls str.capitalize element-wise. For 8-bit strings, this method is locale-dependent. Parameters
aarray_like of str or unicode
Input array of strings to capitalize. Returns
outndarray
Output array of str or unicode, depending... | |
doc_30442 | When rotating, rotate the current log. The default implementation calls the ‘rotator’ attribute of the handler, if it’s callable, passing the source and dest arguments to it. If the attribute isn’t callable (the default is None), the source is simply renamed to the destination. Parameters
source – The source filena... | |
doc_30443 | Schedule the execution of a Coroutines. Return a Task object. Third-party event loops can use their own subclass of Task for interoperability. In this case, the result type is a subclass of Task. If the name argument is provided and not None, it is set as the name of the task using Task.set_name(). Changed in version ... | |
doc_30444 | Return True if strings a and b are equal, otherwise False, in such a way as to reduce the risk of timing attacks. See hmac.compare_digest() for additional details. | |
doc_30445 | Standard input stream (StreamWriter) or None if the process was created with stdin=None. | |
doc_30446 | tf.compat.v1.train.Optimizer(
use_locking, name
)
This class defines the API to add Ops to train a model. You never use this class directly, but instead instantiate one of its subclasses such as GradientDescentOptimizer, AdagradOptimizer, or MomentumOptimizer. Usage # Create an optimizer with the desired parameter... | |
doc_30447 | See Migration guide for more details. tf.compat.v1.raw_ops.RequantizationRange
tf.raw_ops.RequantizationRange(
input, input_min, input_max, name=None
)
Given a quantized tensor described by (input, input_min, input_max), outputs a range that covers the actual values present in that tensor. This op is typically u... | |
doc_30448 | Splits a tensor into multiple sub-tensors, all of which are views of input, along dimension dim according to the indices or number of sections specified by indices_or_sections. This function is based on NumPy’s numpy.array_split(). Parameters
input (Tensor) – the tensor to split
indices_or_sections (Tensor, int or... | |
doc_30449 | This generator function uses the co_firstlineno and co_lnotab attributes of the code object code to find the offsets which are starts of lines in the source code. They are generated as (offset, lineno) pairs. See Objects/lnotab_notes.txt for the co_lnotab format and how to decode it. Changed in version 3.6: Line numbe... | |
doc_30450 | The “ctime” as reported by the operating system. On some systems (like Unix) is the time of the last metadata change, and, on others (like Windows), is the creation time (see platform documentation for details). | |
doc_30451 |
Plot the cross-spectral density. The cross spectral density \(P_{xy}\) by Welch's average periodogram method. The vectors x and y are divided into NFFT length segments. Each segment is detrended by function detrend and windowed by function window. noverlap gives the length of the overlap between segments. The product... | |
doc_30452 | Output of the child process if it was captured by run() or check_output(). Otherwise, None. | |
doc_30453 | When the noqiflush() routine is used, normal flush of input and output queues associated with the INTR, QUIT and SUSP characters will not be done. You may want to call noqiflush() in a signal handler if you want output to continue as though the interrupt had not occurred, after the handler exits. | |
doc_30454 | See Migration guide for more details. tf.compat.v1.raw_ops.LMDBDataset
tf.raw_ops.LMDBDataset(
filenames, output_types, output_shapes, name=None
)
The Lightning Memory-Mapped Database Manager, or LMDB, is an embedded binary key-value database. This dataset can read the contents of LMDB database files, the names ... | |
doc_30455 |
This loss combines a Sigmoid layer and the BCELoss in one single class. This version is more numerically stable than using a plain Sigmoid followed by a BCELoss as, by combining the operations into one layer, we take advantage of the log-sum-exp trick for numerical stability. The unreduced (i.e. with reduction set to... | |
doc_30456 | turtle.lt(angle)
Parameters
angle – a number (integer or float) Turn turtle left by angle units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientation depends on the turtle mode, see mode(). >>> turtle.heading()
22.0
>>> turtle.left(45)
>>> turtle.heading()
67... | |
doc_30457 | '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_30458 | Store a file in binary transfer mode. cmd should be an appropriate STOR command: "STOR filename". fp is a file object (opened in binary mode) which is read until EOF using its read() method in blocks of size blocksize to provide the data to be stored. The blocksize argument defaults to 8192. callback is an optional sin... | |
doc_30459 |
Compute eigenvalues of structure tensor. Parameters
Axxndarray
Element of the structure tensor for each pixel in the input image.
Axyndarray
Element of the structure tensor for each pixel in the input image.
Ayyndarray
Element of the structure tensor for each pixel in the input image. Returns
l1nd... | |
doc_30460 | class tkinter.colorchooser.Chooser(master=None, **options)
tkinter.colorchooser.askcolor(color=None, **options)
Create a color choosing dialog. A call to this method will show the window, wait for the user to make a selection, and return the selected color (or None) to the caller.
See also
Module tkinter.com... | |
doc_30461 |
Draw the text instance. Parameters
gcGraphicsContextBase
The graphics context.
xfloat
The x location of the text in display coords.
yfloat
The y location of the text baseline in display coords.
sstr
The text string.
propmatplotlib.font_manager.FontProperties
The font properties.
anglefloat
T... | |
doc_30462 | tf.distribute.experimental.ParameterServerStrategy(
cluster_resolver, variable_partitioner=None
)
Parameter server training is a common data-parallel method to scale up a machine learning model on multiple machines. A parameter server training cluster consists of workers and parameter servers. Variables are create... | |
doc_30463 |
Set the edgecolor(s) of the collection. Parameters
ccolor or list of colors or 'face'
The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor. | |
doc_30464 |
If created from a 64-bit integer, it represents an offset from 1970-01-01T00:00:00. If created from string, the string can be in ISO 8601 date or datetime format. >>> np.datetime64(10, 'Y')
numpy.datetime64('1980')
>>> np.datetime64('1980', 'Y')
numpy.datetime64('1980')
>>> np.datetime64(10, 'D')
numpy.datetime64('19... | |
doc_30465 | See Migration guide for more details. tf.compat.v1.raw_ops.DecodeProtoV2
tf.raw_ops.DecodeProtoV2(
bytes, message_type, field_names, output_types,
descriptor_source='local://', message_format='binary',
sanitize=False, name=None
)
The decode_proto op extracts fields from a serialized protocol buffers mess... | |
doc_30466 |
Set the width of the box. Parameters
widthfloat | |
doc_30467 |
Return a dictionary of all the properties of the artist. | |
doc_30468 |
Set the linestyle(s) for the collection.
linestyle description
'-' or 'solid' solid line
'--' or 'dashed' dashed line
'-.' or 'dashdot' dash-dotted line
':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq),
where onoffseq is an even length tup... | |
doc_30469 | Signals the end of an element in non-namespace mode. The name parameter contains the name of the element type, just as with the startElement() event. | |
doc_30470 |
Get the width, height, and descent (offset from the bottom to the baseline), in display coords, of the string s with FontProperties prop. | |
doc_30471 | Like max(self, other) except that the context rounding rule is applied before returning and that NaN values are either signaled or ignored (depending on the context and whether they are signaling or quiet). | |
doc_30472 |
Immunohistochemical (IHC) staining with hematoxylin counterstaining. This picture shows colonic glands where the IHC expression of FHL2 protein is revealed with DAB. Hematoxylin counterstaining is applied to enhance the negative parts of the tissue. This image was acquired at the Center for Microscopy And Molecular I... | |
doc_30473 | class sklearn.model_selection.LeaveOneGroupOut [source]
Leave One Group Out cross-validator Provides train/test indices to split data according to a third-party provided group. This group information can be used to encode arbitrary domain specific stratifications of the samples as integers. For instance the groups co... | |
doc_30474 | class BaseDatabaseSchemaEditor
Django’s migration system is split into two parts; the logic for calculating and storing what operations should be run (django.db.migrations), and the database abstraction layer that turns things like “create a model” or “delete a field” into SQL - which is the job of the SchemaEditor. ... | |
doc_30475 | Compare two operands using their abstract representation rather than their numerical value. Similar to the compare() method, but the result gives a total ordering on Decimal instances. Two Decimal instances with the same numeric value but different representations compare unequal in this ordering: >>> Decimal('12.0').c... | |
doc_30476 | Find the indices from the innermost dimension of sorted_sequence such that, if the corresponding values in values were inserted before the indices, the order of the corresponding innermost dimension within sorted_sequence would be preserved. Return a new tensor with the same size as values. If right is False (default),... | |
doc_30477 |
Set the colormap to 'hsv'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | |
doc_30478 | When this namespace is specified, the name string is an X.500 DN in DER or a text output format. | |
doc_30479 |
Convert the object to a JSON string. Note NaN’s and None will be converted to null and datetime objects will be converted to UNIX timestamps. Parameters
path_or_buf:str, path object, file-like object, or None, default None
String, path object (implementing os.PathLike[str]), or file-like object implementing a w... | |
doc_30480 | Elements are counted from an iterable or added-in from another mapping (or counter). Like dict.update() but adds counts instead of replacing them. Also, the iterable is expected to be a sequence of elements, not a sequence of (key, value) pairs. | |
doc_30481 |
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_30482 |
Return v=0, nth=1. | |
doc_30483 |
Transform features by scaling each feature to a given range. This estimator scales and translates each feature individually such that it is in the given range on the training set, i.e. between zero and one. The transformation is given by (when axis=0): X_std = (X - X.min(axis=0)) / (X.max(axis=0) - X.min(axis=0))
X_s... | |
doc_30484 | AxesDivider(axes[, xref, yref]) Divider based on the pre-existing axes.
AxesLocator(axes_divider, nx, ny[, nx1, ny1]) A callable object which returns the position and size of a given AxesDivider cell.
Divider(fig, pos, horizontal, vertical[, ...]) An Axes positioning class.
HBoxDivider(fig, *args[, horizontal, ..... | |
doc_30485 | Registers the given model class (or iterable of classes) with the given admin_class. admin_class defaults to ModelAdmin (the default admin options). If keyword arguments are given – e.g. list_display – they’ll be applied as options to the admin class. Raises ImproperlyConfigured if a model is abstract. and django.contr... | |
doc_30486 | Nonzero if a DST timezone is defined. See note below. | |
doc_30487 | Receive notification of a processing instruction. The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element. A SAX parser should never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.... | |
doc_30488 |
Predict targets of given samples. Parameters
Xarray-like of shape (n_samples, n_features)
Samples.
copybool, default=True
Whether to copy X and Y, or perform in-place normalization. Notes This call requires the estimation of a matrix of shape (n_features, n_targets), which may be an issue in high dimens... | |
doc_30489 |
Set multiple properties at once. Supported properties are
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha array-like or scalar or None
animated bool
antialiased or aa or antialiaseds bool or list of bools
array a... | |
doc_30490 |
Map values using an input mapping or function. Parameters
mapper:function, dict, or Series
Mapping correspondence.
na_action:{None, ‘ignore’}
If ‘ignore’, propagate NA values, without passing them to the mapping correspondence. Returns
applied:Union[Index, MultiIndex], inferred
The output of the map... | |
doc_30491 |
Applies local response normalization over an input signal composed of several input planes, where channels occupy the second dimension. Applies normalization across channels. bc=ac(k+αn∑c′=max(0,c−n/2)min(N−1,c+n/2)ac′2)−βb_{c} = a_{c}\left(k + \frac{\alpha}{n} \sum_{c'=\max(0, c-n/2)}^{\min(N-1,c+n/2)}a_{c'}^2\ri... | |
doc_30492 | Path to a custom template, used by changelist_view(). | |
doc_30493 | sklearn.metrics.average_precision_score(y_true, y_score, *, average='macro', pos_label=1, sample_weight=None) [source]
Compute average precision (AP) from prediction scores. AP summarizes a precision-recall curve as the weighted mean of precisions achieved at each threshold, with the increase in recall from the previ... | |
doc_30494 | Return the Graph underlying this GraphModule | |
doc_30495 |
[Deprecated] Implement the default Matplotlib key bindings defined at Navigation keyboard shortcuts. Notes Deprecated since version 3.4. | |
doc_30496 | Generic element structure builder. This builder converts a sequence of start, data, end, comment and pi method calls to a well-formed element structure. You can use this class to build an element structure using a custom XML parser, or a parser for some other XML-like format. element_factory, when given, must be a call... | |
doc_30497 |
Load and return the digits dataset (classification). Each datapoint is a 8x8 image of a digit.
Classes 10
Samples per class ~180
Samples total 1797
Dimensionality 64
Features integers 0-16 Read more in the User Guide. Parameters
n_classint, default=10
The number of classes to return. Between 0 and 1... | |
doc_30498 |
Generates a sample_shape shaped reparameterized sample or sample_shape shaped batch of reparameterized samples if the distribution parameters are batched. | |
doc_30499 | Return the maximum peak-peak value in the sound fragment. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.