Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hotfix for MC machines
  • Loading branch information
lisitsyn committed Feb 26, 2012
1 parent 1ddb633 commit db9a699
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/shogun/machine/KernelMulticlassMachine.h
Expand Up @@ -14,6 +14,7 @@
#include <shogun/lib/common.h>
#include <shogun/features/Features.h>
#include <shogun/kernel/Kernel.h>
#include <shogun/machine/KernelMachine.h>
#include <shogun/machine/MulticlassMachine.h>

namespace shogun
Expand All @@ -38,7 +39,7 @@ class CKernelMulticlassMachine : public CMulticlassMachine
* @param labels labels
*/
CKernelMulticlassMachine(EMulticlassStrategy strategy, CKernel* kernel, CKernelMachine* machine, CLabels* labs) :
CMulticlassMachine(strategy,machine,labs), m_kernel(NULL)
CMulticlassMachine(strategy,(CMachine*)machine,labs), m_kernel(NULL)
{
set_kernel(kernel);
m_parameters->add((CSGObject**)&m_kernel,"m_kernel");
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/machine/LinearMulticlassMachine.h
Expand Up @@ -38,7 +38,7 @@ class CLinearMulticlassMachine : public CMulticlassMachine
* @param labels labels
*/
CLinearMulticlassMachine(EMulticlassStrategy strategy, CDotFeatures* features, CLinearMachine* machine, CLabels* labs) :
CMulticlassMachine(strategy,machine,labs), m_features(NULL)
CMulticlassMachine(strategy,(CMachine*)machine,labs), m_features(NULL)
{
set_features(features);
m_parameters->add((CSGObject**)&m_features,"m_features");
Expand Down

0 comments on commit db9a699

Please sign in to comment.