_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_12100
child: A Transform instance. This child may later be replaced with set().
doc_12101
Which package a module belongs to. If the module is top-level (i.e. not a part of any specific package) then the attribute should be set to '', else it should be set to the name of the package (which can be __name__ if the module is a package itself). Defaults to None. This attribute is to match importlib.machinery.Mod...
doc_12102
class sklearn.feature_selection.RFECV(estimator, *, step=1, min_features_to_select=1, cv=None, scoring=None, verbose=0, n_jobs=None, importance_getter='auto') [source] Feature ranking with recursive feature elimination and cross-validated selection of the best number of features. See glossary entry for cross-validati...
doc_12103
Return the type of the symbol table. Possible values are 'class', 'module', and 'function'.
doc_12104
Return the fileno of the underlying socket.
doc_12105
Mask an array inside a given interval. Shortcut to masked_where, where condition is True for x inside the interval [v1,v2] (v1 <= x <= v2). The boundaries v1 and v2 can be given in either order. See also masked_where Mask where a condition is met. Notes The array x is prefilled with its filling value. Examples ...
doc_12106
Alias for get_linewidth.
doc_12107
Calculate the ewm (exponential weighted moment) variance. Parameters bias:bool, default False Use a standard estimation bias correction. *args For NumPy compatibility and will not have an effect on the result. **kwargs For NumPy compatibility and will not have an effect on the result. Returns Series or...
doc_12108
Create a DataFrame with a column containing the Index. Parameters index:bool, default True Set the index of the returned DataFrame as the original Index. name:object, default None The passed name should substitute for the index name (if it has one). Returns DataFrame DataFrame containing the original ...
doc_12109
Evaluate a polynomial specified by its roots at points x. If r is of length N, this function returns the value \[p(x) = \prod_{n=1}^{N} (x - r_n)\] The parameter x is converted to an array only if it is a tuple or a list, otherwise it is treated as a scalar. In either case, either x or its elements must support mult...
doc_12110
See the documentation of the protocol.eof_received() method.
doc_12111
Draw samples from the triangular distribution over the interval [left, right]. The triangular distribution is a continuous probability distribution with lower limit left, peak at mode, and upper limit right. Unlike the other distributions, these parameters directly define the shape of the pdf. Parameters leftfloa...
doc_12112
Return True if name binding introduces new namespace. If the name is used as the target of a function or class statement, this will be true. For example: >>> table = symtable.symtable("def some_func(): pass", "string", "exec") >>> table.lookup("some_func").is_namespace() True Note that a single name can be bound to mu...
doc_12113
operator.__ixor__(a, b) a = ixor(a, b) is equivalent to a ^= b.
doc_12114
See Migration guide for more details. tf.compat.v1.raw_ops.DecodeImage tf.raw_ops.DecodeImage( contents, channels=0, dtype=tf.dtypes.uint8, expand_animations=True, name=None ) Detects whether an image is a BMP, GIF, JPEG, or PNG, and performs the appropriate operation to convert the input bytes string into a Ten...
doc_12115
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_12116
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju...
doc_12117
See Migration guide for more details. tf.compat.v1.raw_ops.TensorSummary tf.raw_ops.TensorSummary( tensor, description='', labels=[], display_name='', name=None ) This op is being phased out in favor of TensorSummaryV2, which lets callers pass a tag as well as a serialized SummaryMetadata proto string that c...
doc_12118
Return the encoding used to return translated messages in lgettext() and lngettext(). Deprecated since version 3.8, will be removed in version 3.10.
doc_12119
See Migration guide for more details. tf.compat.v1.app.flags.BooleanParser Methods flag_type flag_type() See base class. parse parse( argument ) See base class. Class Variables syntactic_help ''
doc_12120
Make a bar plot. The bars are positioned at x with the given alignment. Their dimensions are given by height and width. The vertical baseline is bottom (default 0). Many parameters can take either a single value applying to all bars or a sequence of values, one for each bar. Parameters xfloat or array-like The ...
doc_12121
Returns True if a file referenced by the given name already exists in the storage system, or False if the name is available for a new file.
doc_12122
__round__(ndigits) The first version returns the nearest int to self, rounding half to even. The second version rounds self to the nearest multiple of Fraction(1, 10**ndigits) (logically, if ndigits is negative), again rounding half toward even. This method can also be accessed through the round() function.
doc_12123
Calculate the rolling maximum. Parameters *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba. None : Defaults to 'cython' or global...
doc_12124
Set the child to be anchored.
doc_12125
Decorator to register a pairwise function with kl_divergence(). Usage: @register_kl(Normal, Normal) def kl_normal_normal(p, q): # insert implementation here Lookup returns the most specific (type,type) match ordered by subclass. If the match is ambiguous, a RuntimeWarning is raised. For example to resolve the am...
doc_12126
Server objects are asynchronous context managers. When used in an async with statement, it’s guaranteed that the Server object is closed and not accepting new connections when the async with statement is completed: srv = await loop.create_server(...) async with srv: # some code # At this point, srv is closed and ...
doc_12127
'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_12128
Generate classes-1 threshold values to divide gray levels in image. The threshold values are chosen to maximize the total sum of pairwise variances between the thresholded graylevel classes. See Notes and [1] for more details. Parameters image(N, M) ndarray Grayscale input image. classesint, optional Number...
doc_12129
Raised when the second argument of a division or modulo operation is zero. The associated value is a string indicating the type of the operands and the operation.
doc_12130
Add new categories. new_categories will be included at the last/highest place in the categories and will be unused directly after this call. Parameters new_categories:category or list-like of category The new categories to be included. inplace:bool, default False Whether or not to add the categories inplace...
doc_12131
Return True if the OS supports symbolic links, False otherwise.
doc_12132
The W3C recommendation upon which the Python DOM API is based. Document Object Model (DOM) Level 1 Specification The W3C recommendation for the DOM supported by xml.dom.minidom. Python Language Mapping Specification This specifies the mapping from OMG IDL to Python. Module Contents The xml.dom contains the foll...
doc_12133
Using this attribute you can control what objects are returned for the TEXT data type. By default, this attribute is set to str and the sqlite3 module will return Unicode objects for TEXT. If you want to return bytestrings instead, you can set it to bytes. You can also set it to any other callable that accepts a single...
doc_12134
Grab the image information from the figure and save as a movie frame. All keyword arguments in savefig_kwargs are passed on to the savefig call that saves the figure.
doc_12135
See Migration guide for more details. tf.compat.v1.keras.backend.epsilon tf.keras.backend.epsilon() Returns A float. Example: tf.keras.backend.epsilon() 1e-07
doc_12136
send(obj) Send an object to the other end of the connection which should be read using recv(). The object must be picklable. Very large pickles (approximately 32 MiB+, though it depends on the OS) may raise a ValueError exception. recv() Return an object sent from the other end of the connection using send()....
doc_12137
bytearray.translate(table, /, delete=b'') Return a copy of the bytes or bytearray object where all bytes occurring in the optional argument delete are removed, and the remaining bytes have been mapped through the given translation table, which must be a bytes object of length 256. You can use the bytes.maketrans() me...
doc_12138
See Migration guide for more details. tf.compat.v1.invert_permutation, tf.compat.v1.math.invert_permutation tf.math.invert_permutation( x, name=None ) This operation computes the inverse of an index permutation. It takes a 1-D integer tensor x, which represents the indices of a zero-based array, and swaps each v...
doc_12139
Return the time of the specified clock clk_id. Refer to Clock ID Constants for a list of accepted values for clk_id. Availability: Unix. New in version 3.3.
doc_12140
Return x divided by y, truncated to an integer.
doc_12141
Normalizes the username by calling normalize_username(). If you override this method, be sure to call super() to retain the normalization.
doc_12142
Return the resolution (precision) of the specified clock clk_id. Refer to Clock ID Constants for a list of accepted values for clk_id. Availability: Unix. New in version 3.3.
doc_12143
See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayGatherV2 tf.raw_ops.TensorArrayGatherV2( handle, indices, flow_in, dtype, element_shape=None, name=None ) Args handle A Tensor of type string. indices A Tensor of type int32. flow_in A Tensor of type float32. dtype A...
doc_12144
Get the profiler function as set by setprofile().
doc_12145
Temporarily unset the environment variable envvar.
doc_12146
Select final periods of time series data based on a date offset. For a DataFrame with a sorted DatetimeIndex, this function selects the last few rows based on a date offset. Parameters offset:str, DateOffset, dateutil.relativedelta The offset length of the data that will be selected. For instance, ‘3D’ will dis...
doc_12147
The actual logic of the command. Subclasses must implement this method. It may return a string which will be printed to stdout (wrapped by BEGIN; and COMMIT; if output_transaction is True).
doc_12148
Calculates the learning rate at batch index. This function treats self.last_epoch as the last batch index. If self.cycle_momentum is True, this function has a side effect of updating the optimizer’s momentum.
doc_12149
The part of the URL after the “?”. This is the raw value, use args for the parsed values.
doc_12150
Return the next item from the container. If there are no further items, raise the StopIteration exception. This method corresponds to the tp_iternext slot of the type structure for Python objects in the Python/C API.
doc_12151
class sklearn.naive_bayes.MultinomialNB(*, alpha=1.0, fit_prior=True, class_prior=None) [source] Naive Bayes classifier for multinomial models The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification). The multinomial distribution normally...
doc_12152
tf.keras.constraints.radial_constraint Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.constraints.RadialConstraint, tf.compat.v1.keras.constraints.radial_constraint Also available via the shortcut function tf.keras.constraints.radial_constraint. For example, the desired output fo...
doc_12153
Put item into the queue. The method never blocks and always succeeds (except for potential low-level errors such as failure to allocate memory). The optional args block and timeout are ignored and only provided for compatibility with Queue.put(). CPython implementation detail: This method has a C implementation which ...
doc_12154
Returns True if the user has any permissions in the given package (the Django app label). If User.is_active and is_superuser are both True, this method always returns True.
doc_12155
The same as http_error_301(), but called for the ‘see other’ response.
doc_12156
Set the epoch (origin for dates) for datetime calculations. The default epoch is rcParams["dates.epoch"] (by default 1970-01-01T00:00). If microsecond accuracy is desired, the date being plotted needs to be within approximately 70 years of the epoch. Matplotlib internally represents dates as days since the epoch, so ...
doc_12157
Alias for set_antialiased.
doc_12158
Send a STARTTLS command. This will enable encryption on the NNTP connection. The context argument is optional and should be a ssl.SSLContext object. Please read Security considerations for best practices. Note that this may not be done after authentication information has been transmitted, and authentication occurs by ...
doc_12159
Set whether to use antialiased rendering. Parameters aabool or None
doc_12160
Calculate the expanding sum. Parameters *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs the operation through C-extensions from cython. 'numba' : Runs the operation through JIT compiled code from numba. None : Defaults to 'cython' or globally...
doc_12161
See class documentation.
doc_12162
Trace a function and return an executable or ScriptFunction that will be optimized using just-in-time compilation. Tracing is ideal for code that operates only on Tensors and lists, dictionaries, and tuples of Tensors. Using torch.jit.trace and torch.jit.trace_module, you can turn an existing module or Python functio...
doc_12163
LayeredUpdates is a sprite group that handles layers and draws like OrderedUpdates. LayeredUpdates(*spites, **kwargs) -> LayeredUpdates This group is fully compatible with pygame.sprite.Sprite. You can set the default layer through kwargs using 'default_layer' and an integer for the layer. The default layer is 0. If ...
doc_12164
Add an inset indicator to the Axes. This is a rectangle on the plot at the position indicated by bounds that optionally has lines that connect the rectangle to an inset Axes (Axes.inset_axes). Parameters bounds[x0, y0, width, height] Lower-left corner of rectangle to be marked, and its width and height. inset...
doc_12165
In-place version of float_power()
doc_12166
get the position of a joystick hat get_hat(hat_number) -> x, y Returns the current position of a position hat. The position is given as two values representing the x and y position for the hat. (0, 0) means centered. A value of -1 means left/down and a value of 1 means right/up: so (-1, 0) means left; (1, 0) means ri...
doc_12167
Bases: matplotlib.artist.Artist Handle storing and drawing of text in window or data coordinates. Create a Text instance at x, y with string text. Valid keyword arguments are: Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array ...
doc_12168
Bases: object Create a MathTextParser for the given backend output. get_depth(texstr, dpi=120, fontsize=14)[source] [Deprecated] Get the depth of a mathtext string. Parameters texstrstr A valid mathtext string, e.g., r'IQ: $sigma_i=15$'. dpifloat The dots-per-inch setting used to render the text. Ret...
doc_12169
Create a Set-Cookie header without the Set-Cookie prefix. The return value is usually restricted to ascii as the vast majority of values are properly escaped, but that is no guarantee. It’s tunneled through latin1 as required by PEP 3333. The return value is not ASCII safe if the key contains unicode characters. This i...
doc_12170
Represents the C char datatype, and interprets the value as a single character. The constructor accepts an optional string initializer, the length of the string must be exactly one character.
doc_12171
class pipes.Template An abstraction of a pipeline. Example: >>> import pipes >>> t = pipes.Template() >>> t.append('tr a-z A-Z', '--') >>> f = t.open('pipefile', 'w') >>> f.write('hello world') >>> f.close() >>> open('pipefile').read() 'HELLO WORLD' Template Objects Template objects following methods: Template.r...
doc_12172
A string containing all ASCII characters that are considered whitespace. This includes the characters space, tab, linefeed, return, formfeed, and vertical tab.
doc_12173
See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyRMSProp tf.raw_ops.SparseApplyRMSProp( var, ms, mom, lr, rho, momentum, epsilon, grad, indices, use_locking=False, name=None ) Note that in dense implementation of this algorithm, ms and mom will update even if the grad is zero, but in thi...
doc_12174
Upgrades the core venv dependency packages (currently pip and setuptools) in the environment. This is done by shelling out to the pip executable in the environment. New in version 3.9.
doc_12175
The request context contains all request relevant information. It is created at the beginning of the request and pushed to the _request_ctx_stack and removed at the end of it. It will create the URL adapter and request object for the WSGI environment provided. Do not attempt to use this class directly, instead use test...
doc_12176
See Migration guide for more details. tf.compat.v1.feature_column.sequence_numeric_column tf.feature_column.sequence_numeric_column( key, shape=(1,), default_value=0.0, dtype=tf.dtypes.float32, normalizer_fn=None ) Example: temperature = sequence_numeric_column('temperature') columns = [temperature] features = ...
doc_12177
Test if path exists. Test if path exists as (and in this order): a local file. a remote URL that has been downloaded and stored locally in the DataSource directory. a remote URL that has not been downloaded, but is valid and accessible. Parameters pathstr Can be a local file or a remote URL. Returns out...
doc_12178
boolean that is True if the application is served by a WSGI server that spawns multiple processes.
doc_12179
Get a list of enabled ciphers. The list is in order of cipher priority. See SSLContext.set_ciphers(). Example: >>> ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23) >>> ctx.set_ciphers('ECDHE+AESGCM:!ECDSA') >>> ctx.get_ciphers() # OpenSSL 1.0.x [{'alg_bits': 256, 'description': 'ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH ...
doc_12180
Plot vertical lines at each x from ymin to ymax. Parameters xfloat or array-like x-indexes where to plot the lines. ymin, ymaxfloat or array-like Respective beginning and end of each line. If scalars are provided, all lines will have same length. colorslist of colors, default: rcParams["lines.color"] (def...
doc_12181
See Migration guide for more details. tf.compat.v1.math.zeta, tf.compat.v1.zeta tf.math.zeta( x, q, name=None ) The Hurwitz zeta function is defined as: \(\zeta(x, q) = \sum_{n=0}^{\infty} (q + n)^{-x}\) Args x A Tensor. Must be one of the following types: float32, float64. q A Tensor. Must have t...
doc_12182
Returns the coefficient of determination R^2 of the prediction. The coefficient R^2 is defined as (1 - u/v), where u is the residual sum of squares ((y_true - y_pred) ** 2).sum() and v is the total sum of squares ((y_true - y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it can be negative (because the...
doc_12183
Convert a Hermite series to a polynomial. Convert an array representing the coefficients of a Hermite series, ordered from lowest degree to highest, to an array of the coefficients of the equivalent polynomial (relative to the “standard” basis) ordered from lowest to highest degree. Parameters carray_like 1-D a...
doc_12184
Logs a message with level level on the root logger. The other arguments are interpreted as for debug(). Note The above module-level convenience functions, which delegate to the root logger, call basicConfig() to ensure that at least one handler is available. Because of this, they should not be used in threads, in vers...
doc_12185
Try to choose the view limits intelligently.
doc_12186
See Migration guide for more details. tf.compat.v1.raw_ops.FixedLengthRecordReaderV2 tf.raw_ops.FixedLengthRecordReaderV2( record_bytes, header_bytes=0, footer_bytes=0, hop_bytes=0, container='', shared_name='', encoding='', name=None ) Args record_bytes An int. Number of bytes in the record. ...
doc_12187
A dictionary of context data that will be available in the email template. It can be used to override default template context values listed below e.g. domain.
doc_12188
See Migration guide for more details. tf.compat.v1.raw_ops.ParseSequenceExampleV2 tf.raw_ops.ParseSequenceExampleV2( serialized, debug_name, context_sparse_keys, context_dense_keys, context_ragged_keys, feature_list_sparse_keys, feature_list_dense_keys, feature_list_ragged_keys, feature_list_dense_missing...
doc_12189
See Migration guide for more details. tf.compat.v1.unique tf.unique( x, out_idx=tf.dtypes.int32, name=None ) This operation returns a tensor y containing all of the unique elements of x sorted in the same order that they occur in x; x does not need to be sorted. This operation also returns a tensor idx the same ...
doc_12190
Returns the value for the given key. If the key has more than one value, it returns the last value. Raises django.utils.datastructures.MultiValueDictKeyError if the key does not exist. (This is a subclass of Python’s standard KeyError, so you can stick to catching KeyError.)
doc_12191
See torch.masked_select()
doc_12192
Return the qualified names of all attributes.
doc_12193
Set the (group) id for the artist. Parameters gidstr
doc_12194
Set multiple properties at once. Supported properties are Property Description 3d_properties unknown agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or...
doc_12195
Return the number of CPUs in the system. This number is not equivalent to the number of CPUs the current process can use. The number of usable CPUs can be obtained with len(os.sched_getaffinity(0)) May raise NotImplementedError. See also os.cpu_count()
doc_12196
Parses a string and returns a datetime.timedelta. Expects data in the format "DD HH:MM:SS.uuuuuu", "DD HH:MM:SS,uuuuuu", or as specified by ISO 8601 (e.g. P4DT1H15M20S which is equivalent to 4 1:15:20) or PostgreSQL’s day-time interval format (e.g. 3 days 04:05:06).
doc_12197
Return True if path is an existing directory. This follows symbolic links, so both islink() and isdir() can be true for the same path. Changed in version 3.6: Accepts a path-like object.
doc_12198
A Popen creationflags parameter to specify that a new process will have realtime priority. You should almost never use REALTIME_PRIORITY_CLASS, because this interrupts system threads that manage mouse input, keyboard input, and background disk flushing. This class can be appropriate for applications that “talk” directl...
doc_12199
Parse mathtext string s and convert it to a (vertices, codes) pair.