_id stringlengths 5 9 | text stringlengths 5 385k | title stringclasses 1
value |
|---|---|---|
doc_9300 | See Migration guide for more details. tf.compat.v1.initializers.orthogonal, tf.compat.v1.keras.initializers.orthogonal, tf.compat.v1.orthogonal_initializer
tf.compat.v1.keras.initializers.Orthogonal(
gain=1.0, seed=None, dtype=tf.dtypes.float32
)
If the shape of the tensor to initialize is two-dimensional, it is... | |
doc_9301 | Return the data in the buffer as a list of elements. >>> memoryview(b'abc').tolist()
[97, 98, 99]
>>> import array
>>> a = array.array('d', [1.1, 2.2, 3.3])
>>> m = memoryview(a)
>>> m.tolist()
[1.1, 2.2, 3.3]
Changed in version 3.3: tolist() now supports all single character native formats in struct module syntax as... | |
doc_9302 |
Bases: matplotlib.transforms.Transform A simple transform that takes and arbitrary function for the forward and inverse transform. Parameters
forwardcallable
The forward function for the transform. This function must have an inverse and, for best behavior, be monotonic. It must have the signature: def forward(v... | |
doc_9303 | Resolves the template instance to use for rendering. Accepts a backend-dependent template object (such as those returned by get_template()), the name of a template, or a list of template names. Returns the backend-dependent template object instance to be rendered. Override this method in order to customize template loa... | |
doc_9304 | Raised if a parameter or an operation is not supported on the underlying object. | |
doc_9305 |
Return a tuple width, height, xdescent, ydescent of the box. | |
doc_9306 | __setitem__(key, message)
update(arg)
Warning These methods generate unique file names based upon the current process ID. When using multiple threads, undetected name clashes may occur and cause corruption of the mailbox unless threads are coordinated to avoid using these methods to manipulate the same mailbox sim... | |
doc_9307 |
Returns a set of CPU feature names that supported by platform and the C compiler. Parameters
names: sequence or None, optional
Specify certain CPU features to test it against the C compiler. if None(default), it will test all current supported features. Note: feature names must be in upper-case. force_flags: lis... | |
doc_9308 |
Rand index adjusted for chance. The Rand Index computes a similarity measure between two clusterings by considering all pairs of samples and counting pairs that are assigned in the same or different clusters in the predicted and true clusterings. The raw RI score is then “adjusted for chance” into the ARI score using... | |
doc_9309 |
Set the offsets for the collection. Parameters
offsets(N, 2) or (2,) array-like | |
doc_9310 | If not passed as a parameter when creating the object, this attribute is initialized upon first access or when the first record is read from the file. | |
doc_9311 | Locates an image file of the name name.xpm, name.xbm or name.ppm in one of the bitmap directories (see the tix_addbitmapdir() method above). If more than one file with the same name (but different extensions) exist, then the image type is chosen according to the depth of the X display: xbm images are chosen on monochro... | |
doc_9312 |
Returns a list of final CPU baseline compiler flags | |
doc_9313 | Sets the seed for generating random numbers. Returns a torch.Generator object. It is recommended to set a large seed, i.e. a number that has a good balance of 0 and 1 bits. Avoid having many 0 bits in the seed. Parameters
seed (int) – The desired seed. Value must be within the inclusive range [-0x8000_0000_0000_0000,... | |
doc_9314 |
Scalar method identical to the corresponding array attribute. Please see ndarray.min. | |
doc_9315 | A memory buffer that can be used to pass data between Python and an SSL protocol instance.
pending
Return the number of bytes currently in the memory buffer.
eof
A boolean indicating whether the memory BIO is current at the end-of-file position.
read(n=-1)
Read up to n bytes from the memory buffer. If n... | |
doc_9316 |
Draw samples from a Pareto II or Lomax distribution with specified shape. The Lomax or Pareto II distribution is a shifted Pareto distribution. The classical Pareto distribution can be obtained from the Lomax distribution by adding 1 and multiplying by the scale parameter m (see Notes). The smallest value of the Loma... | |
doc_9317 |
Return the Figure instance the artist belongs to. | |
doc_9318 | A possible value for the how parameter to pthread_sigmask() indicating that the signal mask is to be replaced. New in version 3.3. | |
doc_9319 |
Compute the distance matrix from a vector array X and optional Y. This method takes either a vector array or a distance matrix, and returns a distance matrix. If the input is a vector array, the distances are computed. If the input is a distances matrix, it is returned instead. This method provides a safe way to take... | |
doc_9320 |
Bases: torch.distributions.exp_family.ExponentialFamily Creates a Exponential distribution parameterized by rate. Example: >>> m = Exponential(torch.tensor([1.0]))
>>> m.sample() # Exponential distributed with rate=1
tensor([ 0.1046])
Parameters
rate (float or Tensor) – rate = 1 / scale of the distribution
ar... | |
doc_9321 |
Forward bytes from a subprocess call to the console, without attempting to decode them. The assumption is that the subprocess call already returned bytes in a suitable encoding. | |
doc_9322 | Returns the database column data type for the Field, taking into account the connection. See Custom database types for usage in custom fields. | |
doc_9323 | tf.compat.v1.train.update_checkpoint_state(
save_dir, model_checkpoint_path, all_model_checkpoint_paths=None,
latest_filename=None, all_model_checkpoint_timestamps=None,
last_preserved_timestamp=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: ... | |
doc_9324 | See Migration guide for more details. tf.compat.v1.raw_ops.StackPush
tf.raw_ops.StackPush(
handle, elem, swap_memory=False, name=None
)
Args
handle A Tensor of type mutable string.
elem A Tensor.
swap_memory An optional bool. Defaults to False.
name A name for the operation (optional).... | |
doc_9325 | sklearn.datasets.load_svmlight_files(files, *, n_features=None, dtype=<class 'numpy.float64'>, multilabel=False, zero_based='auto', query_id=False, offset=0, length=-1) [source]
Load dataset from multiple files in SVMlight format This function is equivalent to mapping load_svmlight_file over a list of files, except t... | |
doc_9326 | sklearn.covariance.graphical_lasso(emp_cov, alpha, *, cov_init=None, mode='cd', tol=0.0001, enet_tol=0.0001, max_iter=100, verbose=False, return_costs=False, eps=2.220446049250313e-16, return_n_iter=False) [source]
l1-penalized covariance estimator Read more in the User Guide. Changed in version v0.20: graph_lasso h... | |
doc_9327 |
Bases: torch.distributions.transformed_distribution.TransformedDistribution Samples from a Kumaraswamy distribution. Example: >>> m = Kumaraswamy(torch.Tensor([1.0]), torch.Tensor([1.0]))
>>> m.sample() # sample from a Kumaraswamy distribution with concentration alpha=1 and beta=1
tensor([ 0.1729])
Parameters
c... | |
doc_9328 | Iconify the display surface iconify() -> bool Request the window for the display surface be iconified or hidden. Not all systems and displays support an iconified display. The function will return True if successful. When the display is iconified pygame.display.get_active() will return False. The event queue should r... | |
doc_9329 |
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_9330 | See Migration guide for more details. tf.compat.v1.logical_xor, tf.compat.v1.math.logical_xor
tf.math.logical_xor(
x, y, name='LogicalXor'
)
x ^ y = (x | y) & ~(x & y) The operation works for the following input types: Two single elements of type bool
One tf.Tensor of type bool and one single bool, where the r... | |
doc_9331 |
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | |
doc_9332 |
Performs dtype and/or device conversion on self.data. It has similar signature as torch.Tensor.to(), except optional arguments like non_blocking and copy should be passed as kwargs, not args, or they will not apply to the index tensors. Note If the self.data Tensor already has the correct torch.dtype and torch.devic... | |
doc_9333 | This is either None (if the mock hasn’t been awaited), or the arguments that the mock was last awaited with. Functions the same as Mock.call_args. >>> mock = AsyncMock()
>>> async def main(*args):
... await mock(*args)
...
>>> mock.await_args
>>> asyncio.run(main('foo'))
>>> mock.await_args
call('foo')
>>> asyncio.... | |
doc_9334 |
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_9335 | A tuple of Address objects encoding all of the individual addresses from the header value. If the header value contains any groups, the individual addresses from the group are included in the list at the point where the group occurs in the value (that is, the list of addresses is “flattened” into a one dimensional list... | |
doc_9336 | See Migration guide for more details. tf.compat.v1.raw_ops.SparseAccumulatorTakeGradient
tf.raw_ops.SparseAccumulatorTakeGradient(
handle, num_required, dtype, name=None
)
The op will blocks until sufficient (i.e., more than num_required) gradients have been accumulated. If the accumulator has already aggregated... | |
doc_9337 | convert an array into a Sound object make_sound(array) -> Sound Create a new playable Sound object from an array. The mixer module must be initialized and the array format must be similar to the mixer audio format. | |
doc_9338 |
Method that specifies the behavior of this Tracer when it encounters a call to an nn.Module instance. By default, the behavior is to check if the called module is a leaf module via is_leaf_module. If it is, emit a call_module node referring to m in the Graph. Otherwise, call the Module normally, tracing through the o... | |
doc_9339 | sklearn.preprocessing.quantile_transform(X, *, axis=0, n_quantiles=1000, output_distribution='uniform', ignore_implicit_zeros=False, subsample=100000, random_state=None, copy=True) [source]
Transform features using quantiles information. This method transforms the features to follow a uniform or a normal distribution... | |
doc_9340 |
Plot y versus x as lines and/or markers with attached errorbars. x, y define the data locations, xerr, yerr define the errorbar sizes. By default, this draws the data markers/lines as well the errorbars. Use fmt='none' to draw errorbars without any data markers. Parameters
x, yfloat or array-like
The data posit... | |
doc_9341 |
Set multiple properties at once. Supported properties are
Property Description
agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array
alpha scalar or None
animated bool
bbox_to_anchor unknown
child unknown
clip_box Bbox
clip_on bool
clip_pa... | |
doc_9342 | Computes the element-wise maximum of input and other. Note If one of the elements being compared is a NaN, then that element is returned. maximum() is not supported for tensors with complex dtypes. Parameters
input (Tensor) – the input tensor.
other (Tensor) – the second input tensor Keyword Arguments
out (Te... | |
doc_9343 | tf.compat.v1.train.assert_global_step(
global_step_tensor
)
Args
global_step_tensor Tensor to test. | |
doc_9344 | See Migration guide for more details. tf.compat.v1.raw_ops.TensorArrayV3
tf.raw_ops.TensorArrayV3(
size, dtype, element_shape=None, dynamic_size=False, clear_after_read=True,
identical_element_shapes=False, tensor_array_name='', name=None
)
Write data via Write and read via Read or Pack.
Args
size A... | |
doc_9345 |
Set a label that will be displayed in the legend. Parameters
sobject
s will be converted to a string by calling str. | |
doc_9346 | """
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_9347 | tf.asinh Compat aliases for migration See Migration guide for more details. tf.compat.v1.asinh, tf.compat.v1.math.asinh
tf.math.asinh(
x, name=None
)
Given an input tensor, this function computes inverse hyperbolic sine for every element in the tensor. Both input and output has a range of [-inf, inf]. x = tf.con... | |
doc_9348 | See Migration guide for more details. tf.compat.v1.raw_ops.RngReadAndSkip
tf.raw_ops.RngReadAndSkip(
resource, alg, delta, name=None
)
The state of the RNG after rng_read_and_skip(n) will be the same as that after uniform([n]) (or any other distribution). The actual increment added to the counter is an unspecifi... | |
doc_9349 | Execute unittest.TestCase subclasses passed to the function. The function scans the classes for methods starting with the prefix test_ and executes the tests individually. It is also legal to pass strings as parameters; these should be keys in sys.modules. Each associated module will be scanned by unittest.TestLoader.l... | |
doc_9350 |
Set the edge color of the Figure rectangle. Parameters
colorcolor | |
doc_9351 | See torch.ne(). | |
doc_9352 | See Migration guide for more details. tf.compat.v1.raw_ops.Asinh
tf.raw_ops.Asinh(
x, name=None
)
Given an input tensor, this function computes inverse hyperbolic sine for every element in the tensor. Both input and output has a range of [-inf, inf]. x = tf.constant([-float("inf"), -2, -0.5, 1, 1.2, 200, 10000, ... | |
doc_9353 |
Get information about the step size of a date or time type. The returned tuple can be passed as the second argument of numpy.datetime64 and numpy.timedelta64. Parameters
dtypedtype
The dtype object, which must be a datetime64 or timedelta64 type. Returns
unitstr
The datetime unit on which this dtype is ... | |
doc_9354 | tf.compat.v1.initialize_all_tables(
name='init_all_tables'
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.tables_initializer instead.
Args
name Optional name for the initialization op.
Returns An Op that initializes all tables. N... | |
doc_9355 |
A class for storing Font properties. It is used when populating the font lookup dictionary. | |
doc_9356 |
Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate. | |
doc_9357 |
Set the CapStyle for the collection (for all its elements). Parameters
csCapStyle or {'butt', 'projecting', 'round'} | |
doc_9358 |
Multidimensional scaling. Read more in the User Guide. Parameters
n_componentsint, default=2
Number of dimensions in which to immerse the dissimilarities.
metricbool, default=True
If True, perform metric MDS; otherwise, perform nonmetric MDS.
n_initint, default=4
Number of times the SMACOF algorithm wil... | |
doc_9359 |
Fit the OrdinalEncoder to X. Parameters
Xarray-like, shape [n_samples, n_features]
The data to determine the categories of each feature.
yNone
Ignored. This parameter exists only for compatibility with Pipeline. Returns
self | |
doc_9360 |
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_9361 | The compiled code object. | |
doc_9362 | Called when the parser encounters an error it cannot recover from; parsing is expected to terminate when this method returns. | |
doc_9363 | Return the index of the header in the set or return -1 if not found. Parameters
header – the header to be looked up. | |
doc_9364 |
Creates Embedding instance from given 2-dimensional FloatTensor. Parameters
embeddings (Tensor) – FloatTensor containing weights for the Embedding. First dimension is being passed to Embedding as num_embeddings, second as embedding_dim.
freeze (boolean, optional) – If True, the tensor does not get updated in the... | |
doc_9365 | class sklearn.model_selection.LeavePOut(p) [source]
Leave-P-Out cross-validator Provides train/test indices to split data in train/test sets. This results in testing on all distinct samples of size p, while the remaining n - p samples form the training set in each iteration. Note: LeavePOut(p) is NOT equivalent to KF... | |
doc_9366 |
Returns the number of splitting iterations in the cross-validator Parameters
Xobject
Always ignored, exists for compatibility.
yobject
Always ignored, exists for compatibility.
groupsarray-like of shape (n_samples,)
Group labels for the samples used while splitting the dataset into train/test set. This ... | |
doc_9367 |
Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise. Calls str.islower element-wise. For 8-bit strings, this method is locale-dependent. Parameters
aarray_like of str or unicode
Returns
outndarray
Output array of bool... | |
doc_9368 | Makes a normal distribution instance with mu and sigma parameters estimated from the data using fmean() and stdev(). The data can be any iterable and should consist of values that can be converted to type float. If data does not contain at least two elements, raises StatisticsError because it takes at least one point t... | |
doc_9369 | Returns a set of permission strings that the user has directly. If obj is passed in, only returns the user permissions for this specific object. | |
doc_9370 | Specifies the server software version. You may want to override this. The format is multiple whitespace-separated strings, where each string is of the form name[/version]. For example, 'BaseHTTP/0.2'. | |
doc_9371 | See Migration guide for more details. tf.compat.v1.digamma, tf.compat.v1.math.digamma
tf.math.digamma(
x, name=None
)
Gamma(x)), element-wise.
Args
x A Tensor. Must be one of the following types: bfloat16, half, float32, float64.
name A name for the operation (optional).
Returns A Tensor... | |
doc_9372 | Represents the C signed char datatype, and interprets the value as small integer. The constructor accepts an optional integer initializer; no overflow checking is done. | |
doc_9373 |
Load and return the iris dataset (classification). The iris dataset is a classic and very easy multi-class classification dataset.
Classes 3
Samples per class 50
Samples total 150
Dimensionality 4
Features real, positive Read more in the User Guide. Parameters
return_X_ybool, default=False
If True, ... | |
doc_9374 | Blueprint local JSON decoder class to use. Set to None to use the app’s json_decoder. | |
doc_9375 | tf.experimental.numpy.ndarray.transpose
tf.experimental.numpy.transpose(
a, axes=None
)
See the NumPy documentation for numpy.transpose. | |
doc_9376 |
More flexible, faster check like is but that works through views. Note: this is not the same as Index.identical(), which checks that metadata is also the same. Parameters
other:object
Other object to compare against. Returns
bool
True if both have same underlying data, False otherwise. See also Inde... | |
doc_9377 | See Migration guide for more details. tf.compat.v1.image.non_max_suppression
tf.image.non_max_suppression(
boxes, scores, max_output_size, iou_threshold=0.5,
score_threshold=float('-inf'), name=None
)
Prunes away boxes that have high intersection-over-union (IOU) overlap with previously selected boxes. Bound... | |
doc_9378 | fade out the volume on all sounds before stopping fadeout(time) -> None This will fade out the volume on all active channels over the time argument in milliseconds. After the sound is muted the playback will stop. | |
doc_9379 | The Content-Encoding entity-header field is used as a modifier to the media-type. When present, its value indicates what additional content codings have been applied to the entity-body, and thus what decoding mechanisms must be applied in order to obtain the media-type referenced by the Content-Type header field. | |
doc_9380 | draw a trigon/triangle trigon(surface, x1, y1, x2, y2, x3, y3, color) -> None Draws an unfilled trigon (triangle) on the given surface. For a filled trigon use filled_trigon(). A trigon can also be drawn using polygon() e.g. polygon(surface, ((x1, y1), (x2, y2), (x3, y3)), color)
Parameters:
surface (Surface)... | |
doc_9381 | assertTupleEqual(first, second, msg=None)
Tests that two lists or tuples are equal. If not, an error message is constructed that shows only the differences between the two. An error is also raised if either of the parameters are of the wrong type. These methods are used by default when comparing lists or tuples with ... | |
doc_9382 |
Return the kernel k(X, Y) and optionally its gradient. Note that this compound kernel returns the results of all simple kernel stacked along an additional axis. Parameters
Xarray-like of shape (n_samples_X, n_features) or list of object, default=None
Left argument of the returned kernel k(X, Y)
Yarray-like of... | |
doc_9383 | Returns an empty set. | |
doc_9384 | See Migration guide for more details. tf.compat.v1.keras.preprocessing.image.NumpyArrayIterator
tf.keras.preprocessing.image.NumpyArrayIterator(
x, y, image_data_generator, batch_size=32, shuffle=False, sample_weight=None,
seed=None, data_format=None, save_to_dir=None, save_prefix='',
save_format='png', s... | |
doc_9385 |
Multi-layer Perceptron classifier. This model optimizes the log-loss function using LBFGS or stochastic gradient descent. New in version 0.18. Parameters
hidden_layer_sizestuple, length = n_layers - 2, default=(100,)
The ith element represents the number of neurons in the ith hidden layer.
activation{‘ident... | |
doc_9386 |
Get the locator of the major ticker.
Examples using matplotlib.axis.Axis.get_major_locator
Date tick labels
Inset Locator Demo2
Basic Usage | |
doc_9387 | Returns the name of the element at position x y, or the empty string if the point does not lie within any element. x and y are pixel coordinates relative to the widget. | |
doc_9388 | FileResponse is a subclass of StreamingHttpResponse optimized for binary files. It uses wsgi.file_wrapper if provided by the wsgi server, otherwise it streams the file out in small chunks. If as_attachment=True, the Content-Disposition header is set to attachment, which asks the browser to offer the file to the user as... | |
doc_9389 | '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_9390 |
A NumPy ndarray representing the values in this Series or Index. Parameters
dtype:str or numpy.dtype, optional
The dtype to pass to numpy.asarray().
copy:bool, default False
Whether to ensure that the returned value is not a view on another array. Note that copy=False does not ensure that to_numpy() is no-c... | |
doc_9391 |
Generate a random multilabel classification problem. For each sample, the generative process is:
pick the number of labels: n ~ Poisson(n_labels) n times, choose a class c: c ~ Multinomial(theta) pick the document length: k ~ Poisson(length) k times, choose a word: w ~ Multinomial(theta_c) In the above process,... | |
doc_9392 | skimage.viewer.CollectionViewer(image_collection) Viewer for displaying image collections.
skimage.viewer.ImageViewer(image[, useblit]) Viewer for displaying images.
skimage.viewer.canvastools
skimage.viewer.plugins
skimage.viewer.qt
skimage.viewer.utils
skimage.viewer.viewers
skimage.viewer.widgets ... | |
doc_9393 |
Return the width (thickness) of the annulus ring. | |
doc_9394 |
Ravel column or 1d numpy array, else raises an error. Parameters
yarray-like
warnbool, default=False
To control display of warnings. Returns
yndarray | |
doc_9395 |
Draw samples from an exponential distribution. Its probability density function is \[f(x; \frac{1}{\beta}) = \frac{1}{\beta} \exp(-\frac{x}{\beta}),\] for x > 0 and 0 elsewhere. \(\beta\) is the scale parameter, which is the inverse of the rate parameter \(\lambda = 1/\beta\). The rate parameter is an alternative, w... | |
doc_9396 | Exception raised on incomplete data. These are usually not programming errors, but may be handled by reading a little more data and trying again. | |
doc_9397 |
Initialize self. See help(type(self)) for accurate signature. | |
doc_9398 | >>> resp, count, first, last, name = s.group('gmane.comp.python.committers')
>>> print('Group', name, 'has', count, 'articles, range', first, 'to', last)
Group gmane.comp.python.committers has 1096 articles, range 1 to 1096
>>> resp, overviews = s.over((last - 9, last))
>>> for id, over in overviews:
... print(id, ... | |
doc_9399 | See Migration guide for more details. tf.compat.v1.raw_ops.ExperimentalUnbatchDataset
tf.raw_ops.ExperimentalUnbatchDataset(
input_dataset, output_types, output_shapes, name=None
)
Args
input_dataset A Tensor of type variant.
output_types A list of tf.DTypes that has length >= 1.
output_shapes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.