_id
stringlengths
5
9
text
stringlengths
5
385k
title
stringclasses
1 value
doc_21400
Return the values of the located ticks given vmin and vmax. Note To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance: >>> print(type(loc)) <type 'Locator'> >>> print(loc()) [1, 2, 3, 4]
doc_21401
Set the (group) id for the artist. Parameters gidstr
doc_21402
Contains all the Artists needed to make an x tick - the tick line, the label text and the grid line bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in points
doc_21403
Return the current state of the encoder which must be an integer. The implementation should make sure that 0 is the most common state. (States that are more complicated than integers can be converted into an integer by marshaling/pickling the state and encoding the bytes of the resulting string into an integer.)
doc_21404
Apply a function func with arguments to this GroupBy object and return the function’s result. Use .pipe when you want to improve readability by chaining together functions that expect Series, DataFrames, GroupBy or Resampler objects. Instead of writing >>> h(g(f(df.groupby('group')), arg1=a), arg2=b, arg3=c) You...
doc_21405
For a date d, str(d) is equivalent to d.isoformat().
doc_21406
Returns a clone (copy) of self, with any column aliases relabeled. Column aliases are renamed when subqueries are created. relabeled_clone() should also be called on any nested expressions and assigned to the clone. change_map is a dictionary mapping old aliases to new aliases. Example: def relabeled_clone(self, change...
doc_21407
class ast.SetComp(elt, generators) class ast.GeneratorExp(elt, generators) class ast.DictComp(key, value, generators) List and set comprehensions, generator expressions, and dictionary comprehensions. elt (or key and value) is a single node representing the part that will be evaluated for each item. generators is...
doc_21408
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_21409
If a class (ndarray subclass or not) having the __array__ method is used as the output object of an ufunc, results will not be written to the object returned by __array__. This practice will return TypeError.
doc_21410
See Migration guide for more details. tf.compat.v1.image.non_max_suppression_padded tf.image.non_max_suppression_padded( boxes, scores, max_output_size, iou_threshold=0.5, score_threshold=float('-inf'), pad_to_max_output_size=False, name=None, sorted_input=False, canonicalized_coordinates=False, tile_size...
doc_21411
Retrieve a finder for the given path_item. The returned finder is cached in sys.path_importer_cache if it was newly created by a path hook. The cache (or part of it) can be cleared manually if a rescan of sys.path_hooks is necessary. Changed in version 3.3: Updated to be based directly on importlib rather than relying...
doc_21412
from myapp.serializers import UserSerializer from rest_framework import generics from rest_framework.permissions import IsAdminUser class UserList(generics.ListCreateAPIView): queryset = User.objects.all() serializer_class = UserSerializer permission_classes = [IsAdminUser] For more complex cases you migh...
doc_21413
The error code.
doc_21414
Returns IMAP namespaces as defined in RFC 2342.
doc_21415
Destroys the database whose name is the value of NAME in DATABASES, and sets NAME to the value of old_database_name. The verbosity argument has the same behavior as for DiscoverRunner. If the keepdb argument is True, then the connection to the database will be closed, but the database will not be destroyed.
doc_21416
Return pow(self, value, mod).
doc_21417
Alias for set_linewidth.
doc_21418
'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_21419
Return a (tight) bounding box of the figure in inches. Note that FigureBase differs from all other artists, which return their Bbox in pixels. Artists that have artist.set_in_layout(False) are not included in the bbox. Parameters rendererRendererBase subclass renderer that will be used to draw the figures (i.e....
doc_21420
Return whether units are set on any axis.
doc_21421
The WSGI environment containing HTTP headers and information from the WSGI server.
doc_21422
Counts the number of valid days between begindates and enddates, not including the day of enddates. If enddates specifies a date value that is earlier than the corresponding begindates date value, the count will be negative. New in version 1.7.0. Parameters begindatesarray_like of datetime64[D] The array of t...
doc_21423
Place a legend on the figure. Call signatures: legend() legend(handles, labels) legend(handles=handles) legend(labels) The call signatures correspond to the following different ways to use this method: 1. Automatic detection of elements to be shown in the legend The elements to be added to the legend are automatical...
doc_21424
directory ... file ... Positional arguments are files to compile or directories that contain source files, traversed recursively. If no argument is given, behave as if the command line was -l <directories from sys.path>. -l Do not recurse into subdirectories, only compile source code files directly contained ...
doc_21425
Return the alpha value used for blending - not supported on all backends.
doc_21426
The number of output dimensions of this transform. Must be overridden (with integers) in the subclass.
doc_21427
Bases: matplotlib.widgets.Widget Provide a vertical (default) and/or horizontal line cursor shared between multiple axes. For the cursor to remain responsive you must keep a reference to it. Parameters canvasmatplotlib.backend_bases.FigureCanvasBase The FigureCanvas that contains all the axes. axeslist of mat...
doc_21428
Return the value of the attribute named by name as a string. If no such attribute exists, an empty string is returned, as if the attribute had no value.
doc_21429
See Migration guide for more details. tf.compat.v1.raw_ops.TensorListScatterV2 tf.raw_ops.TensorListScatterV2( tensor, indices, element_shape, num_elements, name=None ) Each member of the TensorList corresponds to one row of the input tensor, specified by the given index (see tf.gather). tensor: The input tensor...
doc_21430
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also set_picker, get_picker, pickable
doc_21431
Compute D^2, the percentage of deviance explained. D^2 is a generalization of the coefficient of determination R^2. R^2 uses squared error and D^2 deviance. Note that those two are equal for family='normal'. D^2 is defined as \(D^2 = 1-\frac{D(y_{true},y_{pred})}{D_{null}}\), \(D_{null}\) is the null deviance, i.e. t...
doc_21432
Applies element-wise, Tanhshrink(x)=x−Tanh(x)\text{Tanhshrink}(x) = x - \text{Tanh}(x) See Tanhshrink for more details.
doc_21433
Base class for warnings related to bytes and bytearray.
doc_21434
A thread pool object which controls a pool of worker threads to which jobs can be submitted. ThreadPool instances are fully interface compatible with Pool instances, and their resources must also be properly managed, either by using the pool as a context manager or by calling close() and terminate() manually. processes...
doc_21435
See Migration guide for more details. tf.compat.v1.keras.experimental.PeepholeLSTMCell tf.keras.experimental.PeepholeLSTMCell( units, activation='tanh', recurrent_activation='hard_sigmoid', use_bias=True, kernel_initializer='glorot_uniform', recurrent_initializer='orthogonal', bias_initializer='ze...
doc_21436
Send the list of file descriptors fds over an AF_UNIX socket sock. The fds parameter is a sequence of file descriptors. Consult sendmsg() for the documentation of these parameters. Availability: Unix supporting sendmsg() and SCM_RIGHTS mechanism. New in version 3.9.
doc_21437
tf.metrics.AUC Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.metrics.AUC tf.keras.metrics.AUC( num_thresholds=200, curve='ROC', summation_method='interpolation', name=None, dtype=None, thresholds=None, multi_label=False, label_weights=None ) This metric creates fou...
doc_21438
Very Deep Convolutional Networks for Large-Scale Image Recognition (ICLR 2015) Functions VGG16(...): Instantiates the VGG16 model. decode_predictions(...): Decodes the prediction of an ImageNet model. preprocess_input(...): Preprocesses a tensor or Numpy array encoding a batch of images.
doc_21439
All recipient addresses refused. The errors for each recipient are accessible through the attribute recipients, which is a dictionary of exactly the same sort as SMTP.sendmail() returns.
doc_21440
alias of matplotlib.backends.backend_pgf.FigureCanvasPgf
doc_21441
See Migration guide for more details. tf.compat.v1.raw_ops.ResourceGather tf.raw_ops.ResourceGather( resource, indices, dtype, batch_dims=0, validate_indices=True, name=None ) indices must be an integer tensor of any dimension (usually 0-D or 1-D). Produces an output tensor with shape indices.shape + params.shap...
doc_21442
Get statistics about quantities of loaded X.509 certificates, count of X.509 certificates flagged as CA certificates and certificate revocation lists as dictionary. Example for a context with one CA cert and one other cert: >>> context.cert_store_stats() {'crl': 0, 'x509_ca': 1, 'x509': 2} New in version 3.4.
doc_21443
Returns the user pointer for the panel. This might be any Python object.
doc_21444
Return a tuple containing names of locals in this function.
doc_21445
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 clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None f...
doc_21446
tf.losses.CosineSimilarity Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.losses.CosineSimilarity tf.keras.losses.CosineSimilarity( axis=-1, reduction=losses_utils.ReductionV2.AUTO, name='cosine_similarity' ) Note that it is a number between -1 and 1. When it is a negat...
doc_21447
Return new figure and axes. Parameters parentQtWidget Qt widget that displays the plot objects. If None, you must manually call canvas.setParent and pass the parent widget. subplot_kwdict Keyword arguments passed matplotlib.figure.Figure.add_subplot. fig_kwdict Keyword arguments passed matplotlib.figure...
doc_21448
This decorator compresses content if the browser allows gzip compression. It sets the Vary header accordingly, so that caches will base their storage on the Accept-Encoding header.
doc_21449
The base class of the other exceptions in this module. It is a subclass of Exception.
doc_21450
Receive up to nbytes from sock. Asynchronous version of socket.recv(). Return the received data as a bytes object. sock must be a non-blocking socket. Changed in version 3.7: Even though this method was always documented as a coroutine method, releases before Python 3.7 returned a Future. Since Python 3.7 this is an a...
doc_21451
The name of the DateField or DateTimeField in the QuerySet’s model that the date-based archive should use to determine the list of objects to display on the page. When time zone support is enabled and date_field is a DateTimeField, dates are assumed to be in the current time zone. Otherwise, the queryset could include ...
doc_21452
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_21453
ssl.ALERT_DESCRIPTION_INTERNAL_ERROR ALERT_DESCRIPTION_* Alert Descriptions from RFC 5246 and others. The IANA TLS Alert Registry contains this list and references to the RFCs where their meaning is defined. Used as the return value of the callback function in SSLContext.set_servername_callback(). New in version 3...
doc_21454
class sklearn.feature_selection.SelectFwe(score_func=<function f_classif>, *, alpha=0.05) [source] Filter: Select the p-values corresponding to Family-wise error rate Read more in the User Guide. Parameters score_funccallable, default=f_classif Function taking two arrays X and y, and returning a pair of arrays ...
doc_21455
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_21456
[Deprecated] Notes Deprecated since version 3.4:
doc_21457
A module or other object that has dumps and loads functions that match the API of the built-in json module.
doc_21458
Base protocol with methods that all protocols share.
doc_21459
True if this transform has a corresponding inverse transform.
doc_21460
Open the file pointed to by the path, like the built-in open() function does: >>> p = Path('setup.py') >>> with p.open() as f: ... f.readline() ... '#!/usr/bin/env python3\n'
doc_21461
bytearray.capitalize() Return a copy of the sequence with each byte interpreted as an ASCII character, and the first byte capitalized and the rest lowercased. Non-ASCII byte values are passed through unchanged. Note The bytearray version of this method does not operate in place - it always produces a new object, eve...
doc_21462
Same as ModelBackend except that it doesn’t reject inactive users because user_can_authenticate() always returns True. When using this backend, you’ll likely want to customize the AuthenticationForm used by the LoginView by overriding the confirm_login_allowed() method as it rejects inactive users.
doc_21463
sklearn.metrics.pairwise.euclidean_distances(X, Y=None, *, Y_norm_squared=None, squared=False, X_norm_squared=None) [source] Considering the rows of X (and Y=X) as vectors, compute the distance matrix between each pair of vectors. For efficiency reasons, the euclidean distance between a pair of row vector x and y is ...
doc_21464
Returns the distance between the closest points on this geometry and the given geom (another GEOSGeometry object). Note GEOS distance calculations are linear – in other words, GEOS does not perform a spherical calculation even if the SRID specifies a geographic coordinate system.
doc_21465
Exchanges the x and y axis. transpose() -> PixelArray This method returns a new view of the pixel array with the rows and columns swapped. So for a (w, h) sized array a (h, w) slice is returned. If an array is one dimensional, then a length 1 x dimension is added, resulting in a 2D pixel array. New in pygame 1.9.2.
doc_21466
Return the coefficient of determination \(R^2\) of the prediction. The coefficient \(R^2\) is defined as \((1 - \frac{u}{v})\), where \(u\) is the residual sum of squares ((y_true - y_pred) ** 2).sum() and \(v\) is the total sum of squares ((y_true - y_true.mean()) ** 2).sum(). The best possible score is 1.0 and it c...
doc_21467
See Migration guide for more details. tf.compat.v1.keras.utils.get_source_inputs tf.keras.utils.get_source_inputs( tensor, layer=None, node_index=None ) Output will always be a list of tensors (potentially with 1 element). Arguments tensor The tensor to start from. layer Origin layer of the tensor...
doc_21468
Create legend handles and labels for a PathCollection. Each legend handle is a Line2D representing the Path that was drawn, and each label is a string what each Path represents. This is useful for obtaining a legend for a scatter plot; e.g.: scatter = plt.scatter([1, 2, 3], [4, 5, 6], c=[7, 2, 3]) plt.legend(*scatt...
doc_21469
Return True if given object is scalar. Parameters val:object This includes: numpy array scalar (e.g. np.int64) Python builtin numerics Python builtin byte arrays and strings None datetime.datetime datetime.timedelta Period decimal.Decimal Interval DateOffset Fraction Number. Returns bool Return True if ...
doc_21470
Set the doctest reporting flags to use. Argument flags takes the bitwise OR of option flags. See section Option Flags. Only “reporting flags” can be used. This is a module-global setting, and affects all future doctests run by module unittest: the runTest() method of DocTestCase looks at the option flags specified for ...
doc_21471
Decodes data from the stream and returns the resulting object. The chars argument indicates the number of decoded code points or bytes to return. The read() method will never return more data than requested, but it might return less, if there is not enough available. The size argument indicates the approximate maximum ...
doc_21472
Returns a copy of the calling offset object with n=1 and all other attributes equal.
doc_21473
Try to get version string of a package. Return a version string of the current package or None if the version information could not be detected. Notes This method scans files named __version__.py, <packagename>_version.py, version.py, and __svn_version__.py for string variables version, __version__, and <packagename>...
doc_21474
See Migration guide for more details. tf.compat.v1.raw_ops.Roll tf.raw_ops.Roll( input, shift, axis, name=None ) The elements are shifted positively (towards larger indices) by the offset of shift along the dimension of axis. Negative shift values will shift elements in the opposite direction. Elements that roll...
doc_21475
Path to a custom template, used by delete_view() for displaying a confirmation page when deleting one or more objects.
doc_21476
Get the face color of the Figure rectangle.
doc_21477
Works like a regular MultiDict but preserves the order of the fields. To convert the ordered multi dict into a list you can use the items() method and pass it multi=True. In general an OrderedMultiDict is an order of magnitude slower than a MultiDict. note Due to a limitation in Python you cannot convert an ordered mu...
doc_21478
Set the clip rectangle to a Bbox or None.
doc_21479
Stop the subprocess. On POSIX systems, this method sends SIGTERM to the subprocess. On Windows, the Windows API function TerminateProcess() is called to stop the subprocess. See also subprocess.Popen.terminate().
doc_21480
Compare the values of two Decimal instances. compare() returns a Decimal instance, and if either operand is a NaN then the result is a NaN: a or b is a NaN ==> Decimal('NaN') a < b ==> Decimal('-1') a == b ==> Decimal('0') a > b ==> Decimal('1')
doc_21481
An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be con...
doc_21482
Connect event with string s to func. Parameters sstr The name of the event. The following events are recognized: 'tool_message_event' 'tool_removed_event' 'tool_added_event' For every tool added a new event is created 'tool_trigger_TOOLNAME', where TOOLNAME is the id of the tool. funccallable Callback f...
doc_21483
tf.cond( pred, true_fn=None, false_fn=None, name=None ) true_fn and false_fn both return lists of output tensors. true_fn and false_fn must have the same non-zero number and type of outputs. Warning: Any Tensors or Operations created outside of true_fn and false_fn will be executed regardless of which branch is se...
doc_21484
Set the lower and upper numerical bounds of the x-axis. This method will honor axis inversion regardless of parameter order. It will not change the autoscaling setting (get_autoscalex_on()). Parameters lower, upperfloat or None The lower and upper bounds. If None, the respective axis bound is not modified. ...
doc_21485
Register a function to run after each request to this object. The function is called with the response object, and must return a response object. This allows the functions to modify or replace the response before it is sent. If a function raises an exception, any remaining after_request functions will not be called. Th...
doc_21486
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_21487
Return a task factory or None if the default one is in use.
doc_21488
Return the values (min, max) that are mapped to the colormap limits.
doc_21489
sklearn.datasets.make_moons(n_samples=100, *, shuffle=True, noise=None, random_state=None) [source] Make two interleaving half circles. A simple toy dataset to visualize clustering and classification algorithms. Read more in the User Guide. Parameters n_samplesint or tuple of shape (2,), dtype=int, default=100 ...
doc_21490
See Migration guide for more details. tf.compat.v1.raw_ops.UnicodeDecode tf.raw_ops.UnicodeDecode( input, input_encoding, errors='replace', replacement_char=65533, replace_control_characters=False, Tsplits=tf.dtypes.int64, name=None ) The character codepoints for all strings are returned using a single vecto...
doc_21491
tf.optimizers.schedules.deserialize Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.optimizers.schedules.deserialize tf.keras.optimizers.schedules.deserialize( config, custom_objects=None )
doc_21492
Set to sys.getfilesystemencoding().
doc_21493
Return value%self.
doc_21494
sklearn.base.is_regressor(estimator) [source] Return True if the given estimator is (probably) a regressor. Parameters estimatorestimator instance Estimator object to test. Returns outbool True if estimator is a regressor and False otherwise.
doc_21495
Alias for set_linestyle.
doc_21496
Logs a message with level ERROR on this logger. The arguments are interpreted as for debug(). Exception info is added to the logging message. This method should only be called from an exception handler.
doc_21497
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_21498
Filter traces of memory blocks by their address space (domain). New in version 3.6. inclusive If inclusive is True (include), match memory blocks allocated in the address space domain. If inclusive is False (exclude), match memory blocks not allocated in the address space domain. domain Address space of a m...
doc_21499
Get an option value for the named section. If vars is provided, it must be a dictionary. The option is looked up in vars (if provided), section, and in DEFAULTSECT in that order. If the key is not found and fallback is provided, it is used as a fallback value. None can be provided as a fallback value. All the '%' inter...