_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_8000
This class provides methods to read, parse and answer questions about the robots.txt file at url. set_url(url) Sets the URL referring to a robots.txt file. read() Reads the robots.txt URL and feeds it to the parser. parse(lines) Parses the lines argument. can_fetch(useragent, url) Returns True if ...
doc_8001
See Migration guide for more details. tf.compat.v1.keras.layers.AbstractRNNCell tf.keras.layers.AbstractRNNCell( trainable=True, name=None, dtype=None, dynamic=False, **kwargs ) See the Keras RNN API guide for details about the usage of RNN API. This is the base class for implementing RNN cells with custom behav...
doc_8002
Selects the highest protocol version that both the client and server support. Despite the name, this option can select both “SSL” and “TLS” protocols. New in version 3.6.
doc_8003
Return the alpha value used for blending - not supported on all backends.
doc_8004
In-place version of gcd()
doc_8005
See Migration guide for more details. tf.compat.v1.data.experimental.AutoShardPolicy Please see the DistributeOptions.auto_shard_policy documentation for more information on each type of autosharding. Class Variables AUTO <AutoShardPolicy.AUTO: 0> DATA <AutoShardPolicy.DATA: 2> FILE <AutoShardPoli...
doc_8006
Create an HTTP handler for the given request (i.e. a socket), client_address (a (host,port) tuple), and server (WSGIServer instance). You do not need to create instances of this class directly; they are automatically created as needed by WSGIServer objects. You can, however, subclass this class and supply it as a handl...
doc_8007
See Migration guide for more details. tf.compat.v1.app.flags.Error
doc_8008
See Migration guide for more details. tf.compat.v1.raw_ops.SparseReduceMax tf.raw_ops.SparseReduceMax( input_indices, input_values, input_shape, reduction_axes, keep_dims=False, name=None ) This Op takes a SparseTensor and is the sparse counterpart to tf.reduce_max(). In particular, this Op also returns a de...
doc_8009
If the DateField is not required, SelectDateWidget will have an empty choice at the top of the list (which is --- by default). You can change the text of this label with the empty_label attribute. empty_label can be a string, list, or tuple. When a string is used, all select boxes will each have an empty choice with th...
doc_8010
Compare a and b (lists of strings); return a delta (a generator generating the delta lines) in unified diff format. Unified diffs are a compact way of showing just the lines that have changed plus a few lines of context. The changes are shown in an inline style (instead of separate before/after blocks). The number of c...
doc_8011
In-place version of absolute() Alias for abs_()
doc_8012
(Only supported on BSD.) Returns a kernel event object; see section Kevent Objects below for the methods supported by kevent objects.
doc_8013
Computes a tensor input_inv such that tensordot(input_inv, input, ind) == I_n (inverse tensor equation), where I_n is the n-dimensional identity tensor and n is equal to input.ndim. The resulting tensor input_inv has shape equal to input.shape[ind:] + input.shape[:ind]. Supports input of float, double, cfloat and cdoub...
doc_8014
Bases: mpl_toolkits.axisartist.axislines.AxisArtistHelper.Floating get_axislabel_pos_angle(axes)[source] Return the label reference position in transAxes. get_label_transform() returns a transform of (transAxes+offset) get_axislabel_transform(axes)[source] get_line(axes)[source] get_line_transform(axe...
doc_8015
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_8016
See Migration guide for more details. tf.compat.v1.raw_ops.ScatterNdSub tf.raw_ops.ScatterNdSub( ref, indices, updates, use_locking=False, name=None ) within a given variable according to indices. ref is a Tensor with rank P and indices is a Tensor of rank Q. indices must be integer tensor, containing indices in...
doc_8017
Checks whether data for a given type is available in the clipboard. contains(type) -> bool Checks whether data for the given type is currently available in the clipboard. Parameters: type (string) -- data type to check availability of Returns: True if data for the passed type is available in the clipboard, F...
doc_8018
Inform the application what host and port it is bound to. Required for subdomain route matching support. If set, will be used for the session cookie domain if SESSION_COOKIE_DOMAIN is not set. Modern web browsers will not allow setting cookies for domains without a dot. To use a domain locally, add any names that shoul...
doc_8019
'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_8020
tf.compat.v1.data.get_output_types( dataset_or_iterator ) Args dataset_or_iterator A tf.data.Dataset or tf.data.Iterator. Returns A nested structure of tf.DType objects objects matching the structure of dataset / iterator elements and specifying the shape of the individual components.
doc_8021
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_8022
sklearn.cluster.k_means(X, n_clusters, *, sample_weight=None, init='k-means++', precompute_distances='deprecated', n_init=10, max_iter=300, verbose=False, tol=0.0001, random_state=None, copy_x=True, n_jobs='deprecated', algorithm='auto', return_n_iter=False) [source] K-means clustering algorithm. Read more in the Use...
doc_8023
Generate descriptive statistics. Descriptive statistics include those that summarize the central tendency, dispersion and shape of a dataset’s distribution, excluding NaN values. Analyzes both numeric and object series, as well as DataFrame column sets of mixed data types. The output will vary depending on what is pr...
doc_8024
Unsigned integer type, compatible with C unsigned int. Character code 'I' Alias on this platform (Linux x86_64) numpy.uint32: 32-bit unsigned integer (0 to 4_294_967_295).
doc_8025
Returns a new tuple subclass named typename. The new subclass is used to create tuple-like objects that have fields accessible by attribute lookup as well as being indexable and iterable. Instances of the subclass also have a helpful docstring (with typename and field_names) and a helpful __repr__() method which lists ...
doc_8026
Return index with requested level(s) removed. If resulting index has only 1 level left, the result will be of Index type, not MultiIndex. Parameters level:int, str, or list-like, default 0 If a string is given, must be the name of a level If list-like, elements must be names or indexes of levels. Returns I...
doc_8027
rotates the vector around the z-axis by the angle in radians in place. rotate_z_ip_rad(angle) -> None Rotates the vector counterclockwise around the z-axis by the given angle in radians. The length of the vector is not changed.
doc_8028
See Migration guide for more details. tf.compat.v1.app.flags.FlagValues tf.compat.v1.flags.FlagValues() A 'FlagValues' can then scan command line arguments, passing flag arguments through to the 'Flag' objects that it owns. It also provides easy access to the flag values. Typically only one 'FlagValues' object is ne...
doc_8029
bytearray.count(sub[, start[, end]]) Return the number of non-overlapping occurrences of subsequence sub in the range [start, end]. Optional arguments start and end are interpreted as in slice notation. The subsequence to search for may be any bytes-like object or an integer in the range 0 to 255. Changed in version...
doc_8030
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_8031
A simple lookup table that stores embeddings of a fixed dictionary and size. This module is often used to store word embeddings and retrieve them using indices. The input to the module is a list of indices, and the output is the corresponding word embeddings. Parameters num_embeddings (int) – size of the dictiona...
doc_8032
Create an RGB representation of a gray-level image. Parameters imagearray_like Input image. alphabool, optional Ensure that the output image has an alpha layer. If None, alpha layers are passed through but not created. Returns rgb(…, 3) ndarray RGB image. A new dimension of length 3 is added to inpu...
doc_8033
See Migration guide for more details. tf.compat.v1.raw_ops.AllCandidateSampler tf.raw_ops.AllCandidateSampler( true_classes, num_true, num_sampled, unique, seed=0, seed2=0, name=None ) See explanations of candidate sampling and the data formats at go/candidate-sampling. For each batch, this op picks a single set...
doc_8034
Compute the 2-dimensional finite radon transform (FRT) for an n x n integer array. Parameters aarray_like A 2-D square n x n integer array. Returns FRT2-D ndarray Finite Radon Transform array of (n+1) x n integer coefficients. See also ifrt2 The two-dimensional inverse FRT. Notes The FRT has...
doc_8035
Return the artist's zorder.
doc_8036
This method calls ehlo() and/or helo() if there has been no previous EHLO or HELO command this session. It tries ESMTP EHLO first. SMTPHeloError The server didn’t reply properly to the HELO greeting.
doc_8037
If inclusive is True (include), only match memory blocks allocated in a file with a name matching filename_pattern at line number lineno. If inclusive is False (exclude), ignore memory blocks allocated in a file with a name matching filename_pattern at line number lineno.
doc_8038
Set the number of elements in the Color to 1,2,3, or 4. set_length(len) -> None The default Color length is 4. Colors can have lengths 1,2,3 or 4. This is useful if you want to unpack to r,g,b and not r,g,b,a. If you want to get the length of a Color do len(acolor). New in pygame 1.9.0.
doc_8039
Mix the given bytes into the SSL pseudo-random number generator. The parameter entropy (a float) is a lower bound on the entropy contained in string (so you can always use 0.0). See RFC 1750 for more information on sources of entropy. Changed in version 3.5: Writable bytes-like object is now accepted.
doc_8040
Transform the points by the projection matrix
doc_8041
tf.convert_to_tensor( value, dtype=None, dtype_hint=None, name=None ) This function converts Python objects of various types to Tensor objects. It accepts Tensor objects, numpy arrays, Python lists, and Python scalars. For example: import numpy as np def my_func(arg): arg = tf.convert_to_tensor(arg, dtype=tf.fl...
doc_8042
Returns the first operand after adding the second value its exp.
doc_8043
Get StepPatch values, edges and baseline as namedtuple.
doc_8044
set <= other Test whether every element in the set is in other.
doc_8045
True if the address is unspecified. See RFC 5735 (for IPv4) or RFC 2373 (for IPv6).
doc_8046
Decorator that provides the protection of CsrfViewMiddleware to a view. Usage: from django.shortcuts import render from django.views.decorators.csrf import csrf_protect @csrf_protect def my_view(request): c = {} # ... return render(request, "a_template.html", c) If you are using class-based views, you can...
doc_8047
Call self as a function.
doc_8048
Bases: object Mixin to provide labelling capability to ContourSet. add_label(x, y, rotation, lev, cvalue)[source] Add contour label using Text class. add_label_clabeltext(x, y, rotation, lev, cvalue)[source] Add contour label using ClabelText class. add_label_near(x, y, inline=True, inline_spacing=5, tr...
doc_8049
Returns whether the kernel is defined on fixed-length feature vectors or generic objects. Defaults to True for backward compatibility.
doc_8050
The psycopg2 range type to use.
doc_8051
class xmlrpc.server.SimpleXMLRPCServer(addr, requestHandler=SimpleXMLRPCRequestHandler, logRequests=True, allow_none=False, encoding=None, bind_and_activate=True, use_builtin_types=False) Create a new server instance. This class provides methods for registration of functions that can be called by the XML-RPC protocol...
doc_8052
(default: '') String that will be prepended to the first line of wrapped output. Counts towards the length of the first line. The empty string is not indented.
doc_8053
Return numbers spaced evenly on a log scale (a geometric progression). This is similar to logspace, but with endpoints specified directly. Each output sample is a constant multiple of the previous. Changed in version 1.16.0: Non-scalar start and stop are now supported. Parameters startarray_like The starting ...
doc_8054
Bind the domain to codeset, changing the encoding of byte strings returned by the lgettext(), ldgettext(), lngettext() and ldngettext() functions. If codeset is omitted, then the current binding is returned. Deprecated since version 3.8, will be removed in version 3.10.
doc_8055
Run fit with all sets of parameters. Parameters Xarray-like, shape (n_samples, n_features) Training vector, where n_samples is the number of samples and n_features is the number of features. yarray-like, shape (n_samples,) or (n_samples, n_output), optional Target relative to X for classification or regress...
doc_8056
True if this transform has a corresponding inverse transform.
doc_8057
Decorate a view function to register it with the given URL rule and options. Calls add_url_rule(), which has more details about the implementation. @app.route("/") def index(): return "Hello, World!" See URL Route Registrations. The endpoint name for the route defaults to the name of the view function if the endpo...
doc_8058
calculates the squared Euclidean distance to a given vector. distance_squared_to(Vector2) -> float
doc_8059
Return the canvas width and height in display coords.
doc_8060
See Migration guide for more details. tf.compat.v1.raw_ops.AdjustHue tf.raw_ops.AdjustHue( images, delta, name=None ) images is a tensor of at least 3 dimensions. The last dimension is interpreted as channels, and must be three. The input image is considered in the RGB colorspace. Conceptually, the RGB colors ar...
doc_8061
See Migration guide for more details. tf.compat.v1.raw_ops.DiagPart tf.raw_ops.DiagPart( input, name=None ) This operation returns a tensor with the diagonal part of the input. The diagonal part is computed as follows: Assume input has dimensions [D1,..., Dk, D1,..., Dk], then the output is a tensor of rank k wi...
doc_8062
Read a keypress and return the resulting character as a byte string. Nothing is echoed to the console. This call will block if a keypress is not already available, but will not wait for Enter to be pressed. If the pressed key was a special function key, this will return '\000' or '\xe0'; the next call will return the k...
doc_8063
Return the values (min, max) that are mapped to the colormap limits.
doc_8064
Very Deep Convolutional Networks for Large-Scale Image Recognition (ICLR 2015) Functions VGG19(...): Instantiates the VGG19 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images.
doc_8065
Add items to the selection. Changed in version 3.6: items can be passed as separate arguments, not just as a single tuple.
doc_8066
Implement RFC 2965 protocol.
doc_8067
The error code used by ValidationError if validation fails. Defaults to "invalid".
doc_8068
During training, randomly zeroes some of the elements of the input tensor with probability p using samples from a Bernoulli distribution. See Dropout for details. Parameters p – probability of an element to be zeroed. Default: 0.5 training – apply dropout if is True. Default: True inplace – If set to True, wil...
doc_8069
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk.
doc_8070
Applies a 1D convolution over an input signal composed of several input planes. This operator supports TensorFloat32. See Conv1d for details and output shape. Note In some circumstances when given tensors on a CUDA device and using CuDNN, this operator may select a nondeterministic algorithm to increase performance. I...
doc_8071
See Migration guide for more details. tf.compat.v1.estimator.experimental.make_early_stopping_hook tf.estimator.experimental.make_early_stopping_hook( estimator, should_stop_fn, run_every_secs=60, run_every_steps=None ) Returns a SessionRunHook that stops training when should_stop_fn returns True. Usage example:...
doc_8072
Retrieve an attribute of the font.
doc_8073
Perform Normalized Graph cut on the Region Adjacency Graph. Given an image’s labels and its similarity RAG, recursively perform a 2-way normalized cut on it. All nodes belonging to a subgraph that cannot be cut further are assigned a unique label in the output. Parameters labelsndarray The array of labels. ra...
doc_8074
See Migration guide for more details. tf.compat.v1.keras.callbacks.CallbackList tf.keras.callbacks.CallbackList( callbacks=None, add_history=False, add_progbar=False, model=None, **params ) Arguments callbacks List of Callback instances. add_history Whether a History callback should be added, if o...
doc_8075
Bases: matplotlib.contour.ContourSet Create and store a set of contour lines or filled regions. This class is typically not instantiated directly by the user but by contour and contourf. Attributes axAxes The Axes object in which the contours are drawn. collectionssilent_list of PathCollections The Artists ...
doc_8076
Set whether autoscaling is applied to each axis on the next draw or call to Axes.autoscale_view. Parameters bbool Examples using matplotlib.axes.Axes.set_autoscale_on Resampling Data
doc_8077
Return self>=value.
doc_8078
Set the colormap for luminance data. Parameters cmapColormap or str or None
doc_8079
Convert number of days to a timedelta object. If x is a sequence, a sequence of timedelta objects will be returned. Parameters xfloat, sequence of floats Number of days. The fraction part represents hours, minutes, seconds. Returns datetime.timedelta or list[datetime.timedelta]
doc_8080
Get the trace function as set by settrace(). CPython implementation detail: The gettrace() function is intended only for implementing debuggers, profilers, coverage tools and the like. Its behavior is part of the implementation platform, rather than part of the language definition, and thus may not be available in all...
doc_8081
Token value for "{".
doc_8082
Set the line-end translation mode for the file descriptor fd. To set it to text mode, flags should be os.O_TEXT; for binary, it should be os.O_BINARY.
doc_8083
Read n uncompressed bytes without advancing the file position. At most one single read on the compressed stream is done to satisfy the call. The number of bytes returned may be more or less than requested. Note While calling peek() does not change the file position of the GzipFile, it may change the position of the un...
doc_8084
Join a sequence of arrays along a new axis. The axis parameter specifies the index of the new axis in the dimensions of the result. For example, if axis=0 it will be the first dimension and if axis=-1 it will be the last dimension. New in version 1.10.0. Parameters arrayssequence of array_like Each array must...
doc_8085
The text to put at the end of each admin page’s <title> (a string). By default, this is “Django site admin”.
doc_8086
Alias for self._offset.
doc_8087
Calculate total perimeter of all objects in binary image. Parameters image(N, M) ndarray 2D binary image. neighbourhood4 or 8, optional Neighborhood connectivity for border pixel determination. It is used to compute the contour. A higher neighbourhood widens the border on which the perimeter is computed. ...
doc_8088
__delitem__(key) discard(key) These methods immediately delete the message. The MH convention of marking a message for deletion by prepending a comma to its name is not used.
doc_8089
sklearn.metrics.accuracy_score(y_true, y_pred, *, normalize=True, sample_weight=None) [source] Accuracy classification score. In multilabel classification, this function computes subset accuracy: the set of labels predicted for a sample must exactly match the corresponding set of labels in y_true. Read more in the Us...
doc_8090
Compare a and b (lists of bytes objects) using dfunc; yield a sequence of delta lines (also bytes) in the format returned by dfunc. dfunc must be a callable, typically either unified_diff() or context_diff(). Allows you to compare data with unknown or inconsistent encoding. All inputs except n must be bytes objects, no...
doc_8091
The detailed description of the modification. In the case of an edit, for example, the message contains a list of the edited fields. The Django admin site formats this content as a JSON structure, so that get_change_message() can recompose a message translated in the current user language. Custom code might set this as...
doc_8092
Close the underlying file if it is open.
doc_8093
same as feature_implies_c() but stop collecting implied features when feature’s option that provided through parameter ‘keyisfalse’ is False, also sorting the returned features.
doc_8094
Walk a traceback following tb_next yielding the frame and line number for each frame. This helper is used with StackSummary.extract(). New in version 3.5.
doc_8095
Normally the csrf_token template tag will not work if CsrfViewMiddleware.process_view or an equivalent like csrf_protect has not run. The view decorator requires_csrf_token can be used to ensure the template tag does work. This decorator works similarly to csrf_protect, but never rejects an incoming request. Example: f...
doc_8096
A subclass of SSLError raised by a non-blocking SSL socket when trying to read or write data, but more data needs to be sent on the underlying TCP transport before the request can be fulfilled. New in version 3.3.
doc_8097
See Migration guide for more details. tf.compat.v1.strings.unicode_script tf.strings.unicode_script( input, name=None ) This operation converts Unicode code points to script codes corresponding to each code point. Script codes correspond to International Components for Unicode (ICU) UScriptCode values. See ICU p...
doc_8098
Number of nanoseconds (>= 0 and less than 1 microsecond) for each element.
doc_8099
Call this function to specify a recording source. Returns a bitmask indicating the new recording source (or sources) if successful; raises OSError if an invalid source was specified. To set the current recording source to the microphone input: mixer.setrecsrc (1 << ossaudiodev.SOUND_MIXER_MIC)