_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_24800 | class sklearn.mixture.BayesianGaussianMixture(*, n_components=1, covariance_type='full', tol=0.001, reg_covar=1e-06, max_iter=100, n_init=1, init_params='kmeans', weight_concentration_prior_type='dirichlet_process', weight_concentration_prior=None, mean_precision_prior=None, mean_prior=None, degrees_of_freedom_prior=No... | |
doc_24801 | See Migration guide for more details. tf.compat.v1.raw_ops.SkipDataset
tf.raw_ops.SkipDataset(
input_dataset, count, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant.
count A Tensor of type int64. A scalar representing the number of elements from the input_datas... | |
doc_24802 | Compiles the given template code and returns a Template object. | |
doc_24803 | tf.summary.should_record_summaries() | |
doc_24804 | Formats the specified exception information (a standard exception tuple as returned by sys.exc_info()) as a string. This default implementation just uses traceback.print_exception(). The resulting string is returned. | |
doc_24805 | tf.keras.applications.resnet.ResNet152 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.ResNet152, tf.compat.v1.keras.applications.resnet.ResNet152
tf.keras.applications.ResNet152(
include_top=True, weights='imagenet', input_tensor=None,
input_shape=None, pool... | |
doc_24806 | Prevent deletion of the referenced object by raising ProtectedError, a subclass of django.db.IntegrityError. | |
doc_24807 | Returns the square of the correlation coefficient as a float, or default if there aren’t any matching rows. | |
doc_24808 |
Set the agg filter. Parameters
filter_funccallable
A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array. | |
doc_24809 | GroupBy.__iter__() Groupby iterator.
GroupBy.groups Dict {group name -> group labels}.
GroupBy.indices Dict {group name -> group indices}.
GroupBy.get_group(name[, obj]) Construct DataFrame from group with provided name.
Grouper(*args, **kwargs) A Grouper allows the user to specify a groupby instruction... | |
doc_24810 | Escape '&', '<', and '>' in a string of data. You can escape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. The characters '&', '<' and '>' are always escaped, even if entities is provided... | |
doc_24811 | Remove an attribute by name. If there is no matching attribute, a NotFoundErr is raised. | |
doc_24812 |
Update the location of children if necessary and draw them to the given renderer. | |
doc_24813 | Acquire a lock, blocking or non-blocking. When invoked with the block argument set to True, block until the lock is in an unlocked state (not owned by any process or thread) unless the lock is already owned by the current process or thread. The current process or thread then takes ownership of the lock (if it does not ... | |
doc_24814 | Returns the minimum value of the given expression. Default alias: <field>__min
Return type: same as input field, or output_field if supplied | |
doc_24815 | New in Django 3.2. Optional. The database collation name of the field. Note Collation names are not standardized. As such, this will not be portable across multiple database backends. Oracle Oracle supports collations only when the MAX_STRING_SIZE database initialization parameter is set to EXTENDED. | |
doc_24816 | This method is not defined in BaseHandler, but subclasses should override it if they intend to provide a catch-all for otherwise unhandled HTTP errors. It will be called automatically by the OpenerDirector getting the error, and should not normally be called in other circumstances. req will be a Request object, fp will... | |
doc_24817 |
Returns an array containing the same data with a new shape. Refer to MaskedArray.reshape for full documentation. See also MaskedArray.reshape
equivalent function | |
doc_24818 |
Dump a pickle of the array to the specified file. The array can be read back with pickle.load or numpy.load. Parameters
filestr or Path
A string naming the dump file. Changed in version 1.17.0: pathlib.Path objects are now accepted. | |
doc_24819 | + 0.1 + 0.1 - 0.3 is exactly equal to zero. In binary floating point, the result is 5.5511151231257827e-017. While near to zero, the differences prevent reliable equality testing and differences can accumulate. For this reason, decimal is preferred in accounting applications which have strict equality invariants. The d... | |
doc_24820 | See torch.bitwise_not() | |
doc_24821 | Get the current window caption get_caption() -> (title, icontitle) Returns the title and icontitle for the display Surface. These will often be the same value. | |
doc_24822 |
Create a new figure manager instance for the given figure. | |
doc_24823 | >>> g = GeoIP2()
>>> g.country('google.com')
{'country_code': 'US', 'country_name': 'United States'}
>>> g.city('72.14.207.99')
{'city': 'Mountain View',
'continent_code': 'NA',
'continent_name': 'North America',
'country_code': 'US',
'country_name': 'United States',
'dma_code': 807,
'is_in_european_union': False,
'lat... | |
doc_24824 |
Raises an AssertionError if two items are not equal up to significant digits. Note It is recommended to use one of assert_allclose, assert_array_almost_equal_nulp or assert_array_max_ulp instead of this function for more consistent floating point comparisons. Given two numbers, check that they are approximately equ... | |
doc_24825 | Enables workarounds for various bugs present in other SSL implementations. This option is set by default. It does not necessarily set the same flags as OpenSSL’s SSL_OP_ALL constant. New in version 3.2. | |
doc_24826 |
Returns the string representation of the Period, depending on the selected fmt. fmt must be a string containing one or several directives. The method recognizes the same directives as the time.strftime() function of the standard Python distribution, as well as the specific additional directives %f, %F, %q. (formattin... | |
doc_24827 |
Learn model for the data X with variational Bayes method. When learning_method is ‘online’, use mini-batch update. Otherwise, use batch update. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
Document word matrix.
yIgnored
Returns
self | |
doc_24828 |
Bases: matplotlib.patches.ArrowStyle._Curve A simple curve without any arrow head. Parameters
head_lengthfloat, default: 0.4
Length of the arrow head, relative to mutation_scale.
head_widthfloat, default: 0.2
Width of the arrow head, relative to mutation_scale.
widthAfloat, default: 1.0
Width of the bra... | |
doc_24829 | This implementation registers a SIGCHLD signal handler on instantiation. That can break third-party code that installs a custom handler for SIGCHLD signal. The watcher avoids disrupting other code spawning processes by polling every process explicitly on a SIGCHLD signal. There is no limitation for running subprocesses... | |
doc_24830 |
Make a 2D hexagonal binning plot of points x, y. If C is None, the value of the hexagon is determined by the number of points in the hexagon. Otherwise, C specifies values at the coordinate (x[i], y[i]). For each hexagon, these values are reduced using reduce_C_function. Parameters
x, yarray-like
The data posit... | |
doc_24831 | Add a mark with the given id (larger than 0), and the given name at the given position. This method can be called at any time before close(). | |
doc_24832 | Remove a file descriptor being tracked by a polling object. Just like the register() method, fd can be an integer or an object with a fileno() method that returns an integer. Attempting to remove a file descriptor that was never registered causes a KeyError exception to be raised. | |
doc_24833 | An alias for the built-in OSError exception. | |
doc_24834 | Release a semaphore, incrementing the internal counter by n. When it was zero on entry and other threads are waiting for it to become larger than zero again, wake up n of those threads. Changed in version 3.9: Added the n parameter to release multiple waiting threads at once. | |
doc_24835 |
Raise a square matrix to the (integer) power n. For positive integers n, the power is computed by repeated matrix squarings and matrix multiplications. If n == 0, the identity matrix of the same shape as M is returned. If n < 0, the inverse is computed and then raised to the abs(n). Note Stacks of object matrices ar... | |
doc_24836 | Return True if either the real or the imaginary part of x is a NaN, and False otherwise. | |
doc_24837 | html.entities.html5
A dictionary that maps HTML5 named character references 1 to the equivalent Unicode character(s), e.g. html5['gt;'] == '>'. Note that the trailing semicolon is included in the name (e.g. 'gt;'), however some of the names are accepted by the standard even without the semicolon: in this case the nam... | |
doc_24838 | See Migration guide for more details. tf.compat.v1.app.flags.FlagNameConflictsWithMethodError | |
doc_24839 | A string containing an encoded and serialized session dictionary. | |
doc_24840 | See Migration guide for more details. tf.compat.v1.keras.regularizers.serialize
tf.keras.regularizers.serialize(
regularizer
) | |
doc_24841 |
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_24842 |
Return the drawstyle. See also set_drawstyle. | |
doc_24843 | Convert a tagged representation back to the original type. Parameters
value (Dict[str, Any]) – Return type
Any | |
doc_24844 |
Return the values (min, max) that are mapped to the colormap limits. | |
doc_24845 |
Find the horizontal edges of an image using the Scharr transform. Parameters
image2-D array
Image to process.
mask2-D array, optional
An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. ... | |
doc_24846 |
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_24847 | set the current error message set_error(error_msg) -> None SDL maintains an internal error message. This message will usually be given to you when pygame.error() is raised, so this function will rarely be needed. | |
doc_24848 |
Render object to a LaTeX tabular, longtable, or nested table. Requires \usepackage{booktabs}. The output can be copy/pasted into a main LaTeX document or read from an external file with \input{table.tex}. Changed in version 1.0.0: Added caption and label arguments. Changed in version 1.2.0: Added position argument... | |
doc_24849 | Alternative error attach function to the errorhandler() decorator that is more straightforward to use for non decorator usage. Changelog New in version 0.7. Parameters
code_or_exception (Union[Type[Exception], int]) –
f (Callable[[Exception], Union[Response, AnyStr, Dict[str, Any], Generator[AnyStr, None, None]... | |
doc_24850 |
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g... | |
doc_24851 | tf.estimator.DNNEstimator(
head, hidden_units, feature_columns, model_dir=None,
optimizer='Adagrad', activation_fn=tf.nn.relu, dropout=None,
config=None, warm_start_from=None, batch_norm=False
)
Example: sparse_feature_a = sparse_column_with_hash_bucket(...)
sparse_feature_b = sparse_column_with_hash_bucke... | |
doc_24852 |
Predict class or regression value for X. For a classification model, the predicted class for each sample in X is returned. For a regression model, the predicted value based on X is returned. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, it will be conver... | |
doc_24853 | See Migration guide for more details. tf.compat.v1.raw_ops.Greater
tf.raw_ops.Greater(
x, y, name=None
)
Note: math.greater supports broadcasting. More about broadcasting here
Example: x = tf.constant([5, 4, 6])
y = tf.constant([5, 2, 5])
tf.math.greater(x, y) ==> [False, True, True]
x = tf.constant([5, 4, 6]... | |
doc_24854 | See Migration guide for more details. tf.compat.v1.raw_ops.FakeQueue
tf.raw_ops.FakeQueue(
resource, name=None
)
Args
resource A Tensor of type resource.
name A name for the operation (optional).
Returns A Tensor of type mutable string. | |
doc_24855 | Make an iterator that filters elements from data returning only those that have a corresponding element in selectors that evaluates to True. Stops when either the data or selectors iterables has been exhausted. Roughly equivalent to: def compress(data, selectors):
# compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F
... | |
doc_24856 |
Set the artist's clip Bbox. Parameters
clipboxBbox | |
doc_24857 | Return True if the stream can be read from. If False, read() will raise OSError. | |
doc_24858 |
Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate. | |
doc_24859 | The name of this lookup, used to identify it on parsing query expressions. It cannot contain the string "__". | |
doc_24860 |
Get a copy of the iterator in its current state. Examples >>> x = np.arange(10)
>>> y = x + 1
>>> it = np.nditer([x, y])
>>> next(it)
(array(0), array(1))
>>> it2 = it.copy()
>>> next(it2)
(array(1), array(2)) | |
doc_24861 | Upgrade an existing transport-based connection to TLS. Return a new transport instance, that the protocol must start using immediately after the await. The transport instance passed to the start_tls method should never be used again. Parameters:
transport and protocol instances that methods like create_server() and c... | |
doc_24862 | See Migration guide for more details. tf.compat.v1.raw_ops.Equal
tf.raw_ops.Equal(
x, y, incompatible_shape_error=True, name=None
)
Note: Equal supports broadcasting. More about broadcasting here
x = tf.constant([2, 4])
y = tf.constant(2)
tf.math.equal(x, y) ==> array([True, False])
x = tf.constant([2, 4])
y ... | |
doc_24863 | Return a property attribute. fget is a function for getting an attribute value. fset is a function for setting an attribute value. fdel is a function for deleting an attribute value. And doc creates a docstring for the attribute. A typical use is to define a managed attribute x: class C:
def __init__(self):
... | |
doc_24864 | tf.experimental.numpy.divide(
x1, x2
)
Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.divide. | |
doc_24865 | Return a new partial object which when called will behave like func called with the positional arguments args and keyword arguments keywords. If more arguments are supplied to the call, they are appended to args. If additional keyword arguments are supplied, they extend and override keywords. Roughly equivalent to: def... | |
doc_24866 | create new Surface from a string buffer fromstring(string, size, format, flipped=False) -> Surface This function takes arguments similar to pygame.image.tostring(). The size argument is a pair of numbers representing the width and height. Once the new Surface is created you can destroy the string buffer. The size and... | |
doc_24867 | tf.keras.layers.Convolution3DTranspose Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.layers.Conv3DTranspose, tf.compat.v1.keras.layers.Convolution3DTranspose
tf.keras.layers.Conv3DTranspose(
filters, kernel_size, strides=(1, 1, 1), padding='valid',
output_padding=None, ... | |
doc_24868 |
The week ordinal of the year. Deprecated since version 1.1.0. Series.dt.weekofyear and Series.dt.week have been deprecated. Please use Series.dt.isocalendar().week instead. | |
doc_24869 | See Migration guide for more details. tf.compat.v1.raw_ops.MatrixSetDiagV2
tf.raw_ops.MatrixSetDiagV2(
input, diagonal, k, name=None
)
Given input and diagonal, this operation returns a tensor with the same shape and values as input, except for the specified diagonals of the innermost matrices. These will be ove... | |
doc_24870 | Rename the file or directory src to dst. If dst is a directory, OSError will be raised. If dst exists and is a file, it will be replaced silently if the user has permission. The operation may fail if src and dst are on different filesystems. If successful, the renaming will be an atomic operation (this is a POSIX requi... | |
doc_24871 | Loads templates from a Python dictionary. This is useful for testing. This loader takes a dictionary of templates as its first argument: TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'OPTIONS': {
'loaders': [
('django.template.loaders.locmem.Loader', {
... | |
doc_24872 | Convert a packed IP address (a bytes-like object of some number of bytes) to its standard, family-specific string representation (for example, '7.10.0.5' or '5aef:2b::8'). inet_ntop() is useful when a library or network protocol returns an object of type struct in_addr (similar to inet_ntoa()) or struct in6_addr. Suppo... | |
doc_24873 |
Restore the internal state of the masked array, for pickling purposes. state is typically the output of the __getstate__ output, and is a 5-tuple: class name a tuple giving the shape of the data a typecode for the data a binary string for the data a binary string for the mask. | |
doc_24874 |
Deprecated since version 1.21: This decorator is retained for compatibility with the nose testing framework, which is being phased out. Please use the nose2 or pytest frameworks instead. Make function raise SkipTest exception if a given condition is true. If the condition is a callable, it is used at runtime to dyn... | |
doc_24875 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceStridedSliceAssign
tf.raw_ops.ResourceStridedSliceAssign(
ref, begin, end, strides, value, begin_mask=0, end_mask=0, ellipsis_mask=0,
new_axis_mask=0, shrink_axis_mask=0, name=None
)
The values of value are assigned to the positions in the va... | |
doc_24876 |
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | |
doc_24877 | tf.experimental.numpy.trace(
a, offset=0, axis1=0, axis2=1, dtype=None
)
Unsupported arguments: out. See the NumPy documentation for numpy.trace. | |
doc_24878 | Returns the alignment requirements of a ctypes type. obj_or_type must be a ctypes type or instance. | |
doc_24879 |
The day of the datetime. Examples
>>> datetime_series = pd.Series(
... pd.date_range("2000-01-01", periods=3, freq="D")
... )
>>> datetime_series
0 2000-01-01
1 2000-01-02
2 2000-01-03
dtype: datetime64[ns]
>>> datetime_series.dt.day
0 1
1 2
2 3
dtype: int64 | |
doc_24880 | A boolean which is True for server-side sockets and False for client-side sockets. New in version 3.2. | |
doc_24881 |
Return a Numpy representation of the DataFrame. Warning We recommend using DataFrame.to_numpy() instead. Only the values in the DataFrame will be returned, the axes labels will be removed. Returns
numpy.ndarray
The values of the DataFrame. See also DataFrame.to_numpy
Recommended alternative to this metho... | |
doc_24882 |
Bases: object [Deprecated] Notes Deprecated since version 3.4: apply_aspect(position=None)[source]
get_viewlim_mode()[source]
set_viewlim_mode(mode)[source]
update_viewlim()[source]
[Deprecated] Notes Deprecated since version 3.4: | |
doc_24883 |
Update displayed image. This method can be overridden or extended in subclasses and plugins to react to image changes. | |
doc_24884 |
Load a model from a github repo or a local directory. Note: Loading a model is the typical use case, but this can also be used to for loading other objects such as tokenizers, loss functions, etc. If source is 'github', repo_or_dir is expected to be of the form repo_owner/repo_name[:tag_name] with an optional tag/bra... | |
doc_24885 |
Multiply other by self, and return a new masked array. | |
doc_24886 | Should return True if viewing obj is permitted, False otherwise. If obj is None, should return True or False to indicate whether viewing of objects of this type is permitted in general (e.g., False will be interpreted as meaning that the current user is not permitted to view any object of this type). The default implem... | |
doc_24887 | xml.sax.saxutils.escape(data, entities={})
Escape '&', '<', and '>' in a string of data. You can escape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. The characters '&', '<' and '>' are... | |
doc_24888 | sklearn.calibration.calibration_curve(y_true, y_prob, *, normalize=False, n_bins=5, strategy='uniform') [source]
Compute true and predicted probabilities for a calibration curve. The method assumes the inputs come from a binary classifier, and discretize the [0, 1] interval into bins. Calibration curves may also be r... | |
doc_24889 | Recursively descend the directory tree named by dir, compiling all .py files along the way. Return a true value if all the files compiled successfully, and a false value otherwise. The maxlevels parameter is used to limit the depth of the recursion; it defaults to sys.getrecursionlimit(). If ddir is given, it is prepen... | |
doc_24890 | If item is specified, sets the focus item to item. Otherwise, returns the current focus item, or ‘’ if there is none. | |
doc_24891 | class sklearn.ensemble.BaggingClassifier(base_estimator=None, n_estimators=10, *, max_samples=1.0, max_features=1.0, bootstrap=True, bootstrap_features=False, oob_score=False, warm_start=False, n_jobs=None, random_state=None, verbose=0) [source]
A Bagging classifier. A Bagging classifier is an ensemble meta-estimator... | |
doc_24892 |
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_24893 | tf.compat.v1.nn.sampled_softmax_loss(
weights, biases, labels, inputs, num_sampled, num_classes, num_true=1,
sampled_values=None, remove_accidental_hits=True,
partition_strategy='mod', name='sampled_softmax_loss',
seed=None
)
This is a faster way to train a softmax classifier over a huge number of clas... | |
doc_24894 | Return the value of field as a string where possible. field must be an integer. | |
doc_24895 | tf.keras.metrics.binary_crossentropy, tf.losses.binary_crossentropy, tf.metrics.binary_crossentropy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.binary_crossentropy, tf.compat.v1.keras.metrics.binary_crossentropy
tf.keras.losses.binary_crossentropy(
y_true, y_pred, ... | |
doc_24896 |
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_24897 | class ast.SetComp(elt, generators)
class ast.GeneratorExp(elt, generators)
class ast.DictComp(key, value, generators)
List and set comprehensions, generator expressions, and dictionary comprehensions. elt (or key and value) is a single node representing the part that will be evaluated for each item. generators is... | |
doc_24898 | Return True if there are maxsize items in the queue. If the queue was initialized with maxsize=0 (the default), then full() never returns True. | |
doc_24899 | Reads a file into a list of strings. It calls readline() until the file is read to the end. It does support the optional size argument if the underlying stream supports it for readline. Parameters
size (Optional[int]) – Return type
List[bytes] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.