_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_4800
A bool indicating whether the memory is read only.
doc_4801
See Migration guide for more details. tf.compat.v1.raw_ops.GetSessionHandleV2 tf.raw_ops.GetSessionHandleV2( value, name=None ) Args value A Tensor. The tensor to be stored. name A name for the operation (optional). Returns A Tensor of type resource.
doc_4802
The excel class defines the usual properties of an Excel-generated CSV file. It is registered with the dialect name 'excel'.
doc_4803
Suitable for serializing headers with for use in HTTP traffic. Like SMTP except that max_line_length is set to None (unlimited).
doc_4804
Return a string or byte string containing the XML represented by the DOM node. With an explicit encoding 1 argument, the result is a byte string in the specified encoding. With no encoding argument, the result is a Unicode string, and the XML declaration in the resulting string does not specify an encoding. Encoding th...
doc_4805
See Migration guide for more details. tf.compat.v1.signal.kaiser_window tf.signal.kaiser_window( window_length, beta=12.0, dtype=tf.dtypes.float32, name=None ) Args window_length A scalar Tensor indicating the window length to generate. beta Beta parameter for Kaiser window, see reference below. ...
doc_4806
Draw samples from a Zipf distribution. Samples are drawn from a Zipf distribution with specified parameter a > 1. The Zipf distribution (also known as the zeta distribution) is a discrete probability distribution that satisfies Zipf’s law: the frequency of an item is inversely proportional to its rank in a frequency ...
doc_4807
Apply only the affine part of this transformation on the given array of values. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally a no-op. In affine transformations, this is equivalent to transform(values). Parameters valuesa...
doc_4808
Optional The value for the month, as a string. By default, set to None, which means the month will be determined using other means.
doc_4809
Set the artist's clip Bbox. Parameters clipboxBbox
doc_4810
Return the indices of the segments in the polyline with coordinates (cx, cy) that are within a distance radius of the point (x, y).
doc_4811
Returns the number of dimensions of self tensor.
doc_4812
Convert times to midnight. The time component of the date-time is converted to midnight i.e. 00:00:00. This is useful in cases, when the time does not matter. Length is unaltered. The timezones are unaffected. This method is available on Series with datetime values under the .dt accessor, and directly on Datetime Arr...
doc_4813
See Migration guide for more details. tf.compat.v1.raw_ops.Rsqrt tf.raw_ops.Rsqrt( x, name=None ) I.e., \(y = 1 / \sqrt{x}\). Args x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, complex64, complex128. name A name for the operation (optional). Returns A ...
doc_4814
If the current node is the owner, returns a reference to the local value. Otherwise, throws an exception.
doc_4815
In-place version of addmv()
doc_4816
Compute the average log-likelihood of the samples Parameters Xndarray of shape (n_samples, n_features) The data yIgnored Returns llfloat Average log-likelihood of the samples under the current model
doc_4817
Return series instance that has the specified roots. Returns a series representing the product (x - r[0])*(x - r[1])*...*(x - r[n-1]), where r is a list of roots. Parameters rootsarray_like List of roots. domain{[], None, array_like}, optional Domain for the resulting series. If None the domain is the inter...
doc_4818
The ListNoteBook widget is very similar to the TixNoteBook widget: it can be used to display many windows in a limited space using a notebook metaphor. The notebook is divided into a stack of pages (windows). At one time only one of these pages can be shown. The user can navigate through these pages by choosing the nam...
doc_4819
Construct an IPv6 address. An AddressValueError is raised if address is not a valid IPv6 address. The following constitutes a valid IPv6 address: A string consisting of eight groups of four hexadecimal digits, each group representing 16 bits. The groups are separated by colons. This describes an exploded (longhand) n...
doc_4820
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_4821
Encode the data as a sparse combination of the dictionary atoms. Coding method is determined by the object parameter transform_algorithm. Parameters Xndarray of shape (n_samples, n_features) Test data to be transformed, must have the same number of features as the data used to train the model. Returns X_n...
doc_4822
Called when the closing tag is reached for an element that contained a namespace declaration. This is called once for each namespace declaration on the element in the reverse of the order for which the StartNamespaceDeclHandler was called to indicate the start of each namespace declaration’s scope. Calls to this handle...
doc_4823
sklearn.metrics.pairwise.chi2_kernel(X, Y=None, gamma=1.0) [source] Computes the exponential chi-squared kernel X and Y. The chi-squared kernel is computed between each pair of rows in X and Y. X and Y have to be non-negative. This kernel is most commonly applied to histograms. The chi-squared kernel is given by: k(x...
doc_4824
A dictionary of context data that will be added to the default context data passed to the template.
doc_4825
Alias for set_linewidth.
doc_4826
Called for the end of every element.
doc_4827
Extract capture groups in the regex pat as columns in a DataFrame. For each subject string in the Series, extract groups from the first match of regular expression pat. Parameters pat:str Regular expression pattern with capturing groups. flags:int, default 0 (no flags) Flags from the re module, e.g. re.IGNO...
doc_4828
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_4829
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_4830
See Migration guide for more details. tf.compat.v1.raw_ops.TensorScatterUpdate tf.raw_ops.TensorScatterUpdate( tensor, indices, updates, name=None ) This operation creates a new tensor by applying sparse updates to the passed in tensor. This operation is very similar to tf.scatter_nd, except that the updates are...
doc_4831
Alias for self._offset.
doc_4832
Generate the “Friedman #2” regression problem. This dataset is described in Friedman [1] and Breiman [2]. Inputs X are 4 independent features uniformly distributed on the intervals: 0 <= X[:, 0] <= 100, 40 * pi <= X[:, 1] <= 560 * pi, 0 <= X[:, 2] <= 1, 1 <= X[:, 3] <= 11. The output y is created according to the fo...
doc_4833
Repeat elements of an array. Refer to numpy.repeat for full documentation. See also numpy.repeat equivalent function
doc_4834
value is the current value of the model’s attribute, and the method should return data in a format that has been prepared for use as a parameter in a query. See Converting Python objects to query values for usage.
doc_4835
Swap levels i and j in a MultiIndex. Default is to swap the two innermost levels of the index. Parameters i, j:int or str Levels of the indices to be swapped. Can pass level name as string. axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The axis to swap levels on. 0 or ‘index’ for row-wise, 1 or ‘columns’ f...
doc_4836
Return Multiplication of series and other, element-wise (binary operator mul). Equivalent to series * other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existing missin...
doc_4837
Applies a 2D fractional max pooling over an input signal composed of several input planes. Fractional MaxPooling is described in detail in the paper Fractional MaxPooling by Ben Graham The max-pooling operation is applied in kH×kWkH \times kW regions by a stochastic step size determined by the target output size. Th...
doc_4838
Return whether units are set on any axis.
doc_4839
Return a new dtype with a different byte order. Changes are also made in all fields and sub-arrays of the data type. Parameters new_orderstring, optional Byte order to force; a value from the byte order specifications below. The default value (‘S’) results in swapping the current byte order. new_order codes can...
doc_4840
con = sqlite3.connect('example.db') You can also supply the special name :memory: to create a database in RAM. Once you have a Connection, you can create a Cursor object and call its execute() method to perform SQL commands: cur = con.cursor() # Create table cur.execute('''CREATE TABLE stocks (date tex...
doc_4841
Return the Path associated with this line.
doc_4842
Exponential distribution. lambd is 1.0 divided by the desired mean. It should be nonzero. (The parameter would be called “lambda”, but that is a reserved word in Python.) Returned values range from 0 to positive infinity if lambd is positive, and from negative infinity to 0 if lambd is negative.
doc_4843
See Migration guide for more details. tf.compat.v1.random.experimental.stateless_fold_in tf.random.experimental.stateless_fold_in( seed, data ) For example, in a distributed-training setting, suppose we have a master seed and a replica ID. We want to fold the replica ID into the master seed to form a "replica se...
doc_4844
The value to use to represent “empty.” Defaults to the empty string; None is another common choice here. Note that this value will not be coerced by the function given in the coerce argument, so choose it accordingly.
doc_4845
class sklearn.preprocessing.Binarizer(*, threshold=0.0, copy=True) [source] Binarize data (set feature values to 0 or 1) according to a threshold. Values greater than the threshold map to 1, while values less than or equal to the threshold map to 0. With the default threshold of 0, only positive values map to 1. Bina...
doc_4846
Enhanced pygame module for loading and rendering computer fonts The pygame.freetype module is a replacement for pygame.font. It has all of the functionality of the original, plus many new features. Yet is has absolutely no dependencies on the SDL_ttf library. It is implemented directly on the FreeType 2 library. T...
doc_4847
Cumulative sum for each group. Returns Series or DataFrame See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a function groupby to each row or column of a DataFrame.
doc_4848
The get_inlines method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return an iterable of inlines. You can override this method to dynamically add inlines based on the request or model instance instead of specifying them in ModelAdmin.inlines.
doc_4849
Evaluate the expression (given as a string or a code object) under debugger control. When runeval() returns, it returns the value of the expression. Otherwise this function is similar to run().
doc_4850
Return a new array with the same shape and type as a given array. Parameters prototypearray_like The shape and data-type of prototype define these same attributes of the returned array. dtypedata-type, optional Overrides the data type of the result. New in version 1.6.0. order{‘C’, ‘F’, ‘A’, or ‘K’}, op...
doc_4851
R^2 (coefficient of determination) regression score function. Best possible score is 1.0 and it can be negative (because the model can be arbitrarily worse). A constant model that always predicts the expected value of y, disregarding the input features, would get a R^2 score of 0.0. Read more in the User Guide. Para...
doc_4852
Return True if x is a NaN (not a number), and False otherwise.
doc_4853
Pseudo-Vandermonde matrix of given degrees. Returns the pseudo-Vandermonde matrix of degrees deg and sample points (x, y, z). If l, m, n are the given degrees in x, y, z, then The pseudo-Vandermonde matrix is defined by \[V[..., (m+1)(n+1)i + (n+1)j + k] = x^i * y^j * z^k,\] where 0 <= i <= l, 0 <= j <= m, and 0 <= ...
doc_4854
Implements the Birch clustering algorithm. It is a memory-efficient, online-learning algorithm provided as an alternative to MiniBatchKMeans. It constructs a tree data structure with the cluster centroids being read off the leaf. These can be either the final cluster centroids or can be provided as input to another c...
doc_4855
Convert a pandas Timedelta object into a python datetime.timedelta object. Timedelta objects are internally saved as numpy datetime64[ns] dtype. Use to_pytimedelta() to convert to object dtype. Returns datetime.timedelta or numpy.array of datetime.timedelta See also to_timedelta Convert argument to Timedelta...
doc_4856
Exception class to raise if estimator is used before fitting. This class inherits from both ValueError and AttributeError to help with exception handling and backward compatibility. Attributes args Examples >>> from sklearn.svm import LinearSVC >>> from sklearn.exceptions import NotFittedError >>> try: ... ...
doc_4857
The error raised when a ZIP file would require ZIP64 functionality but that has not been enabled.
doc_4858
Set the vertices of the polygons. Parameters vertslist of array-like The sequence of polygons [verts0, verts1, ...] where each element verts_i defines the vertices of polygon i as a 2D array-like of shape (M, 2). closedbool, default: True Whether the polygon should be closed by adding a CLOSEPOLY connection...
doc_4859
A class definition. name is a raw string for the class name bases is a list of nodes for explicitly specified base classes. keywords is a list of keyword nodes, principally for ‘metaclass’. Other keywords will be passed to the metaclass, as per PEP-3115. starargs and kwargs are each a single node, as in a function...
doc_4860
Check if types match. New in version 1.7.0. Parameters otherobject Class instance. Returns boolboolean True if other is same class as self
doc_4861
(os.POSIX_SPAWN_CLOSE, fd) Performs os.close(fd).
doc_4862
Immutable object implementing an Interval, a bounded slice-like interval. Parameters left:orderable scalar Left bound for the interval. right:orderable scalar Right bound for the interval. closed:{‘right’, ‘left’, ‘both’, ‘neither’}, default ‘right’ Whether the interval is closed on the left-side, right...
doc_4863
Resolve the system identifier of an entity and return either the system identifier to read from as a string, or an InputSource to read from. The default implementation returns systemId.
doc_4864
Return the hyperbolic tangent of x.
doc_4865
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterMul tf.raw_ops.ResourceScatterMul( resource, indices, updates, name=None ) This operation computes # Scalar indices ref[indices, ...] *= updates[...] # Vector indices (for each i) ref[indices[i], ...] *= updates[i, ...] # High rank indic...
doc_4866
Return a function that splits a string into a sequence of tokens. Returns tokenizer: callable A function to split a string into a sequence of tokens.
doc_4867
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_4868
'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_4869
File object registered.
doc_4870
Set the edgecolor(s) of the collection. Parameters ccolor or list of colors or 'face' The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor.
doc_4871
Gray-level “text” image used for corner detection. Returns text(172, 448) uint8 ndarray Text image. Notes This image was downloaded from Wikipedia <https://en.wikipedia.org/wiki/File:Corner.png>`__. No known copyright restrictions, released into the public domain.
doc_4872
See Migration guide for more details. tf.compat.v1.raw_ops.CollectivePermute tf.raw_ops.CollectivePermute( input, source_target_pairs, name=None ) Each instance supplies its own input. For example, suppose there are 4 TPU instances: [A, B, C, D]. Passing source_target_pairs=[[0,1],[1,2],[2,3],[3,0]] gets the out...
doc_4873
Like unquote(), but also replace plus signs with spaces, as required for unquoting HTML form values. string must be a str. Example: unquote_plus('/El+Ni%C3%B1o/') yields '/El Niño/'.
doc_4874
Other Members AUTOTUNE -1 INFINITE_CARDINALITY -1 UNKNOWN_CARDINALITY -2
doc_4875
Indicate whether the date is the first day of a year. Returns Series or DatetimeIndex The same type as the original data with boolean values. Series will have the same name and index. DatetimeIndex will have the same name. See also is_year_end Similar property indicating the last day of the year. Exampl...
doc_4876
The month as January=1, December=12. Examples >>> datetime_series = pd.Series( ... pd.date_range("2000-01-01", periods=3, freq="M") ... ) >>> datetime_series 0 2000-01-31 1 2000-02-29 2 2000-03-31 dtype: datetime64[ns] >>> datetime_series.dt.month 0 1 1 2 2 3 dtype: int64
doc_4877
Return a TarFile object for the pathname name. For detailed information on TarFile objects and the keyword arguments that are allowed, see TarFile Objects. mode has to be a string of the form 'filemode[:compression]', it defaults to 'r'. Here is a full list of mode combinations: mode action 'r' or 'r:*' Open for ...
doc_4878
Fairly portable uname interface. Returns a namedtuple() containing six attributes: system, node, release, version, machine, and processor. Note that this adds a sixth attribute (processor) not present in the os.uname() result. Also, the attribute names are different for the first two attributes; os.uname() names them s...
doc_4879
Sets the Formatter for this handler to fmt.
doc_4880
Represent an address as 4 packed bytes in network (big-endian) order. address is an integer representation of an IPv4 IP address. A ValueError is raised if the integer is negative or too large to be an IPv4 IP address. >>> ipaddress.ip_address(3221225985) IPv4Address('192.0.2.1') >>> ipaddress.v4_int_to_packed(32212259...
doc_4881
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_4882
See torch.lgamma()
doc_4883
tf.nn.pool( input, window_shape, pooling_type, strides=None, padding='VALID', data_format=None, dilations=None, name=None ) In the case that data_format does not start with "NC", computes for 0 <= b < batch_size, 0 <= x[i] < output_spatial_shape[i], 0 <= c < num_channels: output[b, x[0], ..., x[N-1], c] = RE...
doc_4884
Leave echo mode. Echoing of input characters is turned off.
doc_4885
Bases: object Encapsulation of a font that a DVI file can refer to. This class holds a font's texname and size, supports comparison, and knows the widths of glyphs in the same units as the AFM file. There are also internal attributes (for use by dviread.py) that are not used for comparison. The size is in Adobe point...
doc_4886
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayClose tf.raw_ops.TensorArrayClose( handle, name=None ) Args handle A Tensor of type mutable string. name A name for the operation (optional). Returns The created Operation.
doc_4887
A field for storing lists of data. Most field types can be used, and you pass another field instance as the base_field. You may also specify a size. ArrayField can be nested to store multi-dimensional arrays. If you give the field a default, ensure it’s a callable such as list (for an empty default) or a callable that ...
doc_4888
Create and return a circular Spine.
doc_4889
DistributedOptimizer takes remote references to parameters scattered across workers and applies the given optimizer locally for each parameter. This class uses get_gradients() in order to retrieve the gradients for specific parameters. Concurrent calls to step(), either from the same or different clients, will be ser...
doc_4890
See Migration guide for more details. tf.compat.v1.keras.activations.serialize tf.keras.activations.serialize( activation ) Arguments activation Function object. Returns String denoting the name attribute of the input function For example: tf.keras.activations.serialize(tf.keras.activation...
doc_4891
Return the contents as regular dict. If flat is True the returned dict will only have the first item present, if flat is False all values will be returned as lists. Parameters flat – If set to False the dict returned will have lists with all the values in it. Otherwise it will only contain the first value for each ke...
doc_4892
Return the complex conjugate, element-wise. The complex conjugate of a complex number is obtained by changing the sign of its imaginary part. Parameters xarray_like Input value. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a s...
doc_4893
See Migration guide for more details. tf.compat.v1.raw_ops.IFFT3D tf.raw_ops.IFFT3D( input, name=None ) Computes the inverse 3-dimensional discrete Fourier transform over the inner-most 3 dimensions of input. Args input A Tensor. Must be one of the following types: complex64, complex128. A complex tenso...
doc_4894
Midpoint of rectangle edges from left, moving clockwise.
doc_4895
Set the parameters of an estimator from the ensemble. Valid parameter keys can be listed with get_params(). Note that you can directly set the parameters of the estimators contained in estimators. Parameters **paramskeyword arguments Specific parameters using e.g. set_params(parameter_name=new_value). In additi...
doc_4896
Predict class labels for samples in X. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape [n_samples] Predicted class label per sample.
doc_4897
The number of decimal places to store with the number.
doc_4898
Invoke ZipFile.open() on the current path. Allows opening for read or write, text or binary through supported modes: ‘r’, ‘w’, ‘rb’, ‘wb’. Positional and keyword arguments are passed through to io.TextIOWrapper when opened as text and ignored otherwise. pwd is the pwd parameter to ZipFile.open(). Changed in version 3....
doc_4899
readline.get_endidx() Get the beginning or ending index of the completion scope. These indexes are the start and end arguments passed to the rl_attempted_completion_function callback of the underlying library.