Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Implement linearRegression natively #2017

Closed

Conversation

pub-djedruszczak
Copy link
Contributor

This PR implements the linearRegression function natively.

It depends on #2015, so I'll rebase once thats merged.

@stale
Copy link

stale bot commented Jun 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 12, 2022
@stale stale bot removed the stale label Jun 13, 2022
@CLAassistant
Copy link

CLAassistant commented Jun 15, 2022

CLA assistant check
All committers have signed the CLA.

@robert-milan
Copy link
Contributor

@djedruszczak if you want to rebase I'll get to this next_

pub-djedruszczak and others added 3 commits July 27, 2022 17:14
* Add base implementation, lots todo

* Pass start and end through context jankily

* Use source timespan

* Copy series, set tag

* Rename, respect source start/end

* Use binary search to find first data point

* Some clean up, fix start bug

* Make test stricter, fix bug

* Add tests for invalid args

* Move test, small clean up

* Some cleanup

* Some cleanup

* Replace missing data points with NaN values

* Rename foreceast

* Use data point pool

* Use range fors, fix linear regression tag and name

* Set outgoing context from/to

* Try to figure out why interval is wrong

* Carpet bomb, pass correct timestamp to analysis

* Sort of working with ranges

* Fix datapoints size

* Make output size consistent with Graphite

* Remove interval deduction

* Some cleanup

* Some cleanup

* Add output series to data map

* Refactor tests

* Math is hard

* Add relative test

* Add normalization test

* Remove debug statement

* Some cleanup

* Some cleanup

* Clean up input validation

* Clean up documentation

* Remove debug statement

* Fix relative test

* Some cleanup

* Some cleanup

* Replace normalization

* Add linear regression benchmarks

* Add base implementation, lots todo

* Pass start and end through context jankily

* Use source timespan

* Copy series, set tag

* Rename, respect source start/end

* Use binary search to find first data point

* Some clean up, fix start bug

* Make test stricter, fix bug

* Add tests for invalid args

* Move test, small clean up

* Some cleanup

* Some cleanup

* Replace missing data points with NaN values

* Rename foreceast

* Use data point pool

* Use range fors, fix linear regression tag and name

* Set outgoing context from/to

* Try to figure out why interval is wrong

* Carpet bomb, pass correct timestamp to analysis

* Sort of working with ranges

* Fix datapoints size

* Make output size consistent with Graphite

* Remove interval deduction

* Some cleanup

* Some cleanup

* Add output series to data map

* Refactor tests

* Math is hard

* Add relative test

* Add normalization test

* Remove debug statement

* Some cleanup

* Some cleanup

* Clean up input validation

* Clean up documentation

* Remove debug statement

* Fix relative test

* Some cleanup

* Some cleanup

* Replace normalization

* Add linear regression benchmarks

* Use tz.GetFromTo

* Set tz.TimeZone in tests

* Fix bench

* Remove invalid input tests

* Update comment

* Make stable
@pub-djedruszczak
Copy link
Contributor Author

Rebased!

@pub-djedruszczak pub-djedruszczak marked this pull request as ready for review July 28, 2022 19:36
@stale
Copy link

stale bot commented Nov 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 2, 2022
@shanson7 shanson7 removed the stale label Nov 2, 2022
@shanson7
Copy link
Collaborator

shanson7 commented Nov 2, 2022

Any update?

@robert-milan
Copy link
Contributor

closing in favor of #2046 - I needed to update the tests to work locally with the newer versions of docker / docker compose

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants