_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_3300
Call self as a function.
doc_3301
See torch.multiply().
doc_3302
Gathers picklable objects from the whole group into a list. Similar to all_gather(), but Python objects can be passed in. Note that the object must be picklable in order to be gathered. Parameters object_list (list[Any]) – Output list. It should be correctly sized as the size of the group for this collective and ...
doc_3303
Set the point at which create_node and companion methods will insert into the graph. When used within a ‘with’ statement, this will temporary set the insert point and then restore it when the with statement exits: with g.inserting_after(n): ... # inserting after node n ... # insert point restored to what it was p...
doc_3304
tf.experimental.numpy.ndarray( shape, dtype=float, buffer=None ) This does not support all features of NumPy ndarrays e.g. strides and memory order since, unlike NumPy, the backing storage is not a raw memory buffer. or if there are any differences in behavior. Args shape The shape of the array. Must be a...
doc_3305
Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters lwfloat or list of floats
doc_3306
sklearn.metrics.make_scorer(score_func, *, greater_is_better=True, needs_proba=False, needs_threshold=False, **kwargs) [source] Make a scorer from a performance metric or loss function. This factory function wraps scoring functions for use in GridSearchCV and cross_val_score. It takes a score function, such as accura...
doc_3307
Computes the (weighted) graph of k-Neighbors for points in X Parameters Xarray-like of shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’, default=None The query point or points. If not provided, neighbors of each indexed point are returned. In this case, the query point is not ...
doc_3308
Compute the Calinski and Harabasz score. It is also known as the Variance Ratio Criterion. The score is defined as ratio between the within-cluster dispersion and the between-cluster dispersion. Read more in the User Guide. Parameters Xarray-like of shape (n_samples, n_features) A list of n_features-dimensional...
doc_3309
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 angle float animated bool antialiased or aa bool or None capstyle CapStyle or {'butt', 'p...
doc_3310
Load a snapshot from a file. See also dump().
doc_3311
An object for detecting outliers in a Gaussian distributed dataset. Read more in the User Guide. Parameters store_precisionbool, default=True Specify if the estimated precision is stored. assume_centeredbool, default=False If True, the support of robust location and covariance estimates is computed, and a c...
doc_3312
Like SSLContext.maximum_version except it is the lowest supported version or TLSVersion.MINIMUM_SUPPORTED. Note This attribute is not available unless the ssl module is compiled with OpenSSL 1.1.0g or newer. New in version 3.7.
doc_3313
Return the binary path to the commandline tool used by a specific subclass. This is a class method so that the tool can be looked for before making a particular MovieWriter subclass available.
doc_3314
Transform from unconstrained space to the simplex via y=exp⁡(x)y = \exp(x) then normalizing. This is not bijective and cannot be used for HMC. However this acts mostly coordinate-wise (except for the final normalization), and thus is appropriate for coordinate-wise optimization algorithms.
doc_3315
Returns whether PyTorch is built with MKL support.
doc_3316
See torch.expm1()
doc_3317
Run until the future (an instance of Future) has completed. If the argument is a coroutine object it is implicitly scheduled to run as a asyncio.Task. Return the Future’s result or raise its exception.
doc_3318
Set blocking or non-blocking mode of the socket: if flag is false, the socket is set to non-blocking, else to blocking mode. This method is a shorthand for certain settimeout() calls: sock.setblocking(True) is equivalent to sock.settimeout(None) sock.setblocking(False) is equivalent to sock.settimeout(0.0) Chang...
doc_3319
Capture an exception for later rendering. limit, lookup_lines and capture_locals are as for the StackSummary class. Note that when locals are captured, they are also shown in the traceback. __cause__ A TracebackException of the original __cause__. __context__ A TracebackException of the original __context__. ...
doc_3320
Attributes attr repeated AttrEntry attr device string device experimental_debug_info ExperimentalDebugInfo experimental_debug_info input repeated string input name string name op string op Child Classes class AttrEntry class ExperimentalDebugInfo
doc_3321
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_3322
The get_list_select_related method is given the HttpRequest and should return a boolean or list as ModelAdmin.list_select_related does.
doc_3323
See Migration guide for more details. tf.compat.v1.signal.dct, tf.compat.v1.spectral.dct tf.signal.dct( input, type=2, n=None, axis=-1, norm=None, name=None ) Types I, II, III and IV are supported. Type I is implemented using a length 2N padded tf.signal.rfft. Type II is implemented using a length 2N padded tf.s...
doc_3324
Indicator for whether the date is the last day of a quarter. Returns is_quarter_end: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 quarter Return the quarter of the date. is_quarter...
doc_3325
See Migration guide for more details. tf.compat.v1.raw_ops.ShuffleAndRepeatDataset tf.raw_ops.ShuffleAndRepeatDataset( input_dataset, buffer_size, seed, seed2, count, output_types, output_shapes, reshuffle_each_iteration=True, name=None ) pseudorandomly. Args input_dataset A Tensor of type variant. ...
doc_3326
Acquire a semaphore. When invoked without arguments: If the internal counter is larger than zero on entry, decrement it by one and return True immediately. If the internal counter is zero on entry, block until awoken by a call to release(). Once awoken (and the counter is greater than 0), decrement the counter by 1 an...
doc_3327
Linear Support Vector Regression. Similar to SVR with parameter kernel=’linear’, but implemented in terms of liblinear rather than libsvm, so it has more flexibility in the choice of penalties and loss functions and should scale better to large numbers of samples. This class supports both dense and sparse input. Read...
doc_3328
Writes the object’s contents encoded to the stream.
doc_3329
Bases: matplotlib.colors.SymLogNorm The symmetrical logarithmic scale is logarithmic in both the positive and negative directions from the origin. Since the values close to zero tend toward infinity, there is a need to have a range around zero that is linear. The parameter linthresh allows the user to specify the siz...
doc_3330
Return the floor of x, the largest integer less than or equal to x. If x is not a float, delegates to x.__floor__(), which should return an Integral value.
doc_3331
Parameters namestr Extension name. sourceslist of str List of source file locations relative to the top directory of the package. extra_compile_argslist of str Extra command line arguments to pass to the compiler. extra_f77_compile_argslist of str Extra command line arguments to pass to the fortran7...
doc_3332
Return a match score between stretch1 and stretch2. The result is the absolute value of the difference between the CSS numeric values of stretch1 and stretch2, normalized between 0.0 and 1.0.
doc_3333
The file may not be renamed or deleted.
doc_3334
Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise. See also char.isalpha
doc_3335
Return an array with the elements of a right-justified in a string of length width. Calls str.rjust element-wise. Parameters aarray_like of str or unicode widthint The length of the resulting strings fillcharstr or unicode, optional The character to use for padding Returns outndarray Output array ...
doc_3336
add_child_handler(pid, callback, *args) Register a new child handler. Arrange for callback(pid, returncode, *args) to be called when a process with PID equal to pid terminates. Specifying another callback for the same process replaces the previous handler. The callback callable must be thread-safe. remove_child...
doc_3337
This member is either None or a dictionary containing Python objects that need to be kept alive so that the memory block contents is kept valid. This object is only exposed for debugging; never modify the contents of this dictionary.
doc_3338
CIE-LCH to CIE-LAB color space conversion. LCH is the cylindrical representation of the LAB (Cartesian) colorspace Parameters lch(…, 3) array_like The N-D image in CIE-LCH format. The last (N+1-th) dimension must have at least 3 elements, corresponding to the L, a, and b color channels. Subsequent elements are ...
doc_3339
Disconnect the callback with id cid. Examples cid = canvas.mpl_connect('button_press_event', on_press) # ... later canvas.mpl_disconnect(cid) Examples using matplotlib.pyplot.disconnect Mouse move and click events
doc_3340
A convenience method which coerces the option in the specified section to a Boolean value. Note that the accepted values for the option are '1', 'yes', 'true', and 'on', which cause this method to return True, and '0', 'no', 'false', and 'off', which cause it to return False. These string values are checked in a case-i...
doc_3341
Return the color of the text.
doc_3342
See Migration guide for more details. tf.compat.v1.raw_ops.LogMatrixDeterminant tf.raw_ops.LogMatrixDeterminant( input, name=None ) one or more square matrices. The input is a tensor of shape [N, M, M] whose inner-most 2 dimensions form square matrices. The outputs are two tensors containing the signs and absolu...
doc_3343
A TracebackException of the original __cause__.
doc_3344
Split an array into multiple sub-arrays as views into ary. Parameters aryndarray Array to be divided into sub-arrays. indices_or_sectionsint or 1-D array If indices_or_sections is an integer, N, the array will be divided into N equal arrays along axis. If such a split is not possible, an error is raised. If...
doc_3345
tf.compat.v1.IdentityReader( name=None ) To use, enqueue strings in a Queue. Read will take the front work string and output (work, work). See ReaderBase for supported methods. Args name A name for the operation (optional). Eager Compatibility Readers are not compatible with eager execution. Instead, p...
doc_3346
See Migration guide for more details. tf.compat.v1.math.reduce_logsumexp tf.compat.v1.reduce_logsumexp( input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None, keep_dims=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for u...
doc_3347
class sklearn.kernel_approximation.Nystroem(kernel='rbf', *, gamma=None, coef0=None, degree=None, kernel_params=None, n_components=100, random_state=None, n_jobs=None) [source] Approximate a kernel map using a subset of the training data. Constructs an approximate feature map for an arbitrary kernel using a subset of...
doc_3348
Return a flattened array. Refer to numpy.ravel for full documentation. See also numpy.ravel equivalent function ndarray.flat a flat iterator on the array.
doc_3349
Return True if the feature identified by the pair of strings feature and version is implemented.
doc_3350
Creates an exclusion constraint in the database. Internally, PostgreSQL implements exclusion constraints using indexes. The default index type is GiST. To use them, you need to activate the btree_gist extension on PostgreSQL. You can install it using the BtreeGistExtension migration operation. If you attempt to insert ...
doc_3351
Wait until all output written to file descriptor fd has been transmitted.
doc_3352
tf.data.experimental.make_csv_dataset( file_pattern, batch_size, column_names=None, column_defaults=None, label_name=None, select_columns=None, field_delim=',', use_quote_delim=True, na_value='', header=True, num_epochs=None, shuffle=True, shuffle_buffer_size=10000, shuffle_seed=None, prefetch_buffe...
doc_3353
Set the linestyle(s) for the collection. linestyle description '-' or 'solid' solid line '--' or 'dashed' dashed line '-.' or 'dashdot' dash-dotted line ':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq), where onoffseq is an even length tup...
doc_3354
Returns the filtered dictionary of local variables for the given traceback frame. Sensitive values are replaced with cleansed_substitute.
doc_3355
Set the agg filter. Parameters filter_funccallable A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array.
doc_3356
Registers a forward hook on the module. The hook will be called every time after forward() has computed an output. It should have the following signature: hook(module, input, output) -> None or modified output The input contains only the positional arguments given to the module. Keyword arguments won’t be passed to th...
doc_3357
Returns True if the specified item is present in the tree.
doc_3358
Set the (group) id for the artist. Parameters gidstr
doc_3359
tf.optimizers.schedules.PolynomialDecay Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.schedules.PolynomialDecay tf.keras.optimizers.schedules.PolynomialDecay( initial_learning_rate, decay_steps, end_learning_rate=0.0001, power=1.0, cycle=False, name=None ) I...
doc_3360
Return a string containing the “info” for a message. This is useful for accessing and modifying “info” that is experimental (i.e., not a list of flags).
doc_3361
Takes a variadic number of model classes, and returns a dictionary mapping the model classes to the ContentType instances representing them. for_concrete_models=False allows fetching the ContentType of proxy models.
doc_3362
These control the range of values permitted in the field.
doc_3363
Some classes may want to replace a hyphen for minus with the proper unicode symbol (U+2212) for typographical correctness. This is a helper method to perform such a replacement when it is enabled via rcParams["axes.unicode_minus"] (default: True).
doc_3364
Prevents re-use of the same DH key for distinct SSL sessions. This improves forward secrecy but requires more computational resources. This option only applies to server sockets. New in version 3.3.
doc_3365
bytearray.center(width[, fillbyte]) Return a copy of the object centered in a sequence of length width. Padding is done using the specified fillbyte (default is an ASCII space). For bytes objects, the original sequence is returned if width is less than or equal to len(s). Note The bytearray version of this method do...
doc_3366
Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate.
doc_3367
Draw samples from a logistic distribution. Samples are drawn from a logistic distribution with specified parameters, loc (location or mean, also median), and scale (>0). Parameters locfloat or array_like of floats, optional Parameter of the distribution. Default is 0. scalefloat or array_like of floats, optio...
doc_3368
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_3369
A field which accepts JSON encoded data for a JSONField. Default widget: Textarea Empty value: None Normalizes to: A Python representation of the JSON value (usually as a dict, list, or None), depending on JSONField.decoder. Validates that the given value is a valid JSON. Error message keys: required, invalid Take...
doc_3370
This function takes the current request and the updated user object from which the new session hash will be derived and updates the session hash appropriately. It also rotates the session key so that a stolen session cookie will be invalidated. Example usage: from django.contrib.auth import update_session_auth_hash de...
doc_3371
The “no data” value for a band is generally a special marker value used to mark pixels that are not valid data. Such pixels should generally not be displayed, nor contribute to analysis operations. To delete an existing “no data” value, set this property to None (requires GDAL ≥ 2.1).
doc_3372
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_3373
tf.train.experimental.DynamicLossScale Compat aliases for migration See Migration guide for more details. tf.compat.v1.mixed_precision.DynamicLossScale, tf.compat.v1.mixed_precision.experimental.DynamicLossScale, tf.compat.v1.train.experimental.DynamicLossScale tf.mixed_precision.experimental.DynamicLossScale( in...
doc_3374
Roll provided date backward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_3375
tf.compat.v1.train.MonitoredTrainingSession( master='', is_chief=True, checkpoint_dir=None, scaffold=None, hooks=None, chief_only_hooks=None, save_checkpoint_secs=USE_DEFAULT, save_summaries_steps=USE_DEFAULT, save_summaries_secs=USE_DEFAULT, config=None, stop_grace_period_secs=120, log_step_count_steps...
doc_3376
Gaussian Mixture. Representation of a Gaussian mixture model probability distribution. This class allows to estimate the parameters of a Gaussian mixture distribution. Read more in the User Guide. New in version 0.18. Parameters n_componentsint, default=1 The number of mixture components. covariance_type{‘f...
doc_3377
Get parameters of this kernel. 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_3378
Return self%=value.
doc_3379
Is True if the stream is closed.
doc_3380
tf.compat.v1.metrics.root_mean_squared_error( labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None ) The root_mean_squared_error function creates two local variables, total and count that are used to compute the root mean squared error. This average is weighted by we...
doc_3381
operator.__abs__(obj) Return the absolute value of obj.
doc_3382
Get the list of Nodes that constitute this Graph. Note that this Node list representation is a doubly-linked list. Mutations during iteration (e.g. delete a Node, add a Node) are safe. Returns A doubly-linked list of Nodes. Note that reversed can be called on this list to switch iteration order.
doc_3383
tf.initializers.deserialize Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.initializers.deserialize tf.keras.initializers.deserialize( config, custom_objects=None )
doc_3384
Token value for "/=".
doc_3385
Define how the connection between two line segments is drawn. For a visual impression of each JoinStyle, view these docs online, or run JoinStyle.demo. Lines in Matplotlib are typically defined by a 1D Path and a finite linewidth, where the underlying 1D Path represents the center of the stroked line. By default, Gra...
doc_3386
Container for manipulating Callgrind results. It supports: Addition and subtraction to combine or diff results. Tuple-like indexing. A denoise function which strips CPython calls which are known to be non-deterministic and quite noisy. Two higher order methods (filter and transform) for custom manipulation. d...
doc_3387
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_3388
tf.summary.experimental.get_step() Returns The step set by tf.summary.experimental.set_step() if one has been set, otherwise None.
doc_3389
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo...
doc_3390
Represents the C 64-bit signed int datatype. Usually an alias for c_longlong.
doc_3391
Check if indexer is a valid array indexer for array. For a boolean mask, array and indexer are checked to have the same length. The dtype is validated, and if it is an integer or boolean ExtensionArray, it is checked if there are missing values present, and it is converted to the appropriate numpy array. Other dtypes...
doc_3392
tf.compat.v1.to_double( x, name='ToDouble' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead. Args x A Tensor or SparseTensor or IndexedSlices. name A name for the operation (optional). Returns A Tensor or SparseT...
doc_3393
unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf() system calls.
doc_3394
Decode a binhex file input. input may be a filename or a file-like object supporting read() and close() methods. The resulting file is written to a file named output, unless the argument is None in which case the output filename is read from the binhex file.
doc_3395
This controls the minimum number of forms to show in the inline. See modelformset_factory() for more information. InlineModelAdmin.get_min_num() also allows you to customize the minimum number of displayed forms.
doc_3396
Call self as a function.
doc_3397
Parameters padfloat Fraction of the axes height. Examples using mpl_toolkits.axes_grid1.axes_rgb.make_rgb_axes Showing RGB channels using RGBAxes
doc_3398
Fit the imputer on X. Parameters Xarray-like shape of (n_samples, n_features) Input data, where n_samples is the number of samples and n_features is the number of features. Returns selfobject
doc_3399
A 1-D view of the scalar.