-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Refactor multiclass #2
base: master
Are you sure you want to change the base?
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_labels
in CXXMethod, remove it.