_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_13900
The data type contained in the band, as an integer constant between 0 (Unknown) and 11. If as_string is True, the data type is returned as a string with the following possible values: GDT_Unknown, GDT_Byte, GDT_UInt16, GDT_Int16, GDT_UInt32, GDT_Int32, GDT_Float32, GDT_Float64, GDT_CInt16, GDT_CInt32, GDT_CFloat32, and...
doc_13901
Return the square root of x. This has the same branch cut as log().
doc_13902
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyAdadelta tf.raw_ops.ResourceApplyAdadelta( var, accum, accum_update, lr, rho, epsilon, grad, use_locking=False, name=None ) accum = rho() * accum + (1 - rho()) * grad.square(); update = (update_accum + epsilon).sqrt() * (accum + epsilon()).r...
doc_13903
Set the pick radius used for containment tests. Parameters prfloat Pick radius, in points.
doc_13904
Return a copy of the string with leading characters removed. The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to removing whitespace. The chars argument is not a prefix; rather, all combinations of its values are stripped: >>> ' spacious ...
doc_13905
Return a new array with the specified shape. If the new array is larger than the original array, then the new array is filled with repeated copies of a. Note that this behavior is different from a.resize(new_shape) which fills with zeros instead of repeated copies of a. Parameters aarray_like Array to be resize...
doc_13906
Return full path of a executable or None. Symbolic links are not followed.
doc_13907
Release the lock from o.
doc_13908
Center a kernel matrix. Let K(x, z) be a kernel defined by phi(x)^T phi(z), where phi is a function mapping x to a Hilbert space. KernelCenterer centers (i.e., normalize to have zero mean) the data without explicitly computing phi(x). It is equivalent to centering phi(x) with sklearn.preprocessing.StandardScaler(with...
doc_13909
tf.compat.v1.logging.log( level, msg, *args, **kwargs )
doc_13910
control if text is rendered with an underline set_underline(bool) -> None When enabled, all rendered fonts will include an underline. The underline is always one pixel thick, regardless of font size. This can be mixed with the bold and italic modes. Note This is the same as the underline attribute.
doc_13911
Accumulate the result of applying the operator to all elements. For a one-dimensional array, accumulate produces results equivalent to: r = np.empty(len(A)) t = op.identity # op = the ufunc being applied to A's elements for i in range(len(A)): t = op(t, A[i]) r[i] = t return r For example, add.accumu...
doc_13912
Return the mapping parameters. The returned values define a linear map off + scl*x that is applied to the input arguments before the series is evaluated. The map depends on the domain and window; if the current domain is equal to the window the resulting map is the identity. If the coefficients of the series instance...
doc_13913
Returns the time the robots.txt file was last fetched. This is useful for long-running web spiders that need to check for new robots.txt files periodically.
doc_13914
Unset the flag(s) specified by flag without changing other flags. To remove more than one flag at a time, flag maybe a string of more than one character.
doc_13915
A barrier object: a clone of threading.Barrier. New in version 3.3.
doc_13916
New in Django 3.2. This decorator can be used for setting specific attributes on custom display functions that can be used with list_display or readonly_fields: @admin.display( boolean=True, ordering='-publish_date', description='Is Published?', ) def is_published(self, obj): return obj.publish_date i...
doc_13917
This does nothing; it doesn’t even set the Content-Transfer-Encoding header.
doc_13918
Return the high median of data. If data is empty, StatisticsError is raised. data can be a sequence or iterable. The high median is always a member of the data set. When the number of data points is odd, the middle value is returned. When it is even, the larger of the two middle values is returned. >>> median_high([1, ...
doc_13919
RGB to HSV color space conversion. Parameters rgb(…, 3) array_like The image in RGB format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in HSV format. Same dimensions as input. Raises ValueError If rgb is not at least 2-D with shape (…, 3). Notes Conversion between RG...
doc_13920
Two DateOffset’s per month repeating on the last day of the month and day_of_month. Parameters n:int normalize:bool, default False day_of_month:int, {1, 3,…,27}, default 15 Attributes base Returns a copy of the calling offset object with n=1 and all other attributes equal. day_of_month ...
doc_13921
Stores a range of timestamps. Based on a DateTimeField. Represented by a tstzrange in the database and a DateTimeTZRange in Python.
doc_13922
Compute the two-point correlation function Parameters Xarray-like of shape (n_samples, n_features) An array of points to query. Last dimension should match dimension of training data. rarray-like A one-dimensional array of distances dualtreebool, default=False If True, use a dualtree algorithm. Otherwise,...
doc_13923
Return a string specifying the flags that are currently set. If the message complies with the conventional format, the result is the concatenation in the following order of zero or one occurrence of each of 'R', 'O', 'D', 'F', and 'A'.
doc_13924
skimage.filters.apply_hysteresis_threshold(…) Apply hysteresis thresholding to image. skimage.filters.correlate_sparse(image, kernel) Compute valid cross-correlation of padded_array and kernel. skimage.filters.difference_of_gaussians(…) Find features between low_sigma and high_sigma in size. skimage.filters.farid...
doc_13925
Add a new child node to this node at the end of the list of children, returning newChild. If the node was already in the tree, it is removed first.
doc_13926
Set the x-axis view limits. Parameters leftfloat, optional The left xlim in data coordinates. Passing None leaves the limit unchanged. The left and right xlims may also be passed as the tuple (left, right) as the first positional argument (or as the left keyword argument). rightfloat, optional The right xli...
doc_13927
'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_13928
brings the sprite to front layer move_to_front(sprite) -> None Brings the sprite to front, changing sprite layer to topmost layer (added at the end of that layer).
doc_13929
See Migration guide for more details. tf.compat.v1.sparse.reshape, tf.compat.v1.sparse_reshape tf.sparse.reshape( sp_input, shape, name=None ) This operation has the same semantics as reshape on the represented dense tensor. The indices of non-empty values in sp_input are recomputed based on the new dense shape,...
doc_13930
os.O_NOINHERIT os.O_SHORT_LIVED os.O_TEMPORARY os.O_RANDOM os.O_SEQUENTIAL os.O_TEXT The above constants are only available on Windows.
doc_13931
Wait until the sound device has played every byte in its buffer. (This happens implicitly when the device is closed.) The OSS documentation recommends closing and re-opening the device rather than using sync().
doc_13932
See Migration guide for more details. tf.compat.v1.raw_ops.RandomShuffle tf.raw_ops.RandomShuffle( value, seed=0, seed2=0, name=None ) The tensor is shuffled along dimension 0, such that each value[j] is mapped to one and only one output[i]. For example, a mapping that might occur for a 3x2 tensor is: [[1, 2], ...
doc_13933
Decompress data (a bytes object), returning the uncompressed data as a bytes object. If data is the concatenation of multiple distinct compressed streams, decompress all of these streams, and return the concatenation of the results. See LZMADecompressor above for a description of the format, memlimit and filters argume...
doc_13934
An immutable OrderedMultiDict. Changelog New in version 0.6. copy() Return a shallow mutable copy of this object. Keep in mind that the standard library’s copy() function is a no-op for this class like for any other python immutable type (eg: tuple).
doc_13935
Return day of the week. Examples >>> ts = pd.Timestamp(2020, 3, 14) >>> ts.day_of_week 5
doc_13936
Receive notification of character data. The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so...
doc_13937
tf.compat.v1.metrics.precision_at_thresholds( labels, predictions, thresholds, weights=None, metrics_collections=None, updates_collections=None, name=None ) The precision_at_thresholds function creates four local variables, true_positives, true_negatives, false_positives and false_negatives for various values ...
doc_13938
A bounded semaphore object. Not thread-safe. Bounded Semaphore is a version of Semaphore that raises a ValueError in release() if it increases the internal counter above the initial value. Deprecated since version 3.8, will be removed in version 3.10: The loop parameter.
doc_13939
Set the artist's clip Bbox. Parameters clipboxBbox
doc_13940
Fast lookup of value from 1-dimensional ndarray. Deprecated since version 1.0. Notes Only use this if you know what you’re doing.
doc_13941
See Migration guide for more details. tf.compat.v1.raw_ops.BatchToSpace tf.raw_ops.BatchToSpace( input, crops, block_size, name=None ) This is a legacy version of the more general BatchToSpaceND. Rearranges (permutes) data from batch into blocks of spatial data, followed by cropping. This is the reverse transfor...
doc_13942
Callback signaling that a new file upload is starting. This is called before any data has been fed to any upload handlers. field_name is a string name of the file <input> field. file_name is the filename provided by the browser. content_type is the MIME type provided by the browser – E.g. 'image/jpeg'. content_length i...
doc_13943
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None
doc_13944
Perform the operation cmd on file descriptor fd (file objects providing a fileno() method are accepted as well). The values used for cmd are operating system dependent, and are available as constants in the fcntl module, using the same names as used in the relevant C header files. The argument arg can either be an inte...
doc_13945
Fit the model according to the given training data. Parameters Xarray-like, shape (n_samples, n_features) Training vector, where n_samples in the number of samples and n_features is the number of features. yarray-like, shape (n_samples,) Target vector relative to X. sample_weightarray-like, shape (n_sampl...
doc_13946
An OpClass() expression represents the expression with a custom operator class that can be used to define functional indexes or unique constraints. To use it, you need to add 'django.contrib.postgres' in your INSTALLED_APPS. Set the name parameter to the name of the operator class. For example: Index( OpClass(Lower...
doc_13947
Return the number of occurrences of x in the array.
doc_13948
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_13949
tf.profiler.experimental.server.start( port ) The profiler server will exit when the process finishes. The service is defined in tensorflow/core/profiler/profiler_service.proto. Args port port profiler server listens to. Example usage: ```python tf.profiler.experimental.server.start('6009') # do your t...
doc_13950
Clear traces of memory blocks allocated by Python. See also stop().
doc_13951
Wrap the BIO objects incoming and outgoing and return an instance of SSLContext.sslobject_class (default SSLObject). The SSL routines will read input data from the incoming BIO and write data to the outgoing BIO. The server_side, server_hostname and session parameters have the same meaning as in SSLContext.wrap_socket(...
doc_13952
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 array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or list of bools array a...
doc_13953
Convert a tuple or struct_time representing a time as returned by gmtime() or localtime() to a string of the following form: 'Sun Jun 20 23:21:05 1993'. The day field is two characters long and is space padded if the day is a single digit, e.g.: 'Wed Jun  9 04:26:40 1993'. If t is not provided, the current time as retu...
doc_13954
Round towards -Infinity.
doc_13955
Pass to getrusage() to request resources consumed by child processes of the calling process which have been terminated and waited for.
doc_13956
Equivalent to gettext() and ngettext(), but the translation is returned as a byte string encoded in the preferred system encoding if no encoding was explicitly set with set_output_charset(). Overridden in derived classes. Warning These methods should be avoided in Python 3. See the warning for the lgettext() function....
doc_13957
tf.compat.v1.train.Saver( var_list=None, reshape=False, sharded=False, max_to_keep=5, keep_checkpoint_every_n_hours=10000.0, name=None, restore_sequentially=False, saver_def=None, builder=None, defer_build=False, allow_empty=False, write_version=tf.train.SaverDef.V2, pad_step_number=False, save_rela...
doc_13958
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_13959
Scores the sample by inverting the transform(s) and computing the score using the score of the base distribution and the log abs det jacobian.
doc_13960
Return whether image composition by Matplotlib should be skipped. Raster backends should usually return False (letting the C-level rasterizer take care of image composition); vector backends should usually return not rcParams["image.composite_image"].
doc_13961
This function is similar to run(), with added arguments to supply the globals and locals dictionaries for the command string. This routine executes: exec(command, globals, locals) and gathers profiling statistics as in the run() function above.
doc_13962
update the clock tick(framerate=0) -> milliseconds This method should be called once per frame. It will compute how many milliseconds have passed since the previous call. If you pass the optional framerate argument the function will delay to keep the game running slower than the given ticks per second. This can be us...
doc_13963
Return the sketch parameters for the artist. Returns tuple or None A 3-tuple with the following elements: scale: The amplitude of the wiggle perpendicular to the source line. length: The length of the wiggle along the line. randomness: The scale factor by which the length is shrunken or expanded. Returns Non...
doc_13964
Works exactly like a dict but provides ways to fill it from files or special dictionaries. There are two common patterns to populate the config. Either you can fill the config from a config file: app.config.from_pyfile('yourconfig.cfg') Or alternatively you can define the configuration options in the module that calls...
doc_13965
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_13966
Fit the model using X, y as training data. Parameters Xarray-like of shape (n_samples, n_features) Training data. yarray-like of shape (n_samples,) or (n_samples, n_targets) Target values. Xyarray-like of shape (n_samples,) or (n_samples, n_targets), default=None Xy = np.dot(X.T, y) that can be precompu...
doc_13967
Return True if resource is enabled and available. The list of available resources is only set when test.regrtest is executing the tests.
doc_13968
Compute precision-recall pairs for different probability thresholds. Note: this implementation is restricted to the binary classification task. The precision is the ratio tp / (tp + fp) where tp is the number of true positives and fp the number of false positives. The precision is intuitively the ability of the class...
doc_13969
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
doc_13970
Alias for set_facecolor.
doc_13971
Vertical bar plot. A bar plot is a plot that presents categorical data with rectangular bars with lengths proportional to the values that they represent. A bar plot shows comparisons among discrete categories. One axis of the plot shows the specific categories being compared, and the other axis represents a measured ...
doc_13972
A string representation of the interface with the network as a net mask. >>> interface = IPv4Interface('192.0.2.5/24') >>> interface.with_netmask '192.0.2.5/255.255.255.0'
doc_13973
See Migration guide for more details. tf.compat.v1.raw_ops.AnonymousMemoryCache tf.raw_ops.AnonymousMemoryCache( name=None ) Args name A name for the operation (optional). Returns A tuple of Tensor objects (handle, deleter). handle A Tensor of type resource. deleter A Tensor of typ...
doc_13974
Possible value for SSLContext.verify_flags. It instructs OpenSSL to prefer trusted certificates when building the trust chain to validate a certificate. This flag is enabled by default. New in version 3.4.4.
doc_13975
Perform morphological thinning of a binary image. Parameters imagebinary (M, N) ndarray The image to be thinned. max_iterint, number of iterations, optional Regardless of the value of this parameter, the thinned image is returned immediately if an iteration produces no change. If this parameter is specified...
doc_13976
A concrete implementation of importlib.abc.SourceLoader by subclassing importlib.abc.FileLoader and providing some concrete implementations of other methods. New in version 3.3. name The name of the module that this loader will handle. path The path to the source file. is_package(fullname) Return True...
doc_13977
tf.Assert Compat aliases for migration See Migration guide for more details. tf.compat.v1.Assert, tf.compat.v1.debugging.Assert tf.debugging.Assert( condition, data, summarize=None, name=None ) If condition evaluates to false, print the list of tensors in data. summarize determines how many entries of the tensor...
doc_13978
Copy of the array, cast to a specified type. Parameters dtypestr or dtype Typecode or data-type to which the array is cast. order{‘C’, ‘F’, ‘A’, ‘K’}, optional Controls the memory layout order of the result. ‘C’ means C order, ‘F’ means Fortran order, ‘A’ means ‘F’ order if all the arrays are Fortran contig...
doc_13979
In-place version of gt().
doc_13980
This class can be used to conveniently create a WSGI environment for testing purposes. It can be used to quickly create WSGI environments or request objects from arbitrary data. The signature of this class is also used in some other places as of Werkzeug 0.5 (create_environ(), Response.from_values(), Client.open()). Be...
doc_13981
Set the learning rate of each parameter group using a cosine annealing schedule, where ηmax\eta_{max} is set to the initial lr and TcurT_{cur} is the number of epochs since the last restart in SGDR: ηt=ηmin+12(ηmax−ηmin)(1+cos⁡(TcurTmaxπ)),Tcur≠(2k+1)Tmax;ηt+1=ηt+12(ηmax−ηmin)(1−cos⁡(1Tmaxπ)),Tcur=(2k+1)Tmax.\begi...
doc_13982
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) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_13983
Perform floor operation on the data to the specified freq. Parameters freq:str or Offset The frequency level to floor the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possible freq values. ambiguous:‘infer’, bool-ndarray, ‘NaT’, default ‘raise...
doc_13984
Raise an error if key is not a valid RFC 2109 attribute, otherwise behave the same as dict.setdefault().
doc_13985
Mask an array where less than or equal to a given value. This function is a shortcut to masked_where, with condition = (x <= value). See also masked_where Mask where a condition is met. Examples >>> import numpy.ma as ma >>> a = np.arange(4) >>> a array([0, 1, 2, 3]) >>> ma.masked_less_equal(a, 2) masked_array(...
doc_13986
Return the cell fontsize.
doc_13987
Return the ‘thread identifier’ of the current thread. This is a nonzero integer. Its value has no direct meaning; it is intended as a magic cookie to be used e.g. to index a dictionary of thread-specific data. Thread identifiers may be recycled when a thread exits and another thread is created. New in version 3.3.
doc_13988
sklearn.datasets.load_digits(*, n_class=10, return_X_y=False, as_frame=False) [source] Load and return the digits dataset (classification). Each datapoint is a 8x8 image of a digit. Classes 10 Samples per class ~180 Samples total 1797 Dimensionality 64 Features integers 0-16 Read more in the User Guide. ...
doc_13989
Bases: object The base class for all scales. Scales are separable transformations, working on a single dimension. Subclasses should override name The scale's name. get_transform() A method returning a Transform, which converts data coordinates to scaled coordinates. This transform should be invertible, so that e....
doc_13990
Initialize self. See help(type(self)) for accurate signature.
doc_13991
Set the system’s trace function, which allows you to implement a Python source code debugger in Python. The function is thread-specific; for a debugger to support multiple threads, it must register a trace function using settrace() for each thread being debugged or use threading.settrace(). Trace functions should have ...
doc_13992
Returns the number of bytes in a system page. (This need not be the same as the hardware page size.)
doc_13993
Repeats this tensor along the specified dimensions. Unlike expand(), this function copies the tensor’s data. Warning repeat() behaves differently from numpy.repeat, but is more similar to numpy.tile. For the operator similar to numpy.repeat, see torch.repeat_interleave(). Parameters sizes (torch.Size or int...) – T...
doc_13994
The part of the name following the colon if there is one, else the entire name. This is a read-only attribute.
doc_13995
Test whether each element of a 1-D array is also present in a second array. Returns a boolean array the same length as ar1 that is True where an element of ar1 is in ar2 and False otherwise. We recommend using isin instead of in1d for new code. Parameters ar1(M,) array_like Input array. ar2array_like The va...
doc_13996
tf.compat.v1.profiler.ProfileOptionBuilder( options=None ) For tutorial on the options, see https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler/g3doc/options.md # Users can use pre-built options: opts = ( tf.profiler.ProfileOptionBuilder.trainable_variables_parameter()) # Or, build y...
doc_13997
Return whether the artist is to be rasterized.
doc_13998
Get the matrix for the affine part of this transform.
doc_13999
Return the sum of the values over the requested axis. This is equivalent to the method numpy.sum. Parameters axis:{index (0)} Axis for the function to be applied on. skipna:bool, default True Exclude NA/null values when computing the result. level:int or level name, default None If the axis is a MultiIn...