Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SGVector<float64_t> w = get_w();
- if (m_initialize_hyperplane)
- {
- w.resize_vector(num_feat);
- //start with uniform w, bias=0
- bias=0;
- linalg::add_scalar(w, 1.0 / num_feat);
- }
- SG_SPRINT("P: %d==%d==%d\n", get_w().vlen, num_feat, w.vlen);
Add Comment
Please, Sign In to add comment