_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_15300 | Construct a Path object from a root zipfile (which may be a ZipFile instance or file suitable for passing to the ZipFile constructor). at specifies the location of this Path within the zipfile, e.g. ‘dir/file.txt’, ‘dir/’, or ‘’. Defaults to the empty string, indicating the root. | |
doc_15301 | tf.metrics.top_k_categorical_accuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.top_k_categorical_accuracy
tf.keras.metrics.top_k_categorical_accuracy(
y_true, y_pred, k=5
)
Standalone usage:
y_true = [[0, 0, 1], [0, 1, 0]]
y_pred = [[0.1, 0.9, 0.8], [0.05, 0.... | |
doc_15302 |
Returns the transpose of the matrix. Does not conjugate! For the complex conjugate transpose, use .H. Parameters
None
Returns
retmatrix object
The (non-conjugated) transpose of the matrix. See also
transpose, getH
Examples >>> m = np.matrix('[1, 2; 3, 4]')
>>> m
matrix([[1, 2],
[3, 4]])
>>... | |
doc_15303 | A read-only property. Set to the value the variable had before the ContextVar.set() method call that created the token. It points to Token.MISSING is the variable was not set before the call. | |
doc_15304 |
Returns true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise. Call str.isupper element-wise. For 8-bit strings, this method is locale-dependent. Parameters
aarray_like of str or unicode
Returns
outndarray
Output array of bools ... | |
doc_15305 |
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass. | |
doc_15306 |
Return an array with the elements converted to lowercase. Call str.lower element-wise. For 8-bit strings, this method is locale-dependent. Parameters
aarray_like, {str, unicode}
Input array. Returns
outndarray, {str, unicode}
Output array of str or unicode, depending on input type See also str.low... | |
doc_15307 |
Removes axis i from the iterator. Requires that the flag “multi_index” be enabled. | |
doc_15308 | Deletes a cookie in the test client. Parameters
server_name (str) –
key (str) –
path (str) –
domain (Optional[str]) –
secure (bool) –
httponly (bool) –
samesite (Optional[str]) – Return type
None | |
doc_15309 | A helper method that returns an expiration date for the session or None if the session is linked to the browser session. The default implementation returns now + the permanent session lifetime configured on the application. Parameters
app (Flask) –
session (flask.sessions.SessionMixin) – Return type
Optional[... | |
doc_15310 |
Only show "outer" labels and tick labels. x-labels are only kept for subplots on the last row (or first row, if labels are on the top side); y-labels only for subplots on the first column (or last column, if labels are on the right side). | |
doc_15311 | A boolean representing whether or not the mock object has been called: >>> mock = Mock(return_value=None)
>>> mock.called
False
>>> mock()
>>> mock.called
True | |
doc_15312 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_15313 | tf.keras.applications.nasnet.NASNetLarge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.NASNetLarge, tf.compat.v1.keras.applications.nasnet.NASNetLarge
tf.keras.applications.NASNetLarge(
input_shape=None, include_top=True, weights='imagenet',
input_tensor=No... | |
doc_15314 |
DateOffset increments between Quarter end dates. startingMonth = 1 corresponds to dates like 1/31/2007, 4/30/2007, … startingMonth = 2 corresponds to dates like 2/28/2007, 5/31/2007, … startingMonth = 3 corresponds to dates like 3/31/2007, 6/30/2007, … Attributes
base Returns a copy of the calling offset objec... | |
doc_15315 | Return a list of frame records for the caller’s stack. The first entry in the returned list represents the caller; the last entry represents the outermost call on the stack. Changed in version 3.5: A list of named tuples FrameInfo(frame, filename, lineno, function, code_context, index) is returned. | |
doc_15316 |
The day of the week with Monday=0, Sunday=6. Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which is denoted by 6. This method is available on both Series with datetime values (using the dt accessor) or DatetimeIndex. Returns
Series or Index
Containin... | |
doc_15317 | See torch.triangular_solve() | |
doc_15318 | See Migration guide for more details. tf.compat.v1.estimator.PoissonRegressionHead
tf.estimator.PoissonRegressionHead(
label_dimension=1, weight_column=None,
loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE,
compute_full_loss=True, name=None
)
The loss is the weighted sum over all input dimens... | |
doc_15319 |
[Deprecated] Notes Deprecated since version 3.4: | |
doc_15320 | See Migration guide for more details. tf.compat.v1.raw_ops.StringToNumber
tf.raw_ops.StringToNumber(
string_tensor, out_type=tf.dtypes.float32, name=None
)
(Note that int32 overflow results in an error while float overflow results in a rounded value.) Example:
strings = ["5.0", "3.0", "7.0"]
tf.strings.to_numbe... | |
doc_15321 | tf.hessians(
ys, xs, gate_gradients=False, aggregation_method=None, name='hessians'
)
hessians() adds ops to the graph to output the Hessian matrix of ys with respect to xs. It returns a list of Tensor of length len(xs) where each tensor is the Hessian of sum(ys). The Hessian is a matrix of second-order partial de... | |
doc_15322 | See Migration guide for more details. tf.compat.v1.TensorArray
tf.TensorArray(
dtype, size=None, dynamic_size=None, clear_after_read=None,
tensor_array_name=None, handle=None, flow=None, infer_shape=True,
element_shape=None, colocate_with_first_write_call=True, name=None
)
This class is meant to be used ... | |
doc_15323 | Prevent deletion of the referenced object by raising RestrictedError (a subclass of django.db.IntegrityError). Unlike PROTECT, deletion of the referenced object is allowed if it also references a different object that is being deleted in the same operation, but via a CASCADE relationship. Consider this set of models: c... | |
doc_15324 | Set the display color palette for indexed displays set_palette(palette=None) -> None This will change the video display color palette for 8-bit displays. This does not change the palette for the actual display Surface, only the palette that is used to display the Surface. If no palette argument is passed, the system ... | |
doc_15325 |
Calculate the rolling weighted window standard deviation. New in version 1.0.0. Parameters
**kwargs
Keyword arguments to configure the SciPy weighted window type. Returns
Series or DataFrame
Return type is the same as the original object with np.float64 dtype. See also pandas.Series.rolling
Calling... | |
doc_15326 | api.extensions.register_extension_dtype(cls) Register an ExtensionType with pandas as class decorator.
api.extensions.register_dataframe_accessor(name) Register a custom accessor on DataFrame objects.
api.extensions.register_series_accessor(name) Register a custom accessor on Series objects.
api.extensions.regist... | |
doc_15327 |
ctypes interface Returns
interfacenamedtuple
Named tuple containing ctypes wrapper state_address - Memory address of the state struct state - pointer to the state struct next_uint64 - function pointer to produce 64 bit integers next_uint32 - function pointer to produce 32 bit integers next_double - function po... | |
doc_15328 |
Squeeze 1 dimensional axis objects into scalars. Series or DataFrames with a single element are squeezed to a scalar. DataFrames with a single column or a single row are squeezed to a Series. Otherwise the object is unchanged. This method is most useful when you don’t know if your object is a Series or DataFrame, but... | |
doc_15329 | class sklearn.linear_model.LogisticRegressionCV(*, Cs=10, fit_intercept=True, cv=None, dual=False, penalty='l2', scoring=None, solver='lbfgs', tol=0.0001, max_iter=100, class_weight=None, n_jobs=None, verbose=0, refit=True, intercept_scaling=1.0, multi_class='auto', random_state=None, l1_ratios=None) [source]
Logisti... | |
doc_15330 |
Return the transform to be applied to the Path from MarkerStyle.get_alt_path(). | |
doc_15331 | tf.compat.v1.train.export_meta_graph(
filename=None, meta_info_def=None, graph_def=None, saver_def=None,
collection_list=None, as_text=False, graph=None, export_scope=None,
clear_devices=False, clear_extraneous_savers=False, strip_default_attrs=False,
save_debug_info=False, **kwargs
)
Optionally writes... | |
doc_15332 |
Add an arrow to the Axes. This draws an arrow from (x, y) to (x+dx, y+dy). Parameters
x, yfloat
The x and y coordinates of the arrow base.
dx, dyfloat
The length of the arrow along x and y direction.
widthfloat, default: 0.001
Width of full arrow tail.
length_includes_headbool, default: False
True i... | |
doc_15333 | Translates singular and plural and returns the appropriate string based on number. | |
doc_15334 |
Return greyscale morphological opening of an image. The morphological opening on an image is defined as an erosion followed by a dilation. Opening can remove small bright spots (i.e. “salt”) and connect small dark cracks. This tends to “open” up (dark) gaps between (bright) features. Parameters
imagendarray
Ima... | |
doc_15335 |
Return a description for the given data type code. Parameters
charstr
Data type code. Returns
outstr
Description of the input data type code. See also
dtype, typecodes
Examples >>> typechars = ['S1', '?', 'B', 'D', 'G', 'F', 'I', 'H', 'L', 'O', 'Q',
... 'S', 'U', 'V', 'b', 'd', 'g... | |
doc_15336 | Signals a test failure unconditionally, with msg or None for the error message. | |
doc_15337 | Filename pattern of the filter (str). Read-only property. | |
doc_15338 |
Draw samples from a Zipf distribution. Samples are drawn from a Zipf distribution with specified parameter a > 1. The Zipf distribution (also known as the zeta distribution) is a discrete probability distribution that satisfies Zipf’s law: the frequency of an item is inversely proportional to its rank in a frequency ... | |
doc_15339 | The time limit (in microseconds) on CPU time that a process can spend under real-time scheduling without making a blocking syscall. Availability: Linux 2.6.25 or later. New in version 3.4. | |
doc_15340 | Announces an intention to access data in a specific pattern thus allowing the kernel to make optimizations. The advice applies to the region of the file specified by fd starting at offset and continuing for len bytes. advice is one of POSIX_FADV_NORMAL, POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_NOREUSE, POSI... | |
doc_15341 |
Regression based on neighbors within a fixed radius. The target is predicted by local interpolation of the targets associated of the nearest neighbors in the training set. Read more in the User Guide. New in version 0.9. Parameters
radiusfloat, default=1.0
Range of parameter space to use by default for radius... | |
doc_15342 | Opens a new element. tag is the element name. attrs is a dictionary containing element attributes. Returns the opened element. | |
doc_15343 | Returns the numeric value assigned to the character chr as float. If no such value is defined, default is returned, or, if not given, ValueError is raised. | |
doc_15344 | bytearray.find(sub[, start[, end]])
Return the lowest index in the data where the subsequence sub is found, such that sub is contained in the slice s[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 if sub is not found. The subsequence to search for may be any bytes-like ob... | |
doc_15345 | tf.compat.v1.metrics.specificity_at_sensitivity(
labels, predictions, sensitivity, weights=None, num_thresholds=200,
metrics_collections=None, updates_collections=None, name=None
)
The specificity_at_sensitivity function creates four local variables, true_positives, true_negatives, false_positives and false_ne... | |
doc_15346 |
Get the edge color of the Figure rectangle. | |
doc_15347 |
Return the default savefig file format as specified in rcParams["savefig.format"] (default: 'png'). The returned string does not include a period. This method is overridden in backends that only support a single file type. | |
doc_15348 |
Return the resolution in dots per inch as a float. | |
doc_15349 | This exception is raised when an error occurs during compression or decompression, or while initializing the compressor/decompressor state. | |
doc_15350 |
Return a copy of the array. Parameters
order{‘C’, ‘F’, ‘A’, ‘K’}, optional
Controls the memory layout of the copy. ‘C’ means C-order, ‘F’ means F-order, ‘A’ means ‘F’ if a is Fortran contiguous, ‘C’ otherwise. ‘K’ means match the layout of a as closely as possible. (Note that this function and numpy.copy are ve... | |
doc_15351 |
Select the backend used for rendering and GUI integration. Parameters
backendstr
The backend to switch to. This can either be one of the standard backend names, which are case-insensitive: interactive backends: GTK3Agg, GTK3Cairo, GTK4Agg, GTK4Cairo, MacOSX, nbAgg, QtAgg, QtCairo, TkAgg, TkCairo, WebAgg, WX, W... | |
doc_15352 |
Replace values given in to_replace with value. Values of the Series are replaced with other values dynamically. This differs from updating with .loc or .iloc, which require you to specify a location to update with some value. Parameters
to_replace:str, regex, list, dict, Series, int, float, or None
How to find ... | |
doc_15353 | skimage.viewer.plugins.CannyPlugin(*args, …) Canny filter plugin to show edges of an image.
skimage.viewer.plugins.ColorHistogram([max_pct])
skimage.viewer.plugins.Crop([maxdist])
skimage.viewer.plugins.LabelPainter([max_radius])
skimage.viewer.plugins.LineProfile([…]) Plugin to compute interpolated intensit... | |
doc_15354 | Returns True if value is aware, False if it is naive. This function assumes that value is a datetime. | |
doc_15355 |
Load pickled pandas object (or any object) from file. Warning Loading pickled data received from untrusted sources can be unsafe. See here. Parameters
filepath_or_buffer:str, path object, or file-like object
String, path object (implementing os.PathLike[str]), or file-like object implementing a binary readlin... | |
doc_15356 | The DirList widget displays a list view of a directory, its previous directories and its sub-directories. The user can choose one of the directories displayed in the list or change to another directory. | |
doc_15357 | tf.optimizers.Adagrad Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.Adagrad
tf.keras.optimizers.Adagrad(
learning_rate=0.001, initial_accumulator_value=0.1, epsilon=1e-07,
name='Adagrad', **kwargs
)
Adagrad is an optimizer with parameter-specific learning ra... | |
doc_15358 | tf.keras.layers.experimental.preprocessing.CategoryEncoding(
max_tokens=None, output_mode=BINARY, sparse=False, **kwargs
)
This layer provides options for condensing data into a categorical encoding. It accepts integer values as inputs and outputs a dense representation (one sample = 1-index tensor of float values... | |
doc_15359 |
Compute the median and quantiles to be used for scaling. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The data used to compute the median and quantiles used for later scaling along the features axis.
yNone
Ignored. Returns
selfobject
Fitted scaler. | |
doc_15360 | os.R_OK
os.W_OK
os.X_OK
Values to pass as the mode parameter of access() to test the existence, readability, writability and executability of path, respectively. | |
doc_15361 | tf.compat.v1.image.resize_area(
images, size, align_corners=False, name=None
)
Input images can be of different types but output images are always float. The range of pixel values for the output image might be slightly different from the range for the input image because of limited numerical precision. To guarante... | |
doc_15362 | An integer, the default protocol version used for pickling. May be less than HIGHEST_PROTOCOL. Currently the default protocol is 4, first introduced in Python 3.4 and incompatible with previous versions. Changed in version 3.0: The default protocol is 3. Changed in version 3.8: The default protocol is 4. | |
doc_15363 | Return a copy of the string left filled with ASCII '0' digits to make a string of length width. A leading sign prefix ('+'/'-') is handled by inserting the padding after the sign character rather than before. The original string is returned if width is less than or equal to len(s). For example: >>> "42".zfill(5)
'00042... | |
doc_15364 | Byte index at which an error occurred. | |
doc_15365 | Accept a string as the instance’s new time value. | |
doc_15366 | See Migration guide for more details. tf.compat.v1.raw_ops.CropAndResizeGradBoxes
tf.raw_ops.CropAndResizeGradBoxes(
grads, image, boxes, box_ind, method='bilinear', name=None
)
Args
grads A Tensor of type float32. A 4-D tensor of shape [num_boxes, crop_height, crop_width, depth].
image A Tensor. ... | |
doc_15367 |
Return aspect. | |
doc_15368 | Returns whether the kernel is defined on discrete structures. | |
doc_15369 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayGrad
tf.raw_ops.TensorArrayGrad(
handle, flow_in, source, name=None
)
Args
handle A Tensor of type string.
flow_in A Tensor of type float32.
source A string.
name A name for the operation (optional).
Returns ... | |
doc_15370 | See Migration guide for more details. tf.compat.v1.raw_ops.DrawBoundingBoxesV2
tf.raw_ops.DrawBoundingBoxesV2(
images, boxes, colors, name=None
)
Outputs a copy of images but draws on top of the pixels zero or more bounding boxes specified by the locations in boxes. The coordinates of the each bounding box in bo... | |
doc_15371 |
Update this artist's properties from the dict props. Parameters
propsdict | |
doc_15372 | See torch.isnan() | |
doc_15373 |
Valid metrics for pairwise_kernels. This function simply returns the valid pairwise distance metrics. It exists, however, to allow for a verbose description of the mapping for each of the valid strings. The valid distance metrics, and the function they map to, are:
metric Function
‘additive_chi2’ sklearn.pair... | |
doc_15374 | See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.DirectoryIterator
tf.keras.preprocessing.image.DirectoryIterator(
directory, image_data_generator, target_size=(256, 256),
color_mode='rgb', classes=None, class_mode='categorical',
batch_size=32, shuffle=True, seed=None, data_for... | |
doc_15375 | Closes the socket to the remote host. | |
doc_15376 |
Bases: matplotlib.offsetbox.AnchoredOffsetbox Draw a horizontal scale bar with a center-aligned label underneath. Parameters
transformmatplotlib.transforms.Transform
The transformation object for the coordinate system in use, i.e., matplotlib.axes.Axes.transData.
sizefloat
Horizontal length of the size bar,... | |
doc_15377 | In-place version of arctan() | |
doc_15378 |
Returns true if self.data stored on in pinned memory | |
doc_15379 | tf.compat.v1.nn.ctc_loss(
labels, inputs=None, sequence_length=None, preprocess_collapse_repeated=False,
ctc_merge_repeated=True, ignore_longer_outputs_than_inputs=False,
time_major=True, logits=None
)
This op implements the CTC loss as presented in (Graves et al., 2006). Input requirements: sequence_lengt... | |
doc_15380 |
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters
rendererRendererBase subclass.
Notes This method is overridden in the Artist subclasses. | |
doc_15381 |
Return a filename based on a hash of the string, fontsize, and dpi. | |
doc_15382 | Return the remainder from dividing self by other. This differs from self % other in that the sign of the remainder is chosen so as to minimize its absolute value. More precisely, the return value is self - n * other where n is the integer nearest to the exact value of self / other, and if two integers are equally near ... | |
doc_15383 |
Return the current hatching pattern. | |
doc_15384 |
Plot contour lines. Call signature: contour([X, Y,] Z, [levels], **kwargs)
contour and contourf draw contour lines and filled contours, respectively. Except as noted, function signatures and return values are the same for both versions. Parameters
X, Yarray-like, optional
The coordinates of the values in Z. X ... | |
doc_15385 |
Bases: matplotlib.ticker.Locator No ticks tick_values(vmin, vmax)[source]
Return the locations of the ticks. Note Because the values are Null, vmin and vmax are not used in this method. | |
doc_15386 | Set the main type and subtype for the Content-Type header. type must be a string in the form maintype/subtype, otherwise a ValueError is raised. This method replaces the Content-Type header, keeping all the parameters in place. If requote is False, this leaves the existing header’s quoting as is, otherwise the paramete... | |
doc_15387 | Disable automatic garbage collection. | |
doc_15388 | This is an optional argument which defaults to a comma: ,. This value is used to split the submitted data. It allows you to chain SimpleArrayField for multidimensional data: >>> from django import forms
>>> from django.contrib.postgres.forms import SimpleArrayField
>>> class GridForm(forms.Form):
... places = Simp... | |
doc_15389 |
Create a callable to select columns to be used with ColumnTransformer. make_column_selector can select columns based on datatype or the columns name with a regex. When using multiple selection criteria, all criteria must match for a column to be selected. Parameters
patternstr, default=None
Name of columns cont... | |
doc_15390 | See torch.sub(). | |
doc_15391 | Asserts that the JSON fragments raw and expected_data are not equal. See assertJSONEqual() for further details. Output in case of error can be customized with the msg argument. | |
doc_15392 |
Computes the paired cosine distances between X and Y. Read more in the User Guide. Parameters
Xarray-like of shape (n_samples, n_features)
Yarray-like of shape (n_samples, n_features)
Returns
distancesndarray of shape (n_samples,)
Notes The cosine distance is equivalent to the half the squared euclide... | |
doc_15393 |
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_15394 |
Return the array data as a string containing the raw bytes in the array. The array is filled with a fill value before the string conversion. New in version 1.9.0. Parameters
fill_valuescalar, optional
Value used to fill in the masked values. Default is None, in which case MaskedArray.fill_value is used.
ord... | |
doc_15395 | Return True if all characters in the string are decimal characters and there is at least one character, False otherwise. Decimal characters are those that can be used to form numbers in base 10, e.g. U+0660, ARABIC-INDIC DIGIT ZERO. Formally a decimal character is a character in the Unicode General Category “Nd”. | |
doc_15396 | See Migration guide for more details. tf.compat.v1.train.JobDef.TasksEntry
Attributes
key int32 key
value string value | |
doc_15397 | Determine if the object requires a recursive representation. | |
doc_15398 | sklearn.model_selection.validation_curve(estimator, X, y, *, param_name, param_range, groups=None, cv=None, scoring=None, n_jobs=None, pre_dispatch='all', verbose=0, error_score=nan, fit_params=None) [source]
Validation curve. Determine training and test scores for varying parameter values. Compute scores for an esti... | |
doc_15399 | class argparse.RawTextHelpFormatter
class argparse.ArgumentDefaultsHelpFormatter
class argparse.MetavarTypeHelpFormatter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.