_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_4300 | Complex number with zero real part and positive infinity imaginary part. Equivalent to complex(0.0, float('inf')). New in version 3.6. | |
doc_4301 |
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_4302 |
Parameters
urlslist of str or None
Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends. | |
doc_4303 | Used by send_file() to determine the max_age cache value for a given file path if it wasn’t passed. By default, this returns SEND_FILE_MAX_AGE_DEFAULT from the configuration of current_app. This defaults to None, which tells the browser to use conditional requests instead of a timed cache, which is usually preferable. ... | |
doc_4304 | Sets the instance’s stream to the specified value, if it is different. The old stream is flushed before the new stream is set. Parameters
stream – The stream that the handler should use. Returns
the old stream, if the stream was changed, or None if it wasn’t. New in version 3.7. | |
doc_4305 | Returns True if the object is currently tracked by the garbage collector, False otherwise. As a general rule, instances of atomic types aren’t tracked and instances of non-atomic types (containers, user-defined objects…) are. However, some type-specific optimizations can be present in order to suppress the garbage coll... | |
doc_4306 |
Get the xlabel text string. | |
doc_4307 | class collections.abc.ItemsView
class collections.abc.KeysView
class collections.abc.ValuesView
ABCs for mapping, items, keys, and values views. | |
doc_4308 | Call the system call getsid(). See the Unix manual for the semantics. Availability: Unix. | |
doc_4309 | See Migration guide for more details. tf.compat.v1.app.flags.mark_flags_as_mutual_exclusive
tf.compat.v1.flags.mark_flags_as_mutual_exclusive(
flag_names, required=False, flag_values=_flagvalues.FLAGS
)
Important note: This validator checks if flag values are None, and it does not distinguish between default and... | |
doc_4310 | Return a date corresponding to a date_string given in the format YYYY-MM-DD: >>> from datetime import date
>>> date.fromisoformat('2019-12-04')
datetime.date(2019, 12, 4)
This is the inverse of date.isoformat(). It only supports the format YYYY-MM-DD. New in version 3.7. | |
doc_4311 | Exit code that means an operating system error was detected, such as the inability to fork or create a pipe. Availability: Unix. | |
doc_4312 |
Convert series to a different kind and/or domain and/or window. Parameters
domainarray_like, optional
The domain of the converted series. If the value is None, the default domain of kind is used.
kindclass, optional
The polynomial series type class to which the current instance should be converted. If kind ... | |
doc_4313 |
Draw a marker at each of path's vertices (excluding control points). This provides a fallback implementation of draw_markers that makes multiple calls to draw_path(). Some backends may want to override this method in order to draw the marker only once and reuse it multiple times. Parameters
gcGraphicsContextBase
... | |
doc_4314 | moves the rectangle move(x, y) -> Rect Returns a new rectangle that is moved by the given offset. The x and y arguments can be any integer value, positive or negative. | |
doc_4315 | Returns True if at least one input value is true, default if all values are null or if there are no values, otherwise False. Usage example: class Comment(models.Model):
body = models.TextField()
published = models.BooleanField()
rank = models.IntegerField()
>>> from django.db.models import Q
>>> from djang... | |
doc_4316 |
Return the cumulative sum of the elements along a given axis. Parameters
aarray_like
Input array.
axisint, optional
Axis along which the cumulative sum is computed. The default (None) is to compute the cumsum over the flattened array.
dtypedtype, optional
Type of the returned array and of the accumulato... | |
doc_4317 |
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_4318 | This is like calling Path.glob() with “**/” added in front of the given relative pattern: >>> sorted(Path().rglob("*.py"))
[PosixPath('build/lib/pathlib.py'),
PosixPath('docs/conf.py'),
PosixPath('pathlib.py'),
PosixPath('setup.py'),
PosixPath('test_pathlib.py')]
Raises an auditing event pathlib.Path.rglob with ar... | |
doc_4319 |
Return the Figure instance the artist belongs to. | |
doc_4320 | Locale category for formatting numbers. The functions format(), atoi(), atof() and str() of the locale module are affected by that category. All other numeric formatting operations are not affected. | |
doc_4321 | If self is alive then return the tuple (obj, func, args,
kwargs). If self is dead then return None. | |
doc_4322 | The version number of the run-time SQLite library, as a string. | |
doc_4323 | Increments the progress bar’s value by amount. amount defaults to 1.0 if omitted. | |
doc_4324 | Convert the data into a torch.Tensor. If the data is already a Tensor with the same dtype and device, no copy will be performed, otherwise a new Tensor will be returned with computational graph retained if data Tensor has requires_grad=True. Similarly, if the data is an ndarray of the corresponding dtype and the device... | |
doc_4325 |
Bases: tornado.websocket.WebSocketHandler on_close()[source]
Invoked when the WebSocket is closed. If the connection was closed cleanly and a status code or reason phrase was supplied, these values will be available as the attributes self.close_code and self.close_reason. Changed in version 4.0: Added close_code... | |
doc_4326 | rotates the vector around the y-axis by the angle in radians in place. rotate_y_ip_rad(angle) -> None Rotates the vector counterclockwise around the y-axis by the given angle in radians. The length of the vector is not changed. New in pygame 2.0.0. | |
doc_4327 |
Applies 2D average-pooling operation in kH×kWkH \times kW regions by step size sH×sWsH \times sW steps. The number of output features is equal to the number of input planes. Note The input quantization parameters propagate to the output. See AvgPool2d for details and output shape. Parameters
input – quantized... | |
doc_4328 |
Returns the element-wise remainder of division. Computes the remainder complementary to the floor_divide function. It is equivalent to the Python modulus operator``x1 % x2`` and has the same sign as the divisor x2. The MATLAB function equivalent to np.remainder is mod. Warning This should not be confused with: Pyth... | |
doc_4329 | Register a function to run before each request. For example, this can be used to open a database connection, or to load the logged in user from the session. @app.before_request
def load_user():
if "user_id" in session:
g.user = db.session.get(session["user_id"])
The function will be called without any argu... | |
doc_4330 | Square root of a non-negative number to context precision. | |
doc_4331 |
Set the table attributes added to the <table> HTML element. These are items in addition to automatic (by default) id attribute. Parameters
attributes:str
Returns
self:Styler
See also Styler.set_table_styles
Set the table styles included within the <style> HTML element. Styler.set_td_classes
Set the... | |
doc_4332 |
Helper function to convert all BatchNorm*D layers in the model to torch.nn.SyncBatchNorm layers. Parameters
module (nn.Module) – module containing one or more attr:BatchNorm*D layers
process_group (optional) – process group to scope synchronization, default is the whole world Returns
The original module with ... | |
doc_4333 | class sklearn.neighbors.RadiusNeighborsRegressor(radius=1.0, *, weights='uniform', algorithm='auto', leaf_size=30, p=2, metric='minkowski', metric_params=None, n_jobs=None, **kwargs) [source]
Regression based on neighbors within a fixed radius. The target is predicted by local interpolation of the targets associated ... | |
doc_4334 | Calls finish_request() to create an instance of the RequestHandlerClass. If desired, this function can create a new process or thread to handle the request; the ForkingMixIn and ThreadingMixIn classes do this. | |
doc_4335 | See Migration guide for more details. tf.compat.v1.signal.hann_window
tf.signal.hann_window(
window_length, periodic=True, dtype=tf.dtypes.float32, name=None
)
Args
window_length A scalar Tensor indicating the window length to generate.
periodic A bool Tensor indicating whether to generate a perio... | |
doc_4336 |
A Conv2d module attached with FakeQuantize modules for weight, used for quantization aware training. We adopt the same interface as torch.nn.Conv2d, please see https://pytorch.org/docs/stable/nn.html?highlight=conv2d#torch.nn.Conv2d for documentation. Similar to torch.nn.Conv2d, with FakeQuantize modules initialized ... | |
doc_4337 |
Write a DataFrame to a Google BigQuery table. This function requires the pandas-gbq package. See the How to authenticate with Google BigQuery guide for authentication instructions. Parameters
destination_table:str
Name of table to be written, in the form dataset.tablename.
project_id:str, optional
Google Bi... | |
doc_4338 | In-place version of greater(). | |
doc_4339 | tf.minimum Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.minimum, tf.compat.v1.minimum
tf.math.minimum(
x, y, name=None
)
Both inputs are number-type tensors (except complex). minimum expects that both tensors have the same dtype. Examples:
x = tf.constant([0., 0., 0., 0.]... | |
doc_4340 |
Return index of first occurrence of minimum over requested axis. NA/null values are excluded. Parameters
axis:{0 or ‘index’, 1 or ‘columns’}, default 0
The axis to use. 0 or ‘index’ for row-wise, 1 or ‘columns’ for column-wise.
skipna:bool, default True
Exclude NA/null values. If an entire row/column is NA,... | |
doc_4341 |
Multiply one polynomial by another. Returns the product of two polynomials c1 * c2. The arguments are sequences of coefficients, from lowest order term to highest, e.g., [1,2,3] represents the polynomial 1 + 2*x + 3*x**2. Parameters
c1, c2array_like
1-D arrays of coefficients representing a polynomial, relative... | |
doc_4342 | See Migration guide for more details. tf.compat.v1.config.experimental.disable_mlir_bridge
tf.config.experimental.disable_mlir_bridge() | |
doc_4343 | Return information needed to authenticate the user at the given host in the specified security realm. The return value should be a tuple, (user,
password), which can be used for basic authentication. The implementation prompts for this information on the terminal; an application should override this method to use an ap... | |
doc_4344 |
Returns the average of the array elements along given axis. Refer to numpy.mean for full documentation. See also numpy.mean
equivalent function | |
doc_4345 |
Returns a new bit generator with the state jumped The state of the returned big generator is jumped as-if 2**(128 * jumps) random numbers have been generated. Parameters
jumpsinteger, positive
Number of times to jump the state of the bit generator returned Returns
bit_generatorPhilox
New instance of gen... | |
doc_4346 |
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_4347 | A boolean indicating whether the memory BIO is current at the end-of-file position. | |
doc_4348 | See Migration guide for more details. tf.compat.v1.raw_ops.RecordInput
tf.raw_ops.RecordInput(
file_pattern, file_random_seed=301, file_shuffle_shift_ratio=0,
file_buffer_size=10000, file_parallelism=16, batch_size=32,
compression_type='', name=None
)
Args
file_pattern A string. Glob pattern for... | |
doc_4349 |
Bases: object
__init__(name, ptype=None, callback=None) [source]
Initialize self. See help(type(self)) for accurate signature.
plugin = 'Widget is not attached to a Plugin.'
property val | |
doc_4350 |
Store object in HDFStore. Parameters
key:str
value:{Series, DataFrame}
format:‘fixed(f)|table(t)’, default is ‘fixed’
Format to use when storing object in HDFStore. Value can be one of: 'fixed'
Fixed format. Fast writing/reading. Not-appendable, nor searchable. 'table'
Table format. Write as a PyTables ... | |
doc_4351 | See Migration guide for more details. tf.compat.v1.raw_ops.FIFOQueueV2
tf.raw_ops.FIFOQueueV2(
component_types, shapes=[], capacity=-1, container='',
shared_name='', name=None
)
Args
component_types A list of tf.DTypes that has length >= 1. The type of each component in a value.
shapes An opti... | |
doc_4352 |
Reverse the transformation operation Parameters
Xarray of shape [n_samples, n_selected_features]
The input samples. Returns
X_rarray of shape [n_samples, n_original_features]
X with columns of zeros inserted where features would have been removed by transform. | |
doc_4353 |
A NumPy ndarray representing the values in this Series or Index. Parameters
dtype:str or numpy.dtype, optional
The dtype to pass to numpy.asarray().
copy:bool, default False
Whether to ensure that the returned value is not a view on another array. Note that copy=False does not ensure that to_numpy() is no-c... | |
doc_4354 | Register a URL value preprocessor function for all view functions in the application. These functions will be called before the before_request() functions. The function can modify the values captured from the matched url before they are passed to the view. For example, this can be used to pop a common language code val... | |
doc_4355 |
Label a contour plot. Adds labels to line contours in given ContourSet. Parameters
CSContourSet instance
Line contours to label.
levelsarray-like, optional
A list of level values, that should be labeled. The list must be a subset of CS.levels. If not given, all levels are labeled. **kwargs
All other param... | |
doc_4356 | class sklearn.linear_model.LassoLarsIC(criterion='aic', *, fit_intercept=True, verbose=False, normalize=True, precompute='auto', max_iter=500, eps=2.220446049250313e-16, copy_X=True, positive=False) [source]
Lasso model fit with Lars using BIC or AIC for model selection The optimization objective for Lasso is: (1 / (... | |
doc_4357 | os.P_OVERLAY
Possible values for the mode parameter to the spawn* family of functions. These are less portable than those listed above. P_DETACH is similar to P_NOWAIT, but the new process is detached from the console of the calling process. If P_OVERLAY is used, the current process will be replaced; the spawn* funct... | |
doc_4358 | Collision detection between two sprites, using rects scaled to a ratio. collide_rect_ratio(ratio) -> collided_callable A callable class that checks for collisions between two sprites, using a scaled version of the sprites rects. Is created with a ratio, the instance is then intended to be passed as a collided callbac... | |
doc_4359 | See Migration guide for more details. tf.compat.v1.raw_ops.LowerBound
tf.raw_ops.LowerBound(
sorted_inputs, values, out_type=tf.dtypes.int32, name=None
)
Each set of rows with the same index in (sorted_inputs, values) is treated independently. The resulting row is the equivalent of calling np.searchsorted(sorted... | |
doc_4360 |
Return an instance of a GraphicsContextBase. | |
doc_4361 | See Migration guide for more details. tf.compat.v1.raw_ops.StatefulUniformInt
tf.raw_ops.StatefulUniformInt(
resource, algorithm, shape, minval, maxval, name=None
)
The generated values are uniform integers in the range [minval, maxval). The lower bound minval is included in the range, while the upper bound maxv... | |
doc_4362 |
Bases: matplotlib.backend_tools.AxisScaleBase Tool to toggle between linear and logarithmic scales on the Y axis. default_keymap=['l']
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
description='Toggle scale Y axi... | |
doc_4363 | Return 'Strict' or 'Lax' if the cookie should use the SameSite attribute. This currently just returns the value of the SESSION_COOKIE_SAMESITE setting. Parameters
app (Flask) – Return type
str | |
doc_4364 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_4365 |
Bases: mpl_toolkits.axes_grid1.axes_size._Base Simple scaled(?) size with absolute part = 0 and relative part = scalable_size. get_size(renderer)[source]
Examples using mpl_toolkits.axes_grid1.axes_size.Scaled
HBoxDivider demo
Axes with a fixed physical size
Simple Axes Divider 1 | |
doc_4366 | tf.compat.v1.train.create_global_step(
graph=None
)
Args
graph The graph in which to create the global step tensor. If missing, use default graph.
Returns Global step tensor.
Raises
ValueError if global step tensor is already defined. | |
doc_4367 |
Find indices where elements of v should be inserted in a to maintain order. For full documentation, see numpy.searchsorted See also numpy.searchsorted
equivalent function | |
doc_4368 |
Set the number of degrees between each latitude grid. | |
doc_4369 |
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju... | |
doc_4370 | sklearn.metrics.plot_roc_curve(estimator, X, y, *, sample_weight=None, drop_intermediate=True, response_method='auto', name=None, ax=None, pos_label=None, **kwargs) [source]
Plot Receiver operating characteristic (ROC) curve. Extra keyword arguments will be passed to matplotlib’s plot. Read more in the User Guide. P... | |
doc_4371 |
Remove trailing coefficients Remove trailing coefficients until a coefficient is reached whose absolute value greater than tol or the beginning of the series is reached. If all the coefficients would be removed the series is set to [0]. A new series instance is returned with the new coefficients. The current instance... | |
doc_4372 |
Loads a PyTorch C++ extension just-in-time (JIT) from string sources. This function behaves exactly like load(), but takes its sources as strings rather than filenames. These strings are stored to files in the build directory, after which the behavior of load_inline() is identical to load(). See the tests for good ex... | |
doc_4373 | filename2
For exceptions that involve a file system path (such as open() or os.unlink()), filename is the file name passed to the function. For functions that involve two file system paths (such as os.rename()), filename2 corresponds to the second file name passed to the function. | |
doc_4374 |
Implements AdamW algorithm. The original Adam algorithm was proposed in Adam: A Method for Stochastic Optimization. The AdamW variant was proposed in Decoupled Weight Decay Regularization. Parameters
params (iterable) – iterable of parameters to optimize or dicts defining parameter groups
lr (float, optional) – ... | |
doc_4375 | See Migration guide for more details. tf.compat.v1.app.flags.ValidationError | |
doc_4376 | Return the glyph metrics for the given text get_metrics(text, size=0) -> [(...), ...] Returns the glyph metrics for each character in text. The glyph metrics are returned as a list of tuples. Each tuple gives metrics of a single character glyph. The glyph metrics are: (min_x, max_x, min_y, max_y, horizontal_advance_x... | |
doc_4377 |
Return the tick labels for all the ticks at once. | |
doc_4378 | The Spatial Reference System Identifier (SRID) of the raster. This property is a shortcut to getting or setting the SRID through the srs attribute. >>> rst = GDALRaster({'width': 10, 'height': 20, 'srid': 4326})
>>> rst.srid
4326
>>> rst.srid = 3086
>>> rst.srid
3086
>>> rst.srs.srid # This is equivalent
3086 | |
doc_4379 |
Return the current hatching pattern. | |
doc_4380 | This will be used instead of DEFAULT_EXCEPTION_REPORTER for the current request. See Custom error reports for details. | |
doc_4381 |
Set the antialiasing state for rendering. Parameters
aabool or list of bools | |
doc_4382 |
Bases: tornado.web.RequestHandler get(fignum, fmt)[source] | |
doc_4383 | See Migration guide for more details. tf.compat.v1.compat.path_to_str
tf.compat.path_to_str(
path
)
Converts from any python constant representation of a PathLike object to a string. If the input is not a PathLike object, simply returns the input.
Args
path An object that can be converted to path repres... | |
doc_4384 | sklearn.cluster.compute_optics_graph(X, *, min_samples, max_eps, metric, p, metric_params, algorithm, leaf_size, n_jobs) [source]
Computes the OPTICS reachability graph. Read more in the User Guide. Parameters
Xndarray of shape (n_samples, n_features), or (n_samples, n_samples) if metric=’precomputed’.
A featur... | |
doc_4385 | Convert all named and numeric character references (e.g. >, >, >) in the string s to the corresponding Unicode characters. This function uses the rules defined by the HTML 5 standard for both valid and invalid character references, and the list of
HTML 5 named character references. New in version 3.4. | |
doc_4386 |
Return the angle of the ellipse. | |
doc_4387 |
Encode categorical features as an integer array. The input to this transformer should be an array-like of integers or strings, denoting the values taken on by categorical (discrete) features. The features are converted to ordinal integers. This results in a single column of integers (0 to n_categories - 1) per featur... | |
doc_4388 | This function accepts an ST object from the caller in st and returns a Python list representing the equivalent parse tree. The resulting list representation can be used for inspection or the creation of a new parse tree in list form. This function does not fail so long as memory is available to build the list represent... | |
doc_4389 |
Calculate all central image moments up to a certain order. The following properties can be calculated from raw image moments:
Area as: M[0, 0]. Centroid as: {M[1, 0] / M[0, 0], M[0, 1] / M[0, 0]}. Note that raw moments are neither translation, scale nor rotation invariant. Parameters
coords(N, D) double or ... | |
doc_4390 | tf.compat.v1.tpu.experimental.AdamParameters(
learning_rate: float,
beta1: float = 0.9,
beta2: float = 0.999,
epsilon: float = 1e-08,
lazy_adam: bool = True,
sum_inside_sqrt: bool = True,
use_gradient_accumulation: bool = True,
clip_weight_min: Optional[float] = None,
clip_weight_max... | |
doc_4391 | Construct an IPv6 network definition. address can be one of the following:
A string consisting of an IP address and an optional prefix length, separated by a slash (/). The IP address is the network address, and the prefix length must be a single number, the prefix. If no prefix length is provided, it’s considered to... | |
doc_4392 |
alias of mpl_toolkits.axisartist.axisline_style._FancyAxislineStyle.SimpleArrow | |
doc_4393 |
Return True if date is last day of month. Examples
>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.is_month_end
False
>>> ts = pd.Timestamp(2020, 12, 31)
>>> ts.is_month_end
True | |
doc_4394 | Represents the C signed int datatype. The constructor accepts an optional integer initializer; no overflow checking is done. On platforms where sizeof(int) == sizeof(long) it is an alias to c_long. | |
doc_4395 |
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_4396 |
Return self|=value. | |
doc_4397 |
Bases: matplotlib.text.Text, matplotlib.text._AnnotationBase An Annotation is a Text that can refer to a specific position xy. Optionally an arrow pointing from the text to xy can be drawn. Attributes
xy
The annotated position. xycoords
The coordinate system for xy. arrow_patch
A FancyArrowPatch to point from... | |
doc_4398 |
Format the number as a percentage number with the correct number of decimals and adds the percent symbol, if any. If self.decimals is None, the number of digits after the decimal point is set based on the display_range of the axis as follows:
display_range decimals sample
>50 0 x = 34.5 => 35%
>5 1 x = 34.5 => ... | |
doc_4399 | A method that returns the module object to use when importing a module. This method may return None, indicating that default module creation semantics should take place. New in version 3.4. Changed in version 3.5: Starting in Python 3.6, this method will not be optional when exec_module() is defined. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.