Guest User

Untitled

a guest
May 31st, 2018
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. SGVector<float64_t> w = get_w();
  2. if (m_initialize_hyperplane)
  3. {
  4. w.resize_vector(num_feat);
  5. //start with uniform w, bias=0
  6. bias=0;
  7. linalg::add_scalar(w, 1.0 / num_feat);
  8. }
  9. SG_SPRINT("P: %d==%d==%d\n", get_w().vlen, num_feat, w.vlen);
Add Comment
Please, Sign In to add comment