_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_23100
Represents a writer object that provides APIs to write data to the IO stream. It is not recommended to instantiate StreamWriter objects directly; use open_connection() and start_server() instead. write(data) The method attempts to write the data to the underlying socket immediately. If that fails, the data is queue...
doc_23101
tf.compat.v1.gfile.Copy( oldpath, newpath, overwrite=False ) Args oldpath string, name of the file who's contents need to be copied newpath string, name of the file to which to copy to overwrite boolean, if false it's an error for newpath to be occupied by an existing file. Raises er...
doc_23102
the number of active fingers for a given touch device get_num_fingers(touchid) -> int Return the number of fingers active for the touch device whose id is touchid.
doc_23103
Get Modulo of dataframe and other, element-wise (binary operator mod). Equivalent to dataframe % other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, rmod. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //, %, **. ...
doc_23104
Draw a Gouraud-shaded triangle. Parameters gcGraphicsContextBase The graphics context. points(3, 2) array-like Array of (x, y) points for the triangle. colors(3, 4) array-like RGBA colors for each point of the triangle. transformmatplotlib.transforms.Transform An affine transform to apply to the poi...
doc_23105
tf.experimental.numpy.atleast_3d( *arys ) See the NumPy documentation for numpy.atleast_3d.
doc_23106
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_23107
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_23108
Return True if the object is a module.
doc_23109
Shortcut for route() with methods=["GET"]. New in version 2.0. Parameters rule (str) – options (Any) – Return type Callable
doc_23110
Transform documents to document-term matrix. Extract token counts out of raw text documents using the vocabulary fitted with fit or the one provided to the constructor. Parameters raw_documentsiterable An iterable which yields either str, unicode or file objects. Returns Xsparse matrix of shape (n_samples...
doc_23111
If self is alive then mark it as dead and return the result of calling func(*args, **kwargs). If self is dead then return None.
doc_23112
See torch.ge().
doc_23113
Init n_clusters seeds according to k-means++ New in version 0.24. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data to pick seeds from. n_clustersint The number of centroids to initialize x_squared_normsarray-like of shape (n_samples,), default=None Squared Euclidean no...
doc_23114
tf.experimental.numpy.average( a, axis=None, weights=None, returned=False ) See the NumPy documentation for numpy.average.
doc_23115
Return the integer “file descriptor” for the current file. When no file is opened (before the first line and between files), returns -1.
doc_23116
Return cumulative sum over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative sum. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The index or the name of the axis. 0 is equivalent to None or ‘index’. skipna:bool, default True Exclude NA/null valu...
doc_23117
See Migration guide for more details. tf.compat.v1.raw_ops.SetStatsAggregatorDataset tf.raw_ops.SetStatsAggregatorDataset( input_dataset, stats_aggregator, tag, counter_prefix, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. stats_aggregator A Tensor of ty...
doc_23118
Return self&value.
doc_23119
The headers received with the request.
doc_23120
Analyze the contents of the pathname file, which must contain Python code.
doc_23121
Get the points of the bounding box directly as a numpy array of the form: [[x0, y0], [x1, y1]].
doc_23122
An ABC with one abstract method __complex__.
doc_23123
Set the name of the axis for the index or columns. Parameters mapper:scalar, list-like, optional Value to set the axis name attribute. index, columns:scalar, list-like, dict-like or function, optional A scalar, list-like, dict-like or functions transformations to apply to that axis’ values. Note that the co...
doc_23124
Fit to data, then transform it. Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X. Parameters Xarray-like of shape (n_samples, n_features) Input samples. yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None Target values (None for uns...
doc_23125
Return the complex conjugate, element-wise. The complex conjugate of a complex number is obtained by changing the sign of its imaginary part. Parameters xarray_like Input value. outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a s...
doc_23126
Set handler as the new event loop exception handler. If handler is None, the default exception handler will be set. Otherwise, handler must be a callable with the signature matching (loop, context), where loop is a reference to the active event loop, and context is a dict object containing the details of the exception ...
doc_23127
Immutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. Float64Index is a special case of Index with purely float labels. . Deprecated since version 1.4.0: In pandas v2.0 Float64Index will be removed and NumericIndex used instead. Float64Index will remain full...
doc_23128
Receive data from the socket, writing it into buffer instead of creating a new bytestring. The return value is a pair (nbytes, address) where nbytes is the number of bytes received and address is the address of the socket sending the data. See the Unix manual page recv(2) for the meaning of the optional argument flags;...
doc_23129
An async generator can be annotated by the generic type AsyncGenerator[YieldType, SendType]. For example: async def echo_round() -> AsyncGenerator[int, float]: sent = yield 0 while sent >= 0.0: rounded = await round(sent) sent = yield rounded Unlike normal generators, async generators cannot re...
doc_23130
Called once before any tests are executed. New in version 3.1.
doc_23131
Mean absolute percentage error regression loss. Note here that we do not represent the output as a percentage in range [0, 100]. Instead, we represent it in range [0, 1/eps]. Read more in the User Guide. New in version 0.24. Parameters y_truearray-like of shape (n_samples,) or (n_samples, n_outputs) Ground tr...
doc_23132
A bool that controls whether cuDNN is enabled.
doc_23133
See Migration guide for more details. tf.compat.v1.raw_ops.RefSwitch tf.raw_ops.RefSwitch( data, pred, name=None ) If pred is true, the data input is forwarded to output_true. Otherwise, the data goes to output_false. See also Switch and Merge. Args data A mutable Tensor. The ref tensor to be forwarded ...
doc_23134
The get_autocomplete_fields() method is given the HttpRequest and is expected to return a list or tuple of field names that will be displayed with an autocomplete widget as described above in the ModelAdmin.autocomplete_fields section.
doc_23135
Get a sorted list of all of the plotting commands.
doc_23136
Return the lower and upper y-axis bounds, in increasing order. See also set_ybound get_ylim, set_ylim invert_yaxis, yaxis_inverted
doc_23137
When an expression, such as a function call, appears as a statement by itself with its return value not used or stored, it is wrapped in this container. value holds one of the other nodes in this section, a Constant, a Name, a Lambda, a Yield or YieldFrom node. >>> print(ast.dump(ast.parse('-a'), indent=4)) Module( ...
doc_23138
Required. 255 characters or fewer. Example: 'Can vote'.
doc_23139
The prefix for the generated form.
doc_23140
New in version 3.5. A subclass of enum.IntEnum that defines a set of HTTP status codes, reason phrases and long descriptions written in English. Usage: >>> from http import HTTPStatus >>> HTTPStatus.OK <HTTPStatus.OK: 200> >>> HTTPStatus.OK == 200 True >>> HTTPStatus.OK.value 200 >>> HTTPStatus.OK.phrase 'OK' >>> HTT...
doc_23141
Return the clip path.
doc_23142
tf.experimental.numpy.nansum( a, axis=None, dtype=None, keepdims=False ) Unsupported arguments: out. See the NumPy documentation for numpy.nansum.
doc_23143
The concatenation of the drive and root: >>> PureWindowsPath('c:/Program Files/').anchor 'c:\\' >>> PureWindowsPath('c:Program Files/').anchor 'c:' >>> PurePosixPath('/etc').anchor '/' >>> PureWindowsPath('//host/share').anchor '\\\\host\\share\\'
doc_23144
Return rendered text as a surface render(text, fgcolor=None, bgcolor=None, style=STYLE_DEFAULT, rotation=0, size=0) -> (Surface, Rect) Returns a new Surface, with the text rendered to it in the color given by 'fgcolor'. If no foreground color is given, the default foreground color, fgcolor is used. If bgcolor is give...
doc_23145
Return cumulative minimum over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative minimum. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The index or the name of the axis. 0 is equivalent to None or ‘index’. skipna:bool, default True Exclude NA/n...
doc_23146
Returns socket instance used to connect to server.
doc_23147
Equivalent to running: f2py <args> where <args>=string.join(<list>,' '), but in Python. Unless -h is used, this function returns a dictionary containing information on generated modules and their dependencies on source files. For example, the command f2py -m scalar scalar.f can be executed from Python as follows You...
doc_23148
Return the Colormap instance.
doc_23149
Return a string representation of the Morsel, suitable to be sent as an HTTP header. By default, all the attributes are included, unless attrs is given, in which case it should be a list of attributes to use. header is by default "Set-Cookie:".
doc_23150
Mutual Information between two clusterings. The Mutual Information is a measure of the similarity between two labels of the same data. Where \(|U_i|\) is the number of the samples in cluster \(U_i\) and \(|V_j|\) is the number of the samples in cluster \(V_j\), the Mutual Information between clusterings \(U\) and \(V...
doc_23151
Add a centered suptitle to the figure. Parameters tstr The suptitle text. xfloat, default: 0.5 The x location of the text in figure coordinates. yfloat, default: 0.98 The y location of the text in figure coordinates. horizontalalignment, ha{'center', 'left', 'right'}, default: center The horizontal ...
doc_23152
get the current position of an axis get_axis(axis_number) -> float Returns the current position of a joystick axis. The value will range from -1 to 1 with a value of 0 being centered. You may want to take into account some tolerance to handle jitter, and joystick drift may keep the joystick from centering at 0 or usi...
doc_23153
Expects input to be <= 2-D tensor and transposes dimensions 0 and 1. 0-D and 1-D tensors are returned as is. When input is a 2-D tensor this is equivalent to transpose(input, 0, 1). Parameters input (Tensor) – the input tensor. Example: >>> x = torch.randn(()) >>> x tensor(0.1995) >>> torch.t(x) tensor(0.1995) >>> ...
doc_23154
See Migration guide for more details. tf.compat.v1.keras.applications.mobilenet_v3.decode_predictions tf.keras.applications.mobilenet_v3.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. ...
doc_23155
See Migration guide for more details. tf.compat.v1.keras.backend.reset_uids tf.keras.backend.reset_uids()
doc_23156
Predict using the multi-layer perceptron model. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The input data. Returns yndarray of shape (n_samples, n_outputs) The predicted values.
doc_23157
Returns a Tensor of size size filled with uninitialized data. By default, the returned Tensor has the same torch.dtype and torch.device as this tensor. Parameters dtype (torch.dtype, optional) – the desired type of returned tensor. Default: if None, same torch.dtype as this tensor. device (torch.device, optional) ...
doc_23158
Value indicating that a masked array has no invalid entry. nomask is used internally to speed up computations when the mask is not needed. It is represented internally as np.False_.
doc_23159
Return str(self).
doc_23160
Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise. See also char.isalpha
doc_23161
Out-of-place version of torch.Tensor.masked_scatter_()
doc_23162
Return the complex conjugate, element-wise. Refer to numpy.conjugate for full documentation. See also numpy.conjugate equivalent function
doc_23163
Alias for get_fontproperties.
doc_23164
Return the mean accuracy on the given test data and labels. In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted. Parameters Xarray-like of shape (n_samples, n_features) Test samples. yarray-like of shap...
doc_23165
A multi-label model that arranges regressions into a chain. Each model makes a prediction in the order specified by the chain using all of the available features provided to the model plus the predictions of models that are earlier in the chain. Read more in the User Guide. New in version 0.20. Parameters base_...
doc_23166
tf.compat.v1.initialize_variables( var_list, name='init' ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed after 2017-03-02. Instructions for updating: Use tf.variables_initializer instead. Note: The output of this function should be used. If it is not, a warning will be logged or an error may be raised. ...
doc_23167
If this attribute is numeric and 1 or more, a shlex instance will print verbose progress output on its behavior. If you need to use this, you can read the module source code to learn the details.
doc_23168
Get the formatter of the minor ticker.
doc_23169
A mixin to create case-insensitive text fields backed by the citext type. Read about the performance considerations prior to using it. To use citext, use the CITextExtension operation to set up the citext extension in PostgreSQL before the first CreateModel migration operation. If you’re using an ArrayField of CIText f...
doc_23170
Flag showing the status of the user site-packages directory. True means that it is enabled and was added to sys.path. False means that it was disabled by user request (with -s or PYTHONNOUSERSITE). None means it was disabled for security reasons (mismatch between user or group id and effective id) or by an administrato...
doc_23171
Bases: matplotlib.colors.Normalize Normalize symmetrical data around a center (0 by default). Unlike TwoSlopeNorm, CenteredNorm applies an equal rate of change around the center. Useful when mapping symmetrical data around a conceptual center e.g., data that range from -2 to 4, with 0 as the midpoint, and with equal ...
doc_23172
Similar to loop.create_server() but works with the AF_UNIX socket family. path is the name of a Unix domain socket, and is required, unless a sock argument is provided. Abstract Unix sockets, str, bytes, and Path paths are supported. See the documentation of the loop.create_server() method for information about argumen...
doc_23173
Check if the interval is closed on the left side. For the meaning of closed and open see Interval. Returns bool True if the Interval is closed on the left-side.
doc_23174
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_23175
Return a dictionary of supported CPU features by the platform, and accumulate the rest of undefined options in conf_features, the returned dict has same rules and notes in class attribute conf_features, also its override any options that been set in ‘conf_features’.
doc_23176
Local bottom-hat of an image. This filter computes the morphological closing of the image and then subtracts the result from the original image. Parameters image2-D array (integer or float) Input image. selem2-D array (integer or float) The neighborhood expressed as a 2-D array of 1’s and 0’s. out2-D arra...
doc_23177
Resizes self tensor to the specified size. If the number of elements is larger than the current storage size, then the underlying storage is resized to fit the new number of elements. If the number of elements is smaller, the underlying storage is not changed. Existing elements are preserved but any new memory is unini...
doc_23178
Aggregate using one or more operations over the specified axis. Parameters func:function, str, list or dict Function to use for aggregating the data. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply. Accepted combinations are: function string function name list of funct...
doc_23179
See Migration guide for more details. tf.compat.v1.raw_ops.ResizeArea tf.raw_ops.ResizeArea( images, size, align_corners=False, name=None ) Input images can be of different types but output images are always float. The range of pixel values for the output image might be slightly different from the range for the ...
doc_23180
This exception is raised when the get_nowait() method is called on an empty queue.
doc_23181
Apply the affine part of this transform to Path path, returning a new Path. transform_path(path) is equivalent to transform_path_affine(transform_path_non_affine(values)).
doc_23182
stop sound playback after fading out fadeout(time) -> None This will stop playback of the sound after fading it out over the time argument in milliseconds. The Sound will fade and stop on all actively playing channels.
doc_23183
See Migration guide for more details. tf.compat.v1.config.threading.set_intra_op_parallelism_threads tf.config.threading.set_intra_op_parallelism_threads( num_threads ) Certain operations like matrix multiplication and reductions can utilize parallel threads for speed ups. A value of 0 means the system picks an ...
doc_23184
sklearn.isotonic.isotonic_regression(y, *, sample_weight=None, y_min=None, y_max=None, increasing=True) [source] Solve the isotonic regression model. Read more in the User Guide. Parameters yarray-like of shape (n_samples,) The data. sample_weightarray-like of shape (n_samples,), default=None Weights on eac...
doc_23185
sklearn.datasets.fetch_kddcup99(*, subset=None, data_home=None, shuffle=False, random_state=None, percent10=True, download_if_missing=True, return_X_y=False, as_frame=False) [source] Load the kddcup99 dataset (classification). Download it if necessary. Classes 23 Samples total 4898431 Dimensionality 41 Featur...
doc_23186
See Migration guide for more details. tf.compat.v1.keras.experimental.LinearModel tf.keras.experimental.LinearModel( units=1, activation=None, use_bias=True, kernel_initializer='zeros', bias_initializer='zeros', kernel_regularizer=None, bias_regularizer=None, **kwargs ) This model approximates the follow...
doc_23187
The default center latitude and longitude are 47 and 5, respectively, which is a location in eastern France.
doc_23188
A dictionary mapping names to descriptors for nested functions and classes. New in version 3.7.
doc_23189
class sklearn.linear_model.Ridge(alpha=1.0, *, fit_intercept=True, normalize=False, copy_X=True, max_iter=None, tol=0.001, solver='auto', random_state=None) [source] Linear least squares with l2 regularization. Minimizes the objective function: ||y - Xw||^2_2 + alpha * ||w||^2_2 This model solves a regression model ...
doc_23190
Compute the sign and (natural) logarithm of the determinant of an array. If an array has a very small or very large determinant, then a call to det may overflow or underflow. This routine is more robust against such issues, because it computes the logarithm of the determinant rather than the determinant itself. Para...
doc_23191
Bases: skimage.viewer.widgets.core.BaseWidget Slider widget for adjusting numeric parameters. Parameters namestr Name of slider parameter. If this parameter is passed as a keyword argument, it must match the name of that keyword argument (spaces are replaced with underscores). In addition, this name is displaye...
doc_23192
This hook function is called by built-in breakpoint(). By default, it drops you into the pdb debugger, but it can be set to any other function so that you can choose which debugger gets used. The signature of this function is dependent on what it calls. For example, the default binding (e.g. pdb.set_trace()) expects no...
doc_23193
Return the process exit status. This function should be employed only if WIFEXITED() is true. Availability: Unix.
doc_23194
Partial dependence of features. Partial dependence of a feature (or a set of features) corresponds to the average response of an estimator for each possible value of the feature. Read more in the User Guide. Warning For GradientBoostingClassifier and GradientBoostingRegressor, the 'recursion' method (used by default...
doc_23195
rotate an image rotate(Surface, angle) -> Surface Unfiltered counterclockwise rotation. The angle argument represents degrees and can be any floating point value. Negative angle amounts will rotate clockwise. Unless rotating by 90 degree increments, the image will be padded larger to hold the new size. If the image h...
doc_23196
Get LaTeX preamble from rc.
doc_23197
pygame module for loading and playing sounds This module contains classes for loading Sound objects and controlling playback. The mixer module is optional and depends on SDL_mixer. Your program should test that pygame.mixer is available and initialized before using it. The mixer module has a limited number of chan...
doc_23198
Convert the input to a chararray, copying the data only if necessary. Versus a regular NumPy array of type str or unicode, this class adds the following functionality: values automatically have whitespace removed from the end when indexed comparison operators automatically remove whitespace from the end when compari...
doc_23199
tf.compat.v1.losses.hinge_loss( labels, logits, weights=1.0, scope=None, loss_collection=tf.GraphKeys.LOSSES, reduction=Reduction.SUM_BY_NONZERO_WEIGHTS ) Args labels The ground truth output tensor. Its shape should match the shape of logits. The values of the tensor are expected to be 0.0 or 1.0. Int...