FlexNN 1
Fully connected neural network built from scratch with flexible n-layer design and multiple activations.
Loading...
Searching...
No Matches
Utility.h File Reference

Utility functions for FlexNN neural network library. More...

#include <Eigen/Dense>
#include <string>
#include <vector>
Include dependency graph for Utility.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  FlexNN
 Namespace for the FlexNN neural network library.
 

Functions

Eigen::MatrixXd FlexNN::oneHotEncode (const Eigen::VectorXd &Y, int num_classes)
 One-hot encodes a vector of class labels.
 
void FlexNN::readCSV_XY (const std::string &filename, Eigen::MatrixXd &X, Eigen::VectorXd &Y)
 Reads a CSV file and splits it into features (X) and labels (Y).
 
std::vector< std::pair< Eigen::MatrixXd, Eigen::VectorXd > > FlexNN::splitXY (const Eigen::MatrixXd &X, const Eigen::VectorXd &Y, const std::vector< double > &proportions)
 Splits the dataset into multiple sets based on specified proportions.
 

Detailed Description

Utility functions for FlexNN neural network library.

This file contains utility functions for one-hot encoding, reading CSV files, and splitting datasets into training, validation, and test sets.

Will add more utility functions as needed.

Author
Nalin Angrish nalin.nosp@m.@nal.nosp@m.inang.nosp@m.rish.nosp@m..me