_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_4900 |
Return the picking behavior of the artist. The possible values are described in set_picker. See also
set_picker, pickable, pick | |
doc_4901 | Return a list containing the character set names in the message. If the message is a multipart, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the charset parameter in the Content-Type header ... | |
doc_4902 | tf.compat.v1.train.do_quantize_training_on_graphdef(
input_graph, num_bits
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: GraphDef quantized training rewriter is deprecated in the long term. Consider using that instead, though since it is in the tf.contri... | |
doc_4903 |
This is the quantized equivalent of ELU. Parameters
scale – quantization scale of the output tensor
zero_point – quantization zero point of the output tensor
alpha – the alpha constant | |
doc_4904 | tf.compat.v1.distributions.RegisterKL(
dist_cls_a, dist_cls_b
)
Usage: @distributions.RegisterKL(distributions.Normal, distributions.Normal) def _kl_normal_mvn(norm_a, norm_b): # Return KL(norm_a || norm_b)
Args
dist_cls_a the class of the first argument of the KL divergence.
dist_cls_b the class of... | |
doc_4905 | Returns path. New in version 3.4. | |
doc_4906 | Set the message’s envelope header to unixfrom, which should be a string. | |
doc_4907 | Takes either a model class or an instance of a model, and returns the ContentType instance representing that model. for_concrete_model=False allows fetching the ContentType of a proxy model. | |
doc_4908 |
Set whether axis ticks and gridlines are above or below most artists. This controls the zorder of the ticks and gridlines. For more information on the zorder see Zorder Demo. Parameters
bbool or 'line'
Possible values:
True (zorder = 0.5): Ticks and gridlines are below all Artists. 'line' (zorder = 1.5): Tick... | |
doc_4909 | PyHKEY.__exit__(*exc_info)
The HKEY object implements __enter__() and __exit__() and thus supports the context protocol for the with statement: with OpenKey(HKEY_LOCAL_MACHINE, "foo") as key:
... # work with key
will automatically close key when control leaves the with block. | |
doc_4910 |
An extremely randomized tree classifier. Extra-trees differ from classic decision trees in the way they are built. When looking for the best split to separate the samples of a node into two groups, random splits are drawn for each of the max_features randomly selected features and the best split among those is chosen... | |
doc_4911 |
Bases: dict A dictionary with a maximum size. Notes This doesn't override all the relevant methods to constrain the size, just __setitem__, so use with caution. | |
doc_4912 | sklearn.datasets.clear_data_home(data_home=None) [source]
Delete all the content of the data home cache. Parameters
data_homestr, default=None
The path to scikit-learn data directory. If None, the default path is ~/sklearn_learn_data. | |
doc_4913 |
Set the current Axes to be a and return a. | |
doc_4914 | Return True if the file descriptor fd is open and connected to a tty(-like) device, else False. | |
doc_4915 | A list of callbacks that will be invoked by the garbage collector before and after collection. The callbacks will be called with two arguments, phase and info. phase can be one of two values: “start”: The garbage collection is about to start. “stop”: The garbage collection has finished. info is a dict providing more in... | |
doc_4916 | URL encode a dict/MultiDict. If a value is None it will not appear in the result string. Per default only values are encoded into the target charset strings. Parameters
obj (Union[Mapping[str, str], Iterable[Tuple[str, str]]]) – the object to encode into a query string.
charset (str) – the charset of the query str... | |
doc_4917 |
Transforms a masked array into a flexible-type array. The flexible type array that is returned will have two fields: the _data field stores the _data part of the array. the _mask field stores the _mask part of the array. Parameters
None
Returns
recordndarray
A new flexible-type ndarray with two fields: th... | |
doc_4918 | See Migration guide for more details. tf.compat.v1.lookup.KeyValueTensorInitializer
tf.lookup.KeyValueTensorInitializer(
keys, values, key_dtype=None, value_dtype=None, name=None
)
keys_tensor = tf.constant(['a', 'b', 'c'])
vals_tensor = tf.constant([7, 8, 9])
input_tensor = tf.constant(['a', 'f'])
init = tf.lo... | |
doc_4919 | Return the disassembly of co as string. | |
doc_4920 | Print detailed code object information for the supplied function, method, source code string or code object to file (or sys.stdout if file is not specified). This is a convenient shorthand for print(code_info(x), file=file), intended for interactive exploration at the interpreter prompt. New in version 3.2. Changed ... | |
doc_4921 | See Migration guide for more details. tf.compat.v1.raw_ops.Switch
tf.raw_ops.Switch(
data, pred, name=None
)
If pred is true, the data input is forwarded to output_true. Otherwise, the data goes to output_false. See also RefSwitch and Merge.
Args
data A Tensor. The tensor to be forwarded to the appropri... | |
doc_4922 |
Computes the (weighted) graph of k-Neighbors for points in X Parameters
Xarray-like of shape (n_queries, n_features), or (n_queries, n_indexed) if metric == ‘precomputed’, default=None
The query point or points. If not provided, neighbors of each indexed point are returned. In this case, the query point is not ... | |
doc_4923 |
Raises an AssertionError if two objects are not equal up to desired tolerance. The test is equivalent to allclose(actual, desired, rtol, atol) (note that allclose has different default values). It compares the difference between actual and desired to atol + rtol * abs(desired). New in version 1.5.0. Parameters
... | |
doc_4924 | Initialize the feed with the given dictionary of metadata, which applies to the entire feed. Any extra keyword arguments you pass to __init__ will be stored in self.feed. All parameters should be strings, except categories, which should be a sequence of strings. | |
doc_4925 |
Represents a period of time. Parameters
value:Period or str, default None
The time period represented (e.g., ‘4Q2005’).
freq:str, default None
One of pandas period strings or corresponding objects.
ordinal:int, default None
The period offset from the proleptic Gregorian epoch.
year:int, default None
... | |
doc_4926 | Assert that the last await was with the specified arguments. >>> mock = AsyncMock()
>>> async def main(*args, **kwargs):
... await mock(*args, **kwargs)
...
>>> asyncio.run(main('foo', bar='bar'))
>>> mock.assert_awaited_with('foo', bar='bar')
>>> mock.assert_awaited_with('other')
Traceback (most recent call last):... | |
doc_4927 |
Estimate the transformation from a set of corresponding points. You can determine the over-, well- and under-determined parameters with the total least-squares method. Number of source and destination coordinates must match. The transformation is defined as: X = (a0*x + a1*y + a2) / (c0*x + c1*y + 1)
Y = (b0*x + b1*y... | |
doc_4928 |
Scalar method identical to the corresponding array attribute. Please see ndarray.copy. | |
doc_4929 |
Return an iterable of the ModuleDict key/value pairs. | |
doc_4930 | Stores a range of dates. Based on a DateField. Represented by a daterange in the database and a DateRange in Python. Regardless of the bounds specified when saving the data, PostgreSQL always returns a range in a canonical form that includes the lower bound and excludes the upper bound, that is [). | |
doc_4931 |
Feature ranking with recursive feature elimination and cross-validated selection of the best number of features. See glossary entry for cross-validation estimator. Read more in the User Guide. Parameters
estimatorEstimator instance
A supervised learning estimator with a fit method that provides information abou... | |
doc_4932 |
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_4933 |
Used if copy.deepcopy is called on an array. | |
doc_4934 | Called at the end of a CDATA section. | |
doc_4935 | sklearn.utils.gen_even_slices(n, n_packs, *, n_samples=None) [source]
Generator to create n_packs slices going up to n. Parameters
nint
n_packsint
Number of slices to generate.
n_samplesint, default=None
Number of samples. Pass n_samples when the slices are to be used for sparse matrix indexing; slicing o... | |
doc_4936 | Constructs a complex tensor whose elements are Cartesian coordinates corresponding to the polar coordinates with absolute value abs and angle angle. out=abs⋅cos(angle)+abs⋅sin(angle)⋅j\text{out} = \text{abs} \cdot \cos(\text{angle}) + \text{abs} \cdot \sin(\text{angle}) \cdot j
Parameters
abs (Tensor) – The ab... | |
doc_4937 | Sequence of bytecodes of Boolean operations. | |
doc_4938 |
Fail unless an exception of class exception_class and with message that matches expected_regexp is thrown by callable when invoked with arguments args and keyword arguments kwargs. Alternatively, can be used as a context manager like assert_raises. Name of this function adheres to Python 3.2+ reference, but should wo... | |
doc_4939 | os.execle(path, arg0, arg1, ..., env)
os.execlp(file, arg0, arg1, ...)
os.execlpe(file, arg0, arg1, ..., env)
os.execv(path, args)
os.execve(path, args, env)
os.execvp(file, args)
os.execvpe(file, args, env)
These functions all execute a new program, replacing the current process; they do not return. On U... | |
doc_4940 | Returns a list of candidate template names. Returns the following list: the value of template_name on the view (if provided) <app_label>/<model_name><template_name_suffix>.html | |
doc_4941 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseFillEmptyRows
tf.raw_ops.SparseFillEmptyRows(
indices, values, dense_shape, default_value, name=None
)
The input SparseTensor is represented via the tuple of inputs (indices, values, dense_shape). The output SparseTensor has the same dense_shape bu... | |
doc_4942 |
Find the indices of array elements that are non-zero, grouped by element. Parameters
aarray_like
Input data. Returns
index_array(N, a.ndim) ndarray
Indices of elements that are non-zero. Indices are grouped by element. This array will have shape (N, a.ndim) where N is the number of non-zero items. ... | |
doc_4943 | Translate an Internet port number and protocol name to a service name for that service. The optional protocol name, if given, should be 'tcp' or 'udp', otherwise any protocol will match. Raises an auditing event socket.getservbyport with arguments port, protocolname. | |
doc_4944 | Does a rollover, as described above. | |
doc_4945 | Return whether domain is not on the whitelist for setting or receiving cookies. | |
doc_4946 | Call the current event loop exception handler. context is a dict object containing the following keys (new keys may be introduced in future Python versions): ‘message’: Error message; ‘exception’ (optional): Exception object; ‘future’ (optional): asyncio.Future instance; ‘handle’ (optional): asyncio.Handle instance; ‘... | |
doc_4947 | See Migration guide for more details. tf.compat.v1.raw_ops.LoadTPUEmbeddingMomentumParametersGradAccumDebug
tf.raw_ops.LoadTPUEmbeddingMomentumParametersGradAccumDebug(
parameters, momenta, gradient_accumulators, num_shards, shard_id, table_id=-1,
table_name='', config='', name=None
)
An op that loads optimi... | |
doc_4948 | alias of torch.distributions.constraints._DependentProperty | |
doc_4949 | tf.metrics.BinaryCrossentropy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.BinaryCrossentropy
tf.keras.metrics.BinaryCrossentropy(
name='binary_crossentropy', dtype=None, from_logits=False,
label_smoothing=0
)
This is the crossentropy metric class to be used w... | |
doc_4950 |
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con... | |
doc_4951 | Terminate the SMTP session and close the connection. Return the result of the SMTP QUIT command. | |
doc_4952 | Numerator of the Fraction in lowest term. | |
doc_4953 | Returns True if more progress can be made and False otherwise. Progress can be made if cycles do not block the resolution and either there are still nodes ready that haven’t yet been returned by TopologicalSorter.get_ready() or the number of nodes marked TopologicalSorter.done() is less than the number that have been r... | |
doc_4954 | tf.losses.Poisson Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.Poisson
tf.keras.losses.Poisson(
reduction=losses_utils.ReductionV2.AUTO, name='poisson'
)
loss = y_pred - y_true * log(y_pred) Standalone usage:
y_true = [[0., 1.], [0., 0.]]
y_pred = [[1., 1.], [0., ... | |
doc_4955 |
Return a list of the child Artists of this Artist. | |
doc_4956 |
Quantize stub module, before calibration, this is same as an observer, it will be swapped as nnq.Quantize in convert. Parameters
qconfig – quantization configuration for the tensor, if qconfig is not provided, we will get qconfig from parent modules | |
doc_4957 | Return the toplevel SymbolTable for the Python source code. filename is the name of the file containing the code. compile_type is like the mode argument to compile(). | |
doc_4958 |
Base class for XAxis and YAxis. Attributes
isDefault_labelbool
axesmatplotlib.axes.Axes
The Axes instance the artist resides in, or None.
majormatplotlib.axis.Ticker
Determines the major tick positions and their label format.
minormatplotlib.axis.Ticker
Determines the minor tick positions and their la... | |
doc_4959 | See torch.atan2() | |
doc_4960 | Token value for "<=". | |
doc_4961 | class sklearn.feature_extraction.DictVectorizer(*, dtype=<class 'numpy.float64'>, separator='=', sparse=True, sort=True) [source]
Transforms lists of feature-value mappings to vectors. This transformer turns lists of mappings (dict-like objects) of feature names to feature values into Numpy arrays or scipy.sparse mat... | |
doc_4962 |
Plot filled contours. Call signature: contourf([X, Y,] Z, [levels], **kwargs)
contour and contourf draw contour lines and filled contours, respectively. Except as noted, function signatures and return values are the same for both versions. Parameters
X, Yarray-like, optional
The coordinates of the values in Z.... | |
doc_4963 | class sklearn.manifold.LocallyLinearEmbedding(*, n_neighbors=5, n_components=2, reg=0.001, eigen_solver='auto', tol=1e-06, max_iter=100, method='standard', hessian_tol=0.0001, modified_tol=1e-12, neighbors_algorithm='auto', random_state=None, n_jobs=None) [source]
Locally Linear Embedding Read more in the User Guide.... | |
doc_4964 | See Migration guide for more details. tf.compat.v1.keras.layers.Multiply
tf.keras.layers.Multiply(
**kwargs
)
It takes as input a list of tensors, all of the same shape, and returns a single tensor (also of the same shape).
tf.keras.layers.Multiply()([np.arange(5).reshape(5, 1),
np.a... | |
doc_4965 | uninitialize the Joystick quit() -> None Close a Joystick object. After this the pygame event queue will no longer receive events from the device. It is safe to call this more than once. | |
doc_4966 |
MovieWriter for writing to individual files and stitching at the end. This must be sub-classed to be useful. Parameters
fpsint, default: 5
Movie frame rate (per second).
codecstr or None, default: rcParams["animation.codec"] (default: 'h264')
The codec to use.
bitrateint, default: rcParams["animation.bitr... | |
doc_4967 |
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
animated bool
antialiased or aa bool or None
capstyle CapStyle or {'butt', 'projecting', 'r... | |
doc_4968 |
Set padding of X data limits prior to autoscaling. m times the data interval will be added to each end of that interval before it is used in autoscaling. For example, if your data is in the range [0, 2], a factor of m = 0.1 will result in a range [-0.2, 2.2]. Negative values -0.5 < m < 0 will result in clipping of th... | |
doc_4969 | Returns a byte at the current file position as an integer, and advances the file position by 1. | |
doc_4970 |
Appends a given module to the end of the list. Parameters
module (nn.Module) – module to append | |
doc_4971 | Calling this method is equivalent to combining the path with each of the other arguments in turn: >>> PurePosixPath('/etc').joinpath('passwd')
PurePosixPath('/etc/passwd')
>>> PurePosixPath('/etc').joinpath(PurePosixPath('passwd'))
PurePosixPath('/etc/passwd')
>>> PurePosixPath('/etc').joinpath('init.d', 'apache2')
Pur... | |
doc_4972 |
Bases: matplotlib.patches._Style A container class which defines style classes for AxisArtists. An instance of any axisline style class is an callable object, whose call signature is __call__(self, axis_artist, path, transform)
When called, this should return an Artist with the following methods: def set_path(self, ... | |
doc_4973 | Return a named tuple with three components: year, week and weekday. The same as self.date().isocalendar(). | |
doc_4974 | Return the value of the filename parameter of the Content-Disposition header of the message. If the header does not have a filename parameter, this method falls back to looking for the name parameter on the Content-Type header. If neither is found, or the header is missing, then failobj is returned. The returned string... | |
doc_4975 |
Map values from input array from input_vals to output_vals. Parameters
input_arrarray of int, shape (M[, N][, P][, …])
The input label image.
input_valsarray of int, shape (N,)
The values to map from.
output_valsarray, shape (N,)
The values to map to. out: array, same shape as `input_arr`
The output a... | |
doc_4976 | See Migration guide for more details. tf.compat.v1.debugging.is_non_decreasing, tf.compat.v1.is_non_decreasing, tf.compat.v1.math.is_non_decreasing
tf.math.is_non_decreasing(
x, name=None
)
Elements of x are compared in row-major order. The tensor [x[0],...] is non-decreasing if for every adjacent pair we have x... | |
doc_4977 | Return a randomly generated salt of the specified method. If no method is given, the strongest method available as returned by methods() is used. The return value is a string suitable for passing as the salt argument to crypt(). rounds specifies the number of rounds for METHOD_SHA256, METHOD_SHA512 and METHOD_BLOWFISH.... | |
doc_4978 |
Draw rubberband. This method must get implemented per backend. | |
doc_4979 |
Set the label1 text. Parameters
sstr | |
doc_4980 |
Callback processing for the mouse cursor entering the canvas. Backend derived classes should call this function when entering canvas. Parameters
guiEvent
The native UI event that generated the Matplotlib event.
xy(float, float)
The coordinate location of the pointer when the canvas is entered. | |
doc_4981 | tf.compat.v1.metrics.mean_cosine_distance(
labels, predictions, dim, weights=None, metrics_collections=None,
updates_collections=None, name=None
)
The mean_cosine_distance function creates two local variables, total and count that are used to compute the average cosine distance between predictions and labels. ... | |
doc_4982 | Return list of all live children of the current process. Calling this has the side effect of “joining” any processes which have already finished. | |
doc_4983 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalCSVDataset
tf.raw_ops.ExperimentalCSVDataset(
filenames, compression_type, buffer_size, header, field_delim, use_quote_delim,
na_value, select_cols, record_defaults, output_shapes, name=None
)
Args
filenames A Tensor of type stri... | |
doc_4984 |
Set the orientation of the event line. Parameters
orientation{'horizontal', 'vertical'} | |
doc_4985 |
Provide resampling when using a TimeGrouper. Given a grouper, the function resamples it according to a string “string” -> “frequency”. See the frequency aliases documentation for more details. Parameters
rule:str or DateOffset
The offset string or object representing target grouper conversion. *args, **kwargs
... | |
doc_4986 | True if this network is partly or wholly contained in other or other is wholly contained in this network. | |
doc_4987 | Convert the doctest for an object to a script. Argument module is a module object, or dotted name of a module, containing the object whose doctests are of interest. Argument name is the name (within the module) of the object with the doctests of interest. The result is a string, containing the object’s docstring conver... | |
doc_4988 |
Write object to an Excel sheet. To write a single object to an Excel .xlsx file it is only necessary to specify a target file name. To write to multiple sheets it is necessary to create an ExcelWriter object with a target file name, and specify a sheet in the file to write to. Multiple sheets may be written to by spe... | |
doc_4989 | Finds the caller’s source filename and line number. Returns the filename, line number, function name and stack information as a 4-element tuple. The stack information is returned as None unless stack_info is True. The stacklevel parameter is passed from code calling the debug() and other APIs. If greater than 1, the ex... | |
doc_4990 |
Plot visualization. Parameters
axmatplotlib axes, default=None
Axes object to plot on. If None, a new figure and axes is created.
namestr, default=None
Name of DET curve for labeling. If None, use the name of the estimator. Returns
displayDetCurveDisplay
Object that stores computed values. | |
doc_4991 | Encodes the netloc part to an ASCII safe URL as bytes. Return type
str | |
doc_4992 |
Alias for get_facecolor. | |
doc_4993 | See Migration guide for more details. tf.compat.v1.log, tf.compat.v1.math.log
tf.math.log(
x, name=None
)
I.e., \(y = \log_e x\). Example: x = tf.constant([0, 0.5, 1, 5]) tf.math.log(x) See: https://en.wikipedia.org/wiki/Logarithm
Args
x A Tensor. Must be one of the following types: bfloat16, half, f... | |
doc_4994 | tf.estimator.DNNRegressor(
hidden_units, feature_columns, model_dir=None, label_dimension=1,
weight_column=None, optimizer='Adagrad', activation_fn=tf.nn.relu,
dropout=None, config=None, warm_start_from=None,
loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, batch_norm=False
)
Example: categ... | |
doc_4995 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_multi_float
tf.compat.v1.flags.DEFINE_multi_float(
name, default, help, lower_bound=None, upper_bound=None,
flag_values=_flagvalues.FLAGS, **args
)
Use the flag on the command line multiple times to place multiple float values into the list.... | |
doc_4996 | Performs the same function as parsedate(), but returns either None or a 10-tuple; the first 9 elements make up a tuple that can be passed directly to time.mktime(), and the tenth is the offset of the date’s timezone from UTC (which is the official term for Greenwich Mean Time) 1. If the input string has no timezone, th... | |
doc_4997 | Returns the position of the stream. Changelog New in version 0.9. Return type
int | |
doc_4998 | Return a Signature (or its subclass) object for a given callable obj. Pass follow_wrapped=False to get a signature of obj without unwrapping its __wrapped__ chain. This method simplifies subclassing of Signature: class MySignature(Signature):
pass
sig = MySignature.from_callable(min)
assert isinstance(sig, MySignat... | |
doc_4999 |
Disable the toggle tool. trigger call this method when toggled is True. This can happen in different circumstances. Click on the toolbar tool button. Call to matplotlib.backend_managers.ToolManager.trigger_tool. Another ToolToggleBase derived tool is triggered (from the same ToolManager). |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.