Skip to content

init commit for svm fix#3659

Draft
Alexandr-Solovev wants to merge 2 commits into
uxlfoundation:mainfrom
Alexandr-Solovev:dev/asolovev_svm_class_count
Draft

init commit for svm fix#3659
Alexandr-Solovev wants to merge 2 commits into
uxlfoundation:mainfrom
Alexandr-Solovev:dev/asolovev_svm_class_count

Conversation

@Alexandr-Solovev

Copy link
Copy Markdown
Contributor

Description


Checklist:

Completeness and readability

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes or created a separate PR with updates and provided its number in the description, if necessary.
  • Git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details).
  • I have resolved any merge conflicts that might occur with the base branch.

Testing

  • I have run it locally and tested the changes extensively.
  • All CI jobs are green or I have provided justification why they aren't.
  • I have extended testing suite if new functionality was introduced in this PR.

Performance

  • I have measured performance for affected algorithms using scikit-learn_bench and provided at least a summary table with measured data, if performance change is expected.
  • I have provided justification why performance and/or quality metrics have changed or why changes are not expected.
  • I have extended the benchmarking suite and provided a corresponding scikit-learn_bench PR if new measurable functionality was introduced in this PR.

// arrays of a oneapi svm model. SVs and coeffs are stored grouped by class in
// increasing class order; n_support_per_class gives the per-class block sizes.
// Layout assumptions follow the daal one-vs-one trainer:
// support_vectors : [sum(n_support_per_class), n_features]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return 1;
}

std::cout << "PASS" << std::endl;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this a unit test instead of example.

.set_first_class_response(old_unique_responses.first)
.set_second_class_response(old_unique_responses.second);
.set_second_class_response(old_unique_responses.second)
.set_class_count(2);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make it error out when a user tries to re-assign multi-class arrays to a GPU estimator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants