_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_7200 |
Highlight the minimum with a style. Parameters
subset:label, array-like, IndexSlice, optional
A valid 2d input to DataFrame.loc[<subset>], or, in the case of a 1d input or single key, to DataFrame.loc[:, <subset>] where the columns are prioritised, to limit data to before applying the function.
color:str, def... | |
doc_7201 |
Returns an iterator over module parameters. This is typically passed to an optimizer. Parameters
recurse (bool) – if True, then yields parameters of this module and all submodules. Otherwise, yields only parameters that are direct members of this module. Yields
Parameter – module parameter Example: >>> for para... | |
doc_7202 | Computes and returns a pruned version of input tensor t according to the pruning rule specified in compute_mask(). Parameters
t (torch.Tensor) – tensor to prune (of same dimensions as default_mask).
importance_scores (torch.Tensor) – tensor of importance scores (of same shape as t) used to compute mask for pruning... | |
doc_7203 | Must accept a request from the socket, and return a 2-tuple containing the new socket object to be used to communicate with the client, and the client’s address. | |
doc_7204 |
Alias for get_facecolor. | |
doc_7205 | tf.keras.applications.efficientnet.EfficientNetB0 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.EfficientNetB0, tf.compat.v1.keras.applications.efficientnet.EfficientNetB0
tf.keras.applications.EfficientNetB0(
include_top=True, weights='imagenet', input_tensor=... | |
doc_7206 | decode
The stateless encoding and decoding functions. These must be functions or methods which have the same interface as the encode() and decode() methods of Codec instances (see Codec Interface). The functions or methods are expected to work in a stateless mode. | |
doc_7207 |
Copy properties from other to self. | |
doc_7208 |
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_7209 |
[Deprecated] Split code at plt.show(). Notes Deprecated since version 3.5. | |
doc_7210 |
Return a frozen copy of this transform node. The frozen copy will not be updated when its children change. Useful for storing a previously known state of a transform where copy.deepcopy() might normally be used. | |
doc_7211 | The pattern string from which the pattern object was compiled. | |
doc_7212 |
This function can be called at module-level scope to register fn_or_name as a “leaf function”. A “leaf function” will be preserved as a CallFunction node in the FX trace instead of being traced through: # foo/bar/baz.py
def my_custom_function(x, y):
return x * x + y * y
torch.fx.wrap('my_custom_function')
def f... | |
doc_7213 | For testcase test, assert that the sys.getsizeof for o plus the GC header size equals size. | |
doc_7214 | Base class for warnings about probable mistakes in module imports. Ignored by the default warning filters. Enabling the Python Development Mode shows this warning. | |
doc_7215 | Casts this storage to float type | |
doc_7216 | Returns an iterator over module buffers, yielding both the name of the buffer as well as the buffer itself. Parameters
prefix (str) – prefix to prepend to all buffer names.
recurse (bool) – if True, then yields buffers of this module and all submodules. Otherwise, yields only buffers that are direct members of thi... | |
doc_7217 |
Find the vertical edges of an image using the Scharr transform. Parameters
image2-D array
Image to process
mask2-D array, optional
An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. ... | |
doc_7218 | See Migration guide for more details. tf.compat.v1.estimator.FinalExporter
tf.estimator.FinalExporter(
name, serving_input_receiver_fn, assets_extra=None, as_text=False
)
This class performs a single export at the end of training.
Args
name unique name of this Exporter that is going to be used in the ex... | |
doc_7219 | Read size bytes or if size is not provided everything is read. Parameters
size (Optional[int]) – the number of bytes read. Return type
bytes | |
doc_7220 |
Standard container-class for easy multiple-inheritance. Methods
copy
tostring
byteswap
astype | |
doc_7221 | Though being an exception (a subclass of URLError), an HTTPError can also function as a non-exceptional file-like return value (the same thing that urlopen() returns). This is useful when handling exotic HTTP errors, such as requests for authentication.
code
An HTTP status code as defined in RFC 2616. This numeric ... | |
doc_7222 |
Return the object identifier if one is set, None otherwise. | |
doc_7223 |
Evaluate a 3-D Hermite series at points (x, y, z). This function returns the values: \[p(x,y,z) = \sum_{i,j,k} c_{i,j,k} * H_i(x) * H_j(y) * H_k(z)\] The parameters x, y, and z are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after ... | |
doc_7224 |
Return the sum along diagonals of the array. Refer to numpy.trace for full documentation. See also numpy.trace
equivalent function | |
doc_7225 | Lock part of a file based on file descriptor fd from the C runtime. Raises OSError on failure. The locked region of the file extends from the current file position for nbytes bytes, and may continue beyond the end of the file. mode must be one of the LK_* constants listed below. Multiple regions in a file may be locked... | |
doc_7226 | Force the malloc() heap to clean itself up and return unused blocks to the operating system. On failure, this raises OSError. | |
doc_7227 | turtle.setpos(x, y=None)
turtle.setposition(x, y=None)
Parameters
x – a number or a pair/vector of numbers
y – a number or None
If y is None, x must be a pair of coordinates or a Vec2D (e.g. as returned by pos()). Move turtle to an absolute position. If the pen is down, draw line. Do not change the turtle’... | |
doc_7228 | lock the Surface memory for pixel access lock() -> None Lock the pixel data of a Surface for access. On accelerated Surfaces, the pixel data may be stored in volatile video memory or nonlinear compressed forms. When a Surface is locked the pixel memory becomes available to access by regular software. Code that reads ... | |
doc_7229 | Geometry information that gets passed to callback functions. | |
doc_7230 | A type that can register with SyncManager. A namespace object has no public methods, but does have writable attributes. Its representation shows the values of its attributes. However, when using a proxy for a namespace object, an attribute beginning with '_' will be an attribute of the proxy and not an attribute of the... | |
doc_7231 |
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_7232 | Returns True if the data type of input is a floating point data type i.e., one of torch.float64, torch.float32, torch.float16, and torch.bfloat16. Parameters
input (Tensor) – the input tensor. | |
doc_7233 |
Indicate whether the date is the first day of a year. Returns
Series or DatetimeIndex
The same type as the original data with boolean values. Series will have the same name and index. DatetimeIndex will have the same name. See also is_year_end
Similar property indicating the last day of the year. Exampl... | |
doc_7234 |
Return this Axis' minor tick labels, as a list of Text. | |
doc_7235 | This function handles the exception described by info (a 3-tuple containing the result of sys.exc_info()), formatting its traceback as HTML and returning the result as a string. The optional argument context is the number of lines of context to display around the current line of source code in the traceback; this defau... | |
doc_7236 | MultiLineString objects may be instantiated by passing in LineString objects as arguments, or a single sequence of LineString objects: >>> ls1 = LineString((0, 0), (1, 1))
>>> ls2 = LineString((2, 2), (3, 3))
>>> mls = MultiLineString(ls1, ls2)
>>> mls = MultiLineString([ls1, ls2])
merged
Returns a LineString repr... | |
doc_7237 |
Check whether all characters in each string are lowercase. This is equivalent to running the Python string method str.islower() 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_7238 | get the time in milliseconds get_ticks() -> milliseconds Return the number of milliseconds since pygame.init() was called. Before pygame is initialized this will always be 0. | |
doc_7239 | This option causes child processes to be reported if they have been stopped but their current state has not been reported since they were stopped. Availability: Unix. | |
doc_7240 | Open a mixer device and return an OSS mixer device object. device is the mixer device filename to use. If it is not specified, this module first looks in the environment variable MIXERDEV for a device to use. If not found, it falls back to /dev/mixer. | |
doc_7241 |
Isomap Embedding Non-linear dimensionality reduction through Isometric Mapping Read more in the User Guide. Parameters
n_neighborsint, default=5
number of neighbors to consider for each point.
n_componentsint, default=2
number of coordinates for the manifold
eigen_solver{‘auto’, ‘arpack’, ‘dense’}, defaul... | |
doc_7242 | sklearn.datasets.fetch_rcv1(*, data_home=None, subset='all', download_if_missing=True, random_state=None, shuffle=False, return_X_y=False) [source]
Load the RCV1 multilabel dataset (classification). Download it if necessary. Version: RCV1-v2, vectors, full sets, topics multilabels.
Classes 103
Samples total 80441... | |
doc_7243 |
True if this transform is separable in the x- and y- dimensions. | |
doc_7244 | Translates message given the context and returns it as a string. For more information, see Contextual markers. | |
doc_7245 | Convert text with examples to a script. Argument s is a string containing doctest examples. The string is converted to a Python script, where doctest examples in s are converted to regular code, and everything else is converted to Python comments. The generated script is returned as a string. For example, import doctes... | |
doc_7246 |
Return a string which is the concatenation of the strings in the sequence seq. See also char.join | |
doc_7247 |
Set the artist's visibility. Parameters
bbool | |
doc_7248 |
Convert a Hermite series to a polynomial. Convert an array representing the coefficients of a Hermite series, ordered from lowest degree to highest, to an array of the coefficients of the equivalent polynomial (relative to the “standard” basis) ordered from lowest to highest degree. Parameters
carray_like
1-D a... | |
doc_7249 | Handles a doctype declaration. name is the doctype name. pubid is the public identifier. system is the system identifier. This method does not exist on the default TreeBuilder class. New in version 3.2. | |
doc_7250 |
True if this transform has a corresponding inverse transform. | |
doc_7251 | Performs global pre-test setup, such as installing instrumentation for the template rendering system and setting up the dummy email outbox. If debug isn’t None, the DEBUG setting is updated to its value. | |
doc_7252 |
Set the Categorical to be unordered. Parameters
inplace:bool, default False
Whether or not to set the ordered attribute in-place or return a copy of this categorical with ordered set to False. Returns
Categorical or None
Unordered Categorical or None if inplace=True. | |
doc_7253 | '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_7254 | A special constant that is assumed to be True by 3rd party static type checkers. It is False at runtime. Usage: if TYPE_CHECKING:
import expensive_mod
def fun(arg: 'expensive_mod.SomeType') -> None:
local_var: expensive_mod.AnotherType = other_fun()
The first type annotation must be enclosed in quotes, making... | |
doc_7255 |
Fit the model to data. Fit a separate model for each output variable. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Data.
y{array-like, sparse matrix} of shape (n_samples, n_outputs)
Multi-output targets. An indicator matrix turns on multilabel estimation.
sample_weightarray-lik... | |
doc_7256 | bytearray.rfind(sub[, start[, end]])
Return the highest index in the sequence where the subsequence sub is found, such that sub is contained within s[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure. The subsequence to search for may be any bytes-like object or a... | |
doc_7257 |
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_7258 |
Draw a Path instance using the given affine transform. | |
doc_7259 |
Compute group sizes. Returns
DataFrame or Series
Number of rows in each group as a Series if as_index is True or a DataFrame if as_index is False. See also Series.groupby
Apply a function groupby to a Series. DataFrame.groupby
Apply a function groupby to each row or column of a DataFrame. | |
doc_7260 | Makes a cls instance with the same data pointer as self. Changes in the output mirror changes in self, and the output stays attached to the autograd graph. cls must be a subclass of Tensor. | |
doc_7261 |
Write records stored in a DataFrame to a SQL database. Databases supported by SQLAlchemy [1] are supported. Tables can be newly created, appended to, or overwritten. Parameters
name:str
Name of SQL table.
con:sqlalchemy.engine.(Engine or Connection) or sqlite3.Connection
Using SQLAlchemy makes it possible t... | |
doc_7262 |
Return unbiased variance over requested axis. Normalized by N-1 by default. This can be changed using the ddof argument. Parameters
axis:{index (0)}
skipna:bool, default True
Exclude NA/null values. If an entire row/column is NA, the result will be NA.
level:int or level name, default None
If the axis is ... | |
doc_7263 | Do a plural-forms lookup of a message id. singular is used as the message id for purposes of lookup in the catalog, while n is used to determine which plural form to use. The returned message string is a Unicode string. If the message id is not found in the catalog, and a fallback is specified, the request is forwarded... | |
doc_7264 | tf.debugging.assert_none_equal(
x, y, summarize=None, message=None, name=None
)
This Op checks that x[i] != y[i] holds for every pair of (possibly broadcast) elements of x and y. If both x and y are empty, this is trivially satisfied. If any elements of x and y are equal, message, as well as the first summarize en... | |
doc_7265 | Contains the server instance. | |
doc_7266 |
Bases: object An abstract base class that provides color, line styles, etc. copy_properties(gc)[source]
Copy properties from gc to self.
get_alpha()[source]
Return the alpha value used for blending - not supported on all backends.
get_antialiased()[source]
Return whether the object should try to do an... | |
doc_7267 |
Creates an asynchronous task executing func and a reference to the value of the result of this execution. fork will return immediately, so the return value of func may not have been computed yet. To force completion of the task and access the return value invoke torch.jit.wait on the Future. fork invoked with a func ... | |
doc_7268 |
Prints an EventList as a nicely formatted table. Parameters
sort_by (str, optional) – Attribute used to sort entries. By default they are printed in the same order as they were registered. Valid keys include: cpu_time, cuda_time, cpu_time_total, cuda_time_total, cpu_memory_usage, cuda_memory_usage, self_cpu_memor... | |
doc_7269 | Look up the codec for the given encoding and return its encoder function. Raises a LookupError in case the encoding cannot be found. | |
doc_7270 | Default widget: NumberInput when Field.localize is False, else TextInput. Empty value: None
Normalizes to: A Python decimal. Validates that the given value is a decimal. Uses MaxValueValidator and MinValueValidator if max_value and min_value are provided. Leading and trailing whitespace is ignored. Error message keys... | |
doc_7271 |
Bases: object Like property, but also triggers on access via the class, and it is the class that's passed as argument. Examples class C:
@classproperty
def foo(cls):
return cls.__name__
assert C.foo == "C"
propertyfget | |
doc_7272 |
Push the current view limits and position onto their respective stacks. | |
doc_7273 |
Gathers tensors from multiple GPU devices. Parameters
tensors (Iterable[Tensor]) – an iterable of tensors to gather. Tensor sizes in all dimensions other than dim have to match.
dim (int, optional) – a dimension along which the tensors will be concatenated. Default: 0.
destination (torch.device, str, or int, op... | |
doc_7274 | An abstract base class for a loader which implements the optional PEP 302 protocol for loaders that inspect modules.
get_code(fullname)
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 ca... | |
doc_7275 |
Perform wavelet denoising on an image. Parameters
imagendarray ([M[, N[, …P]][, C]) of ints, uints or floats
Input data to be denoised. image can be of any numeric type, but it is cast into an ndarray of floats for the computation of the denoised image.
sigmafloat or list, optional
The noise standard deviat... | |
doc_7276 |
Broadcasts a sequence tensors to the specified GPUs. Small tensors are first coalesced into a buffer to reduce the number of synchronizations. Parameters
tensors (sequence) – tensors to broadcast. Must be on the same device, either CPU or GPU.
devices (Iterable[torch.device, str or int]) – an iterable of GPU dev... | |
doc_7277 | tf.keras.utils.unpack_x_y_sample_weight(
data
)
This is a convenience utility to be used when overriding Model.train_step, Model.test_step, or Model.predict_step. This utility makes it easy to support data of the form (x,), (x, y), or (x, y, sample_weight). Standalone usage:
features_batch = tf.ones((10, 5))
labe... | |
doc_7278 | bytearray.istitle()
Return True if the sequence is ASCII titlecase and the sequence is not empty, False otherwise. See bytes.title() for more details on the definition of “titlecase”. For example: >>> b'Hello World'.istitle()
True
>>> b'Hello world'.istitle()
False | |
doc_7279 | Return number of occurrences of value. | |
doc_7280 | The returned function prototype creates functions that use the Python calling convention. The function will not release the GIL during the call. | |
doc_7281 |
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters
Xarray-like of shape (n_samples, n_features)
Training set.
yignored
Returns
Xtsparse matrix of shape (n_samples, n_samples)
Xt[i, j] is assigned the weight... | |
doc_7282 |
Call self as a function. | |
doc_7283 |
Add an Axes to the figure as part of a subplot arrangement. Call signatures: add_subplot(nrows, ncols, index, **kwargs)
add_subplot(pos, **kwargs)
add_subplot(ax)
add_subplot()
Parameters
*argsint, (int, int, index), or SubplotSpec, default: (1, 1, 1)
The position of the subplot described by one of Three inte... | |
doc_7284 |
Return the dtypes in the DataFrame. This returns a Series with the data type of each column. The result’s index is the original DataFrame’s columns. Columns with mixed types are stored with the object dtype. See the User Guide for more. Returns
pandas.Series
The data type of each column. Examples
>>> df = pd... | |
doc_7285 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_7286 | tf.compat.v1.resource_loader.load_resource(
path
)
Args
path a string resource path relative to tensorflow/.
Returns The contents of that resource.
Raises
IOError If the path is not found, or the resource can't be opened. | |
doc_7287 |
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_7288 |
Set the artist transform. Parameters
tTransform | |
doc_7289 |
Toggle (activate or deactivate) a check button by index. Callbacks will be triggered if eventson is True. Parameters
indexint
Index of the check button to toggle. Raises
ValueError
If index is invalid. | |
doc_7290 | Returns the name of the default time zone. | |
doc_7291 | Name of the target file name, which is only present in TarInfo objects of type LNKTYPE and SYMTYPE. | |
doc_7292 | Returns the expression ready to be sorted in ascending order. nulls_first and nulls_last define how null values are sorted. See Using F() to sort null values for example usage. | |
doc_7293 | Cookie value (a string), or None. | |
doc_7294 | Add a new header tuple to the list. An alias for add() for compatibility with the wsgiref add_header() method. | |
doc_7295 |
Clear the Axes. | |
doc_7296 | Difference of total size of memory blocks in bytes between the old and the new snapshots (int): 0 if the memory blocks have been allocated in the new snapshot. | |
doc_7297 |
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 float or 2D array-like or None
animated bool
array array-like
clim (vmin: float, vmax: float)
clip_box B... | |
doc_7298 |
Return the Colormap instance. | |
doc_7299 |
Returns the log of the probability density/mass function evaluated at value. Parameters
value (Tensor) – |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.