_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_5000
Bases: matplotlib.patches.ArrowStyle._Base A simple arrow. Only works with a quadratic Bezier curve. Parameters head_lengthfloat, default: 0.5 Length of the arrow head. head_widthfloat, default: 0.5 Width of the arrow head. tail_widthfloat, default: 0.2 Width of the arrow tail. transmute(path, mut...
doc_5001
Return the value of the given header. If the header is not present, return the default value.
doc_5002
Copy properties from other to self.
doc_5003
Return the file descriptor of the socket object used internally.
doc_5004
Check if domains match. New in version 1.6.0. Parameters otherclass instance The other class must have the domain attribute. Returns boolboolean True if the domains are the same, False otherwise.
doc_5005
Determines the type of sound data stored in the file filename using whathdr(). If it succeeds, returns a namedtuple as described above, otherwise None is returned. Changed in version 3.5: Result changed from a tuple to a namedtuple.
doc_5006
Retrieves the value of the specified option. Available options: compute.[use_bottleneck, use_numba, use_numexpr] display.[chop_threshold, colheader_justify, column_space, date_dayfirst, date_yearfirst, encoding, expand_frame_repr, float_format] display.html.[border, table_schema, use_mathjax] display.[large_repr] di...
doc_5007
Split the pathname path into a pair (drive, tail) where drive is either a mount point or the empty string. On systems which do not use drive specifications, drive will always be the empty string. In all cases, drive + tail will be the same as path. On Windows, splits a pathname into drive/UNC sharepoint and relative pa...
doc_5008
The name is parsed as everything up to the ‘:’ and returned unmodified. The value is determined by stripping leading whitespace off the remainder of the first line, joining all subsequent lines together, and stripping any trailing carriage return or linefeed characters.
doc_5009
Bases: skimage.viewer.plugins.plotplugin.PlotPlugin __init__(max_pct=0.99, **kwargs) [source] Initialize self. See help(type(self)) for accurate signature. ab_selected(extents) [source] attach(image_viewer) [source] Attach the plugin to an ImageViewer. Note that the ImageViewer will automatically call t...
doc_5010
Adds a new value for the key. Changelog New in version 0.6. Parameters key – the key for the value. value – the value to add.
doc_5011
The unformatted error message.
doc_5012
create_connection id1, id2, pos1, pos2, cost1, cost2) Overload this method to keep track of the connections that are found during MCP processing. Note that a connection with the same ids can be found multiple times (but with different positions and costs). At the time that this method is called, both points are “frozen...
doc_5013
Mirrors the semantics of timeit.Timer.timeit(). Execute the main statement (stmt) number times. https://docs.python.org/3/library/timeit.html#timeit.Timer.timeit
doc_5014
>>> cache.set('my_key', 'hello, world!', 30)
doc_5015
Fit the model from data in X. Parameters Xarray-like of shape (n_samples, n_features) Training vector, where n_samples in the number of samples and n_features is the number of features. yIgnored Returns selfobject Returns the instance itself.
doc_5016
Pass a DrawEvent to all functions connected to draw_event.
doc_5017
Bases: object Event carrying messages from toolmanager. Messages usually get displayed to the user by the toolbar.
doc_5018
Return plugin meta-data. Parameters pluginstr Name of plugin. Returns mdict Meta data as specified in plugin .ini.
doc_5019
Return the median of the values over the requested axis. Parameters axis:{index (0), columns (1)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when computing the result. level:int or level name, default None If the axis is a MultiIndex (hierarchical), count al...
doc_5020
For syntax errors - the text where the error occurred.
doc_5021
Return an array of ones with the same shape and type as a given array. Parameters aarray_like The shape and data-type of a define these same attributes of the returned array. dtypedata-type, optional Overrides the data type of the result. New in version 1.6.0. order{‘C’, ‘F’, ‘A’, or ‘K’}, optional Ov...
doc_5022
See Migration guide for more details. tf.compat.v1.sparse.softmax, tf.compat.v1.sparse_softmax tf.sparse.softmax( sp_input, name=None ) The inputs represent an N-D SparseTensor with logical shape [..., B, C] (where N >= 2), and with indices sorted in the canonical lexicographic order. This op is equivalent to ap...
doc_5023
The value is True. Deprecated, because Python now always has threads.
doc_5024
You have to override the test_func() method of the class to provide the test that is performed. Furthermore, you can set any of the parameters of AccessMixin to customize the handling of unauthorized users: from django.contrib.auth.mixins import UserPassesTestMixin class MyView(UserPassesTestMixin, View): def tes...
doc_5025
Return the range vmin, vmax, restricted to the domain supported by this scale (if any). minpos should be the minimum positive value in the data. This is used by log scales to determine a minimum value.
doc_5026
Check if the given value should be tagged by this tag. Parameters value (Any) – Return type bool
doc_5027
'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', ] } You can also set the authentication scheme on a per-view or per-viewset basis, using the APIView class-based views. from rest_framework.authenticat...
doc_5028
The save_formset method is given the HttpRequest, the parent ModelForm instance and a boolean value based on whether it is adding or changing the parent object. For example, to attach request.user to each changed formset model instance: class ArticleAdmin(admin.ModelAdmin): def save_formset(self, request, form, for...
doc_5029
sklearn.datasets.load_files(container_path, *, description=None, categories=None, load_content=True, shuffle=True, encoding=None, decode_error='strict', random_state=0) [source] Load text files with categories as subfolder names. Individual samples are assumed to be files stored a two levels folder structure such as ...
doc_5030
Add contour label using ClabelText class.
doc_5031
mmap.MADV_RANDOM mmap.MADV_SEQUENTIAL mmap.MADV_WILLNEED mmap.MADV_DONTNEED mmap.MADV_REMOVE mmap.MADV_DONTFORK mmap.MADV_DOFORK mmap.MADV_HWPOISON mmap.MADV_MERGEABLE mmap.MADV_UNMERGEABLE mmap.MADV_SOFT_OFFLINE mmap.MADV_HUGEPAGE mmap.MADV_NOHUGEPAGE mmap.MADV_DONTDUMP mmap.MADV_DODUMP m...
doc_5032
Create a Series with sparse values from a scipy.sparse.coo_matrix. Parameters A:scipy.sparse.coo_matrix dense_index:bool, default False If False (default), the SparseSeries index consists of only the coords of the non-null entries of the original coo_matrix. If True, the SparseSeries index consists of the ful...
doc_5033
Returns False if the password is a result of User.set_unusable_password().
doc_5034
Set the artist's clip path. Parameters pathPatch or Path or TransformedPath or None The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed. transformTransform, optional Only used if path is a Path, in which case the given Path is converted to a Tra...
doc_5035
Converts submodules in input module to a different module according to mapping by calling from_float method on the target module class. And remove qconfig at the end if remove_qconfig is set to True. Parameters module – prepared and calibrated module mapping – a dictionary that maps from source module type to ta...
doc_5036
The .pyc file includes a hash of the source file content, which Python will compare against the source at runtime to determine if the .pyc file needs to be regenerated.
doc_5037
A mixin class providing common behavior for all date-based views. Methods and Attributes date_field The name of the DateField or DateTimeField in the QuerySet’s model that the date-based archive should use to determine the list of objects to display on the page. When time zone support is enabled and date_field is a...
doc_5038
Return the string bounding box and the maximal descent.
doc_5039
Upsamples the input to either the given size or the given scale_factor Warning This function is deprecated in favor of torch.nn.quantized.functional.interpolate(). This is equivalent with nn.quantized.functional.interpolate(...). See torch.nn.functional.interpolate() for implementation details. The input dimensions...
doc_5040
Performs the outer-product of vectors vec1 and vec2 and adds it to the matrix input. Optional values beta and alpha are scaling factors on the outer product between vec1 and vec2 and the added matrix input respectively. out=β input+α(vec1⊗vec2)\text{out} = \beta\ \text{input} + \alpha\ (\text{vec1} \otimes \text{vec2}...
doc_5041
alias of werkzeug.datastructures.ImmutableMultiDict
doc_5042
Predict class log-probabilities for X. The predicted class log-probabilities of an input sample is computed as the weighted mean predicted class log-probabilities of the classifiers in the ensemble. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Sparse matri...
doc_5043
Like Flask.after_request() but for a blueprint. Such a function is executed after each request, even if outside of the blueprint. Parameters f (Callable[[Response], Response]) – Return type Callable[[Response], Response]
doc_5044
See Migration guide for more details. tf.compat.v1.raw_ops.ReaderRestoreState tf.raw_ops.ReaderRestoreState( reader_handle, state, name=None ) Not all Readers support being restored, so this can produce an Unimplemented error. Args reader_handle A Tensor of type mutable string. Handle to a Reader. s...
doc_5045
Start a socket server. The client_connected_cb callback is called whenever a new client connection is established. It receives a (reader, writer) pair as two arguments, instances of the StreamReader and StreamWriter classes. client_connected_cb can be a plain callable or a coroutine function; if it is a coroutine funct...
doc_5046
Compute probabilities of possible outcomes for samples in X. The model need to have probability information computed at training time: fit with attribute probability set to True. Parameters Xarray-like of shape (n_samples, n_features) For kernel=”precomputed”, the expected shape of X is (n_samples_test, n_samples...
doc_5047
Bases: mpl_toolkits.axes_grid1.inset_locator.BboxConnector Connect two bboxes with a quadrilateral. The quadrilateral is specified by two lines that start and end at corners of the bboxes. The four sides of the quadrilateral are defined by the two lines given, the line between the two corners specified in bbox1 and t...
doc_5048
tf.compat.v1.layers.experimental.set_keras_style() All tf.layers and tf RNN cells created after keras style ha been enabled use Keras-style variable management. Creating such layers with a scope= argument is disallowed, and reuse=True is disallowed. The purpose of this function is to allow users of existing layers to ...
doc_5049
create a Font object from the system fonts SysFont(name, size, bold=False, italic=False) -> Font Return a new Font object that is loaded from the system fonts. The font will match the requested bold and italic flags. Pygame uses a small set of common font aliases. If the specific font you ask for is not available, a ...
doc_5050
Creates and returns a new LogRecord instance whose attributes are defined by attrdict. This function is useful for taking a pickled LogRecord attribute dictionary, sent over a socket, and reconstituting it as a LogRecord instance at the receiving end.
doc_5051
Applies a linear transformation to the incoming data: y=xAT+by = xA^T + b This module supports TensorFloat32. Parameters in_features – size of each input sample out_features – size of each output sample bias – If set to False, the layer will not learn an additive bias. Default: True Shape: Input: (N,∗,H...
doc_5052
tf.DeviceSpec( job=None, replica=None, task=None, device_type=None, device_index=None ) DeviceSpecs are used throughout TensorFlow to describe where state is stored and computations occur. Using DeviceSpec allows you to parse device spec strings to verify their validity, merge them or compose them programmatically...
doc_5053
Return the minimum of the values over the requested axis. If you want the index of the minimum, use idxmin. This is the equivalent of the numpy.ndarray method argmin. Parameters axis:{index (0)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when computing the resul...
doc_5054
See Migration guide for more details. tf.compat.v1.image.ssim tf.image.ssim( img1, img2, max_val, filter_size=11, filter_sigma=1.5, k1=0.01, k2=0.03 ) This function is based on the standard SSIM implementation from: Wang, Z., Bovik, A. C., Sheikh, H. R., & Simoncelli, E. P. (2004). Image quality assessment: from...
doc_5055
x.__setitem__(i, y) <==> x[i]=y Set item described by index. If value is masked, masks those locations.
doc_5056
This is a required argument. The name of the extension to be installed.
doc_5057
Computes the sum of all values of the given expression. Default alias: <field>__sum Return type: same as input field, or output_field if supplied Has one optional argument: distinct If distinct=True, Sum returns the sum of unique values. This is the SQL equivalent of SUM(DISTINCT <field>). The default value is F...
doc_5058
Pass a ResizeEvent to all functions connected to resize_event.
doc_5059
stat.FILE_ATTRIBUTE_COMPRESSED stat.FILE_ATTRIBUTE_DEVICE stat.FILE_ATTRIBUTE_DIRECTORY stat.FILE_ATTRIBUTE_ENCRYPTED stat.FILE_ATTRIBUTE_HIDDEN stat.FILE_ATTRIBUTE_INTEGRITY_STREAM stat.FILE_ATTRIBUTE_NORMAL stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED stat.FILE_ATTRIBUTE_NO_SCRUB_DATA stat.FILE_ATTRIBUTE...
doc_5060
Send an RFC 822-style header to the server. It sends a line to the server consisting of the header, a colon and a space, and the first argument. If more arguments are given, continuation lines are sent, each consisting of a tab and an argument.
doc_5061
See Migration guide for more details. tf.compat.v1.io.parse_single_example tf.compat.v1.parse_single_example( serialized, features, name=None, example_names=None ) Similar to parse_example, except: For dense tensors, the returned Tensor is identical to the output of parse_example, except there is no batch dimens...
doc_5062
tf.compat.v1.hessians( ys, xs, name='hessians', colocate_gradients_with_ops=False, gate_gradients=False, aggregation_method=None ) hessians() adds ops to the graph to output the Hessian matrix of ys with respect to xs. It returns a list of Tensor of length len(xs) where each tensor is the Hessian of sum(ys). T...
doc_5063
tf.keras.applications.inception_resnet_v2.InceptionResNetV2 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.InceptionResNetV2, tf.compat.v1.keras.applications.inception_resnet_v2.InceptionResNetV2 tf.keras.applications.InceptionResNetV2( include_top=True, weights...
doc_5064
Return the PEP 3147/PEP 488 path to the byte-compiled file associated with the source path. For example, if path is /foo/bar/baz.py the return value would be /foo/bar/__pycache__/baz.cpython-32.pyc for Python 3.2. The cpython-32 string comes from the current magic tag (see get_tag(); if sys.implementation.cache_tag is ...
doc_5065
boolean, indicates whether the request is unverifiable as defined by RFC 2965.
doc_5066
Truncate a Series or DataFrame before and after some index value. This is a useful shorthand for boolean indexing based on index values above or below certain thresholds. Parameters before:date, str, int Truncate all rows before this index value. after:date, str, int Truncate all rows after this index value...
doc_5067
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_5068
See Migration guide for more details. tf.compat.v1.raw_ops.InitializeTable tf.raw_ops.InitializeTable( table_handle, keys, values, name=None ) Args table_handle A Tensor of type mutable string. Handle to a table which will be initialized. keys A Tensor. Keys of type Tkey. values A Tensor. Va...
doc_5069
Mask for permissions for others (not in group).
doc_5070
Creates a mask by thresholding Surfaces from_threshold(Surface, color) -> Mask from_threshold(Surface, color, threshold=(0, 0, 0, 255), othersurface=None, palette_colors=1) -> Mask This is a more featureful method of getting a Mask from a surface. If the optional othersurface is not used, all the pixels within the th...
doc_5071
Return an object capturing the current internal state of the generator. This object can be passed to setstate() to restore the state.
doc_5072
A helper routine to generate a cmap and a norm instance which behave similar to contourf's levels and colors arguments. Parameters levelssequence of numbers The quantization levels used to construct the BoundaryNorm. Value v is quantized to level i if lev[i] <= v < lev[i+1]. colorssequence of colors The fil...
doc_5073
Return self/=value.
doc_5074
Returns true if the DE-9IM intersection matrix for the two geometries is T*T***T** (for two points or two surfaces) 1*T***T** (for two curves).
doc_5075
See Migration guide for more details. tf.compat.v1.math.special.bessel_k0e tf.math.special.bessel_k0e( x, name=None ) Modified Bessel function of order 0. tf.math.special.bessel_k0e([0.5, 1., 2., 4.]).numpy() array([1.52410939, 1.14446308, 0.84156822, 0.60929767], dtype=float32) Args x A Tensor or Spa...
doc_5076
Calculate the rolling mean. Parameters *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba. None : Defaults to 'cython' or globally ...
doc_5077
Return a new UUID, in the format that MSI typically requires (i.e. in curly braces, and with all hexdigits in upper-case).
doc_5078
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_5079
Length of one array element in bytes. Examples >>> x = np.array([1,2,3], dtype=np.float64) >>> x.itemsize 8 >>> x = np.array([1,2,3], dtype=np.complex128) >>> x.itemsize 16
doc_5080
[Deprecated] Return x, y, and the index of a label location. Labels are plotted at a location with the smallest deviation of the contour from a straight line unless there is another label nearby, in which case the next best place on the contour is picked up. If all such candidates are rejected, the beginning of the c...
doc_5081
Load a set of “certification authority” (CA) certificates used to validate other peers’ certificates when verify_mode is other than CERT_NONE. At least one of cafile or capath must be specified. This method can also load certification revocation lists (CRLs) in PEM or DER format. In order to make use of CRLs, SSLContex...
doc_5082
tf.compat.v1.enable_v2_behavior() This function can be called at the beginning of the program (before Tensors, Graphs or other structures have been created, and before devices have been initialized. It switches all global behaviors that are different between TensorFlow 1.x and 2.x to behave as intended for 2.x. This f...
doc_5083
Build a decision tree regressor from the training set (X, y). Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csc_matrix. yarray-like of shape (n_samples,) o...
doc_5084
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
doc_5085
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_5086
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_5087
Compute log probabilities of possible outcomes for samples in X. The model need to have probability information computed at training time: fit with attribute probability set to True. Parameters Xarray-like of shape (n_samples, n_features) or (n_samples_test, n_samples_train) For kernel=”precomputed”, the expected...
doc_5088
Actually processes the request by instantiating RequestHandlerClass and calling its handle() method.
doc_5089
Generate a UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a string).
doc_5090
See Migration guide for more details. tf.compat.v1.image.adjust_hue tf.image.adjust_hue( image, delta, name=None ) This is a convenience method that converts an RGB image to float representation, converts it to HSV, adds an offset to the hue channel, converts back to RGB and then back to the original data type. ...
doc_5091
Create special chart by collecting charts tags in ‘scalars’. Note that this function can only be called once for each SummaryWriter() object. Because it only provides metadata to tensorboard, the function can be called before or after the training loop. Parameters layout (dict) – {categoryName: charts}, where chart...
doc_5092
Exception raised by Connection.recv_bytes_into() when the supplied buffer object is too small for the message read. If e is an instance of BufferTooShort then e.args[0] will give the message as a byte string.
doc_5093
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
doc_5094
Create RangeIndex from a range object. Returns RangeIndex
doc_5095
Returns True if all elements evaluate to True. The output array is masked where all the values along the given axis are masked: if the output would have been a scalar and that all the values are masked, then the output is masked. Refer to numpy.all for full documentation. See also numpy.ndarray.all corresponding f...
doc_5096
tf.compat.v1.metrics.percentage_below( values, threshold, weights=None, metrics_collections=None, updates_collections=None, name=None ) The percentage_below function creates two local variables, total and count that are used to compute the percentage of values that fall below threshold. This rate is weighted b...
doc_5097
Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of the wiggle along the line, in pixels (default 128.0) randomnessfloat...
doc_5098
Returns the indices of the maximum value of all elements in the input tensor. This is the second value returned by torch.max(). See its documentation for the exact semantics of this method. Note If there are multiple minimal values then the indices of the first minimal value are returned. Parameters input (Tensor) ...
doc_5099
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.