Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

standardize AbstractFloats #555

Merged
merged 3 commits into from
May 3, 2024

Conversation

tiemvanderdeure
Copy link
Contributor

Changes the float type of the fitresult of Standardizer to AbstractFloat. This means standardizers will no longer force floats to Float64.

I also removed the second definition of fitresult_given_feature - I think this must have been an oversight.

@ablaom
Copy link
Member

ablaom commented Apr 30, 2024

Thanks for this. It seems that codecov is hanging. I've been having this issue elsewhere. Can you try updating the codecov GH action to version @v3. You can do that here:

- uses: codecov/codecov-action@v1

Don't use @v4 as that requires us to add a security token.

Copy link

codecov bot commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.08%. Comparing base (5dc7eb2) to head (1757802).
Report is 5 commits behind head on dev.

❗ Current head 1757802 differs from pull request most recent head 66303c4. Consider uploading reports for the commit 66303c4 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #555      +/-   ##
==========================================
+ Coverage   76.92%   77.08%   +0.16%     
==========================================
  Files          16       16              
  Lines        1170     1126      -44     
==========================================
- Hits          900      868      -32     
+ Misses        270      258      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ablaom
Copy link
Member

ablaom commented Apr 30, 2024

Could you please also fix this line:

std(v) > eps(Float64) ||

More correct is eps(T), right?

Copy link
Member

@ablaom ablaom left a comment

Choose a reason for hiding this comment

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

Good to have this, thanks. 🙏🏾

@tiemvanderdeure
Copy link
Contributor Author

std(v) > eps(Float64) ||

More correct is eps(T), right?

eps(T) would fail if T is an integer, but eps(std(v)) should always work.

@ablaom ablaom merged commit 8c783cf into JuliaAI:dev May 3, 2024
2 checks passed
@tiemvanderdeure tiemvanderdeure deleted the standardize_abstractfloats branch May 6, 2024 07:40
@ablaom ablaom mentioned this pull request Jun 5, 2024
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