_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_5800
Sets the current time zone. The timezone argument must be an instance of a tzinfo subclass or a time zone name.
doc_5801
A Popen creationflags parameter to specify that a new process will not create a window. New in version 3.7.
doc_5802
Returns a ModelForm class for use in the admin add and change views, see add_view() and change_view(). The base implementation uses modelform_factory() to subclass form, modified by attributes such as fields and exclude. So, for example, if you wanted to offer additional fields to superusers, you could swap in a differ...
doc_5803
Set multiple properties at once. Supported properties 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 alpha float or 2D array-like or None animated bool array array-like clim (vmin: float, vmax: float) clip_box B...
doc_5804
See MultiLabelSoftMarginLoss for details.
doc_5805
Sets the strategy for sharing CPU tensors. Parameters new_strategy (str) – Name of the selected strategy. Should be one of the values returned by get_all_sharing_strategies().
doc_5806
Call self as a function.
doc_5807
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_5808
class imaplib.IMAP4(host='', port=IMAP4_PORT, timeout=None) This class implements the actual IMAP4 protocol. The connection is created and protocol version (IMAP4 or IMAP4rev1) is determined when the instance is initialized. If host is not specified, '' (the local host) is used. If port is omitted, the standard IMAP4...
doc_5809
Alias for set_linewidth.
doc_5810
See Migration guide for more details. tf.compat.v1.keras.layers.deserialize tf.keras.layers.deserialize( config, custom_objects=None ) Arguments config dict of the form {'class_name': str, 'config': dict} custom_objects dict mapping class names (or function names) of custom (non-Keras) objects to ...
doc_5811
See Migration guide for more details. tf.compat.v1.app.flags.adopt_module_key_flags tf.compat.v1.flags.adopt_module_key_flags( module, flag_values=_flagvalues.FLAGS ) Args module module, the module object from which all key flags will be declared as key flags to the current module. flag_values Fla...
doc_5812
This method is called to process a named character reference of the form &name; (e.g. &gt;), where name is a general entity reference (e.g. 'gt'). This method is never called if convert_charrefs is True.
doc_5813
Return True if the object is a Python generator function. Changed in version 3.8: Functions wrapped in functools.partial() now return True if the wrapped function is a Python generator function.
doc_5814
See Migration guide for more details. tf.compat.v1.estimator.experimental.stop_if_higher_hook tf.estimator.experimental.stop_if_higher_hook( estimator, metric_name, threshold, eval_dir=None, min_steps=0, run_every_secs=60, run_every_steps=None ) Usage example: estimator = ... # Hook to stop training if accur...
doc_5815
Disables denormal floating numbers on CPU. Returns True if your system supports flushing denormal numbers and it successfully configures flush denormal mode. set_flush_denormal() is only supported on x86 architectures supporting SSE3. Parameters mode (bool) – Controls whether to enable flush denormal mode or not Ex...
doc_5816
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_5817
A bool indicating whether the memory is contiguous. New in version 3.3.
doc_5818
Fills the input Tensor with values according to the method described in Understanding the difficulty of training deep feedforward neural networks - Glorot, X. & Bengio, Y. (2010), using a uniform distribution. The resulting tensor will have values sampled from U(−a,a)\mathcal{U}(-a, a) where a=gain×6fan_in+fan_outa...
doc_5819
Set list_filter to activate filters in the right sidebar of the change list page of the admin, as illustrated in the following screenshot: list_filter should be a list or tuple of elements, where each element should be of one of the following types: a field name, where the specified field should be either a BooleanF...
doc_5820
Iterate over (column name, Series) pairs. Iterates over the DataFrame columns, returning a tuple with the column name and the content as a Series. Yields label:object The column names for the DataFrame being iterated over. content:Series The column entries belonging to each label, as a Series. See also...
doc_5821
Return a short string version of the tick value. Defaults to the position-independent long value.
doc_5822
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_5823
Transform X to a cluster-distance space. In the new space, each dimension is the distance to the cluster centers. Note that even if X is sparse, the array returned by transform will typically be dense. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) New data to transform. Returns ...
doc_5824
Plot coercing the axis to treat floats as dates. Discouraged This method exists for historic reasons and will be deprecated in the future. datetime-like data should directly be plotted using plot. If you need to plot plain numeric data as Matplotlib date format or need to set a timezone, call ax.xaxis.axis_date / ...
doc_5825
Identical to the pack_into() function, using the compiled format.
doc_5826
CompilerFlag) where, normally, OptionalRelease is less than MandatoryRelease, and both are 5-tuples of the same form as sys.version_info: (PY_MAJOR_VERSION, # the 2 in 2.1.0a3; an int PY_MINOR_VERSION, # the 1; an int PY_MICRO_VERSION, # the 0; an int PY_RELEASE_LEVEL, # "alpha", "beta", "can...
doc_5827
Return a url if one is set, None otherwise.
doc_5828
See Migration guide for more details. tf.compat.v1.linalg.set_diag, tf.compat.v1.matrix_set_diag tf.linalg.set_diag( input, diagonal, name='set_diag', k=0, align='RIGHT_LEFT' ) Given input and diagonal, this operation returns a tensor with the same shape and values as input, except for the specified diagonals of...
doc_5829
Concatenate a sequence of arrays along the given axis. Parameters arrayssequence of array_like The arrays must have the same shape, except in the dimension corresponding to axis (the first, by default). axisint, optional The axis along which the arrays will be joined. Default is 0. Returns resultMaske...
doc_5830
returns True if the fastevent module is currently initialized get_init() -> bool Returns True if the pygame.fastevent module is currently initialized.
doc_5831
Return the position of x in the deque (at or after index start and before index stop). Returns the first match or raises ValueError if not found. New in version 3.5.
doc_5832
The Form geometry manager based on attachment rules for all Tk widgets.
doc_5833
Packs a fixed length list (array) of homogeneous items. n is the length of the list; it is not packed into the buffer, but a ValueError exception is raised if len(array) is not equal to n. As above, pack_item is the function used to pack each element.
doc_5834
HostAxes alias of mpl_toolkits.axes_grid1.parasite_axes.AxesHostAxes HostAxesBase(*args, **kwargs) ParasiteAxes alias of mpl_toolkits.axes_grid1.parasite_axes.AxesParasite ParasiteAxesAuxTrans alias of mpl_toolkits.axes_grid1.parasite_axes.AxesParasiteParasiteAuxTrans ParasiteAxesAuxTransBase(parent_axes, ...[...
doc_5835
See Migration guide for more details. tf.compat.v1.raw_ops.Invert tf.raw_ops.Invert( x, name=None ) Flip each bit of supported types. For example, type int8 (decimal 2) binary 00000010 becomes (decimal -3) binary 11111101. This operation is performed on each element of the tensor argument x. Example: import tens...
doc_5836
What environment the app is running in. Flask and extensions may enable behaviors based on the environment, such as enabling debug mode. The env attribute maps to this config key. This is set by the FLASK_ENV environment variable and may not behave as expected if set in code. Do not enable development when deploying in...
doc_5837
tf.compat.v1.nn.conv2d_backprop_input( input_sizes, filter=None, out_backprop=None, strides=None, padding=None, use_cudnn_on_gpu=True, data_format='NHWC', dilations=[1, 1, 1, 1], name=None, filters=None ) Args input_sizes A Tensor of type int32. An integer vector representing the shape of input, w...
doc_5838
In BytesIO, this is the same as read(). Changed in version 3.7: The size argument is now optional.
doc_5839
Return log-probability estimates for the test vector X. Parameters Xarray-like of shape (n_samples, n_features) Returns Carray-like of shape (n_samples, n_classes) Returns the log-probability of the samples for each class in the model. The columns correspond to the classes in sorted order, as they appear ...
doc_5840
Performs LpL_p normalization of inputs over specified dimension. For a tensor input of sizes (n0,...,ndim,...,nk)(n_0, ..., n_{dim}, ..., n_k) , each ndimn_{dim} -element vector vv along dimension dim is transformed as v=vmax⁡(∥v∥p,ϵ).v = \frac{v}{\max(\lVert v \rVert_p, \epsilon)}. With the default arguments i...
doc_5841
Closes the socket.
doc_5842
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_5843
Restores the pre-test environment.
doc_5844
Send the contents of a file to the client. The first argument can be a file path or a file-like object. Paths are preferred in most cases because Werkzeug can manage the file and get extra information from the path. Passing a file-like object requires that the file is opened in binary mode, and is mostly useful when bu...
doc_5845
Compute open, high, low and close values of a group, excluding missing values. For multiple groupings, the result index will be a MultiIndex Returns DataFrame Open, high, low and close values within each group. See also Series.groupby Apply a function groupby to a Series. DataFrame.groupby Apply a functi...
doc_5846
Re-weight raw Minimum Covariance Determinant estimates. Re-weight observations using Rousseeuw’s method (equivalent to deleting outlying observations from the data set before computing location and covariance estimates) described in [RVDriessen]. Parameters dataarray-like of shape (n_samples, n_features) The da...
doc_5847
tf.experimental.numpy.unicode_( *args, **kwargs ) str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the...
doc_5848
Subclass of SubprocessError, raised when a process run by check_call() or check_output() returns a non-zero exit status. returncode Exit status of the child process. If the process exited due to a signal, this will be the negative signal number. cmd Command that was used to spawn the child process. output...
doc_5849
Number of seconds (>= 0 and less than 1 day) for each element.
doc_5850
Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
doc_5851
time_raised = models.DateTimeField(default=timezone.now, editable=False) reference = models.CharField(unique=True, max_length=20) description = models.TextField() Here's a basic ModelSerializer that we can use for creating or updating instances of CustomerReportRecord: class CustomerReportSerializer(serial...
doc_5852
A base class that provides common behavior for all date-based views. There won’t normally be a reason to instantiate BaseDateListView; instantiate one of the subclasses instead. While this view (and its subclasses) are executing, self.object_list will contain the list of objects that the view is operating upon, and sel...
doc_5853
Set multiple properties at once. Supported properties 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 alpha scalar or None angle float animated bool antialiased or aa bool or None capstyle CapStyle or {'butt', 'p...
doc_5854
Returns either a new reference to self if dtype is not given or a new array of provided data type if dtype is different from the current dtype of the array.
doc_5855
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_5856
See Migration guide for more details. tf.compat.v1.raw_ops.TensorScatterMin tf.raw_ops.TensorScatterMin( tensor, indices, updates, name=None ) Args tensor A Tensor. Tensor to update. indices A Tensor. Must be one of the following types: int32, int64. Index tensor. updates A Tensor. Must have...
doc_5857
Represents a parsed URL in bytes. Create new instance of _URLTuple(scheme, netloc, path, query, fragment) Parameters scheme (str) – netloc (str) – path (str) – query (str) – fragment (str) – decode(charset='utf-8', errors='replace') Decodes the URL to a tuple made out of strings. The charset is only...
doc_5858
Return a list of the child Artists of this Artist.
doc_5859
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_5860
An abstract method that is to return the value of __file__ for the specified module. If no path is available, ImportError is raised. If source code is available, then the method should return the path to the source file, regardless of whether a bytecode was used to load the module. Changed in version 3.4: Raises Impor...
doc_5861
Alias for set_linewidth.
doc_5862
Returns whether the kernel is stationary.
doc_5863
The delete_queryset() method is given the HttpRequest and a QuerySet of objects to be deleted. Override this method to customize the deletion process for the “delete selected objects” action.
doc_5864
Return a new object with updated flags. Parameters allows_duplicate_labels:bool, optional Whether the returned object allows duplicate labels. Returns Series or DataFrame The same type as the caller. See also DataFrame.attrs Global metadata applying to this dataset. DataFrame.flags Global flags a...
doc_5865
Whether the artist is 'stale' and needs to be re-drawn for the output to match the internal state of the artist.
doc_5866
Bases: object Parameters filewritable text file-like object close(id)[source] Close open elements, up to (and including) the element identified by the given identifier. Parameters id Element identifier, as returned by the start() method. comment(comment)[source] Add a comment to the output s...
doc_5867
Expat was not able to allocate memory internally.
doc_5868
The name of the uploaded file (e.g. my_file.txt).
doc_5869
Predict class log-probabilities of the input samples X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csr_matrix. Returns probandarray of shape (n_samples, n_cl...
doc_5870
This class lives at django.template.Template. The constructor takes one argument — the raw template code: from django.template import Template template = Template("My name is {{ my_name }}.")
doc_5871
Fit X into an embedded space. Parameters Xndarray of shape (n_samples, n_features) or (n_samples, n_samples) If the metric is ‘precomputed’ X must be a square distance matrix. Otherwise it contains a sample per row. If the method is ‘exact’, X may be a sparse matrix of type ‘csr’, ‘csc’ or ‘coo’. If the method ...
doc_5872
See Migration guide for more details. tf.compat.v1.sparse.eye tf.sparse.eye( num_rows, num_columns=None, dtype=tf.dtypes.float32, name=None ) Args num_rows Non-negative integer or int32 scalar tensor giving the number of rows in the resulting matrix. num_columns Optional non-negative integer or in...
doc_5873
See Migration guide for more details. tf.compat.v1.estimator.export.ServingInputReceiver tf.estimator.export.ServingInputReceiver( features, receiver_tensors, receiver_tensors_alternatives=None ) Attributes features A Tensor, SparseTensor, or dict of string or int to Tensor or SparseTensor, specifying t...
doc_5874
A condition variable: an alias for threading.Condition. If lock is specified then it should be a Lock or RLock object from multiprocessing. Changed in version 3.3: The wait_for() method was added.
doc_5875
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_5876
Bases: torch.distributions.distribution.Distribution Creates a Negative Binomial distribution, i.e. distribution of the number of successful independent and identical Bernoulli trials before total_count failures are achieved. The probability of failure of each Bernoulli trial is probs. Parameters total_count (flo...
doc_5877
Buffer the bytes data for transmission to the client. It’s okay if this method actually transmits the data; BaseHandler just separates write and flush operations for greater efficiency when the underlying system actually has such a distinction.
doc_5878
Interface representing a bidirectional transport, such as a TCP connection. The user does not instantiate a transport directly; they call a utility function, passing it a protocol factory and other information necessary to create the transport and protocol. Instances of the Transport class are returned from or used by ...
doc_5879
Return a tuple containing names of globals in this function.
doc_5880
See Migration guide for more details. tf.compat.v1.io.gfile.makedirs tf.io.gfile.makedirs( path ) It succeeds if path already exists and is writable. Args path string, name of the directory to be created Raises errors.OpError If the operation fails.
doc_5881
Combine colormapped data values with an illumination intensity map (a.k.a. "hillshade") of the values. Parameters data2D array-like The height values used to generate a shaded map. cmapColormap The colormap used to color the data array. Note that this must be a Colormap instance. For example, rather than pa...
doc_5882
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_5883
Alias for set_linestyle.
doc_5884
Return a file-like object, open to file, but read from or written to by the pipeline. Note that only one of 'r', 'w' may be given.
doc_5885
Get Not equal to of dataframe and other, element-wise (binary operator ne). Among flexible wrappers (eq, ne, le, lt, ge, gt) to comparison operators. Equivalent to ==, !=, <=, <, >=, > with support to choose axis (rows or columns) and level for comparison. Parameters other:scalar, sequence, Series, or DataFrame ...
doc_5886
With no arguments, run a full collection. The optional argument generation may be an integer specifying which generation to collect (from 0 to 2). A ValueError is raised if the generation number is invalid. The number of unreachable objects found is returned. The free lists maintained for a number of built-in types are...
doc_5887
Check if the Index only consists of numeric data. Returns bool Whether or not the Index only consists of numeric data. See also is_boolean Check if the Index only consists of booleans. is_integer Check if the Index only consists of integers. is_floating Check if the Index is a floating type. is_object...
doc_5888
Fit the model with X. Parameters Xarray-like of shape (n_samples, n_features) Training data, where n_samples is the number of samples and n_features is the number of features. yIgnored Returns selfobject Returns the instance itself.
doc_5889
Poisson negative log likelihood loss. See PoissonNLLLoss for details. Parameters input – expectation of underlying Poisson distribution. target – random sample target∼Poisson(input)target \sim \text{Poisson}(input) . log_input – if True the loss is computed as exp⁡(input)−target∗input\exp(\text{input}) - \text{...
doc_5890
See Migration guide for more details. tf.compat.v1.test.Benchmark tf.test.Benchmark() Methods evaluate View source evaluate( tensors ) Evaluates tensors and returns numpy values. Args tensors A Tensor or a nested list/tuple of Tensors. Returns tensors numpy values. is_abstract View source...
doc_5891
Called when the child process has exited.
doc_5892
class Manager A Manager is the interface through which database query operations are provided to Django models. At least one Manager exists for every model in a Django application. The way Manager classes work is documented in Making queries; this document specifically touches on model options that customize Manager ...
doc_5893
Get the matrix for the affine part of this transform.
doc_5894
Return the depth of the decision tree. The depth of a tree is the maximum distance between the root and any leaf. Returns self.tree_.max_depthint The maximum depth of the tree.
doc_5895
Combine two masks with the logical_or operator. The result may be a view on m1 or m2 if the other is nomask (i.e. False). Parameters m1, m2array_like Input masks. copybool, optional If copy is False and one of the inputs is nomask, return a view of the other input mask. Defaults to False. shrinkbool, opti...
doc_5896
Mixin class for all transformers in scikit-learn. Methods fit_transform(X[, y]) Fit to data, then transform it. fit_transform(X, y=None, **fit_params) [source] Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters ...
doc_5897
Check whether other equals self elementwise. When either of the elements is masked, the result is masked as well, but the underlying boolean data are still set, with self and other considered equal if both are masked, and unequal otherwise. For structured arrays, all fields are combined, with masked values ignored. T...
doc_5898
Applies a 1D power-average pooling over an input signal composed of several input planes. On each window, the function computed is: f(X)=∑x∈Xxppf(X) = \sqrt[p]{\sum_{x \in X} x^{p}} At p = ∞\infty , one gets Max Pooling At p = 1, one gets Sum Pooling (which is proportional to Average Pooling) Note If the sum to...
doc_5899
Returns a clone of self with given hyperparameters theta. Parameters thetandarray of shape (n_dims,) The hyperparameters