-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Kolmogorov Smirnov Test in SQL-only (#28)
## Change This PR implements the Kolmogorov Smirnov test in pure SQL which is then run directly on the database. ## Commits * first integration: ks-test in database functionality * integrate sql query with data refs * formatting * formatting * refactoring: call `test` directly to access sql-result of KS test * fix row count retrieval * fix acceptance level domain error * fix alpha adjustment * fix type hints for python<3.10 * update sql query for postgres: all tables need to have an alias assigned to them * fix: typo * update query for mssql server * add check for column names * alternative way of getting table name, incl. hot fix for mssql quotation marks in table reference * don't accept zero alphas since in practice they don't make much sense * update variable naming and doc-strings * update data retrieval * include query nesting brackets * better formatting for understandibility * better formatting for understandibility * update query for better readibility with more WITH statements * new option of passing values to the TestResult to compare these * seperate implementation testing from use case testing * make independent of numpy * update tests: new distributions, no scipy and numpy dependency, random numbers generated from seed for reproducability * update comment * optional accuracy through scipy * refactoring, clean up and formatting * update comment and type hints * update tpye hints for older python versions * fix type hint: Tuple instead of tuple * update changelog and include comment about scipy calculation
- Loading branch information
Showing
6 changed files
with
305 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.