• 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.

Arc Raiders’ newest patch provides two of essentially the most requested options, however kills Cred hoarding

Arc Raiders’ newest patch provides two of essentially the most requested options, however kills Cred hoarding

December 16, 2025
Google Uncover Core Replace Information: Native Publishers Misplaced Attain

Google Uncover Core Replace Information: Native Publishers Misplaced Attain

March 14, 2026

Trending.

From Basement to Breakthroughs: Contained in the Studio Powering the Web’s Boldest Manufacturers

From Basement to Breakthroughs: Contained in the Studio Powering the Web’s Boldest Manufacturers

December 15, 2025
First AI designed drug in human trials

First AI designed drug in human trials

June 26, 2026
AI & data-driven Starbucks – Deep Brew

AI & data-driven Starbucks – Deep Brew

May 18, 2026
Finest Voice Cloning APIs in 2026: Speaker Similarity, Consent Checks, and Value per 1M Characters

Finest Voice Cloning APIs in 2026: Speaker Similarity, Consent Checks, and Value per 1M Characters

September 21, 2026
Modders, Please Cease Placing Video games Inside Different Video games With AI

Modders, Please Cease Placing Video games Inside Different Video games With AI

October 2, 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

RansomHub associates linked to rival RaaS suppliers

What to learn about two essential PHP flaws

October 28, 2026
Google Updates Favicon Documentation To Specify Googlebot Should Observe Redirects From Homepage To Favicon

Google Updates Favicon Documentation To Specify Googlebot Should Observe Redirects From Homepage To Favicon

October 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