_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_7500 | '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_7501 |
Bases: object [Deprecated] Notes Deprecated since version 3.4: staticadd(tmpdir)[source]
[Deprecated] Notes Deprecated since version 3.4:
staticcleanup_remaining_tmpdirs()[source]
[Deprecated] Notes Deprecated since version 3.4:
remaining_tmpdirs={} | |
doc_7502 |
Learn and apply the dimension reduction on the train data. Parameters
Xarray-like of shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples and n_features is the number of predictors.
yarray-like of shape (n_samples, n_targets), default=None
Target vectors, where n_samples ... | |
doc_7503 | Inplace row normalize using the l2 norm | |
doc_7504 | The name of the URLConf keyword argument that contains the slug. By default, slug_url_kwarg is 'slug'. | |
doc_7505 | sklearn.preprocessing.power_transform(X, method='yeo-johnson', *, standardize=True, copy=True) [source]
Power transforms are a family of parametric, monotonic transformations that are applied to make data more Gaussian-like. This is useful for modeling issues related to heteroscedasticity (non-constant variance), or ... | |
doc_7506 |
mark_dirty(*args) [source]
Marks given tensors as modified in an in-place operation. This should be called at most once, only from inside the forward() method, and all arguments should be inputs. Every tensor that’s been modified in-place in a call to forward() should be given to this function, to ensure correctn... | |
doc_7507 | See Migration guide for more details. tf.compat.v1.IndexedSlicesSpec
tf.IndexedSlicesSpec(
shape=None, dtype=tf.dtypes.float32, indices_dtype=tf.dtypes.int64,
dense_shape_dtype=None, indices_shape=None
)
Args
shape The dense shape of the IndexedSlices, or None to allow any dense shape.
dtype t... | |
doc_7508 | stat.FILE_ATTRIBUTE_COMPRESSED
stat.FILE_ATTRIBUTE_DEVICE
stat.FILE_ATTRIBUTE_DIRECTORY
stat.FILE_ATTRIBUTE_ENCRYPTED
stat.FILE_ATTRIBUTE_HIDDEN
stat.FILE_ATTRIBUTE_INTEGRITY_STREAM
stat.FILE_ATTRIBUTE_NORMAL
stat.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
stat.FILE_ATTRIBUTE_NO_SCRUB_DATA
stat.FILE_ATTRIBUTE... | |
doc_7509 |
Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters
lwfloat or list of floats | |
doc_7510 |
Partial dependence (PD) and individual conditional expectation (ICE) plots. Partial dependence plots, individual conditional expectation plots or an overlay of both of them can be plotted by setting the kind parameter. The len(features) plots are arranged in a grid with n_cols columns. Two-way partial dependence plot... | |
doc_7511 | The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET. | |
doc_7512 |
Reorder coordinates so that the axes are rotated with zdir along the original z axis. Prepending the axis with a '-' does the inverse transform, so zdir can be x, -x, y, -y, z or -z | |
doc_7513 | Return a named tuple describing the Windows version currently running. The named elements are major, minor, build, platform, service_pack, service_pack_minor, service_pack_major, suite_mask, product_type and platform_version. service_pack contains a string, platform_version a 3-tuple and all other values are integers. ... | |
doc_7514 | '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_7515 | Sets the module in evaluation mode. This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc. This is equivalent with self.train(False). Returns
self Return type
Module | |
doc_7516 |
Unsupervised Wiener-Hunt deconvolution. Return the deconvolution with a Wiener-Hunt approach, where the hyperparameters are automatically estimated. The algorithm is a stochastic iterative process (Gibbs sampler) described in the reference below. See also wiener function. Parameters
image(M, N) ndarray
The inpu... | |
doc_7517 | Set the default pixel size in dots per inch for the module set_default_resolution([resolution]) Set the default pixel size, in dots per inch, for the module. If the optional argument is omitted or zero the resolution is reset to 72 DPI. | |
doc_7518 | bytearray.find(sub[, start[, end]])
Return the lowest index in the data where the subsequence sub is found, such that sub is contained in the slice s[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 if sub is not found. The subsequence to search for may be any bytes-like ob... | |
doc_7519 |
Do nothing and return the estimator unchanged. This method is just there to implement the usual API and hence work in pipelines. Parameters
XIgnored
yIgnored
Returns
selfobject | |
doc_7520 | See Migration guide for more details. tf.compat.v1.raw_ops.FFT3D
tf.raw_ops.FFT3D(
input, name=None
)
Computes the 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 tensor.
nam... | |
doc_7521 | '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_7522 | Returns a three-value tuple containing the name of the cipher being used, the version of the SSL protocol that defines its use, and the number of secret bits being used. If no connection has been established, returns None. | |
doc_7523 | tf.compat.v1.variable_scope(
name_or_scope, default_name=None, values=None, initializer=None,
regularizer=None, caching_device=None, partitioner=None, custom_getter=None,
reuse=None, dtype=None, use_resource=None, constraint=None,
auxiliary_name_scope=True
)
This context manager validates that the (opt... | |
doc_7524 |
Least-squares fit of a polynomial to data. Return the coefficients of a polynomial of degree deg that is the least squares fit to the data values y given at points x. If y is 1-D the returned coefficients will also be 1-D. If y is 2-D multiple fits are done, one for each column of y, and the resulting coefficients ar... | |
doc_7525 | Set by set_memlimit() as the memory limit for big memory tests. Limited by MAX_Py_ssize_t. | |
doc_7526 |
Set multiple properties at once. Supported properties are
Property Description
UVC 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 list of b... | |
doc_7527 |
A unicode string. When used in arrays, this type strips trailing null codepoints. Unlike the builtin str, this supports the Buffer Protocol, exposing its contents as UCS4: >>> m = memoryview(np.str_("abc"))
>>> m.format
'3w'
>>> m.tobytes()
b'a\x00\x00\x00b\x00\x00\x00c\x00\x00\x00'
Character code
'U' Alias
nump... | |
doc_7528 | class contextlib.AbstractContextManager
An abstract base class for classes that implement object.__enter__() and object.__exit__(). A default implementation for object.__enter__() is provided which returns self while object.__exit__() is an abstract method which by default returns None. See also the definition of Con... | |
doc_7529 | See Migration guide for more details. tf.compat.v1.raw_ops.IsFinite
tf.raw_ops.IsFinite(
x, name=None
)
Example: x = tf.constant([5.0, 4.8, 6.8, np.inf, np.nan])
tf.math.is_finite(x) ==> [True, True, True, False, False]
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float... | |
doc_7530 | '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_7531 | An optional method which, when called, should invalidate any internal cache used by the finder. Used by PathFinder.invalidate_caches() when invalidating the caches of all cached finders. | |
doc_7532 | tf.data.experimental.make_batched_features_dataset(
file_pattern, batch_size, features, reader=None, label_key=None,
reader_args=None, num_epochs=None, shuffle=True, shuffle_buffer_size=10000,
shuffle_seed=None, prefetch_buffer_size=None, reader_num_threads=None,
parser_num_threads=None, sloppy_ordering... | |
doc_7533 | list(sequence)
Create a shared list object and return a proxy for it. | |
doc_7534 |
Description of the Tool. str: Tooltip used if the Tool is included in a Toolbar. | |
doc_7535 | tf.compat.v1.train.maybe_shuffle_batch(
tensors, batch_size, capacity, min_after_dequeue, keep_input, num_threads=1,
seed=None, enqueue_many=False, shapes=None, allow_smaller_final_batch=False,
shared_name=None, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instr... | |
doc_7536 |
Save the current figure. Call signature: savefig(fname, *, dpi='figure', format=None, metadata=None,
bbox_inches=None, pad_inches=0.1,
facecolor='auto', edgecolor='auto',
backend=None, **kwargs
)
The available output formats depend on the backend being used. Parameters
fnamestr or ... | |
doc_7537 | See Migration guide for more details. tf.compat.v1.TypeSpec, tf.compat.v1.data.experimental.Structure A tf.TypeSpec provides metadata describing an object accepted or returned by TensorFlow APIs. Concrete subclasses, such as tf.TensorSpec and tf.RaggedTensorSpec, are used to describe different value types. For example... | |
doc_7538 | Stop on the next line in or below the given frame. | |
doc_7539 | Set the priority mask to maskpri and return the previous mask value. Calls to syslog() with a priority level not set in maskpri are ignored. The default is to log all priorities. The function LOG_MASK(pri) calculates the mask for the individual priority pri. The function LOG_UPTO(pri) calculates the mask for all priori... | |
doc_7540 | Returns a new tensor with the signs of the elements of input. outi=sgn(inputi)\text{out}_{i} = \operatorname{sgn}(\text{input}_{i})
Parameters
input (Tensor) – the input tensor. Keyword Arguments
out (Tensor, optional) – the output tensor. Example: >>> a = torch.tensor([0.7, -1.2, 0., 2.3])
>>> a
tensor([ 0.7... | |
doc_7541 | The impurity-based feature importances. The higher, the more important the feature. The importance of a feature is computed as the (normalized) total reduction of the criterion brought by that feature. It is also known as the Gini importance. Warning: impurity-based feature importances can be misleading for high cardin... | |
doc_7542 | URL of the resource retrieved, commonly used to determine if a redirect was followed. | |
doc_7543 | tf.compat.v1.summary.audio(
name, tensor, sample_rate, max_outputs=3, collections=None, family=None
)
The summary has up to max_outputs summary values containing audio. The audio is built from tensor which must be 3-D with shape [batch_size, frames, channels] or 2-D with shape [batch_size, frames]. The values are ... | |
doc_7544 | place a new event on the queue post(Event) -> None Places the given event at the end of the event queue. This is usually used for placing pygame.USEREVENT events on the queue. Although any type of event can be placed, if using the system event types your program should be sure to create the standard attributes with a... | |
doc_7545 | Receives a “chunk” of data from the file upload. raw_data is a bytestring containing the uploaded data. start is the position in the file where this raw_data chunk begins. The data you return will get fed into the subsequent upload handlers’ receive_data_chunk methods. In this way, one handler can be a “filter” for oth... | |
doc_7546 |
Return an Index with entries denoting the length of each Interval in the IntervalArray. | |
doc_7547 | Alias for abs() | |
doc_7548 |
Return the picking behavior of the artist. The possible values are described in set_picker. See also
set_picker, pickable, pick | |
doc_7549 | Return a new sorted list from the items in iterable. Has two optional arguments which must be specified as keyword arguments. key specifies a function of one argument that is used to extract a comparison key from each element in iterable (for example, key=str.lower). The default value is None (compare the elements dire... | |
doc_7550 | See Migration guide for more details. tf.compat.v1.raw_ops.LegacyParallelInterleaveDatasetV2
tf.raw_ops.LegacyParallelInterleaveDatasetV2(
input_dataset, other_arguments, cycle_length, block_length,
buffer_output_elements, prefetch_input_elements, f, output_types, output_shapes,
deterministic='default', n... | |
doc_7551 | Set the maximum time in milliseconds that can elapse between press and release events in order for them to be recognized as a click, and return the previous interval value. The default value is 200 msec, or one fifth of a second. | |
doc_7552 | The tag to mark the serialized object with. If None, this tag is only used as an intermediate step during tagging. | |
doc_7553 |
Dtype for data stored in SparseArray. This dtype implements the pandas ExtensionDtype interface. Parameters
dtype:str, ExtensionDtype, numpy.dtype, type, default numpy.float64
The dtype of the underlying array storing the non-fill value values.
fill_value:scalar, optional
The scalar value not stored in the ... | |
doc_7554 |
Add data files to configuration data_files. Parameters
filessequence
Argument(s) can be either 2-sequence (<datadir prefix>,<path to data file(s)>) paths to data files where python datadir prefix defaults to package dir. Notes The form of each element of the files sequence is very flexible allowing many c... | |
doc_7555 | Tells Django that this expression can be referenced in QuerySet.filter(). Defaults to True. | |
doc_7556 |
Return the (x, y) unitless position of the text. | |
doc_7557 |
Compute the truth value of NOT x element-wise. Parameters
xarray_like
Logical NOT is applied to the elements of x.
outndarray, None, or tuple of ndarray and None, optional
A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a f... | |
doc_7558 | This decorator forces a view to send the CSRF cookie. | |
doc_7559 |
Stop the timer. | |
doc_7560 | '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_7561 | Boolean. Designates that this user has all permissions without explicitly assigning them. | |
doc_7562 |
Alias for get_linestyle. | |
doc_7563 | Play the SystemQuestion sound. | |
doc_7564 |
Return the spine transform. | |
doc_7565 | See Migration guide for more details. tf.compat.v1.raw_ops.MatrixSolve
tf.raw_ops.MatrixSolve(
matrix, rhs, adjoint=False, name=None
)
Matrix is a tensor of shape [..., M, M] whose inner-most 2 dimensions form square matrices. Rhs is a tensor of shape [..., M, K]. The output is a tensor shape [..., M, K]. If adj... | |
doc_7566 | cufft_plan_cache caches the cuFFT plans
size
A readonly int that shows the number of plans currently in the cuFFT plan cache.
max_size
A int that controls cache capacity of cuFFT plan.
clear()
Clears the cuFFT plan cache. | |
doc_7567 | Remove and return an element from the right side of the deque. If no elements are present, raises an IndexError. | |
doc_7568 | See torch.isfinite() | |
doc_7569 | See Migration guide for more details. tf.compat.v1.data.experimental.parse_example_dataset
tf.data.experimental.parse_example_dataset(
features, num_parallel_calls=1, deterministic=None
)
Parses a number of serialized Example protos given in serialized. We refer to serialized as a batch with batch_size many entr... | |
doc_7570 | Sets the target handler for this handler. | |
doc_7571 |
Evaluates the decision function for the samples in X. Parameters
Xarray-like of shape (n_samples, n_features)
Returns
Xndarray of shape (n_samples, n_classes * (n_classes-1) / 2)
Returns the decision function of the sample for each class in the model. If decision_function_shape=’ovr’, the shape is (n_samp... | |
doc_7572 |
Like Artist.get_window_extent, but includes any clipping. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns
Bbox
The enclosing bounding box (in figure pixel coordinates). | |
doc_7573 | Reload templates when they are changed. If not set, it will be enabled in debug mode. Default: None | |
doc_7574 | Log the exc_info tuple in the server log. exc_info is a (type, value,
traceback) tuple. The default implementation simply writes the traceback to the request’s wsgi.errors stream and flushes it. Subclasses can override this method to change the format or retarget the output, mail the traceback to an administrator, or w... | |
doc_7575 | tf.nn.fractional_max_pool(
value, pooling_ratio, pseudo_random=False, overlapping=False, seed=0, name=None
)
Fractional max pooling is slightly different than regular max pooling. In regular max pooling, you downsize an input set by taking the maximum value of smaller N x N subsections of the set (often 2x2), and ... | |
doc_7576 | The full name of a template to display after logging the user out. Defaults to registration/logged_out.html. | |
doc_7577 |
Bases: matplotlib.container.Container Container for the artists of bar plots (e.g. created by Axes.bar). The container can be treated as a tuple of the patches themselves. Additionally, you can access these and further parameters by the attributes. Attributes
patcheslist of Rectangle
The artists of the bars.
... | |
doc_7578 | See Migration guide for more details. tf.compat.v1.raw_ops.WriteScalarSummary
tf.raw_ops.WriteScalarSummary(
writer, step, tag, value, name=None
)
Writes scalar value at step with tag using summary writer.
Args
writer A Tensor of type resource.
step A Tensor of type int64.
tag A Tensor of ty... | |
doc_7579 | Represents the C 16-bit unsigned int datatype. Usually an alias for c_ushort. | |
doc_7580 |
Enhance contrast of an image. This replaces each pixel by the local maximum if the pixel gray value is closer to the local maximum than the local minimum. Otherwise it is replaced by the local minimum. Parameters
image([P,] M, N) ndarray (uint8, uint16)
Input image.
selemndarray
The neighborhood expressed a... | |
doc_7581 | See Migration guide for more details. tf.compat.v1.estimator.EstimatorSpec
tf.estimator.EstimatorSpec(
mode, predictions=None, loss=None, train_op=None, eval_metric_ops=None,
export_outputs=None, training_chief_hooks=None, training_hooks=None,
scaffold=None, evaluation_hooks=None, prediction_hooks=None
)
... | |
doc_7582 |
The number of days in the month. | |
doc_7583 |
Set the colormap for luminance data. Parameters
cmapColormap or str or None | |
doc_7584 |
Linear least squares with l2 regularization. Minimizes the objective function: ||y - Xw||^2_2 + alpha * ||w||^2_2
This model solves a regression model where the loss function is the linear least squares function and regularization is given by the l2-norm. Also known as Ridge Regression or Tikhonov regularization. Th... | |
doc_7585 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizeAndDequantizeV4Grad
tf.raw_ops.QuantizeAndDequantizeV4Grad(
gradients, input, input_min, input_max, axis=-1, name=None
)
Returns a gradient of 1 for inputs that are within the quantization range, or 0 otherwise.
Args
gradients A Tensor. ... | |
doc_7586 |
Clear the figure -- synonym for clf. | |
doc_7587 |
Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. See also char.istitle | |
doc_7588 |
Return the mapping parameters. The returned values define a linear map off + scl*x that is applied to the input arguments before the series is evaluated. The map depends on the domain and window; if the current domain is equal to the window the resulting map is the identity. If the coefficients of the series instance... | |
doc_7589 | See Migration guide for more details. tf.compat.v1.raw_ops.UnwrapDatasetVariant
tf.raw_ops.UnwrapDatasetVariant(
input_handle, name=None
)
Args
input_handle A Tensor of type variant.
name A name for the operation (optional).
Returns A Tensor of type variant. | |
doc_7590 | bytearray.isalpha()
Return True if all bytes in the sequence are alphabetic ASCII characters and the sequence is not empty, False otherwise. Alphabetic ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'. For example: >>> b'ABCabc'.isalpha()
True
>>> b'ABCabc... | |
doc_7591 |
IEEE 754 floating point representation of Not a Number (NaN). Returns y : A floating point representation of Not a Number. See Also isnan : Shows which elements are Not a Number. isfinite : Shows which elements are finite (not one of Not a Number, positive infinity and negative infinity) Notes NumPy uses the IEEE Sta... | |
doc_7592 |
Return specified diagonals. In NumPy 1.9 the returned array is a read-only view instead of a copy as in previous NumPy versions. In a future version the read-only restriction will be removed. Refer to numpy.diagonal for full documentation. See also numpy.diagonal
equivalent function | |
doc_7593 |
Truncate series to the given degree. Reduce the degree of the series to deg by discarding the high order terms. If deg is greater than the current degree a copy of the current series is returned. This can be useful in least squares where the coefficients of the high degree terms may be very small. New in version 1.5... | |
doc_7594 |
Create a data type object. A numpy array is homogeneous, and contains elements described by a dtype object. A dtype object can be constructed from different combinations of fundamental numeric types. Parameters
dtype
Object to be converted to a data type object.
alignbool, optional
Add padding to the fields t... | |
doc_7595 | See Migration guide for more details. tf.compat.v1.raw_ops.ReaderReset
tf.raw_ops.ReaderReset(
reader_handle, name=None
)
Args
reader_handle A Tensor of type mutable string. Handle to a Reader.
name A name for the operation (optional).
Returns The created Operation. | |
doc_7596 |
Return the tight bounding box of the axes, including axis and their decorators (xlabel, title, etc). Artists that have artist.set_in_layout(False) are not included in the bbox. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer())
bbox_extra_a... | |
doc_7597 | This class implements the ContentHandler interface by writing SAX events back into an XML document. In other words, using an XMLGenerator as the content handler will reproduce the original document being parsed. out should be a file-like object which will default to sys.stdout. encoding is the encoding of the output st... | |
doc_7598 | Registers a backward hook on the module. This function is deprecated in favor of nn.Module.register_full_backward_hook() and the behavior of this function will change in future versions. Returns
a handle that can be used to remove the added hook by calling handle.remove() Return type
torch.utils.hooks.RemovableHand... | |
doc_7599 |
Minimum Mean Square Error (Wiener) inverse filter. Parameters
data(M,N) ndarray
Input data.
Kfloat or (M,N) ndarray
Ratio between power spectrum of noise and undegraded image.
impulse_responsecallable f(r, c, **filter_params)
Impulse response of the filter. See LPIFilter2D.__init__.
filter_paramsdict ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.