_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_5700
The WSGI environment containing HTTP headers and information from the WSGI server.
doc_5701
Apply only the non-affine part of this transformation. transform(values) is always equivalent to transform_affine(transform_non_affine(values)). In non-affine transformations, this is generally equivalent to transform(values). In affine transformations, this is always a no-op. Parameters valuesarray The input v...
doc_5702
Return the number of sparse dimensions in a sparse tensor self. Warning Throws an error if self is not a sparse tensor. See also Tensor.dense_dim() and hybrid tensors.
doc_5703
This class allows for the representation of an OGR geometry type in any of several ways: >>> from django.contrib.gis.gdal import OGRGeomType >>> gt1 = OGRGeomType(3) # Using an integer for the type >>> gt2 = OGRGeomType('Polygon') # Using a string >>> gt3 = OGRGeomType('POLYGON') # It's case-insensi...
doc_5704
Partial support of the Windows STARTUPINFO structure is used for Popen creation. The following attributes can be set by passing them as keyword-only arguments. Changed in version 3.7: Keyword-only argument support was added. dwFlags A bit field that determines whether certain STARTUPINFO attributes are used when ...
doc_5705
tf.compat.v1.layers.Layer( trainable=True, name=None, dtype=None, **kwargs ) It is considered legacy, and we recommend the use of tf.keras.layers.Layer instead. Arguments trainable Boolean, whether the layer's variables should be trainable. name String name of the layer. dtype Default dtype of...
doc_5706
See Migration guide for more details. tf.compat.v1.saved_model.load_v2 tf.saved_model.load( export_dir, tags=None, options=None ) Signatures associated with the SavedModel are available as functions: imported = tf.saved_model.load(path) f = imported.signatures["serving_default"] print(f(x=tf.constant([[1.]]))) ...
doc_5707
Compute a version of this path relative to the path represented by other. If it’s impossible, ValueError is raised: >>> p = PurePosixPath('/etc/passwd') >>> p.relative_to('/') PurePosixPath('etc/passwd') >>> p.relative_to('/etc') PurePosixPath('passwd') >>> p.relative_to('/usr') Traceback (most recent call last): Fil...
doc_5708
The name of the template to be rendered. Accepts a backend-dependent template object (such as those returned by get_template()), the name of a template, or a list of template names. Example: ['foo.html', 'path/to/bar.html']
doc_5709
Returns the default django.forms.Field of this field for ModelForm. By default, if both form_class and choices_form_class are None, it uses CharField. If the field has choices and choices_form_class isn’t specified, it uses TypedChoiceField. See Specifying the form field for a model field for usage.
doc_5710
Change the font family. May be either an alias (generic name is CSS parlance), such as: 'serif', 'sans-serif', 'cursive', 'fantasy', or 'monospace', a real font name or a list of real font names. Real font names are not supported when rcParams["text.usetex"] (default: False) is True.
doc_5711
Send a NEXT command. Return as for stat().
doc_5712
Gives a new shape to an array without changing its data. Parameters aarray_like Array to be reshaped. newshapeint or tuple of ints The new shape should be compatible with the original shape. If an integer, then the result will be a 1-D array of that length. One shape dimension can be -1. In this case, the v...
doc_5713
Returns a copy of input. Note This function is differentiable, so gradients will flow back from the result of this operation to input. To create a tensor without an autograd relationship to input see detach(). Parameters input (Tensor) – the input tensor. Keyword Arguments memory_format (torch.memory_format, opti...
doc_5714
Get parameters of this kernel. 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_5715
play an audio file playmus.main(file_path) -> None A simple music player with window and keyboard playback control. Playback can be paused and rewound to the beginning.
doc_5716
Cancel the last call to dump_traceback_later().
doc_5717
Return a boolean specifying whether to display the page if no objects are available. If this method returns False and no objects are available, the view will raise a 404 instead of displaying an empty page. By default, this is True.
doc_5718
class sklearn.ensemble.RandomTreesEmbedding(n_estimators=100, *, max_depth=5, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_leaf_nodes=None, min_impurity_decrease=0.0, min_impurity_split=None, sparse_output=True, n_jobs=None, random_state=None, verbose=0, warm_start=False) [source] An ens...
doc_5719
Returns a GenericInlineFormSet using modelformset_factory(). You must provide ct_field and fk_field if they are different from the defaults, content_type and object_id respectively. Other parameters are similar to those documented in modelformset_factory() and inlineformset_factory(). The for_concrete_model argument co...
doc_5720
operator.__mod__(a, b) Return a % b.
doc_5721
For each element in self, return a copy with the leading characters removed. See also char.lstrip
doc_5722
'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_5723
Generate a random symmetric, positive-definite matrix. Read more in the User Guide. Parameters n_dimint The matrix dimension. random_stateint, RandomState instance or None, default=None Determines random number generation for dataset creation. Pass an int for reproducible output across multiple function cal...
doc_5724
Set the y-axis scale. Parameters value{"linear", "log", "symlog", "logit", ...} or ScaleBase The axis scale type to apply. **kwargs Different keyword arguments are accepted, depending on the scale. See the respective class keyword arguments: matplotlib.scale.LinearScale matplotlib.scale.LogScale matplotlib.s...
doc_5725
Return whether the artist is to be rasterized.
doc_5726
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 matplotlib.colormaps. There should b...
doc_5727
This class method constructs a Fraction representing the exact value of flt, which must be a float. Beware that Fraction.from_float(0.3) is not the same value as Fraction(3, 10). Note From Python 3.2 onwards, you can also construct a Fraction instance directly from a float.
doc_5728
Return the indices tensor of a sparse COO tensor. Warning Throws an error if self is not a sparse COO tensor. See also Tensor.values(). Note This method can only be called on a coalesced sparse tensor. See Tensor.coalesce() for details.
doc_5729
tf.random.experimental.get_global_generator Compat aliases for migration See Migration guide for more details. tf.compat.v1.random.experimental.get_global_generator, tf.compat.v1.random.get_global_generator tf.random.get_global_generator() This function will create the global generator the first time it is called, a...
doc_5730
Set the font style. Values are: 'normal', 'italic' or 'oblique'.
doc_5731
A decision tree regressor. Read more in the User Guide. Parameters criterion{“mse”, “friedman_mse”, “mae”, “poisson”}, default=”mse” The function to measure the quality of a split. Supported criteria are “mse” for the mean squared error, which is equal to variance reduction as feature selection criterion and mi...
doc_5732
Returns whether the kernel is defined on fixed-length feature vectors or generic objects. Defaults to True for backward compatibility.
doc_5733
tf.asin Compat aliases for migration See Migration guide for more details. tf.compat.v1.asin, tf.compat.v1.math.asin tf.math.asin( x, name=None ) The tf.math.asin operation returns the inverse of tf.math.sin, such that if y = tf.math.sin(x) then, x = tf.math.asin(y). Note: The output of tf.math.asin will lie wi...
doc_5734
Look up character by name. If a character with the given name is found, return the corresponding character. If not found, KeyError is raised. Changed in version 3.3: Support for name aliases 1 and named sequences 2 has been added.
doc_5735
The string to be used to terminate lines in serialized output. The default is \n because that’s the internal end-of-line discipline used by Python, though \r\n is required by the RFCs.
doc_5736
Parameters shear – number (optional) Set or return the current shearfactor. Shear the turtleshape according to the given shearfactor shear, which is the tangent of the shear angle. Do not change the turtle’s heading (direction of movement). If shear is not given: return the current shearfactor, i. e. the tangent of...
doc_5737
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_5738
Roll provided date forward to next offset only if not on offset. Returns TimeStamp Rolled timestamp if not on offset, otherwise unchanged timestamp.
doc_5739
Alias for set_linewidth.
doc_5740
wait for an event wait() -> Event Returns the current event on the queue. If there are no messages waiting on the queue, this will not return until one is available. Sometimes it is important to use this wait to get events from the queue, it will allow your application to idle when the user isn't doing anything with ...
doc_5741
re.IGNORECASE Perform case-insensitive matching; expressions like [A-Z] will also match lowercase letters. Full Unicode matching (such as Ü matching ü) also works unless the re.ASCII flag is used to disable non-ASCII matches. The current locale does not change the effect of this flag unless the re.LOCALE flag is also...
doc_5742
Return a string of size random bytes suitable for cryptographic use. This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation. On Linux, if the getrandom() syscall ...
doc_5743
Return a new record object by calling MSICreateRecord(). count is the number of fields of the record.
doc_5744
See Migration guide for more details. tf.compat.v1.raw_ops.ResizeBilinearGrad tf.raw_ops.ResizeBilinearGrad( grads, original_image, align_corners=False, half_pixel_centers=False, name=None ) Args grads A Tensor of type float32. 4-D with shape [batch, height, width, channels]. original_image A Tens...
doc_5745
'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', ] } You can also set the renderers used for an individual view, or viewset, using the APIView class-based views. from django.contrib.auth.models import User from rest_framewor...
doc_5746
Initialize self. See help(type(self)) for accurate signature.
doc_5747
In-place version of sigmoid()
doc_5748
Return time object with same hour, minute, second, microsecond and fold. tzinfo is None. See also method timetz(). Changed in version 3.6: The fold value is copied to the returned time object.
doc_5749
Returns the type if dtype is not provided, else casts this object to the specified type. If this is already of the correct type, no copy is performed and the original object is returned. Parameters dtype (type or string) – The desired type non_blocking (bool) – If True, and the source is in pinned memory and desti...
doc_5750
Alias for set_linestyle.
doc_5751
os.CLD_KILLED os.CLD_DUMPED os.CLD_TRAPPED os.CLD_STOPPED os.CLD_CONTINUED These are the possible values for si_code in the result returned by waitid(). Availability: Unix. New in version 3.3. Changed in version 3.9: Added CLD_KILLED and CLD_STOPPED values.
doc_5752
Enumerates values of an open registry key, returning a tuple. key is an already open key, or one of the predefined HKEY_* constants. index is an integer that identifies the index of the value to retrieve. The function retrieves the name of one subkey each time it is called. It is typically called repeatedly, until an O...
doc_5753
Returns True if two arrays are element-wise equal within a tolerance. This function is equivalent to allclose except that masked values are treated as equal (default) or unequal, depending on the masked_equal argument. Parameters a, barray_like Input arrays to compare. masked_equalbool, optional Whether mas...
doc_5754
Add and return a Line control.
doc_5755
Decorator for tests only applicable to CPython.
doc_5756
Return ctime() style string.
doc_5757
Add a new axes on the right (or left) side of the main axes. Parameters sizeaxes_size or float or str The axes width. float or str arguments are interpreted as axes_size.from_any(size, AxesX(<main_axes>)). padaxes_size or float or str Padding between the axes. float or str arguments are interpreted as axes_...
doc_5758
Remap image to polar or log-polar coordinates space. Parameters imagendarray Input image. Only 2-D arrays are accepted by default. If multichannel=True, 3-D arrays are accepted and the last axis is interpreted as multiple channels. centertuple (row, col), optional Point in image that represents the center o...
doc_5759
Return the Colormap instance.
doc_5760
See torch.diagflat()
doc_5761
Simply handles the multiplication between the parameter being pruned and the generated mask. Fetches the mask and the original tensor from the module and returns the pruned version of the tensor. Parameters module (nn.Module) – module containing the tensor to prune Returns pruned version of the input tensor Return...
doc_5762
Draw a series of Gouraud triangles. Parameters points(N, 3, 2) array-like Array of N (x, y) points for the triangles. colors(N, 3, 4) array-like Array of N RGBA colors for each point of the triangles. transformmatplotlib.transforms.Transform An affine transform to apply to the points.
doc_5763
Switch to the raster renderer. Used by MixedModeRenderer.
doc_5764
Write value to a plist file. Fp should be a writable, binary file object. The fmt argument specifies the format of the plist file and can be one of the following values: FMT_XML: XML formatted plist file FMT_BINARY: Binary formatted plist file When sort_keys is true (the default) the keys for dictionaries will be w...
doc_5765
Log normal distribution. If you take the natural logarithm of this distribution, you’ll get a normal distribution with mean mu and standard deviation sigma. mu can have any value, and sigma must be greater than zero.
doc_5766
Convert a stereo fragment to a mono fragment. The left channel is multiplied by lfactor and the right channel by rfactor before adding the two channels to give a mono signal.
doc_5767
The tuple of arguments given to the exception constructor. Some built-in exceptions (like OSError) expect a certain number of arguments and assign a special meaning to the elements of this tuple, while others are usually called only with a single string giving an error message.
doc_5768
See Migration guide for more details. tf.compat.v1.random.multinomial tf.compat.v1.multinomial( logits, num_samples, seed=None, name=None, output_dtype=None ) Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.random.categorical instead. Example: # sam...
doc_5769
Convert a date string to a datenum using dateutil.parser.parse. Parameters dstr or sequence of str The dates to convert. defaultdatetime.datetime, optional The default date to use when fields are missing in d.
doc_5770
msvcrt.LK_RLCK Locks the specified bytes. If the bytes cannot be locked, the program immediately tries again after 1 second. If, after 10 attempts, the bytes cannot be locked, OSError is raised.
doc_5771
Allowlist of email domains. By default, a regular expression (the domain_regex attribute) is used to validate whatever appears after the @ sign. However, if that string appears in the allowlist, this validation is bypassed. If not provided, the default allowlist is ['localhost']. Other domains that don’t contain a dot ...
doc_5772
Is called after the end() callback of an element that declared a namespace prefix mapping, with the name of the prefix that went out of scope. New in version 3.8.
doc_5773
Block callback signals from being processed. A context manager to temporarily block/disable callback signals from being processed by the registered listeners. Parameters signalstr, optional The callback signal to block. The default is to block all signals.
doc_5774
Return the number of elements along a given axis. Parameters aarray_like Input data. axisint, optional Axis along which the elements are counted. By default, give the total number of elements. Returns element_countint Number of elements along the specified axis. See also shape dimensions of a...
doc_5775
An ensemble of totally random trees. An unsupervised transformation of a dataset to a high-dimensional sparse representation. A datapoint is coded according to which leaf of each tree it is sorted into. Using a one-hot encoding of the leaves, this leads to a binary coding with as many ones as there are trees in the f...
doc_5776
'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_5777
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_5778
The request was not successfully authenticated, and the highest priority authentication class does not use WWW-Authenticate headers. — An HTTP 403 Forbidden response will be returned. The request was not successfully authenticated, and the highest priority authentication class does use WWW-Authenticate headers. — An ...
doc_5779
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_5780
Draw the text instance. Parameters gcGraphicsContextBase The graphics context. xfloat The x location of the text in display coords. yfloat The y location of the text baseline in display coords. sstr The text string. propmatplotlib.font_manager.FontProperties The font properties. anglefloat T...
doc_5781
wait for a single event from the queue wait() -> EventType instance wait(timeout) -> EventType instance Returns a single event from the queue. If the queue is empty this function will wait until one is created. From pygame 2.0.0, if a timeout argument is given, the function will return an event of type pygame.NOEVENT...
doc_5782
Retrieve CRLs from Windows’ system cert store. store_name may be one of CA, ROOT or MY. Windows may provide additional cert stores, too. The function returns a list of (cert_bytes, encoding_type, trust) tuples. The encoding_type specifies the encoding of cert_bytes. It is either x509_asn for X.509 ASN.1 data or pkcs_7_...
doc_5783
See Migration guide for more details. tf.compat.v1.raw_ops.Add tf.raw_ops.Add( x, y, name=None ) Note: math.add supports broadcasting. AddN does not. More about broadcasting here Given two input tensors, the tf.add operation computes the sum for every element in the tensor. Both input and output have a range (...
doc_5784
This works exactly like the method of the same name on a regular click.Group but it defaults the group class to AppGroup.
doc_5785
See Migration guide for more details. tf.compat.v1.math.polyval tf.math.polyval( coeffs, x, name=None ) If x is a tensor and coeffs is a list n + 1 tensors, this function returns the value of the n-th order polynomial p(x) = coeffs[n-1] + coeffs[n-2] * x + ... + coeffs[0] * x**(n-1) evaluated using Horner's meth...
doc_5786
Return the coroutine object wrapped by the Task. New in version 3.8.
doc_5787
Change shape and size of array in-place. Parameters new_shapetuple of ints, or n ints Shape of resized array. refcheckbool, optional If False, reference count will not be checked. Default is True. Returns None Raises ValueError If a does not own its own data or references or views to it exist, and...
doc_5788
Scalar method identical to the corresponding array attribute. Please see ndarray.astype.
doc_5789
tf.image.stateless_random_crop( value, size, seed, name=None ) Slices a shape size portion out of value at a uniformly chosen offset. Requires value.shape >= size. If a dimension should not be cropped, pass the full size of that dimension. For example, RGB images can be cropped with size = [crop_height, crop_width...
doc_5790
Bases: torch.distributions.distribution.Distribution ExponentialFamily is the abstract base class for probability distributions belonging to an exponential family, whose probability mass/density function has the form is defined below pF(x;θ)=exp⁡(⟨t(x),θ⟩−F(θ)+k(x))p_{F}(x; \theta) = \exp(\langle t(x), \theta\rangle...
doc_5791
Returns a dictionary of values to use when rendering the widget template. By default, the dictionary contains a single key, 'widget', which is a dictionary representation of the widget containing the following keys: 'name': The name of the field from the name argument. 'is_hidden': A boolean indicating whether or no...
doc_5792
class sklearn.model_selection.HalvingGridSearchCV(estimator, param_grid, *, factor=3, resource='n_samples', max_resources='auto', min_resources='exhaust', aggressive_elimination=False, cv=5, scoring=None, refit=True, error_score=nan, return_train_score=True, random_state=None, n_jobs=None, verbose=0) [source] Search ...
doc_5793
Return a list of the sections available; the default section is not included in the list.
doc_5794
Immutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. Int64Index is a special case of Index with purely integer labels. . Deprecated since version 1.4.0: In pandas v2.0 Int64Index will be removed and NumericIndex used instead. Int64Index will remain fully fu...
doc_5795
See Migration guide for more details. tf.compat.v1.raw_ops.ResizeBicubic tf.raw_ops.ResizeBicubic( images, size, align_corners=False, half_pixel_centers=False, name=None ) Input images can be of different types but output images are always float. Args images A Tensor. Must be one of the following types:...
doc_5796
Call open() with method set to HEAD. Parameters args (Any) – kw (Any) – Return type werkzeug.test.TestResponse
doc_5797
Randomized search on hyper parameters. The search strategy starts evaluating all the candidates with a small amount of resources and iteratively selects the best candidates, using more and more resources. The candidates are sampled at random from the parameter space and the number of sampled candidates is determined ...
doc_5798
See Migration guide for more details. tf.compat.v1.name_scope tf.compat.v1.keras.backend.name_scope( name, default_name=None, values=None ) This context manager validates that the given values are from the same graph, makes that graph the default graph, and pushes a name scope in that graph (see tf.Graph.name_sc...
doc_5799
See Migration guide for more details. tf.compat.v1.data.experimental.service.DispatcherConfig tf.data.experimental.service.DispatcherConfig( port=0, protocol='grpc', work_dir=None, fault_tolerant_mode=False, job_gc_check_interval_ms=None, job_gc_timeout_ms=None ) Fields: port: Specifies the port to bind to...