Views
No views yet

.joblib: Compressed serialized models (typically classifiers or vectorizers)..npz: NumPy/Numpy sparse matrices (typically model weights or embeddings)..pickle, .pck, and TensorFlow/CNN files are not included in this repository. You may find those here: https://huggingface.co/Aurumz/RCT-Reviewer-picklejoblib and scipy/numpy.pip install joblib scikit-learn scipy numpy huggingface_hubhuggingface_hub library to download the models to a local cache directory. You can replicate this behavior using the following snippet:1from huggingface_hub import snapshot_download
2from pathlib import Path
3
4# Define cache directory
5models_dir = Path.home() / ".cache" / "rct_reviewer" / "models"
6
7# Download the entire repository
8snapshot_download(
9 repo_id="Aurumz/RCT-Reviewer",
10 repo_type="model",
11 local_dir=models_dir,
12 max_workers=1
13)
14
15print(f"Models downloaded to: {models_dir}").joblib Modelsjoblib library to load classifier artifacts directly.1import joblib
2from huggingface_hub import hf_hub_download
3
4# Example: Downloading a specific joblib model
5model_path = hf_hub_download(
6 repo_id="Aurumz/RCT-Reviewer",
7 filename="data/bias/bias_classifier.joblib"
8)
9
10# Load the model
11model = joblib.load(model_path)
12print(f"Model loaded successfully: {type(model)}").npz Weight Files.npz files typically contain sparse matrices used for Linear SVM weights or TF-IDF vectors.1import numpy as np
2from scipy.sparse import load_npz
3from huggingface_hub import hf_hub_download
4
5# Example: Downloading sparse weights
6weights_path = hf_hub_download(
7 repo_id="Aurumz/RCT-Reviewer",
8 filename="data/rct/rct_svm_weights.npz"
9)
10
11# Load the sparse matrix
12weights = load_npz(weights_path)
13
14# If it is a standard dense numpy array, use:
15# weights = np.load(weights_path)
16
17print(f"Weights shape: {weights.shape}")data directory:1data/
2├── bias/ # Risk of Bias models (.npz, .joblib)
3├── pico/ # PICO extraction models (.npz)
4├── rct/ # RCT classification weights (.npz)
5└── vocab/ # Vocabulary and embedding files (.npz)