Closed giriprasad51 closed 7 months ago
Attention: 4 lines
in your changes are missing coverage. Please review.
Comparison is base (
2a56526
) 90.03% compared to head (bf08fea
) 89.94%.
Files | Patch % | Lines |
---|---|---|
...rd/ml/operator_converters/sklearn/poly_features.py | 78.94% | 2 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hii @ksaur! As per your suggestion I made some changes in the code please go through it. Thanks!
273 fixed
import hummingbird import numpy as np from sklearn.preprocessing import PolynomialFeatures from hummingbird.ml import convert for degree in range(10): X = np.arange(15).reshape(3,5) y = np.random.randint(2, size=6)
poly = PolynomialFeatures(degree) poly_sk = poly.fit_transform(X) poly_convert = convert(poly, 'pytorch') poly_h = poly_convert.transform(X) if (poly_sk != poly_h).all() : print(degree)