Precomputed 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.
1import numpy as np
2from xgboost import XGBClassifier
3
4# 1) Load precomputed text embeddings
5X_text_train = np.load("embeddings/bertlite_full_fresh__train_cls_embeddings.npy")
6X_text_val = np.load("embeddings/bertlite_full_fresh__val_cls_embeddings.npy")
7
8# 2) Load your numeric features aligned to the same row order
9# X_num_train, X_num_val = ...
10
11# 3) Fuse text + numeric features
12# X_train = np.concatenate([X_num_train, X_text_train], axis=1)
13# X_val = np.concatenate([X_num_val, X_text_val], axis=1)
14
15# 4) Train a downstream model
16# clf = XGBClassifier(n_estimators=250, max_depth=4, learning_rate=0.1)
17# clf.fit(X_train, y_train)
18# y_pred = clf.predict(X_val)
1load CLS embeddings
2align with numeric feature rows
3concatenate [numeric, CLS]
4train XGBoost
5compare vs numeric-only baseline