_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_18600
The last child of the node, if there are any, or None. This is a read-only attribute.
doc_18601
Find features between low_sigma and high_sigma in size. This function uses the Difference of Gaussians method for applying band-pass filters to multi-dimensional arrays. The input array is blurred with two Gaussian kernels of differing sigmas to produce two intermediate, filtered images. The more-blurred image is the...
doc_18602
This function drops you into the debugger at the call site. Specifically, it calls sys.breakpointhook(), passing args and kws straight through. By default, sys.breakpointhook() calls pdb.set_trace() expecting no arguments. In this case, it is purely a convenience function so you don’t have to explicitly import pdb or t...
doc_18603
Load a parquet object from the file path, returning a DataFrame. Parameters path:str, path object or file-like object String, path object (implementing os.PathLike[str]), or file-like object implementing a binary read() function. The string could be a URL. Valid URL schemes include http, ftp, s3, gs, and file. ...
doc_18604
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_18605
integer value of flags
doc_18606
Alias for torch.mul().
doc_18607
tf.keras.mixed_precision.experimental.global_policy tf.keras.mixed_precision.global_policy() The global policy is the default tf.keras.mixed_precision.Policy used for layers, if no policy is passed to the layer constructor. If no policy has been set with keras.mixed_precision.set_global_policy, this will return a po...
doc_18608
Returns information identifying the current operating system. The return value is an object with five attributes: sysname - operating system name nodename - name of machine on network (implementation-defined) release - operating system release version - operating system version machine - hardware identifier For ...
doc_18609
See Migration guide for more details. tf.compat.v1.linalg.diag, tf.compat.v1.matrix_diag tf.linalg.diag( diagonal, name='diag', k=0, num_rows=-1, num_cols=-1, padding_value=0, align='RIGHT_LEFT' ) Returns a tensor with the contents in diagonal as k[0]-th to k[1]-th diagonals of a matrix, with everything else...
doc_18610
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesUpdateEnsemble tf.raw_ops.BoostedTreesUpdateEnsemble( tree_ensemble_handle, feature_ids, node_ids, gains, thresholds, left_node_contribs, right_node_contribs, max_depth, learning_rate, pruning_mode, name=None ) or by starting a new tr...
doc_18611
Stop serving: close listening sockets and set the sockets attribute to None. The sockets that represent existing incoming client connections are left open. The server is closed asynchronously, use the wait_closed() coroutine to wait until the server is closed.
doc_18612
Instantiates an HttpResponse object with the given page content, content type, and headers. content is most commonly an iterator, bytestring, memoryview, or string. Other types will be converted to a bytestring by encoding their string representation. Iterators should return strings or bytestrings and those will be joi...
doc_18613
Alias for get_linewidth.
doc_18614
See Migration guide for more details. tf.compat.v1.linalg.slogdet tf.linalg.slogdet( input, name=None ) one or more square matrices. The input is a tensor of shape [N, M, M] whose inner-most 2 dimensions form square matrices. The outputs are two tensors containing the signs and absolute values of the log determi...
doc_18615
A dictionary containing all cookies. Keys and values are strings.
doc_18616
Unpacks elements of a uint8 array into a binary-valued output array. Each element of a represents a bit-field that should be unpacked into a binary-valued output array. The shape of the output array is either 1-D (if axis is None) or the same shape as the input array with unpacking done along the axis specified. Par...
doc_18617
Returns the name assigned to the character chr as a string. If no name is defined, default is returned, or, if not given, ValueError is raised.
doc_18618
Return the product of the array elements over the given axis. Refer to prod for full documentation. See also prod, ndarray.prod Notes Same as ndarray.prod, except, where that returns an ndarray, this returns a matrix object instead. Examples >>> x = np.matrix(np.arange(12).reshape((3,4))); x matrix([[ 0, 1, 2...
doc_18619
The iterator class used to generate field choices from queryset. By default, ModelChoiceIterator.
doc_18620
See Migration guide for more details. tf.compat.v1.nn.max_pool2d tf.nn.max_pool2d( input, ksize, strides, padding, data_format='NHWC', name=None ) Args input A 4-D Tensor of the format specified by data_format. ksize An int or list of ints that has length 1, 2 or 4. The size of the window for each...
doc_18621
Name of the part, e.g. 'acute'.
doc_18622
See Migration guide for more details. tf.compat.v1.raw_ops.DataFormatDimMap tf.raw_ops.DataFormatDimMap( x, src_format='NHWC', dst_format='NCHW', name=None ) the source data format. Args x A Tensor. Must be one of the following types: int32, int64. A Tensor with each element as a dimension index in sour...
doc_18623
Set the edgecolor(s) of the collection. Parameters ccolor or list of colors or 'face' The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor.
doc_18624
The provided variance is the circular one.
doc_18625
A helper function for checkpointing sequential models. Sequential models execute a list of modules/functions in order (sequentially). Therefore, we can divide such a model in various segments and checkpoint each segment. All segments except the last will run in torch.no_grad() manner, i.e., not storing the intermedia...
doc_18626
See torch.numel()
doc_18627
exception http.cookiejar.LoadError Instances of FileCookieJar raise this exception on failure to load cookies from a file. LoadError is a subclass of OSError. Changed in version 3.3: LoadError was made a subclass of OSError instead of IOError. The following classes are provided: class http.cookiejar.CookieJar(p...
doc_18628
A structure that encapsulates information of a worker in the system. Contains the name and ID of the worker. This class is not meant to be constructed directly, rather, an instance can be retrieved through get_worker_info() and the result can be passed in to functions such as rpc_sync(), rpc_async(), remote() to avoid ...
doc_18629
Call self as a function.
doc_18630
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_18631
bytearray.isdigit() Return True if all bytes in the sequence are ASCII decimal digits and the sequence is not empty, False otherwise. ASCII decimal digits are those byte values in the sequence b'0123456789'. For example: >>> b'1234'.isdigit() True >>> b'1.23'.isdigit() False
doc_18632
Examine the set of signals that are pending for delivery to the calling thread (i.e., the signals which have been raised while blocked). Return the set of the pending signals. Availability: Unix. See the man page sigpending(2) for further information. See also pause(), pthread_sigmask() and sigwait(). New in version 3...
doc_18633
Returns a tensor with the same data and number of elements as input, but with the specified shape. When possible, the returned tensor will be a view of input. Otherwise, it will be a copy. Contiguous inputs and inputs with compatible strides can be reshaped without copying, but you should not depend on the copying vs. ...
doc_18634
Returns the week for which this view will display data, as a string. Tries the following sources, in order: The value of the WeekMixin.week attribute. The value of the week argument captured in the URL pattern The value of the week GET query argument. Raises a 404 if no valid week specification can be found.
doc_18635
Construct a RcParams from file fname. Parameters fnamestr or path-like A file with Matplotlib rc settings. fail_on_errorbool If True, raise an error when the parser fails to convert a parameter. use_default_templatebool If True, initialize with default parameters before updating with those in the given ...
doc_18636
Set the left and bottom coordinates of the rectangle. Parameters xy(float, float)
doc_18637
Get the current coroutine origin tracking depth, as set by set_coroutine_origin_tracking_depth(). New in version 3.7. Note This function has been added on a provisional basis (see PEP 411 for details.) Use it only for debugging purposes.
doc_18638
Bases: threading.Thread This constructor should always be called with keyword arguments. Arguments are: group should be None; reserved for future extension when a ThreadGroup class is implemented. target is the callable object to be invoked by the run() method. Defaults to None, meaning nothing is called. name is the...
doc_18639
See Migration guide for more details. tf.compat.v1.image.non_max_suppression_overlaps tf.image.non_max_suppression_overlaps( overlaps, scores, max_output_size, overlap_threshold=0.5, score_threshold=float('-inf'), name=None ) Prunes away boxes that have high overlap with previously selected boxes. N-by-n ove...
doc_18640
tf.keras.applications.efficientnet.EfficientNetB1 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.EfficientNetB1, tf.compat.v1.keras.applications.efficientnet.EfficientNetB1 tf.keras.applications.EfficientNetB1( include_top=True, weights='imagenet', input_tensor=...
doc_18641
Alias for get_linestyle.
doc_18642
Encode the bytes-like object b using Ascii85 and return the encoded bytes. foldspaces is an optional flag that uses the special short sequence ‘y’ instead of 4 consecutive spaces (ASCII 0x20) as supported by ‘btoa’. This feature is not supported by the “standard” Ascii85 encoding. wrapcol controls whether the output sh...
doc_18643
Alias for get_facecolor.
doc_18644
Note: tf.distribute.DistributedDataset instances are not of type tf.data.Dataset. It only supports two usages we will mention below: iteration and element_spec. We don't support any other APIs to transform or inspect the dataset. There are two APIs to create a tf.distribute.DistributedDataset object: tf.distribute.Str...
doc_18645
A read-only property. Points to the ContextVar object that created the token.
doc_18646
Compute the rbf (gaussian) kernel between X and Y: K(x, y) = exp(-gamma ||x-y||^2) for each pair of rows x in X and y in Y. 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 gammafloat, default=None If None, default...
doc_18647
When True and used in a model which inherits from another concrete model, indicates that this field should be used as the link back to the parent class, rather than the extra OneToOneField which would normally be implicitly created by subclassing.
doc_18648
This method returns the instance of TestResult used by run(). It is not intended to be called directly, but can be overridden in subclasses to provide a custom TestResult. _makeResult() instantiates the class or callable passed in the TextTestRunner constructor as the resultclass argument. It defaults to TextTestResult...
doc_18649
tf.keras.layers.MaxPooling3D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.MaxPool3D, tf.compat.v1.keras.layers.MaxPooling3D tf.keras.layers.MaxPool3D( pool_size=(2, 2, 2), strides=None, padding='valid', data_format=None, **kwargs ) Arguments pool_size ...
doc_18650
Return an IntervalArray identical to the current one, but closed on the specified side. Parameters closed:{‘left’, ‘right’, ‘both’, ‘neither’} Whether the intervals are closed on the left-side, right-side, both or neither. Returns new_index:IntervalArray Examples >>> index = pd.arrays.IntervalArray.f...
doc_18651
A ServerProxy instance is an object that manages communication with a remote XML-RPC server. The required first argument is a URI (Uniform Resource Indicator), and will normally be the URL of the server. The optional second argument is a transport factory instance; by default it is an internal SafeTransport instance fo...
doc_18652
Parses an XML section from a string constant, and also returns a dictionary which maps from element id:s to elements. text is a string containing XML data. parser is an optional parser instance. If not given, the standard XMLParser parser is used. Returns a tuple containing an Element instance and a dictionary.
doc_18653
See Migration guide for more details. tf.compat.v1.raw_ops.CropAndResize tf.raw_ops.CropAndResize( image, boxes, box_ind, crop_size, method='bilinear', extrapolation_value=0, name=None ) Extracts crops from the input image tensor and resizes them using bilinear sampling or nearest neighbor sampling (possibly...
doc_18654
Returns a human-readable printout of the running processes and their GPU memory use for a given device. This can be useful to display periodically during training, or when handling out-of-memory exceptions. Parameters device (torch.device or int, optional) – selected device. Returns printout for the current device,...
doc_18655
Returns a CommandParser instance, which is an ArgumentParser subclass with a few customizations for Django. You can customize the instance by overriding this method and calling super() with kwargs of ArgumentParser parameters.
doc_18656
The TList widget can be used to display data in a tabular format. The list entries of a TList widget are similar to the entries in the Tk listbox widget. The main differences are (1) the TList widget can display the list entries in a two dimensional format and (2) you can use graphical images as well as multiple colors...
doc_18657
Raised when a local or global name is not found. This applies only to unqualified names. The associated value is an error message that includes the name that could not be found.
doc_18658
Like Accept but with normalization for language tags.
doc_18659
>>> serializer = AccountSerializer() >>> print(repr(serializer)) AccountSerializer(): id = IntegerField(label='ID', read_only=True) name = CharField(allow_blank=True, max_length=100, required=False) owner = PrimaryKeyRelatedField(queryset=User.objects.all()) API Reference In order to explain the various ty...
doc_18660
Class implementing event objects. An event manages a flag that can be set to true with the set() method and reset to false with the clear() method. The wait() method blocks until the flag is true. The flag is initially false. Changed in version 3.3: changed from a factory function to a class. is_set() Return True...
doc_18661
Set the colormap for luminance data. Parameters cmapColormap or str or None
doc_18662
Set or retrieve autoscaling margins. The padding added to each limit of the Axes is the margin times the data interval. All input parameters must be floats within the range [0, 1]. Passing both positional and keyword arguments is invalid and will raise a TypeError. If no arguments (positional or otherwise) are provid...
doc_18663
Returns the current unpack position in the data buffer.
doc_18664
Place a legend on the figure. Call signatures: figlegend() figlegend(handles, labels) figlegend(handles=handles) figlegend(labels) The call signatures correspond to the following different ways to use this method: 1. Automatic detection of elements to be shown in the legend The elements to be added to the legend are...
doc_18665
Returns the sign of the determinant of the Jacobian, if applicable. In general this only makes sense for bijective transforms.
doc_18666
Literal string representation.
doc_18667
Sets all bits to 0 clear() -> None Sets all bits in the mask to 0. Returns: None Return type: NoneType
doc_18668
In protocols 2 and newer, classes that implements the __getnewargs_ex__() method can dictate the values passed to the __new__() method upon unpickling. The method must return a pair (args, kwargs) where args is a tuple of positional arguments and kwargs a dictionary of named arguments for constructing the object. Those...
doc_18669
The name of the cookie.
doc_18670
Return the transform to be applied to the Path from MarkerStyle.get_path().
doc_18671
Create a twin Axes sharing the xaxis. Create a new Axes with an invisible x-axis and an independent y-axis positioned opposite to the original one (i.e. at right). The x-axis autoscale setting will be inherited from the original Axes. To ensure that the tick marks of both y-axes align, see LinearLocator. Returns A...
doc_18672
Return the path of this patch.
doc_18673
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_18674
sklearn.inspection.partial_dependence(estimator, X, features, *, response_method='auto', percentiles=0.05, 0.95, grid_resolution=100, method='auto', kind='legacy') [source] Partial dependence of features. Partial dependence of a feature (or a set of features) corresponds to the average response of an estimator for ea...
doc_18675
Returns a description of the test, or None if no description has been provided. The default implementation of this method returns the first line of the test method’s docstring, if available, or None. Changed in version 3.1: In 3.1 this was changed to add the test name to the short description even in the presence of a...
doc_18676
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalChooseFastestDataset tf.raw_ops.ExperimentalChooseFastestDataset( input_datasets, num_experiments, output_types, output_shapes, name=None ) Args input_datasets A list of at least 2 Tensor objects with type variant. num_experiment...
doc_18677
Return the public identifier for the current event.
doc_18678
Start a TLS session on the active connection as specified in RFC 2595. This is only allowed before user authentication context parameter is a ssl.SSLContext object which allows bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. Please read Security consid...
doc_18679
Returns number of audio frames.
doc_18680
The Content-Encoding entity-header field is used as a modifier to the media-type. When present, its value indicates what additional content codings have been applied to the entity-body, and thus what decoding mechanisms must be applied in order to obtain the media-type referenced by the Content-Type header field. Chan...
doc_18681
Dictionary learning Finds a dictionary (a set of atoms) that can best be used to represent data using a sparse code. Solves the optimization problem: (U^*,V^*) = argmin 0.5 || X - U V ||_2^2 + alpha * || U ||_1 (U,V) with || V_k ||_2 = 1 for all 0 <= k < n_components Read more in the User Gu...
doc_18682
Predict regression target for X. The predicted regression target of an input sample is computed as the mean predicted regression targets of the trees in the forest. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, its dtype will be converted to dtype=np.flo...
doc_18683
Aggregate using one or more operations over the specified axis. Parameters func:function, str, list or dict Function to use for aggregating the data. If a function, must either work when passed a Series or when passed to Series.apply. Accepted combinations are: function string function name list of functions a...
doc_18684
Base class for all estimators in scikit-learn. Notes All estimators should specify all the parameters that can be set at the class level in their __init__ as explicit keyword arguments (no *args or **kwargs). Methods get_params([deep]) Get parameters for this estimator. set_params(**params) Set the parameters of ...
doc_18685
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_18686
Return the charset parameter of the Content-Type header, coerced to lower case. If there is no Content-Type header, or if that header has no charset parameter, failobj is returned. Note that this method differs from get_charset() which returns the Charset instance for the default encoding of the message body.
doc_18687
See Migration guide for more details. tf.compat.v1.keras.preprocessing.text.text_to_word_sequence tf.keras.preprocessing.text.text_to_word_sequence( input_text, filters='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n', lower=True, split=' ' ) This function transforms a string of text into a list of words while ign...
doc_18688
get the number of buttons on a Joystick get_numbuttons() -> int Returns the number of pushable buttons on the joystick. These buttons have a boolean (on or off) state. Buttons generate a pygame.JOYBUTTONDOWN and pygame.JOYBUTTONUP event when they are pressed and released.
doc_18689
Unpacks and returns a variable length string. The length of the string is first unpacked as an unsigned integer, then the string data is unpacked with unpack_fstring().
doc_18690
returns a vector reflected of a given normal. reflect(Vector3) -> Vector3 Returns a new vector that points in the direction as if self would bounce of a surface characterized by the given surface normal. The length of the new vector is the same as self's.
doc_18691
Concrete class for urlparse() results containing bytes data. The decode() method returns a ParseResult instance. New in version 3.2.
doc_18692
Select a font based on fontprop and return a name suitable for Op.selectfont. If fontprop is a string, it will be interpreted as the filename of the font.
doc_18693
Execute callable(*args, **kwargs) code in the context object the run method is called on. Return the result of the execution or propagate an exception if one occurred. Any changes to any context variables that callable makes will be contained in the context object: var = ContextVar('var') var.set('spam') def main(): ...
doc_18694
Return True if this network is a supernet of other. >>> a = ip_network('192.168.1.0/24') >>> b = ip_network('192.168.1.128/30') >>> a.supernet_of(b) True New in version 3.7.
doc_18695
Change elements of an array based on conditional and input values. Similar to np.copyto(arr, vals, where=mask), the difference is that place uses the first N elements of vals, where N is the number of True values in mask, while copyto uses the elements where mask is True. Note that extract does the exact opposite of ...
doc_18696
For each element in self, return True if there are only decimal characters in the element. See also char.isdecimal
doc_18697
Set the offset of the container. Parameters xy(float, float) The (x, y) coordinates of the offset in display units.
doc_18698
Return a string containing a brief description of how the ArgumentParser should be invoked on the command line.
doc_18699
class sklearn.multiclass.OneVsOneClassifier(estimator, *, n_jobs=None) [source] One-vs-one multiclass strategy This strategy consists in fitting one classifier per class pair. At prediction time, the class which received the most votes is selected. Since it requires to fit n_classes * (n_classes - 1) / 2 classifiers,...