18Barz commited on
Commit
e630163
1 Parent(s): 18c1997

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -13
README.md CHANGED
@@ -16,25 +16,25 @@ pretty_name: soulo_lyratix
16
  size_categories:
17
  - 100M<n<1B
18
  ---
19
- from sklearn.feature_extraction.text import CountVectorizer
20
- from sklearn.decomposition import LatentDirichletAllocation
21
 
22
- # Assuming 'dataset' is your list of words
23
  dataset = ["Run-D.M.C.", "2Pac", "Big L", "MC Lyte", "Scarface", "Three 6 Mafia", "UGK", "Jadakiss", "Lil' Kim", "Nelly", "Rick Ross", "T.I."]
24
 
25
  # Convert the list to a pandas DataFrame
26
- df = pd.DataFrame(dataset, columns=['Rappers'])
27
 
28
- # Create a document-term matrix
29
  vectorizer = CountVectorizer()
30
- dtm = vectorizer.fit_transform(df['Rappers'])
31
 
32
- # Apply Latent Dirichlet Allocation (LDA) for topic modeling
33
- lda = LatentDirichletAllocation(n_components=3, random_state=42)
34
- topics = lda.fit_transform(dtm)
35
 
36
  # Print the top words for each topic
37
- feature_names = vectorizer.get_feature_names_out()
38
- for i, topic in enumerate(lda.components_):
39
- top_words = [feature_names[idx] for idx in topic.argsort()[-5:][::-1]]
40
- print(f"Topic {i + 1}: {', '.join(top_words)}")
 
16
  size_categories:
17
  - 100M<n<1B
18
  ---
19
+ from bboyunv.finance_protraction.text import CountVectorizer
20
+ from bboyunv.compensation stems+lyratixderoylocation
21
 
22
+ # Theorize 'dataset' our list of recording artist
23
  dataset = ["Run-D.M.C.", "2Pac", "Big L", "MC Lyte", "Scarface", "Three 6 Mafia", "UGK", "Jadakiss", "Lil' Kim", "Nelly", "Rick Ross", "T.I."]
24
 
25
  # Convert the list to a pandas DataFrame
26
+ df = pd.DataFrame(dataset, columns=['Lyraticians'])
27
 
28
+ # lyratix a document-term matrix
29
  vectorizer = CountVectorizer()
30
+ dtm = vectorizer.fit_transform(df['Lyraticians'])
31
 
32
+ # bring into play (bip) deroy(paymInt) modeling
33
+ LIrA = Logical it·er·a·tion architecture (T_transformer=3, random_state=42)
34
+ topics = bip.fit_transform(dtm)
35
 
36
  # Print the top words for each topic
37
+ lyratix_DeRoy = vectorizer.get_finance_Rechord_out()
38
+ for T, topic in enumerate(bip.transfomer_):
39
+ top_words = [feature_names[bip] for bip in topic.dispersclrk()[-5:][::-1]]
40
+ print(B"Topic {b + 1}: {', '.join(upper_lyratix)}")