Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed Dec 17, 2024
1 parent 21f511f commit 9fad3d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/genetic/grade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@ export async function runSimulationForClustersGrade(
weights.minCompoundSize,
);
const clustersMetrics = calcMetricsForCompoundClustersSummary(clustersSummary, weights);
const clustersScore = weighCompoundClustersSummaryMetrics(clustersMetrics, weights);
const [clustersScore, clusterSize, clustersCount, relativeClustered, relativeFiltered] = clustersMetrics;
const rawMatrix = [
clustersScore,
clusterSize ** weights.clusterSizeWeight,
clustersCount ** weights.clustersCountWeight,
relativeClustered ** weights.relativeClusteredCountWeight,
relativeFiltered ** weights.relativeFilteredCountWeight,
relativeCompoundedAtomsCount ** weights.relativeCompoundedAtomsCountWeight,
relativeLinksCount ** weights.relativeLinksCountWeight,
];
Expand Down

0 comments on commit 9fad3d2

Please sign in to comment.