Skip to content

Conversation

faqeerurrehmanIntel
Copy link
Contributor

Fixed the limitation when "no of workloads" become greater than "no of performance matrics / no of features". Now, It will work for similarity analysis of any "no of workloads".

…f performance matrics/no of features". It will now work for any number of workloads
@@ -136,7 +136,11 @@ def dopca(dataset, colnames, n_components, cols):
num_val = StandardScaler().fit_transform(num_val)
logger.debug(f"Post normalizing metrics, num_val: {num_val}")
# PCA analysis, Create PCA model
#pca = PCA(n_components=n_components) #Commented by Faqeer ur Rehman: 11 Aug 2022. Limitation: If the n_components(no of workloads) are greater than num_val(the number of features), it will throw error.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@faqeerurrehmanIntel - could you please keep comments to bare minimum information. "Commented by" and date is already recorded by git, can be removed.

@@ -136,7 +136,11 @@ def dopca(dataset, colnames, n_components, cols):
num_val = StandardScaler().fit_transform(num_val)
logger.debug(f"Post normalizing metrics, num_val: {num_val}")
# PCA analysis, Create PCA model
#pca = PCA(n_components=n_components) #Commented by Faqeer ur Rehman: 11 Aug 2022. Limitation: If the n_components(no of workloads) are greater than num_val(the number of features), it will throw error.

n_components = len(num_val[0]) # Added by Faqeer ur Rehman: 11 Aug 2022. Solution: To scale it for any number of workloads, generate PCAs equivalent to number of features/performance matrics (instead of number of workloads) we have for each workload.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please get rid of "Added by" and date.

@faqeerurrehmanIntel
Copy link
Contributor Author

Removed the extra comments.

@karanrk karanrk merged commit 3093772 into intel:master Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants