_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_20400
Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
doc_20401
Sets the volume for a given mixer control to (left,right). left and right must be ints and between 0 (silent) and 100 (full volume). On success, the new volume is returned as a 2-tuple. Note that this may not be exactly the same as the volume specified, because of the limited resolution of some soundcard’s mixers. Rais...
doc_20402
Ignore cookies in Set-Cookie: headers that have names starting with '$'.
doc_20403
Removes the pruning reparameterization from a module. The pruned parameter named name remains permanently pruned, and the parameter named name+'_orig' is removed from the parameter list. Similarly, the buffer named name+'_mask' is removed from the buffers. Note Pruning itself is NOT undone or reversed!
doc_20404
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_20405
Return a copy of the array. Parameters order{‘C’, ‘F’, ‘A’, ‘K’}, optional Controls the memory layout of the copy. ‘C’ means C-order, ‘F’ means F-order, ‘A’ means ‘F’ if a is Fortran contiguous, ‘C’ otherwise. ‘K’ means match the layout of a as closely as possible. (Note that this function and numpy.copy are ve...
doc_20406
tf.compat.v1.layers.MaxPooling2D( pool_size, strides, padding='valid', data_format='channels_last', name=None, **kwargs ) Arguments pool_size An integer or tuple/list of 2 integers: (pool_height, pool_width) specifying the size of the pooling window. Can be a single integer to specify the same value f...
doc_20407
See torch.cos()
doc_20408
'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_20409
Formats the time to match the RFC 1123#section-5.2.14 date format as specified by HTTP RFC 7231#section-7.1.1.1. Accepts a floating point number expressed in seconds since the epoch in UTC–such as that outputted by time.time(). If set to None, defaults to the current time. Outputs a string in the format Wdy, DD Mon Y...
doc_20410
tf.metrics.KLDivergence Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.KLDivergence tf.keras.metrics.KLDivergence( name='kullback_leibler_divergence', dtype=None ) metric = y_true * log(y_true / y_pred) Args name (Optional) string name of the metric instanc...
doc_20411
min(arg1, arg2, *args[, key]) Return the smallest item in an iterable or the smallest of two or more arguments. If one positional argument is provided, it should be an iterable. The smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest of the positional arguments is...
doc_20412
Set the machine’s hostname to name. This will raise an OSError if you don’t have enough rights. Raises an auditing event socket.sethostname with argument name. Availability: Unix. New in version 3.3.
doc_20413
Like dict.setdefault(), except it uses __setitem__() internally.
doc_20414
returns a vector reflected of a given normal. reflect(Vector2) -> Vector2 Returns a new vector that points in the direction as if self would bounce of a surface characterized by the given surface normal. The length of the new vector is the same as self's.
doc_20415
Return the minimum along a given axis. Parameters axis{None, int}, optional Axis along which to operate. By default, axis is None and the flattened input is used. outarray_like, optional Alternative output array in which to place the result. Must be of the same shape and buffer length as the expected output...
doc_20416
Set the (group) id for the artist. Parameters gidstr
doc_20417
Gets whether the font is fixed-width fixed_width -> bool Read only. Returns True if the font contains fixed-width characters (for example Courier, Bitstream Vera Sans Mono, Andale Mono).
doc_20418
Return True if the terminal can display colors; otherwise, return False.
doc_20419
Returns a Rect based on the size of the mask get_rect(**kwargs) -> Rect Returns a new pygame.Rect() object based on the size of this mask. The rect's default position will be (0, 0) and its default width and height will be the same as this mask's. The rect's attributes can be altered via pygame.Rect() attribute keywo...
doc_20420
Alias for set_antialiased.
doc_20421
tf.constant( value, dtype=None, shape=None, name='Const' ) Note: All eager tf.Tensor values are immutable (in contrast to tf.Variable). There is nothing especially constant about the value returned from tf.constant. This function it is not fundamentally different from tf.convert_to_tensor. The name tf.constant co...
doc_20422
Returns the model on which the field is defined. If a field is defined on a superclass of a model, model will refer to the superclass, not the class of the instance.
doc_20423
Return the context variable name that will be used to contain the data that this view is manipulating. If context_object_name is not set, the context name will be constructed from the model_name of the model that the queryset is composed from. For example, the model Article would have context object named 'article'.
doc_20424
dom1 = parse('c:\\temp\\mydata.xml') # parse an XML file by name datasource = open('c:\\temp\\mydata.xml') dom2 = parse(datasource) # parse an open file dom3 = parseString('<myxml>Some data<empty/> some more data</myxml>') The parse() function can take either a filename or an open file object. xml.dom.minidom.p...
doc_20425
Asserts that a field on a form raises the provided list of errors when rendered on the form. response must be a response instance returned by the test client. form is the name the Form instance was given in the template context of the response. field is the name of the field on the form to check. If field has a value o...
doc_20426
Return the argument with environment variables expanded. Substrings of the form $name or ${name} are replaced by the value of environment variable name. Malformed variable names and references to non-existing variables are left unchanged. On Windows, %name% expansions are supported in addition to $name and ${name}. Ch...
doc_20427
Distributed Training Tutorials The tutorials cover how to use tf.distribute.Strategy to do distributed training with native Keras APIs, custom training loops, and Esitmator APIs. They also cover how to save/load model when using tf.distribute.Strategy. Glossary Data parallelism is where we run multiple copies of th...
doc_20428
Removes the pruning reparameterization from a module. The pruned parameter named name remains permanently pruned, and the parameter named name+'_orig' is removed from the parameter list. Similarly, the buffer named name+'_mask' is removed from the buffers. Note Pruning itself is NOT undone or reversed!
doc_20429
Returns the contents for a template given a Origin instance. This is where a filesystem loader would read contents from the filesystem, or a database loader would read from the database. If a matching template doesn’t exist, this should raise a TemplateDoesNotExist error.
doc_20430
tf.compat.v1.foldr( fn, elems, initializer=None, parallel_iterations=10, back_prop=True, swap_memory=False, name=None ) This foldr operator repeatedly applies the callable fn to a sequence of elements from last to first. The elements are made of the tensors unpacked from elems. The callable fn takes two tensor...
doc_20431
Set the antialiasing state for rendering. Parameters aabool or list of bools
doc_20432
class sklearn.feature_extraction.text.TfidfVectorizer(*, input='content', encoding='utf-8', decode_error='strict', strip_accents=None, lowercase=True, preprocessor=None, tokenizer=None, analyzer='word', stop_words=None, token_pattern='(?u)\\b\\w\\w+\\b', ngram_range=(1, 1), max_df=1.0, min_df=1, max_features=None, voca...
doc_20433
Exit code that means an input file did not exist or was not readable. Availability: Unix.
doc_20434
Optional abstract method which returns the modification time for the specified path. Deprecated since version 3.3: This method is deprecated in favour of path_stats(). You don’t have to implement it, but it is still available for compatibility purposes. Raise OSError if the path cannot be handled. Changed in version...
doc_20435
tf.compat.v1.logging.error( msg, *args, **kwargs )
doc_20436
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results will not update if the artist windo...
doc_20437
tarfile.open(name=None, mode='r', fileobj=None, bufsize=10240, **kwargs) Return a TarFile object for the pathname name. For detailed information on TarFile objects and the keyword arguments that are allowed, see TarFile Objects. mode has to be a string of the form 'filemode[:compression]', it defaults to 'r'. Here is...
doc_20438
Apple’s documentation of the file format. This module defines the following functions: plistlib.load(fp, *, fmt=None, dict_type=dict) Read a plist file. fp should be a readable and binary file object. Return the unpacked root object (which usually is a dictionary). The fmt is the format of the file and the foll...
doc_20439
tf.metrics.SquaredHinge Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.SquaredHinge tf.keras.metrics.SquaredHinge( name='squared_hinge', dtype=None ) y_true values are expected to be -1 or 1. If binary (0 or 1) labels are provided we will convert them to -1 or 1. ...
doc_20440
A namedtuple that holds a brief summary of a module’s info. New in version 3.6.
doc_20441
Return a StreamRecoder instance, a wrapped version of file which provides transparent transcoding. The original file is closed when the wrapped version is closed. Data written to the wrapped file is decoded according to the given data_encoding and then written to the original file as bytes using file_encoding. Bytes re...
doc_20442
Return the charset parameter of the Content-Type header, coerced to lower case. If there is no Content-Type header, or if that header has no charset parameter, failobj is returned.
doc_20443
Fit the RFE model and then the underlying estimator on the selected features. Parameters X{array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. yarray-like of shape (n_samples,) The target values.
doc_20444
Creates a new tensor by horizontally stacking the tensors in tensors. Equivalent to torch.hstack(tensors), except each zero or one dimensional tensor t in tensors is first reshaped into a (t.numel(), 1) column before being stacked horizontally. Parameters tensors (sequence of Tensors) – sequence of tensors to concate...
doc_20445
Convert tz-aware axis to target time zone. Parameters tz:str or tzinfo object axis:the axis to convert level:int, str, default None If axis is a MultiIndex, convert a specific level. Otherwise must be None. copy:bool, default True Also make a copy of the underlying data. Returns {klass} Object wit...
doc_20446
class sklearn.compose.TransformedTargetRegressor(regressor=None, *, transformer=None, func=None, inverse_func=None, check_inverse=True) [source] Meta-estimator to regress on a transformed target. Useful for applying a non-linear transformation to the target y in regression problems. This transformation can be given a...
doc_20447
See Migration guide for more details. tf.compat.v1.regex_replace, tf.compat.v1.strings.regex_replace tf.strings.regex_replace( input, pattern, rewrite, replace_global=True, name=None ) tf.strings.regex_replace("Text with tags.<br /><b>contains html</b>", "<[^>]+>", " ") <tf.Tensor: shap...
doc_20448
class urllib.robotparser.RobotFileParser(url='') This class provides methods to read, parse and answer questions about the robots.txt file at url. set_url(url) Sets the URL referring to a robots.txt file. read() Reads the robots.txt URL and feeds it to the parser. parse(lines) Parses the lines argumen...
doc_20449
A data structure of functions to call to modify the keyword arguments passed to the view function, in the format {scope: [functions]}. The scope key is the name of a blueprint the functions are active for, or None for all requests. To register a function, use the url_value_preprocessor() decorator. This data structure ...
doc_20450
For each element in a, return a list of the lines in the element, breaking at line boundaries. Calls str.splitlines element-wise. Parameters aarray_like of str or unicode keependsbool, optional Line breaks are not included in the resulting list unless keepends is given and true. Returns outndarray Arr...
doc_20451
1 becomes one. 2 becomes two. 10 becomes 10. You can pass in either an integer or a string representation of an integer. intcomma Converts an integer or float (or a string representation of either) to a string containing commas every three digits. Examples: 4500 becomes 4,500. 4500.2 becomes 4,500.2. 45000 becom...
doc_20452
Look up the context and message id in the catalog and return the corresponding message string, as a Unicode string. If there is no entry in the catalog for the message id and context, and a fallback has been set, the look up is forwarded to the fallback’s pgettext() method. Otherwise, the message id is returned. New i...
doc_20453
a reference to the current application
doc_20454
Load the kddcup99 dataset (classification). Download it if necessary. Classes 23 Samples total 4898431 Dimensionality 41 Features discrete (int) or continuous (float) Read more in the User Guide. New in version 0.18. Parameters subset{‘SA’, ‘SF’, ‘http’, ‘smtp’}, default=None To return the correspon...
doc_20455
get the Joystick system name get_name() -> string Returns the system name for this joystick device. It is unknown what name the system will give to the Joystick, but it should be a unique name that identifies the device. This method can safely be called while the Joystick is not initialized.
doc_20456
Return the Transform instance used by this artist.
doc_20457
The user (an AUTH_USER_MODEL instance) who performed the action.
doc_20458
See Migration guide for more details. tf.compat.v1.keras.layers.ZeroPadding2D tf.keras.layers.ZeroPadding2D( padding=(1, 1), data_format=None, **kwargs ) This layer can add rows and columns of zeros at the top, bottom, left and right side of an image tensor. Examples: input_shape = (1, 1, 2, 2) x = np.arange(np...
doc_20459
'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_20460
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_20461
The last colorbar associated with this ScalarMappable. May be None.
doc_20462
Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Note: there is no su...
doc_20463
Compute the recall. The recall is the ratio tp / (tp + fn) where tp is the number of true positives and fn the number of false negatives. The recall is intuitively the ability of the classifier to find all the positive samples. The best value is 1 and the worst value is 0. Read more in the User Guide. Parameters ...
doc_20464
textwrap.wrap(text, width=70, **kwargs) Wraps the single paragraph in text (a string) so every line is at most width characters long. Returns a list of output lines, without final newlines. Optional keyword arguments correspond to the instance attributes of TextWrapper, documented below. width defaults to 70. See the...
doc_20465
Return the aspect ratio of the data itself. For a polar plot, this should always be 1.0
doc_20466
DataFrame accessor for sparse data. New in version 0.25.0.
doc_20467
Return self|value.
doc_20468
Return array of indices to the minimum values along the given axis. Parameters axis{None, integer} If None, the index is into the flattened array, otherwise along the specified axis fill_valuescalar or None, optional Value used to fill in the masked values. If None, the output of minimum_fill_value(self._da...
doc_20469
Delete the breakpoint which has the index arg in the Breakpoint.bpbynumber. If arg is not numeric or out of range, return an error message.
doc_20470
Return a random URL-safe text string, containing nbytes random bytes. The text is Base64 encoded, so on average each byte results in approximately 1.3 characters. If nbytes is None or not supplied, a reasonable default is used. >>> token_urlsafe(16) 'Drmhze6EPcv0fN_81Bj-nA'
doc_20471
Print a month’s calendar as returned by formatmonth().
doc_20472
Returns a new instance of the NTEventLogHandler class. The appname is used to define the application name as it appears in the event log. An appropriate registry entry is created using this name. The dllname should give the fully qualified pathname of a .dll or .exe which contains message definitions to hold in the log...
doc_20473
Create a short string representation of a float, which is %f formatting with trailing zeros and the decimal point removed.
doc_20474
Compile one or more source files. Please refer to the Python distutils API reference for more details. Parameters sourceslist of str A list of filenames output_dirstr, optional Path to the output directory. macroslist of tuples A list of macro definitions. include_dirslist of str, optional The direc...
doc_20475
See Migration guide for more details. tf.compat.v1.keras.experimental.NoisyLinearCosineDecay tf.keras.experimental.NoisyLinearCosineDecay( initial_learning_rate, decay_steps, initial_variance=1.0, variance_decay=0.55, num_periods=0.5, alpha=0.0, beta=0.001, name=None ) See [Bello et al., ICML2017] Neural Opt...
doc_20476
Describes how argument values are bound to the parameter. Possible values (accessible via Parameter, like Parameter.KEYWORD_ONLY): Name Meaning POSITIONAL_ONLY Value must be supplied as a positional argument. Positional only parameters are those which appear before a / entry (if present) in a Python function defi...
doc_20477
Compute the FFT of a signal that has Hermitian symmetry, i.e., a real spectrum. Parameters aarray_like The input array. nint, optional Length of the transformed axis of the output. For n output points, n//2 + 1 input points are necessary. If the input is longer than this, it is cropped. If it is shorter tha...
doc_20478
Get or set the PRNG state Returns statedict Dictionary containing the information required to describe the state of the PRNG
doc_20479
Computes the sample frequencies for rfft() with a signal of size n. Note rfft() returns Hermitian one-sided output, so only the positive frequency terms are returned. For a real FFT of length n and with inputs spaced in length unit d, the frequencies are: f = torch.arange((n + 1) // 2) / (d * n) Note For even lengt...
doc_20480
get events from the queue get(eventtype=None) -> Eventlist get(eventtype=None, pump=True) -> Eventlist This will get all the messages and remove them from the queue. If a type or sequence of types is given only those messages will be removed from the queue. If you are only taking specific events from the queue, be aw...
doc_20481
Exit status of the child process. If the process exited due to a signal, this will be the negative signal number.
doc_20482
Alias for set_edgecolor.
doc_20483
Returns input_charset as a string coerced to lower case. __repr__() is an alias for __str__().
doc_20484
tf.compat.v1.executing_eagerly_outside_functions() This function will check the outermost context for the program and see if it is in eager mode. It is useful comparing to tf.executing_eagerly(), which checks the current context and will return False within a tf.function body. It can be used to build library that beha...
doc_20485
A string representation of the interface with the network as a host mask. >>> interface = IPv4Interface('192.0.2.5/24') >>> interface.with_hostmask '192.0.2.5/0.0.0.255'
doc_20486
The parser determined that the document was not “standalone” though it declared itself to be in the XML declaration, and the NotStandaloneHandler was set and returned 0.
doc_20487
bytearray.title() Return a titlecased version of the binary sequence where words start with an uppercase ASCII character and the remaining characters are lowercase. Uncased byte values are left unmodified. For example: >>> b'Hello world'.title() b'Hello World' Lowercase ASCII characters are those byte values in the ...
doc_20488
Returns the LU solve of the linear system Ax=bAx = b using the partially pivoted LU factorization of A from torch.lu(). This function supports float, double, cfloat and cdouble dtypes for input. Parameters b (Tensor) – the RHS tensor of size (∗,m,k)(*, m, k) , where ∗* is zero or more batch dimensions. LU_data (...
doc_20489
Make a scorer from a performance metric or loss function. This factory function wraps scoring functions for use in GridSearchCV and cross_val_score. It takes a score function, such as accuracy_score, mean_squared_error, adjusted_rand_index or average_precision and returns a callable that scores an estimator’s output....
doc_20490
See Migration guide for more details. tf.compat.v1.raw_ops.Softplus tf.raw_ops.Softplus( features, name=None ) Args features A Tensor. Must be one of the following types: half, bfloat16, float32, float64. name A name for the operation (optional). Returns A Tensor. Has the same type as fe...
doc_20491
tf.autograph.to_code( entity, recursive=True, experimental_optional_features=None ) Example usage: def f(x): if x < 0: x = -x return x tf.autograph.to_code(f) "...def tf__f(x):..." Also see: tf.autograph.to_graph. Note: If a function has been decorated with tf.function, pass its underlying Python functi...
doc_20492
Return a copy. Returns new_seriesseries Copy of self.
doc_20493
Partition each element in a around sep. Calls str.partition element-wise. For each element in a, split the element as the first occurrence of sep, and return 3 strings containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return 3 strings cont...
doc_20494
Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and beginning offset bytes into the field. Parameters valobject Value to be placed in field. dtypedtype object Data-type of the field in which to place val. offsetint, optional The number of b...
doc_20495
Return a callable that handles preprocessing, tokenization and n-grams generation. Returns analyzer: callable A function to handle preprocessing, tokenization and n-grams generation.
doc_20496
tf.compat.v1.layers.average_pooling2d( inputs, pool_size, strides, padding='valid', data_format='channels_last', name=None ) Arguments inputs The tensor over which to pool. Must have rank 4. pool_size An integer or tuple/list of 2 integers: (pool_height, pool_width) specifying the size of the po...
doc_20497
Compute the one-dimensional discrete Fourier Transform for real input. This function computes the one-dimensional n-point discrete Fourier Transform (DFT) of a real-valued array by means of an efficient algorithm called the Fast Fourier Transform (FFT). Parameters aarray_like Input array nint, optional Numb...
doc_20498
Increment the line number and end line number of each node in the tree starting at node by n. This is useful to “move code” to a different location in a file.
doc_20499
In-place version of leaky_relu().