_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_14000
If this attribute is set to True, a PermissionDenied exception is raised when the conditions are not met. When False (the default), anonymous users are redirected to the login page.
doc_14001
Process an button-1 event (add a label to a contour). Parameters eventMouseEvent
doc_14002
Create and return a linear Spine.
doc_14003
Sent when the logout method is called. sender As above: the class of the user that just logged out or None if the user was not authenticated. request The current HttpRequest instance. user The user instance that just logged out or None if the user was not authenticated.
doc_14004
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
doc_14005
sklearn.metrics.pairwise.polynomial_kernel(X, Y=None, degree=3, gamma=None, coef0=1) [source] Compute the polynomial kernel between X and Y: K(X, Y) = (gamma <X, Y> + coef0)^degree Read more in the User Guide. Parameters Xndarray of shape (n_samples_X, n_features) Yndarray of shape (n_samples_Y, n_features), d...
doc_14006
Process an button-3 event (remove a label if not in inline mode). Unfortunately, if one is doing inline labels, then there is currently no way to fix the broken contour - once humpty-dumpty is broken, he can't be put back together. In inline mode, this does nothing. Parameters eventMouseEvent
doc_14007
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_14008
See torch.std()
doc_14009
Enter post-mortem debugging of the given traceback object. If no traceback is given, it uses the one of the exception that is currently being handled (an exception must be being handled if the default is to be used).
doc_14010
Return the product of the values over the requested axis. 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 MultiIndex (hierarchical), count along a partic...
doc_14011
Raise a NotImplementedError exception. Override this in subclasses to do something useful with this message. Whatever was passed in the constructor as remoteaddr will be available as the _remoteaddr attribute. peer is the remote host’s address, mailfrom is the envelope originator, rcpttos are the envelope recipients an...
doc_14012
See Migration guide for more details. tf.compat.v1.app.flags.mark_flags_as_required tf.compat.v1.flags.mark_flags_as_required( flag_names, flag_values=_flagvalues.FLAGS ) If your module might be imported by others, and you only wish to make the flag required when the module is directly executed, call this method...
doc_14013
Draw the text instance. Parameters gcGraphicsContextBase The graphics context. xfloat The x location of the text in display coords. yfloat The y location of the text baseline in display coords. sstr The text string. propmatplotlib.font_manager.FontProperties The font properties. anglefloat T...
doc_14014
Bases: matplotlib.patheffects.SimplePatchShadow A shortcut PathEffect for applying SimplePatchShadow and then drawing the original Artist. With this class you can use artist.set_path_effects([path_effects.withSimplePatchShadow()]) as a shortcut for artist.set_path_effects([path_effects.SimplePatchShadow(), ...
doc_14015
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_14016
Exception raised when a failure occurs within the parser module. This is generally produced for validation failures rather than the built-in SyntaxError raised during normal parsing. The exception argument is either a string describing the reason of the failure or a tuple containing a sequence causing the failure from ...
doc_14017
A wrapper class that wraps the input module, adds QuantStub and DeQuantStub and surround the call to module with call to quant and dequant modules. This is used by the quantization utility functions to add the quant and dequant modules, before convert function QuantStub will just be observer, it observes the input te...
doc_14018
Compute the natural logarithm of x. Return the “principal value” (for a description of this, see numpy.log) of \(log_e(x)\). For real x > 0, this is a real number (log(0) returns -inf and log(np.inf) returns inf). Otherwise, the complex principle value is returned. Parameters xarray_like The value(s) whose log ...
doc_14019
Fit the Oracle Approximating Shrinkage covariance model according to the given training data and parameters. Parameters Xarray-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features. yIgnored Not used, present for API consistenc...
doc_14020
Plot the coherence between x and y. Plot the coherence between x and y. Coherence is the normalized cross spectral density: \[C_{xy} = \frac{|P_{xy}|^2}{P_{xx}P_{yy}}\] Parameters Fsfloat, default: 2 The sampling frequency (samples per time unit). It is used to calculate the Fourier frequencies, freqs, in cycl...
doc_14021
Base class for all neural network modules. Your models should also subclass this class. Modules can also contain other Modules, allowing to nest them in a tree structure. You can assign the submodules as regular attributes: import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init_...
doc_14022
See Migration guide for more details. tf.compat.v1.raw_ops.Case tf.raw_ops.Case( branch_index, input, Tout, branches, output_shapes=[], name=None ) An n-way switch statement, implementing the following: ``` switch (branch_index) { case 0: output = branches[0](input); break; case 1: output = bran...
doc_14023
tf.debugging.assert_less_equal( x, y, message=None, summarize=None, name=None ) This Op checks that x[i] <= y[i] holds for every pair of (possibly broadcast) elements of x and y. If both x and y are empty, this is trivially satisfied. If x is not less or equal than y element-wise, message, as well as the first sum...
doc_14024
Call self as a function.
doc_14025
Gathers tensors from the whole group in a list. Each tensor in tensor_list should reside on a separate GPU Only nccl backend is currently supported tensors should only be GPU tensors Complex tensors are supported. Parameters output_tensor_lists (List[List[Tensor]]) – Output lists. It should contain correctly-siz...
doc_14026
Set the current Axes to ax and the current Figure to the parent of ax.
doc_14027
See Migration guide for more details. tf.compat.v1.raw_ops.TPUReplicatedOutput tf.raw_ops.TPUReplicatedOutput( input, num_replicas, name=None ) This operation holds a replicated output from a tpu.replicate() computation subgraph. Each replicated output has the same shape and type alongside the input. For example...
doc_14028
Token value for "|".
doc_14029
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_14030
hide or show the mouse cursor set_visible(bool) -> bool If the bool argument is true, the mouse cursor will be visible. This will return the previous visible state of the cursor.
doc_14031
Return whether arbitrary affine transformations in draw_image() are supported (True for most vector backends).
doc_14032
True if two tensors have the same size and elements, False otherwise. Example: >>> torch.equal(torch.tensor([1, 2]), torch.tensor([1, 2])) True
doc_14033
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_14034
The name is parsed as everything up to the ‘:’ and returned unmodified. The value is determined by stripping leading whitespace off the remainder of the first line, joining all subsequent lines together, and stripping any trailing carriage return or linefeed characters.
doc_14035
Pop and return the smallest item from the heap, and also push the new item. The heap size doesn’t change. If the heap is empty, IndexError is raised. This one step operation is more efficient than a heappop() followed by heappush() and can be more appropriate when using a fixed-size heap. The pop/push combination alway...
doc_14036
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_14037
Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array.
doc_14038
Array of integer (optional missing) values. Changed in version 1.0.0: Now uses pandas.NA as the missing value rather than numpy.nan. Warning IntegerArray is currently experimental, and its API or internal implementation may change without warning. We represent an IntegerArray with 2 numpy arrays: data: contains ...
doc_14039
make_null_session() will look here for the class that should be created when a null session is requested. Likewise the is_null_session() method will perform a typecheck against this type. alias of flask.sessions.NullSession
doc_14040
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_14041
Simple path-like object. It implements the __fspath__() method which just returns the path argument. If path is an exception, it will be raised in __fspath__().
doc_14042
Gets the options maintained by the Tix scheme mechanism.
doc_14043
tf.keras.losses.mae, tf.keras.losses.mean_absolute_error, tf.keras.metrics.MAE, tf.keras.metrics.mae, tf.keras.metrics.mean_absolute_error, tf.losses.MAE, tf.losses.mae, tf.losses.mean_absolute_error, tf.metrics.MAE, tf.metrics.mae, tf.metrics.mean_absolute_error Compat aliases for migration See Migration guide for mor...
doc_14044
tf.experimental.numpy.arange( start, stop=None, step=1, dtype=None ) Returns step-separated values in the range [start, stop). Args: start: Start of the interval. Included in the range. stop: End of the interval. If not specified, start is treated as 0 and start value is used as stop. If specified, it is not inclu...
doc_14045
tf.metrics.categorical_accuracy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.categorical_accuracy tf.keras.metrics.categorical_accuracy( y_true, y_pred ) Standalone usage: y_true = [[0, 0, 1], [0, 1, 0]] y_pred = [[0.1, 0.9, 0.8], [0.05, 0.95, 0]] m = tf.keras.me...
doc_14046
Can be overridden in order to modify the response object before it’s sent to the WSGI server. By default this will call all the after_request() decorated functions. Changelog Changed in version 0.5: As of Flask 0.5 the functions registered for after request execution are called in reverse order of registration. Para...
doc_14047
Set the artist's visibility. Parameters bbool
doc_14048
See Migration guide for more details. tf.compat.v1.app.flags.DEFINE tf.compat.v1.flags.DEFINE( parser, name, default, help, flag_values=_flagvalues.FLAGS, serializer=None, module_name=None, **args ) Note: in the docstrings of all DEFINE* functions, "registers" is short for "creates a new flag and registers ...
doc_14049
Pad strings in the Series/Index by prepending ‘0’ characters. Strings in the Series/Index are padded with ‘0’ characters on the left of the string to reach a total string length width. Strings in the Series/Index with length greater or equal to width are unchanged. Parameters width:int Minimum length of resulti...
doc_14050
Set the key audio sampling parameters—sample format, number of channels, and sampling rate—in one method call. format, nchannels, and samplerate should be as specified in the setfmt(), channels(), and speed() methods. If strict is true, setparameters() checks to see if each parameter was actually set to the requested v...
doc_14051
Set the value array from array-like A. Parameters Aarray-like or None The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A.
doc_14052
Return whether constrained layout is being used. See Constrained Layout Guide.
doc_14053
The maximum depth for recursive interpolation for get() when the raw parameter is false. This is relevant only when the default interpolation is used.
doc_14054
A timedelta or number of seconds which is used as the default max_age for send_file(). The default is None, which tells the browser to use conditional requests instead of a timed cache. Configured with the SEND_FILE_MAX_AGE_DEFAULT configuration key. Changed in version 2.0: Defaults to None instead of 12 hours.
doc_14055
The same as RawArray() except that depending on the value of lock a process-safe synchronization wrapper may be returned instead of a raw ctypes array. If lock is True (the default) then a new lock object is created to synchronize access to the value. If lock is a Lock or RLock object then that will be used to synchron...
doc_14056
template_name: 'django/forms/widgets/select.html' option_template_name: 'django/forms/widgets/select_option.html' Similar to Select, but allows multiple selection: <select multiple>...</select>
doc_14057
An entity reference referred to an entity which was declared with a notation, so cannot be parsed.
doc_14058
Adjust the text angle and text alignment of ticklabels according to the matplotlib convention. The label_direction must be one of [left, right, bottom, top]. property left bottom right top ticklabels angle 90 0 -90 180 ticklabel va center baseline center baseline ticklabel ha right center right center Not...
doc_14059
Send a QUIT command to the server and close the connection. This is the “polite” way to close a connection, but it may raise an exception if the server responds with an error to the QUIT command. This implies a call to the close() method which renders the FTP instance useless for subsequent calls (see below).
doc_14060
An ExtensionDtype for int64 integer data. Changed in version 1.0.0: Now uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
doc_14061
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_14062
Read an Excel file into a pandas DataFrame. Supports xls, xlsx, xlsm, xlsb, odf, ods and odt file extensions read from a local filesystem or URL. Supports an option to read a single sheet or a list of sheets. Parameters io:str, bytes, ExcelFile, xlrd.Book, path object, or file-like object Any valid string path ...
doc_14063
Sums tensors from multiple GPUs. All inputs should have matching shapes, dtype, and layout. The output tensor will be of the same shape, dtype, and layout. Parameters inputs (Iterable[Tensor]) – an iterable of tensors to add. destination (int, optional) – a device on which the output will be placed (default: cur...
doc_14064
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_14065
Bases: object Manage the callbacks to maintain a list of selected vertices for Line2D. Derived classes should override the process_selected method to do something with the picks. Here is an example which highlights the selected verts with red circles: import numpy as np import matplotlib.pyplot as plt import matplotl...
doc_14066
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_14067
Set the locators and formatters of axis to instances suitable for this scale.
doc_14068
Return a tuple containing the number of rows and columns in the grid.
doc_14069
A wsgi.file_wrapper factory, or None. The default value of this attribute is the wsgiref.util.FileWrapper class.
doc_14070
A subclass of Mailbox for mailboxes in Babyl format. Parameter factory is a callable object that accepts a file-like message representation (which behaves as if opened in binary mode) and returns a custom representation. If factory is None, BabylMessage is used as the default message representation. If create is True, ...
doc_14071
A list of prefixes for site-packages directories.
doc_14072
Dict {group name -> group indices}.
doc_14073
Creates a one-dimensional tensor of size steps whose values are evenly spaced from basestart{{\text{{base}}}}^{{\text{{start}}}} to baseend{{\text{{base}}}}^{{\text{{end}}}} , inclusive, on a logarithmic scale with base base. That is, the values are: (basestart,base(start+end−startsteps−1),…,base(start+(steps−2)∗end−...
doc_14074
A dictionary to include in the context. This is a convenient way of specifying some context in as_view(). Example usage: from django.views.generic import TemplateView TemplateView.as_view(extra_context={'title': 'Custom Title'})
doc_14075
Alternate constructor for chain(). Gets chained inputs from a single iterable argument that is evaluated lazily. Roughly equivalent to: def from_iterable(iterables): # chain.from_iterable(['ABC', 'DEF']) --> A B C D E F for it in iterables: for element in it: yield element
doc_14076
Alias for get_facecolor.
doc_14077
'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_14078
Returns the standard-deviation and mean of all elements in the input tensor. If unbiased is False, then the standard-deviation will be calculated via the biased estimator. Otherwise, Bessel’s correction will be used. Parameters input (Tensor) – the input tensor. unbiased (bool) – whether to use the unbiased estima...
doc_14079
A dotted path to the authentication backend to use when authenticating a user if post_reset_login is True. Required only if you have multiple AUTHENTICATION_BACKENDS configured. Defaults to None.
doc_14080
Remove and return an item from the queue. If queue is empty, wait until an item is available.
doc_14081
New in Django 4.0. The name of the template used when calling __str__ or render(). By default this is 'django/forms/errors/list/default.html' which is a proxy for the 'ul.html' template.
doc_14082
Generate ellipse perimeter coordinates. Parameters r, cint Centre coordinate of ellipse. r_radius, c_radiusint Minor and major semi-axes. (r/r_radius)**2 + (c/c_radius)**2 = 1. orientationdouble, optional Major axis orientation in clockwise direction as radians. shapetuple, optional Image shape whic...
doc_14083
Bases: matplotlib.offsetbox.OffsetBox The TextArea is a container artist for a single Text instance. The text is placed at (0, 0) with baseline+left alignment, by default. The width and height of the TextArea instance is the width and height of its child text. Parameters sstr The text to be displayed. textpro...
doc_14084
K-Folds cross-validator Provides train/test indices to split data in train/test sets. Split dataset into k consecutive folds (without shuffling by default). Each fold is then used once as a validation while the k - 1 remaining folds form the training set. Read more in the User Guide. Parameters n_splitsint, defau...
doc_14085
Plot lines and/or markers with errorbars around them. x/y/z define the data locations, and xerr/yerr/zerr define the errorbar sizes. By default, this draws the data markers/lines as well the errorbars. Use fmt='none' to draw errorbars only. Parameters x, y, zfloat or array-like The data positions. xerr, yerr,...
doc_14086
Generate coordinates of pixels that are exactly around a rectangle. Parameters starttuple Origin point of the inner rectangle, e.g., (row, column). endtuple End point of the inner rectangle (row, column). For a 2D matrix, the slice defined by inner the rectangle is [start:(end+1)]. Either end or extent must...
doc_14087
Bases: torch.distributions.exp_family.ExponentialFamily Creates a Poisson distribution parameterized by rate, the rate parameter. Samples are nonnegative integers, with a pmf given by rateke−ratek!\mathrm{rate}^k \frac{e^{-\mathrm{rate}}}{k!} Example: >>> m = Poisson(torch.tensor([4])) >>> m.sample() tensor([ 3.])...
doc_14088
Normalize, rescale, and colormap this image's data for rendering using renderer, with the given magnification. If unsampled is True, the image will not be scaled, but an appropriate affine transformation will be returned instead. Returns image(M, N, 4) uint8 array The RGBA image, resampled unless unsampled is T...
doc_14089
numpy.float128[source] Alias for numpy.longdouble, named after its size in bits. The existence of these aliases depends on the platform.
doc_14090
Return a message object structure from a string. This is equivalent to Parser().parsestr(s). _class and policy are interpreted as with the Parser class constructor. Changed in version 3.3: Removed the strict argument. Added the policy keyword.
doc_14091
See Migration guide for more details. tf.compat.v1.train.FeatureLists.FeatureListEntry Attributes key string key value FeatureList value
doc_14092
Registers a communication hook which is an enhancement that provides a flexible hook to users where they can specify how DDP aggregates gradients across multiple workers. This hook would be very useful for researchers to try out new ideas. For example, this hook can be used to implement several algorithms like Gossip...
doc_14093
Return a formatted multi-line string with detailed code object information for the supplied function, generator, asynchronous generator, coroutine, method, source code string or code object. Note that the exact contents of code info strings are highly implementation dependent and they may change arbitrarily across Pyth...
doc_14094
A collection of doctest examples that should be run in a single namespace. The constructor arguments are used to initialize the attributes of the same names. DocTest defines the following attributes. They are initialized by the constructor, and should not be modified directly. examples A list of Example objects enc...
doc_14095
This is a class for comparing sequences of lines of text, and producing human-readable differences or deltas. Differ uses SequenceMatcher both to compare sequences of lines, and to compare sequences of characters within similar (near-matching) lines. Each line of a Differ delta begins with a two-letter code: Code Me...
doc_14096
The SharedMemory instance where the values are stored.
doc_14097
Return the markevery setting for marker subsampling. See also set_markevery.
doc_14098
tf.compat.v1.train.shuffle_batch_join( tensors_list, batch_size, capacity, min_after_dequeue, seed=None, enqueue_many=False, shapes=None, allow_smaller_final_batch=False, shared_name=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Q...
doc_14099
class sklearn.gaussian_process.kernels.CompoundKernel(kernels) [source] Kernel which is composed of a set of other kernels. New in version 0.18. Parameters kernelslist of Kernels The other kernels Attributes bounds Returns the log-transformed bounds on the theta. hyperparameters Returns a list of ...