_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_19400 | sklearn.metrics.plot_det_curve(estimator, X, y, *, sample_weight=None, response_method='auto', name=None, ax=None, pos_label=None, **kwargs) [source]
Plot detection error tradeoff (DET) curve. Extra keyword arguments will be passed to matplotlib’s plot. Read more in the User Guide. New in version 0.24. Parameters ... | |
doc_19401 |
Select image on display using index into image collection. | |
doc_19402 |
Transform labels to normalized encoding. Parameters
yarray-like of shape (n_samples,)
Target values. Returns
yarray-like of shape (n_samples,) | |
doc_19403 |
Set the x-axis scale. Parameters
value{"linear", "log", "symlog", "logit", ...} or ScaleBase
The axis scale type to apply. **kwargs
Different keyword arguments are accepted, depending on the scale. See the respective class keyword arguments: matplotlib.scale.LinearScale matplotlib.scale.LogScale matplotlib.s... | |
doc_19404 |
Set 3D segments. | |
doc_19405 | If your site uses Django’s authentication system, the logout() method can be used to simulate the effect of a user logging out of your site. After you call this method, the test client will have all the cookies and session data cleared to defaults. Subsequent requests will appear to come from an AnonymousUser. | |
doc_19406 |
Attributes
accelerator_exec_micros int64 accelerator_exec_micros
children repeated GraphNodeProto children
cpu_exec_micros int64 cpu_exec_micros
devices repeated string devices
exec_micros int64 exec_micros
float_ops int64 float_ops
input_shapes repeated InputShapesEntry inp... | |
doc_19407 | An optional small integer that allows overriding the alignment of structure fields in the instance. _pack_ must already be defined when _fields_ is assigned, otherwise it will have no effect. | |
doc_19408 | See Migration guide for more details. tf.compat.v1.raw_ops.IsNan
tf.raw_ops.IsNan(
x, name=None
)
Example: x = tf.constant([5.0, np.nan, 6.8, np.nan, np.inf])
tf.math.is_nan(x) ==> [False, True, False, True, False]
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. ... | |
doc_19409 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_19410 | tf.nn.softplus Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.softplus, tf.compat.v1.nn.softplus
tf.math.softplus(
features, name=None
)
Args
features A Tensor. Must be one of the following types: half, bfloat16, float32, float64.
name A name for the operation... | |
doc_19411 | Returns True if the display module has been initialized get_init() -> bool Returns True if the pygame.display module is currently initialized. | |
doc_19412 | Derived from the standard exception Exception, this is the base class for all exceptions raised by the nntplib module. Instances of this class have the following attribute:
response
The response of the server if available, as a str object. | |
doc_19413 |
Alias for get_linestyle. | |
doc_19414 |
Return a match score between weight1 and weight2. The result is 0.0 if both weight1 and weight 2 are given as strings and have the same value. Otherwise, the result is the absolute value of the difference between the CSS numeric values of weight1 and weight2, normalized between 0.05 and 1.0. | |
doc_19415 | Animation A base class for Animations.
FuncAnimation Makes an animation by repeatedly calling a function func.
ArtistAnimation Animation using a fixed set of Artist objects. In both cases it is critical to keep a reference to the instance object. The animation is advanced by a timer (typically from the host GUI f... | |
doc_19416 | Return the output character set. This is the output_charset attribute if that is not None, otherwise it is input_charset. | |
doc_19417 |
Returns whether the kernel is stationary. | |
doc_19418 | In-place version of logical_and() | |
doc_19419 | tf.compat.v1.keras.layers.experimental.preprocessing.CategoryEncoding(
max_tokens=None, output_mode=BINARY, sparse=False, **kwargs
)
This layer provides options for condensing input data into denser representations. It accepts either integer values or strings as inputs, allows users to map those inputs into a cont... | |
doc_19420 | Rounds to an integer. | |
doc_19421 |
Compute valid cross-correlation of padded_array and kernel. This function is fast when kernel is large with many zeros. See scipy.ndimage.correlate for a description of cross-correlation. Parameters
imagendarray, dtype float, shape (M, N,[ …,] P)
The input array. If mode is ‘valid’, this array should already be... | |
doc_19422 | Like formatdate, but the input is a datetime instance. If it is a naive datetime, it is assumed to be “UTC with no information about the source timezone”, and the conventional -0000 is used for the timezone. If it is an aware datetime, then the numeric timezone offset is used. If it is an aware timezone with offset zer... | |
doc_19423 | Asserts that the template with the given name was not used in rendering the response. You can use this as a context manager in the same way as assertTemplateUsed(). | |
doc_19424 | See Migration guide for more details. tf.compat.v1.signal.inverse_stft
tf.signal.inverse_stft(
stfts, frame_length, frame_step, fft_length=None,
window_fn=tf.signal.hann_window, name=None
)
To reconstruct an original waveform, a complementary window function should be used with inverse_stft. Such a window fu... | |
doc_19425 | tf.image.draw_bounding_boxes(
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 boxes are encoded as [y_min, x_min, y_max, x_max]. The bounding box coordinates are f... | |
doc_19426 |
Remove objects smaller than the specified size. Expects ar to be an array with labeled objects, and removes objects smaller than min_size. If ar is bool, the image is first labeled. This leads to potentially different behavior for bool and 0-and-1 arrays. Parameters
arndarray (arbitrary shape, int or bool type)
... | |
doc_19427 |
The categories of this categorical. Setting assigns new values to each category (effectively a rename of each individual category). The assigned value has to be a list-like object. All items must be unique and the number of items in the new categories must be the same as the number of items in the old categories. Ass... | |
doc_19428 |
Decode the input into a string of unicode symbols. The decoding strategy depends on the vectorizer parameters. Parameters
docstr
The string to decode. Returns
doc: str
A string of unicode symbols. | |
doc_19429 | This class serves files from the current directory and below, directly mapping the directory structure to HTTP requests. A lot of the work, such as parsing the request, is done by the base class BaseHTTPRequestHandler. This class implements the do_GET() and do_HEAD() functions. The following are defined as class-level ... | |
doc_19430 | Return the default timeout in seconds (float) for new socket objects. A value of None indicates that new socket objects have no timeout. When the socket module is first imported, the default is None. | |
doc_19431 |
Estimate the covariance matrix. Except for the handling of missing data this function does the same as numpy.cov. For more details and examples, see numpy.cov. By default, masked values are recognized as such. If x and y have the same shape, a common mask is allocated: if x[i,j] is masked, then y[i,j] will also be ma... | |
doc_19432 |
Return probability estimates for the test vector X. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
Carray-like of shape (n_samples, n_classes)
Returns the probability of the samples for each class in the model. The columns correspond to the classes in sorted order, as they appear in the a... | |
doc_19433 | Return None, or the sequence of allowed domains (as a tuple). | |
doc_19434 |
Calculate the Euler characteristic in binary image. For 2D objects, the Euler number is the number of objects minus the number of holes. For 3D objects, the Euler number is obtained as the number of objects plus the number of holes, minus the number of tunnels, or loops. Parameters
image: (N, M) ndarray or (N, M, ... | |
doc_19435 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesMakeQuantileSummaries
tf.raw_ops.BoostedTreesMakeQuantileSummaries(
float_values, example_weights, epsilon, name=None
)
An op that takes a list of tensors (one tensor per feature) and outputs the quantile summaries for each tensor.
Args
... | |
doc_19436 | In-place version of hardtanh(). | |
doc_19437 | See Migration guide for more details. tf.compat.v1.raw_ops.DataServiceDataset
tf.raw_ops.DataServiceDataset(
dataset_id, processing_mode, address, protocol, job_name,
max_outstanding_requests, iteration_counter, output_types, output_shapes,
task_refresh_interval_hint_ms=-1, name=None
)
Args
datase... | |
doc_19438 |
Restore the saved region. If bbox (instance of BboxBase, or its extents) is given, only the region specified by the bbox will be restored. xy (a pair of floats) optionally specifies the new position (the LLC of the original region, not the LLC of the bbox) where the region will be restored. >>> region = renderer.copy... | |
doc_19439 |
Fit the estimators. 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.
yarray-like of shape (n_samples,)
Target values.
sample_weightarray-like of shape (n_samples,), default=None
S... | |
doc_19440 | Add all table content from module to database. module must contain an attribute tables listing all tables for which content should be added, and one attribute per table that has the actual content. This is typically used to install the sequence tables. | |
doc_19441 | clip the area where to draw. Just pass None (default) to reset the clip get_clip() -> Rect | |
doc_19442 |
Return the path of this patch. | |
doc_19443 |
Return self<<=value. | |
doc_19444 | Returns True if filename is a valid ZIP file based on its magic number, otherwise returns False. filename may be a file or file-like object too. Changed in version 3.1: Support for file and file-like objects. | |
doc_19445 | tf.experimental.numpy.matmul(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.matmul. | |
doc_19446 |
Invert the z-axis. | |
doc_19447 |
Called when this tool gets used. This method is called by ToolManager.trigger_tool. Parameters
eventEvent
The canvas event that caused this tool to be called.
senderobject
Object that requested the tool to be triggered.
dataobject
Extra data. | |
doc_19448 |
Check whether all characters in each string are alphabetic. This is equivalent to running the Python string method str.isalpha() for each element of the Series/Index. If a string has zero characters, False is returned for that check. Returns
Series or Index of bool
Series or Index of boolean values with the same ... | |
doc_19449 |
Change shape and size of array in-place. Parameters
new_shapetuple of ints, or n ints
Shape of resized array.
refcheckbool, optional
If False, reference count will not be checked. Default is True. Returns
None
Raises
ValueError
If a does not own its own data or references or views to it exist, and... | |
doc_19450 |
Return a numpy timedelta64 array scalar view. Provides access to the array scalar view (i.e. a combination of the value and the units) associated with the numpy.timedelta64().view(), including a 64-bit integer representation of the timedelta in nanoseconds (Python int compatible). Returns
numpy timedelta64 array s... | |
doc_19451 |
Bases: matplotlib.backend_bases.FigureCanvasBase The canvas the figure renders into. Calls the draw and print fig methods, creates the renderers, etc. Note: GUI templates will want to connect events for button presses, mouse movements and key presses to functions that call the base class methods button_press_event, b... | |
doc_19452 | See Migration guide for more details. tf.compat.v1.config.experimental.enable_mlir_bridge
tf.config.experimental.enable_mlir_bridge()
DO NOT USE, DEV AND TESTING ONLY AT THE MOMENT.
Note: MLIR-Based TensorFlow Compiler is under active development and has missing features, please refrain from using. This API exists ... | |
doc_19453 | Returns all active users who have the permission perm either in the form of "<app label>.<permission codename>" or a Permission instance. Returns an empty queryset if no users who have the perm found. If is_active is True (default), returns only active users, or if False, returns only inactive users. Use None to return... | |
doc_19454 | Applies callable for each element in self tensor and the given tensor and stores the results in self tensor. self tensor and the given tensor must be broadcastable. The callable should have the signature: def callable(a, b) -> number | |
doc_19455 | Returns the window object associated with the panel. | |
doc_19456 |
Fill the area between two horizontal curves. The curves are defined by the points (x, y1) and (x, y2). This creates one or multiple polygons describing the filled area. You may exclude some horizontal sections from filling using where. By default, the edges connect the given points directly. Use step if the filling s... | |
doc_19457 | Auxiliary method for getting a filename in a canonical form, that is, as a case-normalized (on case-insensitive filesystems) absolute path, stripped of surrounding angle brackets. | |
doc_19458 |
Set the offset. Parameters
xy(float, float) or callable
The (x, y) coordinates of the offset in display units. These can either be given explicitly as a tuple (x, y), or by providing a function that converts the extent into the offset. This function must have the signature: def offset(width, height, xdescent, y... | |
doc_19459 |
Generate and install a npy-pkg config file from a template. The config file generated from template is installed in the given install directory, using subst_dict for variable substitution. Parameters
templatestr
The path of the template, relatively to the current package path.
install_dirstr
Where to instal... | |
doc_19460 | Converts the class into an actual view function that can be used with the routing system. Internally this generates a function on the fly which will instantiate the View on each request and call the dispatch_request() method on it. The arguments passed to as_view() are forwarded to the constructor of the class. Parame... | |
doc_19461 | Returns a view of the original tensor with its dimensions permuted. Parameters
*dims (int...) – The desired ordering of dimensions Example >>> x = torch.randn(2, 3, 5)
>>> x.size()
torch.Size([2, 3, 5])
>>> x.permute(2, 0, 1).size()
torch.Size([5, 2, 3]) | |
doc_19462 | '__main__': block or moved to a separate file. Just make sure it’s not called because this will always start a local WSGI server which we do not want if we deploy that application to FastCGI. Creating a .fcgi file First you need to create the FastCGI server file. Let’s call it yourapplication.fcgi: #!/usr/bin/python
f... | |
doc_19463 |
Set the line width of the Figure rectangle. Parameters
linewidthnumber | |
doc_19464 |
Return the snap setting. See set_snap for details. | |
doc_19465 | A subclass of ImproperConnectionState. | |
doc_19466 |
Return threshold value based on the triangle algorithm. Parameters
image(N, M[, …, P]) ndarray
Grayscale input image.
nbinsint, optional
Number of bins used to calculate histogram. This value is ignored for integer arrays. Returns
thresholdfloat
Upper threshold value. All pixels with an intensity hi... | |
doc_19467 |
This is a sequential container which calls the Conv2d and ReLU modules. During quantization this will be replaced with the corresponding fused module. | |
doc_19468 |
tick_loc, tick_angle, tick_label | |
doc_19469 |
Return a copy of an array sorted along the first axis. Parameters
aarray_like
Array to be sorted. Returns
sorted_arrayndarray
Array of the same type and shape as a. See also sort
Notes np.msort(a) is equivalent to np.sort(a, axis=0). | |
doc_19470 | Note: tf.raw_ops provides direct/low level access to all TensorFlow ops. See the RFC for details. Unless you are library writer, you likely do not need to use these ops directly.
Op Name Has Gradient Abort ❌ Abs ✔️ AccumulateNV2 ✔️ AccumulatorApplyGradient ❌ AccumulatorNumAccumulated ❌ AccumulatorSetG... | |
doc_19471 | Makes a POST request on the provided path and returns a Response object, which is documented below. The key-value pairs in the data dictionary are used to submit POST data. For example: >>> c = Client()
>>> c.post('/login/', {'name': 'fred', 'passwd': 'secret'})
…will result in the evaluation of a POST request to this... | |
doc_19472 | Return an open file object connected to the file descriptor fd. This is an alias of the open() built-in function and accepts the same arguments. The only difference is that the first argument of fdopen() must always be an integer. | |
doc_19473 | tf.compat.v1.floor_div(
x, y, name=None
)
Note: floor_div supports broadcasting. More about broadcasting here
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, uint8, int8, uint16, int16, int32, int64, complex64, complex128.
y A Tensor. Must have the same type ... | |
doc_19474 | A possible value for the how parameter to pthread_sigmask() indicating that signals are to be blocked. New in version 3.3. | |
doc_19475 | sklearn.tree.export_graphviz(decision_tree, out_file=None, *, max_depth=None, feature_names=None, class_names=None, label='all', filled=False, leaves_parallel=False, impurity=True, node_ids=False, proportion=False, rotate=False, rounded=False, special_characters=False, precision=3) [source]
Export a decision tree in ... | |
doc_19476 |
Determine if two CategoricalIndex objects contain the same elements. Returns
bool
If two CategoricalIndex objects have equal elements True, otherwise False. | |
doc_19477 |
Imports a dotted module path and returns the attribute/class designated by the last name in the path. Raises ImportError if the import failed. For example: from django.utils.module_loading import import_string
ValidationError = import_string('django.core.exceptions.ValidationError')
is equivalent to: from django.cor... | |
doc_19478 | Make the path absolute, resolving any symlinks. A new path object is returned: >>> p = Path()
>>> p
PosixPath('.')
>>> p.resolve()
PosixPath('/home/antoine/pathlib')
“..” components are also eliminated (this is the only method to do so): >>> p = Path('docs/../setup.py')
>>> p.resolve()
PosixPath('/home/antoine/pathlib... | |
doc_19479 |
Generate indices to split data into training and test set. Parameters
Xarray-like of shape (n_samples, n_features)
Training data, where n_samples is the number of samples and n_features is the number of features. Note that providing y is sufficient to generate the splits and hence np.zeros(n_samples) may be use... | |
doc_19480 | from myapp.serializers import PurchaseSerializer
from rest_framework import generics
class PurchaseList(generics.ListAPIView):
serializer_class = PurchaseSerializer
def get_queryset(self):
"""
This view should return a list of all the purchases
for the currently authenticated user.
... | |
doc_19481 |
Return a new Timestamp ceiled to this resolution. Parameters
freq:str
Frequency string indicating the ceiling resolution.
ambiguous:bool or {‘raise’, ‘NaT’}, default ‘raise’
The behavior is as follows: bool contains flags to determine if time is dst or not (note that this flag is only applicable for ambigu... | |
doc_19482 |
Create a pseudocolor plot with a non-regular rectangular grid. Call signature: ax.pcolorfast([X, Y], C, /, **kwargs)
This method is similar to pcolor and pcolormesh. It's designed to provide the fastest pcolor-type plotting with the Agg backend. To achieve this, it uses different algorithms internally depending on t... | |
doc_19483 |
Check if types match. New in version 1.7.0. Parameters
otherobject
Class instance. Returns
boolboolean
True if other is same class as self | |
doc_19484 | The request was not successfully authenticated, and the highest priority authentication class does not use WWW-Authenticate headers. — An HTTP 403 Forbidden response will be returned.
The request was not successfully authenticated, and the highest priority authentication class does use WWW-Authenticate headers. — An ... | |
doc_19485 |
Register pandas formatters and converters with matplotlib. This function modifies the global matplotlib.units.registry dictionary. pandas adds custom converters for pd.Timestamp pd.Period np.datetime64 datetime.datetime datetime.date datetime.time See also deregister_matplotlib_converters
Remove pandas formatter... | |
doc_19486 |
Orthogonal Matching Pursuit (OMP). Solves n_targets Orthogonal Matching Pursuit problems. An instance of the problem has the form: When parametrized by the number of non-zero coefficients using n_nonzero_coefs: argmin ||y - Xgamma||^2 subject to ||gamma||_0 <= n_{nonzero coefs} When parametrized by error using the pa... | |
doc_19487 | The part of the tagName following the colon if there is one, else the entire tagName. The value is a string. | |
doc_19488 |
Set the drawstyle of the plot. The drawstyle determines how the points are connected. Parameters
drawstyle{'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default'
For 'default', the points are connected with straight lines. The steps variants connect the points with step-like lines, i.e.... | |
doc_19489 | Like find(), but raise ValueError when the substring is not found. | |
doc_19490 | Return the digest of the data passed to the update() method so far. This is a bytes object of size length which may contain bytes in the whole range from 0 to 255. | |
doc_19491 |
Convert series to series of this class. The series is expected to be an instance of some polynomial series of one of the types supported by by the numpy.polynomial module, but could be some other class that supports the convert method. New in version 1.7.0. Parameters
seriesseries
The series instance to be co... | |
doc_19492 |
Bases: matplotlib.patches.ConnectionStyle._Base Creates a piecewise continuous quadratic Bezier path between two points. The path can have two passing-through points, a point placed at the distance of armA and angle of angleA from point A, another point with respect to point B. The edges are rounded with rad.
angle... | |
doc_19493 | See Migration guide for more details. tf.compat.v1.raw_ops.OptimizeDataset
tf.raw_ops.OptimizeDataset(
input_dataset, optimizations, output_types, output_shapes,
optimization_configs=[], name=None
)
Creates a dataset by applying optimizations to input_dataset.
Args
input_dataset A Tensor of type var... | |
doc_19494 | tf.transpose(
a, perm=None, conjugate=False, name='transpose'
)
Permutes the dimensions according to the value of perm. The returned tensor's dimension i will correspond to the input dimension perm[i]. If perm is not given, it is set to (n-1...0), where n is the rank of the input tensor. Hence by default, this ope... | |
doc_19495 | alias of flask.json.JSONEncoder | |
doc_19496 | tf.compat.v1.layers.Dense(
units, activation=None, use_bias=True, kernel_initializer=None,
bias_initializer=tf.zeros_initializer(), kernel_regularizer=None,
bias_regularizer=None, activity_regularizer=None, kernel_constraint=None,
bias_constraint=None, trainable=True, name=None, **kwargs
)
This layer i... | |
doc_19497 | See Migration guide for more details. tf.compat.v1.raw_ops.Transpose
tf.raw_ops.Transpose(
x, perm, name=None
)
The output y has the same rank as x. The shapes of x and y satisfy: y.shape[i] == x.shape[perm[i]] for i in [0, 1, ..., rank(x) - 1]
Args
x A Tensor.
perm A Tensor. Must be one of the fo... | |
doc_19498 |
Total bytes consumed by the elements of the array. Notes Does not include memory consumed by non-element attributes of the array object. Examples >>> x = np.zeros((3,5,2), dtype=np.complex128)
>>> x.nbytes
480
>>> np.prod(x.shape) * x.itemsize
480 | |
doc_19499 |
Alias for get_linewidth. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.