_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_15900
Convert a /-separated pathname to one using the OS’s path separator.
doc_15901
Transform feature->value dicts to array or sparse matrix. Named features not encountered during fit or fit_transform will be silently ignored. Parameters XMapping or iterable over Mappings of shape (n_samples,) Dict(s) or Mapping(s) from feature names (arbitrary Python objects) to feature values (strings or con...
doc_15902
Read XML document into a DataFrame object. New in version 1.3.0. Parameters path_or_buffer:str, path object, or file-like object String, path object (implementing os.PathLike[str]), or file-like object implementing a read() function. The string can be any valid XML string or a path. The string can further be ...
doc_15903
Return self.tzinfo.tzname(self).
doc_15904
The socket object on which the server will listen for incoming requests.
doc_15905
Return the mapping parameters. The returned values define a linear map off + scl*x that is applied to the input arguments before the series is evaluated. The map depends on the domain and window; if the current domain is equal to the window the resulting map is the identity. If the coefficients of the series instance...
doc_15906
Return the array type associated with this dtype. Returns type
doc_15907
Alias for set_antialiased.
doc_15908
Return True if running on CPython, not on Windows, and configuration not set with WITH_DOC_STRINGS.
doc_15909
Returns a set of permission strings that the user has, both through group and user permissions. If obj is passed in, only returns the permissions for this specific object.
doc_15910
Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.animation and Faster rende...
doc_15911
Bases: matplotlib.patheffects.AbstractPathEffect A simple shadow via a filled patch. Parameters offset(float, float), default: (2, -2) The (x, y) offset of the shadow in points. shadow_rgbFacecolor The shadow color. alphafloat, default: 0.3 The alpha transparency of the created shadow patch. http://matp...
doc_15912
Return the product of array elements over a given axis. Parameters aarray_like Input data. axisNone or int or tuple of ints, optional Axis or axes along which a product is performed. The default, axis=None, will calculate the product of all the elements in the input array. If axis is negative it counts from...
doc_15913
Return the horizontal alignment as a string. Will be one of 'left', 'center' or 'right'.
doc_15914
Predict using the linear model. Parameters Xarray-like or sparse matrix, shape (n_samples, n_features) Samples. Returns Carray, shape (n_samples,) Returns predicted values.
doc_15915
Returns a field of the given array as a certain type. A field is a view of the array data with a given data-type. The values in the view are determined by the given type and the offset into the current array in bytes. The offset needs to be such that the view dtype fits in the array dtype; for example an array of dty...
doc_15916
Yields 2-tuple choices, in the (value, label) format used by ChoiceField.choices. The first value element is a ModelChoiceIteratorValue instance.
doc_15917
Warning class used if there is an error while fitting the estimator. This Warning is used in meta estimators GridSearchCV and RandomizedSearchCV and the cross-validation helper function cross_val_score to warn when there is an error while fitting the estimator. Changed in version 0.18: Moved from sklearn.cross_valid...
doc_15918
Get location and sliced index for requested label(s)/level(s). Parameters key:label or sequence of labels level:int/level name or list thereof, optional drop_level:bool, default True If False, the resulting index will not drop any level. Returns loc:A 2-tuple where the elements are: Element 0: int, ...
doc_15919
This doesn’t actually modify the message’s payload, but it does set the Content-Transfer-Encoding header to either 7bit or 8bit as appropriate, based on the payload data.
doc_15920
Return the current ErrorHandler.
doc_15921
Bases: matplotlib.backend_bases.Event An event triggered by a canvas resize. A ResizeEvent has a number of special attributes in addition to those defined by the parent Event class. Attributes widthint Width of the canvas in pixels. heightint Height of the canvas in pixels.
doc_15922
Blit directly from a array values blit_array(Surface, array) -> None Directly copy values from an array into a Surface. This is faster than converting the array into a Surface and blitting. The array must be the same dimensions as the Surface and will completely replace all pixel values. Only integer, ASCII character...
doc_15923
Set the y-axis scale. Parameters value{"linear"} The axis scale type to apply. 3D axes currently only support linear scales; other scales yield nonsensical results. **kwargs Keyword arguments are nominally forwarded to the scale class, but none of them is applicable for linear scales.
doc_15924
Terminate the process. On Unix this is done using the SIGTERM signal; on Windows TerminateProcess() is used. Note that exit handlers and finally clauses, etc., will not be executed. Note that descendant processes of the process will not be terminated – they will simply become orphaned. Warning If this method is used w...
doc_15925
tf.nn.sigmoid_cross_entropy_with_logits( labels=None, logits=None, name=None ) Measures the probability error in discrete classification tasks in which each class is independent and not mutually exclusive. For instance, one could perform multilabel classification where a picture can contain both an elephant and a ...
doc_15926
Reached the buffer size limit while looking for a separator. Raised by the asyncio stream APIs. consumed The total number of to be consumed bytes.
doc_15927
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_15928
See Migration guide for more details. tf.compat.v1.test.benchmark_config tf.test.benchmark_config() Returns A TensorFlow ConfigProto object.
doc_15929
This class can be used to generate HTML calendars. HTMLCalendar instances have the following methods: formatmonth(theyear, themonth, withyear=True) Return a month’s calendar as an HTML table. If withyear is true the year will be included in the header, otherwise just the month name will be used. formatyear(they...
doc_15930
See Migration guide for more details. tf.compat.v1.image.rgb_to_grayscale tf.image.rgb_to_grayscale( images, name=None ) Outputs a tensor of the same DType and rank as images. The size of the last dimension of the output is 1, containing the Grayscale value of the pixels. original = tf.constant([[[1.0, 2.0, 3.0...
doc_15931
Converts a flat index or array of flat indices into a tuple of coordinate arrays. Parameters indicesarray_like An integer array whose elements are indices into the flattened version of an array of dimensions shape. Before version 1.6.0, this function accepted just one index value. shapetuple of ints The sha...
doc_15932
Check if child process has terminated. Set and return returncode attribute. Otherwise, returns None.
doc_15933
Return True if the locals in this table can be optimized.
doc_15934
Return the position of the Axes within the figure as a Bbox. Parameters originalbool If True, return the original position. Otherwise return the active position. For an explanation of the positions see set_position. Returns Bbox Examples using matplotlib.axes.Axes.get_position Contour Demo
doc_15935
Return an instance of a dict subclass that has methods specialized for rearranging dictionary order. New in version 3.1. popitem(last=True) The popitem() method for ordered dictionaries returns and removes a (key, value) pair. The pairs are returned in LIFO order if last is true or FIFO order if false. move_t...
doc_15936
An integer giving the maximum value a variable of type Py_ssize_t can take. It’s usually 2**31 - 1 on a 32-bit platform and 2**63 - 1 on a 64-bit platform.
doc_15937
Set the file pointer to the specified position.
doc_15938
Run a specific node n and return the result. Calls into placeholder, get_attr, call_function, call_method, call_module, or output depending on node.op Parameters n (Node) – The Node to execute Returns The result of executing n Return type Any
doc_15939
Bases: matplotlib.widgets._SelectorWidget Visually select a min/max range on a single axis and call a function with those values. To guarantee that the selector remains responsive, keep a reference to it. In order to turn off the SpanSelector, set span_selector.active to False. To turn it back on, set it to True. Pre...
doc_15940
See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalSlidingWindowDataset tf.raw_ops.ExperimentalSlidingWindowDataset( input_dataset, window_size, window_shift, window_stride, output_types, output_shapes, name=None ) Args input_dataset A Tensor of type variant. window_size A ...
doc_15941
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_15942
Get parameters for this estimator. Returns the parameters given in the constructor as well as the estimators contained within the steps of the Pipeline. Parameters deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns paramsmapp...
doc_15943
See Migration guide for more details. tf.compat.v1.raw_ops.GatherNd tf.raw_ops.GatherNd( params, indices, name=None ) indices is a K-dimensional integer tensor, best thought of as a (K-1)-dimensional tensor of indices into params, where each element defines a slice of params: output[\\(i_0, ..., i_{K-2}\\)] = pa...
doc_15944
See Migration guide for more details. tf.compat.v1.train.JobDef Attributes name string name tasks repeated TasksEntry tasks Child Classes class TasksEntry
doc_15945
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 array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or list of bools array a...
doc_15946
Add all the tests from an iterable of TestCase and TestSuite instances to this test suite. This is equivalent to iterating over tests, calling addTest() for each element.
doc_15947
Convert continuous line to pre-steps. Given a set of N points, convert to 2N - 1 points, which when connected linearly give a step function which changes values at the beginning of the intervals. Parameters xarray The x location of the steps. May be empty. y1, ..., yparray y arrays to be turned into steps; ...
doc_15948
Try to find a library and return a pathname. name is the library name without any prefix like lib, suffix like .so, .dylib or version number (this is the form used for the posix linker option -l). If no library can be found, returns None. The exact functionality is system dependent.
doc_15949
The equivalent to the built-in repr() that uses the formatting imposed by the instance.
doc_15950
skimage.exposure.adjust_gamma(image[, …]) Performs Gamma Correction on the input image. skimage.exposure.adjust_log(image[, gain, inv]) Performs Logarithmic correction on the input image. skimage.exposure.adjust_sigmoid(image[, …]) Performs Sigmoid Correction on the input image. skimage.exposure.cumulative_distri...
doc_15951
Casts all floating point parameters and buffers to half datatype. Returns self Return type Module
doc_15952
Callable object that constructs a test suite from a list of tests. No methods on the resulting object are needed. The default value is the TestSuite class. This affects all the loadTestsFrom*() methods.
doc_15953
class sklearn.preprocessing.Normalizer(norm='l2', *, copy=True) [source] Normalize samples individually to unit norm. Each sample (i.e. each row of the data matrix) with at least one non zero component is rescaled independently of other samples so that its norm (l1, l2 or inf) equals one. This transformer is able to ...
doc_15954
Set the tilt angle of the annulus. Parameters anglefloat
doc_15955
See torch.abs()
doc_15956
Generate coordinates of pixels within ellipse. Parameters r, cdouble Centre coordinate of ellipse. r_radius, c_radiusdouble Minor and major semi-axes. (r/r_radius)**2 + (c/c_radius)**2 = 1. shapetuple, optional Image shape which is used to determine the maximum extent of output pixel coordinates. This i...
doc_15957
Return a human-readable message describing the error condition.
doc_15958
The base class for the exceptions that are raised when a key or index used on a mapping or sequence is invalid: IndexError, KeyError. This can be raised directly by codecs.lookup().
doc_15959
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_15960
tf.estimator.DNNClassifier( hidden_units, feature_columns, model_dir=None, n_classes=2, weight_column=None, label_vocabulary=None, optimizer='Adagrad', activation_fn=tf.nn.relu, dropout=None, config=None, warm_start_from=None, loss_reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, batch_norm=False...
doc_15961
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 array-like or scalar or None animated bool antialiased or aa or antialiaseds bool or list of bools array a...
doc_15962
Join arrays r1 and r2 on keys. Alternative to join_by, that always returns a np.recarray. See also join_by equivalent function
doc_15963
'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_15964
Returns the random number generator state as a torch.ByteTensor.
doc_15965
Return the complex conjugate, element-wise. Refer to numpy.conjugate for full documentation. See also numpy.conjugate equivalent function
doc_15966
Returns None as extension modules do not have source code.
doc_15967
This is a NamedNodeMap giving the definitions of external entities. For entity 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 entities are defined.
doc_15968
Differentiate. Return a series instance of that is the derivative of the current series. Parameters mnon-negative int Find the derivative of order m. Returns new_seriesseries A new series representing the derivative. The domain is the same as the domain of the differentiated series.
doc_15969
Fit Ridge classifier with cv. Parameters Xndarray of shape (n_samples, n_features) Training vectors, where n_samples is the number of samples and n_features is the number of features. When using GCV, will be cast to float64 if necessary. yndarray of shape (n_samples,) Target values. Will be cast to X’s dtyp...
doc_15970
Bases: matplotlib.widgets.SliderBase A slider representing a range of floating point values. Defines the min and max of the range via the val attribute as a tuple of (min, max). Create a slider that defines a range contained within [valmin, valmax] in axes ax. For the slider to remain responsive you must maintain a r...
doc_15971
The type of modules. The constructor takes the name of the module to be created and optionally its docstring. Note Use importlib.util.module_from_spec() to create a new module if you wish to set the various import-controlled attributes. __doc__ The docstring of the module. Defaults to None. __loader__ The l...
doc_15972
tf.experimental.numpy.argsort( a, axis=-1, kind='quicksort', order=None ) See the NumPy documentation for numpy.argsort.
doc_15973
Close the write end of the transport after flushing all buffered data. Data may still be received. This method can raise NotImplementedError if the transport (e.g. SSL) doesn’t support half-closed connections.
doc_15974
Set the Figure instance the artist belongs to. Parameters figFigure
doc_15975
γ = 0.5772156649015328606065120900824024310421... References https://en.wikipedia.org/wiki/Euler-Mascheroni_constant
doc_15976
Return an array with the elements converted to uppercase. Calls str.upper element-wise. For 8-bit strings, this method is locale-dependent. Parameters aarray_like, {str, unicode} Input array. Returns outndarray, {str, unicode} Output array of str or unicode, depending on input type See also str.up...
doc_15977
Lazily iterate over (index, value) tuples. This method returns an iterable tuple (index, value). This is convenient if you want to create a lazy iterator. Returns iterable Iterable of tuples containing the (index, value) pairs from a Series. See also DataFrame.items Iterate over (column name, Series) pairs...
doc_15978
tf.experimental.numpy.arctan2( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.arctan2.
doc_15979
Sort a complex array using the real part first, then the imaginary part. Parameters aarray_like Input array Returns outcomplex ndarray Always returns a sorted complex array. Examples >>> np.sort_complex([5, 3, 6, 2, 1]) array([1.+0.j, 2.+0.j, 3.+0.j, 5.+0.j, 6.+0.j]) >>> np.sort_complex([1 + 2j, 2 ...
doc_15980
The line number within filename where this DocTest begins, or None if the line number is unavailable. This line number is zero-based with respect to the beginning of the file.
doc_15981
If not specified, the directory to serve is the current working directory. Changed in version 3.9: Accepts a path-like object.
doc_15982
Insert a simple entry into the list of warnings filter specifications. The meaning of the function parameters is as for filterwarnings(), but regular expressions are not needed as the filter inserted always matches any message in any module as long as the category and line number match.
doc_15983
Alias for get_linewidth.
doc_15984
Return the path of this patch.
doc_15985
Element-wise arc tangent of x1/x2 choosing the quadrant correctly. The quadrant (i.e., branch) is chosen so that arctan2(x1, x2) is the signed angle in radians between the ray ending at the origin and passing through the point (1,0), and the ray ending at the origin and passing through the point (x2, x1). (Note the r...
doc_15986
Open a bzip2-compressed file in binary or text mode, returning a file object. As with the constructor for BZ2File, the filename argument can be an actual filename (a str or bytes object), or an existing file object to read from or write to. The mode argument can be any of 'r', 'rb', 'w', 'wb', 'x', 'xb', 'a' or 'ab' fo...
doc_15987
Return value as a string to be rendered in HTML.
doc_15988
Convert coefficient matrix to dense array format. Converts the coef_ member (back) to a numpy.ndarray. This is the default format of coef_ and is required for fitting, so calling this method is only required on models that have previously been sparsified; otherwise, it is a no-op. Returns self Fitted estimator.
doc_15989
See Migration guide for more details. tf.compat.v1.feature_column.categorical_column_with_vocabulary_list tf.feature_column.categorical_column_with_vocabulary_list( key, vocabulary_list, dtype=None, default_value=-1, num_oov_buckets=0 ) Use this when your inputs are in string or integer format, and you have an i...
doc_15990
Return a string representing the “From ” line that marks the start of the message in an mbox mailbox. The leading “From ” and the trailing newline are excluded.
doc_15991
Set the url for the artist. Parameters urlstr
doc_15992
See Migration guide for more details. tf.compat.v1.raw_ops.Bucketize tf.raw_ops.Bucketize( input, boundaries, name=None ) For example, if the inputs are boundaries = [0, 10, 100] input = [[-5, 10000] [150, 10] [5, 100]] then the output will be output = [[0, 3] [3, 2] [1, 3]] Args input A Tensor. Must be...
doc_15993
If inclusive is True (include), match memory blocks allocated in the address space domain. If inclusive is False (exclude), match memory blocks not allocated in the address space domain.
doc_15994
Autoscale the scalar limits on the norm instance using the current array
doc_15995
fcntl.fcntl(fd, cmd, arg=0) Perform the operation cmd on file descriptor fd (file objects providing a fileno() method are accepted as well). The values used for cmd are operating system dependent, and are available as constants in the fcntl module, using the same names as used in the relevant C header files. The argu...
doc_15996
Fills self tensor with numbers samples from the log-normal distribution parameterized by the given mean μ\mu and standard deviation σ\sigma . Note that mean and std are the mean and standard deviation of the underlying normal distribution, and not of the returned distribution: f(x)=1xσ2πe−(ln⁡x−μ)22σ2f(x) = \dfrac{1}...
doc_15997
Set the artist offset transform. Parameters transOffsetTransform
doc_15998
Alias for get_linewidth.
doc_15999
Boolean flag that is True if the field has a many-to-one relation, such as a ForeignKey; False otherwise.