_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_2400
Remove missing values. See the User Guide for more on which values are considered missing, and how to work with missing data. Parameters axis:{0 or ‘index’, 1 or ‘columns’}, default 0 Determine if rows or columns which contain missing values are removed. 0, or ‘index’ : Drop rows which contain missing values. ...
doc_2401
sklearn.utils.sparsefuncs.inplace_swap_row(X, m, n) [source] Swaps two rows of a CSC/CSR matrix in-place. Parameters Xsparse matrix of shape (n_samples, n_features) Matrix whose two rows are to be swapped. It should be of CSR or CSC format. mint Index of the row of X to be swapped. nint Index of the row...
doc_2402
A decorator for running a function in a specific timezone, correctly resetting it after it has finished.
doc_2403
Connect a local manager object to a remote manager process: >>> from multiprocessing.managers import BaseManager >>> m = BaseManager(address=('127.0.0.1', 50000), authkey=b'abc') >>> m.connect()
doc_2404
A debug function to draw a rectangle around the bounding box returned by an artist's Artist.get_window_extent to test whether the artist is returning the correct bbox.
doc_2405
A custom ref subclass which simulates a weak reference to a bound method (i.e., a method defined on a class and looked up on an instance). Since a bound method is ephemeral, a standard weak reference cannot keep hold of it. WeakMethod has special code to recreate the bound method until either the object or the original...
doc_2406
tf.experimental.numpy.ndarray.clip tf.experimental.numpy.clip( a, a_min, a_max ) Unsupported arguments: out, kwargs. See the NumPy documentation for numpy.clip.
doc_2407
A UserWarning subclass issued when password input may be echoed.
doc_2408
Alias for get_linestyle.
doc_2409
Return the values (min, max) that are mapped to the colormap limits.
doc_2410
sklearn.compose.make_column_selector(pattern=None, *, dtype_include=None, dtype_exclude=None) [source] Create a callable to select columns to be used with ColumnTransformer. make_column_selector can select columns based on datatype or the columns name with a regex. When using multiple selection criteria, all criteria...
doc_2411
Return a month’s calendar in a multi-line string. If w is provided, it specifies the width of the date columns, which are centered. If l is given, it specifies the number of lines that each week will use. Depends on the first weekday as specified in the constructor or set by the setfirstweekday() method.
doc_2412
Rename the file or directory src to dst. If dst exists, the operation will fail with an OSError subclass in a number of cases: On Windows, if dst exists a FileExistsError is always raised. On Unix, if src is a file and dst is a directory or vice-versa, an IsADirectoryError or a NotADirectoryError will be raised respect...
doc_2413
A mixin that can be used to retrieve and provide parsing information for a day component of a date. Methods and Attributes day_format The strftime() format to use when parsing the day. By default, this is '%d'. day Optional The value for the day, as a string. By default, set to None, which means the day will ...
doc_2414
run a Surface.scroll example that shows a magnified image scroll.main(image_file=None) -> None This example shows a scrollable image that has a zoom factor of eight. It uses the Surface.scroll() function to shift the image on the display surface. A clip rectangle protects a margin area. If called as a function, the e...
doc_2415
See Migration guide for more details. tf.compat.v1.raw_ops.Sinh tf.raw_ops.Sinh( x, name=None ) Given an input tensor, this function computes hyperbolic sine of every element in the tensor. Input range is [-inf,inf] and output range is [-inf,inf]. x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 2, 10, float("i...
doc_2416
A proxy to the application handling the current request. This is useful to access the application without needing to import it, or if it can’t be imported, such as when using the application factory pattern or in blueprints and extensions. This is only available when an application context is pushed. This happens autom...
doc_2417
Register func as a function to be executed at termination. Any optional arguments that are to be passed to func must be passed as arguments to register(). It is possible to register the same function and arguments more than once. At normal program termination (for instance, if sys.exit() is called or the main module’s ...
doc_2418
Return a shallow copy of the dictionary.
doc_2419
Sorts the elements of the input tensor along a given dimension in ascending order by value. If dim is not given, the last dimension of the input is chosen. If descending is True then the elements are sorted in descending order by value. A namedtuple of (values, indices) is returned, where the values are the sorted valu...
doc_2420
Bases: mpl_toolkits.axes_grid1.axes_grid.Grid Parameters figFigure The parent figure. rect(float, float, float, float) or int The axes position, as a (left, bottom, width, height) tuple or as a three-digit subplot position code (e.g., "121"). nrows_ncols(int, int) Number of rows and columns in the grid....
doc_2421
Copy source location (lineno, col_offset, end_lineno, and end_col_offset) from old_node to new_node if possible, and return new_node.
doc_2422
If this attribute evaluates to true, events logged to this logger will be passed to the handlers of higher level (ancestor) loggers, in addition to any handlers attached to this logger. Messages are passed directly to the ancestor loggers’ handlers - neither the level nor filters of the ancestor loggers in question are...
doc_2423
Applies Instance Normalization for each channel in each data sample in a batch. See InstanceNorm1d, InstanceNorm2d, InstanceNorm3d for details.
doc_2424
tf.compat.v1.profiler.Profiler( graph=None, op_log=None ) https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler/README.md Typical use case: # Currently we are only allowed to create 1 profiler per process. profiler = Profiler(sess.graph) for i in xrange(total_steps): if i % 10000...
doc_2425
Compute min of group values. Parameters numeric_only:bool, default False Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data. min_count:int, default -1 The required number of valid values to perform the operation. If fewer than min_count non-NA value...
doc_2426
Same as filter_horizontal, but uses a vertical display of the filter interface with the box of unselected options appearing above the box of selected options.
doc_2427
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
doc_2428
Use ghostscript's ps2pdf and xpdf's/poppler's pdftops to distill a file. This yields smaller files without illegal encapsulated postscript operators. This distiller is preferred, generating high-level postscript output that treats text as text.
doc_2429
Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Returns int The observer id ...
doc_2430
Applies a 3D adaptive average pooling over an input signal composed of several input planes. See AdaptiveAvgPool3d for details and output shape. Parameters output_size – the target output size (single integer or triple-integer tuple)
doc_2431
tf.config.experimental.set_visible_devices Compat aliases for migration See Migration guide for more details. tf.compat.v1.config.experimental.set_visible_devices, tf.compat.v1.config.set_visible_devices tf.config.set_visible_devices( devices, device_type=None ) Specifies which PhysicalDevice objects are visible...
doc_2432
Split the string s using shell-like syntax. If comments is False (the default), the parsing of comments in the given string will be disabled (setting the commenters attribute of the shlex instance to the empty string). This function operates in POSIX mode by default, but uses non-POSIX mode if the posix argument is fal...
doc_2433
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_2434
Class used to generate nicer error messages if sessions are not available. Will still allow read-only access to the empty session but fail on setting. Parameters initial (Any) – Return type None
doc_2435
See Migration guide for more details. tf.compat.v1.raw_ops.CropAndResizeGradImage tf.raw_ops.CropAndResizeGradImage( grads, boxes, box_ind, image_size, T, method='bilinear', name=None ) Args grads A Tensor of type float32. A 4-D tensor of shape [num_boxes, crop_height, crop_width, depth]. boxes A ...
doc_2436
Parameters new_interval (int) – Value to use as the new growth interval.
doc_2437
Change the definition of a color, taking the number of the color to be changed followed by three RGB values (for the amounts of red, green, and blue components). The value of color_number must be between 0 and COLORS - 1. Each of r, g, b, must be a value between 0 and 1000. When init_color() is used, all occurrences of...
doc_2438
Called once for each element type declaration. name is the name of the element type, and model is a representation of the content model.
doc_2439
Create an object that operates like a regular reader but maps the information in each row to a dict whose keys are given by the optional fieldnames parameter. The fieldnames parameter is a sequence. If fieldnames is omitted, the values in the first row of file f will be used as the fieldnames. Regardless of how the fie...
doc_2440
where [args] are any number of arguments to script.py, or run python -m torch.utils.bottleneck -h for more usage instructions. Warning Because your script will be profiled, please ensure that it exits in a finite amount of time. Warning Due to the asynchronous nature of CUDA kernels, when running against CUDA code,...
doc_2441
tf.compat.v1.placeholder_with_default( input, shape, name=None ) Args input A Tensor. The default value to produce when output is not fed. shape A tf.TensorShape or list of ints. The (possibly partial) shape of the tensor. name A name for the operation (optional). Returns A Tensor. H...
doc_2442
See torch.heaviside()
doc_2443
Plot the cross correlation between x and y. The correlation with lag k is defined as \(\sum_n x[n+k] \cdot y^*[n]\), where \(y^*\) is the complex conjugate of \(y\). Parameters x, yarray-like of length n detrendcallable, default: mlab.detrend_none (no detrending) A detrending function applied to x and y. It m...
doc_2444
Add character data to the output stream. Parameters textstr Character data.
doc_2445
Write the given bytes-like object, b, to the underlying raw stream, and return the number of bytes written. This can be less than the length of b in bytes, depending on specifics of the underlying raw stream, and especially if it is in non-blocking mode. None is returned if the raw stream is set not to block and no sin...
doc_2446
Set or remove the function invoked by the rl_pre_input_hook callback of the underlying library. If function is specified, it will be used as the new hook function; if omitted or None, any function already installed is removed. The hook is called with no arguments after the first prompt has been printed and just before ...
doc_2447
Return True if the block has nested namespaces within it. These can be obtained with get_children().
doc_2448
Return the hyperbolic sine of x.
doc_2449
Save an image to file. Parameters fnamestr Target filename. arrndarray of shape (M,N) or (M,N,3) or (M,N,4) Image data. pluginstr, optional Name of plugin to use. By default, the different plugins are tried (starting with imageio) until a suitable candidate is found. If not given and fname is a tiff fil...
doc_2450
Creates a B-Tree index. Provide an integer value from 10 to 100 to the fillfactor parameter to tune how packed the index pages will be. PostgreSQL’s default is 90. Changed in Django 3.2: Positional argument *expressions was added in order to support functional indexes.
doc_2451
Estimate model parameters with the EM algorithm. The method fits the model n_init times and sets the parameters with which the model has the largest likelihood or lower bound. Within each trial, the method iterates between E-step and M-step for max_iter times until the change of likelihood or lower bound is less than...
doc_2452
Get the affine part of this transform.
doc_2453
Use the real uid/gid to test for access to path. Note that most operations will use the effective uid/gid, therefore this routine can be used in a suid/sgid environment to test if the invoking user has the specified access to path. mode should be F_OK to test the existence of path, or it can be the inclusive OR of one ...
doc_2454
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_2455
Rolling.count() Calculate the rolling count of non NaN observations. Rolling.sum(*args[, engine, engine_kwargs]) Calculate the rolling sum. Rolling.mean(*args[, engine, engine_kwargs]) Calculate the rolling mean. Rolling.median([engine, engine_kwargs]) Calculate the rolling median. Rolling.var([ddof, engine, en...
doc_2456
See Migration guide for more details. tf.compat.v1.app.flags.tf_decorator.TFDecorator tf.compat.v1.flags.tf_decorator.TFDecorator( decorator_name, target, decorator_doc='', decorator_argspec=None ) TFDecorator captures and exposes the wrapped target, and provides details about the current decorator. Attribu...
doc_2457
Calculate the rolling variance. Parameters ddof:int, default 1 Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements. *args For NumPy compatibility and will not have an effect on the result. engine:str, default None 'cython' : Runs the operation...
doc_2458
Create a mapping-like object wrapping headers, which must be a list of header name/value tuples as described in PEP 3333. The default value of headers is an empty list. Headers objects support typical mapping operations including __getitem__(), get(), __setitem__(), setdefault(), __delitem__() and __contains__(). For e...
doc_2459
See Migration guide for more details. tf.compat.v1.keras.applications.densenet.preprocess_input tf.keras.applications.densenet.preprocess_input( x, data_format=None ) Usage example with applications.MobileNet: i = tf.keras.layers.Input([None, None, 3], dtype = tf.uint8) x = tf.cast(i, tf.float32) x = tf.keras.ap...
doc_2460
A class method which returns a closure for use on sys.path_hooks. An instance of FileFinder is returned by the closure using the path argument given to the closure directly and loader_details indirectly. If the argument to the closure is not an existing directory, ImportError is raised.
doc_2461
This method does nothing.
doc_2462
Scatters a list of tensors to all processes in a group. Each process will receive exactly one tensor and store its data in the tensor argument. Parameters tensor (Tensor) – Output tensor. scatter_list (list[Tensor]) – List of tensors to scatter (default is None, must be specified on the source rank) src (int) –...
doc_2463
tkinter.font.BOLD tkinter.font.ITALIC tkinter.font.ROMAN
doc_2464
Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters bbool
doc_2465
Set the color for high out-of-range values.
doc_2466
Set the name used in the generated HTML documentation. This name will appear at the top of the generated documentation inside a “h1” element.
doc_2467
tf.losses.MeanSquaredError Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.MeanSquaredError tf.keras.losses.MeanSquaredError( reduction=losses_utils.ReductionV2.AUTO, name='mean_squared_error' ) loss = square(y_true - y_pred) Standalone usage: y_true = [[0., 1.], [0....
doc_2468
Get the parameters of an estimator from the ensemble. Returns the parameters given in the constructor as well as the estimators contained within the estimators parameter. Parameters deepbool, default=True Setting it to True gets the various estimators and the parameters of the estimators as well.
doc_2469
Bases: mpl_toolkits.axes_grid1.axes_grid.Grid Parameters figFigure The parent figure. rect(float, float, float, float) or int The axes position, as a (left, bottom, width, height) tuple or as a three-digit subplot position code (e.g., "121"). nrows_ncols(int, int) Number of rows and columns in the grid....
doc_2470
tf.experimental.numpy.string_( *args, **kwargs ) bytes(string, encoding[, errors]) -> bytes bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer bytes(int) -> bytes object of size given by the parameter initialized with null bytes bytes() -> empty bytes object Construct an immutable array of bytes from: an...
doc_2471
Alias for set_facecolor.
doc_2472
tf.nn.dropout( x, rate, noise_shape=None, seed=None, name=None ) Note: The behavior of dropout has changed between TensorFlow 1.x and 2.x. When converting 1.x code, please use named arguments to ensure behavior stays consistent. See also: tf.keras.layers.Dropout for a dropout layer. Dropout is useful for regular...
doc_2473
Generate a CAB file, add it as a stream to the MSI file, put it into the Media table, and remove the generated file from the disk.
doc_2474
tf.distribute.InputOptions( experimental_prefetch_to_device=True, experimental_replication_mode=tf.distribute.InputReplicationMode.PER_WORKER, experimental_place_dataset_on_device=False ) This can be used to hold some strategy specific configs. # Setup TPUStrategy resolver = tf.distribute.cluster_resolver....
doc_2475
The number of input dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_2476
See Migration guide for more details. tf.compat.v1.raw_ops.GatherV2 tf.raw_ops.GatherV2( params, indices, axis, batch_dims=0, name=None ) indices must be an integer tensor of any dimension (usually 0-D or 1-D). Produces an output tensor with shape params.shape[:axis] + indices.shape[batch_dims:] + params.shape[a...
doc_2477
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_2478
Return the picking behavior of the artist. The possible values are described in set_picker. See also set_picker, pickable, pick
doc_2479
See Migration guide for more details. tf.compat.v1.nn.uniform_candidate_sampler, tf.compat.v1.random.uniform_candidate_sampler tf.random.uniform_candidate_sampler( true_classes, num_true, num_sampled, unique, range_max, seed=None, name=None ) This operation randomly samples a tensor of sampled classes (sampled_c...
doc_2480
Whether debug mode is enabled. When using flask run to start the development server, an interactive debugger will be shown for unhandled exceptions, and the server will be reloaded when code changes. The debug attribute maps to this config key. This is enabled when ENV is 'development' and is overridden by the FLASK_DE...
doc_2481
Functionally equivalent to a ScriptModule, but represents a single function and does not have any attributes or Parameters. get_debug_state(self: torch._C.ScriptFunction) → torch._C.GraphExecutorState save(self: torch._C.ScriptFunction, filename: str, _extra_files: Dict[str, str] = {}) → None save_to_buffer(s...
doc_2482
Resize the standard and current windows to the specified dimensions, and adjusts other bookkeeping data used by the curses library that record the window dimensions (in particular the SIGWINCH handler).
doc_2483
Generate indices to split data into training and test set. Parameters Xobject Always ignored, exists for compatibility. yobject Always ignored, exists for compatibility. groupsobject Always ignored, exists for compatibility. Yields trainndarray The training set indices for that split. testndar...
doc_2484
Translates slice objects to concatenation along the first axis. This is a simple way to build up arrays quickly. There are two use cases. If the index expression contains comma separated arrays, then stack them along their first axis. If the index expression contains slice notation or scalars then create a 1-D array...
doc_2485
See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.random_channel_shift tf.keras.preprocessing.image.random_channel_shift( x, intensity_range, channel_axis=0 ) Arguments x Input tensor. Must be 3D. intensity_range Transformation intensity. channel_axis Index of axis...
doc_2486
Draw the figure using the renderer. It is important that this method actually walk the artist tree even if not output is produced because this will trigger deferred work (like computing limits auto-limits and tick values) that users may want access to before saving to disk.
doc_2487
'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_2488
tf.compat.v1.summary.merge_all( key=tf.GraphKeys.SUMMARIES, scope=None, name=None ) Args key GraphKey used to collect the summaries. Defaults to GraphKeys.SUMMARIES. scope Optional scope used to filter the summary ops, using re.match Returns If no summaries were collected, returns None. Ot...
doc_2489
See Migration guide for more details. tf.compat.v1.data.experimental.OptimizationOptions tf.data.experimental.OptimizationOptions() You can set the optimization options of a dataset through the experimental_optimization property of tf.data.Options; the property is an instance of tf.data.experimental.OptimizationOpti...
doc_2490
Push a KEY_MOUSE event onto the input queue, associating the given state data with it.
doc_2491
See torch.jit.save for details.
doc_2492
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_2493
Spatial reference objects are initialized on the given srs_input, which may be one of the following: OGC Well Known Text (WKT) (a string) EPSG code (integer or string) PROJ string A shorthand string for well-known standards ('WGS84', 'WGS72', 'NAD27', 'NAD83') Example: >>> wgs84 = SpatialReference('WGS84') # shorthan...
doc_2494
This class allows you to send requests to a wrapped application. The use_cookies parameter indicates whether cookies should be stored and sent for subsequent requests. This is True by default, but passing False will disable this behaviour. If you want to request some subdomain of your application you may set allow_subd...
doc_2495
Return a bounding box that encloses the axis. It only accounts tick labels, axis label, and offsetText. If for_layout_only is True, then the width of the label (if this is an x-axis) or the height of the label (if this is a y-axis) is collapsed to near zero. This allows tight/constrained_layout to ignore too-long lab...
doc_2496
tf.compat.v1.gfile.IsDirectory( dirname ) Args dirname string, path to a potential directory Returns True, if the path is a directory; False otherwise
doc_2497
Absolute path to the directory that will hold the files. Defaults to the value of your MEDIA_ROOT setting.
doc_2498
Validate a hatch pattern. A hatch pattern string can have any sequence of the following characters: \ / | - + * . x o O.
doc_2499
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...