_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_28900
Swaps two columns of a CSC/CSR matrix in-place. Parameters Xsparse matrix of shape (n_samples, n_features) Matrix whose two columns are to be swapped. It should be of CSR or CSC format. mint Index of the column of X to be swapped. nint Index of the column of X to be swapped.
doc_28901
Predict class probabilities for X. The predicted class probabilities of an input sample are computed as the mean predicted class probabilities of the trees in the forest. The class probability of a single tree is the fraction of samples of the same class in a leaf. Parameters X{array-like, sparse matrix} of shape...
doc_28902
New in Django 4.0. The name of the template used when calling as_ul(). By default this is 'django/forms/errors/list/ul.html'. This template renders the errors in <li> tags with a wrapping <ul> with the CSS classes as defined by error_class.
doc_28903
Return an array whose values are limited to [min, max]. One of max or min must be given. Refer to numpy.clip for full documentation. See also numpy.clip equivalent function
doc_28904
Return a tuple of the shape of the underlying data.
doc_28905
See Migration guide for more details. tf.compat.v1.app.flags.register_validator tf.compat.v1.flags.register_validator( flag_name, checker, message='Flag validation failed', flag_values=_flagvalues.FLAGS ) The constraint is validated when flags are initially parsed, and after each change of the corresponding ...
doc_28906
Return a factor F such that rms(add(fragment, mul(reference, -F))) is minimal, i.e., return the factor with which you should multiply reference to make it match as well as possible to fragment. The fragments should both contain 2-byte samples. The time taken by this routine is proportional to len(fragment).
doc_28907
Exception raised when the locale passed to setlocale() is not recognized.
doc_28908
Return a list of Symbol instances for names in the table.
doc_28909
Shepp Logan Phantom. Returns phantom(400, 400) float64 image Image of the Shepp-Logan phantom in grayscale. References 1 L. A. Shepp and B. F. Logan, “The Fourier reconstruction of a head section,” in IEEE Transactions on Nuclear Science, vol. 21, no. 3, pp. 21-43, June 1974. DOI:10.1109/TNS.1974.649923...
doc_28910
Reverse the order of elements along axis 0 (up/down). For a 2-D array, this flips the entries in each column in the up/down direction. Rows are preserved, but appear in a different order than before. Parameters marray_like Input array. Returns outarray_like A view of m with the rows reversed. Since a vi...
doc_28911
Return the current size of the figure in inches. Returns ndarray The size (width, height) of the figure in inches. See also matplotlib.figure.Figure.set_size_inches matplotlib.figure.Figure.get_figwidth matplotlib.figure.Figure.get_figheight Notes The size in pixels can be obtained by multiplying with Fig...
doc_28912
See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingAdadeltaParameters tf.raw_ops.RetrieveTPUEmbeddingAdadeltaParameters( num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that retrieves optimization parameters from embedding to host memory. Must be pre...
doc_28913
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalScanDataset tf.raw_ops.ExperimentalScanDataset( input_dataset, initial_state, other_arguments, f, output_types, output_shapes, preserve_cardinality=False, name=None ) Args input_dataset A Tensor of type variant. initial_state...
doc_28914
Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and beginning offset bytes into the field. Parameters valobject Value to be placed in field. dtypedtype object Data-type of the field in which to place val. offsetint, optional The number of b...
doc_28915
Returns an IPC handle of this event. If not recorded yet, the event will use the current device.
doc_28916
See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_enum tf.compat.v1.flags.DEFINE_enum( name, default, enum_values, help, flag_values=_flagvalues.FLAGS, module_name=None, **args ) Instead of a string enum, prefer DEFINE_enum_class, which allows defining enums from an enum.Enum class. Ar...
doc_28917
Read the magic string to get the version of the file format. Parameters fpfilelike object Returns majorint minorint
doc_28918
The get_readonly_fields method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return a list or tuple of field names that will be displayed as read-only, as described above in the ModelAdmin.readonly_fields section.
doc_28919
Calculates log determinant of a square matrix or batches of square matrices. Note Result is -inf if input has zero log determinant, and is nan if input has negative determinant. Note Backward through logdet() internally uses SVD results when input is not invertible. In this case, double backward through logdet() wil...
doc_28920
Set the alpha value used for blending - not supported on all backends. Parameters alphaarray-like or scalar or None All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
doc_28921
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_28922
tf.initializers.TruncatedNormal, tf.initializers.truncated_normal, tf.keras.initializers.truncated_normal tf.keras.initializers.TruncatedNormal( mean=0.0, stddev=0.05, seed=None ) Also available via the shortcut function tf.keras.initializers.truncated_normal. The values generated are similar to values from a tf...
doc_28923
draw an elliptical arc arc(surface, color, rect, start_angle, stop_angle) -> Rect arc(surface, color, rect, start_angle, stop_angle, width=1) -> Rect Draws an elliptical arc on the given surface. The two angle arguments are given in radians and indicate the start and stop positions of the arc. The arc is drawn in a c...
doc_28924
Return new rrule with same attributes except for those attributes given new values by whichever keyword arguments are specified.
doc_28925
Copy properties from other to self.
doc_28926
Ordinary least squares Linear Regression. LinearRegression fits a linear model with coefficients w = (w1, …, wp) to minimize the residual sum of squares between the observed targets in the dataset, and the targets predicted by the linear approximation. Parameters fit_interceptbool, default=True Whether to calcu...
doc_28927
Shape of the i’th bicluster. Parameters iint The index of the cluster. Returns n_rowsint Number of rows in the bicluster. n_colsint Number of columns in the bicluster.
doc_28928
File mode: file type and file mode bits (permissions).
doc_28929
Outer product of input and vec2. If input is a vector of size nn and vec2 is a vector of size mm , then out must be a matrix of size (n×m)(n \times m) . Note This function does not broadcast. Parameters input (Tensor) – 1-D input vector vec2 (Tensor) – 1-D input vector Keyword Arguments out (Tensor, optional...
doc_28930
tf.compat.v1.metrics.mean_iou( labels, predictions, num_classes, weights=None, metrics_collections=None, updates_collections=None, name=None ) Mean Intersection-Over-Union is a common evaluation metric for semantic image segmentation, which first computes the IOU for each semantic class and then computes the a...
doc_28931
Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
doc_28932
See Migration guide for more details. tf.compat.v1.RaggedTensor A RaggedTensor is a tensor with one or more ragged dimensions, which are dimensions whose slices may have different lengths. For example, the inner (column) dimension of rt=[[3, 1, 4, 1], [], [5, 9, 2], [6], []] is ragged, since the column slices (rt[0, :...
doc_28933
The operation has been cancelled. This exception can be caught to perform custom operations when asyncio Tasks are cancelled. In almost all situations the exception must be re-raised. Changed in version 3.8: CancelledError is now a subclass of BaseException.
doc_28934
Load configuration from any object that provides a dict-like items() method. Keys are section names, values are dictionaries with keys and values that should be present in the section. If the used dictionary type preserves order, sections and their keys will be added in order. Values are automatically converted to stri...
doc_28935
tf.compat.v1.train.cosine_decay( learning_rate, global_step, decay_steps, alpha=0.0, name=None ) When training a model, it is often recommended to lower the learning rate as the training progresses. This function applies a cosine decay function to a provided initial learning rate. It requires a global_step value t...
doc_28936
A compatibility alias for tobytes, with exactly the same behavior. Despite its name, it returns bytes not strs. Deprecated since version 1.19.0.
doc_28937
Whether the type is an integer type.
doc_28938
The value of the step parameter (1 if this was not supplied).
doc_28939
alias of numpy.cdouble
doc_28940
For each element in self, return a titlecased version of the string: words start with uppercase characters, all remaining cased characters are lowercase. See also char.title
doc_28941
A subclass of HTTPException. Raised if a server responds with a HTTP status code that we don’t understand.
doc_28942
Bases: skimage.transform._geometric.GeometricTransform Projective transformation. Apply a projective transformation (homography) on coordinates. For each homogeneous coordinate \(\mathbf{x} = [x, y, 1]^T\), its target position is calculated by multiplying with the given matrix, \(H\), to give \(H \mathbf{x}\): [[a0 a...
doc_28943
See Migration guide for more details. tf.compat.v1.raw_ops.MergeSummary tf.raw_ops.MergeSummary( inputs, name=None ) This op creates a Summary protocol buffer that contains the union of all the values in the input summaries. When the Op is run, it reports an InvalidArgument error if multiple values in the summar...
doc_28944
Return the nameprepped version of label. The implementation currently assumes query strings, so AllowUnassigned is true.
doc_28945
The socket protocol.
doc_28946
Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parameters module (nn.Module) – module containing the tensor to prune name (str) – parameter name within module on which pruning will act. args – arguments passed...
doc_28947
Resize the stream to the given size in bytes (or the current position if size is not specified). The current stream position isn’t changed. This resizing can extend or reduce the current file size. In case of extension, the contents of the new file area depend on the platform (on most systems, additional bytes are zero...
doc_28948
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_28949
sklearn.metrics.pairwise.sigmoid_kernel(X, Y=None, gamma=None, coef0=1) [source] Compute the sigmoid kernel between X and Y: K(X, Y) = tanh(gamma <X, Y> + coef0) Read more in the User Guide. Parameters Xndarray of shape (n_samples_X, n_features) Yndarray of shape (n_samples_Y, n_features), default=None gamma...
doc_28950
Return amount of space the text would occupy on the specified display when formatted in the current font. If no display is specified then the main application window is assumed.
doc_28951
Draw a marker at each of path's vertices (excluding control points). This provides a fallback implementation of draw_markers that makes multiple calls to draw_path(). Some backends may want to override this method in order to draw the marker only once and reuse it multiple times. Parameters gcGraphicsContextBase ...
doc_28952
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_28953
Pass through file objects and context-manage path-likes.
doc_28954
Signed integer type, compatible with C long long. Character code 'q'
doc_28955
Unlinks all of the specified items from the tree. The items and all of their descendants are still present, and may be reinserted at another point in the tree, but will not be displayed. The root item may not be detached.
doc_28956
Return the left coordinate of the rectangle.
doc_28957
Sets the seed for generating random numbers on all GPUs. It’s safe to call this function if CUDA is not available; in that case, it is silently ignored. Parameters seed (int) – The desired seed.
doc_28958
Same as issuite(st).
doc_28959
If returncode is non-zero, raise a CalledProcessError.
doc_28960
assertFalse(expr, msg=None) Test that expr is true (or false). Note that this is equivalent to bool(expr) is True and not to expr is True (use assertIs(expr, True) for the latter). This method should also be avoided when more specific methods are available (e.g. assertEqual(a, b) instead of assertTrue(a == b)), becau...
doc_28961
Create a shared threading.Barrier object and return a proxy for it. New in version 3.3.
doc_28962
Gaussian Naive Bayes (GaussianNB) Can perform online updates to model parameters via partial_fit. For details on algorithm used to update feature means and variance online, see Stanford CS tech report STAN-CS-79-773 by Chan, Golub, and LeVeque: http://i.stanford.edu/pub/cstr/reports/cs/tr/79/773/CS-TR-79-773.pdf Read...
doc_28963
Creates a bloom index. To use this index access you need to activate the bloom extension on PostgreSQL. You can install it using the BloomExtension migration operation. Provide an integer number of bits from 1 to 4096 to the length parameter to specify the length of each index entry. PostgreSQL’s default is 80. The col...
doc_28964
See Migration guide for more details. tf.compat.v1.initializers.truncated_normal tf.compat.v1.truncated_normal_initializer( mean=0.0, stddev=1.0, seed=None, dtype=tf.dtypes.float32 ) These values are similar to values from a random_normal_initializer except that values more than two standard deviations from the ...
doc_28965
Return a Cycler object from a string repr or the object itself.
doc_28966
Enter the runtime context and return either this object or another object related to the runtime context. The value returned by this method is bound to the identifier in the as clause of with statements using this context manager. An example of a context manager that returns itself is a file object. File objects return...
doc_28967
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_28968
A mailbox, which may be inspected and modified. The Mailbox class defines an interface and is not intended to be instantiated. Instead, format-specific subclasses should inherit from Mailbox and your code should instantiate a particular subclass. The Mailbox interface is dictionary-like, with small keys corresponding t...
doc_28969
Return the base name of pathname path. This is the second element of the pair returned by passing path to the function split(). Note that the result of this function is different from the Unix basename program; where basename for '/foo/bar/' returns 'bar', the basename() function returns an empty string (''). Changed ...
doc_28970
Alias for get_fontweight.
doc_28971
Add text data to summary. Parameters tag (string) – Data identifier text_string (string) – String to save global_step (int) – Global step value to record walltime (float) – Optional override default walltime (time.time()) seconds after epoch of event Examples: writer.add_text('lstm', 'This is an lstm', 0) w...
doc_28972
Base class for all syndication feeds. Subclasses should provide write(). __init__(title, link, description, language=None, author_email=None, author_name=None, author_link=None, subtitle=None, categories=None, feed_url=None, feed_copyright=None, feed_guid=None, ttl=None, **kwargs) Initialize the feed with the given...
doc_28973
Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
doc_28974
Call self as a function.
doc_28975
Set the hatching pattern hatch can be one of: / - diagonal hatching \ - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large circle . - dots * - stars Letters can be combined, in which case all the specified hatchings are done. If same letter repea...
doc_28976
Returns numpy array of datetime.time objects. The time part of the Timestamps.
doc_28977
Add contour label using Text class.
doc_28978
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_28979
See Migration guide for more details. tf.compat.v1.raw_ops.RetrieveTPUEmbeddingMomentumParametersGradAccumDebug tf.raw_ops.RetrieveTPUEmbeddingMomentumParametersGradAccumDebug( num_shards, shard_id, table_id=-1, table_name='', config='', name=None ) An op that retrieves optimization parameters from embedding...
doc_28980
Same as Element.iterfind(), starting at the root of the tree. New in version 3.2.
doc_28981
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_28982
Return the file descriptor number of the polling object. New in version 3.4.
doc_28983
DiscoverRunner will search for tests in any file matching pattern. top_level can be used to specify the directory containing your top-level Python modules. Usually Django can figure this out automatically, so it’s not necessary to specify this option. If specified, it should generally be the directory containing your m...
doc_28984
get the music play time get_pos() -> time This gets the number of milliseconds that the music has been playing for. The returned time only represents how long the music has been playing; it does not take into account any starting position offsets.
doc_28985
Given the legs of a right triangle, return its hypotenuse. outi=inputi2+otheri2\text{out}_{i} = \sqrt{\text{input}_{i}^{2} + \text{other}_{i}^{2}} The shapes of input and other must be broadcastable. Parameters input (Tensor) – the first input tensor other (Tensor) – the second input tensor Keyword Arguments ...
doc_28986
Accept: application/json Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed Content-Type: application/json Content-Length: 42 {"detail": "Method 'DELETE' not allowed."} Validation errors are handled slightly differently, and will include...
doc_28987
RGB to XYZ color space conversion. Parameters rgb(…, 3) array_like The image in RGB format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in XYZ format. Same dimensions as input. Raises ValueError If rgb is not at least 2-D with shape (…, 3). Notes The CIE XYZ color spa...
doc_28988
See Migration guide for more details. tf.compat.v1.keras.applications.MobileNetV3Large tf.keras.applications.MobileNetV3Large( input_shape=None, alpha=1.0, minimalistic=False, include_top=True, weights='imagenet', input_tensor=None, classes=1000, pooling=None, dropout_rate=0.2, classifier_activation='soft...
doc_28989
Returns the number of splitting iterations in the cross-validator Parameters Xobject Always ignored, exists for compatibility. yobject Always ignored, exists for compatibility. groupsobject Always ignored, exists for compatibility. Returns n_splitsint Returns the number of splitting iterations i...
doc_28990
Illegal instruction.
doc_28991
Return a copy. Returns new_seriesseries Copy of self.
doc_28992
Compute the kernel density estimate at points X with the given kernel, using the distance metric specified at tree creation. Parameters Xarray-like of shape (n_samples, n_features) An array of points to query. Last dimension should match dimension of training data. hfloat the bandwidth of the kernel kernels...
doc_28993
tf.keras.applications.densenet.DenseNet169 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.DenseNet169, tf.compat.v1.keras.applications.densenet.DenseNet169 tf.keras.applications.DenseNet169( include_top=True, weights='imagenet', input_tensor=None, input_shap...
doc_28994
See Migration guide for more details. tf.compat.v1.app.flags.validator tf.compat.v1.flags.validator( flag_name, message='Flag validation failed', flag_values=_flagvalues.FLAGS ) Registers the decorated function as a validator for flag_name, e.g. @flags.validator('foo') def _CheckFoo(foo): ... See register_va...
doc_28995
assertNotRegex(text, regex, msg=None) Test that a regex search matches (or does not match) text. In case of failure, the error message will include the pattern and the text (or the pattern and the part of text that unexpectedly matched). regex may be a regular expression object or a string containing a regular expres...
doc_28996
Return non-zero if the mode is from a character special device file.
doc_28997
A test fixture represents the preparation needed to perform one or more tests, and any associated cleanup actions. This may involve, for example, creating temporary or proxy databases, directories, or starting a server process. test case A test case is the individual unit of testing. It checks for a specific respons...
doc_28998
The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET.
doc_28999
See Migration guide for more details. tf.compat.v1.raw_ops.AddV2 tf.raw_ops.AddV2( x, y, name=None ) Note: Add supports broadcasting. AddN does not. More about broadcasting here Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, uint8, int8, int16, uint32, int32, in...