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