
VectorForgeML is a next-generation machine learning framework designed to bridge the gap between R's simplicity and C++'s raw performance. Built from scratch, it focuses on understanding the mathematical foundations of ML while delivering a scalable, production-ready systems architecture.
Unlike traditional R packages that simply wrap C libraries, VectorForgeML implements core algorithms using:
The goal is to provide a Research-Ready Engine that allows data scientists to build complex pipelines in milliseconds.
The official research paper describing VectorForgeML is available here:
ColumnTransformer, StandardScaler, PCA, etc.).VectorForgeML is officially published on CRAN and distributed globally.
install.packages("VectorForgeML")
library(VectorForgeML)
We have implemented a wide range of algorithms, verified with real-world datasets on Kaggle.
| Algorithm | Type | Description | Kaggle Demo |
|---|---|---|---|
| Linear Regression | Regression | OLS with BLAS/LAPACK optimization. | View Notebook |
| Logistic Regression | Classification | Gradient Descent with Sigmoid activation. | View Notebook |
| Ridge Regression | Regression | L2 Regularized Linear Regression using Cholesky. | View Notebook |
| Softmax Regression | Classification | Multi-class classification with Log-Sum-Exp trick. | View Notebook |
| Decision Tree | Reg/Class | Recursive partitioning with distinct C++ graph pointers. | View Notebook |
| Random Forest | Ensemble | Parallelized ensemble of decision trees. | View Notebook |
| KNN | Reg/Class | K-Nearest Neighbors with std::partial_sort optimization. |
View Notebook |
| Algorithm | Type | Description | Kaggle Demo |
|---|---|---|---|
| K-Means Clustering | Clustering | Lloyd's algorithm with efficient centroid updates. | View Notebook |
| PCA | Dim. Reduction | Principal Component Analysis via SVD/Eigen Decomposition. | View Notebook |
| Feature | Description | Kaggle Demo |
|---|---|---|
| Pipeline | Chain multiple steps (Preprocessing -> Model) into one object. | View Notebook |
| Preprocessing |
StandardScaler, MinMaxScaler, LabelEncoder, OneHotEncoder. |
Included in Pipeline Demo |
| Metrics |
accuracy_score, r2_score, f1_score, confusion_matrix. |
Included in all Demos |
Here is how you can build a powerful pipeline in just a few lines of R:
install.packages("VectorForgeML")
library(VectorForgeML)
df <- read.csv(system.file("dataset","winequality.csv", package="VectorForgeML"),sep=";")
y <- df$quality
X <- df; X$quality<-NULL
split <- train_test_split(X,y,0.2,42)
cat_cols <- names(X)[sapply(X,is.character)]
num_cols <- names(X)[!sapply(X,is.character)]
pre <- ColumnTransformer$new(
num_cols,cat_cols,
StandardScaler$new(),
OneHotEncoder$new()
)
pipe <- Pipeline$new(list(
pre,
RandomForest$new(ntrees=100,max_depth=7,4,mode="classification")
))
pipe$fit(split$X_train,split$y_train)
pred <- pipe$predict(split$X_test)
cat("Accuracy:",accuracy_score(split$y_test,round(pred)),"\n")
VectorForgeML/
βββ R/ # R interface & utility functions
βββ src/ # High-performance C++ backend
β βββ LinearRegression.cpp
β βββ DecisionTree.cpp
β βββ RandomForest.cpp
β βββ ...
βββ include/ # C++ Header files
βββ public/ # Documentation Website (VectorForgeML.com)
βββ scripts/ # Build & Doc generation scripts
βββ README.md # Project Documentation
Mohd Musheer
Lead Developer & Architect
Passionate about High-Performance Computing (HPC) and System Design. VectorForgeML is a testament to building systems from first principlesβcombining rigorous mathematics with software engineering excellence.
If you use VectorForgeML in research, please cite:
Musheer, M. (2026). VectorForgeML: High-Performance Machine Learning Framework. CRAN.
DOI: 10.32614/CRAN.package.VectorForgeML
This project was submitted to the Quantum Sprint Hackathon 2026 on Devpost.
VectorForgeML is a high-performance machine learning framework with a C++ backend designed to accelerate model training in R.
Resources:
Submitted to: Quantum Sprint Hackathon 2026
This project is licensed under the Apache License 2.0.
Made with β€οΈ by Mohd Musheer