_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_24900 | Returns the full path to the temporary uploaded file. | |
doc_24901 | See Migration guide for more details. tf.compat.v1.raw_ops.RangeDataset
tf.raw_ops.RangeDataset(
start, stop, step, output_types, output_shapes, name=None
)
Args
start A Tensor of type int64. corresponds to start in python's xrange().
stop A Tensor of type int64. corresponds to stop in python's xr... | |
doc_24902 |
Align the ylabels of subplots in the same subplot column if label alignment is being done automatically (i.e. the label position is not manually set). Alignment persists for draw events after this is called. If a label is on the left, it is aligned with labels on Axes that also have their label on the left and that h... | |
doc_24903 | Close the database object, through MsiCloseHandle(). New in version 3.7. | |
doc_24904 |
Return the alpha value used for blending - not supported on all backends. | |
doc_24905 |
Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. See also Rasterization for vector g... | |
doc_24906 | See Migration guide for more details. tf.compat.v1.raw_ops.Identity
tf.raw_ops.Identity(
input, name=None
)
Args
input A Tensor.
name A name for the operation (optional).
Returns A Tensor. Has the same type as input. | |
doc_24907 | Construct and return a class to handle creating a name header. | |
doc_24908 |
Detect non-missing values for an array-like object. This function takes a scalar or array-like object and indicates whether values are valid (not missing, which is NaN in numeric arrays, None or NaN in object arrays, NaT in datetimelike). Parameters
obj:array-like or object value
Object to check for not null or... | |
doc_24909 |
Context-manager that sets the anomaly detection for the autograd engine on or off. set_detect_anomaly will enable or disable the autograd anomaly detection based on its argument mode. It can be used as a context-manager or as a function. See detect_anomaly above for details of the anomaly detection behaviour. Parame... | |
doc_24910 |
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_24911 | Remove .pyc files on uninstall. | |
doc_24912 |
Get the parameters of an estimator from the ensemble. Returns the parameters given in the constructor as well as the estimators contained within the estimators parameter. Parameters
deepbool, default=True
Setting it to True gets the various estimators and the parameters of the estimators as well. | |
doc_24913 | with writer.as_default():
for step in range(100):
# other model code would go here
tf.summary.scalar("my_metric", 0.5, step=step)
writer.flush()
Example usage with tf.function graph execution: writer = tf.summary.create_file_writer("/tmp/mylogs")
@tf.function
def my_func(step):
# other model code woul... | |
doc_24914 |
Return image subtracted from its local mean. Parameters
image([P,] M, N) ndarray (uint8, uint16)
Input image.
selemndarray
The neighborhood expressed as an ndarray of 1’s and 0’s.
out([P,] M, N) array (same dtype as input)
If None, a new array is allocated.
maskndarray (integer or float), optional
M... | |
doc_24915 |
Define default roll function to be called in apply method. | |
doc_24916 | If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string: >>> 'TestHook'.removeprefix('Test')
'Hook'
>>> 'BaseTestCase'.removeprefix('Test')
'BaseTestCase'
New in version 3.9. | |
doc_24917 | Returns a list of all hyperparameter specifications. | |
doc_24918 | The name of the reverse DNS PTR record for the IP address, e.g.: >>> ipaddress.ip_address("127.0.0.1").reverse_pointer
'1.0.0.127.in-addr.arpa'
>>> ipaddress.ip_address("2001:db8::1").reverse_pointer
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa'
This is the name that could be used for perf... | |
doc_24919 |
Returns a copy of the calling offset object with n=1 and all other attributes equal. | |
doc_24920 |
Get parameters of this kernel. Parameters
deepbool, default=True
If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns
paramsdict
Parameter names mapped to their values. | |
doc_24921 |
Return a fully-transformed copy of the child path. | |
doc_24922 | Return a copy of the string with uppercase characters converted to lowercase and vice versa. Note that it is not necessarily true that s.swapcase().swapcase() == s. | |
doc_24923 | See torch.trunc() | |
doc_24924 | Raised when the parser encounters a syntax error. This may occur in an import statement, in a call to the built-in functions exec() or eval(), or when reading the initial script or standard input (also interactively). The str() of the exception instance returns only the error message.
filename
The name of the file ... | |
doc_24925 |
Other Members
AUTOTUNE -1
INFINITE_CARDINALITY -1
UNKNOWN_CARDINALITY -2 | |
doc_24926 |
Return a list of the child Artists of this Artist. | |
doc_24927 |
Construct a ColumnTransformer from the given transformers. This is a shorthand for the ColumnTransformer constructor; it does not require, and does not permit, naming the transformers. Instead, they will be given names automatically based on their types. It also does not allow weighting with transformer_weights. Read... | |
doc_24928 | Possible value for SSLContext.verify_flags. In this mode, CRLs of all certificates in the peer cert chain are checked. New in version 3.4. | |
doc_24929 |
Add histogram to summary. Parameters
tag (string) – Data identifier
values (torch.Tensor, numpy.array, or string/blobname) – Values to build histogram
global_step (int) – Global step value to record
bins (string) – One of {‘tensorflow’,’auto’, ‘fd’, …}. This determines how the bins are made. You can find other... | |
doc_24930 |
Computes the (weighted) graph of Neighbors for points in X Neighborhoods are restricted the points at a distance lower than radius. Parameters
Xarray-like of shape (n_samples, n_features), default=None
The query point or points. If not provided, neighbors of each indexed point are returned. In this case, the qu... | |
doc_24931 |
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('integers', metavar='N', type=int, nargs='+',
help='an integer for the accumulator')
parser.add_argument('--sum', dest='accumulate', action='store_const',
const=sum, default=max,
... | |
doc_24932 | Return either the standard Logger class, or the last class passed to setLoggerClass(). This function may be called from within a new class definition, to ensure that installing a customized Logger class will not undo customizations already applied by other code. For example: class MyLogger(logging.getLoggerClass()):
... | |
doc_24933 |
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred)
** 2).sum() and \(v\) is the total sum of squares ((y_true -
y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c... | |
doc_24934 | Called for all entity declarations. For parameter and internal entities, value will be a string giving the declared contents of the entity; this will be None for external entities. The notationName parameter will be None for parsed entities, and the name of the notation for unparsed entities. is_parameter_entity will b... | |
doc_24935 |
Return a list of URLs, one for each element of the collection. The list contains None for elements without a URL. See Hyperlinks for an example. | |
doc_24936 | Holds the fully-qualified domain name of the server as returned by socket.getfqdn(). | |
doc_24937 |
Return a copy of each string element where all tab characters are replaced by one or more spaces. See also char.expandtabs | |
doc_24938 |
Elements in data that are fill_value are not stored. For memory savings, this should be the most common value in the array. | |
doc_24939 | Clear the internal type cache. The type cache is used to speed up attribute and method lookups. Use the function only to drop unnecessary references during reference leak debugging. This function should be used for internal and specialized purposes only. | |
doc_24940 | Contains the string representation of the HTTP request line. The terminating CRLF is stripped. This attribute should be set by handle_one_request(). If no valid request line was processed, it should be set to the empty string. | |
doc_24941 | Return the value for a qualified name. | |
doc_24942 |
Return self<<value. | |
doc_24943 |
Alias for set_linestyle. | |
doc_24944 |
Set the (group) id for the artist. Parameters
gidstr | |
doc_24945 |
Return the sketch parameters for the artist. Returns
tuple or None
A 3-tuple with the following elements:
scale: The amplitude of the wiggle perpendicular to the source line.
length: The length of the wiggle along the line.
randomness: The scale factor by which the length is shrunken or expanded. Returns Non... | |
doc_24946 |
Return the url. | |
doc_24947 | Execute the init line provided in the string argument. This calls rl_parse_and_bind() in the underlying library. | |
doc_24948 |
Online learning. Prevents rebuilding of CFTree from scratch. Parameters
X{array-like, sparse matrix} of shape (n_samples, n_features), default=None
Input data. If X is not provided, only the global clustering step is done.
yIgnored
Not used, present here for API consistency by convention. Returns
self
... | |
doc_24949 | See torch.polygamma() | |
doc_24950 |
Set the artist's clip path. Parameters
pathPatch or Path or TransformedPath or None
The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed.
transformTransform, optional
Only used if path is a Path, in which case the given Path is converted to a Tra... | |
doc_24951 |
Set the artist's visibility. Parameters
bbool | |
doc_24952 |
Return whether a MovieWriter subclass is actually available. | |
doc_24953 |
Returns a list of 2 masked arrays containing interpolated derivatives at the specified (x, y) points. Parameters
x, yarray-like
x and y coordinates of the same shape and any number of dimensions. Returns
dzdx, dzdynp.ma.array
2 masked arrays of the same shape as x and y; values corresponding to (x, y) p... | |
doc_24954 | Human-readable name for the application, e.g. “Administration”. This attribute defaults to label.title(). | |
doc_24955 | Raised when the implementation does not support the requested type of object or operation. | |
doc_24956 | numeric code for operation, corresponding to the opcode values listed below and the bytecode values in the Opcode collections. | |
doc_24957 | sklearn.utils.safe_sqr(X, *, copy=True) [source]
Element wise squaring of array-likes and sparse matrices. Parameters
X{array-like, ndarray, sparse matrix}
copybool, default=True
Whether to create a copy of X and operate on it or to perform inplace computation (default behaviour). Returns
X ** 2element ... | |
doc_24958 |
Place a legend on the Axes. Call signatures: legend()
legend(handles, labels)
legend(handles=handles)
legend(labels)
The call signatures correspond to the following different ways to use this method: 1. Automatic detection of elements to be shown in the legend The elements to be added to the legend are automatically... | |
doc_24959 | Stack tensors in sequence horizontally (column wise). This is equivalent to concatenation along the first axis for 1-D tensors, and along the second axis for all other tensors. Parameters
tensors (sequence of Tensors) – sequence of tensors to concatenate Keyword Arguments
out (Tensor, optional) – the output tensor.... | |
doc_24960 | Token value for "(". | |
doc_24961 |
alias of numpy.clongdouble | |
doc_24962 | Path to the base directory for the user site-packages. Can be None if getuserbase() hasn’t been called yet. Default value is ~/.local for UNIX and Mac OS X non-framework builds, ~/Library/Python/X.Y for Mac framework builds, and %APPDATA%\Python for Windows. This value is used by Distutils to compute the installation d... | |
doc_24963 |
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_24964 |
Return a list of keys corresponding to objects stored in HDFStore. Parameters
include:str, default ‘pandas’
When kind equals ‘pandas’ return pandas objects. When kind equals ‘native’ return native HDF5 Table objects. New in version 1.1.0. Returns
list
List of ABSOLUTE path-names (e.g. have the leading ‘... | |
doc_24965 | Removes subelement from the element. Unlike the find* methods this method compares elements based on the instance identity, not on tag value or contents. | |
doc_24966 | Characters that will be considered whitespace and skipped. Whitespace bounds tokens. By default, includes space, tab, linefeed and carriage-return. | |
doc_24967 | Return bytes from the stream without advancing the position. At most one single read on the raw stream is done to satisfy the call. The number of bytes returned may be less or more than requested. | |
doc_24968 |
Set the x position of the text. Parameters
xfloat | |
doc_24969 | Contains all the information pertinent to the event being logged. The primary information is passed in msg and args, which are combined using msg % args to create the message field of the record. Parameters
name – The name of the logger used to log the event represented by this LogRecord. Note that this name will a... | |
doc_24970 | Header-encode a string by converting it first to bytes. This is similar to header_encode() except that the string is fit into maximum line lengths as given by the argument maxlengths, which must be an iterator: each element returned from this iterator will provide the next maximum line length. | |
doc_24971 |
The second of the period. | |
doc_24972 |
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_24973 |
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_24974 | '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_24975 |
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_24976 |
Return a path to a temporary directory where temporary files should be placed. | |
doc_24977 | Return a complex number with the value real + imag*1j or convert a string or number to a complex number. If the first parameter is a string, it will be interpreted as a complex number and the function must be called without a second parameter. The second parameter can never be a string. Each argument may be any numeric... | |
doc_24978 | >>> from io import StringIO
Defining the input The only mandatory argument of genfromtxt is the source of the data. It can be a string, a list of strings, a generator or an open file-like object with a read method, for example, a file or io.StringIO object. If a single string is provided, it is assumed to be the nam... | |
doc_24979 | Sets the Generator state. Parameters
new_state (torch.ByteTensor) – The desired state. Example: >>> g_cpu = torch.Generator()
>>> g_cpu_other = torch.Generator()
>>> g_cpu.set_state(g_cpu_other.get_state()) | |
doc_24980 | Add all records to the table named table in database. The table argument must be one of the predefined tables in the MSI schema, e.g. 'Feature', 'File', 'Component', 'Dialog', 'Control', etc. records should be a list of tuples, each one containing all fields of a record according to the schema of the table. For optiona... | |
doc_24981 | This function compares strings in somewhat constant time. This requires that the length of at least one string is known in advance. Returns True if the two strings are equal, or False if they are not. Deprecated since version 2.0: Will be removed in Werkzeug 2.1. Use hmac.compare_digest() instead. Changelog New in v... | |
doc_24982 | See Migration guide for more details. tf.compat.v1.raw_ops.UniqueWithCounts
tf.raw_ops.UniqueWithCounts(
x, out_idx=tf.dtypes.int32, name=None
)
This operation returns a tensor y containing all of the unique elements of x sorted in the same order that they occur in x. This operation also returns a tensor idx the... | |
doc_24983 | See Migration guide for more details. tf.compat.v1.estimator.SessionRunArgs, tf.compat.v1.train.SessionRunArgs
tf.estimator.SessionRunArgs(
fetches, feed_dict=None, options=None
)
Args
fetches Exactly like the 'fetches' argument to Session.Run(). Can be a single tensor or op, a list of 'fetches' or a di... | |
doc_24984 |
Alias for set_antialiased. | |
doc_24985 | '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_24986 |
Add a colorbar to a plot. Parameters
mappable
The matplotlib.cm.ScalarMappable (i.e., AxesImage, ContourSet, etc.) described by this colorbar. This argument is mandatory for the Figure.colorbar method but optional for the pyplot.colorbar function, which sets the default to the current image. Note that one can cre... | |
doc_24987 | Print a list of useful (used by CGI) environment variables in HTML. | |
doc_24988 |
DateOffset increments between the first business day of each Quarter. startingMonth = 1 corresponds to dates like 1/01/2007, 4/01/2007, … startingMonth = 2 corresponds to dates like 2/01/2007, 5/01/2007, … startingMonth = 3 corresponds to dates like 3/01/2007, 6/01/2007, … Examples
>>> from pandas.tseries.offsets im... | |
doc_24989 | tf.compat.v1.initializers.he_uniform(
seed=None
)
It draws samples from a uniform distribution within [-limit, limit] where limit is sqrt(6 / fan_in) where fan_in is the number of input units in the weight tensor.
Arguments
seed A Python integer. Used to seed the random generator.
Returns An ini... | |
doc_24990 |
Return the group id. | |
doc_24991 |
Helper method to find the qualified name of mod in the Module hierarchy of root. For example, if root has a submodule named foo, which has a submodule named bar, passing bar into this function will return the string “foo.bar”. Parameters
mod (str) – The Module to retrieve the qualified name for. | |
doc_24992 | The string of characters that will accumulate into multi-character tokens. By default, includes all ASCII alphanumerics and underscore. In POSIX mode, the accented characters in the Latin-1 set are also included. If punctuation_chars is not empty, the characters ~-./*?=, which can appear in filename specifications and ... | |
doc_24993 | See torch.logical_not() | |
doc_24994 |
Returns the score on the given data, if the estimator has been refit. This uses the score defined by scoring where provided, and the best_estimator_.score method otherwise. Parameters
Xarray-like of shape (n_samples, n_features)
Input data, where n_samples is the number of samples and n_features is the number o... | |
doc_24995 | Read and return the contents of the resource within package as bytes. package is either a name or a module object which conforms to the Package requirements. resource is the name of the resource to open within package; it may not contain path separators and it may not have sub-resources (i.e. it cannot be a directory).... | |
doc_24996 |
Round a DataFrame to a variable number of decimal places. Parameters
decimals:int, dict, Series
Number of decimal places to round each column to. If an int is given, round each column to the same number of places. Otherwise dict and Series round to variable numbers of places. Column names should be in the keys ... | |
doc_24997 | See Migration guide for more details. tf.compat.v1.keras.utils.get_registered_object
tf.keras.utils.get_registered_object(
name, custom_objects=None, module_objects=None
)
This function is part of the Keras serialization and deserialization framework. It maps strings to the objects associated with them for seria... | |
doc_24998 |
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_24999 |
Divide self into other, and return a new masked array. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.