_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_3700
tf.compat.v1.metrics.sparse_precision_at_k( labels, predictions, k, class_id=None, weights=None, metrics_collections=None, updates_collections=None, name=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use precision_at_k instead
doc_3701
Fit MultiTaskElasticNet model with coordinate descent Parameters Xndarray of shape (n_samples, n_features) Data. yndarray of shape (n_samples, n_tasks) Target. Will be cast to X’s dtype if necessary. Notes Coordinate descent is an algorithm that considers each column of data at a time hence it will auto...
doc_3702
An ndarray containing the non- fill_value values. Examples >>> s = SparseArray([0, 0, 1, 0, 2], fill_value=0) >>> s.sp_values array([1, 2])
doc_3703
tf.compat.v1.train.SyncReplicasOptimizer( opt, replicas_to_aggregate, total_num_replicas=None, variable_averages=None, variables_to_average=None, use_locking=False, name='sync_replicas' ) This class is deprecated. For synchronous training, please use Distribution Strategies. In a typical asynchronous training ...
doc_3704
os.execle(path, arg0, arg1, ..., env) os.execlp(file, arg0, arg1, ...) os.execlpe(file, arg0, arg1, ..., env) os.execv(path, args) os.execve(path, args, env) os.execvp(file, args) os.execvpe(file, args, env) These functions all execute a new program, replacing the current process; they do not return. On U...
doc_3705
Set the (group) id for the artist. Parameters gidstr
doc_3706
A class to handle opening of HTTPS URLs. context and check_hostname have the same meaning as in http.client.HTTPSConnection. Changed in version 3.2: context and check_hostname were added.
doc_3707
Shape of the i’th bicluster. Parameters iint The index of the cluster. Returns n_rowsint Number of rows in the bicluster. n_colsint Number of columns in the bicluster.
doc_3708
unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf() system calls.
doc_3709
Line number on which the error was detected. The first line is numbered 1.
doc_3710
Return a stat_result object for this entry. This method follows symbolic links by default; to stat a symbolic link add the follow_symlinks=False argument. On Unix, this method always requires a system call. On Windows, it only requires a system call if follow_symlinks is True and the entry is a reparse point (for examp...
doc_3711
See Mock.reset_mock(). Also sets await_count to 0, await_args to None, and clears the await_args_list.
doc_3712
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_3713
Bases: object AxisArtistHelper should define following method with given APIs. Note that the first axes argument will be axes attribute of the caller artist.: # LINE (spinal line?) def get_line(self, axes): # path : Path return path def get_line_transform(self, axes): # ... # trans : transform r...
doc_3714
Bases: matplotlib.ticker.Locator Determine the tick locations for symmetric log axes. Parameters transformSymmetricalLogTransform, optional If set, defines the base and linthresh of the symlog transform. base, linthreshfloat, optional The base and linthresh of the symlog transform, as documented for Symmetr...
doc_3715
Returns whether the kernel is stationary.
doc_3716
Coarse to fine optical flow estimator. The TV-L1 solver is applied at each level of the image pyramid. TV-L1 is a popular algorithm for optical flow estimation introduced by Zack et al. [1], improved in [2] and detailed in [3]. Parameters reference_imagendarray, shape (M, N[, P[, …]]) The first gray scale image...
doc_3717
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_3718
Pass the input through the encoder layers in turn. Parameters src – the sequence to the encoder (required). mask – the mask for the src sequence (optional). src_key_padding_mask – the mask for the src keys per batch (optional). Shape: see the docs in Transformer class.
doc_3719
Construct Python bytes containing the raw data bytes in the array. Constructs Python bytes showing a copy of the raw contents of data memory. The bytes object is produced in C-order by default. This behavior is controlled by the order parameter. New in version 1.9.0. Parameters order{‘C’, ‘F’, ‘A’}, optional ...
doc_3720
A round-robin scheduling policy.
doc_3721
Open the URL url, which can be either a string or a Request object. data must be an object specifying additional data to be sent to the server, or None if no such data is needed. See Request for details. urllib.request module uses HTTP/1.1 and includes Connection:close header in its HTTP requests. The optional timeout ...
doc_3722
Append items from iterable to the end of the array. If iterable is another array, it must have exactly the same type code; if not, TypeError will be raised. If iterable is not an array, it must be iterable and its elements must be the right type to be appended to the array.
doc_3723
Locally Linear Embedding Read more in the User Guide. Parameters n_neighborsint, default=5 number of neighbors to consider for each point. n_componentsint, default=2 number of coordinates for the manifold regfloat, default=1e-3 regularization constant, multiplies the trace of the local covariance matrix...
doc_3724
Quiver(ax, *args[, scale, headwidth, ...]) Specialized PolyCollection for arrows. QuiverKey(Q, X, Y, U, label, *[, angle, ...]) Labelled arrow for use as a quiver plot scale key. Barbs(ax, *args[, pivot, length, barbcolor, ...]) Specialized PolyCollection for barbs.
doc_3725
For top-level classes, None. For nested classes, the parent. New in version 3.7.
doc_3726
Add installable headers to configuration. Add the given sequence of files to the beginning of the headers list. By default, headers will be installed under <python- include>/<self.name.replace(‘.’,’/’)>/ directory. If an item of files is a tuple, then its first argument specifies the actual installation location rela...
doc_3727
Return the offsets for the collection.
doc_3728
Calibrate a denoising function and return optimal J-invariant version. The returned function is partially evaluated with optimal parameter values set for denoising the input image. Parameters imagendarray Input data to be denoised (converted using img_as_float). denoise_functionfunction Denoising function t...
doc_3729
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceScatterNdMax tf.raw_ops.ResourceScatterNdMax( ref, indices, updates, use_locking=True, name=None ) Args ref A Tensor of type resource. A resource handle. Must be from a VarHandleOp. indices A Tensor. Must be one of the following ty...
doc_3730
Returns the first_name plus the last_name, with a space in between.
doc_3731
Gradient Boosting for classification. GB builds an additive model in a forward stage-wise fashion; it allows for the optimization of arbitrary differentiable loss functions. In each stage n_classes_ regression trees are fit on the negative gradient of the binomial or multinomial deviance loss function. Binary classif...
doc_3732
Compute D^2, the percentage of deviance explained. D^2 is a generalization of the coefficient of determination R^2. R^2 uses squared error and D^2 deviance. Note that those two are equal for family='normal'. D^2 is defined as \(D^2 = 1-\frac{D(y_{true},y_{pred})}{D_{null}}\), \(D_{null}\) is the null deviance, i.e. t...
doc_3733
See Migration guide for more details. tf.compat.v1.raw_ops.Requantize tf.raw_ops.Requantize( input, input_min, input_max, requested_output_min, requested_output_max, out_type, name=None ) Converts the quantized input tensor into a lower-precision output, using the output range specified with requested_output...
doc_3734
tf.compat.v1.SparseTensorValue( indices, values, dense_shape ) Attributes indices values dense_shape
doc_3735
Blocking call to interact with a figure. Wait until the user clicks n times on the figure, and return the coordinates of each click in a list. There are three possible interactions: Add a point. Remove the most recently added point. Stop the interaction and return the points added so far. The actions are assigned t...
doc_3736
class tkinter.scrolledtext.ScrolledText(master=None, **kw) frame The frame which surrounds the text and scroll bar widgets. vbar The scroll bar widget.
doc_3737
Reduces array’s dimension by one, by applying ufunc along one axis. Let \(array.shape = (N_0, ..., N_i, ..., N_{M-1})\). Then \(ufunc.reduce(array, axis=i)[k_0, ..,k_{i-1}, k_{i+1}, .., k_{M-1}]\) = the result of iterating j over \(range(N_i)\), cumulatively applying ufunc to each \(array[k_0, ..,k_{i-1}, j, k_{i+1},...
doc_3738
See Migration guide for more details. tf.compat.v1.raw_ops.QueueDequeueManyV2 tf.raw_ops.QueueDequeueManyV2( handle, n, component_types, timeout_ms=-1, name=None ) If the queue is closed and there are fewer than n elements, then an OutOfRange error is returned. This operation concatenates queue-element component...
doc_3739
Get parameters for this estimator. 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_3740
set -= other | ... Update the set, removing elements found in others.
doc_3741
Set the location of tick in data coords with scalar loc.
doc_3742
Return the tool object with the given name. For convenience, this passes tool objects through. Parameters namestr or ToolBase Name of the tool, or the tool itself. warnbool, default: True Whether a warning should be emitted it no tool with the given name exists. Returns ToolBase or None The tool or N...
doc_3743
Modify in place using non-NA values from another DataFrame. Aligns on indices. There is no return value. Parameters other:DataFrame, or object coercible into a DataFrame Should have at least one matching index/column label with the original DataFrame. If a Series is passed, its name attribute must be set, and t...
doc_3744
URL decode a single string with a given encoding. If the charset is set to None no decoding is performed and raw bytes are returned. Parameters s (Union[str, bytes]) – the string to unquote. charset (str) – the charset of the query string. If set to None no decoding will take place. errors (str) – the error handl...
doc_3745
In-place version of square()
doc_3746
See Migration guide for more details. tf.compat.v1.raw_ops.WriteFile tf.raw_ops.WriteFile( filename, contents, name=None ) creates directory if not existing. Args filename A Tensor of type string. scalar. The name of the file to which we write the contents. contents A Tensor of type string. scalar...
doc_3747
tf.keras.applications.densenet.DenseNet201 Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.applications.DenseNet201, tf.compat.v1.keras.applications.densenet.DenseNet201 tf.keras.applications.DenseNet201( include_top=True, weights='imagenet', input_tensor=None, input_shap...
doc_3748
Return the snap setting. See set_snap for details.
doc_3749
Generate coordinates of pixels within circle. Parameters centertuple Center coordinate of disk. radiusdouble Radius of disk. shapetuple, optional Image shape which is used to determine the maximum extent of output pixel coordinates. This is useful for disks that exceed the image size. If None, the full ...
doc_3750
See torch.trace()
doc_3751
Check for availability of Fortran 77 compiler. Use it inside source generating function to ensure that setup distribution instance has been initialized. Notes True if a Fortran 77 compiler is available (because a simple Fortran 77 code was able to be compiled successfully).
doc_3752
Attributes key string key value int32 value
doc_3753
Encode the contents of the input file and write the resulting quoted-printable data to the output file. input and output must be binary file objects. quotetabs, a non-optional flag which controls whether to encode embedded spaces and tabs; when true it encodes such embedded whitespace, and when false it leaves them une...
doc_3754
Return the Transform instance used by this artist offset.
doc_3755
Array protocol: struct
doc_3756
Do not interrupt sounds currently playing.
doc_3757
Broken pipe: write to pipe with no readers. Default action is to ignore the signal. Availability: Unix.
doc_3758
Return a list of source lines and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of the lines corresponding to the object and the line number indicates where in the original source file the first line of ...
doc_3759
Return a function to preprocess the text before tokenization. Returns preprocessor: callable A function to preprocess the text before tokenization.
doc_3760
tf.compat.v1.losses.sigmoid_cross_entropy( multi_class_labels, logits, weights=1.0, label_smoothing=0, scope=None, loss_collection=tf.GraphKeys.LOSSES, reduction=Reduction.SUM_BY_NONZERO_WEIGHTS ) weights acts as a coefficient for the loss. If a scalar is provided, then the loss is simply scaled by the given v...
doc_3761
Module: datetime Provides the time and datetime types with which the ZoneInfo class is designed to be used. Package tzdata First-party package maintained by the CPython core developers to supply time zone data via PyPI. Using ZoneInfo ZoneInfo is a concrete implementation of the datetime.tzinfo abstract base c...
doc_3762
Fit the model to the data X which should contain a partial segment of the data. Parameters Xndarray of shape (n_samples, n_features) Training data. Returns selfBernoulliRBM The fitted model.
doc_3763
Django will automatically generate a table to manage many-to-many relationships. However, if you want to manually specify the intermediary table, you can use the through option to specify the Django model that represents the intermediate table that you want to use. The most common use for this option is when you want t...
doc_3764
os.spawnle(mode, path, ..., env) os.spawnlp(mode, file, ...) os.spawnlpe(mode, file, ..., env) os.spawnv(mode, path, args) os.spawnve(mode, path, args, env) os.spawnvp(mode, file, args) os.spawnvpe(mode, file, args, env) Execute the program path in a new process. (Note that the subprocess module provides ...
doc_3765
Center kernel matrix. Parameters Kndarray of shape (n_samples1, n_samples2) Kernel matrix. copybool, default=True Set to False to perform inplace computation. Returns K_newndarray of shape (n_samples1, n_samples2)
doc_3766
operator.__lshift__(a, b) Return a shifted left by b.
doc_3767
A field which accepts JSON encoded data for an HStoreField. It casts all values (except nulls) to strings. It is represented by an HTML <textarea>. User friendly forms HStoreField is not particularly user friendly in most cases, however it is a useful way to format data from a client-side widget for submission to the ...
doc_3768
[Deprecated] Render a tex expression to a PNG file. Parameters filename A writable filename or fileobject. texstrstr A valid mathtext string, e.g., r'IQ: $sigma_i=15$'. colorcolor The text color. dpifloat The dots-per-inch setting used to render the text. fontsizeint The font size in points. Re...
doc_3769
Return the ceiling of the input, element-wise. The ceil of the scalar x is the smallest integer i, such that i >= x. It is often denoted as \(\lceil x \rceil\). Parameters xarray_like Input data. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided...
doc_3770
current(newindex=None) If newindex is specified, sets the combobox value to the element position newindex. Otherwise, returns the index of the current value or -1 if the current value is not in the values list. get() Returns the current value of the combobox. set(value) Sets the value of the combobox to...
doc_3771
By default you will not get any tracebacks in user-defined functions, aggregates, converters, authorizer callbacks etc. If you want to debug them, you can call this function with flag set to True. Afterwards, you will get tracebacks from callbacks on sys.stderr. Use False to disable the feature again.
doc_3772
Construct a Pipeline from the given estimators. This is a shorthand for the Pipeline constructor; it does not require, and does not permit, naming the estimators. Instead, their names will be set to the lowercase of their types automatically. Parameters *stepslist of estimators. memorystr or object with the job...
doc_3773
See Migration guide for more details. tf.compat.v1.raw_ops.MatrixDiagV2 tf.raw_ops.MatrixDiagV2( diagonal, k, num_rows, num_cols, padding_value, name=None ) Returns a tensor with the contents in diagonal as k[0]-th to k[1]-th diagonals of a matrix, with everything else padded with padding. num_rows and num_cols ...
doc_3774
Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and beginning offset bytes into the field. Parameters valobject Value to be placed in field. dtypedtype object Data-type of the field in which to place val. offsetint, optional The number of b...
doc_3775
Read everything that can be without blocking in I/O (eager). Raise EOFError if connection closed and no cooked data available. Return b'' if no cooked data available otherwise. Do not block unless in the midst of an IAC sequence.
doc_3776
Set the normalization instance. Parameters normNormalize or None Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.
doc_3777
See Migration guide for more details. tf.compat.v1.distribute.cluster_resolver.TPUClusterResolver tf.distribute.cluster_resolver.TPUClusterResolver( tpu=None, zone=None, project=None, job_name='worker', coordinator_name=None, coordinator_address=None, credentials='default', service=None, discovery_url=Non...
doc_3778
See Migration guide for more details. tf.compat.v1.math.segment_sum, tf.compat.v1.segment_sum tf.math.segment_sum( data, segment_ids, name=None ) Read the section on segmentation for an explanation of segments. Computes a tensor such that \(output_i = \sum_j data_j\) where sum is over j such that segment_ids[j] ...
doc_3779
Like make_middleware but for decorating functions. Example usage: @manager.middleware def application(environ, start_response): ... The difference to make_middleware is that the function passed will have all the arguments copied from the inner application (name, docstring, module). Parameters func (WSGIApplicati...
doc_3780
Return the aspect ratio of the axes scaling. This is either "auto" or a float giving the ratio of y/x-scale.
doc_3781
Unpacks the data and pivots from a LU factorization of a tensor. Returns a tuple of tensors as (the pivots, the L tensor, the U tensor). Parameters LU_data (Tensor) – the packed LU factorization data LU_pivots (Tensor) – the packed LU factorization pivots unpack_data (bool) – flag indicating if the data should ...
doc_3782
Return Subtraction of series and other, element-wise (binary operator sub). 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_3783
Return a pair (response, date). date is a datetime object containing the current date and time of the server.
doc_3784
Modifies an already registered fd. This has the same effect as register(fd, eventmask). Attempting to modify a file descriptor that was never registered causes an OSError exception with errno ENOENT to be raised.
doc_3785
Returns the number of splitting iterations in the cross-validator Parameters Xobject Always ignored, exists for compatibility. yobject Always ignored, exists for compatibility. groupsobject Always ignored, exists for compatibility. Returns n_splitsint Returns the number of splitting iterations i...
doc_3786
Return the recommended gain value for the given nonlinearity function. The values are as follows: nonlinearity gain Linear / Identity 11 Conv{1,2,3}D 11 Sigmoid 11 Tanh 53\frac{5}{3} ReLU 2\sqrt{2} Leaky Relu 21+negative_slope2\sqrt{\frac{2}{1 + \text{negative\_slope}^2}} SELU 34\frac{3}{4} ...
doc_3787
Raised when an attribute reference (see Attribute references) or assignment fails. (When an object does not support attribute references or attribute assignments at all, TypeError is raised.)
doc_3788
Human retina. This image of a retina is useful for demonstrations requiring circular images. Returns retina(1411, 1411, 3) uint8 ndarray Retina image in RGB. Notes This image was downloaded from wikimedia. This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. Ref...
doc_3789
Release the underlying lock. This method calls the corresponding method on the underlying lock; there is no return value.
doc_3790
Plot visualization Extra keyword arguments will be passed to matplotlib’s plot. Parameters axmatplotlib axes, default=None Axes object to plot on. If None, a new figure and axes is created. namestr, default=None Name of ROC Curve for labeling. If None, use the name of the estimator. Returns displayRoc...
doc_3791
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_3792
See Migration guide for more details. tf.compat.v1.raw_ops.UnicodeDecodeWithOffsets tf.raw_ops.UnicodeDecodeWithOffsets( input, input_encoding, errors='replace', replacement_char=65533, replace_control_characters=False, Tsplits=tf.dtypes.int64, name=None ) The character codepoints for all strings are returne...
doc_3793
Internal attributes.
doc_3794
Return the system identifier for the current event.
doc_3795
Returns a new tensor with the tangent of the elements of input. outi=tan⁡(inputi)\text{out}_{i} = \tan(\text{input}_{i}) Parameters input (Tensor) – the input tensor. Keyword Arguments out (Tensor, optional) – the output tensor. Example: >>> a = torch.randn(4) >>> a tensor([-1.2027, -1.7687, 0.4412, -1.3856])...
doc_3796
tf.compat.v1.test.get_temp_dir() There is no need to delete the directory after the test. Returns The temporary directory.
doc_3797
Autocast Op Reference Op Eligibility Op-Specific Behavior Ops that can autocast to float16 Ops that can autocast to float32 Ops that promote to the widest input type Prefer binary_cross_entropy_with_logits over binary_cross_entropy Autocasting class torch.cuda.amp.autocast(enabled=True) [source] Instances o...
doc_3798
Reads the robots.txt URL and feeds it to the parser.
doc_3799
Alias for set_edgecolor.