_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_15400
PEP 305 - CSV File API The Python Enhancement Proposal which proposed this addition to Python. Module Contents The csv module defines the following functions: csv.reader(csvfile, dialect='excel', **fmtparams) Return a reader object which will iterate over lines in the given csvfile. csvfile can be any object wh...
doc_15401
__iter__() values() Return an iterator over representations of all messages if called as itervalues() or __iter__() or return a list of such representations if called as values(). The messages are represented as instances of the appropriate format-specific Message subclass unless a custom message factory was specif...
doc_15402
os.O_RSYNC os.O_SYNC os.O_NDELAY os.O_NONBLOCK os.O_NOCTTY os.O_CLOEXEC The above constants are only available on Unix. Changed in version 3.3: Add O_CLOEXEC constant.
doc_15403
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_15404
See Migration guide for more details. tf.compat.v1.app.flags.DEFINE_multi_integer tf.compat.v1.flags.DEFINE_multi_integer( name, default, help, lower_bound=None, upper_bound=None, flag_values=_flagvalues.FLAGS, **args ) Use the flag on the command line multiple times to place multiple integer values into the...
doc_15405
Converts a string to an integer, following the LC_NUMERIC conventions.
doc_15406
class sklearn.neighbors.LocalOutlierFactor(n_neighbors=20, *, algorithm='auto', leaf_size=30, metric='minkowski', p=2, metric_params=None, contamination='auto', novelty=False, n_jobs=None) [source] Unsupervised Outlier Detection using Local Outlier Factor (LOF) The anomaly score of each sample is called Local Outlier...
doc_15407
Call self as a function.
doc_15408
Return True if each axis is autoscaled, False otherwise.
doc_15409
Set 3D x limits. See matplotlib.axes.Axes.set_xlim() for full documentation.
doc_15410
Registers a forward pre-hook common to all modules. Warning This adds global state to the nn.module module and it is only intended for debugging/profiling purposes. The hook will be called every time before forward() is invoked. It should have the following signature: hook(module, input) -> None or modified input ...
doc_15411
[Deprecated] Notes Deprecated since version 3.5:
doc_15412
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_15413
Returns float Outer radial limit.
doc_15414
Truncate series to the given degree. Reduce the degree of the series to deg by discarding the high order terms. If deg is greater than the current degree a copy of the current series is returned. This can be useful in least squares where the coefficients of the high degree terms may be very small. New in version 1.5...
doc_15415
tf.assert_equal tf.debugging.assert_equal( x, y, message=None, summarize=None, name=None ) This Op checks that x[i] == y[i] holds for every pair of (possibly broadcast) elements of x and y. If both x and y are empty, this is trivially satisfied. If x and y are not equal, message, as well as the first summarize e...
doc_15416
class sklearn.base.BiclusterMixin [source] Mixin class for all bicluster estimators in scikit-learn. Attributes biclusters_ Convenient way to get row and column indicators together. Methods get_indices(i) Row and column indices of the i’th bicluster. get_shape(i) Shape of the i’th bicluster. get_subma...
doc_15417
Set the artist's clip Bbox. Parameters clipboxBbox
doc_15418
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_15419
Return a date corresponding to the ISO calendar date specified by year, week and day. This is the inverse of the function date.isocalendar(). New in version 3.8.
doc_15420
Return a shell-escaped version of the string s. The returned value is a string that can safely be used as one token in a shell command line, for cases where you cannot use a list. This idiom would be unsafe: >>> filename = 'somefile; rm -rf ~' >>> command = 'ls -l {}'.format(filename) >>> print(command) # executed by ...
doc_15421
Wraps the single paragraph in text, and returns a single string containing the wrapped paragraph.
doc_15422
The application context binds an application object implicitly to the current thread or greenlet, similar to how the RequestContext binds request information. The application context is also implicitly created if a request context is created but the application is not on top of the individual application context. Para...
doc_15423
Cleanup up threads not specified in original_values. Designed to emit a warning if a test leaves running threads in the background.
doc_15424
x Returns a list of X coordinates in this line: >>> OGRGeometry('LINESTRING (1 2,3 4)').x [1.0, 3.0] y Returns a list of Y coordinates in this line: >>> OGRGeometry('LINESTRING (1 2,3 4)').y [2.0, 4.0] z Returns a list of Z coordinates in this line, or None if the line does not have Z coordinates: >>> OGR...
doc_15425
Compute hyperbolic tangent element-wise. Equivalent to np.sinh(x)/np.cosh(x) or -1j * np.tan(1j*x). Parameters xarray_like Input array. 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 ...
doc_15426
Determine whether code is in tableD.1 (Characters with bidirectional property “R” or “AL”).
doc_15427
Fit the SVM model according to the given training data. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) or (n_samples, n_samples) Training vectors, where n_samples is the number of samples and n_features is the number of features. For kernel=”precomputed”, the expected shape of X is (n_...
doc_15428
Return black top hat of an image. The black top hat of an image is defined as its morphological closing minus the original image. This operation returns the dark spots of the image that are smaller than the structuring element. Note that dark spots in the original image are bright spots after the black top hat. Para...
doc_15429
Bases: matplotlib.widgets._SelectorWidget Selection curve of an arbitrary shape. For the selector to remain responsive you must keep a reference to it. The selected path can be used in conjunction with contains_point to select data points from an image. In contrast to Lasso, LassoSelector is written with an interface...
doc_15430
Returns a string corresponding to the type of geometry. For example: >>> pnt = GEOSGeometry('POINT(5 23)') >>> pnt.geom_type 'Point'
doc_15431
See Migration guide for more details. tf.compat.v1.div_no_nan, tf.compat.v1.math.divide_no_nan tf.math.divide_no_nan( x, y, name=None ) Args x A Tensor. Must be one of the following types: float32, float64. y A Tensor whose dtype is compatible with x. name A name for the operation (optional)...
doc_15432
Return the clip path.
doc_15433
Parameters size – an integer >= 1 (if given) color – a colorstring or a numeric color tuple Draw a circular dot with diameter size, using color. If size is not given, the maximum of pensize+4 and 2*pensize is used. >>> turtle.home() >>> turtle.dot() >>> turtle.fd(50); turtle.dot(20, "blue"); turtle.fd(50) >>> t...
doc_15434
Return the ceiling of x, the smallest integer greater than or equal to x. If x is not a float, delegates to x.__ceil__(), which should return an Integral value.
doc_15435
Return the internal state of the masked array, for pickling purposes.
doc_15436
Set the debug output level. A value of 1 or True for level results in debug messages for connection and for all messages sent to and received from the server. A value of 2 for level results in these messages being timestamped. Changed in version 3.5: Added debuglevel 2.
doc_15437
Set the debug level. The higher the value of debuglevel, the more debug output you get (on sys.stdout).
doc_15438
Colorama provides request log highlighting when using the development server on Windows. This works automatically on other systems. Watchdog provides a faster, more efficient reloader for the development server. Virtual environments Use a virtual environment to manage the dependencies for your project, both in dev...
doc_15439
Returns True if the input is a single element tensor which is not equal to zero after type conversions. i.e. not equal to torch.tensor([0.]) or torch.tensor([0]) or torch.tensor([False]). Throws a RuntimeError if torch.numel() != 1 (even in case of sparse tensors). Parameters input (Tensor) – the input tensor. Exam...
doc_15440
This is like print_exc(limit) but returns a string instead of printing to a file.
doc_15441
Filename of the image. str: Filename of the image to use in a Toolbar. If None, the name is used as a label in the toolbar button.
doc_15442
Encode the bytes-like object s using Base16 and return the encoded bytes.
doc_15443
Set the artist's clip Bbox. Parameters clipboxBbox
doc_15444
Reseed a legacy MT19937 BitGenerator Notes This is a convenience, legacy function. The best practice is to not reseed a BitGenerator, rather to recreate a new one. This method is here for legacy reasons. This example demonstrates best practice. >>> from numpy.random import MT19937 >>> from numpy.random import RandomS...
doc_15445
Get the facecolor of the Axes.
doc_15446
Mark the Future as done and set an exception. Raises a InvalidStateError error if the Future is already done.
doc_15447
Return the url.
doc_15448
Superposes arrays fields by fields Parameters arraysarray or sequence Sequence of input arrays. defaultsdictionary, optional Dictionary mapping field names to the corresponding default values. usemask{True, False}, optional Whether to return a MaskedArray (or MaskedRecords is asrecarray==True) or a ndar...
doc_15449
operator.__mod__(a, b) Return a % b.
doc_15450
When a HTTP/1.1 compliant server receives an Expect: 100-continue request header it responds back with a 100 Continue followed by 200 OK headers. This method can be overridden to raise an error if the server does not want the client to continue. For e.g. server can chose to send 417 Expectation Failed as a response hea...
doc_15451
Backend function used by resizeterm(), performing most of the work; when resizing the windows, resize_term() blank-fills the areas that are extended. The calling application should fill in these areas with appropriate data. The resize_term() function attempts to resize all windows. However, due to the calling conventio...
doc_15452
Set the artist's clip path. Parameters pathPatch or Path or TransformedPath or None The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed. transformTransform, optional Only used if path is a Path, in which case the given Path is converted to a Tra...
doc_15453
See Migration guide for more details. tf.compat.v1.raw_ops.LookupTableSize tf.raw_ops.LookupTableSize( table_handle, name=None ) Args table_handle A Tensor of type mutable string. Handle to the table. name A name for the operation (optional). Returns A Tensor of type int64.
doc_15454
The default character encoding: 'utf-8' on Windows, the value returned by sys.getfilesystemencoding() otherwise.
doc_15455
The maximum area (in bytes) of address space which may be taken by the process.
doc_15456
A form used in the admin interface to change a user’s password. Takes the user as the first positional argument.
doc_15457
See Migration guide for more details. tf.compat.v1.raw_ops.ShapeN tf.raw_ops.ShapeN( input, out_type=tf.dtypes.int32, name=None ) This operation returns N 1-D integer tensors representing shape of input[i]s. Args input A list of at least 1 Tensor objects with the same type. out_type An optional tf...
doc_15458
'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_15459
See torch.det()
doc_15460
Return whether the artist is pickable. See also set_picker, get_picker, pick
doc_15461
Return the formatted representation of object. This takes into account the options passed to the PrettyPrinter constructor.
doc_15462
Set array flags WRITEABLE, ALIGNED, (WRITEBACKIFCOPY and UPDATEIFCOPY), respectively. These Boolean-valued flags affect how numpy interprets the memory area used by a (see Notes below). The ALIGNED flag can only be set to True if the data is actually aligned according to the type. The WRITEBACKIFCOPY and (deprecated)...
doc_15463
Returns transformTransform The transform used for drawing secondart y-axis labels, which will add pad_points of padding (in points) between the axis and the label. The x-direction is in axis coordinates and the y-direction is in data coordinates valign{'center', 'top', 'bottom', 'baseline', 'center_baseline'}...
doc_15464
sets the position and size of the rectangle update(left, top, width, height) -> None update((left, top), (width, height)) -> None update(object) -> None Sets the position and size of the rectangle, in place. See parameters for pygame.Rect() for the parameters of this function. New in pygame 2.0.1.
doc_15465
Decorator for tests that fill the address space. f is the function to wrap.
doc_15466
Return the value of the named header field. This is identical to __getitem__() except that optional failobj is returned if the named header is missing (defaults to None).
doc_15467
Alias for set_edgecolor.
doc_15468
Add a parasite axes to this host. Despite this method's name, this should actually be thought of as an add_parasite_axes method. tr may be Transform, in which case the following relation will hold: parasite.transData = tr + host.transData. Alternatively, it may be None (the default), no special relationship will hold...
doc_15469
Attributes cost_graph CostGraphDef cost_graph function_graphs repeated FunctionGraphs function_graphs partition_graphs repeated GraphDef partition_graphs step_stats StepStats step_stats Child Classes class FunctionGraphs
doc_15470
Return a list with the n largest elements from the dataset defined by iterable. key, if provided, specifies a function of one argument that is used to extract a comparison key from each element in iterable (for example, key=str.lower). Equivalent to: sorted(iterable, key=key, reverse=True)[:n].
doc_15471
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_15472
Evaluate a 2-D Chebyshev series on the Cartesian product of x and y. This function returns the values: \[p(a,b) = \sum_{i,j} c_{i,j} * T_i(a) * T_j(b),\] where the points (a, b) consist of all pairs formed by taking a from x and b from y. The resulting points form a grid with x in the first dimension and y in the se...
doc_15473
Calibrated probabilities of classification. This function returns calibrated probabilities of classification according to each class on an array of test vectors X. Parameters Xarray-like of shape (n_samples, n_features) The samples. Returns Cndarray of shape (n_samples, n_classes) The predicted probas.
doc_15474
A base view for deleting an object instance. It is not intended to be used directly, but rather as a parent class of the django.views.generic.edit.DeleteView. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.edit.DeletionMixin django.views.generic.edit.FormMixin ...
doc_15475
Return the alpha channel.
doc_15476
A dictionary of context data that will be added to the default context data passed to the template.
doc_15477
Repr.maxlist Repr.maxtuple Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray Limits on the number of entries represented for the named object type. The default is 4 for maxdict, 5 for maxarray, and 6 for the others.
doc_15478
Fetches the translation object for a given language and activates it as the current translation object for the current thread.
doc_15479
The string of characters that are recognized as comment beginners. All characters from the comment beginner to end of line are ignored. Includes just '#' by default.
doc_15480
See Migration guide for more details. tf.compat.v1.raw_ops.SparseSegmentMeanGrad tf.raw_ops.SparseSegmentMeanGrad( grad, indices, segment_ids, output_dim0, name=None ) Returns tensor "output" with same shape as grad, except for dimension 0 whose value is output_dim0. Args grad A Tensor. Must be one of t...
doc_15481
Method called immediately after the test method has been called and the result recorded. This is called even if the test method raised an exception, so the implementation in subclasses may need to be particularly careful about checking internal state. Any exception, other than AssertionError or SkipTest, raised by this...
doc_15482
Computes the bounds of a window. Parameters num_values:int, default 0 number of values that will be aggregated over window_size:int, default 0 the number of rows in a window min_periods:int, default None min_periods passed from the top level rolling API center:bool, default None center passed from t...
doc_15483
When you compile a node tree with compile(), the compiler expects lineno and col_offset attributes for every node that supports them. This is rather tedious to fill in for generated nodes, so this helper adds these attributes recursively where not already set, by setting them to the values of the parent node. It works ...
doc_15484
See Migration guide for more details. tf.compat.v1.quantization.quantize_and_dequantize tf.quantization.quantize_and_dequantize( input, input_min, input_max, signed_input=True, num_bits=8, range_given=False, round_mode='HALF_TO_EVEN', name=None, narrow_range=False, axis=None ) Warning: THIS FUNCTION IS DEPRE...
doc_15485
Return filtered image.
doc_15486
If True, tokens will only be split in whitespaces. This is useful, for example, for parsing command lines with shlex, getting tokens in a similar way to shell arguments. When used in combination with punctuation_chars, tokens will be split on whitespace in addition to those characters. Changed in version 3.8: The punc...
doc_15487
Return a string representation of data. 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. The default implementation converts ints and floats and arrays of ints and floats into a comma-separated string enclosed in squ...
doc_15488
Stop the event loop.
doc_15489
See Migration guide for more details. tf.compat.v1.strings.unicode_split tf.strings.unicode_split( input, input_encoding, errors='replace', replacement_char=65533, name=None ) result[i1...iN, j] is the substring of input[i1...iN] that encodes its jth character, when decoded using input_encoding. Args ...
doc_15490
Returns true if the two geometries are exactly equal, up to a specified tolerance. The tolerance value should be a floating point number representing the error tolerance in the comparison, e.g., poly1.equals_exact(poly2, 0.001) will compare equality to within one thousandth of a unit.
doc_15491
This method is called from dispatch_line() when either stop_here() or break_here() yields True.
doc_15492
Function to draw a sequence of 2**m points from a Sobol sequence. Note that the samples are dependent on the previous samples. The size of the result is (2∗∗m,dimension)(2**m, dimension) . Parameters m (Int) – The (base2) exponent of the number of points to draw. out (Tensor, optional) – The output tensor dtype...
doc_15493
Bases: mpl_toolkits.axisartist.axislines.GridHelperBase get_gridlines(which='major', axis='both')[source] Return list of gridline coordinates in data coordinates. which : "major" or "minor" axis : "both", "x" or "y" new_fixed_axis(loc, nth_coord=None, axis_direction=None, offset=None, axes=None)[source] n...
doc_15494
Return the data for the specified year ready for formatting (similar to yeardatescalendar()). Entries in the week lists are day numbers. Day numbers outside this month are zero.
doc_15495
Plot partial dependence plots. Parameters axMatplotlib axes or array-like of Matplotlib axes, default=None If a single axis is passed in, it is treated as a bounding axes and a grid of partial dependence plots will be drawn within these bounds. The n_cols parameter controls the number of columns in the grid...
doc_15496
Represents the C 32-bit signed int datatype. Usually an alias for c_int.
doc_15497
See Migration guide for more details. tf.compat.v1.raw_ops.InplaceUpdate tf.raw_ops.InplaceUpdate( x, i, v, name=None ) Computes x[i, :] = v; return x. Originally this function is mutative however for compilation we make this operation create / operate on a copy of x. Args x A Tensor. A tensor of type T...
doc_15498
Set the current EntityResolver. If no EntityResolver is set, attempts to resolve an external entity will result in opening the system identifier for the entity, and fail if it is not available.
doc_15499
Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The result will only contain artists for which the funct...