• About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us
AimactGrow
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing
No Result
View All Result
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing
No Result
View All Result
AimactGrow
No Result
View All Result

Constructing a Semantic Search Engine and Open-Standing Classifier over the ResearchMath-14k Dataset

Admin by Admin
June 5, 2026
Home AI
Share on FacebookShare on Twitter


from sentence_transformers import util
def search(question, okay=5):
   q = mannequin.encode([query], normalize_embeddings=True)
   sims = util.cos_sim(q, emb)[0].cpu().numpy()
   idx = sims.argsort()[::-1][:k]
   print(f'n=== Question: "{question}" ===')
   for rank, i in enumerate(idx, 1):
       row = work.iloc[i]
       print(f"n[{rank}] sim={sims[i]:.3f} | {row['taxonomy_level_1']} "
             f"| standing={row['open_status']}")
       print("   ", row[TEXT_COL][:260].exchange("n", " "), "...")
search("rational factors on hyperelliptic curves")
search("multiplicativity of maximal output p-norm of a quantum channel")
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report, ConfusionMatrixDisplay
y = work["open_status"].values
Xtr, Xte, ytr, yte = train_test_split(
   emb, y, test_size=0.25, random_state=RANDOM_STATE, stratify=y)
clf = LogisticRegression(max_iter=2000, class_weight="balanced", C=2.0)
clf.match(Xtr, ytr)
pred = clf.predict(Xte)
print("n=== open_status classifier (embeddings + logistic regression) ===")
print(classification_report(yte, pred))
fig, ax = plt.subplots(figsize=(7, 6))
ConfusionMatrixDisplay.from_predictions(
   yte, pred, ax=ax, cmap="Blues", xticks_rotation=45,
   normalize="true", values_format=".2f")
ax.set_title("open_status confusion matrix (row-normalized)")
plt.tight_layout(); plt.present()
sims = util.cos_sim(emb, emb).cpu().numpy()
np.fill_diagonal(sims, 0)
i, j = np.unravel_index(sims.argmax(), sims.form)
print(f"nMost related pair (cos={sims[i, j]:.3f}):")
for n in (i, j):
   print(f"n  paper_id={work.iloc[n]['paper_id']} | "
         f"{work.iloc[n]['taxonomy_level_1']}")
   print("   ", work.iloc[n][TEXT_COL][:240].exchange("n", " "), "...")
print("nDone. Set SAMPLE_SIZE=None on the prime to run on the complete 14.1k rows.")
Tags: BuildingClassifierDatasetEngineOpenStatusResearchMath14kSearchSemantic
Admin

Admin

Next Post
Optimize for AI Visibility and Put together for Agentic Search

Optimize for AI Visibility and Put together for Agentic Search

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended.

How To Use The Blood Oxygen App On Apple Watch

How To Use The Blood Oxygen App On Apple Watch

August 15, 2025
Shops open at midnight as followers rush to purchase Nintendo Change 2

Shops open at midnight as followers rush to purchase Nintendo Change 2

June 5, 2025

Trending.

Backrooms director Kane Parsons explains the birds, the portals, and his sensible results

Backrooms director Kane Parsons explains the birds, the portals, and his sensible results

May 31, 2026
100 Most Costly Key phrases for Google Advertisements in 2026

100 Most Costly Key phrases for Google Advertisements in 2026

January 13, 2026
Resident Evil followers have adopted a Love & Deepspace character because the son of Leon S. Kennedy and one in every of his potential spouses

Resident Evil followers have adopted a Love & Deepspace character because the son of Leon S. Kennedy and one in every of his potential spouses

April 4, 2026
Parental Lock Code Puzzle Defined

Parental Lock Code Puzzle Defined

July 27, 2025
AI & data-driven Starbucks – Deep Brew

AI & data-driven Starbucks – Deep Brew

May 18, 2026

AimactGrow

Welcome to AimactGrow, your ultimate source for all things technology! Our mission is to provide insightful, up-to-date content on the latest advancements in technology, coding, gaming, digital marketing, SEO, cybersecurity, and artificial intelligence (AI).

Categories

  • AI
  • Coding
  • Cybersecurity
  • Digital marketing
  • Gaming
  • SEO
  • Technology

Recent News

8 Pokémon Video games That Reward Gamers for Constructing Bizarre Groups As an alternative of Robust Ones

8 Pokémon Video games That Reward Gamers for Constructing Bizarre Groups As an alternative of Robust Ones

July 28, 2026
AI brokers create digital playgrounds to assist robots get essential coaching information | MIT Information

AI brokers create digital playgrounds to assist robots get essential coaching information | MIT Information

July 28, 2026
  • About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us

© 2025 https://blog.aimactgrow.com/ - All Rights Reserved

No Result
View All Result
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing

© 2025 https://blog.aimactgrow.com/ - All Rights Reserved