_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_700
Logs a message with level INFO on this logger. The arguments are interpreted as for debug().
doc_701
mmap.MADV_RANDOM mmap.MADV_SEQUENTIAL mmap.MADV_WILLNEED mmap.MADV_DONTNEED mmap.MADV_REMOVE mmap.MADV_DONTFORK mmap.MADV_DOFORK mmap.MADV_HWPOISON mmap.MADV_MERGEABLE mmap.MADV_UNMERGEABLE mmap.MADV_SOFT_OFFLINE mmap.MADV_HUGEPAGE mmap.MADV_NOHUGEPAGE mmap.MADV_DONTDUMP mmap.MADV_DODUMP m...
doc_702
Open the file pointed to in bytes mode, write data to it, and close the file: >>> p = Path('my_binary_file') >>> p.write_bytes(b'Binary file contents') 20 >>> p.read_bytes() b'Binary file contents' An existing file of the same name is overwritten. New in version 3.5.
doc_703
Returns the initial seed for generating random numbers. Example: >>> g_cpu = torch.Generator() >>> g_cpu.initial_seed() 2147483647
doc_704
have the music send an event when playback stops set_endevent() -> None set_endevent(type) -> None This causes pygame to signal (by means of the event queue) when the music is done playing. The argument determines the type of event that will be queued. The event will be queued every time the music finishes, not just ...
doc_705
Keymap to associate with this tool. list[str]: List of keys that will trigger this tool when a keypress event is emitted on self.figure.canvas.
doc_706
Based on DateField and translates its input into DateRange. Default for DateRangeField.
doc_707
Convert to Index using specified date_format. Return an Index of formatted strings specified by date_format, which supports the same string format as the python standard library. Details of the string format can be found in python string format doc. Parameters date_format:str Date format string (e.g. “%Y-%m-%d”...
doc_708
Call self as a function.
doc_709
Returns the (flattened, log-transformed) non-fixed hyperparameters. Note that theta are typically the log-transformed values of the kernel’s hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like length-scales naturally live on a log-scale. Return...
doc_710
return the available sizes of embedded bitmaps get_sizes() -> [(int, int, int, float, float), ...] get_sizes() -> [] Returns a list of tuple records, one for each point size supported. Each tuple containing the point size, the height in pixels, width in pixels, horizontal ppem (nominal width) in fractional pixels, an...
doc_711
See Migration guide for more details. tf.compat.v1.keras.layers.SpatialDropout3D tf.keras.layers.SpatialDropout3D( rate, data_format=None, **kwargs ) This version performs the same function as Dropout, however, it drops entire 3D feature maps instead of individual elements. If adjacent voxels within feature maps...
doc_712
Alias for set_edgecolor.
doc_713
Replace the characters &, <, >, ', and " in the string with HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. If the object has an __html__ method, it is called and the return value is assumed to already be safe for HTML. Parameters s – An object to be converted to ...
doc_714
A tuple of strings giving the names of all modules that are compiled into this Python interpreter. (This information is not available in any other way — modules.keys() only lists the imported modules.)
doc_715
Returns a new tensor with boolean elements representing if each element of input is NaN or not. Complex values are considered NaN when either their real and/or imaginary part is NaN. Parameters input (Tensor) – the input tensor. Returns A boolean tensor that is True where input is NaN and False elsewhere Example:...
doc_716
Dictionary mapping operation names to bytecodes.
doc_717
Process an button-1 event (add a click if inside axes). Parameters eventMouseEvent
doc_718
get the number of hat controls on a Joystick get_numhats() -> int Returns the number of joystick hats on a Joystick. Hat devices are like miniature digital joysticks on a joystick. Each hat has two axes of input. The pygame.JOYHATMOTION event is generated when the hat changes position. The position attribute for the ...
doc_719
Return a dictionary of all the properties of the artist.
doc_720
Return a dictionary of sequence names mapped to key lists. If there are no sequences, the empty dictionary is returned.
doc_721
Return a list of all weak reference and proxy objects which refer to object.
doc_722
Fit OneHotEncoder to X, then transform X. Equivalent to fit(X).transform(X) but more convenient. Parameters Xarray-like, shape [n_samples, n_features] The data to encode. yNone Ignored. This parameter exists only for compatibility with Pipeline. Returns X_outsparse matrix if sparse=True else a 2-d arr...
doc_723
Loads an object saved with torch.save() from a file. torch.load() uses Python’s unpickling facilities but treats storages, which underlie tensors, specially. They are first deserialized on the CPU and are then moved to the device they were saved from. If this fails (e.g. because the run time system doesn’t have certa...
doc_724
Returns True if self is a sparse COO tensor that is coalesced, False otherwise. Warning Throws an error if self is not a sparse COO tensor. See coalesce() and uncoalesced tensors.
doc_725
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
doc_726
Identity function. If p is the returned series, then p(x) == x for all values of x. Parameters domain{None, array_like}, optional If given, the array must be of the form [beg, end], where beg and end are the endpoints of the domain. If None is given then the class domain is used. The default is None. window{N...
doc_727
Bases: mpl_toolkits.axes_grid1.axes_size._Base get_size(renderer)[source]
doc_728
Makes the active translation object a NullTranslations() instance. This is useful when we want delayed translations to appear as the original string for some reason.
doc_729
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_730
Compute the eigenvalues of a complex Hermitian or real symmetric matrix. Main difference from eigh: the eigenvectors are not computed. Parameters a(…, M, M) array_like A complex- or real-valued matrix whose eigenvalues are to be computed. UPLO{‘L’, ‘U’}, optional Specifies whether the calculation is done wi...
doc_731
tf.experimental.numpy.float_power( x1, x2 ) Unsupported arguments: out, where, casting, order, dtype, subok, signature, extobj. See the NumPy documentation for numpy.float_power.
doc_732
See Migration guide for more details. tf.compat.v1.raw_ops.ComputeAccidentalHits tf.raw_ops.ComputeAccidentalHits( true_classes, sampled_candidates, num_true, seed=0, seed2=0, name=None ) When doing log-odds NCE, the result of this op should be passed through a SparseToDense op, then added to the logits of the s...
doc_733
The ceiling for the process’s nice level (calculated as 20 - rlim_cur). Availability: Linux 2.6.12 or later. New in version 3.4.
doc_734
Raised to signal an error from the underlying SSL implementation (currently provided by the OpenSSL library). This signifies some problem in the higher-level encryption and authentication layer that’s superimposed on the underlying network connection. This error is a subtype of OSError. The error code and message of SS...
doc_735
This attribute is None by default. If you assign a string to it, that string will be recognized as a lexical-level inclusion request similar to the source keyword in various shells. That is, the immediately following token will be opened as a filename and input will be taken from that stream until EOF, at which point t...
doc_736
The name of the integer field that represents the ID of the related object. Defaults to object_id.
doc_737
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
doc_738
operator.le(a, b) operator.eq(a, b) operator.ne(a, b) operator.ge(a, b) operator.gt(a, b) operator.__lt__(a, b) operator.__le__(a, b) operator.__eq__(a, b) operator.__ne__(a, b) operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equiva...
doc_739
Pandas ExtensionArray for tz-naive or tz-aware datetime data. Warning DatetimeArray is currently experimental, and its API may change without warning. In particular, DatetimeArray.dtype is expected to change to always be an instance of an ExtensionDtype subclass. Parameters values:Series, Index, DatetimeArray, ...
doc_740
'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_741
Get a format string for time.strftime() to represent a time in a locale-specific era-based way.
doc_742
Returns the first_name.
doc_743
Controls whether a selection counter is displayed next to the action dropdown. By default, the admin changelist will display it (actions_selection_counter = True).
doc_744
tf.compat.v1.train.exponential_decay( learning_rate, global_step, decay_steps, decay_rate, staircase=False, name=None ) When training a model, it is often recommended to lower the learning rate as the training progresses. This function applies an exponential decay function to a provided initial learning rate. It r...
doc_745
This function accepts an ST object from the caller in st and returns a Python tuple representing the equivalent parse tree. Other than returning a tuple instead of a list, this function is identical to st2list(). If line_info is true, line number information will be included for all terminal tokens as a third element o...
doc_746
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_747
tf.compat.v1.metrics.sensitivity_at_specificity( labels, predictions, specificity, weights=None, num_thresholds=200, metrics_collections=None, updates_collections=None, name=None ) The sensitivity_at_specificity function creates four local variables, true_positives, true_negatives, false_positives and false_ne...
doc_748
Compute standard error of the mean of groups, excluding missing values. For multiple groupings, the result index will be a MultiIndex. Parameters ddof:int, default 1 Degrees of freedom. Returns Series or DataFrame Standard error of the mean of values within each group. See also Series.groupby Apply...
doc_749
client The test client that was used to make the request that resulted in the response. content The body of the response, as a bytestring. This is the final page content as rendered by the view, or any error message. context The template Context instance that was used to render the template that produce...
doc_750
RGB to YPbPr color space conversion. Parameters rgb(…, 3) array_like The image in RGB format. Final dimension denotes channels. Returns out(…, 3) ndarray The image in YPbPr format. Same dimensions as input. Raises ValueError If rgb is not at least 2-D with shape (…, 3). References 1 https:...
doc_751
See Migration guide for more details. tf.compat.v1.raw_ops.MapAndBatchDataset tf.raw_ops.MapAndBatchDataset( input_dataset, other_arguments, batch_size, num_parallel_calls, drop_remainder, f, output_types, output_shapes, preserve_cardinality=False, name=None ) Creates a dataset that applies f to the outputs ...
doc_752
The type object for proxies of objects which are not callable.
doc_753
the top level pygame package The pygame package represents the top-level package for others to use. Pygame itself is broken into many submodules, but this does not affect programs that use pygame. As a convenience, most of the top-level variables in pygame have been placed inside a module named pygame.locals. This...
doc_754
Whether to pass along the GET query string to the new location. If True, then the query string is appended to the URL. If False, then the query string is discarded. By default, query_string is False.
doc_755
Alias for get_drawstyle.
doc_756
Opens the provided file with mode 'rb'. This function should be used when the intent is to treat the contents as executable code. path should be a str and an absolute path. The behavior of this function may be overridden by an earlier call to the PyFile_SetOpenCodeHook(). However, assuming that path is a str and an abs...
doc_757
The scalar type for the array, e.g. int It’s expected ExtensionArray[item] returns an instance of ExtensionDtype.type for scalar item, assuming that value is valid (not NA). NA values do not need to be instances of type.
doc_758
Open url in a new page (“tab”) of the browser handled by this controller, if possible, otherwise equivalent to open_new().
doc_759
System V file locking enforcement. This flag is shared with S_ISGID: file/record locking is enforced on files that do not have the group execution bit (S_IXGRP) set.
doc_760
the union of many rectangles unionall(Rect_sequence) -> Rect Returns the union of one rectangle with a sequence of many rectangles.
doc_761
Return a copy of self, with masked values filled with a given value. However, if there are no masked values to fill, self will be returned instead as an ndarray. Parameters fill_valuearray_like, optional The value to use for invalid entries. Can be scalar or non-scalar. If non-scalar, the resulting ndarray must...
doc_762
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_763
A day archive page showing all objects for today. This is exactly the same as django.views.generic.dates.DayArchiveView, except today’s date is used instead of the year/month/day arguments. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin dja...
doc_764
Returns a new ChainMap containing a new map followed by all of the maps in the current instance. If m is specified, it becomes the new map at the front of the list of mappings; if not specified, an empty dict is used, so that a call to d.new_child() is equivalent to: ChainMap({}, *d.maps). This method is used for creat...
doc_765
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_766
Return the Transform mapping data coordinates to physical coordinates.
doc_767
True if this transform has a corresponding inverse transform.
doc_768
mock_calls records all calls to the mock object, its methods, magic methods and return value mocks. >>> mock = MagicMock() >>> result = mock(1, 2, 3) >>> mock.first(a=3) <MagicMock name='mock.first()' id='...'> >>> mock.second() <MagicMock name='mock.second()' id='...'> >>> int(mock) 1 >>> result(1) <MagicMock name='mo...
doc_769
Set the parameters of this kernel. The method works on simple kernels as well as on nested kernels. The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Returns self
doc_770
Generates a 2D or 3D flow field (sampling grid), given a batch of affine matrices theta. Note This function is often used in conjunction with grid_sample() to build Spatial Transformer Networks . Parameters theta (Tensor) – input batch of affine matrices with shape (N×2×3N \times 2 \times 3 ) for 2D or (N×3×4N ...
doc_771
""" May be applied as a `default=...` value on a serializer field. Returns the current user. """ requires_context = True def __call__(self, serializer_field): return serializer_field.context['request'].user When serializing the instance, default will be used if the object attribute or ...
doc_772
See Migration guide for more details. tf.compat.v1.timestamp tf.timestamp( name=None ) Returns the timestamp as a float64 for seconds since the Unix epoch. Note: the timestamp is computed when the op is executed, not when it is added to the graph. Args name A name for the operation (optional). ...
doc_773
Registers a backward hook. The hook will be called every time a gradient with respect to the Tensor is computed. The hook should have the following signature: hook(grad) -> Tensor or None The hook should not modify its argument, but it can optionally return a new gradient which will be used in place of grad. This fu...
doc_774
In-place version of arccos()
doc_775
Write all elements in rows (an iterable of row objects as described above) to the writer’s file object, formatted according to the current dialect.
doc_776
sklearn.preprocessing.scale(X, *, axis=0, with_mean=True, with_std=True, copy=True) [source] Standardize a dataset along any axis. Center to the mean and component wise scale to unit variance. Read more in the User Guide. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The data to cente...
doc_777
Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which would be a grey value on ...
doc_778
Called to get a stream for the file upload. This must provide a file-like class with read(), readline() and seek() methods that is both writeable and readable. The default implementation returns a temporary file if the total content length is higher than 500KB. Because many browsers do not provide a content length for ...
doc_779
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
doc_780
See Migration guide for more details. tf.compat.v1.debugging.assert_non_negative tf.compat.v1.assert_non_negative( x, data=None, summarize=None, message=None, name=None ) When running in graph mode, you should add a dependency on this operation to ensure that it runs. Example of adding a dependency to an operati...
doc_781
Clear the Axes.
doc_782
Wake up all tasks waiting on this condition. This method acts like notify(), but wakes up all waiting tasks. The lock must be acquired before this method is called and released shortly after. If called with an unlocked lock a RuntimeError error is raised.
doc_783
tf.compat.v1.assert_variables_initialized( var_list=None ) Note: This function is obsolete and will be removed in 6 months. Please change your implementation to use report_uninitialized_variables(). When run, the returned Op will raise the exception FailedPreconditionError if any of the variables has not yet bee...
doc_784
Bases: object adjust_axes_lim()[source] cla()[source] Examples using mpl_toolkits.axisartist.floating_axes.FloatingAxesBase mpl_toolkits.axisartist.floating_axes features
doc_785
See Migration guide for more details. tf.compat.v1.raw_ops.BoostedTreesExampleDebugOutputs tf.raw_ops.BoostedTreesExampleDebugOutputs( tree_ensemble_handle, bucketized_features, logits_dimension, name=None ) It traverses all the trees and computes debug metrics for individual examples, such as getting split feat...
doc_786
Return the elements of an array that satisfy some condition. This is equivalent to np.compress(ravel(condition), ravel(arr)). If condition is boolean np.extract is equivalent to arr[condition]. Note that place does the exact opposite of extract. Parameters conditionarray_like An array whose nonzero or True entr...
doc_787
Wait for the aw awaitable to complete with a timeout. If aw is a coroutine it is automatically scheduled as a Task. timeout can either be None or a float or int number of seconds to wait for. If timeout is None, block until the future completes. If a timeout occurs, it cancels the task and raises asyncio.TimeoutError. ...
doc_788
Wrapper that allows creation of class factories. This can be useful when there is a need to create classes with the same constructor arguments, but different instances. Example: >>> Foo.with_args = classmethod(_with_args) >>> foo_builder = Foo.with_args(a=3, b=4).with_args(answer=42) >>> foo_instance1 = foo_builder() >...
doc_789
An abstract base class for a loader. See PEP 302 for the exact definition for a loader. Loaders that wish to support resource reading should implement a get_resource_reader(fullname) method as specified by importlib.abc.ResourceReader. Changed in version 3.7: Introduced the optional get_resource_reader() method. cr...
doc_790
See Migration guide for more details. tf.compat.v1.keras.layers.Cropping1D tf.keras.layers.Cropping1D( cropping=(1, 1), **kwargs ) It crops along the time dimension (axis 1). Examples: input_shape = (2, 3, 2) x = np.arange(np.prod(input_shape)).reshape(input_shape) print(x) [[[ 0 1] [ 2 3] [ 4 5]] [[ 6 ...
doc_791
turtle.st() Make the turtle visible. >>> turtle.showturtle()
doc_792
Return specified diagonals. In NumPy 1.9 the returned array is a read-only view instead of a copy as in previous NumPy versions. In a future version the read-only restriction will be removed. Refer to numpy.diagonal for full documentation. See also numpy.diagonal equivalent function
doc_793
See Migration guide for more details. tf.compat.v1.keras.applications.resnet_v2.decode_predictions tf.keras.applications.resnet_v2.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. Ret...
doc_794
Hubble eXtreme Deep Field. This photograph contains the Hubble Telescope’s farthest ever view of the universe. It can be useful as an example for multi-scale detection. Returns hubble_deep_field(872, 1000, 3) uint8 ndarray Hubble deep field image. Notes This image was downloaded from HubbleSite. The image w...
doc_795
Set the face color of the Figure rectangle. Parameters colorcolor
doc_796
Reduce X to the selected features and then return the score of the underlying estimator. Parameters Xarray of shape [n_samples, n_features] The input samples. yarray of shape [n_samples] The target values.
doc_797
A generic version of builtins.set. Useful for annotating return types. To annotate arguments it is preferred to use an abstract collection type such as AbstractSet. Deprecated since version 3.9: builtins.set now supports []. See PEP 585 and Generic Alias Type.
doc_798
Complex number type composed of two single-precision floating-point numbers. Character code 'F' Alias numpy.singlecomplex Alias on this platform (Linux x86_64) numpy.complex64: Complex number type composed of 2 32-bit-precision floating-point numbers.
doc_799
Indicates whether the current platform and implementation provides a symlink attack resistant version of rmtree(). Currently this is only true for platforms supporting fd-based directory access functions. New in version 3.3.