_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_7900
See Migration guide for more details. tf.compat.v1.keras.utils.model_to_dot tf.keras.utils.model_to_dot( model, show_shapes=False, show_dtype=False, show_layer_names=True, rankdir='TB', expand_nested=False, dpi=96, subgraph=False ) Arguments model A Keras model instance. show_shapes whether to...
doc_7901
tf.name_scope( name ) This context manager pushes a name scope, which will make the name of all operations added within it have a prefix. For example, to define a new Python op called my_op: def my_op(a, b, c, name=None): with tf.name_scope("MyOp") as scope: a = tf.convert_to_tensor(a, name="a") b = tf.c...
doc_7902
Real size of the file.
doc_7903
The real part of the scalar.
doc_7904
Alias for set_linewidth.
doc_7905
Combine multiple applications as a single WSGI application. Requests are dispatched to an application based on the path it is mounted under. Parameters app (WSGIApplication) – The WSGI application to dispatch to if the request doesn’t match a mounted path. mounts (Optional[Dict[str, WSGIApplication]]) – Maps path ...
doc_7906
Retrieve a file in binary transfer mode. cmd should be an appropriate RETR command: 'RETR filename'. The callback function is called for each block of data received, with a single bytes argument giving the data block. The optional blocksize argument specifies the maximum chunk size to read on the low-level socket objec...
doc_7907
Initialize self. See help(type(self)) for accurate signature.
doc_7908
Object that is equal to anything. Used to test mixed type comparison.
doc_7909
Set the linestyle(s) for the collection. linestyle description '-' or 'solid' solid line '--' or 'dashed' dashed line '-.' or 'dashdot' dash-dotted line ':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq), where onoffseq is an even length tup...
doc_7910
Sets the coordinates of the vector. update() -> None update(int) -> None update(float) -> None update(Vector2) -> None update(x, y) -> None update((x, y)) -> None Sets coordinates x and y in place. New in pygame 1.9.5.
doc_7911
Stop collecting profiling data and record the results internally as the current profile.
doc_7912
CGI-based invocation via sys.stdin, sys.stdout, sys.stderr and os.environ. This is useful when you have a WSGI application and want to run it as a CGI script. Simply invoke CGIHandler().run(app), where app is the WSGI application object you wish to invoke. This class is a subclass of BaseCGIHandler that sets wsgi.run_o...
doc_7913
Shift index by desired number of periods with an optional time freq. When freq is not passed, shift the index without realigning the data. If freq is passed (in this case, the index must be date or datetime, or it will raise a NotImplementedError), the index will be increased using the periods and the freq. freq can ...
doc_7914
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. dirs_exist_ok dictates whether to raise an exception in case dst or any missing parent directory already exists. Permissions and times of directories are copied with copystat(), individual files are co...
doc_7915
class sklearn.model_selection.StratifiedShuffleSplit(n_splits=10, *, test_size=None, train_size=None, random_state=None) [source] Stratified ShuffleSplit cross-validator Provides train/test indices to split data in train/test sets. This cross-validation object is a merge of StratifiedKFold and ShuffleSplit, which ret...
doc_7916
Return rows, items or columns of X using indices. Warning This utility is documented, but private. This means that backward compatibility might be broken without any deprecation cycle. Parameters Xarray-like, sparse-matrix, list, pandas.DataFrame, pandas.Series Data from which to sample rows, items or columns...
doc_7917
Build a pair of connected socket objects using the given address family, socket type, and protocol number. Address family, socket type, and protocol number are as for the socket() function above. The default family is AF_UNIX if defined on the platform; otherwise, the default is AF_INET. The newly created sockets are n...
doc_7918
Copies elements from source into self tensor at positions where the mask is True. The shape of mask must be broadcastable with the shape of the underlying tensor. The source should have at least as many elements as the number of ones in mask Parameters mask (BoolTensor) – the boolean mask source (Tensor) – the ten...
doc_7919
Globally prunes tensors corresponding to all parameters in parameters by applying the specified pruning_method. Modifies modules in place by: 1) adding a named buffer called name+'_mask' corresponding to the binary mask applied to the parameter name by the pruning method. 2) replacing the parameter name by its pruned...
doc_7920
Informs all validators that the password has been changed. This can be used by validators such as one that prevents password reuse. This should be called once the password has been successfully changed. For subclasses of AbstractBaseUser, the password field will be marked as “dirty” when calling set_password() which tr...
doc_7921
Convert timezone-aware Timestamp to another time zone. Parameters tz:str, pytz.timezone, dateutil.tz.tzfile or None Time zone for time which Timestamp will be converted to. None will remove timezone holding UTC time. Returns converted:Timestamp Raises TypeError If Timestamp is tz-naive. Examples...
doc_7922
Return (x1 == x2) element-wise. Parameters x1, x2array_like Input arrays. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output). outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must h...
doc_7923
Parallel coordinates plotting. Parameters frame:DataFrame class_column:str Column name containing class names. cols:list, optional A list of column names to use. ax:matplotlib.axis, optional Matplotlib axis object. color:list or tuple, optional Colors to use for the different classes. use_column...
doc_7924
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 float or 2D array-like or None animated bool array array-like clim (vmin: float, vmax: float) clip_box B...
doc_7925
Predict class labels for samples in X. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape [n_samples] Predicted class label per sample.
doc_7926
The basic interface you have to implement in order to replace the default session interface which uses werkzeug’s securecookie implementation. The only methods you have to implement are open_session() and save_session(), the others have useful defaults which you don’t need to change. The session object returned by the ...
doc_7927
'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_7928
Attribute to group 'radio' like tools (mutually exclusive). str that identifies the group or None if not belonging to a group.
doc_7929
Generate an environ dict from the given arguments, make a request to the application using it, and return the response. Parameters args (Any) – Passed to EnvironBuilder to create the environ for the request. If a single arg is passed, it can be an existing EnvironBuilder or an environ dict. buffered (bool) – Conve...
doc_7930
Return the string representation of a new unique identifier. This wraps the Windows API functions UuidCreate() and UuidToString().
doc_7931
Iter the response encoded with the encoding of the response. If the response object is invoked as WSGI application the return value of this method is used as application iterator unless direct_passthrough was activated. Return type Iterator[bytes]
doc_7932
Session object used by session. id time timeout ticket_lifetime_hint has_ticket
doc_7933
Draw samples from a standard Cauchy distribution with mode = 0. Also known as the Lorentz distribution. Note New code should use the standard_cauchy method of a default_rng() instance instead; please see the Quick Start. Parameters sizeint or tuple of ints, optional Output shape. If the given shape is, e.g., ...
doc_7934
Surface colorspace conversion colorspace(Surface, format, DestSurface = None) -> Surface Allows for conversion from "RGB" to a destination colorspace of "HSV" or "YUV". The source and destination surfaces must be the same size and pixel depth. This is useful for computer vision on devices with limited processing powe...
doc_7935
migrate, which is responsible for applying and unapplying migrations. makemigrations, which is responsible for creating new migrations based on the changes you have made to your models. sqlmigrate, which displays the SQL statements for a migration. showmigrations, which lists a project’s migrations and their status....
doc_7936
Use an index array to construct a new array from a set of choices. Refer to numpy.choose for full documentation. See also numpy.choose equivalent function
doc_7937
The underlying binary buffer (a BufferedIOBase instance) that TextIOBase deals with. This is not part of the TextIOBase API and may not exist in some implementations.
doc_7938
numpy.uint16 numpy.uint32 numpy.uint64 Alias for the unsigned integer types (one of numpy.ubyte, numpy.ushort, numpy.uintc, numpy.uint and numpy.ulonglong) with the specified number of bits. Compatible with the C99 uint8_t, uint16_t, uint32_t, and uint64_t, respectively.
doc_7939
See Migration guide for more details. tf.compat.v1.errors.AbortedError tf.errors.AbortedError( node_def, op, message ) For example, running a tf.QueueBase.enqueue operation may raise AbortedError if a tf.QueueBase.close operation previously ran. Attributes error_code The integer error code that describe...
doc_7940
Bases: skimage.measure.fit.BaseModel Total least squares estimator for 2D circles. The functional model of the circle is: r**2 = (x - xc)**2 + (y - yc)**2 This estimator minimizes the squared distances from all points to the circle: min{ sum((r - sqrt((x_i - xc)**2 + (y_i - yc)**2))**2) } A minimum number of 3 poin...
doc_7941
Turn the axes box on or off on the current axes. Parameters onbool or None The new Axes box state. If None, toggle the state. See also matplotlib.axes.Axes.set_frame_on() matplotlib.axes.Axes.get_frame_on()
doc_7942
Restore the state of the terminal modes to what it was at the last call to savetty().
doc_7943
Fills the elements of the self tensor with value val by selecting the indices in the order given in index. Parameters dim (int) – dimension along which to index index (LongTensor) – indices of self tensor to fill in val (float) – the value to fill with Example:: >>> x = torch.tensor([[1, 2, 3], [4, 5, 6], [7...
doc_7944
Top-k Accuracy classification score. This metric computes the number of times where the correct label is among the top k labels predicted (ranked by predicted scores). Note that the multilabel case isn’t covered here. Read more in the User Guide Parameters y_truearray-like of shape (n_samples,) True labels. y...
doc_7945
See Migration guide for more details. tf.compat.v1.raw_ops.FusedPadConv2D tf.raw_ops.FusedPadConv2D( input, paddings, filter, mode, strides, padding, name=None ) Similar to FusedResizeAndPadConv2d, this op allows for an optimized implementation where the spatial padding transformation stage is fused with the im2...
doc_7946
Not currently used.
doc_7947
Set list_select_related to tell Django to use select_related() in retrieving the list of objects on the admin change list page. This can save you a bunch of database queries. The value should be either a boolean, a list or a tuple. Default is False. When value is True, select_related() will always be called. When value...
doc_7948
Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc)) <type 'Locator'> >>> print(loc()) [1, 2, 3, 4]
doc_7949
Perform an area closing of the image. Area closing removes all dark structures of an image with a surface smaller than area_threshold. The output image is larger than or equal to the input image for every pixel and all local minima have at least a surface of area_threshold pixels. Area closings are similar to morphol...
doc_7950
tf.experimental.numpy.mod( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.mod.
doc_7951
grow or shrink the rectangle size inflate(x, y) -> Rect Returns a new rectangle with the size changed by the given offset. The rectangle remains centered around its current center. Negative values will shrink the rectangle. Note, uses integers, if the offset given is too small(< 2 > -2), center will be off.
doc_7952
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters valuesarray The input v...
doc_7953
See Migration guide for more details. tf.compat.v1.raw_ops.QueueDequeueUpTo tf.raw_ops.QueueDequeueUpTo( handle, n, component_types, timeout_ms=-1, name=None ) This operation is not supported by all queues. If a queue does not support DequeueUpTo, then an Unimplemented error is returned. If the queue is closed a...
doc_7954
Return whether this axes supports the pan/zoom button functionality. This axes object does not support interactive pan/zoom.
doc_7955
Creates an SP-GiST index. Provide an integer value from 10 to 100 to the fillfactor parameter to tune how packed the index pages will be. PostgreSQL’s default is 90. Changed in Django 3.2: Positional argument *expressions was added in order to support functional indexes.
doc_7956
Injects the URL defaults for the given endpoint directly into the values dictionary passed. This is used internally and automatically called on URL building. Changelog New in version 0.7. Parameters endpoint (str) – values (dict) – Return type None
doc_7957
Name of the kernel filter. Constant Meaning KQ_FILTER_READ Takes a descriptor and returns whenever there is data available to read KQ_FILTER_WRITE Takes a descriptor and returns whenever there is data available to write KQ_FILTER_AIO AIO requests KQ_FILTER_VNODE Returns when one or more of the requested eve...
doc_7958
Return the approximate size of the queue. Note, qsize() > 0 doesn’t guarantee that a subsequent get() will not block, nor will qsize() < maxsize guarantee that put() will not block.
doc_7959
Called when a pan operation completes (when the mouse button is up.) Notes This is intended to be overridden by new projection types.
doc_7960
Does nothing: this transformer is stateless. This method is just there to mark the fact that this transformer can work in a streaming setup. Parameters Xndarray of shape [n_samples, n_features] Training data.
doc_7961
Returns a tensor that is a transposed version of input. The given dimensions dim0 and dim1 are swapped. The resulting out tensor shares its underlying storage with the input tensor, so changing the content of one would change the content of the other. Parameters input (Tensor) – the input tensor. dim0 (int) – the ...
doc_7962
Give a new shape to the array without changing its data. Returns a masked array containing the same data, but with a new shape. The result is a view on the original array; if this is not possible, a ValueError is raised. Parameters shapeint or tuple of ints The new shape should be compatible with the original s...
doc_7963
Return the picking behavior of the artist. The possible values are described in set_picker. See also set_picker, pickable, pick
doc_7964
A string indicating how the repr() function behaves for floats. If the string has value 'short' then for a finite float x, repr(x) aims to produce a short string with the property that float(repr(x)) == x. This is the usual behaviour in Python 3.1 and later. Otherwise, float_repr_style has value 'legacy' and repr(x) be...
doc_7965
Perform the command’s actions for app_config, which will be an AppConfig instance corresponding to an application label given on the command line.
doc_7966
The display name portion of the address, if any, with all quoting removed. If the address does not have a display name, this attribute will be an empty string.
doc_7967
Return the total length, without trailing padding, of an ancillary data item with associated data of the given length. This value can often be used as the buffer size for recvmsg() to receive a single item of ancillary data, but RFC 3542 requires portable applications to use CMSG_SPACE() and thus include space for padd...
doc_7968
The degree of the series. New in version 1.5.0. Returns degreeint Degree of the series, one less than the number of coefficients.
doc_7969
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ...
doc_7970
Return fast binary morphological opening of an image. This function returns the same result as greyscale opening but performs faster for binary images. The morphological opening on an image is defined as an erosion followed by a dilation. Opening can remove small bright spots (i.e. “salt”) and connect small dark crac...
doc_7971
Wide char variant of putch(), accepting a Unicode value.
doc_7972
Installs the pgcrypto extension.
doc_7973
Applies the element-wise function: PReLU(x)=max⁡(0,x)+a∗min⁡(0,x)\text{PReLU}(x) = \max(0,x) + a * \min(0,x) or PReLU(x)={x, if x≥0ax, otherwise \text{PReLU}(x) = \begin{cases} x, & \text{ if } x \geq 0 \\ ax, & \text{ otherwise } \end{cases} Here aa is a learnable parameter. When called without arguments, nn....
doc_7974
Connect to a host on a given port. The defaults are to connect to the local host at the standard SMTP port (25). If the hostname ends with a colon (':') followed by a number, that suffix will be stripped off and the number interpreted as the port number to use. This method is automatically invoked by the constructor if...
doc_7975
Remove func from list of callbacks. args and kwargs are optional and used to distinguish between copies of the same function registered to be called with different arguments. This behavior is deprecated. In the future, *args, **kwargs won't be considered anymore; to keep a specific callback removable by itself, pass ...
doc_7976
Returns the set of attributes, functions or methods of ref_api not found on other_api, except for a defined list of items to be ignored in this check specified in ignore. By default this skips private attributes beginning with ‘_’ but includes all magic methods, i.e. those starting and ending in ‘__’. New in version 3...
doc_7977
Raised when either a docstring or expression that may be split over several lines is not completed anywhere in the file, for example: """Beginning of docstring or: [1, 2, 3
doc_7978
The arguments used to launch the process. This may be a list or a string.
doc_7979
Perform the equivalent of an lstat() system call on the given path. Similar to stat(), but does not follow symbolic links. Return a stat_result object. On platforms that do not support symbolic links, this is an alias for stat(). As of Python 3.3, this is equivalent to os.stat(path, dir_fd=dir_fd, follow_symlinks=False...
doc_7980
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_7981
The total number (int) of expected bytes.
doc_7982
Partial Least Squares transformer and regressor. Read more in the User Guide. New in version 0.8. Parameters n_componentsint, default=2 Number of components to keep. Should be in [1, min(n_samples, n_features, n_targets)]. scalebool, default=True Whether to scale X and Y. algorithm{‘nipals’, ‘svd’}, def...
doc_7983
Bases: matplotlib.colors.Normalize Dummy replacement for Normalize, for the case where we want to use indices directly in a ScalarMappable. Parameters vmin, vmaxfloat or None If vmin and/or vmax is not given, they are initialized from the minimum and maximum value, respectively, of the first input processed; i....
doc_7984
Returns whether the kernel is stationary.
doc_7985
The last colorbar associated with this ScalarMappable. May be None.
doc_7986
In-place version of atan2()
doc_7987
Draw a filled black rectangle from (x1, y1) to (x2, y2).
doc_7988
Return the entire message flattened as a string. When optional unixfrom is true, the envelope header is included in the returned string. unixfrom defaults to False. For backward compatibility with the base Message class maxheaderlen is accepted, but defaults to None, which means that by default the line length is contr...
doc_7989
Returns a string (or iterable of strings) that defines the ordering that will be applied to the queryset. Returns ordering by default.
doc_7990
Subset of a dataset at specified indices. Parameters dataset (Dataset) – The whole Dataset indices (sequence) – Indices in the whole set selected for subset
doc_7991
Make an entry into the ControlCondition table for this control.
doc_7992
Like Path.chmod() but, if the path points to a symbolic link, the symbolic link’s mode is changed rather than its target’s.
doc_7993
tf.compat.v1.metrics.mean_relative_error( labels, predictions, normalizer, weights=None, metrics_collections=None, updates_collections=None, name=None ) The mean_relative_error function creates two local variables, total and count that are used to compute the mean relative absolute error. This average is weigh...
doc_7994
An incomplete character was found in the input.
doc_7995
See Migration guide for more details. tf.compat.v1.keras.datasets.reuters.load_data tf.keras.datasets.reuters.load_data( path='reuters.npz', num_words=None, skip_top=0, maxlen=None, test_split=0.2, seed=113, start_char=1, oov_char=2, index_from=3, **kwargs ) This is a dataset of 11,228 newswires from Reuters...
doc_7996
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_7997
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
doc_7998
This field handles arrays by reproducing the underlying field a fixed number of times. base_field This is a required argument. It specifies the form field to be repeated. size This is the fixed number of times the underlying field will be used. remove_trailing_nulls By default, this is set to False. Whe...
doc_7999
Flag indicating whether or not the global data structures have been initialized. This is set to True by init().