scikit-learn-intelex icon indicating copy to clipboard operation
scikit-learn-intelex copied to clipboard

IncrementalLinearRegression interface

Open olegkkruglov opened this issue 1 year ago • 3 comments

Changes proposed in this pull request:

  • IncrementalLinearRegression added to onedal/sklearnex
  • Contains changes from https://github.com/intel/scikit-learn-intelex/pull/1713

olegkkruglov avatar Jan 18 '24 20:01 olegkkruglov

/intelci: run

olegkkruglov avatar Jan 19 '24 11:01 olegkkruglov

@olegkkruglov please rebase your branch.

It make sense think first about general online algos test coverage. Especially that estimators that we are not patching. I expect, that we will probably add some sklearn like tests. Some basic pikling, n_jobs, testing via different dataframes and device contexts.

Generally it is required first update primitives in case of new online algos. For example, this IncrementalLinReg will not work with config_context for device offloading. etc.

samir-nasibli avatar Jan 26 '24 14:01 samir-nasibli

/intelci: run

olegkkruglov avatar Feb 22 '24 14:02 olegkkruglov

/intelci: run

ethanglaser avatar Feb 22 '24 17:02 ethanglaser

/intelci: run

ethanglaser avatar Feb 22 '24 21:02 ethanglaser

So far I am pretty impressed by this PR.

icfaust avatar Feb 22 '24 23:02 icfaust

Ideally this should inherit sklearns' RegressorMixin too, just like BaseEstimator.

icfaust avatar Feb 22 '24 23:02 icfaust

New PR introduced to manage the issues with test_patching and _utils.py. We need to talk to @Alexsandruss about n_jobs testing and how that interacts with partial_fit

icfaust avatar Feb 23 '24 07:02 icfaust

/intelci: run

icfaust avatar Feb 23 '24 08:02 icfaust

/intelci: run

ethanglaser avatar Feb 26 '24 22:02 ethanglaser

conformance internal CI fails: FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_estimators_pickle] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_fit2d_1sample] FAILED tests/test_common.py::test_estimators[LinearRegression()-check_estimators_unfitted]

ethanglaser avatar Feb 27 '24 00:02 ethanglaser

/intelci: run

olegkkruglov avatar Feb 27 '24 14:02 olegkkruglov

conformance internal CI fails: FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_estimators_pickle] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_fit2d_1sample] FAILED tests/test_common.py::test_estimators[LinearRegression()-check_estimators_unfitted]

These still need to be resolved

ethanglaser avatar Feb 27 '24 15:02 ethanglaser

Sorry, accidental button mash

icfaust avatar Feb 27 '24 16:02 icfaust

With the fix in test_patching, it looks like there is some sort of data conversion issue with fit (not in float types).

icfaust avatar Feb 28 '24 20:02 icfaust

/intelci: run

olegkkruglov avatar Mar 04 '24 14:03 olegkkruglov

/intelci: run

ethanglaser avatar Mar 04 '24 22:03 ethanglaser

/azp run CI

ethanglaser avatar Mar 04 '24 22:03 ethanglaser

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Mar 04 '24 22:03 azure-pipelines[bot]

Internal CI conformance fails including but not limited to: FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_estimators_nan_inf] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_regressors_train] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_regressors_train(readonly_memmap=True)] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_regressors_train(readonly_memmap=True,X_dtype=float32)] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_regressor_data_not_an_array] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_supervised_y_2d] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_estimators_unfitted] FAILED tests/test_common.py::test_estimators[IncrementalLinearRegression()-check_fit1d] FAILED tests/test_common.py::test_check_param_validation[IncrementalLinearRegression()]

ethanglaser avatar Mar 05 '24 00:03 ethanglaser

/intelci: run

olegkkruglov avatar Mar 06 '24 01:03 olegkkruglov

/intelci: run

olegkkruglov avatar Mar 06 '24 13:03 olegkkruglov

/intelci: run

olegkkruglov avatar Mar 06 '24 13:03 olegkkruglov

/intelci: run

olegkkruglov avatar Mar 07 '24 10:03 olegkkruglov

/intelci: run

olegkkruglov avatar Mar 07 '24 11:03 olegkkruglov

/intelci: run

olegkkruglov avatar Mar 07 '24 20:03 olegkkruglov

/intelci: run

ethanglaser avatar Mar 07 '24 22:03 ethanglaser

/intelci: run

olegkkruglov avatar Mar 08 '24 09:03 olegkkruglov

https://ecmd.jf.intel.com/commander/link/jobDetails/jobs/eedd31b2-8f0f-f1ce-bd49-a4bf010d0e2e

olegkkruglov avatar Mar 08 '24 09:03 olegkkruglov

/intelci: run

olegkkruglov avatar Mar 21 '24 13:03 olegkkruglov