_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_14100
True if this transform has a corresponding inverse transform.
doc_14101
Pointer to start of data.
doc_14102
True if this transform has a corresponding inverse transform.
doc_14103
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 to disk.
doc_14104
Get up to size random bytes. The function can return less bytes than requested. These bytes can be used to seed user-space random number generators or for cryptographic purposes. getrandom() relies on entropy gathered from device drivers and other sources of environmental noise. Unnecessarily reading large quantities o...
doc_14105
Configure the grid lines. Parameters visiblebool or None Whether to show the grid lines. If any kwargs are supplied, it is assumed you want the grid on and visible will be set to True. If visible is None and there are no kwargs, this toggles the visibility of the lines. which{'major', 'minor', 'both'} The g...
doc_14106
Runs the system checks on the test databases.
doc_14107
The ordinal day of the year.
doc_14108
tf.compat.v1.train.AdadeltaOptimizer( learning_rate=0.001, rho=0.95, epsilon=1e-08, use_locking=False, name='Adadelta' ) References: ADADELTA - An Adaptive Learning Rate Method: Zeiler, 2012 (pdf) Args learning_rate A Tensor or a floating point value. The learning rate. To match the exact form in the ...
doc_14109
Bases: object Base class for all tool containers, e.g. toolbars. Attributes toolmanagerToolManager The tools with which this ToolContainer wants to communicate. add_tool(tool, group, position=- 1)[source] Add a tool to this container. Parameters tooltool_like The tool to add, see ToolManager.get_t...
doc_14110
See torch.diag_embed()
doc_14111
Return a string representation of data. 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. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ...
doc_14112
Generate line pixel coordinates. Parameters r0, c0int Starting position (row, column). r1, c1int End position (row, column). Returns rr, cc(N,) ndarray of int Indices of pixels that belong to the line. May be used to directly index into an array, e.g. img[rr, cc] = 1. Notes Anti-aliased line gen...
doc_14113
tf.nn.conv3d( input, filters, strides, padding, data_format='NDHWC', dilations=None, name=None ) In signal processing, cross-correlation is a measure of similarity of two waveforms as a function of a time-lag applied to one of them. This is also known as a sliding dot product or sliding inner-product. Our Conv...
doc_14114
Return an object with matching indices as other object. Conform the object to the same index on all axes. Optional filling logic, placing NaN in locations having no value in the previous index. A new object is produced unless the new index is equivalent to the current one and copy=False. Parameters other:Object o...
doc_14115
Create a scatter plot with varying marker point size and color. The coordinates of each point are defined by two dataframe columns and filled circles are used to represent each point. This kind of plot is useful to see complex correlations between two variables. Points could be for instance natural 2D coordinates lik...
doc_14116
Check that left and right ExtensionArrays are equal. Parameters left, right:ExtensionArray The two arrays to compare. check_dtype:bool, default True Whether to check if the ExtensionArray dtypes are identical. index_values:numpy.ndarray, default None Optional index (shared by both left and right), used ...
doc_14117
Test whether the artist contains the mouse event. Parameters mouseeventmatplotlib.backend_bases.MouseEvent Returns containsbool Whether any values are within the radius. detailsdict An artist-specific dictionary of details of the event context, such as which points are contained in the pick radius. Se...
doc_14118
While this view is executing, self.object will contain the object that the view is operating upon. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.detail.SingleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.detai...
doc_14119
See Migration guide for more details. tf.compat.v1.raw_ops.OrderedMapPeek tf.raw_ops.OrderedMapPeek( key, indices, dtypes, capacity=0, memory_limit=0, container='', shared_name='', name=None ) underlying container does not contain this key this op will block until it does. This Op is optimized for performanc...
doc_14120
See Migration guide for more details. tf.compat.v1.raw_ops.AdjustContrast tf.raw_ops.AdjustContrast( images, contrast_factor, min_value, max_value, name=None ) Args images A Tensor. Must be one of the following types: uint8, int8, int16, int32, int64, float32, float64. contrast_factor A Tensor of ...
doc_14121
Print low-level information to stderr about the state of CPython’s memory allocator. If Python is configured –with-pydebug, it also performs some expensive internal consistency checks. New in version 3.3. CPython implementation detail: This function is specific to CPython. The exact output format is not defined here...
doc_14122
Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
doc_14123
Returns a new tensor with the natural logarithm of (1 + input). yi=log⁡e(xi+1)y_i = \log_{e} (x_i + 1) Note This function is more accurate than torch.log() for small values of input Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = to...
doc_14124
Registry entries subordinate to this key define the preferences of the current user. These preferences include the settings of environment variables, data about program groups, colors, printers, network connections, and application preferences.
doc_14125
Decorator for Artist.draw method. Provides routines that run before and after the draw call. The before and after functions are useful for changing artist-dependent renderer attributes or making other setup function calls, such as starting and flushing a mixed-mode renderer.
doc_14126
correct negative sizes normalize() -> None This will flip the width or height of a rectangle if it has a negative size. The rectangle will remain in the same place, with only the sides swapped.
doc_14127
os.O_NOINHERIT os.O_SHORT_LIVED os.O_TEMPORARY os.O_RANDOM os.O_SEQUENTIAL os.O_TEXT The above constants are only available on Windows.
doc_14128
Returns the elements attribute names as a list. The names are returned in an arbitrary order.
doc_14129
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_14130
Set the Figure instance the artist belongs to. Parameters figFigure
doc_14131
Set array flags WRITEABLE, ALIGNED, (WRITEBACKIFCOPY and UPDATEIFCOPY), respectively. These Boolean-valued flags affect how numpy interprets the memory area used by a (see Notes below). The ALIGNED flag can only be set to True if the data is actually aligned according to the type. The WRITEBACKIFCOPY and (deprecated)...
doc_14132
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_14133
Tries to return a string representing a frequency guess, generated by infer_freq. Returns None if it can’t autodetect the frequency.
doc_14134
A container for coverage results, created by Trace.results(). Should not be created directly by the user. update(other) Merge in data from another CoverageResults object. write_results(show_missing=True, summary=False, coverdir=None) Write coverage results. Set show_missing to show lines that had no hits. Set...
doc_14135
Selects SSL version 3 as the channel encryption protocol. This protocol is not be available if OpenSSL is compiled with the OPENSSL_NO_SSLv3 flag. Warning SSL version 3 is insecure. Its use is highly discouraged. Deprecated since version 3.6: OpenSSL has deprecated all version specific protocols. Use the default pro...
doc_14136
See Migration guide for more details. tf.compat.v1.estimator.add_metrics tf.estimator.add_metrics( estimator, metric_fn ) Example: def my_auc(labels, predictions): auc_metric = tf.keras.metrics.AUC(name="my_auc") auc_metric.update_state(y_true=labels, y_pred=predictions['logistic']) return {'auc': auc_metr...
doc_14137
Defaults to False. The SQL standard disallows referencing window functions in the WHERE clause and Django raises an exception when constructing a QuerySet that would do that.
doc_14138
tf.experimental.numpy.select( condlist, choicelist, default=0 ) See the NumPy documentation for numpy.select.
doc_14139
Given a certificate as an ASCII PEM string, returns a DER-encoded sequence of bytes for that same certificate.
doc_14140
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_14141
Return the corresponding inverse transformation. It holds x == self.inverted().transform(self.transform(x)). The return value of this method should be treated as temporary. An update to self does not cause a corresponding update to its inverted copy.
doc_14142
As a shortcut, you can use the convenient user_passes_test decorator which performs a redirect when the callable returns False: from django.contrib.auth.decorators import user_passes_test def email_check(user): return user.email.endswith('@example.com') @user_passes_test(email_check) def my_view(request): ......
doc_14143
This method is called once for every pair of neighboring nodes, as soon as both nodes are frozen. This method can be overloaded to obtain information about neightboring nodes, and/or to modify the behavior of the MCP algorithm. One example is the MCP_Connect class, which checks for meeting fronts using this hook.
doc_14144
A custom “change password” form which must accept a user keyword argument. The form is responsible for actually changing the user’s password. Defaults to PasswordChangeForm.
doc_14145
Return highest indexes in each strings in the Series/Index. Each of returned indexes corresponds to the position where the substring is fully contained between [start:end]. Return -1 on failure. Equivalent to standard str.rfind(). Parameters sub:str Substring being searched. start:int Left edge index. end...
doc_14146
Assert that the mock was never awaited. >>> mock = AsyncMock() >>> mock.assert_not_awaited()
doc_14147
DateOffset increments between the first business day of the year. Examples >>> from pandas.tseries.offsets import BYearBegin >>> ts = pd.Timestamp('2020-05-24 05:01:15') >>> ts + BYearBegin() Timestamp('2021-01-01 05:01:15') >>> ts - BYearBegin() Timestamp('2020-01-01 05:01:15') >>> ts + BYearBegin(-1) Timestamp('20...
doc_14148
Make new Index with passed list of labels deleted. Parameters labels:array-like or scalar errors:{‘ignore’, ‘raise’}, default ‘raise’ If ‘ignore’, suppress error and existing labels are dropped. Returns dropped:Index Will be same type as self, except for RangeIndex. Raises KeyError If not all of...
doc_14149
Subclass of ValueError with the following additional attributes: msg The unformatted error message. doc The JSON document being parsed. pos The start index of doc where parsing failed. lineno The line corresponding to pos. colno The column corresponding to pos. New in version 3.5.
doc_14150
The mimetype of jsonify responses. Default: 'application/json'
doc_14151
exception urllib.error.URLError The handlers raise this exception (or derived exceptions) when they run into a problem. It is a subclass of OSError. reason The reason for this error. It can be a message string or another exception instance. Changed in version 3.3: URLError has been made a subclass of OSError i...
doc_14152
Determine whether code is in tableC.7 (Inappropriate for canonical representation).
doc_14153
See Migration guide for more details. tf.compat.v1.config.functions_run_eagerly tf.config.functions_run_eagerly()
doc_14154
Sequence of Frame instances sorted from the oldest frame to the most recent frame. A traceback contains at least 1 frame. If the tracemalloc module failed to get a frame, the filename "<unknown>" at line number 0 is used. When a snapshot is taken, tracebacks of traces are limited to get_traceback_limit() frames. See th...
doc_14155
Set the current DTDHandler. If no DTDHandler is set, DTD events will be discarded.
doc_14156
See Migration guide for more details. tf.compat.v1.raw_ops.SparseSoftmaxCrossEntropyWithLogits tf.raw_ops.SparseSoftmaxCrossEntropyWithLogits( features, labels, name=None ) Unlike SoftmaxCrossEntropyWithLogits, this operation does not accept a matrix of label probabilities, but rather a single label per row of f...
doc_14157
Return whether the artist uses clipping.
doc_14158
tf.summary.trace_on( graph=True, profiler=False ) Must be invoked in eager mode. When enabled, TensorFlow runtime will collection information that can later be exported and consumed by TensorBoard. The trace is activated across the entire TensorFlow runtime and affects all threads of execution. To stop the trace a...
doc_14159
In-place version of divide()
doc_14160
have the channel send an event when playback stops set_endevent() -> None set_endevent(type) -> None When an endevent is set for a channel, it will send an event to the pygame queue every time a sound finishes playing on that channel (not just the first time). Use pygame.event.get() to retrieve the endevent once it's...
doc_14161
Deprecated function. Use skimage.segmentation.watershed instead. Find watershed basins in image flooded from given markers. Parameters imagendarray (2-D, 3-D, …) of integers Data array where the lowest value points are labeled first. markersint, or ndarray of int, same shape as image, optional The desired n...
doc_14162
Return Greater than of series and other, element-wise (binary operator gt). Equivalent to series > other, but with support to substitute a fill_value for missing data in either one of the inputs. Parameters other:Series or scalar value fill_value:None or float value, default None (NaN) Fill existing missing (...
doc_14163
First discrete difference of element. Calculates the difference of a Series element compared with another element in the Series (default is element in previous row). Parameters periods:int, default 1 Periods to shift for calculating difference, accepts negative values. Returns Series First differences of ...
doc_14164
An end tag did not match the innermost open start tag.
doc_14165
Return the hash of source_bytes as bytes. A hash-based .pyc file embeds the source_hash() of the corresponding source file’s contents in its header. New in version 3.7.
doc_14166
All pending input is processed, and a bytes object containing the remaining uncompressed output is returned. After calling flush(), the decompress() method cannot be called again; the only realistic action is to delete the object. The optional parameter length sets the initial size of the output buffer.
doc_14167
Represents the content range header. Changelog New in version 0.7. property length The length of the range or None. set(start, stop, length=None, units='bytes') Simple method to update the ranges. property start The start point of the range or None. property stop The stop point of the range (non...
doc_14168
Returns an iterator of the first value on every key’s value list.
doc_14169
Prunes tensor corresponding to parameter called name in module by removing the specified amount of (currently unpruned) units selected at random. Modifies module in place (and also return the modified module) by: 1) adding a named buffer called name+'_mask' corresponding to the binary mask applied to the parameter na...
doc_14170
Emit a short attention sound.
doc_14171
Applies Batch Normalization over a 2D or 3D input (a mini-batch of 1D inputs with optional additional channel dimension) as described in the paper Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift . y=x−E[x]Var[x]+ϵ∗γ+βy = \frac{x - \mathrm{E}[x]}{\sqrt{\mathrm{Var}[x] + \e...
doc_14172
Return series instance that has the specified roots. Returns a series representing the product (x - r[0])*(x - r[1])*...*(x - r[n-1]), where r is a list of roots. Parameters rootsarray_like List of roots. domain{[], None, array_like}, optional Domain for the resulting series. If None the domain is the inter...
doc_14173
Open the file locally, if there is no host name, or the host name is 'localhost'. Changed in version 3.2: This method is applicable only for local hostnames. When a remote hostname is given, an URLError is raised.
doc_14174
Set both the edgecolor and the facecolor. Parameters ccolor or list of rgba tuples See also Collection.set_facecolor, Collection.set_edgecolor For setting the edge or face color individually.
doc_14175
Return str(self).
doc_14176
Returns a string of HTML for representing this as an <input type="hidden">. **kwargs are passed to as_widget(). This method is primarily used internally. You should use a widget instead.
doc_14177
Clean up the server. May be overridden.
doc_14178
Fit the model from data in X and transform X. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training vector, where n_samples in the number of samples and n_features is the number of features. Returns X_newndarray of shape (n_samples, n_components)
doc_14179
Send signal sig to the process referred to by file descriptor pidfd. Python does not currently support the siginfo parameter; it must be None. The flags argument is provided for future extensions; no flag values are currently defined. See the pidfd_send_signal(2) man page for more information. Availability: Linux 5.1+ ...
doc_14180
Return the last n rows. This function returns last n rows from the object based on position. It is useful for quickly verifying data, for example, after sorting or appending rows. For negative values of n, this function returns all rows except the first n rows, equivalent to df[n:]. Parameters n:int, default 5 ...
doc_14181
Return item and drops from series. Raise KeyError if not found. Parameters item:label Index of the element that needs to be removed. Returns Value that is popped from series. Examples >>> ser = pd.Series([1,2,3]) >>> ser.pop(0) 1 >>> ser 1 2 2 3 dtype: int64
doc_14182
See torch.less_equal().
doc_14183
Scripting a function or nn.Module will inspect the source code, compile it as TorchScript code using the TorchScript compiler, and return a ScriptModule or ScriptFunction. TorchScript itself is a subset of the Python language, so not all features in Python work, but we provide enough functionality to compute on tenso...
doc_14184
Bases: matplotlib.text.Text, matplotlib.text._AnnotationBase An Annotation is a Text that can refer to a specific position xy. Optionally an arrow pointing from the text to xy can be drawn. Attributes xy The annotated position. xycoords The coordinate system for xy. arrow_patch A FancyArrowPatch to point from...
doc_14185
Return the height of the ellipse.
doc_14186
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_14187
In-place version of floor_divide()
doc_14188
Return a copy of a, rounded to ‘decimals’ places. When ‘decimals’ is negative, it specifies the number of positions to the left of the decimal point. The real and imaginary parts of complex numbers are rounded separately. Nothing is done if the array is not of float type and ‘decimals’ is greater than or equal to 0. ...
doc_14189
Must return a Boolean value; if the value is True, the request will be processed, and if it’s False, the request will be denied. This function can be overridden to implement access controls for a server. The default implementation always returns True.
doc_14190
Active contour model. Active contours by fitting snakes to features of images. Supports single and multichannel 2D images. Snakes can be periodic (for segmentation) or have fixed and/or free ends. The output snake has the same length as the input boundary. As the number of points is constant, make sure that the initi...
doc_14191
the current audio playback position get_current() -> track, seconds Returns both the current track and time of that track. This method works when the drive is either playing or paused. Note, track 0 is the first track on the CD. Track numbers start at zero.
doc_14192
Return the file descriptor number of the control fd.
doc_14193
The scaled height of the font in pixels get_sized_height(<size>=0) -> int Returns the height of the font. This is the average value of all glyphs in the font. It is not adjusted for strong or rotation.
doc_14194
'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_14195
Computes and returns a pruned version of input tensor t according to the pruning rule specified in compute_mask(). Parameters t (torch.Tensor) – tensor to prune (of same dimensions as default_mask). importance_scores (torch.Tensor) – tensor of importance scores (of same shape as t) used to compute mask for pruning...
doc_14196
Return an iterator for the month month in the year year similar to itermonthdates(), but not restricted by the datetime.date range. Days returned will be tuples consisting of a year, a month and a day of the month numbers. New in version 3.7.
doc_14197
if self.request.version == 'v1': return AccountSerializerVersion1 return AccountSerializer Reversing URLs for versioned APIs The reverse function included by REST framework ties in with the versioning scheme. You need to make sure to include the current request as a keyword argument, like so. from rest...
doc_14198
Bases: matplotlib.offsetbox.DraggableOffsetBox Wrapper around a Legend to support mouse dragging. Parameters legendLegend The Legend instance to wrap. use_blitbool, optional Use blitting for faster image composition. For details see FuncAnimation. update{'loc', 'bbox'}, optional If "loc", update the loc...
doc_14199
See Migration guide for more details. tf.compat.v1.keras.applications.mobilenet.preprocess_input tf.keras.applications.mobilenet.preprocess_input( x, data_format=None ) Usage example with applications.MobileNet: i = tf.keras.layers.Input([None, None, 3], dtype = tf.uint8) x = tf.cast(i, tf.float32) x = tf.keras....