Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the infra recommendation algorithm for VM OS image #101

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

yunkon-kim
Copy link
Member

  • Modularize text similarity features into strcomp pkg
  • Predefine the known architecture information as a map because text similarity comparison is not possible.
  • Improve the recommendation accuracy/performance through the combined use of map search and SequenceMatcher

I'd like to show the 2 example cases by following logs.

Case 1

  • Similarity Score: 0.69
  • Items found to be similar: 5 items
Comparing keywords with VM Image:
Keywords: 'Ubuntu 22.04.4 LTS (Jammy Jellyfish) x86_64 SSD'
VM Image: 'ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20220609'
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"From text 1: Ubuntu 22.04.4 LTS (Jammy Jellyfish) x86_64 SSD"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"To word array 1: [ubuntu 22.04.4 lts jammy jellyfish x86_64 ssd]"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"From text 2: ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20220609"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"To word array 2: [ubuntu images hvm ssd ubuntu jammy 22.04 amd64 server 20220609]"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"Best match for 'ubuntu': 'ubuntu' (similarity: 1.00)"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"Best match for '22.04.4': '22.04' (similarity: 0.83)"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"Best match for 'jammy': 'jammy' (similarity: 1.00)"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"Best match for 'x86_64': 'amd64' (similarity: 1.00)"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"Best match for 'ssd': 'ssd' (similarity: 1.00)"}
 - Similarity Score: 0.69

Case 2

  • Similarity Score: 0.43
  • Items found to be similar: 3 items
Comparing keywords with VM Image:
Keywords: 'Ubuntu 22.04.4 LTS (Jammy Jellyfish) x86_64 SSD'
VM Image: 'ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20191002'
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"From text 1: Ubuntu 22.04.4 LTS (Jammy Jellyfish) x86_64 SSD"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"To word array 1: [ubuntu 22.04.4 lts jammy jellyfish x86_64 ssd]"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"From text 2: ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20191002"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"To word array 2: [ubuntu images hvm ssd ubuntu bionic 18.04 amd64 server 20191002]"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"Best match for 'ubuntu': 'ubuntu' (similarity: 1.00)"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"Best match for 'x86_64': 'amd64' (similarity: 1.00)"}
{"level":"trace","time":"2024-07-16T15:22:54+09:00","message":"Best match for 'ssd': 'ssd' (similarity: 1.00)"}
 - Similarity Score: 0.43

* Modularize text similarity features into `strcomp` pkg
* Predefine the known architecture information as a map because text similarity comparison is not possible.
* Improve the recommendation accuracy/performance through combined use of map search and SequenceMatcher
@yunkon-kim yunkon-kim requested a review from seokho-son as a code owner July 16, 2024 06:42
@yunkon-kim
Copy link
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Jul 16, 2024
@cb-github-robot cb-github-robot merged commit e8d1345 into cloud-barista:main Jul 16, 2024
2 checks passed
@yunkon-kim yunkon-kim deleted the 240715-16 branch July 30, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This PR is approved and will be merged soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants