_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_900 | Parameters
arg – object to be written to the TurtleScreen
move – True/False
align – one of the strings “left”, “center” or right”
font – a triple (fontname, fontsize, fonttype) Write text - the string representation of arg - at the current turtle position according to align (“left”, “center” or “right”) and w... | |
doc_901 | See Migration guide for more details. tf.compat.v1.string_to_hash_bucket_strong, tf.compat.v1.strings.to_hash_bucket_strong
tf.strings.to_hash_bucket_strong(
input, num_buckets, key, name=None
)
The hash function is deterministic on the content of the string within the process. The hash function is a keyed hash ... | |
doc_902 | Convert sound fragments in a-LAW encoding to linearly encoded sound fragments. a-LAW encoding always uses 8 bits samples, so width refers only to the sample width of the output fragment here. | |
doc_903 | stop playback of all sound channels stop() -> None This will stop all playback of all active mixer channels. | |
doc_904 | Return a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by ‘os.uname()’), although the exact information included depends on the OS... | |
doc_905 |
Return greyscale morphological dilation of an image. Morphological dilation sets a pixel at (i,j) to the maximum over all pixels in the neighborhood centered at (i,j). Dilation enlarges bright regions and shrinks dark regions. Parameters
imagendarray
Image array.
selemndarray, optional
The neighborhood expr... | |
doc_906 |
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 ... | |
doc_907 |
Compute elastic net path with coordinate descent. The elastic net optimization function varies for mono and multi-outputs. For mono-output tasks it is: 1 / (2 * n_samples) * ||y - Xw||^2_2
+ alpha * l1_ratio * ||w||_1
+ 0.5 * alpha * (1 - l1_ratio) * ||w||^2_2
For multi-output tasks it is: (1 / (2 * n_samples)) * ||... | |
doc_908 | tf.experimental.numpy.less_equal(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.less_equal. | |
doc_909 | Attribute access, e.g. d.keys. value is a node, typically a Name. attr is a bare string giving the name of the attribute, and ctx is Load, Store or Del according to how the attribute is acted on. >>> print(ast.dump(ast.parse('snake.colour', mode='eval'), indent=4))
Expression(
body=Attribute(
value=Name(id=... | |
doc_910 | See Migration guide for more details. tf.compat.v1.config.experimental.tensor_float_32_execution_enabled
tf.config.experimental.tensor_float_32_execution_enabled()
By default, TensorFloat-32 is enabled, but this can be changed with tf.config.experimental.enable_tensor_float_32_execution.
Returns True if Tenso... | |
doc_911 |
Back one step in the stack of views and positions. | |
doc_912 | Return non-zero if the mode is from a symbolic link. | |
doc_913 | tkinter.messagebox.askokcancel(title=None, message=None, **options)
tkinter.messagebox.askretrycancel(title=None, message=None, **options)
tkinter.messagebox.askyesno(title=None, message=None, **options)
tkinter.messagebox.askyesnocancel(title=None, message=None, **options) | |
doc_914 |
Mixin class for all cluster estimators in scikit-learn. Methods
fit_predict(X[, y]) Perform clustering on X and returns cluster labels.
fit_predict(X, y=None) [source]
Perform clustering on X and returns cluster labels. Parameters
Xarray-like of shape (n_samples, n_features)
Input data.
yIgnored
Not... | |
doc_915 | getopt.getopt(args, shortopts, longopts=[])
Parses command line options and parameter list. args is the argument list to be parsed, without the leading reference to the running program. Typically, this means sys.argv[1:]. shortopts is the string of option letters that the script wants to recognize, with options that ... | |
doc_916 | Elements are subtracted from an iterable or from another mapping (or counter). Like dict.update() but subtracts counts instead of replacing them. Both inputs and outputs may be zero or negative. >>> c = Counter(a=4, b=2, c=0, d=-2)
>>> d = Counter(a=1, b=2, c=3, d=4)
>>> c.subtract(d)
>>> c
Counter({'a': 3, 'b': 0, 'c'... | |
doc_917 | Return a list of labels on the message. | |
doc_918 |
Return the path of this patch. | |
doc_919 | Return True if the symbol is used in its block. | |
doc_920 |
Set parameters within this locator. | |
doc_921 | tf.compat.v1.summary.FileWriter(
logdir, graph=None, max_queue=10, flush_secs=120, graph_def=None,
filename_suffix=None, session=None
)
The FileWriter class provides a mechanism to create an event file in a given directory and add summaries and events to it. The class updates the file contents asynchronously. ... | |
doc_922 | does the sprite belong to any groups alive() -> bool Returns True when the Sprite belongs to one or more Groups. | |
doc_923 | The URI of the XHTML namespace as defined by XHTML 1.0: The Extensible HyperText Markup Language (section 3.1.1). | |
doc_924 |
Get the face color of the Figure rectangle. | |
doc_925 |
Alias for set_fontname. | |
doc_926 |
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_927 |
Build a Bagging ensemble of estimators from the training
set (X, y). Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input samples. Sparse matrices are accepted only if they are supported by the base estimator.
yarray-like of shape (n_samples,)
The target values (cl... | |
doc_928 |
Add scalar data to summary. Parameters
tag (string) – Data identifier
scalar_value (float or string/blobname) – Value to save
global_step (int) – Global step value to record
walltime (float) – Optional override default walltime (time.time()) with seconds after epoch of event Examples: from torch.utils.tenso... | |
doc_929 |
Scalar method identical to the corresponding array attribute. Please see ndarray.fill. | |
doc_930 |
Morphological Geodesic Active Contours (MorphGAC). Geodesic active contours implemented with morphological operators. It can be used to segment objects with visible but noisy, cluttered, broken borders. Parameters
gimage(M, N) or (L, M, N) array
Preprocessed image or volume to be segmented. This is very rarely ... | |
doc_931 | stat.FILE_ATTRIBUTE_COMPRESSED
stat.FILE_ATTRIBUTE_DEVICE
stat.FILE_ATTRIBUTE_DIRECTORY
stat.FILE_ATTRIBUTE_ENCRYPTED
stat.FILE_ATTRIBUTE_HIDDEN
stat.FILE_ATTRIBUTE_INTEGRITY_STREAM
stat.FILE_ATTRIBUTE_NORMAL
stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
stat.FILE_ATTRIBUTE_NO_SCRUB_DATA
stat.FILE_ATTRIBUTE... | |
doc_932 |
Set the parameters of this kernel. The method works on simple kernels as well as on nested kernels. The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Returns
self | |
doc_933 | Load a set of default “certification authority” (CA) certificates from default locations. On Windows it loads CA certs from the CA and ROOT system stores. On other systems it calls SSLContext.set_default_verify_paths(). In the future the method may load CA certificates from other locations, too. The purpose flag specif... | |
doc_934 | See Migration guide for more details. tf.compat.v1.raw_ops.GroupByWindowDataset
tf.raw_ops.GroupByWindowDataset(
input_dataset, key_func_other_arguments, reduce_func_other_arguments,
window_size_func_other_arguments, key_func, reduce_func, window_size_func,
output_types, output_shapes, name=None
)
//
... | |
doc_935 |
Return a GridSpec that has this figure as a parent. This allows complex layout of Axes in the figure. Parameters
nrowsint, default: 1
Number of rows in grid.
ncolsint, default: 1
Number or columns in grid. Returns
GridSpec
Other Parameters
**kwargs
Keyword arguments are passed to GridSpec. Se... | |
doc_936 |
self != 0 | |
doc_937 | class sklearn.svm.LinearSVR(*, epsilon=0.0, tol=0.0001, C=1.0, loss='epsilon_insensitive', fit_intercept=True, intercept_scaling=1.0, dual=True, verbose=0, random_state=None, max_iter=1000) [source]
Linear Support Vector Regression. Similar to SVR with parameter kernel=’linear’, but implemented in terms of liblinear ... | |
doc_938 |
The character name (N). | |
doc_939 | This is a factory method which can be overridden in subclasses to create specialized LogRecord instances. | |
doc_940 | getpass.getpass(prompt='Password: ', stream=None)
Prompt the user for a password without echoing. The user is prompted using the string prompt, which defaults to 'Password: '. On Unix, the prompt is written to the file-like object stream using the replace error handler if needed. stream defaults to the controlling te... | |
doc_941 | [0., 1., 2.]]
NumPy’s array class is called ndarray. It is also known by the alias array. Note that numpy.array is not the same as the Standard Python Library class array.array, which only handles one-dimensional arrays and offers less functionality. The more important attributes of an ndarray object are: ndarray.nd... | |
doc_942 |
Run score function on (X, y) and get the appropriate features. Parameters
Xarray-like of shape (n_samples, n_features)
The training input samples.
yarray-like of shape (n_samples,)
The target values (class labels in classification, real numbers in regression). Returns
selfobject | |
doc_943 | A dictionary mapping string descriptions to their error codes. New in version 3.2. | |
doc_944 |
Return filter function to be used for agg filter. | |
doc_945 |
Push an image onto the shared image stack. Parameters
imgndarray
Image to push. | |
doc_946 | Parse a config.h-style file. fp is a file-like object pointing to the config.h-like file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary, and updated with the values read in the file. | |
doc_947 | Group name. | |
doc_948 | """
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_949 | The return type of SSLContext.wrap_bio(), defaults to SSLObject. The attribute can be overridden on instance of class in order to return a custom subclass of SSLObject. New in version 3.7. | |
doc_950 |
Return the complex conjugate, element-wise. Refer to numpy.conjugate for full documentation. See also numpy.conjugate
equivalent function | |
doc_951 |
Like find, but raises ValueError when the substring is not found. See also char.index | |
doc_952 | URL name: password_reset Allows a user to reset their password by generating a one-time use link that can be used to reset the password, and sending that link to the user’s registered email address. If the email address provided does not exist in the system, this view won’t send an email, but the user won’t receive any... | |
doc_953 | The Django template language Templates Variables Filters Tags Comments Template inheritance Automatic HTML escaping Accessing method calls Custom tag and filter libraries
Built-in template tags and filters Built-in tag reference Built-in filter reference Internationalization tags and filters Other tags and filters l... | |
doc_954 |
Construct a naive UTC datetime from a POSIX timestamp. Examples
>>> pd.Timestamp.utcfromtimestamp(1584199972)
Timestamp('2020-03-14 15:32:52') | |
doc_955 |
Predict confidence scores for samples. The confidence score for a sample is proportional to the signed distance of that sample to the hyperplane. Parameters
Xarray-like or sparse matrix, shape (n_samples, n_features)
Samples. Returns
array, shape=(n_samples,) if n_classes == 2 else (n_samples, n_classes)
... | |
doc_956 |
Set the sketch parameters. Parameters
scalefloat, optional
The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided.
lengthfloat, optional
The length of the wiggle along the line, in pixels (default 128.0)
randomnessfloat... | |
doc_957 |
Bases: torch.distributions.distribution.Distribution Creates a LogitRelaxedBernoulli distribution parameterized by probs or logits (but not both), which is the logit of a RelaxedBernoulli distribution. Samples are logits of values in (0, 1). See [1] for more details. Parameters
temperature (Tensor) – relaxation t... | |
doc_958 |
Number of dimensions of the underlying data, by definition 1. | |
doc_959 | tf.nn.ctc_loss(
labels, logits, label_length, logit_length, logits_time_major=True, unique=None,
blank_index=None, name=None
)
This op implements the CTC loss as presented in (Graves et al., 2006). Notes: Same as the "Classic CTC" in TensorFlow 1.x's tf.compat.v1.nn.ctc_loss setting of preprocess_collapse_rep... | |
doc_960 | Application configuration objects store metadata for an application. Some attributes can be configured in AppConfig subclasses. Others are set by Django and read-only. | |
doc_961 | A boolean specifying whether to display the page if no objects are available. If this is True and no objects are available, the view will display an empty page instead of raising a 404. This is identical to django.views.generic.list.MultipleObjectMixin.allow_empty, except for the default value, which is False. | |
doc_962 |
Return the indices to access the main diagonal of an n-dimensional array. See diag_indices for full details. Parameters
arrarray, at least 2-D
See also diag_indices
Notes New in version 1.4.0. | |
doc_963 |
Context manager to temporarily set options in the with statement context. You need to invoke as option_context(pat, val, [(pat, val), ...]). Examples
>>> with option_context('display.max_rows', 10, 'display.max_columns', 5):
... pass
Methods
__call__(func) Call self as a function. | |
doc_964 | Casts this storage to double type | |
doc_965 | In-place version of floor() | |
doc_966 | window.derwin(nlines, ncols, begin_y, begin_x)
An abbreviation for “derive window”, derwin() is the same as calling subwin(), except that begin_y and begin_x are relative to the origin of the window, rather than relative to the entire screen. Return a window object for the derived window. | |
doc_967 | Returns the name (ID) of the chunk. This is the first 4 bytes of the chunk. | |
doc_968 | Automatically set the field to now every time the object is saved. Useful for “last-modified” timestamps. Note that the current date is always used; it’s not just a default value that you can override. The field is only automatically updated when calling Model.save(). The field isn’t updated when making updates to othe... | |
doc_969 |
Applies the element-wise function: Tanh(x)=tanh(x)=exp(x)−exp(−x)exp(x)+exp(−x)\text{Tanh}(x) = \tanh(x) = \frac{\exp(x) - \exp(-x)} {\exp(x) + \exp(-x)}
Shape:
Input: (N,∗)(N, *) where * means, any number of additional dimensions Output: (N,∗)(N, *) , same shape as the input Examples: >>> m = nn.Tanh... | |
doc_970 |
Alias for the unsigned integer type (one of numpy.ubyte, numpy.ushort, numpy.uintc, numpy.uint and np.ulonglong) that is the same size as a pointer. Compatible with the C uintptr_t. Character code
'P' | |
doc_971 |
Return whether the artist uses clipping. | |
doc_972 | Delete the breakpoint from the list associated to a file/line. If it is the last breakpoint in that position, it also deletes the entry for the file/line. | |
doc_973 | sklearn.datasets.make_biclusters(shape, n_clusters, *, noise=0.0, minval=10, maxval=100, shuffle=True, random_state=None) [source]
Generate an array with constant block diagonal structure for biclustering. Read more in the User Guide. Parameters
shapeiterable of shape (n_rows, n_cols)
The shape of the result. ... | |
doc_974 |
Pad strings in the Series/Index up to width. Parameters
width:int
Minimum width of resulting string; additional characters will be filled with character defined in fillchar.
side:{‘left’, ‘right’, ‘both’}, default ‘left’
Side from which to fill resulting string.
fillchar:str, default ‘ ‘
Additional char... | |
doc_975 |
Estimate background intensity by rolling/translating a kernel. This rolling ball algorithm estimates background intensity for a ndimage in case of uneven exposure. It is a generalization of the frequently used rolling ball algorithm [1]. Parameters
imagendarray
The image to be filtered.
radiusint, optional
... | |
doc_976 |
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_977 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_978 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_979 | Decompress data (a bytes-like object), returning uncompressed data as bytes. Some of data may be buffered internally, for use in later calls to decompress(). The returned data should be concatenated with the output of any previous calls to decompress(). If max_length is nonnegative, returns at most max_length bytes of ... | |
doc_980 | Sets the time the robots.txt file was last fetched to the current time. | |
doc_981 | tf.autograph.to_graph(
entity, recursive=True, experimental_optional_features=None
)
Also see: tf.autograph.to_code, tf.function. Unlike tf.function, to_graph is a low-level transpiler that converts Python code to TensorFlow graph code. It does not implement any caching, variable management or create any actual op... | |
doc_982 |
Set and validate the parameters of estimator. Parameters
**kwargsdict
Estimator parameters. Returns
selfobject
Estimator instance. | |
doc_983 |
Set the CapStyle for the collection (for all its elements). Parameters
csCapStyle or {'butt', 'projecting', 'round'} | |
doc_984 | tf.experimental.numpy.where(
condition, x=None, y=None
)
Raises ValueError if exactly one of x or y is not None. See the NumPy documentation for numpy.where. | |
doc_985 |
Implements lazy version of Adam algorithm suitable for sparse tensors. In this variant, only moments that show up in the gradient get updated, and only those portions of the gradient get applied to the parameters. Parameters
params (iterable) – iterable of parameters to optimize or dicts defining parameter groups... | |
doc_986 |
Apply the inverse power transformation using the fitted lambdas. The inverse of the Box-Cox transformation is given by: if lambda_ == 0:
X = exp(X_trans)
else:
X = (X_trans * lambda_ + 1) ** (1 / lambda_)
The inverse of the Yeo-Johnson transformation is given by: if X >= 0 and lambda_ == 0:
X = exp(X_tra... | |
doc_987 |
Bases: mpl_toolkits.axes_grid1.axes_size._Base Return a instance where the absolute part of size is increase by the amount of pad. get_size(renderer)[source] | |
doc_988 |
Removes the weight normalization reparameterization from a module. Parameters
module (Module) – containing module
name (str, optional) – name of weight parameter Example >>> m = weight_norm(nn.Linear(20, 40))
>>> remove_weight_norm(m) | |
doc_989 | Returns the content length if available or None otherwise. Return type
Optional[int] | |
doc_990 | Change if autograd should record operations on parameters in this module. This method sets the parameters’ requires_grad attributes in-place. This method is helpful for freezing part of the module for finetuning or training parts of a model individually (e.g., GAN training). Parameters
requires_grad (bool) – whether ... | |
doc_991 | Bind a unix socket, raising unittest.SkipTest if PermissionError is raised. | |
doc_992 |
Bases: object __call__(direction, factor, values)[source]
Call self as a function.
deg_mark='^{\\circ}'
fmt_d='$%d^{\\circ}$'
fmt_d_m='$%s%d^{\\circ}\\,%02d^{\\prime}$'
fmt_d_m_partial='$%s%d^{\\circ}\\,%02d^{\\prime}\\,'
fmt_d_ms='$%s%d^{\\circ}\\,%02d.%s^{\\prime}$'
fmt_ds='$%d.%s^{\\cir... | |
doc_993 |
Get the matrix for the affine part of this transform. | |
doc_994 | '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_995 | tf.keras.mixed_precision.experimental.Policy(
name, loss_scale='auto'
)
Warning: This class is now deprecated and will be removed soon. Please use the non-experimental class tf.keras.mixed_precision.Policy instead. The difference between this class and the non-experimental class is that this class has a loss_scale... | |
doc_996 | Encode the given object, o, and yield each string representation as available. For example: for chunk in json.JSONEncoder().iterencode(bigobject):
mysocket.write(chunk) | |
doc_997 | Register a custom template filter. Works exactly like the template_filter() decorator. Parameters
name (Optional[str]) – the optional name of the filter, otherwise the function name will be used.
f (Callable[[Any], str]) – Return type
None | |
doc_998 | Test the widget’s state. If a callback is not specified, returns True if the widget state matches statespec and False otherwise. If callback is specified then it is called with args if widget state matches statespec. | |
doc_999 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListResize
tf.raw_ops.TensorListResize(
input_handle, size, name=None
)
input_handle: the input list size: size of the output list
Args
input_handle A Tensor of type variant.
size A Tensor of type int32.
name A name for the ope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.