_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_25700 | See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_float
tf.compat.v1.flags.DEFINE_float(
name, default, help, lower_bound=None, upper_bound=None,
flag_values=_flagvalues.FLAGS, **args
)
If lower_bound or upper_bound are set, then this flag must be within the given range.
Args
name ... | |
doc_25701 | from django.shortcuts import get_object_or_404
from myapps.serializers import UserSerializer
from rest_framework import viewsets
from rest_framework.response import Response
class UserViewSet(viewsets.ViewSet):
"""
A simple ViewSet for listing or retrieving users.
"""
def list(self, request):
q... | |
doc_25702 | A subclass of ConnectionResetError and BadStatusLine. Raised by HTTPConnection.getresponse() when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed the connection. New in version 3.5: Previously, BadStatusLine('') was raised. | |
doc_25703 |
Returns the diagonal of the kernel k(X, X). The result of this method is identical to np.diag(self(X)); however, it can be evaluated more efficiently since only the diagonal is evaluated. Parameters
Xarray-like of shape (n_samples_X, n_features) or list of object
Argument to the kernel. Returns
K_diagndar... | |
doc_25704 |
Return 'PROPNAME or alias' if s has an alias, else return 'PROPNAME', formatted for reST. e.g., for the line markerfacecolor property, which has an alias, return 'markerfacecolor or mfc' and for the transform property, which does not, return 'transform'. | |
doc_25705 |
Add one polynomial to another. Returns the sum of two polynomials c1 + c2. The arguments are sequences of coefficients from lowest order term to highest, i.e., [1,2,3] represents the polynomial 1 + 2*x + 3*x**2. Parameters
c1, c2array_like
1-D arrays of polynomial coefficients ordered from low to high. Retur... | |
doc_25706 | Return the file system representation of the path. If str or bytes is passed in, it is returned unchanged. Otherwise __fspath__() is called and its value is returned as long as it is a str or bytes object. In all other cases, TypeError is raised. New in version 3.6. | |
doc_25707 | True if the address is allocated for public networks. See iana-ipv4-special-registry (for IPv4) or iana-ipv6-special-registry (for IPv6). New in version 3.4. | |
doc_25708 |
Return the values (min, max) that are mapped to the colormap limits. | |
doc_25709 |
Roll provided date forward to next offset only if not on offset. Returns
TimeStamp
Rolled timestamp if not on offset, otherwise unchanged timestamp. | |
doc_25710 | tf.compat.v1.train.Supervisor(
graph=None, ready_op=USE_DEFAULT, ready_for_local_init_op=USE_DEFAULT,
is_chief=True, init_op=USE_DEFAULT, init_feed_dict=None,
local_init_op=USE_DEFAULT, logdir=None, summary_op=USE_DEFAULT,
saver=USE_DEFAULT, global_step=USE_DEFAULT, save_summaries_secs=120,
save_mod... | |
doc_25711 | See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesDeserializeEnsemble
tf.raw_ops.BoostedTreesDeserializeEnsemble(
tree_ensemble_handle, stamp_token, tree_ensemble_serialized, name=None
)
ensemble.
Args
tree_ensemble_handle A Tensor of type resource. Handle to the tree ensemble.
... | |
doc_25712 | Schedule the callback callback to be called with args arguments at the next iteration of the event loop. Callbacks are called in the order in which they are registered. Each callback will be called exactly once. An optional keyword-only context argument allows specifying a custom contextvars.Context for the callback to... | |
doc_25713 | See Migration guide for more details. tf.compat.v1.image.yuv_to_rgb
tf.image.yuv_to_rgb(
images
)
Outputs a tensor of the same shape as the images tensor, containing the RGB value of the pixels. The output is only well defined if the Y value in images are in [0,1], U and V value are in [-0.5,0.5]. As per the abo... | |
doc_25714 |
Least Squares projection of the data onto the sparse components. To avoid instability issues in case the system is under-determined, regularization can be applied (Ridge regression) via the ridge_alpha parameter. Note that Sparse PCA components orthogonality is not enforced as in PCA hence one cannot use a simple lin... | |
doc_25715 | See Migration guide for more details. tf.compat.v1.raw_ops.InfeedEnqueue
tf.raw_ops.InfeedEnqueue(
input, shape=[], layout=[], device_ordinal=-1, name=None
)
Args
input A Tensor. A tensor that will be provided using the infeed mechanism.
shape An optional tf.TensorShape or list of ints. Defaults t... | |
doc_25716 |
Draw samples from Gaussian process and evaluate at X. Parameters
Xarray-like of shape (n_samples, n_features) or list of object
Query points where the GP is evaluated.
n_samplesint, default=1
The number of samples drawn from the Gaussian process
random_stateint, RandomState instance or None, default=0
D... | |
doc_25717 | Same as equivalent method in the Document class. | |
doc_25718 | See Migration guide for more details. tf.compat.v1.sparse.transpose, tf.compat.v1.sparse_transpose
tf.sparse.transpose(
sp_input, perm=None, name=None
)
The returned tensor's dimension i will correspond to the input dimension perm[i]. If perm is not given, it is set to (n-1...0), where n is the rank of the input... | |
doc_25719 |
Return the label used for this artist in the legend. | |
doc_25720 | A regular expression specified either as a string or a compiled regular expression object. | |
doc_25721 | A class attribute, as a format string, that describes the SQL that is generated for this aggregate. Defaults to '%(function)s(%(distinct)s%(expressions)s)'. | |
doc_25722 | See Migration guide for more details. tf.compat.v1.raw_ops.SymbolicGradient
tf.raw_ops.SymbolicGradient(
input, Tout, f, name=None
)
Args
input A list of Tensor objects. a list of input tensors of size N + M;
Tout A list of tf.DTypes that has length >= 1. the type list for the input list.
f ... | |
doc_25723 |
default_lon
The default center longitude.
default_lat
The default center latitude.
default_zoom
The default zoom level to use. Defaults to 4.
extra_js
Sequence of URLs to any extra JavaScript to include.
map_template
Override the template used to generate the JavaScript slippy map. Default is 'gis/a... | |
doc_25724 | Removes a key or index and returns a (key, value) item. | |
doc_25725 |
Draw a stacked area plot. An area plot displays quantitative data visually. This function wraps the matplotlib area function. Parameters
x:label or position, optional
Coordinates for the X axis. By default uses the index.
y:label or position, optional
Column to plot. By default uses all columns.
stacked:b... | |
doc_25726 | Directory. | |
doc_25727 | Which headers can be sent with the cross origin request. | |
doc_25728 | The set of all exceptions (as a tuple) that methods of FTP instances may raise as a result of problems with the FTP connection (as opposed to programming errors made by the caller). This set includes the four exceptions listed above as well as OSError and EOFError. | |
doc_25729 |
Resets parameter data pointer so that they can use faster code paths. Right now, this works only if the module is on the GPU and cuDNN is enabled. Otherwise, it’s a no-op. | |
doc_25730 | tf.nn.depthwise_conv2d(
input, filter, strides, padding, data_format=None, dilations=None, name=None
)
Given a 4D input tensor ('NHWC' or 'NCHW' data formats) and a filter tensor of shape [filter_height, filter_width, in_channels, channel_multiplier] containing in_channels convolutional filters of depth 1, depthwi... | |
doc_25731 | class ast.Sub
class ast.Mult
class ast.Div
class ast.FloorDiv
class ast.Mod
class ast.Pow
class ast.LShift
class ast.RShift
class ast.BitOr
class ast.BitXor
class ast.BitAnd
class ast.MatMult
Binary operator tokens. | |
doc_25732 | sklearn.decomposition.dict_learning(X, n_components, *, alpha, max_iter=100, tol=1e-08, method='lars', n_jobs=None, dict_init=None, code_init=None, callback=None, verbose=False, random_state=None, return_n_iter=False, positive_dict=False, positive_code=False, method_max_iter=1000) [source]
Solves a dictionary learnin... | |
doc_25733 | A ParameterizedMIMEHeader class that handles the Content-Disposition header.
content_disposition
inline and attachment are the only valid values in common use. | |
doc_25734 |
Set a title for the Axes. Set one of the three available Axes titles. The available titles are positioned above the Axes in the center, flush with the left edge, and flush with the right edge. Parameters
labelstr
Text to use for the title
fontdictdict
A dictionary controlling the appearance of the title tex... | |
doc_25735 |
Parameters
urlslist of str or None
Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends. | |
doc_25736 | Determines the HttpResponse for the delete_view() stage. response_delete is called after the object has been deleted. You can override it to change the default behavior after the object has been deleted. obj_display is a string with the name of the deleted object. obj_id is the serialized identifier used to retrieve th... | |
doc_25737 | A possible value for the how parameter to pthread_sigmask() indicating that signals are to be unblocked. New in version 3.3. | |
doc_25738 |
Set how to draw endpoints of lines. Parameters
csCapStyle or {'butt', 'projecting', 'round'} | |
doc_25739 | tf.negative Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.negative, tf.compat.v1.negative
tf.math.negative(
x, name=None
)
I.e., \(y = -x\).
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64, int8, int16, int32, int64, complex64,... | |
doc_25740 |
Calculate the expanding standard error of mean. Parameters
ddof:int, default 1
Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements. *args
For NumPy compatibility and will not have an effect on the result. **kwargs
For NumPy compatibility and will... | |
doc_25741 | Return a deep copy of x. | |
doc_25742 |
Return random bytes. Note New code should use the bytes method of a default_rng() instance instead; please see the Quick Start. Parameters
lengthint
Number of random bytes. Returns
outbytes
String of length length. See also Generator.bytes
which should be used for new code. Examples >>> np.r... | |
doc_25743 | A set object indicating which functions in the os module accept an open file descriptor for their dir_fd parameter. Different platforms provide different features, and the underlying functionality Python uses to implement the dir_fd parameter is not available on all platforms Python supports. For consistency’s sake, fu... | |
doc_25744 |
Return the getters and actual values as list of strings. | |
doc_25745 |
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_25746 | Delete the ACLs (remove any rights) set for who on mailbox. | |
doc_25747 |
Make a 2D histogram plot. Parameters
x, yarray-like, shape (n, )
Input values
binsNone or int or [int, int] or array-like or [array, array]
The bin specification: If int, the number of bins for the two dimensions (nx=ny=bins). If [int, int], the number of bins in each dimension (nx, ny = bins). If array-li... | |
doc_25748 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizeAndDequantizeV3
tf.raw_ops.QuantizeAndDequantizeV3(
input, input_min, input_max, num_bits, signed_input=True, range_given=True,
narrow_range=False, axis=-1, name=None
)
This is almost identical to QuantizeAndDequantizeV2, except that num_bits... | |
doc_25749 |
Align two objects on their axes with the specified join method. Join method is specified for each axis Index. Parameters
other:DataFrame or Series
join:{‘outer’, ‘inner’, ‘left’, ‘right’}, default ‘outer’
axis:allowed axis of the other object, default None
Align on index (0), columns (1), or both (None).
... | |
doc_25750 | Return True if path refers to an existing path. Returns True for broken symbolic links. Equivalent to exists() on platforms lacking os.lstat(). Changed in version 3.6: Accepts a path-like object. | |
doc_25751 | Generates the SQL fragment for the expression. Returns a tuple (sql, params), where sql is the SQL string, and params is the list or tuple of query parameters. The compiler is an SQLCompiler object, which has a compile() method that can be used to compile other expressions. The connection is the connection used to exec... | |
doc_25752 | See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterDiv
tf.raw_ops.ResourceScatterDiv(
resource, indices, updates, name=None
)
This operation computes # Scalar indices
ref[indices, ...] /= updates[...]
# Vector indices (for each i)
ref[indices[i], ...] /= updates[i, ...]
# High rank indic... | |
doc_25753 | tf.metrics.Metric Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.Metric
tf.keras.metrics.Metric(
name=None, dtype=None, **kwargs
)
Args
name (Optional) string name of the metric instance.
dtype (Optional) data type of the metric result.
**kwargs ... | |
doc_25754 | sklearn.metrics.rand_score(labels_true, labels_pred) [source]
Rand index. The Rand Index computes a similarity measure between two clusterings by considering all pairs of samples and counting pairs that are assigned in the same or different clusters in the predicted and true clusterings. The raw RI score is: RI = (nu... | |
doc_25755 | See Migration guide for more details. tf.compat.v1.train.Feature
Attributes
bytes_list BytesList bytes_list
float_list FloatList float_list
int64_list Int64List int64_list | |
doc_25756 | See Migration guide for more details. tf.compat.v1.raw_ops.QuantizedConv2DAndReluAndRequantize
tf.raw_ops.QuantizedConv2DAndReluAndRequantize(
input, filter, min_input, max_input, min_filter, max_filter, min_freezed_output,
max_freezed_output, strides, padding, out_type=tf.dtypes.quint8, dilations=[1,
1, ... | |
doc_25757 |
Return an array with the elements of self left-justified in a string of length width. See also char.ljust | |
doc_25758 | Create an object with a writable value attribute and return a proxy for it. | |
doc_25759 |
Set the value array from array-like A. Parameters
Aarray-like or None
The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A. | |
doc_25760 | See Migration guide for more details. tf.compat.v1.linalg.lu_solve
tf.linalg.lu_solve(
lower_upper, perm, rhs, validate_args=False, name=None
)
Note: this function does not verify the implied matrix is actually invertible nor is this condition checked even when validate_args=True.
Args
lower_upper lu ... | |
doc_25761 |
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_25762 |
Bases: object format_dict : dictionary for format strings to be used. formatter : fall-back formatter __call__(direction, factor, values)[source]
factor is ignored if value is found in the dictionary
Examples using mpl_toolkits.axisartist.grid_finder.DictFormatter
mpl_toolkits.axisartist.floating_axes f... | |
doc_25763 | os.O_WRONLY
os.O_RDWR
os.O_APPEND
os.O_CREAT
os.O_EXCL
os.O_TRUNC
The above constants are available on Unix and Windows. | |
doc_25764 |
Alias for set_linestyle. | |
doc_25765 | Returns a new tensor with the data in input fake quantized using scale, zero_point, quant_min and quant_max. output=min(quant_max,max(quant_min,std::nearby_int(input/scale)+zero_point))\text{output} = min( \text{quant\_max}, max( \text{quant\_min}, \text{std::nearby\_int}(\text{input} / \text{scale}) + \text{zero\_poi... | |
doc_25766 |
Return the view limits (min, max) of the axis the tick belongs to. | |
doc_25767 | '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_25768 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorListGetItem
tf.raw_ops.TensorListGetItem(
input_handle, index, element_shape, element_dtype, name=None
)
input_handle: the list index: the position in the list from which an element will be retrieved item: the element at that position
Args
i... | |
doc_25769 | Returns the object to which to pointer points. Assigning to this attribute changes the pointer to point to the assigned object. | |
doc_25770 |
Casts all floating point parameters and buffers to float datatype. Returns
self Return type
Module | |
doc_25771 | A wrapper to convert a file-like object to an iterator. The resulting objects support both __getitem__() and __iter__() iteration styles, for compatibility with Python 2.1 and Jython. As the object is iterated over, the optional blksize parameter will be repeatedly passed to the filelike object’s read() method to obtai... | |
doc_25772 |
Set the hatching pattern hatch can be one of: / - diagonal hatching
\ - back diagonal
| - vertical
- - horizontal
+ - crossed
x - crossed diagonal
o - small circle
O - large circle
. - dots
* - stars
Letters can be combined, in which case all the specified hatchings are done. If same letter repea... | |
doc_25773 |
Bernoulli Restricted Boltzmann Machine (RBM). A Restricted Boltzmann Machine with binary visible units and binary hidden units. Parameters are estimated using Stochastic Maximum Likelihood (SML), also known as Persistent Contrastive Divergence (PCD) [2]. The time complexity of this implementation is O(d ** 2) assumin... | |
doc_25774 | See Migration guide for more details. tf.compat.v1.required_space_to_batch_paddings
tf.required_space_to_batch_paddings(
input_shape, block_shape, base_paddings=None, name=None
)
This function can be used to calculate a suitable paddings argument for use with space_to_batch_nd and batch_to_space_nd.
Args
... | |
doc_25775 | Default widget: CheckboxInput
Empty value: False
Normalizes to: A Python True or False value. Validates that the value is True (e.g. the check box is checked) if the field has required=True. Error message keys: required
Note Since all Field subclasses have required=True by default, the validation condition here i... | |
doc_25776 | Set the name of the Task. The value argument can be any object, which is then converted to a string. In the default Task implementation, the name will be visible in the repr() output of a task object. New in version 3.8. | |
doc_25777 | time_raised = models.DateTimeField(default=timezone.now, editable=False)
reference = models.CharField(unique=True, max_length=20)
description = models.TextField()
Here's a basic ModelSerializer that we can use for creating or updating instances of CustomerReportRecord: class CustomerReportSerializer(serial... | |
doc_25778 | The original header value. | |
doc_25779 | Print the output of bpformat() to the file out, or if it is None, to standard output. | |
doc_25780 | get the current error message get_error() -> errorstr SDL maintains an internal error message. This message will usually be given to you when pygame.error() is raised, so this function will rarely be needed. | |
doc_25781 |
Indexes of the maximum values along an axis. Return the indexes of the first occurrences of the maximum values along the specified axis. If axis is None, the index is for the flattened matrix. Parameters
See `numpy.argmax` for complete descriptions
See also numpy.argmax
Notes This is the same as ndarray.arg... | |
doc_25782 | tf.compat.v1.nn.rnn_cell.LSTMCell(
num_units, use_peepholes=False, cell_clip=None, initializer=None, num_proj=None,
proj_clip=None, num_unit_shards=None, num_proj_shards=None, forget_bias=1.0,
state_is_tuple=True, activation=None, reuse=None, name=None, dtype=None,
**kwargs
)
The default non-peephole i... | |
doc_25783 | assertNotIn(member, container, msg=None)
Test that member is (or is not) in container. New in version 3.1. | |
doc_25784 | Default widget: NullBooleanSelect
Empty value: None
Normalizes to: A Python True, False or None value. Validates nothing (i.e., it never raises a ValidationError). NullBooleanField may be used with widgets such as Select or RadioSelect by providing the widget choices: NullBooleanField(
widget=Select(
ch... | |
doc_25785 | Instances of the TestCase class represent the logical test units in the unittest universe. This class is intended to be used as a base class, with specific tests being implemented by concrete subclasses. This class implements the interface needed by the test runner to allow it to drive the tests, and methods that the t... | |
doc_25786 | Returned by Map.bind() or Map.bind_to_environ() and does the URL matching and building based on runtime information. Parameters
map (werkzeug.routing.Map) –
server_name (str) –
script_name (str) –
subdomain (Optional[str]) –
url_scheme (str) –
path_info (str) –
default_method (str) –
query_args (Optio... | |
doc_25787 | tf.keras.regularizers.l2 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.regularizers.L2, tf.compat.v1.keras.regularizers.l2
tf.keras.regularizers.L2(
l2=0.01, **kwargs
)
The L2 regularization penalty is computed as: loss = l2 * reduce_sum(square(x)) L2 may be passed to a la... | |
doc_25788 | Controls when quotes should be generated by the writer and recognised by the reader. It can take on any of the QUOTE_* constants (see section Module Contents) and defaults to QUOTE_MINIMAL. | |
doc_25789 | True if a domain was explicitly specified by the server. | |
doc_25790 |
Return number of unique elements in the object. Excludes NA values by default. Parameters
dropna:bool, default True
Don’t include NaN in the count. Returns
int
See also DataFrame.nunique
Method nunique for DataFrame. Series.count
Count non-NA/null observations in the Series. Examples
>>> s = pd... | |
doc_25791 |
Return the center of the ellipse. | |
doc_25792 |
Return a dict of cells in the table mapping (row, column) to Cells. Notes You can also directly index into the Table object to access individual cells: cell = table[row, col] | |
doc_25793 | See Migration guide for more details. tf.compat.v1.test.TestCase.failureException
tf.test.TestCase.failureException(
*args, **kwargs
) | |
doc_25794 | Turns a language name (en-us) into a locale name (en_US). | |
doc_25795 |
New view of array with the same data. Note Passing None for dtype is different from omitting the parameter, since the former invokes dtype(None) which is an alias for dtype('float_'). Parameters
dtypedata-type or ndarray sub-class, optional
Data-type descriptor of the returned view, e.g., float32 or int16. Om... | |
doc_25796 | See WKBWriter.outdim. | |
doc_25797 | The process’s name. The name is a string used for identification purposes only. It has no semantics. Multiple processes may be given the same name. The initial name is set by the constructor. If no explicit name is provided to the constructor, a name of the form ‘Process-N1:N2:…:Nk’ is constructed, where each Nk is the... | |
doc_25798 | The Expires entity-header field gives the date/time after which the response is considered stale. A stale cache entry may not normally be returned by a cache. Changed in version 2.0: The datetime object is timezone-aware. | |
doc_25799 | Raised when the result of an arithmetic operation is too large to be represented. This cannot occur for integers (which would rather raise MemoryError than give up). However, for historical reasons, OverflowError is sometimes raised for integers that are outside a required range. Because of the lack of standardization ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.