RETprojects / SWENG480-Team21

This repository contains the code for our capstone project, the Design Pattern Recommendation System.
3 stars 0 forks source link

Calculating average f-score and silhouette score with error #112

Closed RETprojects closed 1 year ago

RETprojects commented 1 year ago

I copied code from a commented-out cell in Akash's notebook into the most recently created cell. This code is intended to determine the average f-score and silhouette score for three clustering algorithms (k-means, fuzzy c-means, and hierarchy) for a group of design problems. I am getting an error linked to using the f1_score() function, whose y_true and y_pred parameters need to be of the same length. The exact error reads: "ValueError: Found input variables with inconsistent numbers of samples: [24, 22]".

RETprojects commented 1 year ago

I commented out the adapter design problem that was associated with a KeyError in its behavioral cluster (from the getFScore function), and the average f-score and silhouette score for the three algorithms were displayed.