_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_10600
Return whether the artist is animated.
doc_10601
Make new Index inserting new item at location. Follows Python numpy.insert semantics for negative values. Parameters loc:int item:object Returns new_index:Index
doc_10602
The Dialect class is a container class relied on primarily for its attributes, which are used to define the parameters for a specific reader or writer instance.
doc_10603
A boolean attribute that indicates whether the user is considered “active”. This attribute is provided as an attribute on AbstractBaseUser defaulting to True. How you choose to implement it will depend on the details of your chosen auth backends. See the documentation of the is_active attribute on the built-in user mod...
doc_10604
Abstract base class for structures in big endian byte order.
doc_10605
True if this transform is separable in the x- and y- dimensions.
doc_10606
Find the set exclusive-or of two arrays. Return the sorted, unique values that are in only one (not both) of the input arrays. Parameters ar1, ar2array_like Input arrays. assume_uniquebool If True, the input arrays are both assumed to be unique, which can speed up the calculation. Default is False. Retur...
doc_10607
A subclass of tuple, holding (columns, lines) of the terminal window size. columns Width of the terminal window in characters. lines Height of the terminal window in characters.
doc_10608
Add increment to the process’s “niceness”. Return the new niceness. Availability: Unix.
doc_10609
Alias for get_edgecolor.
doc_10610
Draw an RGBA image. Parameters gcGraphicsContextBase A graphics context with clipping information. xscalar The distance in physical units (i.e., dots or pixels) from the left hand side of the canvas. yscalar The distance in physical units (i.e., dots or pixels) from the bottom side of the canvas. im(N...
doc_10611
class sklearn.gaussian_process.kernels.RationalQuadratic(length_scale=1.0, alpha=1.0, length_scale_bounds=1e-05, 100000.0, alpha_bounds=1e-05, 100000.0) [source] Rational Quadratic kernel. The RationalQuadratic kernel can be seen as a scale mixture (an infinite sum) of RBF kernels with different characteristic length...
doc_10612
Update the x-bounds of the Bbox based on the passed in data. After updating, the bounds will have positive width, and x0 will be the minimal value. Parameters xndarray Array of x-values. ignorebool, optional When True, ignore the existing bounds of the Bbox. When False, include the existing bounds of the B...
doc_10613
Return a tuple containing all path names currently supported in sysconfig.
doc_10614
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 antialiased or aa bool or None arrowstyle None or ArrowStyle or str, default:...
doc_10615
See Migration guide for more details. tf.compat.v1.raw_ops.RaggedTensorToTensor tf.raw_ops.RaggedTensorToTensor( shape, values, default_value, row_partition_tensors, row_partition_types, name=None ) The ragged_to_dense op creates a dense tensor from a list of row partition tensors, a value vector, and defaul...
doc_10616
sklearn.metrics.completeness_score(labels_true, labels_pred) [source] Completeness metric of a cluster labeling given a ground truth. A clustering result satisfies completeness if all the data points that are members of a given class are elements of the same cluster. This metric is independent of the absolute values ...
doc_10617
Set the offsets for the collection. Parameters offsets(N, 2) or (2,) array-like
doc_10618
True if the running interpreter is Jython.
doc_10619
Return a copy of the array collapsed into one dimension. Parameters order{‘C’, ‘F’, ‘A’, ‘K’}, optional ‘C’ means to flatten in row-major (C-style) order. ‘F’ means to flatten in column-major (Fortran- style) order. ‘A’ means to flatten in column-major order if a is Fortran contiguous in memory, row-major order...
doc_10620
draw an antialiased circle aacircle(surface, x, y, r, color) -> None Draws an unfilled antialiased circle on the given surface. Parameters: surface (Surface) -- surface to draw on x (int) -- x coordinate of the center of the circle y (int) -- y coordinate of the center of the circle r (int) -- radius of th...
doc_10621
Converts the response iterator in a list. By default this happens automatically if required. If implicit_sequence_conversion is disabled, this method is not automatically called and some properties might raise exceptions. This also encodes all the items. Changelog New in version 0.6. Return type None
doc_10622
Return whether units are set on any axis.
doc_10623
Call predict_log_proba on the estimator with the best found parameters. Only available if refit=True and the underlying estimator supports predict_log_proba. Parameters Xindexable, length n_samples Must fulfill the input assumptions of the underlying estimator.
doc_10624
Names in both a and b, such that the type differs between the directories, or names for which os.stat() reports an error.
doc_10625
Return an input stream object suitable for use as the wsgi.input of the request currently being processed.
doc_10626
Returns a Transform named transform_name. The default implementation looks recursively on all parent classes to check if any has the registered transform named transform_name, returning the first match.
doc_10627
Return the depth of the decision tree. The depth of a tree is the maximum distance between the root and any leaf. Returns self.tree_.max_depthint The maximum depth of the tree.
doc_10628
Read all the files in the archive and check their CRC’s and file headers. Return the name of the first bad file, or else return None. Changed in version 3.6: Calling testzip() on a closed ZipFile will raise a ValueError. Previously, a RuntimeError was raised.
doc_10629
Set the description used in the generated HTML documentation. This description will appear as a paragraph, below the server name, in the documentation.
doc_10630
Convert tz-aware Datetime Array/Index from one time zone to another. Parameters tz:str, pytz.timezone, dateutil.tz.tzfile or None Time zone for time. Corresponding timestamps would be converted to this time zone of the Datetime Array/Index. A tz of None will convert to UTC and remove the timezone information. ...
doc_10631
Bases: object Distribution is the abstract base class for probability distributions. property arg_constraints Returns a dictionary from argument names to Constraint objects that should be satisfied by each argument of this distribution. Args that are not tensors need not appear in this dict. property batch_sh...
doc_10632
Updates the values from the given object. An object can be of one of the following two types: a string: in this case the object with that name will be imported an actual object reference: that object is used directly Objects are usually either modules or classes. from_object() loads only the uppercase attributes of t...
doc_10633
Retrieves the value associated with the given key in the store. If key is not present in the store, the function will wait for timeout, which is defined when initializing the store, before throwing an exception. Parameters key (str) – The function will return the value associated with this key. Returns Value associ...
doc_10634
Copy properties from other to self.
doc_10635
Plot a 3D field of arrows. The arguments could be array-like or scalars, so long as they they can be broadcast together. The arguments can also be masked arrays. If an element in any of argument is masked, then that corresponding quiver element will not be plotted. Parameters X, Y, Zarray-like The x, y and z co...
doc_10636
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_10637
unpause audio playback resume() -> None Unpause a paused CD. If the CD is not paused or already playing, this method does nothing.
doc_10638
Get Addition of dataframe and other, element-wise (binary operator add). Equivalent to dataframe + other, but with support to substitute a fill_value for missing data in one of the inputs. With reverse version, radd. Among flexible wrappers (add, sub, mul, div, mod, pow) to arithmetic operators: +, -, *, /, //, %, **...
doc_10639
tf.experimental.numpy.vsplit( ary, indices_or_sections ) See the NumPy documentation for numpy.vsplit.
doc_10640
The prototype of create_superuser() should accept the username field, plus all required fields as arguments. For example, if your user model uses email as the username field, and has date_of_birth as a required field, then create_superuser should be defined as: def create_superuser(self, email, date_of_birth, password=...
doc_10641
A list or tuple containing extra CSS classes to apply to the fieldset that is rendered for the inlines. Defaults to None. As with classes configured in fieldsets, inlines with a collapse class will be initially collapsed and their header will have a small “show” link.
doc_10642
The path part of the URL after root_path. This is the path used for routing within the application.
doc_10643
Alias for get_facecolor.
doc_10644
The UUID as a 16-byte string (containing the six integer fields in big-endian byte order).
doc_10645
See Migration guide for more details. tf.compat.v1.io.gfile.stat tf.io.gfile.stat( path ) Args path string, path to a file Returns FileStatistics struct that contains information about the path Raises errors.OpError If the operation fails.
doc_10646
Read-only name identifying the axis.
doc_10647
See Migration guide for more details. tf.compat.v1.estimator.export.build_parsing_serving_input_receiver_fn tf.estimator.export.build_parsing_serving_input_receiver_fn( feature_spec, default_batch_size=None ) Creates a serving_input_receiver_fn that expects a serialized tf.Example fed into a string placeholder. ...
doc_10648
See Migration guide for more details. tf.compat.v1.raw_ops.CreateSummaryFileWriter tf.raw_ops.CreateSummaryFileWriter( writer, logdir, max_queue, flush_millis, filename_suffix, name=None ) Args writer A Tensor of type resource. logdir A Tensor of type string. max_queue A Tensor of type int32...
doc_10649
Bases: object Estimator for classifying pixels. Parameters clfclassifier object, optional classifier object, exposing a fit and a predict method as in scikit-learn’s API, for example an instance of RandomForestClassifier or LogisticRegression classifier. features_funcfunction, optional function computing fe...
doc_10650
Return whether the Axes will adjust its physical dimension ('box') or its data limits ('datalim') to achieve the desired aspect ratio. See also matplotlib.axes.Axes.set_adjustable Set how the Axes adjusts to achieve the required aspect ratio. matplotlib.axes.Axes.set_aspect For a description of aspect handling.
doc_10651
Axis objects Formatters and Locators Axis Label Ticks, tick labels and Offset text Data and view intervals Rendering helpers Interactive Units XAxis Specific YAxis Specific Other Discouraged Tick objects Classes for the ticks and x and y axis. Inheritance Axis objects classmatplotlib.axis.Axis(axes,...
doc_10652
Unregisters a file handler.
doc_10653
version number as a string ver = '1.2' This is the version represented as a string. It can contain a micro release number as well, e.g. '1.5.2'
doc_10654
Return a GridSpec that has this figure as a parent. This allows complex layout of Axes in the figure. Parameters nrowsint, default: 1 Number of rows in grid. ncolsint, default: 1 Number or columns in grid. Returns GridSpec Other Parameters **kwargs Keyword arguments are passed to GridSpec. Se...
doc_10655
Add one Hermite series to another. Returns the sum of two Hermite series c1 + c2. The arguments are sequences of coefficients ordered from lowest order term to highest, i.e., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters c1, c2array_like 1-D arrays of Hermite series coefficients ordered from low...
doc_10656
The path that the session cookie will be valid for. If not set, the cookie will be valid underneath APPLICATION_ROOT or / if that is not set. Default: None
doc_10657
Return the label used for this artist in the legend.
doc_10658
operator.__isub__(a, b) a = isub(a, b) is equivalent to a -= b.
doc_10659
Return an array formed from the elements of a at the given indices. Refer to numpy.take for full documentation. See also numpy.take equivalent function
doc_10660
The length in bytes of one array item in the internal representation.
doc_10661
Predict posterior probability of each component given the data. Parameters Xarray-like of shape (n_samples, n_features) List of n_features-dimensional data points. Each row corresponds to a single data point. Returns resparray, shape (n_samples, n_components) Returns the probability each Gaussian (state...
doc_10662
Register the XML-RPC introspection functions system.listMethods, system.methodHelp and system.methodSignature.
doc_10663
Enable or disable the back/forward button.
doc_10664
Create a Series with both index and values equal to the index keys. Useful with map for returning an indexer based on an index. Parameters index:Index, optional Index of resulting Series. If None, defaults to original index. name:str, optional Name of resulting Series. If None, defaults to name of original ...
doc_10665
Multithreaded version of interact().
doc_10666
Make a step plot. Call signatures: step(x, y, [fmt], *, data=None, where='pre', **kwargs) step(x, y, [fmt], x2, y2, [fmt2], ..., *, where='pre', **kwargs) This is just a thin wrapper around plot which changes some formatting options. Most of the concepts and parameters of plot can be used here as well. Note This me...
doc_10667
window.getstr(n) window.getstr(y, x) window.getstr(y, x, n) Read a bytes object from the user, with primitive line editing capacity.
doc_10668
Default widget: TextInput Empty value: '' (an empty string) Normalizes to: A string. Validates the given value against each of the fields specified as an argument to the ComboField. Error message keys: required, invalid Takes one extra required argument: fields The list of fields that should be used to validate...
doc_10669
Return log-probability estimates for the test vector X. Parameters Xarray-like of shape (n_samples, n_features) Returns Carray-like of shape (n_samples, n_classes) Returns the log-probability of the samples for each class in the model. The columns correspond to the classes in sorted order, as they appear ...
doc_10670
Return the center of the annulus.
doc_10671
class sklearn.linear_model.ElasticNet(alpha=1.0, *, l1_ratio=0.5, fit_intercept=True, normalize=False, precompute=False, max_iter=1000, copy_X=True, tol=0.0001, warm_start=False, positive=False, random_state=None, selection='cyclic') [source] Linear regression with combined L1 and L2 priors as regularizer. Minimizes ...
doc_10672
A boolean indicating if the user should be automatically authenticated after a successful password reset. Defaults to False.
doc_10673
Decays the learning rate of each parameter group by gamma once the number of epoch reaches one of the milestones. Notice that such decay can happen simultaneously with other changes to the learning rate from outside this scheduler. When last_epoch=-1, sets initial lr as lr. Parameters optimizer (Optimizer) – Wrap...
doc_10674
Writes the concatenated list of strings to the stream (possibly by reusing the write() method). The standard bytes-to-bytes codecs do not support this method.
doc_10675
The path the finder will search in.
doc_10676
In-place version of nan_to_num().
doc_10677
Bases: collections.abc.Mapping Container for colormaps that are known to Matplotlib by name. Experimental While we expect the API to be final, we formally mark it as experimental for 3.5 because we want to keep the option to still adapt the API for 3.6 should the need arise. The universal registry instance is matpl...
doc_10678
from flup.server.fcgi import WSGIServer from yourapplication import make_app if __name__ == '__main__': application = make_app() WSGIServer(application).run() This is enough for Apache to work, however ngingx and older versions of lighttpd need a socket to be explicitly passed to communicate with the FastCGI ...
doc_10679
Shortcut for route() with methods=["DELETE"]. New in version 2.0. Parameters rule (str) – options (Any) – Return type Callable
doc_10680
tf.experimental.numpy.arccos( x ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.arccos.
doc_10681
tf.compat.v1.initialize_all_variables() Warning: THIS FUNCTION IS DEPRECATED. It will be removed after 2017-03-02. Instructions for updating: Use tf.global_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. To mark the outp...
doc_10682
Raised when a Unicode-related error occurs during decoding. It is a subclass of UnicodeError.
doc_10683
See Migration guide for more details. tf.compat.v1.raw_ops.ReaderNumWorkUnitsCompletedV2 tf.raw_ops.ReaderNumWorkUnitsCompletedV2( reader_handle, name=None ) Args reader_handle A Tensor of type resource. Handle to a Reader. name A name for the operation (optional). Returns A Tensor of ty...
doc_10684
Deprecated function. Use skimage.registration.phase_cross_correlation instead.
doc_10685
Like encode(), except that it accepts a source bytes and returns the corresponding encoded bytes. By default, it sends a False value to quotetabs parameter of the encode() function.
doc_10686
Returns the max-age from the response Cache-Control header as an integer (or None if it wasn’t found or wasn’t an integer).
doc_10687
Set the list of sequences that include this message.
doc_10688
Modify the endpoints of a range as needed to avoid singularities. Parameters vmin, vmaxfloat The initial endpoints. expanderfloat, default: 0.001 Fractional amount by which vmin and vmax are expanded if the original interval is too small, based on tiny. tinyfloat, default: 1e-15 Threshold for the ratio ...
doc_10689
Name of the file in which the function is defined.
doc_10690
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_10691
class slice(start, stop[, step]) Return a slice object representing the set of indices specified by range(start, stop, step). The start and step arguments default to None. Slice objects have read-only data attributes start, stop and step which merely return the argument values (or their default). They have no other e...
doc_10692
tf.compat.v1.summary.initialize( graph=None, session=None ) This operation is a no-op when executing eagerly. This helper method provides a higher-level alternative to using tf.contrib.summary.summary_writer_initializer_op and tf.contrib.summary.graph. Most users will also want to call tf.compat.v1.train.create_gl...
doc_10693
Remove leading and trailing characters. Strip whitespaces (including newlines) or a set of specified characters from each string in the Series/Index from left and right sides. Equivalent to str.strip(). Parameters to_strip:str or None, default None Specifying the set of characters to be removed. All combination...
doc_10694
Whether the intervals are closed on the left-side, right-side, both or neither.
doc_10695
NumPy — it provides packages like: numpy.distutils - extension to Python distutils numpy.f2py - a tool to bind Fortran/C codes to Python numpy.core - future replacement of Numeric and numarray packages numpy.lib - extra utility functions numpy.testing - numpy-style tools for unit testing etc SciPy — a collection of ...
doc_10696
Return the transpose, which is by definition self.
doc_10697
Take the nth row from each group if n is an int, otherwise a subset of rows. Can be either a call or an index. dropna is not available with index notation. Index notation accepts a comma separated list of integers and slices. If dropna, will take the nth non-null row, dropna is either ‘all’ or ‘any’; this is equivale...
doc_10698
Return the label used for this artist in the legend.
doc_10699
Calculates determinant of a square matrix or batches of square matrices. Note torch.det() is deprecated. Please use torch.linalg.det() instead. Note Backward through detdet internally uses SVD results when input is not invertible. In this case, double backward through detdet will be unstable when input doesn’t hav...