bmmalone / urlearning-cpp

This c++ project implements a number of algorithms for learning Bayesian network structures using state space search techniques.
MIT License
8 stars 4 forks source link

Give variable names for specifying static pattern databases #22

Open bmmalone opened 7 years ago

bmmalone commented 7 years ago

Currently, the code for specifying static pattern databases in files requires variable indices. These come from the order of the variables in the original CSV file and can be rather inconvenient. It would be better to specify the variables by name and grab the variable indices from that. The relevant code is around lines 45-50 in file_pattern_database.cpp.