_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_800
A boolean value indicating whether this thread is a daemon thread (True) or not (False). This must be set before start() is called, otherwise RuntimeError is raised. Its initial value is inherited from the creating thread; the main thread is not a daemon thread and therefore all threads created in the main thread defau...
doc_801
Alias for field number 2
doc_802
Get the current Axes. If there is currently no Axes on this Figure, a new one is created using Figure.add_subplot. (To test whether there is currently an Axes on a Figure, check whether figure.axes is empty. To test whether there is currently a Figure on the pyplot figure stack, check whether pyplot.get_fignums() is ...
doc_803
See Migration guide for more details. tf.compat.v1.lookup.TextFileIndex This class defines the key and value used for tf.lookup.TextFileInitializer. The key and value content to get from each line is specified either by the following, or a value >=0. TextFileIndex.LINE_NUMBER means use the line number starting from ...
doc_804
Return the Transform instance used by this artist.
doc_805
Return the Kaiser window. The Kaiser window is a taper formed by using a Bessel function. Parameters Mint Number of points in the output window. If zero or less, an empty array is returned. betafloat Shape parameter for window. Returns outarray The window, with the maximum value normalized to one (t...
doc_806
operator.le(a, b) operator.eq(a, b) operator.ne(a, b) operator.ge(a, b) operator.gt(a, b) operator.__lt__(a, b) operator.__le__(a, b) operator.__eq__(a, b) operator.__ne__(a, b) operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva...
doc_807
set the color for a single index in an 8-bit Surface palette set_palette_at(index, RGB) -> None Set the palette value for a single entry in a Surface palette. The index should be a value from 0 to 255. This function has no effect on a Surface with more than 8-bits per pixel.
doc_808
Quote a header value if necessary. Changelog New in version 0.5. Parameters value (Union[str, int]) – the value to quote. extra_chars (str) – a list of extra characters to skip quoting. allow_token (bool) – if this is enabled token values are returned unchanged. Return type str
doc_809
copy surface pixels to an array object surface_to_array(array, surface, kind='P', opaque=255, clear=0) -> None The surface_to_array function copies pixels from a Surface object to a 2D or 3D array. Depending on argument kind and the target array dimension, a copy may be raw pixel value, RGB, a color component slice, ...
doc_810
Checks for a character value that fits in the 7-bit ASCII set.
doc_811
tf.foldl( 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_812
Return the name of the object files for the given source files. Parameters source_filenameslist of str The list of paths to source files. Paths can be either relative or absolute, this is handled transparently. strip_dirbool, optional Whether to strip the directory from the returned paths. If True, the file...
doc_813
'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_814
Return a controller object for the browser type using. If using is None, return a controller for a default browser appropriate to the caller’s environment.
doc_815
max(arg1, arg2, *args[, key]) Return the largest item in an iterable or the largest of two or more arguments. If one positional argument is provided, it should be an iterable. The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is ret...
doc_816
Token value for "<<".
doc_817
A pull parser suitable for non-blocking applications. Its input-side API is similar to that of XMLParser, but instead of pushing calls to a callback target, XMLPullParser collects an internal list of parsing events and lets the user read from it. events is a sequence of events to report back. The supported events are t...
doc_818
Unpivot a DataFrame from wide to long format, optionally leaving identifiers set. This function is useful to massage a DataFrame into a format where one or more columns are identifier variables (id_vars), while all other columns, considered measured variables (value_vars), are “unpivoted” to the row axis, leaving jus...
doc_819
Set the high and low watermarks for write flow control. These two values (measured in number of bytes) control when the protocol’s protocol.pause_writing() and protocol.resume_writing() methods are called. If specified, the low watermark must be less than or equal to the high watermark. Neither high nor low can be nega...
doc_820
Return the indices for the upper-triangle of arr. See triu_indices for full details. Parameters arrndarray, shape(N, N) The indices will be valid for square arrays. kint, optional Diagonal offset (see triu for details). Returns triu_indices_fromtuple, shape(2) of ndarray, shape(N) Indices for the up...
doc_821
Convert naive Timestamp to local time zone, or remove timezone from timezone-aware Timestamp. Parameters tz:str, pytz.timezone, dateutil.tz.tzfile or None Time zone for time which Timestamp will be converted to. None will remove timezone holding local time. ambiguous:bool, ‘NaT’, default ‘raise’ When clocks...
doc_822
See Migration guide for more details. tf.compat.v1.nn.avg_pool3d tf.nn.avg_pool3d( input, ksize, strides, padding, data_format='NDHWC', name=None ) Each entry in output is the mean of the corresponding size ksize window in value. Args input A 5-D Tensor of shape [batch, height, width, channels] and type...
doc_823
Parameters urlslist of str or None Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends.
doc_824
Return the current coordinates of the virtual screen cursor as a tuple (y, x). If leaveok is currently True, then return (-1, -1).
doc_825
Return the label used for this artist in the legend.
doc_826
Registers the file handler callback function func. The file argument may either be an object with a fileno() method (such as a file or socket object), or an integer file descriptor. The mask argument is an ORed combination of any of the three constants below. The callback is called as follows: callback(file, mask)
doc_827
Set the current process’s real and effective group ids. Availability: Unix.
doc_828
A mixin that can be used to retrieve and provide parsing information for a month component of a date. Methods and Attributes month_format The strftime() format to use when parsing the month. By default, this is '%b'. month Optional The value for the month, as a string. By default, set to None, which means the...
doc_829
Bases: matplotlib.ticker.Formatter A Formatter which attempts to figure out the best format to use for the date, and to make it as compact as possible, but still be complete. This is most useful when used with the AutoDateLocator: >>> locator = AutoDateLocator() >>> formatter = ConciseDateFormatter(locator) Paramet...
doc_830
Return whether this bounding box overlaps with the other bounding box, not including the edges. Parameters otherBboxBase
doc_831
Returns the remainder from integer division. The sign of the result, if non-zero, is the same as that of the original dividend.
doc_832
The thread command is a variant of search with threading semantics for the results. Returned data contains a space separated list of thread members. Thread members consist of zero or more messages numbers, delimited by spaces, indicating successive parent and child. Thread has two arguments before the search_criterion ...
doc_833
Schedule callback to be called at the given absolute timestamp when (an int or a float), using the same time reference as loop.time(). This method’s behavior is the same as call_later(). An instance of asyncio.TimerHandle is returned which can be used to cancel the callback. Changed in version 3.7: The context keyword...
doc_834
See Migration guide for more details. tf.compat.v1.raw_ops.OutfeedEnqueue tf.raw_ops.OutfeedEnqueue( input, name=None ) Args input A Tensor. A tensor that will be inserted into the outfeed queue. name A name for the operation (optional). Returns The created Operation.
doc_835
A legacy method which when implemented calculates and returns the given module’s repr, as a string. The module type’s default repr() will use the result of this method as appropriate. New in version 3.3. Changed in version 3.4: Made optional instead of an abstractmethod. Deprecated since version 3.4: The import ma...
doc_836
Return the data collected between a SB/SE pair (suboption begin/end). The callback should access these data when it was invoked with a SE command. This method never blocks.
doc_837
Fit linear model with coordinate descent. Fit is on grid of alphas and best alpha estimated by cross-validation. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training data. Pass directly as Fortran-contiguous data to avoid unnecessary memory duplication. If y is mono-output, X can be...
doc_838
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_839
Draw samples from a standard Normal distribution (mean=0, stdev=1). Note New code should use the standard_normal method of a default_rng() instance instead; please see the Quick Start. Parameters sizeint or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples ar...
doc_840
Return num cryptographically strong pseudo-random bytes. Raises an SSLError if the PRNG has not been seeded with enough data or if the operation is not supported by the current RAND method. RAND_status() can be used to check the status of the PRNG and RAND_add() can be used to seed the PRNG. For almost all applications...
doc_841
sklearn.metrics.mean_absolute_percentage_error(y_true, y_pred, sample_weight=None, multioutput='uniform_average') [source] Mean absolute percentage error regression loss. Note here that we do not represent the output as a percentage in range [0, 100]. Instead, we represent it in range [0, 1/eps]. Read more in the Use...
doc_842
A string specifying the name to use for the page parameter. The view will expect this parameter to be available either as a query string parameter (via request.GET) or as a kwarg variable specified in the URLconf. Defaults to page.
doc_843
Returns an iterator over module parameters. This is typically passed to an optimizer. Parameters recurse (bool) – if True, then yields parameters of this module and all submodules. Otherwise, yields only parameters that are direct members of this module. Yields Parameter – module parameter Example: >>> for param ...
doc_844
Pretty-print all fields.
doc_845
In-place version of le().
doc_846
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_847
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_848
See Migration guide for more details. tf.compat.v1.keras.models.model_from_yaml tf.keras.models.model_from_yaml( yaml_string, custom_objects=None ) Usage: model = tf.keras.Sequential([ tf.keras.layers.Dense(5, input_shape=(3,)), tf.keras.layers.Softmax()]) try: import yaml config = model.to_yaml() ...
doc_849
Returns true for each element if all characters in the string are alphanumeric and there is at least one character, false otherwise. See also char.isalnum
doc_850
returns a tuple with radial distance and azimuthal angle. as_polar() -> (r, phi) Returns a tuple (r, phi) where r is the radial distance, and phi is the azimuthal angle.
doc_851
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_852
Return the values at the new freq, essentially a reindex. Parameters fill_value:scalar, optional Value to use for missing values, applied during upsampling (note this does not fill NaNs that already were present). Returns DataFrame or Series Values at the specified freq. See also Series.asfreq Conv...
doc_853
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 animated bool clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None f...
doc_854
Return True if the path points to a FIFO (or a symbolic link pointing to a FIFO), False if it points to another kind of file. False is also returned if the path doesn’t exist or is a broken symlink; other errors (such as permission errors) are propagated.
doc_855
Adds the forward pre-hook that enables pruning on the fly and the reparametrization of a tensor in terms of the original tensor and the pruning mask. Parameters module (nn.Module) – module containing the tensor to prune name (str) – parameter name within module on which pruning will act. amount (int or float) –...
doc_856
See Migration guide for more details. tf.compat.v1.raw_ops.FusedBatchNormV3 tf.raw_ops.FusedBatchNormV3( x, scale, offset, mean, variance, epsilon=0.0001, exponential_avg_factor=1, data_format='NHWC', is_training=True, name=None ) Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". The s...
doc_857
Read bytes into a pre-allocated, writable bytes-like object b, using at most one call to the underlying raw stream’s read() (or readinto()) method. Return the number of bytes read. A BlockingIOError is raised if the underlying raw stream is in non blocking-mode, and has no data available at the moment. New in version ...
doc_858
See Migration guide for more details. tf.compat.v1.raw_ops.Barrier tf.raw_ops.Barrier( component_types, shapes=[], capacity=-1, container='', shared_name='', name=None ) A barrier represents a key-value map, where each key is a string, and each value is a tuple of tensors. At runtime, the barrier contains 'c...
doc_859
Return the value (in fractional seconds) of the sum of the system and user CPU time of the current thread. It does not include time elapsed during sleep. It is thread-specific by definition. The reference point of the returned value is undefined, so that only the difference between the results of two calls in the same ...
doc_860
os.R_OK os.W_OK os.X_OK Values to pass as the mode parameter of access() to test the existence, readability, writability and executability of path, respectively.
doc_861
Set the categories to the specified new_categories. new_categories can include new categories (which will result in unused categories) or remove old categories (which results in values set to NaN). If rename==True, the categories will simple be renamed (less or more items than in old categories will result in values ...
doc_862
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct...
doc_863
Remove axes of length one from a. Refer to numpy.squeeze for full documentation. See also numpy.squeeze equivalent function
doc_864
tf.distribute.experimental.coordinator.PerWorkerValues( values ) tf.distribute.experimental.coordinator.PerWorkerValues contains a collection of values, where each of the value is located one worker respectively, and upon being used as one of the args or kwargs of tf.distribute.experimental.coordinator.ClusterCoor...
doc_865
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_866
See Migration guide for more details. tf.compat.v1.raw_ops.TensorListConcatV2 tf.raw_ops.TensorListConcatV2( input_handle, element_shape, leading_dims, element_dtype, name=None ) Requires that all tensors have the same shape except the first dimension. input_handle: The input list. element_shape: The shape of th...
doc_867
Test that the multiline string first is equal to the string second. When not equal a diff of the two strings highlighting the differences will be included in the error message. This method is used by default when comparing strings with assertEqual(). New in version 3.1.
doc_868
Create a folder whose name is folder and return an MH instance representing it.
doc_869
Send a simple command string to the server and handle the response. Return nothing if a response code corresponding to success (codes in the range 200–299) is received. Raise error_reply otherwise. Raises an auditing event ftplib.sendcmd with arguments self, cmd.
doc_870
Return self|=value.
doc_871
Collapse and truncate the given text to fit in the given width. First the whitespace in text is collapsed (all whitespace is replaced by single spaces). If the result fits in the width, it is returned. Otherwise, enough words are dropped from the end so that the remaining words plus the placeholder fit within width: >>...
doc_872
Return a shallow copy of the context object.
doc_873
Converts a number to a string using scientific notation.
doc_874
Return the angle of the complex argument. Parameters zarray_like A complex number or sequence of complex numbers. degbool, optional Return angle in degrees if True, radians if False (default). Returns anglendarray or scalar The counterclockwise angle from the positive real axis on the complex plane ...
doc_875
Enables handling of the DELETE HTTP action. Methods and Attributes success_url The url to redirect to when the nominated object has been successfully deleted. success_url may contain dictionary string formatting, which will be interpolated against the object’s field attributes. For example, you could use success_ur...
doc_876
Get the dictionary of header metadata from a numpy.ndarray. Parameters arraynumpy.ndarray Returns ddict This has the appropriate entries for writing its string representation to the header of the file.
doc_877
Returns the Generator state as a torch.ByteTensor. Returns A torch.ByteTensor which contains all the necessary bits to restore a Generator to a specific point in time. Return type Tensor Example: >>> g_cpu = torch.Generator() >>> g_cpu.get_state()
doc_878
See Migration guide for more details. tf.compat.v1.keras.layers.LocallyConnected1D tf.keras.layers.LocallyConnected1D( filters, kernel_size, strides=1, padding='valid', data_format=None, activation=None, use_bias=True, kernel_initializer='glorot_uniform', bias_initializer='zeros', kernel_regularizer=None,...
doc_879
pause the program for an amount of time delay(milliseconds) -> time Will pause for a given number of milliseconds. This function will use the processor (rather than sleeping) in order to make the delay more accurate than pygame.time.wait(). This returns the actual number of milliseconds used.
doc_880
Prints the calendar for an entire year as returned by calendar().
doc_881
Return the Colormap instance.
doc_882
Multi target classification This strategy consists of fitting one classifier per target. This is a simple strategy for extending classifiers that do not natively support multi-target classification Parameters estimatorestimator object An estimator object implementing fit, score and predict_proba. n_jobsint or...
doc_883
A view that displays a form. On error, redisplays the form with validation errors; on success, redirects to a new URL. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.base.TemplateResponseMixin django.views.generic.edit.BaseFormView django.views.generic.edit.For...
doc_884
Set the bbox that the box is anchored to. bbox can be a Bbox instance, a list of [left, bottom, width, height], or a list of [left, bottom] where the width and height will be assumed to be zero. The bbox will be transformed to display coordinate by the given transform.
doc_885
Return the current collection counts as a tuple of (count0, count1, count2).
doc_886
See torch.swapaxes()
doc_887
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_888
See Migration guide for more details. tf.compat.v1.raw_ops.Where tf.raw_ops.Where( condition, name=None ) This operation returns the coordinates of true elements in condition. The coordinates are returned in a 2-D tensor where the first dimension (rows) represents the number of true elements, and the second dime...
doc_889
The get_fields method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return a list of fields, as described above in the ModelAdmin.fields section.
doc_890
Bases: matplotlib.ticker.Formatter Use an old-style ('%' operator) format string to format the tick. The format string should have a single variable format (%) in it. It will be applied to the value (not the position) of the tick. Negative numeric values will use a dash not a unicode minus, use mathtext to get a unic...
doc_891
See Migration guide for more details. tf.compat.v1.raw_ops.EncodeProto tf.raw_ops.EncodeProto( sizes, values, field_names, message_type, descriptor_source='local://', name=None ) The types of the tensors in values must match the schema for the fields specified in field_names. All the tensors in values must h...
doc_892
Alias for set_linestyle.
doc_893
Form that will be used to set the password. Defaults to SetPasswordForm.
doc_894
Return the local date corresponding to the POSIX timestamp, such as is returned by time.time(). This may raise OverflowError, if the timestamp is out of the range of values supported by the platform C localtime() function, and OSError on localtime() failure. It’s common for this to be restricted to years from 1970 thro...
doc_895
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_896
Input validation for standard estimators. Checks X and y for consistent length, enforces X to be 2D and y 1D. By default, X is checked to be non-empty and containing only finite values. Standard input checks are also applied to y, such as checking that y does not have np.nan or np.inf targets. For multi-label y, set ...
doc_897
Returns an iterator over immediate children modules. Yields Module – a child module
doc_898
Return the default font size.
doc_899
Initialize the library. Return a window object which represents the whole screen. Note If there is an error opening the terminal, the underlying curses library may cause the interpreter to exit.