tell create-ini what factors are being used

This commit is contained in:
Hieu Hoang 2013-03-11 15:27:17 +00:00
parent e04296b22e
commit e89d1ddbf1
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ protected:
public:
std::vector<std::string> toks;
std::vector<int> inFactors, outFactors;
Factors inFactors, outFactors;
std::string name;
std::string path;
int index, numFeatures;

View File

@ -94,8 +94,8 @@ void ParseFactorsPair(const string &line, vector< pair<Factors, Factors> > &ret)
assert(toks.size() == 2);
Factors input, output;
input = Tokenize<size_t>(toks[0], ",");
output = Tokenize<size_t>(toks[1], ",");
input = Tokenize<int>(toks[0], ",");
output = Tokenize<int>(toks[1], ",");
ret.push_back(pair<Factors, Factors>(input, output) );
}

View File

@ -4,7 +4,7 @@
#include <vector>
#include <sstream>
typedef std::vector<size_t> Factors;
typedef std::vector<int> Factors;
template<typename T>
inline T Scan(const std::string &input)