_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_17800 | ax.axis["bottom"].major_ticks.set_color("red")
However, things like the locations of ticks, and their ticklabels need to be changed from the side of the grid_helper. axis_direction AxisArtist, AxisLabel, TickLabels have an axis_direction attribute, which adjusts the location, angle, etc. The axis_direction must be on... | |
doc_17801 | Filename of default file in which to keep cookies. This attribute may be assigned to. | |
doc_17802 |
Bases: matplotlib.transforms._BlendedMixin, matplotlib.transforms.Affine2DBase A "blended" transform uses one transform for the x-direction, and another transform for the y-direction. This version is an optimization for the case where both child transforms are of type Affine2DBase. Create a new "blended" transform us... | |
doc_17803 | tf.compat.v1.losses.get_regularization_loss(
scope=None, name='total_regularization_loss'
)
Args
scope An optional scope name for filtering the losses to return.
name The name of the returned tensor.
Returns A scalar regularization loss. | |
doc_17804 | sklearn.utils.extmath.weighted_mode(a, w, *, axis=0) [source]
Returns an array of the weighted modal (most common) value in a. If there is more than one such value, only the first is returned. The bin-count for the modal bins is also returned. This is an extension of the algorithm in scipy.stats.mode. Parameters
... | |
doc_17805 |
Add one Legendre series to another. Returns the sum of two Legendre series c1 + c2. The arguments are sequences of coefficients ordered from lowest order term to highest, i.e., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters
c1, c2array_like
1-D arrays of Legendre series coefficients ordered from ... | |
doc_17806 | See Migration guide for more details. tf.compat.v1.train.experimental.disable_mixed_precision_graph_rewrite
tf.compat.v1.mixed_precision.disable_mixed_precision_graph_rewrite()
After this is called, the mixed precision graph rewrite will no longer run for new Sessions, and so float32 operations will no longer be con... | |
doc_17807 | Height of the image in pixels. | |
doc_17808 |
Return True if the IntervalArray is non-overlapping (no Intervals share points) and is either monotonic increasing or monotonic decreasing, else False. | |
doc_17809 |
Return the Figure instance the artist belongs to. | |
doc_17810 | A subclass of SSLError raised when certificate validation has failed. New in version 3.7.
verify_code
A numeric error number that denotes the verification error.
verify_message
A human readable string of the verification error. | |
doc_17811 | This converter only accepts integer values: Rule("/page/<int:page>")
By default it only accepts unsigned, positive values. The signed parameter will enable signed, negative values. Rule("/page/<int(signed=True):page>")
Parameters
map (Map) – The Map.
fixed_digits (int) – The number of fixed digits in the URL. If... | |
doc_17812 |
Construct Python bytes containing the raw data bytes in the array. Constructs Python bytes showing a copy of the raw contents of data memory. The bytes object is produced in C-order by default. This behavior is controlled by the order parameter. New in version 1.9.0. Parameters
order{‘C’, ‘F’, ‘A’}, optional
... | |
doc_17813 | rotates a vector around the y-axis by the angle in radians. rotate_y_rad(angle) -> Vector3 Returns a vector which has the same length as self but is rotated counterclockwise around the y-axis by the given angle in radians. New in pygame 2.0.0. | |
doc_17814 | Makes a PATCH request on the provided path and returns a Response object. Useful for testing RESTful interfaces. The follow, secure and extra arguments act the same as for Client.get(). | |
doc_17815 |
Set the zaxis' labels with list of string labels. Warning This method should only be used after fixing the tick positions using Axes3D.set_zticks. Otherwise, the labels may end up in unexpected positions. Parameters
labelslist of str
The label texts.
fontdictdict, optional
A dictionary controlling the app... | |
doc_17816 | See Migration guide for more details. tf.compat.v1.raw_ops.IgnoreErrorsDataset
tf.raw_ops.IgnoreErrorsDataset(
input_dataset, output_types, output_shapes, log_warning=False, name=None
)
Args
input_dataset A Tensor of type variant.
output_types A list of tf.DTypes that has length >= 1.
output_s... | |
doc_17817 |
Get resources information. Return information (from system_info.get_info) for all of the names in the argument list in a single dictionary. | |
doc_17818 |
Find the intersection of the Bezier curve with a closed path. The intersection point t is approximated by two parameters t0, t1 such that t0 <= t <= t1. Search starts from t0 and t1 and uses a simple bisecting algorithm therefore one of the end points must be inside the path while the other doesn't. The search stops ... | |
doc_17819 | Write a prompt and read a line. The returned line does not include the trailing newline. When the user enters the EOF key sequence, EOFError is raised. The base implementation reads from sys.stdin; a subclass may replace this with a different implementation. | |
doc_17820 |
Bases: matplotlib.ticker.Locator Determines the tick locations when plotting dates. This class is subclassed by other Locators and is not meant to be used on its own. Parameters
tzdatetime.tzinfo
datalim_to_dt()[source]
Convert axis data interval to datetime objects.
hms0d={'byhour': 0, 'byminute': 0,... | |
doc_17821 | Visit a node. The default implementation calls the method called self.visit_classname where classname is the name of the node class, or generic_visit() if that method doesn’t exist. | |
doc_17822 | Check if an etag is strong. | |
doc_17823 | tf.compat.v1.layers.max_pooling3d(
inputs, pool_size, strides, padding='valid',
data_format='channels_last', name=None
)
volumes).
Arguments
inputs The tensor over which to pool. Must have rank 5.
pool_size An integer or tuple/list of 3 integers: (pool_depth, pool_height, pool_width) specifying ... | |
doc_17824 | Packs the double-precision floating point number value. | |
doc_17825 | See Migration guide for more details. tf.compat.v1.keras.layers.Softmax
tf.keras.layers.Softmax(
axis=-1, **kwargs
)
Example without mask:
inp = np.asarray([1., 2., 1.])
layer = tf.keras.layers.Softmax()
layer(inp).numpy()
array([0.21194157, 0.5761169 , 0.21194157], dtype=float32)
mask = np.asarray([True, False... | |
doc_17826 |
Creates a new distributed group. This function requires that all processes in the main group (i.e. all processes that are part of the distributed job) enter this function, even if they are not going to be members of the group. Additionally, groups should be created in the same order in all processes. Warning Using m... | |
doc_17827 | Remove and return a (key, value) pair from the dictionary. Pairs are returned in LIFO order. popitem() is useful to destructively iterate over a dictionary, as often used in set algorithms. If the dictionary is empty, calling popitem() raises a KeyError. Changed in version 3.7: LIFO order is now guaranteed. In prior v... | |
doc_17828 | Attempt to find the loader to handle fullname within path. | |
doc_17829 | Controls whether or not constraints should be created in the database for the foreign keys in the intermediary table. The default is True, and that’s almost certainly what you want; setting this to False can be very bad for data integrity. That said, here are some scenarios where you might want to do this: You have le... | |
doc_17830 |
Round an array to the given number of decimals. See also around
equivalent function; see for details. | |
doc_17831 | Checks for ASCII any printable character except space. | |
doc_17832 | Class which loads shared libraries. dlltype should be one of the CDLL, PyDLL, WinDLL, or OleDLL types. __getattr__() has special behavior: It allows loading a shared library by accessing it as attribute of a library loader instance. The result is cached, so repeated attribute accesses return the same library each time.... | |
doc_17833 | urllib.parse.urlparse(urlstring, scheme='', allow_fragments=True)
Parse a URL into six components, returning a 6-item named tuple. This corresponds to the general structure of a URL: scheme://netloc/path;parameters?query#fragment. Each tuple item is a string, possibly empty. The components are not broken up into smal... | |
doc_17834 | class sklearn.semi_supervised.LabelPropagation(kernel='rbf', *, gamma=20, n_neighbors=7, max_iter=1000, tol=0.001, n_jobs=None) [source]
Label Propagation classifier Read more in the User Guide. Parameters
kernel{‘knn’, ‘rbf’} or callable, default=’rbf’
String identifier for kernel function to use or the kernel... | |
doc_17835 |
Applies a 2D adaptive average pooling over an input signal composed of several input planes. See AdaptiveAvgPool2d for details and output shape. Parameters
output_size – the target output size (single integer or double-integer tuple) | |
doc_17836 |
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo... | |
doc_17837 | find an unused channel find_channel(force=False) -> Channel This will find and return an inactive Channel object. If there are no inactive Channels this function will return None. If there are no inactive channels and the force argument is True, this will find the Channel with the longest running Sound and return it.... | |
doc_17838 |
Rectified stereo image pair with ground-truth disparities. The two images are rectified such that every pixel in the left image has its corresponding pixel on the same scanline in the right image. That means that both images are warped such that they have the same orientation but a horizontal spatial offset (baseline... | |
doc_17839 | draw many images onto another blits(blit_sequence=(source, dest), ...), doreturn=1) -> [Rect, ...] or None blits((source, dest, area), ...)) -> [Rect, ...] blits((source, dest, area, special_flags), ...)) -> [Rect, ...] Draws many surfaces onto this Surface. It takes a sequence as input, with each of the elements cor... | |
doc_17840 | See Migration guide for more details. tf.compat.v1.signal.irfft, tf.compat.v1.spectral.irfft
tf.signal.irfft(
input_tensor, fft_length=None, name=None
)
Computes the inverse 1-dimensional discrete Fourier transform of a real-valued signal over the inner-most dimension of input. The inner-most dimension of input ... | |
doc_17841 |
Display a standardized deprecation. Parameters
sincestr
The release at which this API became deprecated.
messagestr, optional
Override the default deprecation message. The %(since)s, %(name)s, %(alternative)s, %(obj_type)s, %(addendum)s, and %(removal)s format specifiers will be replaced by the values of th... | |
doc_17842 | Which methods can be used for the cross origin request. | |
doc_17843 |
Adjust subplot parameters to give specified padding. Parameters
padfloat
Padding between the figure edge and the edges of subplots, as a fraction of the font-size.
h_pad, w_padfloat, optional
Padding (height/width) between edges of adjacent subplots. Defaults to pad.
recttuple of 4 floats, default: (0, 0,... | |
doc_17844 | switches the sprites from layer1 to layer2 switch_layer(layer1_nr, layer2_nr) -> None The layers number must exist, it is not checked. | |
doc_17845 | Creates a URL adapter for the given request. The URL adapter is created at a point where the request context is not yet set up so the request is passed explicitly. Changelog Changed in version 1.0: SERVER_NAME no longer implicitly enables subdomain matching. Use subdomain_matching instead. Changed in version 0.9: Th... | |
doc_17846 | Return the current signal handler for the signal signalnum. The returned value may be a callable Python object, or one of the special values signal.SIG_IGN, signal.SIG_DFL or None. Here, signal.SIG_IGN means that the signal was previously ignored, signal.SIG_DFL means that the default way of handling the signal was pre... | |
doc_17847 |
Bases: matplotlib.dates.RRuleLocator Make ticks on occurrences of each second. Mark every second in bysecond; bysecond can be an int or sequence. Default is to tick every second: bysecond = range(60) interval is the interval between each iteration. For example, if interval=2, mark every second occurrence. | |
doc_17848 |
Return this Axis' minor tick lines as a list of Line2Ds. | |
doc_17849 |
Add an Axes to the figure. Call signatures: add_axes(rect, projection=None, polar=False, **kwargs)
add_axes(ax)
Parameters
rectsequence of float
The dimensions [left, bottom, width, height] of the new Axes. All quantities are in fractions of figure width and height.
projection{None, 'aitoff', 'hammer', 'lamb... | |
doc_17850 | Return the control character corresponding to the given character (the character bit value is bitwise-anded with 0x1f). | |
doc_17851 | The line number within the string containing this example where the example begins. This line number is zero-based with respect to the beginning of the containing string. | |
doc_17852 | tf.compat.v1.metrics.false_negatives(
labels, predictions, weights=None, metrics_collections=None,
updates_collections=None, name=None
)
If weights is None, weights default to 1. Use weights of 0 to mask values.
Args
labels The ground truth values, a Tensor whose dimensions must match predictions. Wil... | |
doc_17853 | Returns the orientation of the set bits angle() -> theta Finds the approximate orientation (from -90 to 90 degrees) of the set bits in the mask. This works best if performed on a mask with only one connected component.
Returns:
the orientation of the set bits in the mask, it will return 0.0 if the mask has no bi... | |
doc_17854 | 'blogs.blog': lambda o: "/blogs/%s/" % o.slug,
'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
}
The model name used in this setting should be all lowercase, regardless of the case of the actual model class name. ADMINS Default: [] (Empty list) A list of all the people who get code error noti... | |
doc_17855 |
Fetch an attribute from the Module hierarchy of self.module. Parameters
target (str) – The fully-qualfiied name of the attribute to fetch Returns
The value of the attribute. Return type
Any | |
doc_17856 | Takes either a QueryDict or a dictionary. Like dict.update(), except it appends to the current dictionary items rather than replacing them. For example: >>> q = QueryDict('a=1', mutable=True)
>>> q.update({'a': '2'})
>>> q.getlist('a')
['1', '2']
>>> q['a'] # returns the last
'2' | |
doc_17857 | Return an output stream object suitable for use as the wsgi.errors of the request currently being processed. | |
doc_17858 | Returns the standard-deviation of all elements in the input tensor. If unbiased is False, then the standard-deviation will be calculated via the biased estimator. Otherwise, Bessel’s correction will be used. Parameters
input (Tensor) – the input tensor.
unbiased (bool) – whether to use the unbiased estimation or n... | |
doc_17859 | tkinter.font.BOLD
tkinter.font.ITALIC
tkinter.font.ROMAN | |
doc_17860 | actual time used in the previous tick get_rawtime() -> milliseconds Similar to Clock.get_time(), but does not include any time used while Clock.tick() was delaying to limit the framerate. | |
doc_17861 | A dictionary of the various implementation-specific flags passed through the -X command-line option. Option names are either mapped to their values, if given explicitly, or to True. Example: $ ./python -Xa=b -Xc
Python 3.2a3+ (py3k, Oct 16 2010, 20:14:50)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "li... | |
doc_17862 | >>> param = Parameter('foo', Parameter.KEYWORD_ONLY, default=42)
>>> str(param)
'foo=42'
>>> str(param.replace()) # Will create a shallow copy of 'param'
'foo=42'
>>> str(param.replace(default=Parameter.empty, annotation='spam'))
"foo:'spam'"
Changed in version 3.4: In Python 3.3 Parameter objects were allowed to h... | |
doc_17863 | Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
{
"name": "To Do List",
"description": "List existing 'To Do' items, or create a new item.",
"renders": [
"application/json",
"text/html"
],
"parses": [
"application/json",
"application/x-www-form-urlenco... | |
doc_17864 | Raise unittest.SkipTest on TLS certification validation failures. | |
doc_17865 |
Bases: torch.distributions.exp_family.ExponentialFamily Creates a Gamma distribution parameterized by shape concentration and rate. Example: >>> m = Gamma(torch.tensor([1.0]), torch.tensor([1.0]))
>>> m.sample() # Gamma distributed with concentration=1 and rate=1
tensor([ 0.1046])
Parameters
concentration (floa... | |
doc_17866 | Raised when a Unicode-related error occurs during encoding. It is a subclass of UnicodeError. | |
doc_17867 |
Run score function on (X, y) and get the appropriate features. Parameters
Xarray-like of shape (n_samples, n_features)
The training input samples.
yarray-like of shape (n_samples,)
The target values (class labels in classification, real numbers in regression). Returns
selfobject | |
doc_17868 | Moves all model parameters and buffers to the GPU. This also makes associated parameters and buffers different objects. So it should be called before constructing optimizer if the module will live on GPU while being optimized. Parameters
device (int, optional) – if specified, all parameters will be copied to that dev... | |
doc_17869 |
Applies a 3D max pooling over an input signal composed of several input planes. In the simplest case, the output value of the layer with input size (N,C,D,H,W)(N, C, D, H, W) , output (N,C,Dout,Hout,Wout)(N, C, D_{out}, H_{out}, W_{out}) and kernel_size (kD,kH,kW)(kD, kH, kW) can be precisely described as: out(Ni,... | |
doc_17870 | The part of the URL after the “?”. This is the raw value, use args for the parsed values. | |
doc_17871 |
Set whether to use locale settings for decimal sign and positive sign. Parameters
valbool or None
None resets to rcParams["axes.formatter.use_locale"] (default: False). | |
doc_17872 | os.CLD_KILLED
os.CLD_DUMPED
os.CLD_TRAPPED
os.CLD_STOPPED
os.CLD_CONTINUED
These are the possible values for si_code in the result returned by waitid(). Availability: Unix. New in version 3.3. Changed in version 3.9: Added CLD_KILLED and CLD_STOPPED values. | |
doc_17873 | See Migration guide for more details. tf.compat.v1.raw_ops.RaggedTensorToVariant
tf.raw_ops.RaggedTensorToVariant(
rt_nested_splits, rt_dense_values, batched_input, name=None
)
Encodes the given RaggedTensor and returns a variant Tensor. If batched_input is True, then input RaggedTensor is unbatched along the ze... | |
doc_17874 |
Use LaTeX to compile a pgf figure to pdf and convert it to png. | |
doc_17875 |
Return the PDF operator to paint a path. Parameters
fillbool
Fill the path with the fill color.
strokebool
Stroke the outline of the path with the line color. | |
doc_17876 |
Dict {group name -> group indices}. | |
doc_17877 |
This is a sequential container which calls the Conv 1d and Batch Norm 1d modules. During quantization this will be replaced with the corresponding fused module. | |
doc_17878 | Process a chunk of data. | |
doc_17879 | Return the name of the user owning the file. KeyError is raised if the file’s uid isn’t found in the system database. | |
doc_17880 | Send data to the socket. The socket must be connected to a remote socket. The optional flags argument has the same meaning as for recv() above. Unlike send(), this method continues to send data from bytes until either all data has been sent or an error occurs. None is returned on success. On error, an exception is rais... | |
doc_17881 |
Load and return the boston house-prices dataset (regression).
Samples total 506
Dimensionality 13
Features real, positive
Targets real 5. - 50. Read more in the User Guide. Parameters
return_X_ybool, default=False
If True, returns (data, target) instead of a Bunch object. See below for more informatio... | |
doc_17882 |
Apply trees in the forest to X, return leaf indices. 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 into a sparse csr_matrix. Returns
X_leavesndarr... | |
doc_17883 | The context data to be used when rendering the template. It must be a dict. Example: {'foo': 123} | |
doc_17884 |
Applies the element-wise function: Sigmoid(x)=σ(x)=11+exp(−x)\text{Sigmoid}(x) = \sigma(x) = \frac{1}{1 + \exp(-x)}
Shape:
Input: (N,∗)(N, *) where * means, any number of additional dimensions Output: (N,∗)(N, *) , same shape as the input Examples: >>> m = nn.Sigmoid()
>>> input = torch.randn(2)
>>> outpu... | |
doc_17885 |
Like Artist.get_window_extent, but includes any clipping. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns
Bbox
The enclosing bounding box (in figure pixel coordinates). | |
doc_17886 | Copies the elements from tensor into the positions specified by indices. For the purpose of indexing, the self tensor is treated as if it were a 1-D tensor. If accumulate is True, the elements in tensor are added to self. If accumulate is False, the behavior is undefined if indices contain duplicate elements. Paramete... | |
doc_17887 | POSIX.1-2001 (pax) format. | |
doc_17888 | See Migration guide for more details. tf.compat.v1.raw_ops.PopulationCount
tf.raw_ops.PopulationCount(
x, name=None
)
For each entry in x, calculates the number of 1 (on) bits in the binary representation of that entry.
Note: It is more efficient to first tf.bitcast your tensors into int32 or int64 and perform ... | |
doc_17889 | Raised when a mailbox is not empty but is expected to be, such as when deleting a folder that contains messages. | |
doc_17890 | See Migration guide for more details. tf.compat.v1.sparse.segment_sqrt_n
tf.compat.v1.sparse_segment_sqrt_n(
data, indices, segment_ids, name=None, num_segments=None
)
N is the size of the segment being reduced.
Args
data A Tensor with data that will be assembled in the output.
indices A 1-D Tenso... | |
doc_17891 |
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su... | |
doc_17892 |
Remove a callback based on its observer id. See also add_callback | |
doc_17893 |
Set the colormap to 'nipy_spectral'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | |
doc_17894 |
Pass a KeyEvent to all functions connected to key_release_event. | |
doc_17895 | See Migration guide for more details. tf.compat.v1.raw_ops.BiasAdd
tf.raw_ops.BiasAdd(
value, bias, data_format='NHWC', name=None
)
This is a special case of tf.add where bias is restricted to be 1-D. Broadcasting is supported, so value may have any number of dimensions.
Args
value A Tensor. Must be one... | |
doc_17896 |
Remove the observer with connection id cid. | |
doc_17897 | mmap.MADV_RANDOM
mmap.MADV_SEQUENTIAL
mmap.MADV_WILLNEED
mmap.MADV_DONTNEED
mmap.MADV_REMOVE
mmap.MADV_DONTFORK
mmap.MADV_DOFORK
mmap.MADV_HWPOISON
mmap.MADV_MERGEABLE
mmap.MADV_UNMERGEABLE
mmap.MADV_SOFT_OFFLINE
mmap.MADV_HUGEPAGE
mmap.MADV_NOHUGEPAGE
mmap.MADV_DONTDUMP
mmap.MADV_DODUMP
m... | |
doc_17898 | Convert 16-bit positive integers from host to network byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation. Deprecated since version 3.7: In case x does not fit in 16-bit unsigned integer, but does fit in a positive C int, ... | |
doc_17899 |
Extend the dataLim Bbox to include the given points. If no data is set currently, the Bbox will ignore its limits and set the bound to be the bounds of the xydata (xys). Otherwise, it will compute the bounds of the union of its current data and the data in xys. Parameters
xys2D array-like
The points to include ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.