Comments (6)
Thanks, can confirm. Will look into this soon
from jool.
The test is correct. The expected result is 1.0
:
select regr_r2(x, y)
from (values (1, 1), (1, 2)) t (x, y)
Produces:
|regr_r2|
|-------|
|1 |
from jool.
jOOQ/jOOQ#11547 defines REGR_R2
as:
REGR_R2(x, y) = CASE
WHEN VAR_POP(NVL2(x, y, NULL)) = 0 THEN NULL
WHEN VAR_POP(NVL2(y, x, NULL)) = 0 THEN 1
ELSE CORR(x, y)^2
END
from jool.
The formula is implemented correctly, but the internal mapAll(Tuple3<Optional<T1>, Optional<T2>, Optional<T3>>)
isn't. It's requires all optionals to be non-empty in order to map anything, when in fact this isn't what the CASE
expression suggests.
from jool.
Well, mapAll()
is implemented correctly, but using it is wrong.
from jool.
The reason why this hasn't been detected in our CI is because we recently migrated CI and jOOλ wasn't part of the new installation...
from jool.
Related Issues (20)
- A multi-release jar maybe better, if no extra classes for Java 9+ HOT 1
- Add zipWithIndexAndSize() HOT 3
- Change Tuple v1 to fst and v2 to snd HOT 3
- IllegalStateException on Seq#append after Seq#forEach HOT 9
- Implement shortcut for 0.0 and 1.0 percentile calculations HOT 3
- Add Seq.toMap() with mergeFunction HOT 1
- Add support for PERCENTILE_CONT semantics HOT 6
- Add @param javadoc to Agg methods
- Add Agg.covarianceDouble HOT 1
- Add Agg.correlationDouble()
- Add Predicate<Tuple[N]<T...>> Tuple.predicate(Predicate[N]<T...>) HOT 5
- A strange issue on java 8: consumer isn't being called HOT 1
- Add Gradle build with Error-Prone in addition to maven HOT 3
- Add set of Predicates 0-16 (similar to Function 0-16) HOT 1
- Some interesting additions (Predicates, fixed Javadoc errors, Wrapped/Safe version of Unchecked/Sneaky) HOT 4
- Fix Javadoc errors, Error prone errors and most obvious warnings HOT 9
- Excess type variables in Agg::bitAndInt and Agg::bitAndLong
- Replace <code><pre> by <pre><code> in Javadoc HOT 1
- Release 0.9.15 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jool.