-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
remove LibSVM, LibLinear, LibSVR from SWIG #4494
remove LibSVM, LibLinear, LibSVR from SWIG #4494
Conversation
6d2bb2b
to
d1289fe
Compare
This error was a weird one, these kind of fixes (see relaxed tree class) we need to do when doing the transition |
@@ -141,7 +141,8 @@ bool CRelaxedTree::train_machine(CFeatures* data) | |||
CMulticlassLabels *lab = dynamic_cast<CMulticlassLabels *>(m_labels); | |||
|
|||
RelaxedTreeUtil util; | |||
SGMatrix<float64_t> conf_mat = util.estimate_confusion_matrix(m_machine_for_confusion_matrix, | |||
SGMatrix<float64_t> conf_mat = util.estimate_confusion_matrix( | |||
m_machine_for_confusion_matrix->as<CBaseMulticlassMachine>(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from compile time safety to runtime safety ... :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could also add the CBaseMulticlassMachine
to the shogun base classes, but I am not sure what we get API wise?
@lisitsyn you wrote that, you have any opinions?
d1289fe
to
0ba29fe
Compare
|
||
label_pred = classifier.apply_multilabel_output(feats_test,2) | ||
out = label_pred.get_labels() | ||
# TODO: figure out the new style API for the below call, disabling for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lisitsyn pls comment on API suggestions for this part, as your wrote the thing IIRC :)
@@ -32,7 +32,7 @@ void CKernelMulticlassMachine::store_model_features() | |||
CSet<index_t> all_sv; | |||
for (index_t i=0; i<m_machines->get_num_elements(); ++i) | |||
{ | |||
CKernelMachine *machine=(CKernelMachine *)get_machine(i); | |||
auto machine=get_machine(i)->as<CKernelMachine>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lisitsyn also would appreciate your input on the changes in this file
89a454c
to
63da846
Compare
For now postponing the removal of LibLinear from SWIG due to enum problems |
1b9a1e7
to
4cef4d1
Compare
64f7799
to
45ca9cc
Compare
ok donbot now is happy for python legacy and meta...fingers crossed |
032307f
to
07b0bf1
Compare
@@ -412,6 +412,12 @@ def getIncludePathForClass(self, type_): | |||
uniqueCandidates[0])) | |||
return uniqueCandidates[0] | |||
|
|||
# hack since ctags cannot find include paths for preprocessor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -285,10 +288,5 @@ namespace shogun | |||
SG_REF(result); | |||
return result; | |||
} | |||
|
|||
CMachine* machine(CPipeline* pipeline) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinx13 I removed this as it is not really needed, one can use machine
(I renamed to as_machine
in this PR)
07b0bf1
to
4a65d73
Compare
omg finally |
#4463
@gf712 @avramidis @vinx13 @shubham808 you get the point ... we need to start pumping those out