File size: 646 Bytes
4b3a33f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import sys
import os

# Add backend/src to path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')))

from src.services.clustering_service import ClusteringService

def test_clustering_pipeline():
    print("๐Ÿš€ Starting Clustering Pipeline Test...")
    service = ClusteringService()
    
    try:
        # Run clustering with 5 clusters for more granular grouping
        service.run_clustering_pipeline(n_clusters=5)
        print("โœ… Pipeline test completed successfully.")
    except Exception as e:
        print(f"โŒ Pipeline test failed: {e}")

if __name__ == "__main__":
    test_clustering_pipeline()