Skip to content

Commit

Permalink
Removed a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed May 24, 2012
1 parent ede11ce commit 37f1841
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/shogun/lib/external/shogun_liblinear.cpp
Expand Up @@ -342,7 +342,7 @@ void l2r_l2_svc_fun::subXTv(double *v, double *XTv)
// To support weights for instances, use GETI(i) (i)

Solver_MCSVM_CS::Solver_MCSVM_CS(const problem *p, int n_class,
double *weighted_C, double *w0,
double *weighted_C, double *w0_reg,
double epsilon, int max_it, double max_time,
mcsvm_state* given_state)
{
Expand All @@ -353,7 +353,7 @@ Solver_MCSVM_CS::Solver_MCSVM_CS(const problem *p, int n_class,
this->max_iter = max_it;
this->prob = p;
this->C = weighted_C;
this->w0 = w0;
this->w0 = w0_reg;
this->max_train_time = max_time;
this->state = given_state;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/machine/MulticlassMachine.cpp
Expand Up @@ -82,7 +82,7 @@ CBinaryLabels* CMulticlassMachine::get_submachine_outputs(int32_t i)
float64_t CMulticlassMachine::get_submachine_output(int32_t i, int32_t num)
{
CMachine *machine = get_machine(i);
float64_t output;
float64_t output = 0.0;
// dirty hack
if (dynamic_cast<CLinearMachine*>(machine))
output = ((CLinearMachine*)machine)->apply_one(num);
Expand Down

0 comments on commit 37f1841

Please sign in to comment.