• bitcoinBitcoin(BTC)$59,987.00-2.32%
  • ethereumEthereum(ETH)$1,683.37-2.94%
  • tetherTether(USDT)$1.00-0.02%
  • binancecoinBNB(BNB)$549.14-1.89%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • rippleXRP(XRP)$0.92-3.55%
  • solanaSolana(SOL)$69.47-5.37%
  • tronTRON(TRX)$0.307393-1.28%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.060.55%
  • HyperliquidHyperliquid(HYPE)$61.12-6.77%
  • zcashZcash(ZEC)$716.68-12.40%
  • moneroMonero(XMR)$501.71-0.41%
  • dogecoinDogecoin(DOGE)$0.055341-3.17%
  • leo-tokenLEO Token(LEO)$9.03-1.54%
  • chainlinkChainlink(LINK)$8.90-1.63%
  • whitebitWhiteBIT Coin(WBT)$56.78-3.13%
  • USDSUSDS(USDS)$1.00-0.01%
  • cardanoCardano(ADA)$0.145366-3.16%
  • Ethena USDeEthena USDe(USDE)$1.000.00%
  • stellarStellar(XLM)$0.124093-5.59%
  • daiDai(DAI)$1.00-0.01%
  • bitcoin-cashBitcoin Cash(BCH)$197.70-2.21%
  • nearNEAR Protocol(NEAR)$2.87-5.77%
  • litecoinLitecoin(LTC)$40.82-2.51%
  • CantonCanton(CC)$0.075332-3.38%
  • avalanche-2Avalanche(AVAX)$6.59-4.03%
  • tether-goldTether Gold(XAUT)$3,556.84-2.38%
  • uniswapUniswap(UNI)$4.74-3.90%
  • USD1USD1(USD1)$1.000.01%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • the-open-networkGram (prev. Toncoin)(GRAM)$0.96-4.17%
  • suiSui(SUI)$0.65-5.16%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.03%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • hedera-hashgraphHedera(HBAR)$0.050567-6.09%
  • RainRain(RAIN)$0.002999-9.41%
  • BittensorBittensor(TAO)$182.44-5.80%
  • quant-networkQuant(QNT)$146.90-8.90%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • shiba-inuShiba Inu(SHIB)$0.000004-2.81%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.120.78%
  • crypto-com-chainCronos(CRO)$0.038969-5.08%
  • MemeCoreMemeCore(M)$0.77-1.94%
  • okbOKB(OKB)$81.48-3.01%
  • Falcon USDFalcon USD(USDF)$0.99-0.05%
  • United StablesUnited Stables(U)$1.000.00%
  • pax-goldPAX Gold(PAXG)$3,558.74-2.40%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • usddUSDD(USDD)$1.00-0.06%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Building a Semantic Search Engine and Open-Status Classifier over the ResearchMath-14k Dataset

June 4, 2026
in AI & Technology
Reading Time: 1 min read
A A
Building a Semantic Search Engine and Open-Status Classifier over the ResearchMath-14k Dataset
ShareShareShareShareShare
from sentence_transformers import util
def search(query, k=5):
   q = model.encode([query], normalize_embeddings=True)
   sims = util.cos_sim(q, emb)[0].cpu().numpy()
   idx = sims.argsort()[::-1][:k]
   print(f'\n=== Query: "{query}" ===')
   for rank, i in enumerate(idx, 1):
       row = work.iloc[i]
       print(f"\n[{rank}] sim={sims[i]:.3f} | {row['taxonomy_level_1']} "
             f"| status={row['open_status']}")
       print("   ", row[TEXT_COL][:260].replace("\n", " "), "...")
search("rational points 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.fit(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.show()
sims = util.cos_sim(emb, emb).cpu().numpy()
np.fill_diagonal(sims, 0)
i, j = np.unravel_index(sims.argmax(), sims.shape)
print(f"\nMost similar 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].replace("\n", " "), "...")
print("\nDone. Set SAMPLE_SIZE=None at the top to run on the full 14.1k rows.")

Credit: Source link

YOU MAY ALSO LIKE

TIDAL to Remove 29 Million Wholly AI-Generated Songs From Catalog – Unite.AI

Researchers Find 3.6 Billion Usernames, Passwords And Documents In Unsecured Databases

ShareTweetSendSharePin

Related Posts

TIDAL to Remove 29 Million Wholly AI-Generated Songs From Catalog – Unite.AI
AI & Technology

TIDAL to Remove 29 Million Wholly AI-Generated Songs From Catalog – Unite.AI

November 24, 2026
Researchers Find 3.6 Billion Usernames, Passwords And Documents In Unsecured Databases
AI & Technology

Researchers Find 3.6 Billion Usernames, Passwords And Documents In Unsecured Databases

November 24, 2026
OpenAI and Cisco Releases Shirudo: An Open-Source Linux Runtime Allowing Agents to Defend Systems Without Downtime
AI & Technology

OpenAI and Cisco Releases Shirudo: An Open-Source Linux Runtime Allowing Agents to Defend Systems Without Downtime

November 24, 2026
Exein Launches Ray AI Agent to Prioritize Firmware Security Fixes – Unite.AI
AI & Technology

Exein Launches Ray AI Agent to Prioritize Firmware Security Fixes – Unite.AI

November 24, 2026
Next Post
Robots keep falling on their faces — Silicon Valley has a plan to fix it

Robots keep falling on their faces — Silicon Valley has a plan to fix it

Leave a Reply Cancel reply

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

Search

No Result
View All Result
SiriusXM And Pandora Will Provide Podcast Transcripts For The Deaf And Hard-Of-Hearing Community

SiriusXM And Pandora Will Provide Podcast Transcripts For The Deaf And Hard-Of-Hearing Community

November 18, 2026
England captain Harry Kane is expected to miss ‘a few months’ with ankle injury – CNN

England captain Harry Kane is expected to miss ‘a few months’ with ankle injury – CNN

November 21, 2026
Israel orders ‘full lockdown’ of the West Bank

Israel orders ‘full lockdown’ of the West Bank

November 17, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!