_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_8300 |
Export a model into ONNX format. This exporter runs your model once in order to get a trace of its execution to be exported; at the moment, it supports a limited set of dynamic models (e.g., RNNs.) Parameters
model (torch.nn.Module) – the model to be exported.
args (tuple of arguments or torch.Tensor, a dictiona... | |
doc_8301 |
Return the reciprocal of the argument, element-wise. Calculates 1/x. Parameters
xarray_like
Input array.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-all... | |
doc_8302 |
Predict using the linear model Parameters
X{array-like, sparse matrix}, shape (n_samples, n_features)
Returns
ndarray of shape (n_samples,)
Predicted target values per element in X. | |
doc_8303 | sklearn.base.clone(estimator, *, safe=True) [source]
Constructs a new unfitted estimator with the same parameters. Clone does a deep copy of the model in an estimator without actually copying attached data. It yields a new estimator with the same parameters that has not been fitted on any data. If the estimator’s ran... | |
doc_8304 |
Predict using the multi-layer perceptron classifier Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input data. Returns
yndarray, shape (n_samples,) or (n_samples, n_classes)
The predicted classes. | |
doc_8305 |
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_8306 |
Return the mean value of the Array. New in version 0.25.0. Parameters
skipna:bool, default True
Whether to ignore any NaT elements.
axis:int, optional, default 0
Returns
scalar
Timestamp or Timedelta. See also numpy.ndarray.mean
Returns the average of array elements along a given axis. Series.... | |
doc_8307 |
Accessor for SparseSparse from other sparse matrix data types. | |
doc_8308 |
Scalar method identical to the corresponding array attribute. Please see ndarray.resize. | |
doc_8309 |
the official documentation for the OSS C API The module defines a large number of constants supplied by the OSS device driver; see <sys/soundcard.h> on either Linux or FreeBSD for a listing. ossaudiodev defines the following variables and functions:
exception ossaudiodev.OSSAudioError
This exception is raised o... | |
doc_8310 | Determine whether code is in tableB.1 (Commonly mapped to nothing). | |
doc_8311 |
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_8312 | Set the garbage collection debugging flags. Debugging information will be written to sys.stderr. See below for a list of debugging flags which can be combined using bit operations to control debugging. | |
doc_8313 | Return True if there is a resource named name in the package, otherwise False. Remember that directories are not resources! package is either a name or a module object which conforms to the Package requirements. | |
doc_8314 | The Accept-Ranges header. Even though the name would indicate that multiple values are supported, it must be one string token only. The values 'bytes' and 'none' are common. Changelog New in version 0.7. | |
doc_8315 | See Migration guide for more details. tf.compat.v1.raw_ops.GRUBlockCell
tf.raw_ops.GRUBlockCell(
x, h_prev, w_ru, w_c, b_ru, b_c, name=None
)
Args x: Input to the GRU cell. h_prev: State input from the previous GRU cell. w_ru: Weight matrix for the reset and update gate. w_c: Weight matrix for the cell connectio... | |
doc_8316 |
Convert angles from radians to degrees. Parameters
xarray_like
Angle in radians.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned... | |
doc_8317 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_8318 |
Load the RCV1 multilabel dataset (classification). Download it if necessary. Version: RCV1-v2, vectors, full sets, topics multilabels.
Classes 103
Samples total 804414
Dimensionality 47236
Features real, between 0 and 1 Read more in the User Guide. New in version 0.17. Parameters
data_homestr, default... | |
doc_8319 |
Convert points to display units. You need to override this function (unless your backend doesn't have a dpi, e.g., postscript or svg). Some imaging systems assume some value for pixels per inch: points to pixels = points * pixels_per_inch/72 * dpi/72
Parameters
pointsfloat or array-like
a float or a numpy arra... | |
doc_8320 | initialize the cdrom module init() -> None Initialize the cdrom module. This will scan the system for all CD devices. The module must be initialized before any other functions will work. This automatically happens when you call pygame.init(). It is safe to call this function more than once. | |
doc_8321 | The scaled bounding box height of the font in pixels get_sized_glyph_height(<size>=0) -> int Return the glyph bounding box height of the font in pixels. This is the average value of all glyphs in the font. It is not adjusted for strong or rotation. | |
doc_8322 | Callable type; Callable[[int], str] is a function of (int) -> str. The subscription syntax must always be used with exactly two values: the argument list and the return type. The argument list must be a list of types or an ellipsis; the return type must be a single type. There is no syntax to indicate optional or keywo... | |
doc_8323 |
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_8324 |
Return the names of all projections currently registered. | |
doc_8325 | sets the bit shifts needed to convert between a color and a mapped integer set_shifts((r,g,b,a)) -> None This is not needed for normal pygame usage. Note In SDL2, the shifts are read-only and accordingly this method will raise an AttributeError if called. New in pygame 1.8.1. | |
doc_8326 | enable fake rendering of italic text set_italic(bool) -> None Enables fake rendering of italic text. This is a fake skewing of the font that doesn't look good on many font types. If possible load the font from a real italic font file. While italic the font will have a different width than when normal. This can be mix... | |
doc_8327 |
Return the height of the rectangle. | |
doc_8328 |
Return a new array of given shape and type, without initializing entries. Parameters
shapeint or tuple of int
Shape of the empty array, e.g., (2, 3) or 2.
dtypedata-type, optional
Desired output data-type for the array, e.g, numpy.int8. Default is numpy.float64.
order{‘C’, ‘F’}, optional, default: ‘C’
W... | |
doc_8329 | Locate the insertion point for x in a to maintain sorted order. The parameters lo and hi may be used to specify a subset of the list which should be considered; by default the entire list is used. If x is already present in a, the insertion point will be before (to the left of) any existing entries. The return value is... | |
doc_8330 |
Remove a callback based on its observer id. See also add_callback | |
doc_8331 | This bytes class method returns a bytes object, decoding the given string object. The string must contain two hexadecimal digits per byte, with ASCII whitespace being ignored. >>> bytes.fromhex('2Ef0 F1f2 ')
b'.\xf0\xf1\xf2'
Changed in version 3.7: bytes.fromhex() now skips all ASCII whitespace in the string, not ju... | |
doc_8332 | The request is mapped to a local file by interpreting the request as a path relative to the current working directory. If the request was mapped to a directory, the directory is checked for a file named index.html or index.htm (in that order). If found, the file’s contents are returned; otherwise a directory listing is... | |
doc_8333 | A list of meta path finder objects that have their find_spec() methods called to see if one of the objects can find the module to be imported. The find_spec() method is called with at least the absolute name of the module being imported. If the module to be imported is contained in a package, then the parent package’s ... | |
doc_8334 | New in Django 3.2. This decorator can be used for setting specific attributes on custom action functions that can be used with actions: @admin.action(
permissions=['publish'],
description='Mark selected stories as published',
)
def make_published(self, request, queryset):
queryset.update(status='p')
This... | |
doc_8335 | Derived from BrokenExecutor, this exception class is raised when one of the workers of a ThreadPoolExecutor has failed initializing. New in version 3.7. | |
doc_8336 |
Returns the standard deviation of the array elements along given axis. Refer to numpy.std for full documentation. See also numpy.std
equivalent function | |
doc_8337 |
Return a list of the child Artists of this Artist. | |
doc_8338 | A MultiDict is a dictionary subclass customized to deal with multiple values for the same key which is for example used by the parsing functions in the wrappers. This is necessary because some HTML form elements pass multiple values for the same key. MultiDict implements all standard dictionary methods. Internally, it ... | |
doc_8339 | SMTP authentication went wrong. Most probably the server didn’t accept the username/password combination provided. | |
doc_8340 | This method returns a ctypes instance that shares the buffer of the source object. The source object must support the writeable buffer interface. The optional offset parameter specifies an offset into the source buffer in bytes; the default is zero. If the source buffer is not large enough a ValueError is raised. Raise... | |
doc_8341 |
Get Integer division of dataframe and other, element-wise (binary operator floordiv). Equivalent to dataframe // other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, rfloordiv. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +,... | |
doc_8342 | Returns a rotated copy of x, y times. | |
doc_8343 |
Find the cross edges of an image using Roberts’ cross operator. The kernel is applied to the input image to produce separate measurements of the gradient component one orientation. Parameters
image2-D array
Image to process.
mask2-D array, optional
An optional mask to limit the application to a certain area... | |
doc_8344 |
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters
valuesarray
The input v... | |
doc_8345 | Make an iterator that filters elements from iterable returning only those for which the predicate is False. If predicate is None, return the items that are false. Roughly equivalent to: def filterfalse(predicate, iterable):
# filterfalse(lambda x: x%2, range(10)) --> 0 2 4 6 8
if predicate is None:
pred... | |
doc_8346 | Indicates if the clipboard ownership has been lost by the pygame application. lost() -> bool Indicates if the clipboard ownership has been lost by the pygame application.
Returns:
True, if the clipboard ownership has been lost by the pygame application, False if the pygame application still owns the clipboard ... | |
doc_8347 | tf.random.set_seed(
seed
)
Operations that rely on a random seed actually derive it from two seeds: the global and operation-level seeds. This sets the global seed. Its interactions with operation-level seeds is as follows: If neither the global seed nor the operation seed is set: A randomly picked seed is used f... | |
doc_8348 |
Input checker utility for building a cross-validator Parameters
cvint, cross-validation generator or an iterable, default=None
Determines the cross-validation splitting strategy. Possible inputs for cv are: - None, to use the default 5-fold cross validation, - integer, to specify the number of folds. - CV split... | |
doc_8349 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyGradientDescent
tf.raw_ops.ResourceApplyGradientDescent(
var, alpha, delta, use_locking=False, name=None
)
Args
var A Tensor of type resource. Should be from a Variable().
alpha A Tensor. Must be one of the following types: fl... | |
doc_8350 | tf.estimator.regressor_parse_example_spec(
feature_columns, label_key, label_dtype=tf.dtypes.float32, label_default=None,
label_dimension=1, weight_column=None
)
If users keep data in tf.Example format, they need to call tf.parse_example with a proper feature spec. There are two main things that this utility h... | |
doc_8351 | See Migration guide for more details. tf.compat.v1.raw_ops.InTopKV2
tf.raw_ops.InTopKV2(
predictions, targets, k, name=None
)
This outputs a batch_size bool array, an entry out[i] is true if the prediction for the target class is among the top k predictions among all predictions for example i. Note that the beha... | |
doc_8352 | tf.scan(
fn, elems, initializer=None, parallel_iterations=10, back_prop=True,
swap_memory=False, infer_shape=True, reverse=False, name=None
)
Warning: SOME ARGUMENT VALUES ARE DEPRECATED: (back_prop=False). They will be removed in a future version. Instructions for updating: back_prop=False is deprecated. Cons... | |
doc_8353 |
Make a copy of this object’s indices and data. When deep=True (default), a new object will be created with a copy of the calling object’s data and indices. Modifications to the data or indices of the copy will not be reflected in the original object (see notes below). When deep=False, a new object will be created wit... | |
doc_8354 |
Estimate the optimal parameter lambda for each feature. The optimal lambda parameter for minimizing skewness is estimated on each feature independently using maximum likelihood. Parameters
Xarray-like of shape (n_samples, n_features)
The data used to estimate the optimal transformation parameters.
yNone
Ign... | |
doc_8355 | The field on the related object that the relation is to. By default, Django uses the primary key of the related object. If you reference a different field, that field must have unique=True. | |
doc_8356 | Boolean. Designates that this user has all permissions without explicitly assigning them. | |
doc_8357 | See Migration guide for more details. tf.compat.v1.image.random_brightness
tf.image.random_brightness(
image, max_delta, seed=None
)
Equivalent to adjust_brightness() using a delta randomly picked in the interval [-max_delta, max_delta).
Args
image An image or images to adjust.
max_delta float, mu... | |
doc_8358 | Load a readline history file, and append it to the history list. The default filename is ~/.history. This calls read_history() in the underlying library. | |
doc_8359 |
Other Members
ASSETS_DIRECTORY 'assets'
ASSETS_KEY 'saved_model_assets'
CLASSIFY_INPUTS 'inputs'
CLASSIFY_METHOD_NAME 'tensorflow/serving/classify'
CLASSIFY_OUTPUT_CLASSES 'classes'
CLASSIFY_OUTPUT_SCORES 'scores'
DEBUG_DIRECTORY 'debug'
DEBUG_INFO_FILENAME_PB 'saved_m... | |
doc_8360 | Convert angle x from radians to degrees. | |
doc_8361 | Return a dictionary containing all installation paths corresponding to an installation scheme. See get_path() for more information. If scheme is not provided, will use the default scheme for the current platform. If vars is provided, it must be a dictionary of variables that will update the dictionary used to expand th... | |
doc_8362 |
Estimate the transformation from a set of corresponding points. You can determine the over-, well- and under-determined parameters with the total least-squares method. Number of source and destination coordinates must match. The transformation is defined as: X = sum[j=0:order]( sum[i=0:j]( a_ji * x**(j - i) * y**i ))... | |
doc_8363 |
Return the Transform instance used by this artist. | |
doc_8364 |
Return the figure's background patch visibility, i.e. whether the figure background will be drawn. Equivalent to Figure.patch.get_visible(). | |
doc_8365 |
LedoitWolf Estimator Ledoit-Wolf is a particular form of shrinkage, where the shrinkage coefficient is computed using O. Ledoit and M. Wolf’s formula as described in “A Well-Conditioned Estimator for Large-Dimensional Covariance Matrices”, Ledoit and Wolf, Journal of Multivariate Analysis, Volume 88, Issue 2, Februar... | |
doc_8366 |
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters
Xarray-like of shape (n_samples, n_features)
Test samples.
yarray-like of shap... | |
doc_8367 | sklearn.metrics.pairwise.paired_distances(X, Y, *, metric='euclidean', **kwds) [source]
Computes the paired distances between X and Y. Computes the distances between (X[0], Y[0]), (X[1], Y[1]), etc… Read more in the User Guide. Parameters
Xndarray of shape (n_samples, n_features)
Array 1 for distance computatio... | |
doc_8368 |
Set the url for the artist. Parameters
urlstr | |
doc_8369 | Set the current process’s user id. Availability: Unix. | |
doc_8370 | As with the normal socket object, address is a tuple with the first element the host to connect to, and the second the port number. | |
doc_8371 | tf.compat.v1.gfile.FastGFile(
name, mode='r'
)
Note, that this is somewhat like builtin Python file I/O, but there are semantic differences to make it more efficient for some backing filesystems. For example, a write mode file will not be opened until the first write call (to minimize RPC invocations in network fi... | |
doc_8372 |
Compute the lag-N autocorrelation. This method computes the Pearson correlation between the Series and its shifted self. Parameters
lag:int, default 1
Number of lags to apply before performing autocorrelation. Returns
float
The Pearson correlation between self and self.shift(lag). See also Series.co... | |
doc_8373 |
Split an array into multiple sub-arrays horizontally (column-wise). Please refer to the split documentation. hsplit is equivalent to split with axis=1, the array is always split along the second axis regardless of the array dimension. See also split
Split an array into multiple sub-arrays of equal size. Example... | |
doc_8374 | '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_8375 |
Compute indexer and mask for new index given the current index. The indexer should be then used as an input to ndarray.take to align the current data to the new index. Parameters
target:Index
method:{None, ‘pad’/’ffill’, ‘backfill’/’bfill’, ‘nearest’}, optional
default: exact matches only. pad / ffill: find ... | |
doc_8376 |
Return the mutation scale. | |
doc_8377 | Print the calendar for an entire year as returned by formatyear(). | |
doc_8378 | Parameter objects are immutable. Instead of modifying a Parameter object, you can use Parameter.replace() to create a modified copy. Changed in version 3.5: Parameter objects are picklable and hashable.
empty
A special class-level marker to specify absence of default values and annotations.
name
The name of... | |
doc_8379 |
This method is called whenever the system internally allocates a new array from obj, where obj is a subclass (subtype) of the ndarray. It can be used to change attributes of self after construction (so as to ensure a 2-d matrix for example), or to update meta-information from the “parent.” Subclasses inherit a defaul... | |
doc_8380 | The length of the attribute list. | |
doc_8381 | Return a list of tuples (header_name, header_value) of the Request headers. | |
doc_8382 |
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_8383 |
Transform each element of a list-like to a row, replicating index values. New in version 0.25.0. Parameters
column:IndexLabel
Column(s) to explode. For multiple columns, specify a non-empty list with each element be str or tuple, and all specified columns their list-like data on same row of the frame must hav... | |
doc_8384 | See Migration guide for more details. tf.compat.v1.config.threading.get_intra_op_parallelism_threads
tf.config.threading.get_intra_op_parallelism_threads()
Certain operations like matrix multiplication and reductions can utilize parallel threads for speed ups. A value of 0 means the system picks an appropriate numbe... | |
doc_8385 | See Migration guide for more details. tf.compat.v1.raw_ops.Unpack
tf.raw_ops.Unpack(
value, num, axis=0, name=None
)
Unpacks num tensors from value by chipping it along the axis dimension. For example, given a tensor of shape (A, B, C, D); If axis == 0 then the i'th tensor in output is the slice value[i, :, :, :... | |
doc_8386 | tf.compat.v1.placeholder(
dtype, shape=None, name=None
)
Key Point: This tensor will produce an error if evaluated. Its value must be fed using the feed_dict optional argument to Session.run(), Tensor.eval(), or Operation.run(). For example: x = tf.compat.v1.placeholder(tf.float32, shape=(1024, 1024))
y = tf.matmu... | |
doc_8387 | Returns the strftime() format to use when parsing the year. Returns year_format by default. | |
doc_8388 | play various sndarray effects sound_array_demos.main(arraytype=None) -> None Uses sndarray and NumPy to create offset faded copies of the original sound. Currently it just uses hardcoded values for the number of echoes and the delay. Easy for you to recreate as needed. The arraytype parameter is deprecated; passing a... | |
doc_8389 | Minus corresponds to the unary prefix minus operator in Python. | |
doc_8390 | The canonical name of this HMAC, always lowercase, e.g. hmac-md5. New in version 3.4. | |
doc_8391 | The document contains no elements (XML requires all documents to contain exactly one top-level element).. | |
doc_8392 | Possible value for the mode parameter to the spawn* family of functions. If this is given as mode, the spawn*() functions will not return until the new process has run to completion and will return the exit code of the process the run is successful, or -signal if a signal kills the process. Availability: Unix, Windows. | |
doc_8393 | tf.foldr(
fn, elems, initializer=None, parallel_iterations=10, back_prop=True,
swap_memory=False, name=None
)
Warning: SOME ARGUMENT VALUES ARE DEPRECATED: (back_prop=False). They will be removed in a future version. Instructions for updating: back_prop=False is deprecated. Consider using tf.stop_gradient inst... | |
doc_8394 | class sklearn.decomposition.LatentDirichletAllocation(n_components=10, *, doc_topic_prior=None, topic_word_prior=None, learning_method='batch', learning_decay=0.7, learning_offset=10.0, max_iter=10, batch_size=128, evaluate_every=- 1, total_samples=1000000.0, perp_tol=0.1, mean_change_tol=0.001, max_doc_update_iter=100... | |
doc_8395 |
Autoscale the view limits using the data limits. See matplotlib.axes.Axes.autoscale_view() for documentation. Note that this function applies to the 3D axes, and as such adds the scalez to the function arguments. | |
doc_8396 | See Migration guide for more details. tf.compat.v1.raw_ops.Selu
tf.raw_ops.Selu(
features, name=None
)
if < 0, scale * features otherwise. To be used together with initializer = tf.variance_scaling_initializer(factor=1.0, mode='FAN_IN'). For correct dropout, use tf.contrib.nn.alpha_dropout. See Self-Normalizing ... | |
doc_8397 | Convert a time expressed in seconds since the epoch to a struct_time in UTC in which the dst flag is always zero. If secs is not provided or None, the current time as returned by time() is used. Fractions of a second are ignored. See above for a description of the struct_time object. See calendar.timegm() for the inver... | |
doc_8398 | This exception is raised on certain errors. The argument is a string describing what went wrong. (If ossaudiodev receives an error from a system call such as open(), write(), or ioctl(), it raises OSError. Errors detected directly by ossaudiodev result in OSSAudioError.) (For backwards compatibility, the exception clas... | |
doc_8399 | Name of the ZIP file. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.