Precise control of ink viscosity is a key bottleneck in printing high-quality, biocompatible hydroxyapatite/reduced-graphene-oxide (Hap/rGO) scaffolds. This study combines rheometry data from 14 ink formulations with tree-based ensemble learning to predict viscosity across the shear-rate range relevant to extrusion-based printing. Five algorithms - Random Forest, XGBoost, LightGBM, CatBoost, and HistGradientBoosting - were benchmarked under four progressively richer training strategies. A central methodological finding is that, in this small composition-structured rheological dataset, conventional row-wise random splitting substantially overestimates predictive generalization. When evaluation was reformulated composition-wise, the ST4 strategy, based on Herschel–Bulkley descriptors and Optuna optimization, produced the most consistent results. Under formulation-wise GroupKFold, ST4 achieved mean test R² values from 0.777 to 0.812 and mean test MAE values from 6.78 to 7.95 Pa·s across the evaluated algorithms. Under the stricter leave-one-formulation-out protocol, ST4 remained the only strategy to preserve positive mean test R² for all models, with mean test R² from 0.385 to 0.665, mean test MAE from 8.27 to 9.37 Pa·s, and mean test RMSE from 14.47 to 16.45 Pa·s. Virtual screening was performed over a compositional space of 1764 hypothetical HAp/rGO formulations, from which candidates were prioritized according to predicted viscosity within a target printability window of 0.1–1000 Pa·s. Subsequent external validation on seven newly prepared inks yielded R² = 0.733–0.776, MAE = 3.46–3.96 Pa·s, and RMSE = 6.47–7.06 Pa·s, confirming the predictive utility of the ST4 model family and reinforcing the importance of group-aware validation for small rheological datasets.