_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_13400
In-place version of log()
doc_13401
Scalar method identical to the corresponding array attribute. Please see ndarray.cumsum.
doc_13402
Set the axis data limits. This method is for internal use. If ignore is False (the default), this method will never reduce the preexisting data limits, only expand them if vmin or vmax are not within them. Moreover, the order of vmin and vmax does not matter; the orientation of the axis will not change. If ignore is ...
doc_13403
tf.compat.v1.train.AdamOptimizer( learning_rate=0.001, beta1=0.9, beta2=0.999, epsilon=1e-08, use_locking=False, name='Adam' ) References: Adam - A Method for Stochastic Optimization: Kingma et al., 2015 (pdf) Args learning_rate A Tensor or a floating point value. The learning rate. beta1 A floa...
doc_13404
Characters in quotes that will interpret escape characters defined in escape. This is only used in POSIX mode, and includes just '"' by default.
doc_13405
Formats the specified stack information (a string as returned by traceback.print_stack(), but with the last newline removed) as a string. This default implementation just returns the input value.
doc_13406
Property which is true if the finalizer is alive, false otherwise.
doc_13407
Set the table styles included within the <style> HTML element. This function can be used to style the entire table, columns, rows or specific HTML selectors. Parameters table_styles:list or dict If supplying a list, each individual table_style should be a dictionary with selector and props keys. selector should...
doc_13408
See torch.angle()
doc_13409
The value for form defaults to ModelForm. This is what is passed through to inlineformset_factory() when creating the formset for this inline.
doc_13410
Identity Mappings in Deep Residual Networks (CVPR 2016) Functions ResNet101V2(...): Instantiates the ResNet101V2 architecture. ResNet152V2(...): Instantiates the ResNet152V2 architecture. ResNet50V2(...): Instantiates the ResNet50V2 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. pr...
doc_13411
Localize tz-naive Datetime Array/Index to tz-aware Datetime Array/Index. This method takes a time zone (tz) naive Datetime Array/Index object and makes this time zone aware. It does not move the time to another time zone. This method can also be used to do the inverse – to create a time zone unaware object from an aw...
doc_13412
Draw a Path instance using the given affine transform.
doc_13413
Wait until the stream is closed. Should be called after close() to wait until the underlying connection is closed. New in version 3.7.
doc_13414
tf.experimental.numpy.sum( a, axis=None, dtype=None, keepdims=None ) Unsupported arguments: out, initial, where. See the NumPy documentation for numpy.sum.
doc_13415
alias of matplotlib.backends.backend_template.FigureManagerTemplate
doc_13416
A set of hosts, in addition to request.get_host(), that are safe for redirecting after logout. Defaults to an empty set.
doc_13417
A helper function to create reasonable x values for the given y. This is used for plotting (x, y) if x values are not explicitly given. First try y.index (assuming y is a pandas.Series), if that fails, use range(len(y)). This will be extended in the future to deal with more types of labeled data. Parameters yfloa...
doc_13418
Return the snap setting. See set_snap for details.
doc_13419
class sklearn.manifold.SpectralEmbedding(n_components=2, *, affinity='nearest_neighbors', gamma=None, random_state=None, eigen_solver=None, n_neighbors=None, n_jobs=None) [source] Spectral embedding for non-linear dimensionality reduction. Forms an affinity matrix given by the specified function and applies spectral ...
doc_13420
See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.TFConfigClusterResolver tf.distribute.cluster_resolver.TFConfigClusterResolver( task_type=None, task_id=None, rpc_layer=None, environment=None ) This is an implementation of cluster resolvers when using TF_CONFIG to set information ab...
doc_13421
The based class for all other module-specific exceptions.
doc_13422
A single argument in a list. arg is a raw string of the argument name, annotation is its annotation, such as a Str or Name node. type_comment type_comment is an optional string with the type annotation as a comment >>> print(ast.dump(ast.parse("""\ ... @decorator1 ... @decorator2 ... def f(a: 'annotation', b=1, c...
doc_13423
Returns a bool indicating if CUDA is currently available.
doc_13424
Schedule a new event. The time argument should be a numeric type compatible with the return value of the timefunc function passed to the constructor. Events scheduled for the same time will be executed in the order of their priority. A lower number represents a higher priority. Executing the event means executing actio...
doc_13425
For each element in a, return a copy of the string with all occurrences of substring old replaced by new. Calls str.replace element-wise. Parameters aarray-like of str or unicode old, newstr or unicode countint, optional If the optional argument count is given, only the first count occurrences are replaced....
doc_13426
Copy properties from other to self.
doc_13427
class ast.AsyncWith(items, body, type_comment) async for loops and async with context managers. They have the same fields as For and With, respectively. Only valid in the body of an AsyncFunctionDef.
doc_13428
Train classifier using partially labeled (annotated) image. Parameters imagendarray Input image, which can be grayscale or multichannel, and must have a number of dimensions compatible with self.features_func. labelsndarray of ints Labeled array of shape compatible with image (same shape for a single-channe...
doc_13429
Return an array with the elements of self converted to lowercase. See also char.lower
doc_13430
Bases: matplotlib.collections.Collection Represents a sequence of Line2Ds that should be drawn together. This class extends Collection to represent a sequence of Line2Ds instead of just a sequence of Patchs. Just as in Collection, each property of a LineCollection may be either a single value or a list of values. Thi...
doc_13431
__array_interface__ description of the data-type. The format is that required by the ‘descr’ key in the __array_interface__ attribute. Warning: This attribute exists specifically for __array_interface__, and passing it directly to np.dtype will not accurately reconstruct some dtypes (e.g., scalar and subarray dtypes)...
doc_13432
Set the bottom coordinate of the rectangle.
doc_13433
Return the color of the lines used to mark each event.
doc_13434
Decode the contents of the binary input file and write the resulting binary data to the output file. input and output must be file objects. input will be read until input.readline() returns an empty bytes object.
doc_13435
Deep Residual Learning for Image Recognition (CVPR 2015) Functions ResNet101(...): Instantiates the ResNet101 architecture. ResNet152(...): Instantiates the ResNet152 architecture. ResNet50(...): Instantiates the ResNet50 architecture. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_in...
doc_13436
Return a datetime object with new tzinfo attribute tz, adjusting the date and time data so the result is the same UTC time as self, but in tz’s local time. If provided, tz must be an instance of a tzinfo subclass, and its utcoffset() and dst() methods must not return None. If self is naive, it is presumed to represent ...
doc_13437
Size of the uncompressed file.
doc_13438
Bases: object A class for storing and manipulating font properties. The font properties are the six properties described in the W3C Cascading Style Sheet, Level 1 font specification and math_fontfamily for math fonts: family: A list of font names in decreasing order of priority. The items may include a generic font ...
doc_13439
See Migration guide for more details. tf.compat.v1.io.gfile.copy tf.io.gfile.copy( src, dst, overwrite=False ) Args src string, name of the file whose contents need to be copied dst string, name of the file to which to copy to overwrite boolean, if false it's an error for dst to be occupied ...
doc_13440
The paginator class to be used for pagination. By default, django.core.paginator.Paginator is used. If the custom paginator class doesn’t have the same constructor interface as django.core.paginator.Paginator, you will also need to provide an implementation for ModelAdmin.get_paginator().
doc_13441
Fit a Generalized Linear Model. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training data. yarray-like of shape (n_samples,) Target values. sample_weightarray-like of shape (n_samples,), default=None Sample weights. Returns selfreturns an instance of self.
doc_13442
Serializer that uses a tag system to compactly represent objects that are not JSON types. Passed as the intermediate serializer to itsdangerous.Serializer. The following extra types are supported: dict tuple bytes Markup UUID datetime Return type None default_tags = [<class 'flask.json.tag.TagDict'>, <class 'fl...
doc_13443
type_comment is an optional string with the type annotation as a comment.
doc_13444
See torch.cumsum()
doc_13445
[Deprecated] Notes Deprecated since version 3.4:
doc_13446
For each element in self, return a copy with the leading and trailing characters removed. See also char.strip
doc_13447
Check that left and right DataFrame are equal. This function is intended to compare two DataFrames and output any differences. Is is mostly intended for use in unit tests. Additional parameters allow varying the strictness of the equality checks performed. Parameters left:DataFrame First DataFrame to compare. ...
doc_13448
Bases: skimage.feature.util.DescriptorExtractor BRIEF binary descriptor extractor. BRIEF (Binary Robust Independent Elementary Features) is an efficient feature point descriptor. It is highly discriminative even when using relatively few bits and is computed using simple intensity difference tests. For each keypoint,...
doc_13449
Decorator for skipping tests on non-IEEE 754 platforms.
doc_13450
Like Path.stat() but, if the path points to a symbolic link, return the symbolic link’s information rather than its target’s.
doc_13451
Add a simple Sankey diagram with flows at the same hierarchical level. Parameters patchlabelstr Label to be placed at the center of the diagram. Note that label (not patchlabel) can be passed as keyword argument to create an entry in the legend. flowslist of float Array of flow values. By convention, inputs...
doc_13452
The line number in the file where the definition starts.
doc_13453
Bases: matplotlib.ticker.Formatter Always return the empty string.
doc_13454
Pushes data on to the channel’s queue to ensure its transmission. This is all you need to do to have the channel write the data out to the network, although it is possible to use your own producers in more complex schemes to implement encryption and chunking, for example.
doc_13455
Returns a datetime of the system’s ctime, i.e. os.path.getctime(). On some systems (like Unix), this is the time of the last metadata change, and on others (like Windows), it’s the creation time of the file.
doc_13456
Attributes bucket repeated double bucket bucket_limit repeated double bucket_limit max double max min double min num double num sum double sum sum_squares double sum_squares
doc_13457
Original handler for Line2D instances, that relies on combining a line-only with a marker-only artist. May be deprecated in the future. Parameters marker_padfloat Padding between points in legend entry. numpointsint Number of points to show in legend entry. **kwargs Keyword arguments forwarded to HandlerN...
doc_13458
If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string: >>> 'MiscTests'.removesuffix('Tests') 'Misc' >>> 'TmpDirMixin'.removesuffix('Tests') 'TmpDirMixin' New in version 3.9.
doc_13459
Return whether obj looks like a file object with a write method.
doc_13460
Return the XAxis instance. The use of this function is discouraged. You should instead directly access the attribute ax.xaxis.
doc_13461
Return greyscale morphological erosion of an image. Morphological erosion sets a pixel at (i,j) to the minimum over all pixels in the neighborhood centered at (i,j). Erosion shrinks bright regions and enlarges dark regions. Parameters imagendarray Image array. selemndarray, optional The neighborhood express...
doc_13462
See Migration guide for more details. tf.compat.v1.unravel_index tf.unravel_index( indices, dims, name=None ) Example: y = tf.unravel_index(indices=[2, 5, 7], dims=[3, 3]) # 'dims' represent a hypothetical (3, 3) tensor of indices: # [[0, 1, *2*], # [3, 4, *5*], # [6, *7*, 8]] # For each entry from 'indices', ...
doc_13463
Parse input of type multipart/form-data (for file uploads). Arguments are fp for the input file, pdict for a dictionary containing other parameters in the Content-Type header, and encoding, the request encoding. Returns a dictionary just like urllib.parse.parse_qs(): keys are the field names, each value is a list of va...
doc_13464
Return a “memory view” object created from the given argument. See Memory Views for more information.
doc_13465
See Migration guide for more details. tf.compat.v1.raw_ops.CumulativeLogsumexp tf.raw_ops.CumulativeLogsumexp( x, axis, exclusive=False, reverse=False, name=None ) By default, this op performs an inclusive cumulative log-sum-exp, which means that the first element of the input is identical to the first element o...
doc_13466
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_13467
Return the names of all registered dialects.
doc_13468
Convenience method for changing the appearance of ticks and tick labels. See matplotlib.axes.Axes.tick_params() for more complete documentation. The only difference is that setting axis to 'both' will mean that the settings are applied to all three axes. Also, the axis parameter also accepts a value of 'z', which wou...
doc_13469
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_13470
Stop playing all instances of the specified sound. Note This flag is not supported on modern Windows platforms.
doc_13471
tf.pow Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.pow, tf.compat.v1.pow tf.math.pow( x, y, name=None ) Given a tensor x and a tensor y, this operation computes \(x^y\) for corresponding elements in x and y. For example: x = tf.constant([[2, 2], [3, 3]]) y = tf.constant([...
doc_13472
Returns the initial seed for generating random numbers as a Python long.
doc_13473
Set by set_memlimit() as the memory limit for big memory tests. Not limited by MAX_Py_ssize_t.
doc_13474
Alias for get_linestyle.
doc_13475
Compute incremental mean and variance along an axis on a CSR or CSC matrix. last_mean, last_var are the statistics computed at the last step by this function. Both must be initialized to 0-arrays of the proper size, i.e. the number of features in X. last_n is the number of samples encountered until now. Parameters ...
doc_13476
Returns the value for the key if it is in the dict, otherwise it returns default and sets that value for key. Parameters key – The key to be looked up. default – The default value to be returned if the key is not in the dict. If not further specified it’s None.
doc_13477
Performs a matrix multiplication of the sparse matrix mat1 and the (sparse or strided) matrix mat2. Similar to torch.mm(), If mat1 is a (n×m)(n \times m) tensor, mat2 is a (m×p)(m \times p) tensor, out will be a (n×p)(n \times p) tensor. mat1 need to have sparse_dim = 2. This function also supports backward for bo...
doc_13478
See Migration guide for more details. tf.compat.v1.keras.applications.nasnet.decode_predictions tf.keras.applications.nasnet.decode_predictions( preds, top=5 ) Arguments preds Numpy array encoding a batch of predictions. top Integer, how many top-guesses to return. Defaults to 5. Returns ...
doc_13479
The internal LocalStack that holds RequestContext instances. Typically, the request and session proxies should be accessed instead of the stack. It may be useful to access the stack in extension code. The following attributes are always present on each layer of the stack: app the active Flask application. url_ada...
doc_13480
Buffered iterator for big arrays. Arrayterator creates a buffered iterator for reading big arrays in small contiguous blocks. The class is useful for objects stored in the file system. It allows iteration over the object without reading everything in memory; instead, small blocks are read and iterated over. Arraytera...
doc_13481
Adds a context manager’s __exit__() method to the callback stack. As __enter__ is not invoked, this method can be used to cover part of an __enter__() implementation with a context manager’s own __exit__() method. If passed an object that is not a context manager, this method assumes it is a callback with the same sign...
doc_13482
gets the metrics for each character in the passed string metrics(text) -> list The list contains tuples for each character, which contain the minimum X offset, the maximum X offset, the minimum Y offset, the maximum Y offset and the advance offset (bearing plus width) of the character. [(minx, maxx, miny, maxy, advan...
doc_13483
Like connect(address), but return an error indicator instead of raising an exception for errors returned by the C-level connect() call (other problems, such as “host not found,” can still raise exceptions). The error indicator is 0 if the operation succeeded, otherwise the value of the errno variable. This is useful to...
doc_13484
tf.boolean_mask( tensor, mask, axis=None, name='boolean_mask' ) Numpy equivalent is tensor[mask]. In general, 0 < dim(mask) = K <= dim(tensor), and mask's shape must match the first K dimensions of tensor's shape. We then have: boolean_mask(tensor, mask)[i, j1,...,jd] = tensor[i1,...,iK,j1,...,jd] where (i1,...,iK...
doc_13485
Return whether the artist is animated.
doc_13486
Like digest() except the digest is returned as a string twice the length containing only hexadecimal digits. This may be used to exchange the value safely in email or other non-binary environments. Warning When comparing the output of hexdigest() to an externally-supplied digest during a verification routine, it is re...
doc_13487
Similar to loadTestsFromName(), but takes a sequence of names rather than a single name. The return value is a test suite which supports all the tests defined for each name.
doc_13488
Distributed Training Tutorials The tutorials cover how to use tf.distribute.Strategy to do distributed training with native Keras APIs, custom training loops, and Esitmator APIs. They also cover how to save/load model when using tf.distribute.Strategy. Glossary Data parallelism is where we run multiple copies of th...
doc_13489
Return the offsets for the collection.
doc_13490
Logarithm of the sum of exponentiations of the inputs in base-2. Calculates log2(2**x1 + 2**x2). This function is useful in machine learning when the calculated probabilities of events may be so small as to exceed the range of normal floating point numbers. In such cases the base-2 logarithm of the calculated probabi...
doc_13491
Call self as a function.
doc_13492
This exception, a subclass of RuntimeError, is raised when the Barrier object is reset or broken.
doc_13493
tf.experimental.numpy.isfinite( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.isfinite.
doc_13494
Decorate a function as responder that accepts the request as the last argument. This works like the responder() decorator but the function is passed the request object as the last argument and the request object will be closed automatically: @Request.application def my_wsgi_app(request): return Response('Hello Worl...
doc_13495
Cholesky decomposition. Return the Cholesky decomposition, L * L.H, of the square matrix a, where L is lower-triangular and .H is the conjugate transpose operator (which is the ordinary transpose if a is real-valued). a must be Hermitian (symmetric if real-valued) and positive-definite. No checking is performed to ve...
doc_13496
Truncate series to length size. Reduce the series to length size by discarding the high degree terms. The value of size must be a positive integer. This can be useful in least squares where the coefficients of the high degree terms may be very small. Parameters sizepositive int The series is reduced to length s...
doc_13497
See torch.sigmoid()
doc_13498
Returns this tensor as the same shape as other. self.reshape_as(other) is equivalent to self.reshape(other.sizes()). This method returns a view if other.sizes() is compatible with the current shape. See torch.Tensor.view() on when it is possible to return a view. Please see reshape() for more information about reshape....
doc_13499
Hook method executed just before the command line line is interpreted, but after the input prompt is generated and issued. This method is a stub in Cmd; it exists to be overridden by subclasses. The return value is used as the command which will be executed by the onecmd() method; the precmd() implementation may re-wri...