_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_18400
Returns the log-transformed bounds on the theta. Returns boundsndarray of shape (n_dims, 2) The log-transformed bounds on the kernel’s hyperparameters theta
doc_18401
The color interpretation for the band, as an integer between 0and 16. If as_string is True, the data type is returned as a string with the following possible values: GCI_Undefined, GCI_GrayIndex, GCI_PaletteIndex, GCI_RedBand, GCI_GreenBand, GCI_BlueBand, GCI_AlphaBand, GCI_HueBand, GCI_SaturationBand, GCI_LightnessBan...
doc_18402
See Migration guide for more details. tf.compat.v1.raw_ops.AccumulatorTakeGradient tf.raw_ops.AccumulatorTakeGradient( handle, num_required, dtype, name=None ) The op blocks until sufficient (i.e., more than num_required) gradients have been accumulated. If the accumulator has already aggregated more than num_re...
doc_18403
DateOffset for the Easter holiday using logic defined in dateutil. Right now uses the revised method which is valid in years 1583-4099. Attributes base Returns a copy of the calling offset object with n=1 and all other attributes equal. freqstr kwds n name nanos normalize rule_code ...
doc_18404
Represents an Authorization header sent by the client. This is returned by parse_authorization_header(). It can be useful to create the object manually to pass to the test Client. Changelog Changed in version 0.5: This object became immutable. property cnonce If the server sent a qop-header in the WWW-Authenticat...
doc_18405
Return False if cookies should not be returned, given cookie path. See the documentation for domain_return_ok().
doc_18406
Is this Tensor with its dimensions reversed. If n is the number of dimensions in x, x.T is equivalent to x.permute(n-1, n-2, ..., 0).
doc_18407
Returns a new instance of the WatchedFileHandler class. The specified file is opened and used as the stream for logging. If mode is not specified, 'a' is used. If encoding is not None, it is used to open the file with that encoding. If delay is true, then file opening is deferred until the first call to emit(). By defa...
doc_18408
Limits valid inputs to the specified protocol. Accepted values are 'both' (default), 'IPv4' or 'IPv6'. Matching is case insensitive.
doc_18409
class sklearn.exceptions.DataDimensionalityWarning [source] Custom warning to notify potential issues with data dimensionality. For example, in random projection, this warning is raised when the number of components, which quantifies the dimensionality of the target projection space, is higher than the number of feat...
doc_18410
See torch.squeeze()
doc_18411
Return x, y values at equally spaced points in domain. Returns the x, y values at n linearly spaced points across the domain. Here y is the value of the polynomial at the points x. By default the domain is the same as that of the series instance. This method is intended mostly as a plotting aid. New in version 1.5.0...
doc_18412
Run score function on (X, y) and get the appropriate features. Parameters Xarray-like of shape (n_samples, n_features) The training input samples. yarray-like of shape (n_samples,) The target values (class labels in classification, real numbers in regression). Returns selfobject
doc_18413
Returns True if the file path points to a package’s __init__ module based on EXTENSION_SUFFIXES.
doc_18414
An ExtensionDtype for timezone-aware datetime data. This is not an actual numpy dtype, but a duck type. Parameters unit:str, default “ns” The precision of the datetime data. Currently limited to "ns". tz:str, int, or datetime.tzinfo The timezone. Raises pytz.UnknownTimeZoneError When the requested tim...
doc_18415
Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
doc_18416
Set the facecolor of the Axes. Parameters colorcolor Examples using matplotlib.axes.Axes.set_facecolor Color Demo
doc_18417
A binary operation (like addition or division). op is the operator, and left and right are any expression nodes. >>> print(ast.dump(ast.parse('x + y', mode='eval'), indent=4)) Expression( body=BinOp( left=Name(id='x', ctx=Load()), op=Add(), right=Name(id='y', ctx=Load())))
doc_18418
A base view for creating a new object instance. It is not intended to be used directly, but rather as a parent class of the django.views.generic.edit.CreateView. Ancestors (MRO) This view inherits methods and attributes from the following views: django.views.generic.edit.ModelFormMixin django.views.generic.edit.Proces...
doc_18419
Lookup a ContentType by ID. Since this method uses the same shared cache as get_for_model(), it’s preferred to use this method over the usual ContentType.objects.get(pk=id)
doc_18420
Return True if the running Python interpreter was built from source and is being run from its built location, and not from a location resulting from e.g. running make install or installing via a binary installer.
doc_18421
See Migration guide for more details. tf.compat.v1.keras.applications.inception_resnet_v2.decode_predictions tf.keras.applications.inception_resnet_v2.decode_predictions( preds, top=5 ) Arguments preds Numpy array encoding a batch of predictions. top Integer, how many top-guesses to return. Defaul...
doc_18422
Modifies the message and/or keyword arguments passed to a logging call in order to insert contextual information. This implementation takes the object passed as extra to the constructor and adds it to kwargs using key ‘extra’. The return value is a (msg, kwargs) tuple which has the (possibly modified) versions of the a...
doc_18423
A list of formats used to attempt to convert a string to a valid datetime.date object.
doc_18424
Set the “inheritable” flag of the specified file descriptor.
doc_18425
Set the offsets for the collection. Parameters offsets(N, 2) or (2,) array-like
doc_18426
tf.estimator.experimental.RNNEstimator( head, sequence_feature_columns, context_feature_columns=None, units=None, cell_type=USE_DEFAULT, rnn_cell_fn=None, return_sequences=False, model_dir=None, optimizer='Adagrad', config=None ) Example: token_sequence = sequence_categorical_column_with_hash_bucket(...) t...
doc_18427
Binary indicators for missing values. Note that this component typically should not be used in a vanilla Pipeline consisting of transformers and a classifier, but rather could be added using a FeatureUnion or ColumnTransformer. Read more in the User Guide. New in version 0.20. Parameters missing_valuesint, floa...
doc_18428
Moves and/or casts the parameters and buffers. This can be called as to(device=None, dtype=None, non_blocking=False) to(dtype, non_blocking=False) to(tensor, non_blocking=False) to(memory_format=torch.channels_last) Its signature is similar to torch.Tensor.to(), but only accepts floating point or comple...
doc_18429
Return the mapped value for code according to tableB.2 (Mapping for case-folding used with NFKC).
doc_18430
The filter() routine, if used, must be called before initscr() is called. The effect is that, during those calls, LINES is set to 1; the capabilities clear, cup, cud, cud1, cuu1, cuu, vpa are disabled; and the home string is set to the value of cr. The effect is that the cursor is confined to the current line, and so a...
doc_18431
Bases: matplotlib.axis.XTick A theta-axis tick. This subclass of XTick provides angular ticks with some small modification to their re-positioning such that ticks are rotated based on tick location. This results in ticks that are correctly perpendicular to the arc spine. When 'auto' rotation is enabled, labels are al...
doc_18432
Base object if memory is from some other object. Examples The base of an array that owns its memory is None: >>> x = np.array([1,2,3,4]) >>> x.base is None True Slicing creates a view, whose memory is shared with x: >>> y = x[2:] >>> y.base is x True
doc_18433
Return self/value.
doc_18434
Integrate a polynomial. Returns the polynomial coefficients c integrated m times from lbnd along axis. At each iteration the resulting series is multiplied by scl and an integration constant, k, is added. The scaling factor is for use in a linear change of variable. (“Buyer beware”: note that, depending on what one i...
doc_18435
Arguments that are read from a file (see the fromfile_prefix_chars keyword argument to the ArgumentParser constructor) are read one argument per line. convert_arg_line_to_args() can be overridden for fancier reading. This method takes a single argument arg_line which is a string read from the argument file. It returns ...
doc_18436
sklearn.covariance.shrunk_covariance(emp_cov, shrinkage=0.1) [source] Calculates a covariance matrix shrunk on the diagonal Read more in the User Guide. Parameters emp_covarray-like of shape (n_features, n_features) Covariance matrix to be shrunk shrinkagefloat, default=0.1 Coefficient in the convex combina...
doc_18437
Compute indexer and mask for new index given the current index. The indexer should be then used as an input to ndarray.take to align the current data to the new index. Parameters target:Index method:{None, ‘pad’/’ffill’, ‘backfill’/’bfill’, ‘nearest’}, optional default: exact matches only. pad / ffill: find ...
doc_18438
The .pyc file includes the timestamp and size of the source file, which Python will compare against the metadata of the source file at runtime to determine if the .pyc file needs to be regenerated.
doc_18439
Create a new Affine2D instance from the given values: a c e b d f 0 0 1 .
doc_18440
'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', ] } You can also set the authentication scheme on a per-view or per-viewset basis, using the APIView class-based views. from rest_framework.authenticat...
doc_18441
add(child, **kw) Adds a new tab to the notebook. If window is currently managed by the notebook but hidden, it is restored to its previous position. See Tab Options for the list of available options. forget(tab_id) Removes the tab specified by tab_id, unmaps and unmanages the associated window. hide(tab_i...
doc_18442
@tf_contextlib.contextmanager tf.compat.v1.variable_op_scope( values, name_or_scope, default_name=None, initializer=None, regularizer=None, caching_device=None, partitioner=None, custom_getter=None, reuse=None, dtype=None, use_resource=None, constraint=None )
doc_18443
Draw samples from a logarithmic series distribution. Samples are drawn from a log series distribution with specified shape parameter, 0 < p < 1. Parameters pfloat or array_like of floats Shape parameter for the distribution. Must be in the range (0, 1). sizeint or tuple of ints, optional Output shape. If th...
doc_18444
See torch.hypot()
doc_18445
This method is called to process decimal and hexadecimal numeric character references of the form &#NNN; and &#xNNN;. For example, the decimal equivalent for &gt; is &#62;, whereas the hexadecimal is &#x3E;; in this case the method will receive '62' or 'x3E'. This method is never called if convert_charrefs is True.
doc_18446
sklearn.svm.l1_min_c(X, y, *, loss='squared_hinge', fit_intercept=True, intercept_scaling=1.0) [source] Return the lowest bound for C such that for C in (l1_min_C, infinity) the model is guaranteed not to be empty. This applies to l1 penalized classifiers, such as LinearSVC with penalty=’l1’ and linear_model.Logistic...
doc_18447
Return the name of the file currently being read. Before the first line has been read, returns None.
doc_18448
calculates the angle to a given vector in degrees. angle_to(Vector3) -> float Returns the angle between self and the given vector.
doc_18449
See Migration guide for more details. tf.compat.v1.data.experimental.assert_cardinality tf.data.experimental.assert_cardinality( expected_cardinality ) Note: The following assumes that "examples.tfrecord" contains 42 records. dataset = tf.data.TFRecordDataset("examples.tfrecord") cardinality = tf.data.experim...
doc_18450
Uses the system check framework to inspect the entire Django project for potential problems. Serious problems are raised as a CommandError; warnings are output to stderr; minor notifications are output to stdout. If app_configs and tags are both None, all system checks are performed. tags can be a list of check tags, l...
doc_18451
calculates the dot- or scalar-product with the other vector dot(Vector3) -> float
doc_18452
resolved arg value (if known), otherwise same as arg
doc_18453
See Migration guide for more details. tf.compat.v1.raw_ops.StatelessRandomBinomial tf.raw_ops.StatelessRandomBinomial( shape, seed, counts, probs, dtype=tf.dtypes.int64, name=None ) Outputs random values from a binomial distribution. The outputs are a deterministic function of shape, seed, counts, and probs. ...
doc_18454
Fit the estimator. Parameters Xarray-like of shape (n_samples, n_features) Data to be discretized. yNone Ignored. This parameter exists only for compatibility with Pipeline. Returns self
doc_18455
Decompresses the bytes in data, returning a bytes object containing the uncompressed data. The wbits parameter depends on the format of data, and is discussed further below. If bufsize is given, it is used as the initial size of the output buffer. Raises the error exception if any error occurs. The wbits parameter cont...
doc_18456
A variant of the apply() method which returns a AsyncResult object. If callback is specified then it should be a callable which accepts a single argument. When the result becomes ready callback is applied to it, that is unless the call failed, in which case the error_callback is applied instead. If error_callback is sp...
doc_18457
Redraw the current figure. This is used to update a figure that has been altered, but not automatically re-drawn. If interactive mode is on (via ion()), this should be only rarely needed, but there may be ways to modify the state of a figure without marking it as "stale". Please report these cases as bugs. This is eq...
doc_18458
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_18459
Plot a horizontal sequence of rectangles. A rectangle is drawn for each element of xranges. All rectangles have the same vertical position and size defined by yrange. This is a convenience function for instantiating a BrokenBarHCollection, adding it to the Axes and autoscaling the view. Parameters xrangessequence...
doc_18460
Pipeline of transforms with a final estimator. Sequentially apply a list of transforms and a final estimator. Intermediate steps of the pipeline must be ‘transforms’, that is, they must implement fit and transform methods. The final estimator only needs to implement fit. The transformers in the pipeline can be cached...
doc_18461
Predict logarithm of probability estimates. The returned estimates for all classes are ordered by the label of classes. Parameters Xarray-like of shape (n_samples, n_features) Vector to be scored, where n_samples is the number of samples and n_features is the number of features. Returns Tarray-like of sha...
doc_18462
The InputOnly widgets are to accept inputs from the user, which can be done with the bind command (Unix only).
doc_18463
See Migration guide for more details. tf.compat.v1.keras.applications.resnet_v2.preprocess_input tf.keras.applications.resnet_v2.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....
doc_18464
Create a new request handler instance. This request handler supports POST requests and modifies logging so that the logRequests parameter to the SimpleXMLRPCServer constructor parameter is honored.
doc_18465
Convert categorical variable into dummy/indicator variables. Parameters data:array-like, Series, or DataFrame Data of which to get dummy indicators. prefix:str, list of str, or dict of str, default None String to append DataFrame column names. Pass a list with length equal to the number of columns when call...
doc_18466
See Migration guide for more details. tf.compat.v1.searchsorted tf.searchsorted( sorted_sequence, values, side='left', out_type=tf.dtypes.int32, name=None ) A 2-D example: sorted_sequence = [[0, 3, 9, 9, 10], [1, 2, 3, 4, 5]] values = [[2, 4, 9], [0, 2, 6]] result = searchsorted...
doc_18467
Construct an array by executing a function over each coordinate. The resulting array therefore has a value fn(x, y, z) at coordinate (x, y, z). Parameters functioncallable The function is called with N parameters, where N is the rank of shape. Each parameter represents the coordinates of the array varying along...
doc_18468
Return the label used for this artist in the legend.
doc_18469
Returns a byte tensor of sample_shape + batch_shape indicating whether each event in value satisfies this constraint.
doc_18470
Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
doc_18471
Transform a set of angles anchored at specific locations. Parameters angles(N,) array-like The angles to transform. pts(N, 2) array-like The points where the angles are anchored. radiansbool, default: False Whether angles are radians or degrees. pushofffloat For each point in pts and angle in angles...
doc_18472
Path to a custom template, used by add_view().
doc_18473
Return whether this Axis is oriented in the "inverse" direction. The "normal" direction is increasing to the right for the x-axis and to the top for the y-axis; the "inverse" direction is increasing to the left for the x-axis and to the bottom for the y-axis.
doc_18474
Return the offsets for the collection.
doc_18475
Superclass of URL and BytesURL. Create new instance of _URLTuple(scheme, netloc, path, query, fragment) Parameters scheme (str) – netloc (str) – path (str) – query (str) – fragment (str) – property ascii_host: Optional[str] Works exactly like host but will return a result that is restricted to ASCII...
doc_18476
Copy an element of an array to a standard Python scalar and return it. Parameters *argsArguments (variable number and type) none: in this case, the method only works for arrays with one element (a.size == 1), which element is copied into a standard Python scalar object and returned. int_type: this argument is ...
doc_18477
Return element-wise string concatenation for two arrays of str or unicode. Arrays x1 and x2 must have the same shape. Parameters x1array_like of str or unicode Input array. x2array_like of str or unicode Input array. Returns addndarray Output array of string_ or unicode_, depending on input types of...
doc_18478
See Migration guide for more details. tf.compat.v1.image.extract_patches tf.image.extract_patches( images, sizes, strides, rates, padding, name=None ) This op collects patches from the input image, as if applying a convolution. All extracted patches are stacked in the depth (last) dimension of the output. Specif...
doc_18479
This function operates exactly as TemporaryFile() does, except that the file is guaranteed to have a visible name in the file system (on Unix, the directory entry is not unlinked). That name can be retrieved from the name attribute of the returned file-like object. Whether the name can be used to open the file a second...
doc_18480
Convert the animation to an HTML5 <video> tag. This saves the animation as an h264 video, encoded in base64 directly into the HTML5 video tag. This respects rcParams["animation.writer"] (default: 'ffmpeg') and rcParams["animation.bitrate"] (default: -1). This also makes use of the interval to control the speed, and u...
doc_18481
Copy pixel alphas into a 2d array array_alpha(Surface) -> array Copy the pixel alpha values (degree of transparency) from a Surface into a 2D array. This will work for any type of Surface format. Surfaces without a pixel alpha will return an array with all opaque values. This function will temporarily lock the Surfac...
doc_18482
This is called when the stream tries to read past the limit. The return value of this function is returned from the reading function. Return type bytes
doc_18483
Predict values for X. Parameters Xarray-like, shape (n_samples, n_features) The input samples. Returns yndarray, shape (n_samples,) The predicted values.
doc_18484
Stack arrays in sequence depth wise (along third axis). This is equivalent to concatenation along the third axis after 2-D arrays of shape (M,N) have been reshaped to (M,N,1) and 1-D arrays of shape (N,) have been reshaped to (1,N,1). Rebuilds arrays divided by dsplit. This function makes most sense for arrays with u...
doc_18485
Registers an unpack format. name is the name of the format and extensions is a list of extensions corresponding to the format, like .zip for Zip files. function is the callable that will be used to unpack archives. The callable will receive the path of the archive, followed by the directory the archive must be extracte...
doc_18486
get the event a channel sends when playback stops get_endevent() -> type Returns the event type to be sent every time the music finishes playback. If there is no endevent the function returns pygame.NOEVENT.
doc_18487
Set time zone info.
doc_18488
Returns a string specifying the bundled version of pip that will be installed when bootstrapping an environment.
doc_18489
Represents the C char * datatype when it points to a zero-terminated string. For a general character pointer that may also point to binary data, POINTER(c_char) must be used. The constructor accepts an integer address, or a bytes object.
doc_18490
Return whether the area enclosed by the path contains the given points. The path is always treated as closed; i.e. if the last code is not CLOSEPOLY an implicit segment connecting the last vertex to the first vertex is assumed. Parameters points(N, 2) array The points to check. Columns contain x and y values. ...
doc_18491
os.MFD_ALLOW_SEALING os.MFD_HUGETLB os.MFD_HUGE_SHIFT os.MFD_HUGE_MASK os.MFD_HUGE_64KB os.MFD_HUGE_512KB os.MFD_HUGE_1MB os.MFD_HUGE_2MB os.MFD_HUGE_8MB os.MFD_HUGE_16MB os.MFD_HUGE_32MB os.MFD_HUGE_256MB os.MFD_HUGE_512MB os.MFD_HUGE_1GB os.MFD_HUGE_2GB os.MFD_HUGE_16GB These flags can...
doc_18492
For a datetime instance d, str(d) is equivalent to d.isoformat(' ').
doc_18493
Return the Transform instance used by this artist.
doc_18494
Add multiple tools to a ToolManager. Parameters toolmanagerbackend_managers.ToolManager Manager to which the tools are added. tools{str: class_like}, optional The tools to add in a {name: tool} dict, see add_tool for more info.
doc_18495
Return True if all values in the group are truthful, else False. Parameters skipna:bool, default True Flag to ignore nan values during truth testing. Returns Series or DataFrame DataFrame or Series of boolean values, where a value is True if all elements are True within its respective group, False otherwi...
doc_18496
Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
doc_18497
Order angles to reduce the amount of correlated information in subsequent projections. Parameters theta1D array of floats Projection angles in degrees. Duplicate angles are not allowed. Returns indices_generatorgenerator yielding unsigned integers The returned generator yields indices into theta such th...
doc_18498
See Migration guide for more details. tf.compat.v1.raw_ops.MutableHashTableOfTensors tf.raw_ops.MutableHashTableOfTensors( key_dtype, value_dtype, container='', shared_name='', use_node_name_sharing=False, value_shape=[], name=None ) This op creates a mutable hash table, specifying the type of its keys and v...
doc_18499
A NodeVisitor subclass that walks the abstract syntax tree and allows modification of nodes. The NodeTransformer will walk the AST and use the return value of the visitor methods to replace or remove the old node. If the return value of the visitor method is None, the node will be removed from its location, otherwise i...