_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_7100 |
Find peaks in an image as coordinate list or boolean mask. Peaks are the local maxima in a region of 2 * min_distance + 1 (i.e. peaks are separated by at least min_distance). If both threshold_abs and threshold_rel are provided, the maximum of the two is chosen as the minimum intensity threshold of peaks. Changed in... | |
doc_7101 | Register a function that can respond to XML-RPC requests. If name is given, it will be the method name associated with function, otherwise function.__name__ will be used. name is a string, and may contain characters not legal in Python identifiers, including the period character. This method can also be used as a decor... | |
doc_7102 | Update environ with trivial defaults for testing purposes. This routine adds various parameters required for WSGI, including HTTP_HOST, SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO, and all of the PEP 3333-defined wsgi.* variables. It only supplies default values, and does not replace any existing s... | |
doc_7103 | Some implementations can detect when session data is read or written and set this when that happens. The mixin default is hard coded to True. | |
doc_7104 | 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_7105 | Renders the error list using the template defined by template_name_ul. | |
doc_7106 | the maximum form field size. This is forwarded to the form data parsing function (parse_form_data()). When set and the form or files attribute is accessed and the data in memory for post data is longer than the specified value a RequestEntityTooLarge exception is raised. Have a look at Dealing with Request Data for mor... | |
doc_7107 | A cache control for responses. Unlike RequestCacheControl this is mutable and gives access to response-relevant cache control headers. To get a header of the ResponseCacheControl object again you can convert the object into a string or call the to_header() method. If you plan to subclass it and add your own items have ... | |
doc_7108 |
Read a comma-separated values (csv) file into DataFrame. Also supports optionally iterating or breaking of the file into chunks. Additional help can be found in the online docs for IO Tools. Parameters
filepath_or_buffer:str, path object or file-like object
Any valid string path is acceptable. The string could ... | |
doc_7109 |
Return the (x, y) position of the text. | |
doc_7110 | This attribute is used by the __missing__() method; it is initialized from the first argument to the constructor, if present, or to None, if absent. | |
doc_7111 | os.spawnle(mode, path, ..., env)
os.spawnlp(mode, file, ...)
os.spawnlpe(mode, file, ..., env)
os.spawnv(mode, path, args)
os.spawnve(mode, path, args, env)
os.spawnvp(mode, file, args)
os.spawnvpe(mode, file, args, env)
Execute the program path in a new process. (Note that the subprocess module provides ... | |
doc_7112 | Wait until the thread terminates. This blocks the calling thread until the thread whose join() method is called terminates – either normally or through an unhandled exception – or until the optional timeout occurs. When the timeout argument is present and not None, it should be a floating point number specifying a time... | |
doc_7113 | bisect.insort(a, x, lo=0, hi=len(a))
Similar to insort_left(), but inserting x in a after any existing entries of x. | |
doc_7114 |
Set self[key] to value. | |
doc_7115 |
Return a format string formatting the x, y coordinates. | |
doc_7116 | Read the current file as unicode text. Positional and keyword arguments are passed through to io.TextIOWrapper (except buffer, which is implied by the context). | |
doc_7117 | Enter newline mode. This mode translates the return key into newline on input, and translates newline into return and line-feed on output. Newline mode is initially on. | |
doc_7118 |
Performs a single optimization step. Parameters
closure (callable, optional) – A closure that reevaluates the model and returns the loss. | |
doc_7119 | See Migration guide for more details. tf.compat.v1.raw_ops.VariableShape
tf.raw_ops.VariableShape(
input, out_type=tf.dtypes.int32, name=None
)
This operation returns a 1-D integer tensor representing the shape of input. For example: # 't' is [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]
shape(t) ==> [2, 2, 3... | |
doc_7120 | color('red', 'yellow')
begin_fill()
while True:
forward(200)
left(170)
if abs(pos()) < 1:
break
end_fill()
done()
By combining together these and similar commands, intricate shapes and pictures can easily be drawn. The turtle module is an extended reimplementation of the same-named module from the... | |
doc_7121 | class netrc.netrc([file])
A netrc instance or subclass instance encapsulates data from a netrc file. The initialization argument, if present, specifies the file to parse. If no argument is given, the file .netrc in the user’s home directory – as determined by os.path.expanduser() – will be read. Otherwise, a FileNotF... | |
doc_7122 | See Migration guide for more details. tf.compat.v1.estimator.BestExporter
tf.estimator.BestExporter(
name='best_exporter', serving_input_receiver_fn=None,
event_file_pattern='eval/*.tfevents.*', compare_fn=_loss_smaller,
assets_extra=None, as_text=False, exports_to_keep=5
)
This class performs a model ex... | |
doc_7123 |
Compute elastic net path with coordinate descent. The elastic net optimization function varies for mono and multi-outputs. For mono-output tasks it is: 1 / (2 * n_samples) * ||y - Xw||^2_2
+ alpha * l1_ratio * ||w||_1
+ 0.5 * alpha * (1 - l1_ratio) * ||w||^2_2
For multi-output tasks it is: (1 / (2 * n_samples)) * ||... | |
doc_7124 | Returns a view of input as a real tensor. For an input complex tensor of size m1,m2,…,mim1, m2, \dots, mi , this function returns a new real tensor of size m1,m2,…,mi,2m1, m2, \dots, mi, 2 , where the last dimension of size 2 represents the real and imaginary components of complex numbers. Warning view_as_real() is on... | |
doc_7125 |
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_7126 | Return the feature importances. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardinality features (many unique values). See sklearn.ins... | |
doc_7127 | Enable “passive” mode if val is true, otherwise disable passive mode. Passive mode is on by default. | |
doc_7128 |
A Union representing objects that can be coerced into a dtype. Among others this includes the likes of:
type objects. Character codes or the names of type objects. Objects with the .dtype attribute. New in version 1.20. See Also Specifying and constructing data types
A comprehensive overview of all objects th... | |
doc_7129 | An event loop for Windows that uses “I/O Completion Ports” (IOCP). Availability: Windows. See also MSDN documentation on I/O Completion Ports. | |
doc_7130 | Return or set the fillcolor. Four input formats are allowed:
fillcolor()
Return the current fillcolor as color specification string, possibly in tuple format (see example). May be used as input to another color/pencolor/fillcolor call.
fillcolor(colorstring)
Set fillcolor to colorstring, which is a Tk color spe... | |
doc_7131 |
Return the day of the week represented by the date. Monday == 1 … Sunday == 7. | |
doc_7132 |
Convenience method to get or set some axis properties. Call signatures: xmin, xmax, ymin, ymax = axis()
xmin, xmax, ymin, ymax = axis([xmin, xmax, ymin, ymax])
xmin, xmax, ymin, ymax = axis(option)
xmin, xmax, ymin, ymax = axis(**kwargs)
Parameters
xmin, xmax, ymin, ymaxfloat, optional
The axis limits to be se... | |
doc_7133 |
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_7134 | Returns a Constraint object representing this distribution’s support. | |
doc_7135 | Returns a date object containing the first day of the year before the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future. | |
doc_7136 |
Return the list of Texts in the legend. | |
doc_7137 | The help_text of the field. | |
doc_7138 | Legacy variant of the ConfigParser. It has interpolation disabled by default and allows for non-string section names, option names, and values via its unsafe add_section and set methods, as well as the legacy defaults= keyword argument handling. Changed in version 3.8: The default dict_type is dict, since it now prese... | |
doc_7139 | Validates that the given keys are contained in the value. If strict is True, then it also checks that there are no other keys present. The messages passed should be a dict containing the keys missing_keys and/or extra_keys. Note Note that this checks only for the existence of a given key, not that the value of a key i... | |
doc_7140 |
Predict regression target for X. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix. Returns
yndarray of shape (n_samples,)
The predicted values. | |
doc_7141 | Returns a new tensor with the truncated integer values of the elements of input. Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4)
>>> a
tensor([ 3.4742, 0.5466, -0.8008, -0.9079])
>>> torch.trunc(a)
tensor([ 3., 0., -0., ... | |
doc_7142 |
Return the last n rows. This function returns last n rows from the object based on position. It is useful for quickly verifying data, for example, after sorting or appending rows. For negative values of n, this function returns all rows except the first n rows, equivalent to df[n:]. Parameters
n:int, default 5
... | |
doc_7143 | External file attributes. | |
doc_7144 | Return the formatted representation of object as a string. indent, width, depth, compact and sort_dicts will be passed to the PrettyPrinter constructor as formatting parameters. Changed in version 3.4: Added the compact parameter. Changed in version 3.8: Added the sort_dicts parameter. | |
doc_7145 |
Convert dictview objects to list. Other inputs are returned unchanged. | |
doc_7146 | This non-public class is the common base class of all ctypes data types. Among other things, all ctypes type instances contain a memory block that hold C compatible data; the address of the memory block is returned by the addressof() helper function. Another instance variable is exposed as _objects; this contains other... | |
doc_7147 |
Return the topmost visible Axes containing the point xy. Parameters
xy(float, float)
(x, y) pixel positions from left/bottom of the canvas. Returns
Axes or None
The topmost visible axes containing the point, or None if no axes. | |
doc_7148 | sklearn.preprocessing.minmax_scale(X, feature_range=0, 1, *, axis=0, copy=True) [source]
Transform features by scaling each feature to a given range. This estimator scales and translates each feature individually such that it is in the given range on the training set, i.e. between zero and one. The transformation is ... | |
doc_7149 | Enable the fault handler: install handlers for the SIGSEGV, SIGFPE, SIGABRT, SIGBUS and SIGILL signals to dump the Python traceback. If all_threads is True, produce tracebacks for every running thread. Otherwise, dump only the current thread. The file must be kept open until the fault handler is disabled: see issue wit... | |
doc_7150 |
Convert argument to timedelta. Timedeltas are absolute differences in times, expressed in difference units (e.g. days, hours, minutes, seconds). This method converts an argument from a recognized timedelta format / value into a Timedelta type. Parameters
arg:str, timedelta, list-like or Series
The data to be co... | |
doc_7151 |
Fit the model to data matrix X and targets Y. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input data.
Yarray-like of shape (n_samples, n_classes)
The target values.
sample_weightarray-like of shape (n_samples,), default=None
Sample weights. If None, then samples are equa... | |
doc_7152 | sklearn.datasets.make_spd_matrix(n_dim, *, random_state=None) [source]
Generate a random symmetric, positive-definite matrix. Read more in the User Guide. Parameters
n_dimint
The matrix dimension.
random_stateint, RandomState instance or None, default=None
Determines random number generation for dataset cre... | |
doc_7153 | Force buffered data to be transmitted to the client. It’s okay if this method is a no-op (i.e., if _write() actually sends the data). | |
doc_7154 | Handles an HTTP exception. By default this will invoke the registered error handlers and fall back to returning the exception as response. Changelog Changed in version 1.0.3: RoutingException, used internally for actions such as slash redirects during routing, is not passed to error handlers. Changed in version 1.0:... | |
doc_7155 | alias of werkzeug.routing.Map | |
doc_7156 |
Enables .grad attribute for non-leaf Tensors. | |
doc_7157 |
Get parameters for this estimator. Returns the parameters given in the constructor as well as the estimators contained within the transformer_list of the FeatureUnion. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Return... | |
doc_7158 |
Denoise image using bilateral filter. Parameters
imagendarray, shape (M, N[, 3])
Input image, 2D grayscale or RGB.
win_sizeint
Window size for filtering. If win_size is not specified, it is calculated as max(5, 2 * ceil(3 * sigma_spatial) + 1).
sigma_colorfloat
Standard deviation for grayvalue/color dis... | |
doc_7159 | The expr() function parses the parameter source as if it were an input to compile(source, 'file.py', 'eval'). If the parse succeeds, an ST object is created to hold the internal parse tree representation, otherwise an appropriate exception is raised. | |
doc_7160 |
Return value at the given quantile. Parameters
q:float or array-like, default 0.5 (50% quantile)
Returns
DataFrame or Series
Quantile of values within each group. See also Series.quantile
Return a series, where the index is q and the values are the quantiles. DataFrame.quantile
Return a DataFrame, ... | |
doc_7161 | Layer is a wrapper for a layer of data in a DataSource object. You never create a Layer object directly. Instead, you retrieve them from a DataSource object, which is essentially a standard Python container of Layer objects. For example, you can access a specific layer by its index (e.g. ds[0] to access the first layer... | |
doc_7162 |
Copy properties from other to self. | |
doc_7163 |
Set both the edgecolor and the facecolor. Parameters
ccolor
See also
Patch.set_facecolor, Patch.set_edgecolor
For setting the edge or face color individually. | |
doc_7164 | Return local time as an aware datetime object. If called without arguments, return current time. Otherwise dt argument should be a datetime instance, and it is converted to the local time zone according to the system time zone database. If dt is naive (that is, dt.tzinfo is None), it is assumed to be in local time. In ... | |
doc_7165 | sklearn.utils.sparsefuncs_fast.inplace_csr_row_normalize_l1()
Inplace row normalize using the l1 norm | |
doc_7166 |
Dump a pickle of the array to the specified file. The array can be read back with pickle.load or numpy.load. Parameters
filestr or Path
A string naming the dump file. Changed in version 1.17.0: pathlib.Path objects are now accepted. | |
doc_7167 | For addresses that appear to be IPv4 mapped addresses (starting with ::FFFF/96), this property will report the embedded IPv4 address. For any other address, this property will be None. | |
doc_7168 |
Predict using the kernel ridge model Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Samples. If kernel == “precomputed” this is instead a precomputed kernel matrix, shape = [n_samples, n_samples_fitted], where n_samples_fitted is the number of samples used in the fitting for this estim... | |
doc_7169 | # One-time configuration and initialization.
def middleware(request):
# Code to be executed for each request before
# the view (and later middleware) are called.
response = get_response(request)
# Code to be executed for each request/response after
# the view is called... | |
doc_7170 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_7171 | Pixel resolution in dots per inch resolution -> int Read only. Gets pixel size used in scaling font glyphs for this Font instance. | |
doc_7172 | Return the beginning coordinates of this window relative to its parent window as a tuple (y, x). Return (-1, -1) if this window has no parent. | |
doc_7173 | A class to handle opening of HTTP URLs. | |
doc_7174 | Count the number of open file descriptors. | |
doc_7175 | Context manager to start threads. It attempts to join the threads upon exit. | |
doc_7176 |
Radial-basis function kernel (aka squared-exponential kernel). The RBF kernel is a stationary kernel. It is also known as the “squared exponential” kernel. It is parameterized by a length scale parameter \(l>0\), which can either be a scalar (isotropic variant of the kernel) or a vector with the same number of dimens... | |
doc_7177 | Return a new path with the name changed. If the original path doesn’t have a name, ValueError is raised: >>> p = PureWindowsPath('c:/Downloads/pathlib.tar.gz')
>>> p.with_name('setup.py')
PureWindowsPath('c:/Downloads/setup.py')
>>> p = PureWindowsPath('c:/')
>>> p.with_name('setup.py')
Traceback (most recent call last... | |
doc_7178 |
Bases: matplotlib.artist.Artist An artist which draws axis (a line along which the n-th axes coord is constant) line, ticks, ticklabels, and axis label. Parameters
axesmpl_toolkits.axisartist.axislines.Axes
helperAxisArtistHelper
propertyLABELPAD
ZORDER=2.5
draw(renderer)[source]
Draw the Artist... | |
doc_7179 | tf.image.sample_distorted_bounding_box(
image_size, bounding_boxes, seed=0, min_object_covered=0.1,
aspect_ratio_range=None, area_range=None, max_attempts=None,
use_image_if_no_bounding_boxes=None, name=None
)
Bounding box annotations are often supplied in addition to ground-truth labels in image recogniti... | |
doc_7180 |
Update offset of the children and return the extent of the box. Parameters
rendererRendererBase subclass
Returns
width
height
xdescent
ydescent
list of (xoffset, yoffset) pairs | |
doc_7181 | See Migration guide for more details. tf.compat.v1.sparse.slice, tf.compat.v1.sparse_slice
tf.sparse.slice(
sp_input, start, size, name=None
)
For example, if the input is input_tensor = shape = [2, 7]
[ a d e ]
[b c ]
Graphically the output tensors are: sparse.slice([0, 0], [2, 4]) = shape = [2,... | |
doc_7182 | Lists may be constructed in several ways: Using a pair of square brackets to denote the empty list: []
Using square brackets, separating items with commas: [a], [a, b, c]
Using a list comprehension: [x for x in iterable]
Using the type constructor: list() or list(iterable)
The constructor builds a list whose item... | |
doc_7183 |
Predict the closest cluster each sample in X belongs to. In the vector quantization literature, cluster_centers_ is called the code book and each value returned by predict is the index of the closest code in the code book. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
New data to pred... | |
doc_7184 | The impurity-based feature importances. The higher, the more important the feature. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardin... | |
doc_7185 |
Predict y-coordinates for 2D lines using the estimated model. Alias for: predict(x, axis=0)[:, 1]
Parameters
xarray
x-coordinates.
params(2, ) array, optional
Optional custom parameter set in the form (origin, direction). Returns
yarray
Predicted y-coordinates. | |
doc_7186 | This function attempts to guess which of the several simple database modules available — dbm.gnu, dbm.ndbm or dbm.dumb — should be used to open a given file. Returns one of the following values: None if the file can’t be opened because it’s unreadable or doesn’t exist; the empty string ('') if the file’s format can’t b... | |
doc_7187 | Get an attribute by name, or a default value. Like dict.get(). Parameters
name (str) – Name of attribute to get.
default (Optional[Any]) – Value to return if the attribute is not present. Return type
Any Changelog New in version 0.10. | |
doc_7188 | class sklearn.exceptions.NotFittedError [source]
Exception class to raise if estimator is used before fitting. This class inherits from both ValueError and AttributeError to help with exception handling and backward compatibility. Attributes
args
Examples >>> from sklearn.svm import LinearSVC
>>> from sklearn.e... | |
doc_7189 |
Return the indices of the elements that are non-zero. Refer to numpy.nonzero for full documentation. See also numpy.nonzero
equivalent function | |
doc_7190 | Similar to getch(), but the keypress will be echoed if it represents a printable character. | |
doc_7191 |
Records the event in a given stream. Uses torch.cuda.current_stream() if no stream is specified. The stream’s device must match the event’s device. | |
doc_7192 | Returns the value for the given header name. Case-insensitive. | |
doc_7193 | Returns the identifier of item’s next sibling, or ‘’ if item is the last child of its parent. | |
doc_7194 |
Select a scale for the range from vmin to vmax. Subclasses should override this method to change locator behaviour. | |
doc_7195 |
Return the url. | |
doc_7196 |
Merge DataFrame or named Series objects with a database-style join. A named Series object is treated as a DataFrame with a single named column. The join is done on columns or indexes. If joining columns on columns, the DataFrame indexes will be ignored. Otherwise if joining indexes on indexes or indexes on a column o... | |
doc_7197 | Round to nearest with ties going to nearest even integer. | |
doc_7198 | See Migration guide for more details. tf.compat.v1.app.flags.ArgumentSerializer Methods serialize
serialize(
value
)
Returns a serialized string of the value. | |
doc_7199 | Return the transport for the communication pipe corresponding to the integer file descriptor fd:
0: readable streaming transport of the standard input (stdin), or None if the subprocess was not created with stdin=PIPE
1: writable streaming transport of the standard output (stdout), or None if the subprocess was not... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.