_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_21500
Return whether y is in the open (y0, y1) interval.
doc_21501
Change or query the current global domain. If domain is None, then the current global domain is returned, otherwise the global domain is set to domain, which is returned.
doc_21502
Get parameters for this estimator. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns paramsdict Parameter names mapped to their values.
doc_21503
Bases: object A mixin class to map scalar data to RGBA. The ScalarMappable applies data normalization before returning RGBA colors from the given colormap. Parameters normmatplotlib.colors.Normalize (or subclass thereof) The normalizing object which scales data, typically into the interval [0, 1]. If None, norm...
doc_21504
See Migration guide for more details. tf.compat.v1.raw_ops.FractionalMaxPool tf.raw_ops.FractionalMaxPool( value, pooling_ratio, pseudo_random=False, overlapping=False, deterministic=False, seed=0, seed2=0, name=None ) Fractional max pooling is slightly different than regular max pooling. In regular max pool...
doc_21505
The get_list_filter method is given the HttpRequest and is expected to return the same kind of sequence type as for the list_filter attribute.
doc_21506
See Migration guide for more details. tf.compat.v1.tensor_scatter_nd_min tf.tensor_scatter_nd_min( tensor, indices, updates, name=None ) Args tensor A Tensor. Tensor to update. indices A Tensor. Must be one of the following types: int32, int64. Index tensor. updates A Tensor. Must have the s...
doc_21507
The strftime() format to use when parsing the month. By default, this is '%b'.
doc_21508
Makes all future work submitted to the given stream wait for this event. Use torch.cuda.current_stream() if no stream is specified.
doc_21509
Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
doc_21510
Optionally a function that is passed the script info to create the instance of the application.
doc_21511
See Migration guide for more details. tf.compat.v1.broadcast_dynamic_shape tf.broadcast_dynamic_shape( shape_x, shape_y ) When shape_x and shape_y are Tensors representing shapes (i.e. the result of calling tf.shape on another Tensor) this computes a Tensor which is the shape of the result of a broadcasting op a...
doc_21512
Return the set of CPUs the process with PID pid (or the current process if zero) is restricted to.
doc_21513
Create and return an arc Spine.
doc_21514
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 scalar or None angle unknown animated bool antialiased or aa bool or None bounds (left, bottom, width, h...
doc_21515
Autoscale the scalar limits on the norm instance using the current array
doc_21516
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
doc_21517
tf.compat.v1.gather( params, indices, validate_indices=None, name=None, axis=None, batch_dims=0 ) Gather slices from params axis axis according to indices. indices must be an integer tensor of any dimension (usually 0-D or 1-D). For 0-D (scalar) indices: $$\begin{align*} output[p_0, ..., p_{axis-1}, && &&& p_{axi...
doc_21518
place an event on the queue post(Event) -> None This will post your own event objects onto the event queue. You can post any event type you want, but some care must be taken. For example, if you post a MOUSEBUTTONDOWN event to the queue, it is likely any code receiving the event will expect the standard MOUSEBUTTONDO...
doc_21519
Use an index array to construct a new array from a set of choices. Refer to numpy.choose for full documentation. See also numpy.choose equivalent function
doc_21520
Get parameters for this estimator. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns paramsdict Parameter names mapped to their values.
doc_21521
Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate.
doc_21522
The ID of the integrity check used by the input stream. This may be CHECK_UNKNOWN until enough of the input has been decoded to determine what integrity check it uses.
doc_21523
Base class for warnings related to Unicode.
doc_21524
Wait for the worker processes to exit. One must call close() or terminate() before using join().
doc_21525
Set the default limits for the axis data and view interval if they have not been not mutated yet.
doc_21526
tf.compat.v1.keras.initializers.lecun_normal( seed=None ) With distribution="truncated_normal" or "untruncated_normal", samples are drawn from a truncated/untruncated normal distribution with a mean of zero and a standard deviation (after truncation, if used) stddev = sqrt(scale / n) where n is: number of input u...
doc_21527
Computes the condition number of a matrix input, or of each matrix in a batched input, using the matrix norm defined by p. For norms {‘fro’, ‘nuc’, inf, -inf, 1, -1} this is defined as the matrix norm of input times the matrix norm of the inverse of input computed using torch.linalg.norm(). While for norms {None, 2, -2...
doc_21528
Draw a matrix of scatter plots. Parameters frame:DataFrame alpha:float, optional Amount of transparency applied. figsize:(float,float), optional A tuple (width, height) in inches. ax:Matplotlib axis object, optional grid:bool, optional Setting this to True will show the grid. diagonal:{‘hist’, ‘kd...
doc_21529
Set the agg filter. Parameters filter_funccallable A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array.
doc_21530
See Migration guide for more details. tf.compat.v1.raw_ops.Dawsn tf.raw_ops.Dawsn( x, name=None ) Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as x.
doc_21531
See Migration guide for more details. tf.compat.v1.raw_ops.Minimum tf.raw_ops.Minimum( x, y, name=None ) Both inputs are number-type tensors (except complex). minimum expects that both tensors have the same dtype. Examples: x = tf.constant([0., 0., 0., 0.]) y = tf.constant([-5., -2., 0., 3.]) tf.math.minimum(x,...
doc_21532
Return a tuple containing info about (platform, compiler, extra_args), required by the abstract class ‘_CCompiler’ for discovering the platform environment. This is also used as a cache factor in order to detect any changes happening from outside.
doc_21533
tf.experimental.numpy.allclose( a, b, rtol=1e-05, atol=1e-08, equal_nan=False ) See the NumPy documentation for numpy.allclose.
doc_21534
input_type: 'text' template_name: 'django/forms/widgets/time.html' Renders as: <input type="text" ...> Takes same arguments as TextInput, with one more optional argument: format The format in which this field’s initial value will be displayed. If no format argument is provided, the default format is the fi...
doc_21535
Get parameters for this estimator. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns paramsdict Parameter names mapped to their values.
doc_21536
Bases: matplotlib.axis.XAxis An Axis class for the 3D plots. Parameters axesmatplotlib.axes.Axes The Axes to which the created Axis belongs. pickradiusfloat The acceptance radius for containment tests. See also Axis.contains. propertyd_interval draw(renderer)[source] Draw the Artist (and its chi...
doc_21537
Return the number of elements in the underlying data.
doc_21538
Computes the 2-dimensional discrete Fourier transform of real input. Equivalent to rfftn() but FFTs only the last two dimensions by default. The FFT of a real signal is Hermitian-symmetric, X[i, j] = conj(X[-i, -j]), so the full fft2() output contains redundant information. rfft2() instead omits the negative frequencie...
doc_21539
This is the type of lock objects.
doc_21540
Computes the dot product of two 1D tensors. Note Unlike NumPy’s dot, torch.dot intentionally only supports computing the dot product of two 1D tensors with the same number of elements. Parameters input (Tensor) – first tensor in the dot product, must be 1D. other (Tensor) – second tensor in the dot product, must...
doc_21541
Compute open, high, low and close values of a group, excluding missing values. For multiple groupings, the result index will be a MultiIndex Returns DataFrame Open, high, low and close values within each group. See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a functi...
doc_21542
Iter the response encoded with the encoding of the response. If the response object is invoked as WSGI application the return value of this method is used as application iterator unless direct_passthrough was activated. Return type Iterator[bytes]
doc_21543
Draw a collection of paths selecting drawing properties from the lists facecolors, edgecolors, linewidths, linestyles and antialiaseds. offsets is a list of offsets to apply to each of the paths. The offsets in offsets are first transformed by offsetTrans before being applied. offset_position is unused now, but the a...
doc_21544
Represents the C ssize_t datatype. New in version 3.2.
doc_21545
Opens a resource from the application’s instance folder (instance_path). Otherwise works like open_resource(). Instance resources can also be opened for writing. Parameters resource (str) – the name of the resource. To access resources within subfolders use forward slashes as separator. mode (str) – resource file ...
doc_21546
Gray-level “microaneurysms” image. Detail from an image of the retina (green channel). The image is a crop of image 07_dr.JPG from the High-Resolution Fundus (HRF) Image Database: https://www5.cs.fau.de/research/data/fundus-images/ Returns microaneurysms(102, 102) uint8 ndarray Retina image with lesions. No...
doc_21547
tf.compat.v1.losses.mean_squared_error( labels, predictions, weights=1.0, scope=None, loss_collection=tf.GraphKeys.LOSSES, reduction=Reduction.SUM_BY_NONZERO_WEIGHTS ) weights acts as a coefficient for the loss. If a scalar is provided, then the loss is simply scaled by the given value. If weights is a tensor ...
doc_21548
See Migration guide for more details. tf.compat.v1.raw_ops.BarrierIncompleteSize tf.raw_ops.BarrierIncompleteSize( handle, name=None ) Args handle A Tensor of type mutable string. The handle to a barrier. name A name for the operation (optional). Returns A Tensor of type int32.
doc_21549
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_21550
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred) ** 2).sum() and \(v\) is the total sum of squares ((y_true - y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c...
doc_21551
tf.strings.length( input, unit='BYTE', name=None ) Computes the length of each string given in the input tensor. strings = tf.constant(['Hello','TensorFlow', '\U0001F642']) tf.strings.length(strings).numpy() # default counts bytes array([ 5, 10, 4], dtype=int32) tf.strings.length(strings, unit="UTF8_CHAR").numpy(...
doc_21552
alias of werkzeug.wrappers.request.Request
doc_21553
Make a MultiIndex from the cartesian product of multiple iterables. Parameters iterables:list / sequence of iterables Each iterable has unique labels for each level of the index. sortorder:int or None Level of sortedness (must be lexicographically sorted by that level). names:list / sequence of str, optio...
doc_21554
Return the population variance of data, a non-empty sequence or iterable of real-valued numbers. Variance, or second moment about the mean, is a measure of the variability (spread or dispersion) of data. A large variance indicates that the data is spread out; a small variance indicates it is clustered closely around th...
doc_21555
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ...
doc_21556
Base class for warnings about deprecated features when those warnings are intended for end users of applications that are written in Python.
doc_21557
Generate circle perimeter coordinates. Parameters r, cint Centre coordinate of circle. radiusint Radius of circle. method{‘bresenham’, ‘andres’}, optional bresenham : Bresenham method (default) andres : Andres method shapetuple, optional Image shape which is used to determine the maximum extent of o...
doc_21558
operator.__iconcat__(a, b) a = iconcat(a, b) is equivalent to a += b for a and b sequences.
doc_21559
Computes the inverse of rfft2. Parameters aarray_like The input array ssequence of ints, optional Shape of the real output to the inverse FFT. axessequence of ints, optional The axes over which to compute the inverse fft. Default is the last two axes. norm{“backward”, “ortho”, “forward”}, optional ...
doc_21560
Filename of the image. str: Filename of the image to use in a Toolbar. If None, the name is used as a label in the toolbar button.
doc_21561
Create a new Joystick object. Joystick(id) -> Joystick Create a new joystick to access a physical device. The id argument must be a value from 0 to pygame.joystick.get_count() - 1. Joysticks are initialised on creation and are shut down when deallocated. Once the device is initialized the pygame event queue will star...
doc_21562
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_21563
Return a list of all variables’ values in the context object.
doc_21564
Return the line number where the current event begins.
doc_21565
alias of numpy.clongdouble
doc_21566
See Migration guide for more details. tf.compat.v1.raw_ops.AccumulatorApplyGradient tf.raw_ops.AccumulatorApplyGradient( handle, local_step, gradient, name=None ) Does not add if local_step is lesser than the accumulator's global_step. Args handle A Tensor of type mutable string. The handle to a accumul...
doc_21567
Load a PIL image and return it as a numpy int array. Returns numpy.array The array shape depends on the image type: (M, N) for grayscale images. (M, N, 3) for RGB images. (M, N, 4) for RGBA images.
doc_21568
Moves the dimension(s) of input at the position(s) in source to the position(s) in destination. Other dimensions of input that are not explicitly moved remain in their original order and appear at the positions not specified in destination. Parameters input (Tensor) – the input tensor. source (int or tuple of pyth...
doc_21569
Return whether the artist is to be rasterized.
doc_21570
See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingMDLAdagradLightParameters tf.raw_ops.RetrieveTPUEmbeddingMDLAdagradLightParameters( num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that retrieves optimization parameters from embedding to host memor...
doc_21571
tf.compat.v1.nn.conv2d_transpose( value=None, filter=None, output_shape=None, strides=None, padding='SAME', data_format='NHWC', name=None, input=None, filters=None, dilations=None ) This operation is sometimes called "deconvolution" after (Zeiler et al., 2010), but is really the transpose (gradient) of con...
doc_21572
This defaults to BaseInlineFormSet. Using your own formset can give you many possibilities of customization. Inlines are built around model formsets.
doc_21573
Calculate total Crofton perimeter of all objects in binary image. Parameters image(N, M) ndarray 2D image. If image is not binary, all values strictly greater than zero are considered as the object. directions2 or 4, optional Number of directions used to approximate the Crofton perimeter. By default, 4 is u...
doc_21574
Bases: matplotlib.patches.Patch A fancy box around a rectangle with lower left at xy = (x, y) with specified width and height. FancyBboxPatch is similar to Rectangle, but it draws a fancy box around the rectangle. The transformation of the rectangle box to the fancy box is delegated to the style classes defined in Bo...
doc_21575
Interpret the argument as though it had been typed in response to the prompt. This may be overridden, but should not normally need to be; see the precmd() and postcmd() methods for useful execution hooks. The return value is a flag indicating whether interpretation of commands by the interpreter should stop. If there i...
doc_21576
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_21577
turtle.done() Starts event loop - calling Tkinter’s mainloop function. Must be the last statement in a turtle graphics program. Must not be used if a script is run from within IDLE in -n mode (No subprocess) - for interactive use of turtle graphics. >>> screen.mainloop()
doc_21578
The DocTest object that was being run when the example failed.
doc_21579
Example: request.session['fav_color'] = 'blue'
doc_21580
Draw samples from a von Mises distribution. Samples are drawn from a von Mises distribution with specified mode (mu) and dispersion (kappa), on the interval [-pi, pi]. The von Mises distribution (also known as the circular normal distribution) is a continuous probability distribution on the unit circle. It may be tho...
doc_21581
Throws AssertionError if opname is found.
doc_21582
Establishes a connection to a predefined registry handle on another computer, and returns a handle object. computer_name is the name of the remote computer, of the form r"\\computername". If None, the local computer is used. key is the predefined handle to connect to. The return value is the handle of the opened key. I...
doc_21583
Predict confidence scores for samples. The confidence score for a sample is proportional to the signed distance of that sample to the hyperplane. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns array, shape=(n_samples,) if n_classes == 2 else (n_samples, n_classes) ...
doc_21584
Performs key view initialization prior to dispatch(). If overriding this method, you must call super().
doc_21585
See Migration guide for more details. tf.compat.v1.sysconfig.get_link_flags tf.sysconfig.get_link_flags() Returns The link flags.
doc_21586
tf.compat.v1.nn.quantized_avg_pool( input, min_input, max_input, ksize, strides, padding, name=None ) Args input A Tensor. Must be one of the following types: qint8, quint8, qint32, qint16, quint16. 4-D with shape [batch, height, width, channels]. min_input A Tensor of type float32. The float value ...
doc_21587
Call transform on the estimator with the best found parameters. Only available if the underlying estimator supports transform and refit=True. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_21588
Bases: object Parse the AFM file in file object fh. propertyfamily_name The font family name, e.g., 'Times'. get_angle()[source] Return the fontangle as float. get_bbox_char(c, isord=False)[source] get_capheight()[source] Return the cap height as float. get_familyname()[source] Return the fo...
doc_21589
See Migration guide for more details. tf.compat.v1.constant_initializer, tf.compat.v1.initializers.constant, tf.compat.v1.keras.initializers.constant tf.compat.v1.keras.initializers.Constant( value=0, dtype=tf.dtypes.float32, verify_shape=False ) The resulting tensor is populated with values of type dtype, as sp...
doc_21590
sklearn.metrics.f1_score(y_true, y_pred, *, labels=None, pos_label=1, average='binary', sample_weight=None, zero_division='warn') [source] Compute the F1 score, also known as balanced F-score or F-measure. The F1 score can be interpreted as a weighted average of the precision and recall, where an F1 score reaches its...
doc_21591
Subdivision of polygonal curves using B-Splines. Note that the resulting curve is always within the convex hull of the original polygon. Circular polygons stay closed after subdivision. Parameters coords(N, 2) array Coordinate array. degree{1, 2, 3, 4, 5, 6, 7}, optional Degree of B-Spline. Default is 2. ...
doc_21592
Majority filter assign to each pixel the most occuring value within its neighborhood. Parameters imagendarray Image array (uint8, uint16 array). selem2-D array (integer or float) The neighborhood expressed as a 2-D array of 1’s and 0’s. outndarray (integer or float), optional If None, a new array will b...
doc_21593
True if the address is reserved for link-local usage. See RFC 3927.
doc_21594
Get parameters for this estimator. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns paramsdict Parameter names mapped to their values.
doc_21595
Details for a bytecode operation opcode numeric code for operation, corresponding to the opcode values listed below and the bytecode values in the Opcode collections. opname human readable name for operation arg numeric argument to operation (if any), otherwise None argval resolved arg value (if k...
doc_21596
Autoscale the scalar limits on the norm instance using the current array
doc_21597
human readable name for operation
doc_21598
Flushes the event file to disk. Call this method to make sure that all pending events have been written to disk.
doc_21599
Fit Ridge classifier model. Parameters X{ndarray, sparse matrix} of shape (n_samples, n_features) Training data. yndarray of shape (n_samples,) Target values. sample_weightfloat or ndarray of shape (n_samples,), default=None Individual weights for each sample. If given a float, every sample will have th...