Deep Learning Algorithm Implementations 1.0.0
C++ implementations of fundamental deep learning algorithms
Loading...
Searching...
No Matches
/home/runner/work/deep-learning-algo-impls/deep-learning-algo-impls/include/ml/ml.hpp
#include "ml/ml.hpp"
using namespace ml;
using namespace utils;
// PCA for dimensionality reduction
Matrix<double> data = \/* your data *\/;
pca.fit(data);
Matrix<double> reduced = pca.transform(data, 2);
// K-Means clustering
KMeans<double> kmeans(3);
std::vector<int> labels = kmeans.fit_predict(data);
// SVM classification
SVM<double> svm(KernelType::RBF);
std::vector<int> targets = \/* your labels *\/;
svm.fit(data, targets);
std::vector<int> predictions = svm.predict(test_data);
Main header file for traditional machine learning algorithms.
Namespace containing traditional machine learning algorithms.
Definition kmeans.hpp:15
#pragma once
#include "kmeans.hpp"
#include "pca.hpp"
#include "svm.hpp"
namespace ml {
// All algorithm classes are already defined in their respective headers
// This file serves as a convenient single include point
}
K-Means clustering algorithm implementation.
Principal Component Analysis implementation.
Support Vector Machine implementation with automatic differentiation.