Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Module « numpy »

Fonction get_printoptions - module numpy

Signature de la fonction get_printoptions

def get_printoptions() 

Description

help(numpy.get_printoptions)

Return the current print options.

Returns
-------
print_opts : dict
    Dictionary of current print options with keys

    - precision : int
    - threshold : int
    - edgeitems : int
    - linewidth : int
    - suppress : bool
    - nanstr : str
    - infstr : str
    - sign : str
    - formatter : dict of callables
    - floatmode : str
    - legacy : str or False

    For a full description of these options, see `set_printoptions`.

See Also
--------
set_printoptions, printoptions

Examples
--------
>>> import numpy as np

>>> np.get_printoptions()
{'edgeitems': 3, 'threshold': 1000, ..., 'override_repr': None}

>>> np.get_printoptions()['linewidth']
75
>>> np.set_printoptions(linewidth=100)
>>> np.get_printoptions()['linewidth']
100



Vous êtes un professionnel et vous avez besoin d'une formation ? Calcul scientifique
avec Python
Voir le programme détaillé