_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_16200 |
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_16201 |
Return a string representation of data. 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. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ... | |
doc_16202 |
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | |
doc_16203 | See Migration guide for more details. tf.compat.v1.raw_ops.EncodeBase64
tf.raw_ops.EncodeBase64(
input, pad=False, name=None
)
Refer to the following article for more information on base64 format: en.wikipedia.org/wiki/Base64. Base64 strings may have padding with '=' at the end so that the encoded has length mul... | |
doc_16204 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalMapAndBatchDataset
tf.raw_ops.ExperimentalMapAndBatchDataset(
input_dataset, other_arguments, batch_size, num_parallel_calls, drop_remainder,
f, output_types, output_shapes, preserve_cardinality=False, name=None
)
Creates a dataset that a... | |
doc_16205 | Returns a new tensor with the cosine of the elements of input. outi=cos(inputi)\text{out}_{i} = \cos(\text{input}_{i})
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4)
>>> a
tensor([ 1.4309, 1.2706, -0.8562, 0.9796])
... | |
doc_16206 | Similar to push() but expects either an asynchronous context manager or a coroutine function. | |
doc_16207 | a dictionary with all options that were passed to the register_blueprint() method. | |
doc_16208 | This class can be used to convert a file-like object into an iterable. It yields buffer_size blocks until the file is fully read. You should not use this class directly but rather use the wrap_file() function that uses the WSGI server’s file wrapper support if it’s available. Changelog New in version 0.5. If you’re u... | |
doc_16209 |
Alias for set_facecolor. | |
doc_16210 |
Return the Transform instance used by this artist offset. | |
doc_16211 |
Finish any processing for writing the movie. | |
doc_16212 | Write a file into the archive. The contents is data, which may be either a str or a bytes instance; if it is a str, it is encoded as UTF-8 first. zinfo_or_arcname is either the file name it will be given in the archive, or a ZipInfo instance. If it’s an instance, at least the filename, date, and time must be given. If ... | |
doc_16213 | Return the payload of the part as either a string (for text parts), an EmailMessage object (for message/rfc822 parts), or a bytes object (for all other non-multipart types). Raise a KeyError if called on a multipart. If the part is a text part and errors is specified, use it as the error handler when decoding the paylo... | |
doc_16214 | class xmlrpc.client.ServerProxy(uri, transport=None, encoding=None, verbose=False, allow_none=False, use_datetime=False, use_builtin_types=False, *, headers=(), context=None)
A ServerProxy instance is an object that manages communication with a remote XML-RPC server. The required first argument is a URI (Uniform Reso... | |
doc_16215 |
Add a vertical line across the Axes. Parameters
xfloat, default: 0
x position in data coordinates of the vertical line.
yminfloat, default: 0
Should be between 0 and 1, 0 being the bottom of the plot, 1 the top of the plot.
ymaxfloat, default: 1
Should be between 0 and 1, 0 being the bottom of the plot,... | |
doc_16216 | A generic version of collections.abc.MutableSet. Deprecated since version 3.9: collections.abc.MutableSet now supports []. See PEP 585 and Generic Alias Type. | |
doc_16217 |
Other Members
COMPILER_VERSION '7.3.1 20180303'
GIT_VERSION 'v2.4.0-rc4-71-g582c8d236cb'
GRAPH_DEF_VERSION 561
GRAPH_DEF_VERSION_MIN_CONSUMER 0
GRAPH_DEF_VERSION_MIN_PRODUCER 0
VERSION '2.4.0' | |
doc_16218 | setName()
Old getter/setter API for name; use it directly as a property instead. | |
doc_16219 |
Apply the dimension reduction. Parameters
Xarray-like of shape (n_samples, n_features)
Samples to transform.
Yarray-like of shape (n_samples, n_targets), default=None
Target vectors.
copybool, default=True
Whether to copy X and Y, or perform in-place normalization. Returns
x_scores if Y is not giv... | |
doc_16220 | This is a nonstandard shortcut that creates a cursor object by calling the cursor() method, calls the cursor’s execute() method with the parameters given, and returns the cursor. | |
doc_16221 | Set the current numeric umask and return the previous umask. | |
doc_16222 | tf.compat.v1.logging.warn(
msg, *args, **kwargs
) | |
doc_16223 | Return the code object for a module, or None if the module does not have a code object (as would be the case, for example, for a built-in module). Raise an ImportError if loader cannot find the requested module. Note While the method has a default implementation, it is suggested that it be overridden if possible for p... | |
doc_16224 | 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 FileNotFoundError exception will be ... | |
doc_16225 | Checks if value was signed less than max_age seconds ago, otherwise raises SignatureExpired. The max_age parameter can accept an integer or a datetime.timedelta object. | |
doc_16226 | The NAME of a template engine to use for loading the template. template_engine is passed as the using keyword argument to response_class. Default is None, which tells Django to search for the template in all configured engines. | |
doc_16227 |
Return the current number of pages in the multipage pdf file. | |
doc_16228 |
Attributes
composite_tensor CompositeTensor composite_tensor
coo_sparse CooSparse coo_sparse
dtype DataType dtype
name string name
tensor_shape TensorShapeProto tensor_shape Child Classes class CompositeTensor class CooSparse | |
doc_16229 |
Update the location of children if necessary and draw them to the given renderer. | |
doc_16230 | Checks to see if this logger has any handlers configured. This is done by looking for handlers in this logger and its parents in the logger hierarchy. Returns True if a handler was found, else False. The method stops searching up the hierarchy whenever a logger with the ‘propagate’ attribute set to false is found - tha... | |
doc_16231 |
Bases: matplotlib.mathtext.MathtextBackend Store information to write a mathtext rendering to the text path machinery. get_results(box, used_characters)[source]
Return a backend-specific tuple to return to the backend after all processing is done.
render_glyph(ox, oy, info)[source]
Draw a glyph described by... | |
doc_16232 |
Check whether all characters in each string are numeric. This is equivalent to running the Python string method str.isnumeric() for each element of the Series/Index. If a string has zero characters, False is returned for that check. Returns
Series or Index of bool
Series or Index of boolean values with the same l... | |
doc_16233 |
Fit a semi-supervised label propagation model based All the input data is provided matrix X (labeled and unlabeled) and corresponding label matrix y with a dedicated marker value for unlabeled samples. Parameters
Xarray-like of shape (n_samples, n_features)
A matrix of shape (n_samples, n_samples) will be creat... | |
doc_16234 | bytearray.islower()
Return True if there is at least one lowercase ASCII character in the sequence and no uppercase ASCII characters, False otherwise. For example: >>> b'hello world'.islower()
True
>>> b'Hello world'.islower()
False
Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopq... | |
doc_16235 | Lookup name in the table and return a Symbol instance. | |
doc_16236 |
Least squares fit of Chebyshev series to data. Return the coefficients of a Chebyshev series of degree deg that is the least squares fit to the data values y given at points x. If y is 1-D the returned coefficients will also be 1-D. If y is 2-D multiple fits are done, one for each column of y, and the resulting coeff... | |
doc_16237 | See torch.pinverse() | |
doc_16238 |
Bases: matplotlib.axes._axes.Axes A polar graph projection, where the input dimensions are theta, r. Theta starts pointing east and goes anti-clockwise. Build an Axes in a figure. Parameters
figFigure
The Axes is built in the Figure fig.
rect[left, bottom, width, height]
The Axes is built in the rectangle r... | |
doc_16239 |
Calculate the expanding quantile. Parameters
quantile:float
Quantile to compute. 0 <= quantile <= 1.
interpolation:{‘linear’, ‘lower’, ‘higher’, ‘midpoint’, ‘nearest’}
This optional parameter specifies the interpolation method to use, when the desired quantile lies between two data points i and j:
linear... | |
doc_16240 | Acts just like HttpResponse but uses a 410 status code. | |
doc_16241 |
Return a string containing user additions to the tex preamble. | |
doc_16242 |
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_16243 | Token value for "/". | |
doc_16244 | control how held keys are repeated set_repeat() -> None set_repeat(delay) -> None set_repeat(delay, interval) -> None When the keyboard repeat is enabled, keys that are held down will generate multiple pygame.KEYDOWN events. The delay parameter is the number of milliseconds before the first repeated pygame.KEYDOWN ev... | |
doc_16245 | Returns the url to redirect to when the nominated object has been successfully deleted. Returns success_url by default. | |
doc_16246 | Class that simulates a string object. The instance’s content is kept in a regular string object, which is accessible via the data attribute of UserString instances. The instance’s contents are initially set to a copy of seq. The seq argument can be any object which can be converted into a string using the built-in str(... | |
doc_16247 |
Register a custom accessor on DataFrame objects. Parameters
name:str
Name under which the accessor should be registered. A warning is issued if this name conflicts with a preexisting attribute. Returns
callable
A class decorator. See also register_dataframe_accessor
Register a custom accessor on Da... | |
doc_16248 |
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_16249 |
Set the normalization instance. Parameters
normNormalize or None
Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default. | |
doc_16250 |
Alias for tzinfo. Examples
>>> ts = pd.Timestamp(1584226800, unit='s', tz='Europe/Stockholm')
>>> ts.tz
<DstTzInfo 'Europe/Stockholm' CET+1:00:00 STD> | |
doc_16251 |
Bases: matplotlib.patches.Patch A fancy arrow patch. It draws an arrow using the ArrowStyle. The head and tail positions are fixed at the specified start and end points of the arrow, but the size and shape (in display coordinates) of the arrow does not change when the axis is moved or zoomed. There are two ways for d... | |
doc_16252 | See Migration guide for more details. tf.compat.v1.math.special.bessel_k1
tf.math.special.bessel_k1(
x, name=None
)
Modified Bessel function of order 1. It is preferable to use the numerically stabler function k1e(x) instead.
tf.math.special.bessel_k1([0.5, 1., 2., 4.]).numpy()
array([1.65644112, 0.60190723, 0.... | |
doc_16253 | Do formatting for a record - if a formatter is set, use it. Otherwise, use the default formatter for the module. | |
doc_16254 | tf.experimental.numpy.diagonal(
a, offset=0, axis1=0, axis2=1
)
See the NumPy documentation for numpy.diagonal. | |
doc_16255 | tf.estimator.BaselineClassifier(
model_dir=None, n_classes=2, weight_column=None, label_vocabulary=None,
optimizer='Ftrl', config=None,
loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE
)
This classifier ignores feature values and will learn to predict the average value of each label. For single-... | |
doc_16256 | Register a TestResult object for control-c handling. Registering a result stores a weak reference to it, so it doesn’t prevent the result from being garbage collected. Registering a TestResult object has no side-effects if control-c handling is not enabled, so test frameworks can unconditionally register all results th... | |
doc_16257 | Indicates whether the named section is present in the configuration. The default section is not acknowledged. | |
doc_16258 | See Migration guide for more details. tf.compat.v1.feature_column.sequence_categorical_column_with_vocabulary_file
tf.feature_column.sequence_categorical_column_with_vocabulary_file(
key, vocabulary_file, vocabulary_size=None, num_oov_buckets=0,
default_value=None, dtype=tf.dtypes.string
)
Pass this to embed... | |
doc_16259 |
Bases: mpl_toolkits.axes_grid1.axes_size._Base Scaled size whose relative part corresponds to the data height of the axes multiplied by the aspect. get_size(renderer)[source]
Examples using mpl_toolkits.axes_grid1.axes_size.AxesY
HBoxDivider demo
Simple Axes Divider 3 | |
doc_16260 | A concrete implementation of TestResult used by the TextTestRunner. New in version 3.2: This class was previously named _TextTestResult. The old name still exists as an alias but is deprecated. | |
doc_16261 |
Returns the state of the scheduler as a dict. It contains an entry for every variable in self.__dict__ which is not the optimizer. The learning rate lambda functions will only be saved if they are callable objects and not if they are functions or lambdas. When saving or loading the scheduler, please make sure to also... | |
doc_16262 | '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_16263 | Walk a stack following f.f_back from the given frame, yielding the frame and line number for each frame. If f is None, the current stack is used. This helper is used with StackSummary.extract(). New in version 3.5. | |
doc_16264 | Remove the handler for the sig signal. Return True if the signal handler was removed, or False if no handler was set for the given signal. Availability: Unix. | |
doc_16265 | This is a mixin class that helps with HTTP authentication, both to the remote host and to a proxy. password_mgr, if given, should be something that is compatible with HTTPPasswordMgr; refer to section HTTPPasswordMgr Objects for information on the interface that must be supported. If passwd_mgr also provides is_authent... | |
doc_16266 |
Bases: matplotlib.offsetbox.OffsetBox Parameters
padfloat, optional
The boundary padding in points.
sepfloat, optional
The spacing between items in points.
width, heightfloat, optional
Width and height of the container box in pixels, calculated if None.
align{'top', 'bottom', 'left', 'right', 'center'... | |
doc_16267 |
Set multiple properties at once. Supported properties are
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha scalar or None
animated bool
antialiased or aa bool or None
capstyle CapStyle or {'butt', 'projecting', 'r... | |
doc_16268 | A list of actions to make available on the change list page. See Admin actions for details. | |
doc_16269 | '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_16270 |
For GUI backends, resize the window (in physical pixels). | |
doc_16271 | Like Flask.context_processor() but for a blueprint. Such a function is executed each request, even if outside of the blueprint. Parameters
f (Callable[[], Dict[str, Any]]) – Return type
Callable[[], Dict[str, Any]] | |
doc_16272 | A subclass of SSLError raised by a non-blocking SSL socket when trying to read or write data, but more data needs to be received on the underlying TCP transport before the request can be fulfilled. New in version 3.3. | |
doc_16273 |
Launch photo of DSCOVR on Falcon 9 by SpaceX. This is the launch photo of Falcon 9 carrying DSCOVR lifted off from SpaceX’s Launch Complex 40 at Cape Canaveral Air Force Station, FL. Returns
rocket(427, 640, 3) uint8 ndarray
Rocket image. Notes This image was downloaded from SpaceX Photos. The image was cap... | |
doc_16274 |
Call self as a function. | |
doc_16275 | New in Django 4.0. If a logger is set, logs the message at the given integer logging level (e.g. logging.DEBUG, logging.INFO, or logging.WARNING). Otherwise, the message is printed to the console, respecting the current verbosity. For example, no message will be printed if the verbosity is 0, INFO and above will be p... | |
doc_16276 |
Construct from two arrays defining the left and right bounds. Parameters
left:array-like (1-dimensional)
Left bounds for each interval.
right:array-like (1-dimensional)
Right bounds for each interval.
closed:{‘left’, ‘right’, ‘both’, ‘neither’}, default ‘right’
Whether the intervals are closed on the le... | |
doc_16277 | The maximum number of pseudo-terminals created by this user id. Availability: FreeBSD 9 or later. New in version 3.4. | |
doc_16278 |
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_16279 |
Bases: matplotlib.patches.ArrowStyle._Curve An arrow with an outward square bracket at its end. Parameters
widthBfloat, default: 1.0
Width of the bracket.
lengthBfloat, default: 0.2
Length of the bracket.
angleBfloat, default: 0 degrees
Orientation of the bracket, as a counterclockwise angle. 0 degrees ... | |
doc_16280 |
Creates a criterion that optimizes a multi-class multi-classification hinge loss (margin-based loss) between input xx (a 2D mini-batch Tensor) and output yy (which is a 2D Tensor of target class indices). For each sample in the mini-batch: loss(x,y)=∑ijmax(0,1−(x[y[j]]−x[i]))x.size(0)\text{loss}(x, y) = \sum_{ij}... | |
doc_16281 | See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomGetKeyCounterAlg
tf.raw_ops.StatelessRandomGetKeyCounterAlg(
seed, name=None
)
This op picks the best counter-based RNG algorithm based on device, and scrambles a shape-[2] seed into a key and a counter, both needed by the counter-based al... | |
doc_16282 | When called without arguments this function removes the control-c handler if it has been installed. This function can also be used as a test decorator to temporarily remove the handler while the test is being executed: @unittest.removeHandler
def test_signal_handling(self):
... | |
doc_16283 |
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_16284 | Default widget: TextInput
Empty value: Whatever you’ve given as empty_value. Normalizes to: A string. Uses validate_slug or validate_unicode_slug to validate that the given value contains only letters, numbers, underscores, and hyphens. Error messages: required, invalid
This field is intended for use in representin... | |
doc_16285 | tf.compat.v1.distributions.Bernoulli(
logits=None, probs=None, dtype=tf.dtypes.int32, validate_args=False,
allow_nan_stats=True, name='Bernoulli'
)
The Bernoulli distribution with probs parameter, i.e., the probability of a 1 outcome (vs a 0 outcome).
Args
logits An N-D Tensor representing the log-odd... | |
doc_16286 | Constructor for a LIFO queue. maxsize is an integer that sets the upperbound limit on the number of items that can be placed in the queue. Insertion will block once this size has been reached, until queue items are consumed. If maxsize is less than or equal to zero, the queue size is infinite. | |
doc_16287 |
Observer module for computing the quantization parameters based on the moving average of the min and max values. This observer computes the quantization parameters based on the moving averages of minimums and maximums of the incoming tensors. The module records the average minimum and maximum of incoming tensors, and... | |
doc_16288 | Decode the Ascii85 encoded bytes-like object or ASCII string b and return the decoded bytes. foldspaces is a flag that specifies whether the ‘y’ short sequence should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the “standard” Ascii85 encoding. adobe controls whether ... | |
doc_16289 |
Set multiple properties at once. Supported properties are
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha scalar or None
animated bool
bbox_to_anchor unknown
child unknown
clip_box Bbox
clip_on bool
clip_pa... | |
doc_16290 | operator.__itruediv__(a, b)
a = itruediv(a, b) is equivalent to a /= b. | |
doc_16291 | The username passed as remote_user is considered trusted. This method returns the user object with the given username, creating a new user object if create_unknown_user is True. Returns None if create_unknown_user is False and a User object with the given username is not found in the database. request is an HttpRequest... | |
doc_16292 | If time is non-zero, this function requests that a SIGALRM signal be sent to the process in time seconds. Any previously scheduled alarm is canceled (only one alarm can be scheduled at any time). The returned value is then the number of seconds before any previously set alarm was to have been delivered. If time is zero... | |
doc_16293 | See Migration guide for more details. tf.compat.v1.raw_ops.Igammac
tf.raw_ops.Igammac(
a, x, name=None
)
The upper regularized incomplete Gamma function is defined as: \(Q(a, x) = Gamma(a, x) / Gamma(a) = 1 - P(a, x)\) where \(Gamma(a, x) = int_{x}^{\infty} t^{a-1} exp(-t) dt\) is the upper incomplete Gama funct... | |
doc_16294 |
Bases: matplotlib.blocking_input.BlockingInput Callable for retrieving mouse clicks and key presses in a blocking way. post_event()[source]
Determine if it is a key event. | |
doc_16295 |
Get item from object for given key (ex: DataFrame column). Returns default value if not found. Parameters
key:object
Returns
value:same type as items contained in object
Examples
>>> df = pd.DataFrame(
... [
... [24.3, 75.7, "high"],
... [31, 87.8, "high"],
... [22, 71.6, "m... | |
doc_16296 | See Migration guide for more details. tf.compat.v1.distribute.experimental.CollectiveHints
tf.distribute.experimental.CollectiveHints(
bytes_per_pack=0, timeout_seconds=None
)
This can be passed to methods like tf.distribute.get_replica_context().all_reduce() to optimize collective operation performance. Note th... | |
doc_16297 |
This decorator indicates to the compiler that a function or method should be ignored and replaced with the raising of an exception. This allows you to leave code in your model that is not yet TorchScript compatible and still export your model. Example (using @torch.jit.unused on a method): import torch
import torch.n... | |
doc_16298 |
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_16299 |
Bases: object transform : transform from the image coordinate (which will be the transData of the axes to the world coordinate. or transform = (transform_xy, inv_transform_xy) locator1, locator2 : grid locator for 1st and 2nd axis. get_grid_info(x1, y1, x2, y2)[source]
lon_values, lat_valueslist of grid values. ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.