_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_8500
'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_8501
The Meter widget can be used to show the progress of a background job which may take a long time to execute.
doc_8502
You can override this to implement custom flushing behavior. This version just zaps the buffer to empty.
doc_8503
class ast.YieldFrom(value) A yield or yield from expression. Because these are expressions, they must be wrapped in a Expr node if the value sent back is not used. >>> print(ast.dump(ast.parse('yield x'), indent=4)) Module( body=[ Expr( value=Yield( value=Name(id='x', ctx=Load(...
doc_8504
The full name of a template to use for displaying the password reset form. Defaults to registration/password_reset_form.html if not supplied.
doc_8505
Optional The value for the day, as a string. By default, set to None, which means the day will be determined using other means.
doc_8506
See Migration guide for more details. tf.compat.v1.sparse.cross tf.sparse.cross( inputs, name=None, separator=None ) For example, if the inputs are * inputs[0]: SparseTensor with shape = [2, 2] [0, 0]: "a" [1, 0]: "b" [1, 1]: "c" * inputs[1]: SparseTensor with shape = [2, 1] [0, 0]: "d" [1, 0]: "e" * i...
doc_8507
See Migration guide for more details. tf.compat.v1.raw_ops.MultiDeviceIteratorInit tf.raw_ops.MultiDeviceIteratorInit( dataset, multi_device_iterator, max_buffer_size, name=None ) Args dataset A Tensor of type variant. Dataset to be iterated upon. multi_device_iterator A Tensor of type resource. A...
doc_8508
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ...
doc_8509
See Migration guide for more details. tf.compat.v1.nn.conv_transpose tf.nn.conv_transpose( input, filters, output_shape, strides, padding='SAME', data_format=None, dilations=None, name=None ) This operation is sometimes called "deconvolution" after (Zeiler et al., 2010), but is really the transpose (gradient...
doc_8510
tf.compat.v1.lite.OpHint.OpHintArgumentTracker( function_name, unique_function_id, node_name_prefix, attr_name, level=1, children_inputs_mappings=None ) The inputs and arguments of these functions both use an instance of the class so they can have independent numbering. Args function_name Name of the ...
doc_8511
Any Python object. Character code 'O'
doc_8512
standard pygame exception raise pygame.error(message) This exception is raised whenever a pygame or SDL operation fails. You can catch any anticipated problems and deal with the error. The exception is always raised with a descriptive message about the problem. Derived from the RuntimeError exception, which can also ...
doc_8513
Return a header containing abbreviated weekday names. n specifies the width in characters for one weekday.
doc_8514
Return a string representation of data. 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. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ...
doc_8515
Returns the total number of instructions executed. See FunctionCounts.denoise() for an explation of the denoise arg.
doc_8516
sklearn.metrics.jaccard_score(y_true, y_pred, *, labels=None, pos_label=1, average='binary', sample_weight=None, zero_division='warn') [source] Jaccard similarity coefficient score. The Jaccard index [1], or Jaccard similarity coefficient, defined as the size of the intersection divided by the size of the union of tw...
doc_8517
class fractions.Fraction(other_fraction) class fractions.Fraction(float) class fractions.Fraction(decimal) class fractions.Fraction(string) The first version requires that numerator and denominator are instances of numbers.Rational and returns a new Fraction instance with value numerator/denominator. If denomin...
doc_8518
tf.compat.v1.lookup.StaticVocabularyTable( initializer, num_oov_buckets, lookup_key_dtype=None, name=None ) For example, if an instance of StaticVocabularyTable is initialized with a string-to-id initializer that maps: init = tf.lookup.KeyValueTensorInitializer( keys=tf.constant(['emerson', 'lake', 'palmer'])...
doc_8519
Outputs a symbolic disassembly of the pickle to the file-like object out, defaulting to sys.stdout. pickle can be a string or a file-like object. memo can be a Python dictionary that will be used as the pickle’s memo; it can be used to perform disassemblies across multiple pickles created by the same pickler. Successiv...
doc_8520
See torch.logdet()
doc_8521
Return the MATHLIB line from numpyconfig.h
doc_8522
Beep the PC’s speaker. The frequency parameter specifies frequency, in hertz, of the sound, and must be in the range 37 through 32,767. The duration parameter specifies the number of milliseconds the sound should last. If the system is not able to beep the speaker, RuntimeError is raised.
doc_8523
Constructs a tensor with data. Warning torch.tensor() always copies data. If you have a Tensor data and want to avoid a copy, use torch.Tensor.requires_grad_() or torch.Tensor.detach(). If you have a NumPy ndarray and want to avoid a copy, use torch.as_tensor(). Warning When data is a tensor x, torch.tensor() reads ...
doc_8524
set the alpha value for the full Surface image set_alpha(value, flags=0) -> None set_alpha(None) -> None Set the current alpha value for the Surface. When blitting this Surface onto a destination, the pixels will be drawn slightly transparent. The alpha value is an integer from 0 to 255, 0 is fully transparent and 25...
doc_8525
control the sharing of input devices with other applications set_grab(bool) -> None When your program runs in a windowed environment, it will share the mouse and keyboard devices with other applications that have focus. If your program sets the event grab to True, it will lock all input into your program. It is best ...
doc_8526
Refer to the corresponding attribute documentation in IPv4Interface.
doc_8527
Return the hatching pattern.
doc_8528
See Migration guide for more details. tf.compat.v1.raw_ops.SparseApplyAdagradDA tf.raw_ops.SparseApplyAdagradDA( var, gradient_accumulator, gradient_squared_accumulator, grad, indices, lr, l1, l2, global_step, use_locking=False, name=None ) Args var A mutable Tensor. Must be one of the following typ...
doc_8529
Convert a polynomial to a Legendre series. Convert an array representing the coefficients of a polynomial (relative to the “standard” basis) ordered from lowest degree to highest, to an array of the coefficients of the equivalent Legendre series, ordered from lowest to highest degree. Parameters polarray_like 1...
doc_8530
run a midi example midi.main(mode='output', device_id=None) -> None Arguments: mode - if 'output' run a midi keyboard output example 'input' run a midi event logger input example 'list' list available midi devices (default 'output') device_id - midi device number; if None then use the defau...
doc_8531
See Migration guide for more details. tf.compat.v1.raw_ops.NextIteration tf.raw_ops.NextIteration( data, name=None ) Args data A Tensor. The tensor to be made available to the next iteration. name A name for the operation (optional). Returns A Tensor. Has the same type as data.
doc_8532
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_8533
Local features for a single- or multi-channel nd image. Intensity, gradient intensity and local structure are computed at different scales thanks to Gaussian blurring. Parameters imagendarray Input image, which can be grayscale or multichannel. multichannelbool, default False True if the last dimension corr...
doc_8534
Compute the decision function of X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Sparse matrix can be CSC, CSR, COO, DOK, or LIL. COO, DOK, and LIL are converted to CSR. Returns scorendarray of shape of (n_samples, k) The decision function of the i...
doc_8535
Return a fixed frequency DatetimeIndex, with business day as the default frequency. Parameters start:str or datetime-like, default None Left bound for generating dates. end:str or datetime-like, default None Right bound for generating dates. periods:int, default None Number of periods to generate. fre...
doc_8536
tf.nn.RNNCellDeviceWrapper( *args, **kwargs ) Args cell An instance of RNNCell. device A device string or function, for passing to tf.device. **kwargs dict of keyword arguments for base layer. Attributes output_size state_size Methods get_initial_state View source get_ini...
doc_8537
If this property is set to True, the artist will be queried for custom context information when the mouse cursor moves over it. See also get_cursor_data(), ToolCursorPosition and NavigationToolbar2.
doc_8538
Callback for mouse button release in zoom to rect mode.
doc_8539
A mixin that provides basic HTTP GET and POST workflow. Note This is named ‘ProcessFormView’ and inherits directly from django.views.generic.base.View, but breaks if used independently, so it is more of a mixin. Extends django.views.generic.base.View Methods and Attributes get(request, *args, **kwargs) Renders ...
doc_8540
Callback for mouse button press in zoom to rect mode.
doc_8541
Token value for "&".
doc_8542
Returns the file selection dialog that may be shared among different calls from this application. This method will create a file selection dialog widget when it is called the first time. This dialog will be returned by all subsequent calls to tix_filedialog(). An optional dlgclass parameter can be passed as a string to...
doc_8543
operator.__sub__(a, b) Return a - b.
doc_8544
mmap.MADV_RANDOM mmap.MADV_SEQUENTIAL mmap.MADV_WILLNEED mmap.MADV_DONTNEED mmap.MADV_REMOVE mmap.MADV_DONTFORK mmap.MADV_DOFORK mmap.MADV_HWPOISON mmap.MADV_MERGEABLE mmap.MADV_UNMERGEABLE mmap.MADV_SOFT_OFFLINE mmap.MADV_HUGEPAGE mmap.MADV_NOHUGEPAGE mmap.MADV_DONTDUMP mmap.MADV_DODUMP m...
doc_8545
unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf() system calls.
doc_8546
Removes and returns a key or index. Parameters key – The key to be popped. If this is an integer the item at that position is removed, if it’s a string the value for that key is. If the key is omitted or None the last item is removed. Returns an item.
doc_8547
Determine whether code is in tableC.1.1 (ASCII space characters).
doc_8548
Cursor move event handler and validator.
doc_8549
Expands all children of node into node. Example: from xml.dom import pulldom xml = '<html><title>Foo</title> <p>Some text <div>and more</div></p> </html>' doc = pulldom.parseString(xml) for event, node in doc: if event == pulldom.START_ELEMENT and node.tagName == 'p': # Following statement only prints '<p/...
doc_8550
A string name identifying the DocTest. Typically, this is the name of the object or file that the test was extracted from.
doc_8551
Parameters cmode – one of the values 1.0 or 255 Return the colormode or set it to 1.0 or 255. Subsequently r, g, b values of color triples have to be in the range 0..cmode. >>> screen.colormode(1) >>> turtle.pencolor(240, 160, 80) Traceback (most recent call last): ... TurtleGraphicsError: bad color sequence: ...
doc_8552
See Migration guide for more details. tf.compat.v1.image.central_crop tf.image.central_crop( image, central_fraction ) Remove the outer parts of an image but retain the central region of the image along each dimension. If we specify central_fraction = 0.5, this function returns the region marked with "X" in the ...
doc_8553
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceApplyAddSign tf.raw_ops.ResourceApplyAddSign( var, m, lr, alpha, sign_decay, beta, grad, use_locking=False, name=None ) mt <- beta1 * m{t-1} + (1 - beta1) * g update <- (alpha + sign_decay * sign(g) *sign(m)) * g variable <- variable - lr_t * upd...
doc_8554
Bases: matplotlib.collections.Collection A collection of ellipses, drawn using splines. Parameters widthsarray-like The lengths of the first axes (e.g., major axis lengths). heightsarray-like The lengths of second axes. anglesarray-like The angles of the first axes, degrees CCW from the x-axis. units{...
doc_8555
Exception that is raised by an error encountered in parsing file contents. This is a generic error raised for errors encountered when functions like read_csv or read_html are parsing contents of a file. See also read_csv Read CSV (comma-separated) file into a DataFrame. read_html Read HTML table into a DataFrame...
doc_8556
tf.keras.layers.AvgPool3D Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.AveragePooling3D, tf.compat.v1.keras.layers.AvgPool3D tf.keras.layers.AveragePooling3D( pool_size=(2, 2, 2), strides=None, padding='valid', data_format=None, **kwargs ) Arguments pool...
doc_8557
class sklearn.linear_model.OrthogonalMatchingPursuit(*, n_nonzero_coefs=None, tol=None, fit_intercept=True, normalize=True, precompute='auto') [source] Orthogonal Matching Pursuit model (OMP). Read more in the User Guide. Parameters n_nonzero_coefsint, default=None Desired number of non-zero entries in the solu...
doc_8558
Returns numpy array of datetime.time objects with timezone information. The time part of the Timestamps.
doc_8559
Returns a list of 2 masked arrays containing interpolated derivatives at the specified (x, y) points. Parameters x, yarray-like x and y coordinates of the same shape and any number of dimensions. Returns dzdx, dzdynp.ma.array 2 masked arrays of the same shape as x and y; values corresponding to (x, y) p...
doc_8560
Handles a record by passing it to all handlers associated with this logger and its ancestors (until a false value of propagate is found). This method is used for unpickled records received from a socket, as well as those created locally. Logger-level filtering is applied using filter().
doc_8561
See Migration guide for more details. tf.compat.v1.data.experimental.dense_to_ragged_batch tf.data.experimental.dense_to_ragged_batch( batch_size, drop_remainder=False, row_splits_dtype=tf.dtypes.int64 ) This transformation combines multiple consecutive elements of the input dataset into a single element. Like t...
doc_8562
Extract the raw traceback from the current stack frame. The return value has the same format as for extract_tb(). The optional f and limit arguments have the same meaning as for print_stack().
doc_8563
query the tree for neighbors within a radius r Parameters Xarray-like of shape (n_samples, n_features) An array of points to query rdistance within which neighbors are returned r can be a single value, or an array of values of shape x.shape[:-1] if different radii are desired for each point. return_distance...
doc_8564
class ast.NotEq class ast.Lt class ast.LtE class ast.Gt class ast.GtE class ast.Is class ast.IsNot class ast.In class ast.NotIn Comparison operator tokens.
doc_8565
Return a list of the names of sequences that include this message.
doc_8566
An await expression. value is what it waits for. Only valid in the body of an AsyncFunctionDef.
doc_8567
Plot the magnitude spectrum. Compute the magnitude spectrum of x. Data is padded to a length of pad_to and the windowing function window is applied to the signal. Parameters x1-D array or sequence Array or sequence containing the data. Fsfloat, default: 2 The sampling frequency (samples per time unit). It i...
doc_8568
tf.compat.v1.metrics.true_negatives_at_thresholds( labels, predictions, thresholds, weights=None, metrics_collections=None, updates_collections=None, name=None ) If weights is None, weights default to 1. Use weights of 0 to mask values. Args labels A Tensor whose shape matches predictions. Will be cas...
doc_8569
Transforms an uncontrained real vector xx with length D∗(D−1)/2D*(D-1)/2 into the Cholesky factor of a D-dimension correlation matrix. This Cholesky factor is a lower triangular matrix with positive diagonals and unit Euclidean norm for each row. The transform is processed as follows: First we convert x into a low...
doc_8570
class sklearn.decomposition.NMF(n_components=None, *, init='warn', solver='cd', beta_loss='frobenius', tol=0.0001, max_iter=200, random_state=None, alpha=0.0, l1_ratio=0.0, verbose=0, shuffle=False, regularization='both') [source] Non-Negative Matrix Factorization (NMF). Find two non-negative matrices (W, H) whose pr...
doc_8571
'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_8572
Callback function for URL defaults for all view functions of the application. It’s called with the endpoint and values and should update the values passed in place. Parameters f (Callable[[str, dict], None]) – Return type Callable[[str, dict], None]
doc_8573
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_8574
See torch.var()
doc_8575
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar.
doc_8576
Estimate model parameters using X and predict the labels for X. The method fits the model n_init times and sets the parameters with which the model has the largest likelihood or lower bound. Within each trial, the method iterates between E-step and M-step for max_iter times until the change of likelihood or lower bou...
doc_8577
In-place version of cumsum()
doc_8578
Returns the smallest Polygon that contains all the points in the geometry.
doc_8579
class sklearn.covariance.GraphicalLasso(alpha=0.01, *, mode='cd', tol=0.0001, enet_tol=0.0001, max_iter=100, verbose=False, assume_centered=False) [source] Sparse inverse covariance estimation with an l1-penalized estimator. Read more in the User Guide. Changed in version v0.20: GraphLasso has been renamed to Graphi...
doc_8580
See Migration guide for more details. tf.compat.v1.raw_ops.Relu6 tf.raw_ops.Relu6( features, name=None ) Args features A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, int64, bfloat16, uint16, half, uint32, uint64. name A name for the operation (optional)....
doc_8581
Registry entries subordinate to this key allow you to access performance data. The data is not actually stored in the registry; the registry functions cause the system to collect the data from its source.
doc_8582
Set the url of label1 and label2. Parameters urlstr
doc_8583
Initialize cascade classifier. Parameters xml_filefile’s path or file’s object A file in a OpenCv format from which all the cascade classifier’s parameters are loaded. epscnp.float32_t Accuracy parameter. Increasing it, makes the classifier detect less false positives but at the same time the false negative s...
doc_8584
bytearray.index(sub[, start[, end]]) Like find(), but raise ValueError when the subsequence is not found. The subsequence to search for may be any bytes-like object or an integer in the range 0 to 255. Changed in version 3.3: Also accept an integer in the range 0 to 255 as the subsequence.
doc_8585
See Migration guide for more details. tf.compat.v1.lookup.TextFileInitializer tf.lookup.TextFileInitializer( filename, key_dtype, key_index, value_dtype, value_index, vocab_size=None, delimiter='\t', name=None ) This initializer assigns one entry in the table for each line in the file. The key and value type...
doc_8586
Compute pairwise correlation of columns, excluding NA/null values. Parameters method:{‘pearson’, ‘kendall’, ‘spearman’} or callable Method of correlation: pearson : standard correlation coefficient kendall : Kendall Tau correlation coefficient spearman : Spearman rank correlation callable: callable with inpu...
doc_8587
Convert coefficient matrix to dense array format. Converts the coef_ member (back) to a numpy.ndarray. This is the default format of coef_ and is required for fitting, so calling this method is only required on models that have previously been sparsified; otherwise, it is a no-op. Returns self Fitted estimator.
doc_8588
The type of generator-iterator objects, created by generator functions.
doc_8589
Write any changes in the array to the file on disk. For further information, see memmap. Parameters None See also memmap
doc_8590
Create a basic file selection dialog. cancel_command(event=None) Trigger the termination of the dialog window. dirs_double_event(event) Event handler for double-click event on directory. dirs_select_event(event) Event handler for click event on directory. files_double_event(event) Event handler fo...
doc_8591
Convert a value to a “formatted” representation, as controlled by format_spec. The interpretation of format_spec will depend on the type of the value argument, however there is a standard formatting syntax that is used by most built-in types: Format Specification Mini-Language. The default format_spec is an empty strin...
doc_8592
Return a list of all the message’s header field names.
doc_8593
Return the Transform instance used by this artist offset.
doc_8594
Return a date with the same value, except for those parameters given new values by whichever keyword arguments are specified. Example: >>> from datetime import date >>> d = date(2002, 12, 31) >>> d.replace(day=26) datetime.date(2002, 12, 26)
doc_8595
Return the LogitTransform associated with this scale.
doc_8596
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None
doc_8597
The subset of drawn samples for each base estimator. Returns a dynamically generated list of indices identifying the samples used for fitting each member of the ensemble, i.e., the in-bag samples. Note: the list is re-created at each call to the property in order to reduce the object memory footprint by not storing the...
doc_8598
get_username() Returns the value of the field nominated by USERNAME_FIELD. clean() Normalizes the username by calling normalize_username(). If you override this method, be sure to call super() to retain the normalization. classmethod get_email_field_name() Returns the name of the email field specified b...
doc_8599
See Migration guide for more details. tf.compat.v1.data.experimental.bucket_by_sequence_length tf.data.experimental.bucket_by_sequence_length( element_length_func, bucket_boundaries, bucket_batch_sizes, padded_shapes=None, padding_values=None, pad_to_bucket_boundary=False, no_padding=False, drop_remainder...