Fix mistake with references
This commit is contained in:
parent
5793c31bc4
commit
c5386d66fc
@ -8,7 +8,7 @@ namespace bayesnet {
|
||||
, classNumStates(classNumStates)
|
||||
{
|
||||
}
|
||||
Metrics::Metrics(vector<vector<int>>& vsamples, vector<int>& labels, vector<string>& features, string& className, int classNumStates)
|
||||
Metrics::Metrics(const vector<vector<int>>& vsamples, const vector<int>& labels, const vector<string>& features, const string& className, const int classNumStates)
|
||||
: features(features)
|
||||
, className(className)
|
||||
, classNumStates(classNumStates)
|
||||
|
@ -8,8 +8,8 @@ namespace bayesnet {
|
||||
class Metrics {
|
||||
private:
|
||||
torch::Tensor samples;
|
||||
vector<string>& features;
|
||||
string& className;
|
||||
vector<string> features;
|
||||
string className;
|
||||
int classNumStates;
|
||||
vector<pair<string, string>> doCombinations(const vector<string>&);
|
||||
double entropy(torch::Tensor&);
|
||||
@ -17,7 +17,7 @@ namespace bayesnet {
|
||||
double mutualInformation(torch::Tensor&, torch::Tensor&);
|
||||
public:
|
||||
Metrics(torch::Tensor&, vector<string>&, string&, int);
|
||||
Metrics(vector<vector<int>>&, vector<int>&, vector<string>&, string&, int);
|
||||
Metrics(const vector<vector<int>>&, const vector<int>&, const vector<string>&, const string&, const int);
|
||||
vector<float> conditionalEdgeWeights();
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user