Improve model card attractiveness: richer tags and usage snippet
Browse files1234567891011121314151617181 unmodified line20212223242526272829303132333435363738391 unmodified line4142434445464748495051525354555657585917 unmodified lines77787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321333 unmodified lines137138139140141142143144145146147148---language: enpipeline_tag: feature-extractiontags:- finance- xgboost- bert- finbert- embeddings- preliminary-results- cryptocurrency- news- sentiment-analysis- classification- tabulardatasets:- SahandNZ/cryptonews-articles-with-price-momentum-labelsbase_model:1 unmodified linelicense: mit---# Crypto News Momentum Embeddings (BERT-Lite) + Benchmark ResultsLightweight, ready-to-use CLS embeddings for crypto news direction modeling, paired with reproducible benchmark metrics.If you want fast experiments without rerunning transformer inference, this repo gives you downloadable `.npy` features and baseline scores out of the box.This single Hugging Face repo contains both:- Preliminary evaluation results for numeric-only vs CLS+numeric models- Cached CLS embedding artifacts used in those experimentsPrimary text encoder/base model used for this release: `boltuix/bert-lite`.## Source Dataset DeclarationThis work uses the public Hugging Face dataset:1 unmodified linePlease cite and credit the original dataset creator (`SahandNZ`) when reusing these artifacts.## Why This Repo Is Useful- Fast start: skip expensive embedding generation and jump directly into model development.- Practical benchmark: direct comparison of numeric-only, CLS+numeric, and pure-CLS baselines.- Easy integration: embeddings are standard NumPy arrays suitable for scikit-learn/XGBoost/PyTorch pipelines.- Reproducibility: file checksums are provided in `embeddings/embeddings_manifest.csv`.## Three Workstreams Covered1. Numeric-only XGBoost baseline2. Frozen CLS embedding + numeric XGBoost3. Pure CLS linear baseline## What Is Inside### 1) Results artifacts17 unmodified lines- `embeddings/embeddings_manifest.csv`## Quick Start: Download and Load Embeddings```pythonfrom huggingface_hub import hf_hub_downloadimport numpy as npREPO_ID = "JamieYuu/slm-bert-emb"train_path = hf_hub_download(repo_id=REPO_ID,filename="embeddings/bertlite_full_fresh__train_cls_embeddings.npy",repo_type="model",)val_path = hf_hub_download(repo_id=REPO_ID,filename="embeddings/bertlite_full_fresh__val_cls_embeddings.npy",repo_type="model",)test_path = hf_hub_download(repo_id=REPO_ID,filename="embeddings/bertlite_full_fresh__test_cls_embeddings.npy",repo_type="model",)X_train_cls = np.load(train_path)X_val_cls = np.load(val_path)X_test_cls = np.load(test_path)print(X_train_cls.shape, X_val_cls.shape, X_test_cls.shape)```## Pseudocode: Use Embeddings in a Hybrid Classifier```python# Inputs:# - X_*_numeric: lagged market/FnG tabular features# - X_*_cls: CLS embeddings from this repo# - y_*: labelsX_train = concat([X_train_numeric, X_train_cls], axis=1)X_val = concat([X_val_numeric, X_val_cls], axis=1)X_test = concat([X_test_numeric, X_test_cls], axis=1)model = XGBoostClassifier(tuned_hyperparameters)model.fit(X_train, y_train)val_pred = model.predict(X_val)test_pred = model.predict(X_test)report_metrics(y_val, val_pred)report_metrics(y_test, test_pred)```## Main Test Metrics (from results summary)3 unmodified lines- Pure CLS linear: accuracy 0.5252, F1 0.2860, precision 0.2866, recall 0.2854- Delta test F1 (CLS+Numeric - Numeric-only): +0.0740## Suggested CitationIf you use these artifacts, please cite:- This repository (`JamieYuu/slm-bert-emb`)- The source dataset (`SahandNZ/cryptonews-articles-with-price-momentum-labels`)## Notes12345678910111213141516171819201 unmodified line2223242526272829303132333435361 unmodified line3839404142434445464748495051525354555617 unmodified lines74757677787980818283848586878889909192939495969798991001011021031041051061071081091103 unmodified lines114115116117118119120121122123124---language: entags:- finance- quant-finance- algo-trading- trading- crypto- sentiment-analysis- feature-engineering- alpha-research- machine-learning- xgboost- bert- finbert- embeddings- preliminary-resultsdatasets:- SahandNZ/cryptonews-articles-with-price-momentum-labelsbase_model:1 unmodified linelicense: mit---# Crypto News Alpha Features: BERT-Lite Embeddings + Benchmark ResultsPrecomputed crypto-news CLS embeddings and benchmark outputs for fast quant experimentation.If you want to test whether text alpha adds signal over market/FnG-style numeric features, this repo gives you ready-to-use artifacts without rerunning expensive encoding.Primary text encoder used in this release: `boltuix/bert-lite`.## Data SourceThis work uses the public Hugging Face dataset:1 unmodified linePlease cite and credit the original dataset creator (`SahandNZ`) when reusing these artifacts.## Three Benchmark Tracks1. Numeric-only XGBoost baseline2. Frozen CLS embedding + numeric XGBoost3. Pure CLS linear baseline## Why Download This- Start modeling immediately with ready-made `.npy` embedding tensors.- Reproduce a strong baseline quickly for crypto text+tabular fusion.- Compare pure numeric alpha vs text-augmented alpha with a clean metric summary.- Use as a drop-in feature pack for your own classifier/regressor experiments.## What Is Inside### 1) Results artifacts17 unmodified lines- `embeddings/embeddings_manifest.csv`## Quick Start (Embedding Usage)```pythonimport numpy as npfrom xgboost import XGBClassifier# 1) Load precomputed text embeddingsX_text_train = np.load("embeddings/bertlite_full_fresh__train_cls_embeddings.npy")X_text_val = np.load("embeddings/bertlite_full_fresh__val_cls_embeddings.npy")# 2) Load your numeric features aligned to the same row order# X_num_train, X_num_val = ...# 3) Fuse text + numeric features# X_train = np.concatenate([X_num_train, X_text_train], axis=1)# X_val = np.concatenate([X_num_val, X_text_val], axis=1)# 4) Train a downstream model# clf = XGBClassifier(n_estimators=250, max_depth=4, learning_rate=0.1)# clf.fit(X_train, y_train)# y_pred = clf.predict(X_val)```Minimal pseudocode:```textload CLS embeddingsalign with numeric feature rowsconcatenate [numeric, CLS]train XGBoostcompare vs numeric-only baseline```## Main Test Metrics (from results summary)3 unmodified lines- Pure CLS linear: accuracy 0.5252, F1 0.2860, precision 0.2866, recall 0.2854- Delta test F1 (CLS+Numeric - Numeric-only): +0.0740## Practical Notes- Embeddings are frozen feature tensors (`.npy`), not fine-tuned checkpoints.- Files are split by train/val/test for direct experimental use.- Check `embeddings/embeddings_manifest.csv` to verify integrity.## Notes
README.md+47-71