_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_18200 |
Convert text s to path (a tuple of vertices and codes for matplotlib.path.Path). Parameters
propFontProperties
The font properties for the text.
sstr
The text to be converted.
ismath{False, True, "TeX"}
If True, use mathtext parser. If "TeX", use tex for rendering. Returns
vertslist
A list of nu... | |
doc_18201 | tf.experimental.numpy.inner(
a, b
)
See the NumPy documentation for numpy.inner. | |
doc_18202 |
Pivot a level of the (necessarily hierarchical) index labels. Returns a DataFrame having a new level of column labels whose inner-most level consists of the pivoted index labels. If the index is not a MultiIndex, the output will be a Series (the analogue of stack when the columns are not a MultiIndex). Parameters
... | |
doc_18203 | Invalid internal state of Task or Future. Can be raised in situations like setting a result value for a Future object that already has a result value set. | |
doc_18204 |
Draw a marker at each of path's vertices (excluding control points). This provides a fallback implementation of draw_markers that makes multiple calls to draw_path(). Some backends may want to override this method in order to draw the marker only once and reuse it multiple times. Parameters
gcGraphicsContextBase
... | |
doc_18205 | Simulate the effect of a signal.SIGINT signal arriving in the main thread. A thread can use this function to interrupt the main thread. If signal.SIGINT isn’t handled by Python (it was set to signal.SIG_DFL or signal.SIG_IGN), this function does nothing. | |
doc_18206 | An object with at least two methods: get_content and set_content. When the get_content() or set_content() method of an EmailMessage object is called, it calls the corresponding method of this object, passing it the message object as its first argument, and any arguments or keywords that were passed to it as additional ... | |
doc_18207 | See torch.signbit() | |
doc_18208 | class poplib.POP3(host, port=POP3_PORT[, timeout])
This class implements the actual POP3 protocol. The connection is created when the instance is initialized. If port is omitted, the standard POP3 port (110) is used. The optional timeout parameter specifies a timeout in seconds for the connection attempt (if not spec... | |
doc_18209 | sklearn.feature_selection.f_classif(X, y) [source]
Compute the ANOVA F-value for the provided sample. Read more in the User Guide. Parameters
X{array-like, sparse matrix} shape = [n_samples, n_features]
The set of regressors that will be tested sequentially.
yarray of shape(n_samples)
The data matrix. Re... | |
doc_18210 | See Migration guide for more details. tf.compat.v1.keras.regularizers.Regularizer Regularizers allow you to apply penalties on layer parameters or layer activity during optimization. These penalties are summed into the loss function that the network optimizes. Regularization penalties are applied on a per-layer basis.... | |
doc_18211 |
Color the background in a gradient style. The background color is determined according to the data in each column, row or frame, or by a given gradient map. Requires matplotlib. Parameters
cmap:str or colormap
Matplotlib colormap.
low:float
Compress the color range at the low end. This is a multiple of the ... | |
doc_18212 | The expected output from running the example’s source code (either from stdout, or a traceback in case of exception). want ends with a newline unless no output is expected, in which case it’s an empty string. The constructor adds a newline when necessary. | |
doc_18213 | This read-only attribute returns the callback currently associated to the weakref. If there is no callback or if the referent of the weakref is no longer alive then this attribute will have value None. | |
doc_18214 |
Alter Series index labels or name. Function / dict values must be unique (1-to-1). Labels not contained in a dict / Series will be left as-is. Extra labels listed don’t throw an error. Alternatively, change Series.name with a scalar value. See the user guide for more. Parameters
axis:{0 or “index”}
Unused. Acce... | |
doc_18215 | Returns an iterator over immediate children modules. Yields
Module – a child module | |
doc_18216 | See Migration guide for more details. tf.compat.v1.math.reduce_any
tf.compat.v1.reduce_any(
input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None,
keep_dims=None
)
Warning: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: kee... | |
doc_18217 |
Returns a figure comparing the outputs of different thresholding methods. Parameters
image(N, M) ndarray
Input image.
figsizetuple, optional
Figure size (in inches).
verbosebool, optional
Print function name for each method. Returns
fig, axtuple
Matplotlib figure and axes. Notes The followin... | |
doc_18218 |
Set the sizes of each member of the collection. Parameters
sizesndarray or None
The size to set for each element of the collection. The value is the 'area' of the element.
dpifloat, default: 72
The dpi of the canvas. | |
doc_18219 |
The Complement Naive Bayes classifier described in Rennie et al. (2003). The Complement Naive Bayes classifier was designed to correct the “severe assumptions” made by the standard Multinomial Naive Bayes classifier. It is particularly suited for imbalanced data sets. Read more in the User Guide. New in version 0.20... | |
doc_18220 | Enumerate the children of the current directory. | |
doc_18221 | check if the text will be rendered italic get_italic() -> bool Return True when the font italic rendering mode is enabled. Note This is the same as the italic attribute. | |
doc_18222 | Returns a date object containing the first day of the week before the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future. | |
doc_18223 | See Migration guide for more details. tf.compat.v1.math.nextafter
tf.math.nextafter(
x1, x2, name=None
)
This operation returns the same result as the C++ std::nextafter function. It can also return a subnormal number.
Args
x1 A Tensor. Must be one of the following types: float64, float32.
x2 A Te... | |
doc_18224 |
The index (row labels) of the DataFrame. | |
doc_18225 | The single address encoded by the header value. If the header value actually contains more than one address (which would be a violation of the RFC under the default policy), accessing this attribute will result in a ValueError. | |
doc_18226 |
Set the line width of the Figure rectangle. Parameters
linewidthnumber | |
doc_18227 | Set or remove the function invoked by the rl_startup_hook callback of the underlying library. If function is specified, it will be used as the new hook function; if omitted or None, any function already installed is removed. The hook is called with no arguments just before readline prints the first prompt. | |
doc_18228 |
Remove rubberband. This method should get implemented per backend. | |
doc_18229 |
Set the (group) id for the artist. Parameters
gidstr | |
doc_18230 |
Return the picking behavior of the artist. The possible values are described in set_picker. See also
set_picker, pickable, pick | |
doc_18231 | See Migration guide for more details. tf.compat.v1.raw_ops.ReluGrad
tf.raw_ops.ReluGrad(
gradients, features, name=None
)
Args
gradients A Tensor. Must be one of the following types: float32, float64, int32, uint8, int16, int8, int64, bfloat16, uint16, half, uint32, uint64. The backpropagated gradients ... | |
doc_18232 | Error raised when an unpicklable object is encountered by Pickler. It inherits PickleError. Refer to What can be pickled and unpickled? to learn what kinds of objects can be pickled. | |
doc_18233 |
Finds the neighbors within a given radius of a point or points. Return the indices and distances of each point from the dataset lying in a ball with size radius around the points of the query array. Points lying on the boundary are included in the results. The result points are not necessarily sorted by distance to t... | |
doc_18234 | syslog.syslog(message)
syslog.syslog(priority, message)
Send the string message to the system logger. A trailing newline is added if necessary. Each message is tagged with a priority composed of a facility and a level. The optional priority argument, which defaults to LOG_INFO, determines the message priority. If t... | |
doc_18235 | A list of strings representing the recognized file suffixes for source modules. New in version 3.3. | |
doc_18236 | See Migration guide for more details. tf.compat.v1.initializers.uniform_unit_scaling
tf.compat.v1.uniform_unit_scaling_initializer(
factor=1.0, seed=None, dtype=tf.dtypes.float32
)
When initializing a deep network, it is in principle advantageous to keep the scale of the input variance constant, so it does not e... | |
doc_18237 |
IEEE 754 floating point representation of (positive) infinity. Use inf because Inf, Infinity, PINF and infty are aliases for inf. For more details, see inf. See Also inf | |
doc_18238 | tf.metrics.SparseCategoricalCrossentropy Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.SparseCategoricalCrossentropy
tf.keras.metrics.SparseCategoricalCrossentropy(
name='sparse_categorical_crossentropy', dtype=None, from_logits=False,
axis=-1
)
Use this crosse... | |
doc_18239 |
Set the font weight. Parameters
weight{a numeric value in range 0-1000, 'ultralight', 'light', 'normal', 'regular', 'book', 'medium', 'roman', 'semibold', 'demibold', 'demi', 'bold', 'heavy', 'extra bold', 'black'}
See also font_manager.FontProperties.set_weight | |
doc_18240 |
Return the marker size in points. See also set_markersize. | |
doc_18241 | Parameters
radius – a number
extent – a number (or None)
steps – an integer (or None) Draw a circle with given radius. The center is radius units left of the turtle; extent – an angle – determines which part of the circle is drawn. If extent is not given, draw the entire circle. If extent is not a full circle,... | |
doc_18242 | Default value for the bufsize parameter to parse(). The value of this variable can be changed before calling parse() and the new value will take effect. | |
doc_18243 |
Bases: matplotlib.backend_bases.FigureCanvasBase draw()[source]
Render the Figure. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving t... | |
doc_18244 |
Stack 1-D arrays as columns into a 2-D array. Take a sequence of 1-D arrays and stack them as columns to make a single 2-D array. 2-D arrays are stacked as-is, just like with hstack. 1-D arrays are turned into 2-D columns first. Parameters
tupsequence of 1-D or 2-D arrays.
Arrays to stack. All of them must have... | |
doc_18245 | Hook method executed once when cmdloop() is called. This method is a stub in Cmd; it exists to be overridden by subclasses. | |
doc_18246 | tf.compat.v1.gradients(
ys, xs, grad_ys=None, name='gradients',
colocate_gradients_with_ops=False, gate_gradients=False,
aggregation_method=None, stop_gradients=None,
unconnected_gradients=tf.UnconnectedGradients.NONE
)
ys and xs are each a Tensor or a list of tensors. grad_ys is a list of Tensor, hold... | |
doc_18247 | Deprecated since version 3.9: Deprecated in favor of status. | |
doc_18248 | See Migration guide for more details. tf.compat.v1.raw_ops.SampleDistortedBoundingBoxV2
tf.raw_ops.SampleDistortedBoundingBoxV2(
image_size, bounding_boxes, min_object_covered, seed=0, seed2=0,
aspect_ratio_range=[0.75, 1.33], area_range=[0.05, 1], max_attempts=100,
use_image_if_no_bounding_boxes=False, n... | |
doc_18249 | Resets the codec buffers used for keeping internal state. Note that no stream repositioning should take place. This method is primarily intended to be able to recover from decoding errors. | |
doc_18250 |
Save the animation as a movie file by drawing every frame. Parameters
filenamestr
The output filename, e.g., mymovie.mp4.
writerMovieWriter or str, default: rcParams["animation.writer"] (default: 'ffmpeg')
A MovieWriter instance to use or a key that identifies a class to use, such as 'ffmpeg'.
fpsint, opt... | |
doc_18251 |
Make new Index with passed location(-s) deleted. Parameters
loc:int or list of int
Location of item(-s) which will be deleted. Use a list of locations to delete more than one value at the same time. Returns
Index
Will be same type as self, except for RangeIndex. See also numpy.delete
Delete any row... | |
doc_18252 | class sklearn.cluster.Birch(*, threshold=0.5, branching_factor=50, n_clusters=3, compute_labels=True, copy=True) [source]
Implements the Birch clustering algorithm. It is a memory-efficient, online-learning algorithm provided as an alternative to MiniBatchKMeans. It constructs a tree data structure with the cluster c... | |
doc_18253 | See Migration guide for more details. tf.compat.v1.raw_ops.DenseBincount
tf.raw_ops.DenseBincount(
input, size, weights, binary_output=False, name=None
)
Outputs a vector with length size and the same dtype as weights. If weights are empty, then index i stores the number of times the value i is counted in arr. I... | |
doc_18254 |
DataFrame.isnull is an alias for DataFrame.isna. Detect missing values. Return a boolean same-sized object indicating if the values are NA. NA values, such as None or numpy.NaN, gets mapped to True values. Everything else gets mapped to False values. Characters such as empty strings '' or numpy.inf are not considered... | |
doc_18255 |
Return a generator of flattened nested containers. For example: >>> from matplotlib.cbook import flatten
>>> l = (('John', ['Hunter']), (1, 23), [[([42, (5, 23)], )]])
>>> print(list(flatten(l)))
['John', 'Hunter', 1, 23, 42, 5, 23]
By: Composite of Holger Krekel and Luther Blissett From: https://code.activestate.co... | |
doc_18256 |
BitGenerator for the PCG-64 DXSM pseudo-random number generator. Parameters
seed{None, int, array_like[ints], SeedSequence}, optional
A seed to initialize the BitGenerator. If None, then fresh, unpredictable entropy will be pulled from the OS. If an int or array_like[ints] is passed, then it will be passed to S... | |
doc_18257 | A mapping object representing the string environment. For example, environ['HOME'] is the pathname of your home directory (on some platforms), and is equivalent to getenv("HOME") in C. This mapping is captured the first time the os module is imported, typically during Python startup as part of processing site.py. Chang... | |
doc_18258 | Compute the two-point correlation function Parameters
Xarray-like of shape (n_samples, n_features)
An array of points to query. Last dimension should match dimension of training data.
rarray-like
A one-dimensional array of distances
dualtreebool, default=False
If True, use a dualtree algorithm. Otherwise,... | |
doc_18259 |
Apply trees in the ensemble to X, return leaf indices. New in version 0.17. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features)
The input samples. Internally, its dtype will be converted to dtype=np.float32. If a sparse matrix is provided, it will be converted to a sparse csr_matrix. R... | |
doc_18260 |
Create a new view of the Series. This function will return a new Series with a view of the same underlying values in memory, optionally reinterpreted with a new data type. The new data type must preserve the same size in bytes as to not cause index misalignment. Parameters
dtype:data type
Data type object or on... | |
doc_18261 | True if the end-of-stream marker has been reached. | |
doc_18262 |
Bases: matplotlib.backend_tools.ViewsPositionsBase Restore the original view limits. default_keymap=['h', 'r', 'home']
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
description='Reset original view'
Description... | |
doc_18263 |
The backend options for TensorPipeAgent, derived from RpcBackendOptions. Parameters
num_worker_threads (int, optional) – The number of threads in the thread-pool used by TensorPipeAgent to execute requests (default: 16).
rpc_timeout (float, optional) – The default timeout, in seconds, for RPC requests (default: ... | |
doc_18264 | Simple class used by default by parse_args() to create an object holding attributes and return it. | |
doc_18265 | See Migration guide for more details. tf.compat.v1.compat.as_bytes
tf.compat.as_bytes(
bytes_or_text, encoding='utf-8'
)
Uses utf-8 encoding for text by default.
Args
bytes_or_text A bytearray, bytes, str, or unicode object.
encoding A string indicating the charset for encoding unicode.
Re... | |
doc_18266 |
Return whether point (pair of pixel coordinates) is inside the axes patch. | |
doc_18267 | sklearn.manifold.smacof(dissimilarities, *, metric=True, n_components=2, init=None, n_init=8, n_jobs=None, max_iter=300, verbose=0, eps=0.001, random_state=None, return_n_iter=False) [source]
Computes multidimensional scaling using the SMACOF algorithm. The SMACOF (Scaling by MAjorizing a COmplicated Function) algori... | |
doc_18268 |
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende... | |
doc_18269 |
Set the left coord of the rectangle. Parameters
xfloat | |
doc_18270 |
Return the orientation of the event line ('horizontal' or 'vertical'). | |
doc_18271 | This implementation starts a new waiting thread for every subprocess spawn. It works reliably even when the asyncio event loop is run in a non-main OS thread. There is no noticeable overhead when handling a big number of children (O(1) each time a child terminates), but starting a thread per process requires extra memo... | |
doc_18272 | Like setdefault but sets multiple values. The list returned is not a copy, but the list that is actually used internally. This means that you can put new values into the dict by appending items to the list: >>> d = MultiDict({"foo": 1})
>>> d.setlistdefault("foo").extend([2, 3])
>>> d.getlist("foo")
[1, 2, 3]
Paramet... | |
doc_18273 | Set the ForeignKey null; this is only possible if null is True. | |
doc_18274 |
Set the y-axis scale. Parameters
value{"linear", "log", "symlog", "logit", ...} or ScaleBase
The axis scale type to apply. **kwargs
Different keyword arguments are accepted, depending on the scale. See the respective class keyword arguments: matplotlib.scale.LinearScale matplotlib.scale.LogScale matplotlib.s... | |
doc_18275 | Skip the decorated test unless condition is true. | |
doc_18276 | By default a ModelForm is dynamically created for your model. It is used to create the form presented on both the add/change pages. You can easily provide your own ModelForm to override any default form behavior on the add/change pages. Alternatively, you can customize the default form rather than specifying an entirel... | |
doc_18277 | Return system configuration information relevant to a named file. name specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX.1, Unix 95, Unix 98, and others). Some platforms define additional names as well... | |
doc_18278 | List of Unix shell-style wildcard test name patterns that test methods have to match to be included in test suites (see -v option). If this attribute is not None (the default), all test methods to be included in test suites must match one of the patterns in this list. Note that matches are always performed using fnmatc... | |
doc_18279 |
Calculate the expanding sample covariance. Parameters
other:Series or DataFrame, optional
If not supplied then will default to self and produce pairwise output.
pairwise:bool, default None
If False then only matching columns between self and other will be used and the output will be a DataFrame. If True the... | |
doc_18280 | See Migration guide for more details. tf.compat.v1.saved_model.SaveOptions
tf.saved_model.SaveOptions(
namespace_whitelist=None, save_debug_info=False, function_aliases=None,
experimental_io_device=None, experimental_variable_policy=None
)
This function may be used in the options argument in functions that s... | |
doc_18281 |
Transform a count matrix to a normalized tf or tf-idf representation Tf means term-frequency while tf-idf means term-frequency times inverse document-frequency. This is a common term weighting scheme in information retrieval, that has also found good use in document classification. The goal of using tf-idf instead of... | |
doc_18282 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesCenterBias
tf.raw_ops.BoostedTreesCenterBias(
tree_ensemble_handle, mean_gradients, mean_hessians, l1, l2, name=None
)
Args
tree_ensemble_handle A Tensor of type resource. Handle to the tree ensemble.
mean_gradients A Tensor of... | |
doc_18283 | skimage.future.graph.cut_normalized(labels, rag) Perform Normalized Graph cut on the Region Adjacency Graph.
skimage.future.graph.cut_threshold(labels, …) Combine regions separated by weight less than threshold.
skimage.future.graph.merge_hierarchical(…) Perform hierarchical merging of a RAG.
skimage.future.graph... | |
doc_18284 |
Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event. The default implementation ju... | |
doc_18285 | The underlying file object that this class wraps. Be careful with this attribute in subclasses. Some subclasses of File, including ContentFile and FieldFile, may replace this attribute with an object other than a Python file object. In these cases, this attribute may itself be a File subclass (and not necessarily the ... | |
doc_18286 |
Return the sketch parameters for the artist. Returns
tuple or None
A 3-tuple with the following elements:
scale: The amplitude of the wiggle perpendicular to the source line.
length: The length of the wiggle along the line.
randomness: The scale factor by which the length is shrunken or expanded. Returns Non... | |
doc_18287 | See Migration guide for more details. tf.compat.v1.keras.callbacks.EarlyStopping
tf.keras.callbacks.EarlyStopping(
monitor='val_loss', min_delta=0, patience=0, verbose=0,
mode='auto', baseline=None, restore_best_weights=False
)
Assuming the goal of a training is to minimize the loss. With this, the metric to... | |
doc_18288 | This is called to figure out if an error should be ignored or not as far as the teardown system is concerned. If this function returns True then the teardown handlers will not be passed the error. Changelog New in version 0.10. Parameters
error (Optional[BaseException]) – Return type
bool | |
doc_18289 | Asynchronous version of socket.getaddrinfo(). | |
doc_18290 |
template_name: 'django/forms/widgets/splitdatetime.html'
Wrapper (using MultiWidget) around two widgets: DateInput for the date, and TimeInput for the time. Must be used with SplitDateTimeField rather than DateTimeField. SplitDateTimeWidget has several optional arguments:
date_format
Similar to DateInput.format... | |
doc_18291 | See Migration guide for more details. tf.compat.v1.io.gfile.glob
tf.io.gfile.glob(
pattern
)
The patterns are defined as strings. Supported patterns are defined here. Note that the pattern can be a Python iteratable of string patterns. The format definition of the pattern is: pattern: { term } term:
'*': match... | |
doc_18292 |
Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. Call str.istitle element-wise. For 8-bit strings, this method is locale-dependent. Parameters
aarray_like of str or unicode
Returns
outndarray
Output array of bools See also str.... | |
doc_18293 | Specify the number of frames that are to be written to the audio file. If this parameter is not set, or not set correctly, the file needs to support seeking. | |
doc_18294 | call the update method on contained Sprites update(*args, **kwargs) -> None Calls the update() method on all Sprites in the Group. The base Sprite class has an update method that takes any number of arguments and does nothing. The arguments passed to Group.update() will be passed to each Sprite. There is no way to ge... | |
doc_18295 |
Find contiguous unmasked data in a masked array along the given axis. Parameters
aarray_like
The input array.
axisint, optional
Axis along which to perform the operation. If None (default), applies to a flattened version of the array, and this is the same as flatnotmasked_contiguous. Returns
endpoints... | |
doc_18296 |
Implements data parallelism at the module level. This container parallelizes the application of the given module by splitting the input across the specified devices by chunking in the batch dimension (other objects will be copied once per device). In the forward pass, the module is replicated on each device, and each... | |
doc_18297 | See Migration guide for more details. tf.compat.v1.raw_ops.NonMaxSuppressionV3
tf.raw_ops.NonMaxSuppressionV3(
boxes, scores, max_output_size, iou_threshold, score_threshold, name=None
)
pruning away boxes that have high intersection-over-union (IOU) overlap with previously selected boxes. Bounding boxes with sc... | |
doc_18298 |
Return horizontal sizes. | |
doc_18299 | Returns the Ansi Note name for a midi number. midi_to_ansi_note(midi_note) -> ansi_note example: midi_to_ansi_note(21) == 'A0' New in pygame 1.9.5. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.