f83cb3cbb3
### What changes were proposed in this pull request? In LogisticRegression and LinearRegression, if set maxIter=n, the model.summary.totalIterations returns n+1 if the training procedure does not drop out. This is because we use ```objectiveHistory.length``` as totalIterations, but ```objectiveHistory``` contains init sate, thus ```objectiveHistory.length``` is 1 larger than number of training iterations. ### Why are the changes needed? correctness ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? add new tests and also modify existing tests Closes #28786 from huaxingao/summary_iter. Authored-by: Huaxin Gao <huaxing@us.ibm.com> Signed-off-by: Sean Owen <srowen@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
test_algorithms.py | ||
test_base.py | ||
test_evaluation.py | ||
test_feature.py | ||
test_image.py | ||
test_linalg.py | ||
test_param.py | ||
test_persistence.py | ||
test_pipeline.py | ||
test_stat.py | ||
test_training_summary.py | ||
test_tuning.py | ||
test_wrapper.py |