_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_300
If a fallback has been set, forward npgettext() to the fallback. Otherwise, return the translated message. Overridden in derived classes. New in version 3.8.
doc_301
Parameters fpsint, default: 5 Movie frame rate (per second). codecstr or None, default: rcParams["animation.codec"] (default: 'h264') The codec to use. bitrateint, default: rcParams["animation.bitrate"] (default: -1) The bitrate of the movie, in kilobits per second. Higher values means higher quality mo...
doc_302
Determine whether input has masked values. Accepts any object as input, but always returns False unless the input is a MaskedArray containing masked values. Parameters xarray_like Array to check for masked values. Returns resultbool True if x is a MaskedArray with masked values, False otherwise. Exa...
doc_303
Return the string left justified in a string of length width. Padding is done using the specified fillchar (default is an ASCII space). The original string is returned if width is less than or equal to len(s).
doc_304
class sklearn.linear_model.GammaRegressor(*, alpha=1.0, fit_intercept=True, max_iter=100, tol=0.0001, warm_start=False, verbose=0) [source] Generalized Linear Model with a Gamma distribution. Read more in the User Guide. New in version 0.23. Parameters alphafloat, default=1 Constant that multiplies the penalt...
doc_305
tf.compat.v1.summary.merge( inputs, collections=None, name=None ) This op creates a Summary protocol buffer that contains the union of all the values in the input summaries. When the Op is run, it reports an InvalidArgument error if multiple values in the summaries to merge use the same tag. Args inputs A...
doc_306
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_307
Return a random text string, in hexadecimal. The string has nbytes random bytes, each byte converted to two hex digits. If nbytes is None or not supplied, a reasonable default is used. >>> token_hex(16) 'f9bf78b9a18ce6d46a0cd2b0b86df9da'
doc_308
Handles responding to requests for the OPTIONS HTTP verb. Returns a response with the Allow header containing a list of the view’s allowed HTTP method names.
doc_309
Return a list of three per-generation dictionaries containing collection statistics since interpreter start. The number of keys may change in the future, but currently each dictionary will contain the following items: collections is the number of times this generation was collected; collected is the total number of ...
doc_310
Returns True if the panel is hidden (not visible), False otherwise.
doc_311
Set the url for the artist. Parameters urlstr
doc_312
Set multiple properties at once. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None animated bool bbox_to_anchor unknown child unknown clip_box Bbox clip_on bool clip_pa...
doc_313
Type for categorical data with the categories and orderedness. Parameters categories:sequence, optional Must be unique, and must not contain any nulls. The categories are stored in an Index, and if an index is provided the dtype of that index will be used. ordered:bool or None, default False Whether or not ...
doc_314
Broadcasts the given tensors according to Broadcasting semantics. Parameters *tensors – any number of tensors of the same type Warning More than one element of a broadcasted tensor may refer to a single memory location. As a result, in-place operations (especially ones that are vectorized) may result in incorrec...
doc_315
This string contains a platform identifier that can be used to append platform-specific components to sys.path, for instance. For Unix systems, except on Linux and AIX, this is the lowercased OS name as returned by uname -s with the first part of the version as returned by uname -r appended, e.g. 'sunos5' or 'freebsd8'...
doc_316
Transparently opens files compressed with gzip and bzip2 (recognized by the extensions '.gz' and '.bz2') using the gzip and bz2 modules. If the filename extension is not '.gz' or '.bz2', the file is opened normally (ie, using open() without any decompression). Usage example: fi = fileinput.FileInput(openhook=fileinput....
doc_317
Get a mask, or integer index, of the features selected Parameters indicesbool, default=False If True, the return value will be an array of integers, rather than a boolean mask. Returns supportarray An index that selects the retained features from a feature vector. If indices is False, this is a boolean ...
doc_318
Return output (stdout and stderr) of executing cmd in a shell. Like getstatusoutput(), except the exit code is ignored and the return value is a string containing the command’s output. Example: >>> subprocess.getoutput('ls /bin/ls') '/bin/ls' Availability: POSIX & Windows. Changed in version 3.3.4: Windows support ad...
doc_319
Current flat index into the array. Examples >>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.index 0 >>> next(fl) 0 >>> fl.index 1
doc_320
Same as time.strftime(). This makes it possible to specify a format string for a time object in formatted string literals and when using str.format(). For a complete list of formatting directives, see strftime() and strptime() Behavior.
doc_321
Return self*=value.
doc_322
Return whether units are set on any axis.
doc_323
Read all the data from the binary file-like object fp, parse the resulting bytes, and return the message object. fp must support both the readline() and the read() methods. The bytes contained in fp must be formatted as a block of RFC 5322 (or, if utf8 is True, RFC 6532) style headers and header continuation lines, opt...
doc_324
Set the clip rectangle to a Bbox or None.
doc_325
Return a backend-specific tuple to return to the backend after all processing is done.
doc_326
A subclass of ConnectionError, raised when a connection attempt is aborted by the peer. Corresponds to errno ECONNABORTED.
doc_327
tf.compat.v1.delete_session_tensor( handle, name=None ) This is EXPERIMENTAL and subject to change. Delete the tensor of a given tensor handle. The tensor is produced in a previous run() and stored in the state of the session. Args handle The string representation of a persistent tensor handle. name ...
doc_328
Return a frozen copy of this transform node. The frozen copy will not be updated when its children change. Useful for storing a previously known state of a transform where copy.deepcopy() might normally be used.
doc_329
Fit the RFE model and automatically tune the number of selected features. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) Training vector, where n_samples is the number of samples and n_features is the total number of features. yarray-like of shape (n_samples,) Target values (in...
doc_330
kind = 'second'
doc_331
Return True if sources contains Fortran files
doc_332
Bases: matplotlib.offsetbox.DraggableOffsetBox Wrapper around a Legend to support mouse dragging. Parameters legendLegend The Legend instance to wrap. use_blitbool, optional Use blitting for faster image composition. For details see FuncAnimation. update{'loc', 'bbox'}, optional If "loc", update the loc...
doc_333
Select initial periods of time series data based on a date offset. When having a DataFrame with dates as index, this function can select the first few rows based on a date offset. Parameters offset:str, DateOffset or dateutil.relativedelta The offset length of the data that will be selected. For instance, ‘1M’ ...
doc_334
Signed integer type, compatible with C char. Character code 'b' Alias on this platform (Linux x86_64) numpy.int8: 8-bit signed integer (-128 to 127).
doc_335
Returns a tuple (buildno, builddate) stating the Python build number and date as strings.
doc_336
See Migration guide for more details. tf.compat.v1.raw_ops.ResizeNearestNeighbor tf.raw_ops.ResizeNearestNeighbor( images, size, align_corners=False, half_pixel_centers=False, name=None ) Args images A Tensor. Must be one of the following types: int8, uint8, int16, uint16, int32, int64, half, float32, f...
doc_337
Return whether line has a dashed linestyle. A custom linestyle is assumed to be dashed, we do not inspect the onoffseq directly. See also set_linestyle.
doc_338
Return the artist's zorder.
doc_339
Make a bar plot. The bars are positioned at x with the given alignment. Their dimensions are given by height and width. The vertical baseline is bottom (default 0). Many parameters can take either a single value applying to all bars or a sequence of values, one for each bar. Parameters xfloat or array-like The ...
doc_340
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_341
Return an iterator of os.DirEntry objects corresponding to the entries in the directory given by path. The entries are yielded in arbitrary order, and the special entries '.' and '..' are not included. If a file is removed from or added to the directory after creating the iterator, whether an entry for that file be inc...
doc_342
[Deprecated] Run the matplotlib test suite. Notes Deprecated since version 3.5.
doc_343
Set the antialiasing state for rendering. Parameters aabool or list of bools
doc_344
A RegexValidator instance that ensures a value looks like an IPv4 address.
doc_345
Bases: matplotlib.backend_tools.ToolBase Base class for ToolHome, ToolBack and ToolForward. trigger(sender, event, data=None)[source] Called when this tool gets used. This method is called by ToolManager.trigger_tool. Parameters eventEvent The canvas event that caused this tool to be called. senderobject ...
doc_346
Flags indicating how strict to be with domain-matching rules for Netscape cookies. See below for acceptable values.
doc_347
See Migration guide for more details. tf.compat.v1.raw_ops.FIFOQueue tf.raw_ops.FIFOQueue( component_types, shapes=[], capacity=-1, container='', shared_name='', name=None ) Args component_types A list of tf.DTypes that has length >= 1. The type of each component in a value. shapes An optional...
doc_348
Returns the type of the attribute name, which is normally 'CDATA'.
doc_349
See Migration guide for more details. tf.compat.v1.keras.applications.xception.decode_predictions tf.keras.applications.xception.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. Retur...
doc_350
tf.experimental.numpy.array_equal( a1, a2 ) Unsupported arguments: equal_nan. See the NumPy documentation for numpy.array_equal.
doc_351
Boolean flag that is True if the field has a one-to-one relation, such as a OneToOneField; False otherwise.
doc_352
See Migration guide for more details. tf.compat.v1.io.RaggedFeature.RowLimits tf.io.RaggedFeature.RowLimits( key ) Attributes key
doc_353
Bases: matplotlib.widgets.RectangleSelector Select an elliptical region of an axes. For the cursor to remain responsive you must keep a reference to it. Press and release events triggered at the same coordinates outside the selection will clear the selector, except when ignore_event_outside=True. Parameters axAxe...
doc_354
See Migration guide for more details. tf.compat.v1.train.SingularMonitoredSession.StepContext tf.compat.v1.train.MonitoredSession.StepContext( session, run_with_hooks_fn ) Users of step_fn may perform run() calls without running hooks by accessing the session. A run() call with hooks may be performed using run_w...
doc_355
See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorHouseholder tf.linalg.LinearOperatorHouseholder( reflection_axis, is_non_singular=None, is_self_adjoint=None, is_positive_definite=None, is_square=None, name='LinearOperatorHouseholder' ) This operator acts like a [batch] of househol...
doc_356
See Migration guide for more details. tf.compat.v1.raw_ops.StringToHashBucketFast tf.raw_ops.StringToHashBucketFast( input, num_buckets, name=None ) The hash function is deterministic on the content of the string within the process and will never change. However, it is not suitable for cryptography. This functio...
doc_357
'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_358
Remove an Axes (defaulting to the current axes) from its figure.
doc_359
Accept: application/json Might receive an error response indicating that the DELETE method is not allowed on that resource: HTTP/1.1 405 Method Not Allowed Content-Type: application/json Content-Length: 42 {"detail": "Method 'DELETE' not allowed."} Validation errors are handled slightly differently, and will include...
doc_360
Bases: object A class for finding the minimum cost path through a given n-d costs array. Given an n-d costs array, this class can be used to find the minimum-cost path through that array from any set of points to any other set of points. Basic usage is to initialize the class and call find_costs() with a one or more st...
doc_361
Return whether the artist is to be rasterized.
doc_362
Class which represents a chunk. The file argument is expected to be a file-like object. An instance of this class is specifically allowed. The only method that is needed is read(). If the methods seek() and tell() are present and don’t raise an exception, they are also used. If these methods are present and raise an ex...
doc_363
Feature ranking with recursive feature elimination. Given an external estimator that assigns weights to features (e.g., the coefficients of a linear model), the goal of recursive feature elimination (RFE) is to select features by recursively considering smaller and smaller sets of features. First, the estimator is tr...
doc_364
Trigonometric inverse tangent, element-wise. The inverse of tan, so that if y = tan(x) then x = arctan(y). Parameters xarray_like outndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided...
doc_365
See torch.nansum()
doc_366
Calculate the rolling unbiased skewness. Parameters **kwargs For NumPy compatibility and will not have an effect on the result. Returns Series or DataFrame Return type is the same as the original object with np.float64 dtype. See also scipy.stats.skew Third moment of a probability density. pandas.Se...
doc_367
[Deprecated] Get the depth of a mathtext string. Parameters texstrstr A valid mathtext string, e.g., r'IQ: $sigma_i=15$'. dpifloat The dots-per-inch setting used to render the text. Returns int Offset of the baseline from the bottom of the image, in pixels. Notes Deprecated since version 3.4.
doc_368
Return True if the symbol is assigned to in its block.
doc_369
Bases: matplotlib.path.Path Create a path from the text. Create a path from the text. Note that it simply is a path, not an artist. You need to use the PathPatch (or other artists) to draw this path onto the canvas. Parameters xytuple or array of two float values Position of the text. For no offset, use xy=(0, ...
doc_370
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_371
Check if windows match. New in version 1.6.0. Parameters otherclass instance The other class must have the window attribute. Returns boolboolean True if the windows are the same, False otherwise.
doc_372
Check if domains match. New in version 1.6.0. Parameters otherclass instance The other class must have the domain attribute. Returns boolboolean True if the domains are the same, False otherwise.
doc_373
Return unbiased standard error of the mean over requested axis. Normalized by N-1 by default. This can be changed using the ddof argument Parameters axis:{index (0)} skipna:bool, default True Exclude NA/null values. If an entire row/column is NA, the result will be NA. level:int or level name, default None ...
doc_374
See torch.amin()
doc_375
[Deprecated] Convert a mathtext string to an RGBA array and depth. Parameters 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. Returns array(M, N, 4) array ...
doc_376
Get integer location, slice or boolean mask for requested label. Parameters key:label method:{None}, optional default: matches where the label is within an interval only. Returns int if unique index, slice if monotonic index, else mask Examples >>> i1, i2 = pd.Interval(0, 1), pd.Interval(1, 2) >>> ...
doc_377
Bases: matplotlib.backend_bases.GraphicsContextBase alpha_cmd(alpha, forced, effective_alphas)[source] capstyle_cmd(style)[source] capstyles={'butt': 0, 'projecting': 2, 'round': 1} clip_cmd(cliprect, clippath)[source] Set clip rectangle. Calls pop() and push(). commands=((('_cliprect', '_clippath...
doc_378
Return the entire message flattened as a bytes object. When optional unixfrom is true, the envelope header is included in the returned string. unixfrom defaults to False. The policy argument may be used to override the default policy obtained from the message instance. This can be used to control some of the formatting...
doc_379
Cast to DatetimeIndex of timestamps, at beginning of period. Parameters freq:str, default frequency of PeriodIndex Desired frequency. how:{‘s’, ‘e’, ‘start’, ‘end’} Convention for converting period to timestamp; start of period vs. end. axis:{0 or ‘index’, 1 or ‘columns’}, default 0 The axis to convert ...
doc_380
class sklearn.feature_selection.SelectFdr(score_func=<function f_classif>, *, alpha=0.05) [source] Filter: Select the p-values for an estimated false discovery rate This uses the Benjamini-Hochberg procedure. alpha is an upper bound on the expected false discovery rate. Read more in the User Guide. Parameters sco...
doc_381
Set the linewidth in points.
doc_382
Returns a pair (conn1, conn2) of Connection objects representing the ends of a pipe. If duplex is True (the default) then the pipe is bidirectional. If duplex is False then the pipe is unidirectional: conn1 can only be used for receiving messages and conn2 can only be used for sending messages.
doc_383
Return a 3-tuple (login, account, password) of authenticators for host. If the netrc file did not contain an entry for the given host, return the tuple associated with the ‘default’ entry. If neither matching host nor default entry is available, return None.
doc_384
Make a histogram of the DataFrame’s columns. A histogram is a representation of the distribution of data. This function calls matplotlib.pyplot.hist(), on each series in the DataFrame, resulting in one histogram per column. Parameters data:DataFrame The pandas object holding the data. column:str or sequence, ...
doc_385
A dict of keyword arguments values. Dynamically computed from the arguments attribute.
doc_386
A deprecated alias of OSError. Changed in version 3.3: Following PEP 3151, this class was made an alias of OSError.
doc_387
Take the input data array, convert to HSV values in the given colormap, then adjust those color values to give the impression of a shaded relief map with a specified light source. RGBA values are returned, which can then be used to plot the shaded image with imshow. The color of the resulting image will be darkened b...
doc_388
Blocking call to interact with the figure. Wait for user input and return True if a key was pressed, False if a mouse button was pressed and None if no input was given within timeout seconds. Negative values deactivate timeout. Examples using matplotlib.pyplot.waitforbuttonpress Interactive functions
doc_389
The JSON document being parsed.
doc_390
Handle authentication with the remote host. password_mgr, if given, should be something that is compatible with HTTPPasswordMgr; refer to section HTTPPasswordMgr Objects for information on the interface that must be supported. HTTPBasicAuthHandler will raise a ValueError when presented with a wrong Authentication schem...
doc_391
The first index of invalid data in object.
doc_392
Finds all matching subelements, by tag name or path. Returns an iterable yielding all matching elements in document order. namespaces is an optional mapping from namespace prefix to full name. New in version 3.2.
doc_393
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_394
Build a decision tree regressor from the training set (X, y). Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to dtype=np.float32 and if a sparse matrix is provided to a sparse csc_matrix. yarray-like of shape (n_samples,) o...
doc_395
See Migration guide for more details. tf.compat.v1.raw_ops.ZipDataset tf.raw_ops.ZipDataset( input_datasets, output_types, output_shapes, name=None ) The elements of the resulting dataset are created by zipping corresponding elements from each of the input datasets. The size of the resulting dataset will match t...
doc_396
Set the Figure instance the artist belongs to. Parameters figFigure
doc_397
See Migration guide for more details. tf.compat.v1.raw_ops.ReverseSequence tf.raw_ops.ReverseSequence( input, seq_lengths, seq_dim, batch_dim=0, name=None ) This op first slices input along the dimension batch_dim, and for each slice i, reverses the first seq_lengths[i] elements along the dimension seq_dim. The ...
doc_398
This is a NamedNodeMap giving the definitions of notations. For notation names defined more than once, only the first definition is provided (others are ignored as required by the XML recommendation). This may be None if the information is not provided by the parser, or if no notations are defined.
doc_399
Probability estimates. The returned estimates for all classes are ordered by the label of classes. For a multi_class problem, if multi_class is set to be “multinomial” the softmax function is used to find the predicted probability of each class. Else use a one-vs-rest approach, i.e calculate the probability of each c...