_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_6600
Insert scalar into an array (scalar is cast to array’s dtype, if possible) There must be at least 1 argument, and define the last argument as item. Then, a.itemset(*args) is equivalent to but faster than a[args] = item. The item should be a scalar value and args must select a single item in the array a. Parameters ...
doc_6601
Repeated Stratified K-Fold cross validator. Repeats Stratified K-Fold n times with different randomization in each repetition. Read more in the User Guide. Parameters n_splitsint, default=5 Number of folds. Must be at least 2. n_repeatsint, default=10 Number of times cross-validator needs to be repeated. ...
doc_6602
Return the yaxis' grid lines as a list of Line2Ds.
doc_6603
Divide other into self, and return a new masked array.
doc_6604
Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters **paramsdict Estimator parameters. Returns...
doc_6605
Search over specified parameter values with successive halving. The search strategy starts evaluating all the candidates with a small amount of resources and iteratively selects the best candidates, using more and more resources. Read more in the User guide. Note This estimator is still experimental for now: the pre...
doc_6606
tf.compat.v1.metrics.false_positives_at_thresholds( labels, predictions, thresholds, weights=None, metrics_collections=None, updates_collections=None, name=None ) If weights is None, weights default to 1. Use weights of 0 to mask values. Args labels A Tensor whose shape matches predictions. Will be ca...
doc_6607
os.P_NOWAITO Possible values for the mode parameter to the spawn* family of functions. If either of these values is given, the spawn*() functions will return as soon as the new process has been created, with the process id as the return value. Availability: Unix, Windows.
doc_6608
Get the ACLs for mailbox. The method is non-standard, but is supported by the Cyrus server.
doc_6609
Return whether the given font is a Postscript Compact Font Format Font embedded in an OpenType wrapper. Used by the PostScript and PDF backends that can not subset these fonts.
doc_6610
Set to True if IPv6 is enabled on this host, False otherwise.
doc_6611
Mask for file owner permissions.
doc_6612
Return an iterator over the events which have been encountered in the data fed to the parser. The iterator yields (event, elem) pairs, where event is a string representing the type of event (e.g. "end") and elem is the encountered Element object, or other context value as follows. start, end: the current Element. co...
doc_6613
Error raised when there is a problem unpickling an object, such as a data corruption or a security violation. It inherits PickleError. Note that other exceptions may also be raised during unpickling, including (but not necessarily limited to) AttributeError, EOFError, ImportError, and IndexError.
doc_6614
Return figure and axes with figure tightly surrounding image. Unlike pyplot.figimage, this actually plots onto an axes object, which fills the figure. Plotting the image onto an axes allows for subsequent overlays of axes artists. Parameters imagearray image to plot scalefloat If scale is 1, the figure and ...
doc_6615
Parameters urlslist of str or None Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends.
doc_6616
Read all lines available on the input stream and return them as a list of lines. Line-endings are implemented using the codec’s decode() method and are included in the list entries if keepends is true. sizehint, if given, is passed as the size argument to the stream’s read() method.
doc_6617
tf.compat.v1.lite.experimental.nn.TFLiteLSTMCell( num_units, use_peepholes=False, cell_clip=None, initializer=None, num_proj=None, proj_clip=None, num_unit_shards=None, num_proj_shards=None, forget_bias=1.0, state_is_tuple=True, activation=None, reuse=None, name=None, dtype=None ) This is used only for TfL...
doc_6618
sklearn.utils.validation.has_fit_parameter(estimator, parameter) [source] Checks whether the estimator’s fit method supports the given parameter. Parameters estimatorobject An estimator to inspect. parameterstr The searched parameter. Returns is_parameter: bool Whether the parameter was found to be a ...
doc_6619
Find all the test modules by recursing into subdirectories from the specified start directory, and return a TestSuite object containing them. Only test files that match pattern will be loaded. (Using shell style pattern matching.) Only module names that are importable (i.e. are valid Python identifiers) will be loaded....
doc_6620
Extract all doctest examples from the given string, and collect them into a DocTest object. globs, name, filename, and lineno are attributes for the new DocTest object. See the documentation for DocTest for more information.
doc_6621
Bases: matplotlib.image.AxesImage Make a pcolor-style plot with an irregular rectangular grid. This uses a variation of the original irregular image code, and it is used by pcolorfast for the corresponding grid type. Parameters axAxes The axes the image will belong to. x, y1D array-like, optional Monotonic ...
doc_6622
stop sound playback stop() -> None This will stop the playback of this Sound on any active Channels.
doc_6623
Returns the variance of the array elements, along given axis. Refer to numpy.var for full documentation. See also numpy.var equivalent function
doc_6624
In-place version of threshold().
doc_6625
Returns a new tensor that is a narrowed version of input tensor. The dimension dim is input from start to start + length. The returned tensor and input tensor share the same underlying storage. Parameters input (Tensor) – the tensor to narrow dim (int) – the dimension along which to narrow start (int) – the start...
doc_6626
Call self as a function.
doc_6627
create binary cursor data from simple strings compile(strings, black='X', white='.', xor='o') -> data, mask A sequence of strings can be used to create binary cursor data for the system cursor. This returns the binary data in the form of two tuples. Those can be passed as the third and fourth arguments respectively o...
doc_6628
class sklearn.preprocessing.StandardScaler(*, copy=True, with_mean=True, with_std=True) [source] Standardize features by removing the mean and scaling to unit variance The standard score of a sample x is calculated as: z = (x - u) / s where u is the mean of the training samples or zero if with_mean=False, and s is th...
doc_6629
tf.experimental.numpy.int8( *args, **kwargs ) Character code: 'b'. Canonical name: np.byte. Alias on this platform: np.int8: 8-bit signed integer (-128 to 127). Methods all all() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, all...
doc_6630
Get the mode(s) of each element along the selected axis. The mode of a set of values is the value that appears most often. It can be multiple values. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The axis to iterate over while searching for the mode: 0 or ‘index’ : get mode of each column 1 or ‘col...
doc_6631
Out-of-place version of torch.Tensor.scatter_()
doc_6632
tf.initializers.LecunUniform, tf.initializers.lecun_uniform, tf.keras.initializers.lecun_uniform tf.keras.initializers.LecunUniform( seed=None ) Also available via the shortcut function tf.keras.initializers.lecun_uniform. Draws samples from a uniform distribution within [-limit, limit], where limit = sqrt(3 / f...
doc_6633
In-place version of logical_xor()
doc_6634
Return the zaxis' minor tick labels, as a list of Text.
doc_6635
Release a semaphore, incrementing the internal counter by one. Can wake up a task waiting to acquire the semaphore. Unlike BoundedSemaphore, Semaphore allows making more release() calls than acquire() calls.
doc_6636
See Migration guide for more details. tf.compat.v1.saved_model.loader.maybe_saved_model_directory, tf.compat.v1.saved_model.maybe_saved_model_directory tf.compat.v1.saved_model.contains_saved_model( export_dir ) Note that the method does not load any data by itself. If the method returns false, the export direct...
doc_6637
Close the AIFF file. After calling this method, the object can no longer be used.
doc_6638
Create a new compressor object. This object may be used to compress data incrementally. For one-shot compression, use the compress() function instead. compresslevel, if given, must be an integer between 1 and 9. The default is 9. compress(data) Provide data to the compressor object. Returns a chunk of compressed da...
doc_6639
Windows only: Instances of this class represent loaded shared libraries, functions in these libraries use the stdcall calling convention, and are assumed to return the windows specific HRESULT code. HRESULT values contain information specifying whether the function call failed or succeeded, together with additional err...
doc_6640
Check if the Index holds data with mixed data types. Returns bool Whether or not the Index holds data with mixed data types. See also is_boolean Check if the Index only consists of booleans. is_integer Check if the Index only consists of integers. is_floating Check if the Index is a floating type. is_...
doc_6641
Equivalent to DomainStrictNoDots|DomainStrictNonDomain.
doc_6642
Set the size and position of the main window. Default values of arguments are stored in the configuration dictionary and can be changed via a turtle.cfg file. Parameters width – if an integer, a size in pixels, if a float, a fraction of the screen; default is 50% of screen height – if an integer, the height in pix...
doc_6643
This class first uses CookieStorage, and falls back to using SessionStorage for the messages that could not fit in a single cookie. It also requires Django’s contrib.sessions application. This behavior avoids writing to the session whenever possible. It should provide the best performance in the general case.
doc_6644
Constructor for a priority queue. maxsize is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If maxsize is less than or equal to zero, the queue size is infinite. The lowest valued ent...
doc_6645
Row and column indices of the i’th bicluster. Only works if rows_ and columns_ attributes exist. Parameters iint The index of the cluster. Returns row_indndarray, dtype=np.intp Indices of rows in the dataset that belong to the bicluster. col_indndarray, dtype=np.intp Indices of columns in the datase...
doc_6646
Alias for set_linestyle.
doc_6647
'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', ] } You can also set the renderers used for an individual view, or viewset, using the APIView class-based views. from django.contrib.auth.models import User from rest_framewor...
doc_6648
torch.utils.checkpoint.checkpoint(function, *args, **kwargs) [source] Checkpoint a model or part of the model Checkpointing works by trading compute for memory. Rather than storing all intermediate activations of the entire computation graph for computing backward, the checkpointed part does not save intermediate act...
doc_6649
The constructor of django.template.Context takes an optional argument — a dictionary mapping variable names to variable values. For details, see Playing with Context objects below.
doc_6650
Generates a random sample from a given array Parameters a{array_like, int} If an ndarray, a random sample is generated from its elements. If an int, the random sample is generated from np.arange(a). size{int, tuple[int]}, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples ...
doc_6651
Add a horizontal span (rectangle) across the Axes. The rectangle spans from ymin to ymax vertically, and, by default, the whole x-axis horizontally. The x-span can be set using xmin (default: 0) and xmax (default: 1) which are in axis units; e.g. xmin = 0.5 always refers to the middle of the x-axis regardless of the ...
doc_6652
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_6653
Set the “From ” line to from_, which should be specified without a leading “From ” or trailing newline. For convenience, time_ may be specified and will be formatted appropriately and appended to from_. If time_ is specified, it should be a time.struct_time instance, a tuple suitable for passing to time.strftime(), or ...
doc_6654
Adjust the direction, text angle, text alignment of ticklabels, labels following the matplotlib convention for the rectangle axes. The axis_direction must be one of [left, right, bottom, top]. property left bottom right top ticklabels location "-" "+" "+" "-" axislabel location "-" "+" "+" "-" ticklabels an...
doc_6655
Get line lineno from file named filename. This function will never raise an exception — it will return '' on errors (the terminating newline character will be included for lines that are found). If a file named filename is not found, the function first checks for a PEP 302 __loader__ in module_globals. If there is such...
doc_6656
Return first index of value. Raises ValueError if the value is not present.
doc_6657
tf.random.experimental.set_global_generator Compat aliases for migration See Migration guide for more details. tf.compat.v1.random.experimental.set_global_generator, tf.compat.v1.random.set_global_generator tf.random.set_global_generator( generator ) This function creates a new Generator object (and the Variable...
doc_6658
Return True if the given integrity check is supported on this system. CHECK_NONE and CHECK_CRC32 are always supported. CHECK_CRC64 and CHECK_SHA256 may be unavailable if you are using a version of liblzma that was compiled with a limited feature set.
doc_6659
LinearRing objects are constructed in the exact same way as LineString objects, however the coordinates must be closed, in other words, the first coordinates must be the same as the last coordinates. For example: >>> ls = LinearRing((0, 0), (0, 1), (1, 1), (0, 0)) Notice that (0, 0) is the first and last coordinate – ...
doc_6660
A simple lookup table that looks up embeddings in a fixed dictionary and size. This module is often used to retrieve word embeddings using indices. The input to the module is a list of indices, and the embedding matrix, and the output is the corresponding word embeddings. See torch.nn.Embedding for more details. Par...
doc_6661
Return intensity limits, i.e. (min, max) tuple, of the image’s dtype. Parameters imagendarray Input image. clip_negativebool, optional If True, clip the negative range (i.e. return 0 for min intensity) even if the image dtype allows negative values. Returns imin, imaxtuple Lower and upper intensity ...
doc_6662
Return True if the object is a getset descriptor. CPython implementation detail: getsets are attributes defined in extension modules via PyGetSetDef structures. For Python implementations without such types, this method will always return False.
doc_6663
Returns transformTransform The transform used for drawing x-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in data coordinates and the y-direction is in axis coordinates valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'} The tex...
doc_6664
Returns a boolean array which is True where the string element in a ends with suffix, otherwise False. Calls str.endswith element-wise. Parameters aarray_like of str or unicode suffixstr start, endint, optional With optional start, test beginning at that position. With optional end, stop comparing at that p...
doc_6665
Casts all parameters and buffers to dst_type. Parameters dst_type (type or string) – the desired type Returns self Return type Module
doc_6666
See Migration guide for more details. tf.compat.v1.raw_ops.ReduceJoin tf.raw_ops.ReduceJoin( inputs, reduction_indices, keep_dims=False, separator='', name=None ) Computes the string join across dimensions in the given string Tensor of shape [\\(d_0, d_1, ..., d_{n-1}\\)]. Returns a new Tensor created by joining...
doc_6667
Build a matrix object from a string, nested sequence, or array. Parameters objstr or array_like Input data. If a string, variables in the current scope may be referenced by name. ldictdict, optional A dictionary that replaces local operands in current frame. Ignored if obj is not a string or gdict is None. ...
doc_6668
class torch.nn.quantized.dynamic.Linear(in_features, out_features, bias_=True, dtype=torch.qint8) [source] A dynamic quantized linear module with floating point tensor as inputs and outputs. We adopt the same interface as torch.nn.Linear, please see https://pytorch.org/docs/stable/nn.html#torch.nn.Linear for document...
doc_6669
Registers a template context processor function. Parameters f (Callable[[], Dict[str, Any]]) – Return type Callable[[], Dict[str, Any]]
doc_6670
See Migration guide for more details. tf.compat.v1.raw_ops.Save tf.raw_ops.Save( filename, tensor_names, data, name=None ) The size of tensor_names must match the number of tensors in data. data[i] is written to filename with name tensor_names[i]. See also SaveSlices. Args filename A Tensor of type stri...
doc_6671
See Migration guide for more details. tf.compat.v1.image.combined_non_max_suppression tf.image.combined_non_max_suppression( boxes, scores, max_output_size_per_class, max_total_size, iou_threshold=0.5, score_threshold=float('-inf'), pad_per_class=False, clip_boxes=True, name=None ) This operation perform...
doc_6672
class sklearn.model_selection.HalvingRandomSearchCV(estimator, param_distributions, *, n_candidates='exhaust', factor=3, resource='n_samples', max_resources='auto', min_resources='smallest', aggressive_elimination=False, cv=5, scoring=None, refit=True, error_score=nan, return_train_score=True, random_state=None, n_jobs...
doc_6673
initialize the Joystick init() -> None Initialize the joystick, if it has been closed. It is safe to call this even if the joystick is already initialized. Deprecated since pygame 2.0.0: In future it will not be possible to reinitialise a closed Joystick object. Will be removed in Pygame 2.1.
doc_6674
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_6675
Set text rotation mode. Parameters m{None, 'default', 'anchor'} If None or "default", the text will be first rotated, then aligned according to their horizontal and vertical alignments. If "anchor", then alignment occurs before rotation.
doc_6676
Integrate a Hermite series. Returns the Hermite series coefficients c integrated m times from lbnd along axis. At each iteration the resulting series is multiplied by scl and an integration constant, k, is added. The scaling factor is for use in a linear change of variable. (“Buyer beware”: note that, depending on wh...
doc_6677
Draw random samples from a multivariate normal distribution. The multivariate normal, multinormal or Gaussian distribution is a generalization of the one-dimensional normal distribution to higher dimensions. Such a distribution is specified by its mean and covariance matrix. These parameters are analogous to the mean...
doc_6678
Internal event handler to clear the cursor.
doc_6679
Returns the size of the hardware buffer, in samples.
doc_6680
Return True if all items in lst are string objects. numpy.distutils.misc_util.allpath(name)[source] Convert a /-separated pathname to one using the OS’s path separator. numpy.distutils.misc_util.appendpath(prefix, path)[source] numpy.distutils.misc_util.as_list(seq)[source] numpy.distutils.misc_util...
doc_6681
See Migration guide for more details. tf.compat.v1.raw_ops.BesselI0e tf.raw_ops.BesselI0e( 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_6682
Thresholds each element of the input Tensor. See Threshold for more details.
doc_6683
Return the real group id of the current process. Availability: Unix.
doc_6684
The directory a.
doc_6685
Called when the test case test was marked with the expectedFailure() decorator, but succeeded. The default implementation appends the test to the instance’s unexpectedSuccesses attribute.
doc_6686
tf.keras.applications.densenet.DenseNet121 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.DenseNet121, tf.compat.v1.keras.applications.densenet.DenseNet121 tf.keras.applications.DenseNet121( include_top=True, weights='imagenet', input_tensor=None, input_shap...
doc_6687
Set the antialiasing state for rendering. Parameters aabool or list of bools
doc_6688
See Migration guide for more details. tf.compat.v1.raw_ops.DeserializeSparse tf.raw_ops.DeserializeSparse( serialized_sparse, dtype, name=None ) The input serialized_sparse must have the shape [?, ?, ..., ?, 3] where the last dimension stores serialized SparseTensor objects and the other N dimensions (N >= 0) co...
doc_6689
Convert a binary file with filename input to binhex file output. The output parameter can either be a filename or a file-like object (any object supporting a write() and close() method).
doc_6690
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with vertical bars | at both ends. Parameters widthA, widthBfloat, default: 1.0 Width of the bracket. angleA, angleBfloat, default: 0 degrees Orientation of the bracket, as a counterclockwise angle. 0 degrees means perpendicular to the line. arrow='...
doc_6691
A numeric error number that denotes the verification error.
doc_6692
The secure cookie uses this for the name of the session cookie. This attribute can also be configured from the config with the SESSION_COOKIE_NAME configuration key. Defaults to 'session'
doc_6693
Calculate the grey-level co-occurrence matrix. A grey level co-occurrence matrix is a histogram of co-occurring greyscale values at a given offset over an image. Parameters imagearray_like Integer typed input image. Only positive valued images are supported. If type is other than uint8, the argument levels need...
doc_6694
DET curve visualization. It is recommend to use plot_det_curve to create a visualizer. All parameters are stored as attributes. Read more in the User Guide. New in version 0.24. Parameters fprndarray False positive rate. tprndarray True positive rate. estimator_namestr, default=None Name of estimator....
doc_6695
A human-readable “verbose” name for the website.
doc_6696
In-place version of asin()
doc_6697
The unscaled ascent of the font in font units ascender -> int Read only. Return the number of units from the font's baseline to the top of the bounding box.
doc_6698
Convert 16-bit positive integers from network to host byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation. Deprecated since version 3.7: In case x does not fit in 16-bit unsigned integer, but does fit in a positive C int, ...
doc_6699
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...