Conversation
|
You are probably compiling with an old include file and linking to the new lib (or vice versa). Can you share the CMakeCache.txt please? |
hi @gf712 , here is the CMakeCache.txt: https://pastebin.com/1wBzQBnY |
|
Current LibTooling script support rewrite class Test : public MulticlassMachine{
public:
Test();
Test(std::shared_ptr<Labels> labs, int C): MulticlassMachine(labs){
set_labels(labs);
}
void train_machine(std::shared_ptr<Features> data) override{
auto t = m_labels;
}
void test2(){
set_labels(m_labels);
auto t = m_labels;
}
void test3(const std::shared_ptr<Features>& feature){
set_labels(m_labels);
auto t = m_labels;
}
};after class Test : public MulticlassMachine{
public:
Test();
Test( int C): MulticlassMachine(labs){
set_labels(labs);
}
void train_machine(std::shared_ptr<Features> data, const std::shared_ptr<Labels>& labs) override{
auto t = labs;
}
void test2(const std::shared_ptr<Labels>& labs){
set_labels(labs);
auto t = labs;
}
void test3(const std::shared_ptr<Features>& feature, const std::shared_ptr<Labels>& labs){
set_labels(labs);
auto t = labs;
}
}; |
|
i think the only missing one is that MulticlassSVM::MulticlassSVM(
std::shared_ptr<MulticlassStrategy >strategy, float64_t C, std::shared_ptr<Kernel> k, std::shared_ptr<Labels> lab)
: KernelMulticlassMachine(std::move(strategy), k, std::make_shared<SVM>(C, k, lab), lab)
{
init();
m_C=C;
}when we remove |
Cool! Do you need help with that? :) |
yes, I have no idea about how to remove the label in constructor initializer. i find a function call |
set_labelsin CXXMethod, remove it.