_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_8800
Return evenly spaced values within a given interval. Values are generated within the half-open interval [start, stop) (in other words, the interval including start but excluding stop). For integer arguments the function is equivalent to the Python built-in range function, but returns an ndarray rather than a list. Wh...
doc_8801
Read into buffer a complete message of byte data sent from the other end of the connection and return the number of bytes in the message. Blocks until there is something to receive. Raises EOFError if there is nothing left to receive and the other end was closed. buffer must be a writable bytes-like object. If offset i...
doc_8802
Append a new recording filter or apply it if the state is entered. All warnings matching will be appended to the log attribute. Parameters categoryclass, optional Warning class to filter messagestring, optional Regular expression matching the warning message. modulemodule, optional Module to filter for....
doc_8803
Set the alpha value used for blending - not supported on all backends. Parameters alphaarray-like or scalar or None All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
doc_8804
Recover the original from a wrapped phase image. From an image wrapped to lie in the interval [-pi, pi), recover the original, unwrapped image. Parameters image1D, 2D or 3D ndarray of floats, optionally a masked array The values should be in the range [-pi, pi). If a masked array is provided, the masked entries...
doc_8805
Raised when an operation on a child process failed. Corresponds to errno ECHILD.
doc_8806
Return the path of this patch.
doc_8807
The day of the week with Monday=0, Sunday=6. Return the day of the week. It is assumed the week starts on Monday, which is denoted by 0 and ends on Sunday which is denoted by 6. This method is available on both Series with datetime values (using the dt accessor) or DatetimeIndex. Returns Series or Index Containin...
doc_8808
The suffix to append to the auto-generated candidate template name. Default suffix is _list.
doc_8809
Set the marker face color. Parameters fccolor
doc_8810
Return the label used for this artist in the legend.
doc_8811
Call self as a function.
doc_8812
See torch.broadcast_to().
doc_8813
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_8814
Return the overlaid image. Returns overlayarray, same shape as image The overlay currently displayed. dataNone
doc_8815
A context manager that temporarily creates a new directory and changes the current working directory (CWD). The context manager creates a temporary directory in the current directory with name name before temporarily changing the current working directory. If name is None, the temporary directory is created using tempf...
doc_8816
Generate coordinates of pixels within a rectangle. Parameters starttuple Origin point of the rectangle, e.g., ([plane,] row, column). endtuple End point of the rectangle ([plane,] row, column). For a 2D matrix, the slice defined by the rectangle is [start:(end+1)]. Either end or extent must be specified. ...
doc_8817
Returns an ordered list of inner expressions. For example: >>> Sum(F('foo')).get_source_expressions() [F('foo')]
doc_8818
How to join segments if the line is solid (not is_dashed). Parameters sJoinStyle or {'miter', 'round', 'bevel'}
doc_8819
Update self.params (which must be a dict) with the supplied args.
doc_8820
Build a HTML representation of an estimator. Read more in the User Guide. Parameters estimatorestimator object The estimator to visualize. Returns html: str HTML representation of estimator.
doc_8821
A string containing the example’s source code. This source code consists of a single Python statement, and always ends with a newline; the constructor adds a newline when necessary.
doc_8822
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), default=None degreeint, default=3 gammafloat, default=None If None, defaults to 1.0 / n_f...
doc_8823
sys.__stdout__ sys.__stderr__ These objects contain the original values of stdin, stderr and stdout at the start of the program. They are used during finalization, and could be useful to print to the actual standard stream no matter if the sys.std* object has been redirected. It can also be used to restore the actu...
doc_8824
Returns a namedtuple (values, indices) where values is the cumulative maximum of elements of input in the dimension dim. And indices is the index location of each maximum value found in the dimension dim. yi=max(x1,x2,x3,…,xi)y_i = max(x_1, x_2, x_3, \dots, x_i) Parameters input (Tensor) – the input tensor. dim...
doc_8825
CFFI interface Returns interfacenamedtuple Named tuple containing CFFI wrapper state_address - Memory address of the state struct state - pointer to the state struct next_uint64 - function pointer to produce 64 bit integers next_uint32 - function pointer to produce 32 bit integers next_double - function pointe...
doc_8826
Compute Ranking loss measure. Compute the average number of label pairs that are incorrectly ordered given y_score weighted by the size of the label set and the number of labels not in the label set. This is similar to the error set size, but weighted by the number of relevant and irrelevant labels. The best performa...
doc_8827
The email package calls this method with the name and value provided by the application program when the application program is modifying a Message programmatically (as opposed to a Message created by a parser). The method should return the (name, value) tuple that is to be stored in the Message to represent the header...
doc_8828
A subclass of PurePath, this path flavour represents Windows filesystem paths: >>> PureWindowsPath('c:/Program Files/') PureWindowsPath('c:/Program Files') pathsegments is specified similarly to PurePath.
doc_8829
Close the Process object, releasing all resources associated with it. ValueError is raised if the underlying process is still running. Once close() returns successfully, most other methods and attributes of the Process object will raise ValueError. New in version 3.7.
doc_8830
The asynchronous input buffer size (default 4096).
doc_8831
Creates a biclustering for X. Parameters Xarray-like of shape (n_samples, n_features) yIgnored
doc_8832
Performs a matrix-vector product of the matrix mat and the vector vec. The vector input is added to the final result. If mat is a (n×m)(n \times m) tensor, vec is a 1-D tensor of size m, then input must be broadcastable with a 1-D tensor of size n and out will be 1-D tensor of size n. alpha and beta are scaling factor...
doc_8833
The degree of the series. New in version 1.5.0. Returns degreeint Degree of the series, one less than the number of coefficients.
doc_8834
Django offers many utility functions (particularly in django.utils) that take a string as their first argument and do something to that string. These functions are used by template filters as well as directly in other code. If you write your own similar functions and deal with translations, you’ll face the problem of...
doc_8835
See Migration guide for more details. tf.compat.v1.math.reduce_max tf.compat.v1.reduce_max( input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None, keep_dims=None ) Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: kee...
doc_8836
tf.data.IteratorSpec( element_spec ) For instance, tf.data.IteratorSpec can be used to define a tf.function that takes tf.data.Iterator as an input argument: @tf.function(input_signature=[tf.data.IteratorSpec( tf.TensorSpec(shape=(), dtype=tf.int32, name=None))]) def square(iterator): x = iterator.get_next() ...
doc_8837
Return self==value.
doc_8838
Parameters script_module – An instance of torch script module with type of ScriptModule. optimization_blocklist – A set with type of MobileOptimizerType. When set is not passed, optimization method will run all the optimizer pass; otherwise, optimizer method will run the optimization pass that is not included in...
doc_8839
Method called to complete an input line when no command-specific complete_*() method is available. By default, it returns an empty list.
doc_8840
Return a new Series with missing values removed. See the User Guide for more on which values are considered missing, and how to work with missing data. Parameters axis:{0 or ‘index’}, default 0 There is only one axis to drop values from. inplace:bool, default False If True, do operation inplace and return N...
doc_8841
allow the use of embedded bitmaps in an outline font file use_bitmap_strikes -> bool Some scalable fonts include embedded bitmaps for particular point sizes. This property controls whether or not those bitmap strikes are used. Set it False to disable the loading of any bitmap strike. Set it True, the default, to perm...
doc_8842
'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_8843
This is the base class for all session objects. It has the following standard dictionary methods: __getitem__(key) Example: fav_color = request.session['fav_color'] __setitem__(key, value) Example: request.session['fav_color'] = 'blue' __delitem__(key) Example: del request.session['fav_color']. This rai...
doc_8844
Clip the path to the given bounding box. The path must be made up of one or more closed polygons. This algorithm will not behave correctly for unclosed paths. If inside is True, clip to the inside of the box, otherwise to the outside of the box.
doc_8845
Converts an n-D unstructured array into an (n-1)-D structured array. The last dimension of the input array is converted into a structure, with number of field-elements equal to the size of the last dimension of the input array. By default all output fields have the input array’s dtype, but an output structured dtype ...
doc_8846
A monthly archive page showing all objects in a given month. Objects with a date in the future are not displayed unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseMonthArchive...
doc_8847
Expand labels in label image by distance pixels without overlapping. Given a label image, expand_labels grows label regions (connected components) outwards by up to distance pixels without overflowing into neighboring regions. More specifically, each background pixel that is within Euclidean distance of <= distance p...
doc_8848
See Migration guide for more details. tf.compat.v1.raw_ops.TPUOrdinalSelector tf.raw_ops.TPUOrdinalSelector( name=None ) This Op produces a set of TPU cores (for warm-up) or a single TPU core (for regular inference) to execute the TPU program on. The output is consumed by TPUPartitionedCall. Args name A...
doc_8849
Return a dictionary of all the properties of the artist.
doc_8850
Fills the input Tensor with the scalar value 1. Parameters tensor – an n-dimensional torch.Tensor Examples >>> w = torch.empty(3, 5) >>> nn.init.ones_(w)
doc_8851
Set the inner radial limit. Parameters rminfloat
doc_8852
This method for the Stats class prints a list of all function that were called by the indicated function. Aside from this reversal of direction of calls (re: called vs was called by), the arguments and ordering are identical to the print_callers() method.
doc_8853
""" 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_8854
The list of individual namespace components in the full instance namespace for the URL pattern that matches the URL. i.e., if the namespace is foo:bar, then namespaces will be ['foo', 'bar'].
doc_8855
pygame module to work with the mouse The mouse functions can be used to get the current state of the mouse device. These functions can also alter the system cursor for the mouse. When the display mode is set, the event queue will start receiving mouse events. The mouse buttons generate pygame.MOUSEBUTTONDOWN and p...
doc_8856
Get the inheritable flag of the socket’s file descriptor or socket’s handle: True if the socket can be inherited in child processes, False if it cannot. New in version 3.4.
doc_8857
These fields subclass CharField, EmailField, and TextField, respectively. max_length won’t be enforced in the database since citext behaves similar to PostgreSQL’s text type.
doc_8858
Return True if path refers to an existing directory entry that is a symbolic link. Always False if symbolic links are not supported by the Python runtime. Changed in version 3.6: Accepts a path-like object.
doc_8859
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_8860
Convert an IPv4 address from dotted-quad string format (for example, ‘123.45.67.89’) to 32-bit packed binary format, as a bytes object four characters in length. This is useful when conversing with a program that uses the standard C library and needs objects of type struct in_addr, which is the C type for the 32-bit pa...
doc_8861
Integer specifying the handle of the Python DLL. Availability: Windows.
doc_8862
Segmentation using labeled parts of the image and a classifier. Parameters labelsndarray of ints Image of labels. Labels >= 1 correspond to the training set and label 0 to unlabeled pixels to be segmented. featuresndarray Array of features, with the first dimension corresponding to the number of features, a...
doc_8863
A flag, defaulting to true. If true, cmdloop() uses input() to display a prompt and read the next command; if false, sys.stdout.write() and sys.stdin.readline() are used. (This means that by importing readline, on systems that support it, the interpreter will automatically support Emacs-like line editing and command-hi...
doc_8864
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalAssertNextDataset tf.raw_ops.ExperimentalAssertNextDataset( input_dataset, transformations, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. transformations A Tensor of type string. outp...
doc_8865
tf.compat.v1.estimator.DNNClassifier( hidden_units, feature_columns, model_dir=None, n_classes=2, weight_column=None, label_vocabulary=None, optimizer='Adagrad', activation_fn=tf.nn.relu, dropout=None, input_layer_partitioner=None, config=None, warm_start_from=None, loss_reduction=tf.compat.v1.losses.Re...
doc_8866
Partially fit underlying estimators Should be used when memory is inefficient to train all data. Chunks of data can be passed in several iteration, where the first call should have an array of all target variables. Parameters X(sparse) array-like of shape (n_samples, n_features) Data. yarray-like of shape (n_...
doc_8867
Return a string containing font configuration for the tex preamble.
doc_8868
This method for the Stats class reverses the ordering of the basic list within the object. Note that by default ascending vs descending order is properly selected based on the sort key of choice.
doc_8869
Alias for field number 0
doc_8870
An importer for built-in modules. All known built-in modules are listed in sys.builtin_module_names. This class implements the importlib.abc.MetaPathFinder and importlib.abc.InspectLoader ABCs. Only class methods are defined by this class to alleviate the need for instantiation. Changed in version 3.5: As part of PEP ...
doc_8871
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_8872
See Migration guide for more details. tf.compat.v1.data.experimental.Reducer tf.data.experimental.Reducer( init_func, reduce_func, finalize_func ) A reducer is represented as a tuple of the three functions: 1) initialization function: key => initial state 2) reduce function: (old state, input) => new state 3) fi...
doc_8873
Set the log base (major tick every base**i, i integer).
doc_8874
See Migration guide for more details. tf.compat.v1.raw_ops.MutableHashTableOfTensorsV2 tf.raw_ops.MutableHashTableOfTensorsV2( key_dtype, value_dtype, container='', shared_name='', use_node_name_sharing=False, value_shape=[], name=None ) This op creates a mutable hash table, specifying the type of its keys a...
doc_8875
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_8876
Create an Index with values cast to dtypes. The class of a new Index is determined by dtype. When conversion is impossible, a TypeError exception is raised. Parameters dtype:numpy dtype or pandas type Note that any signed integer dtype is treated as 'int64', and any unsigned integer dtype is treated as 'uint64'...
doc_8877
Calls get_form() and adds the result to the context data with the name ‘form’.
doc_8878
A 1-D iterator over the array. This is a numpy.flatiter instance, which acts similarly to, but is not a subclass of, Python’s built-in iterator object. See also flatten Return a copy of the array collapsed into one dimension. flatiter Examples >>> x = np.arange(1, 7).reshape(2, 3) >>> x array([[1, 2, 3], ...
doc_8879
The name of the lookup, used for identifying it on parsing query expressions. It cannot contain the string "__".
doc_8880
Convenience function which creates a TCP socket bound to address (a 2-tuple (host, port)) and return the socket object. family should be either AF_INET or AF_INET6. backlog is the queue size passed to socket.listen(); when 0 a default reasonable value is chosen. reuse_port dictates whether to set the SO_REUSEPORT socke...
doc_8881
Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise. Calls str.isalpha element-wise. For 8-bit strings, this method is locale-dependent. Parameters aarray_like of str or unicode Returns outndarray Output array of bools See ...
doc_8882
Write records stored in a DataFrame to a SQL database. Databases supported by SQLAlchemy [1] are supported. Tables can be newly created, appended to, or overwritten. Parameters name:str Name of SQL table. con:sqlalchemy.engine.(Engine or Connection) or sqlite3.Connection Using SQLAlchemy makes it possible t...
doc_8883
Types The module provides an ndarray class which wraps an immutable tf.Tensor. Additional functions are provided which accept array-like objects. Here array-like objects includes ndarrays as defined by this module, as well as tf.Tensor, in addition to types accepted by NumPy. A subset of NumPy dtypes are supported. Ty...
doc_8884
Computes the log-likelihood of a Gaussian data set with self.covariance_ as an estimator of its covariance matrix. Parameters X_testarray-like of shape (n_samples, n_features) Test data of which we compute the likelihood, where n_samples is the number of samples and n_features is the number of features. X_test ...
doc_8885
Return the size in bytes of individual samples.
doc_8886
Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already rgb or rgba, such as mi...
doc_8887
An array that represents the abbreviated days of the week in the current locale.
doc_8888
Predict regression target for X. The predicted regression target of an input sample is computed as the mean predicted regression targets of the estimators in the ensemble. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Returns yndarray of shape (n_samples,) T...
doc_8889
The size of the buffer used when buffer_text is true. A new buffer size can be set by assigning a new integer value to this attribute. When the size is changed, the buffer will be flushed.
doc_8890
tf.experimental.numpy.flipud( m ) See the NumPy documentation for numpy.flipud.
doc_8891
Sets the array system to be used for surface arrays use_arraytype (arraytype) -> None DEPRECATED: Uses the requested array type for the module functions. The only supported arraytype is 'numpy'. Other values will raise ValueError.
doc_8892
Write the integer byte into memory at the current position of the file pointer; the file position is advanced by 1. If the mmap was created with ACCESS_READ, then writing to it will raise a TypeError exception.
doc_8893
class sklearn.kernel_approximation.SkewedChi2Sampler(*, skewedness=1.0, n_components=100, random_state=None) [source] Approximates feature map of the “skewed chi-squared” kernel by Monte Carlo approximation of its Fourier transform. Read more in the User Guide. Parameters skewednessfloat, default=1.0 “skewednes...
doc_8894
First array elements raised to powers from second array, element-wise. Raise each base in x1 to the positionally-corresponding power in x2. x1 and x2 must be broadcastable to the same shape. An integer type raised to a negative integer power will raise a ValueError. Negative values raised to a non-integral value will...
doc_8895
[Deprecated] Get the subplot geometry, e.g., (2, 2, 3). Notes Deprecated since version 3.4.
doc_8896
Return an array with the elements of a left-justified in a string of length width. Calls str.ljust element-wise. Parameters aarray_like of str or unicode widthint The length of the resulting strings fillcharstr or unicode, optional The character to use for padding Returns outndarray Output array o...
doc_8897
Return a list of the n most common elements and their counts from the most common to the least. If n is omitted or None, most_common() returns all elements in the counter. Elements with equal counts are ordered in the order first encountered: >>> Counter('abracadabra').most_common(3) [('a', 5), ('b', 2), ('r', 2)]
doc_8898
Retrieve the form class to instantiate. By default form_class.
doc_8899
A string representing the final path component, excluding the drive and root, if any: >>> PurePosixPath('my/library/setup.py').name 'setup.py' UNC drive names are not considered: >>> PureWindowsPath('//some/share/setup.py').name 'setup.py' >>> PureWindowsPath('//some/share').name ''