File size: 1,109 Bytes
ab792dc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#!/usr/bin/env python3
"""
Script simple pour vérifier que le déploiement HF fonctionne
"""
import os
from bayesian_network_interface import AutonomyBayesianNetwork
def check_files():
print("🔍 Vérification des fichiers:")
print(f" - Répertoire courant: {os.getcwd()}")
print(f" - Fichiers présents:")
for file in sorted(os.listdir(".")):
if not file.startswith('.') and not file.startswith('__'):
size = os.path.getsize(file) if os.path.isfile(file) else 0
print(f" • {file} ({size} bytes)")
def check_network():
print("\n🧠 Test réseau:")
bn = AutonomyBayesianNetwork()
print(f" - pgmpy_model chargé: {bn.pgmpy_model is not None}")
if bn.pgmpy_model:
print(f" - Nœuds: {len(list(bn.pgmpy_model.nodes()))}")
print(f" - Arcs: {len(list(bn.pgmpy_model.edges()))}")
structure = bn.get_network_structure()
print(f" - Structure nœuds: {len(structure['nodes'])}")
print(f" - Structure arcs: {len(structure['edges'])}")
if __name__ == "__main__":
check_files()
check_network() |