Skip to content

Business intelligence made simple

Made forecast relative to input size

Andrew Kaned3b2490541ba
diff --git a/lib/blazer/result.rb b/lib/blazer/result.rb
index 1f6ade70..a5bf9201 100644
--- a/lib/blazer/result.rb
+++ b/lib/blazer/result.rb
@@ -89,7 +89,7 @@ module Blazer
# don't want to put result data (even hashed version)
# into cache without developer opt-in
def forecast
- count = 30
+ count = (@rows.size * 0.25).round.clamp(30, 365)
case Blazer.forecasting
when "prophet"