• bitcoinBitcoin(BTC)$79,511.00-0.73%
  • Midas Fasanara Global EuroMidas Fasanara Global Euro(MGLOEURO)$111,813.00-0.36%
  • ethereumEthereum(ETH)$2,299.68-0.86%
  • tetherTether(USDT)$1.00-0.06%
  • binancecoinBNB(BNB)$734.14-0.63%
  • rippleXRP(XRP)$1.290.57%
  • usd-coinUSDC(USDC)$1.00-0.04%
  • solanaSolana(SOL)$99.41-1.58%
  • tronTRON(TRX)$0.328035-0.63%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.00%
  • zcashZcash(ZEC)$1,218.490.72%
  • HyperliquidHyperliquid(HYPE)$77.330.98%
  • dogecoinDogecoin(DOGE)$0.0770300.17%
  • moneroMonero(XMR)$593.661.71%
  • USDSUSDS(USDS)$1.00-0.02%
  • whitebitWhiteBIT Coin(WBT)$76.36-0.94%
  • chainlinkChainlink(LINK)$11.31-0.65%
  • leo-tokenLEO Token(LEO)$9.04-0.03%
  • cardanoCardano(ADA)$0.2031430.27%
  • stellarStellar(XLM)$0.167391-0.71%
  • nearNEAR Protocol(NEAR)$4.41-1.50%
  • bitcoin-cashBitcoin Cash(BCH)$280.040.56%
  • RainRain(RAIN)$0.007136-13.17%
  • Ethena USDeEthena USDe(USDE)$1.00-0.05%
  • daiDai(DAI)$1.00-0.03%
  • uniswapUniswap(UNI)$7.020.52%
  • litecoinLitecoin(LTC)$56.23-0.35%
  • USD1USD1(USD1)$1.00-0.03%
  • CantonCanton(CC)$0.097855-2.79%
  • avalanche-2Avalanche(AVAX)$8.75-1.16%
  • suiSui(SUI)$0.90-0.67%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.21-1.53%
  • hedera-hashgraphHedera(HBAR)$0.076221-0.47%
  • tether-goldTether Gold(XAUT)$3,996.56-0.23%
  • Global DollarGlobal Dollar(USDG)$1.00-0.03%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.04%
  • quant-networkQuant(QNT)$200.593.83%
  • BittensorBittensor(TAO)$247.39-0.89%
  • shiba-inuShiba Inu(SHIB)$0.000005-0.22%
  • EthenaEthena(ENA)$0.207197-0.68%
  • crypto-com-chainCronos(CRO)$0.052808-1.63%
  • Ripple USDRipple USD(RLUSD)$1.00-0.03%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.05%
  • okbOKB(OKB)$108.00-0.33%
  • MemeCoreMemeCore(M)$0.971.50%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • BitwayBitway(BTW)$1.37-15.47%
  • aaveAave(AAVE)$131.11-2.67%
  • OndoOndo(ONDO)$0.4063970.97%
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

IBM Brings Governed Identity and Credential Controls to AI Agents – Unite.AI

The Pros And Cons Of Enabling Apple’s Security Feature

ShareTweetSendSharePin

Related Posts

IBM Brings Governed Identity and Credential Controls to AI Agents – Unite.AI
AI & Technology

IBM Brings Governed Identity and Credential Controls to AI Agents – Unite.AI

October 27, 2026
The Pros And Cons Of Enabling Apple’s Security Feature
AI & Technology

The Pros And Cons Of Enabling Apple’s Security Feature

October 27, 2026
The Most Popular Streaming Platforms In The US Might Not Be What You Think
AI & Technology

The Most Popular Streaming Platforms In The US Might Not Be What You Think

October 26, 2026
symplr Launches AI Time and Scheduling to Predict Healthcare Staffing Needs – Unite.AI
AI & Technology

symplr Launches AI Time and Scheduling to Predict Healthcare Staffing Needs – Unite.AI

October 26, 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
Truck explodes in a Montana parking lot

Truck explodes in a Montana parking lot

October 22, 2026
Why AI Is Causing a Global Panic Over Cyber Security

Why AI Is Causing a Global Panic Over Cyber Security

October 25, 2026
New clues about possible informant in O.J. Simpson case

New clues about possible informant in O.J. Simpson case

October 22, 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!